\r\n ;\r\n }\r\n\r\n static page_title = \"Photograph\"\r\n}\r\n\r\nexport default MainFrame;\r\n","\r\n\r\nconst {PureComponent} = require(\"react\");\r\n\r\nclass Nav extends PureComponent {\r\n render = () => {\r\n const { entries, visiblePageName } = this.props\r\n return \r\n }\r\n}\r\n\r\nexport default Nav\r\n","export default __webpack_public_path__ + \"static/media/fancy-arrow.80fc3e4e.svg\";","import React, {PureComponent} from \"react\"\r\nimport QRCode from \"react-qr-code\";\r\nimport FancyArrow from \"./fancy-arrow.svg\";\r\nimport {selectImage} from \"./imageSizing\";\r\n\r\n//\r\n// url is a location object or a URL\r\n//\r\n// converts case-insenstive parts to uppercase, removes hash and query parts\r\n// to make something suitable for a high density QR code assuming you use\r\n// only QR-alphanumeric characters in your URL\r\n//\r\n\r\nconst cleanQRL = (url) => {\r\n var that = url.protocol.toUpperCase()\r\n that = that + \"//\"\r\n that = that + url.hostname.toUpperCase()\r\n if (url.port) {\r\n that = that + \":\" + url.port\r\n }\r\n that = that + url.pathname\r\n return that\r\n}\r\n\r\nconst OptionalA = (props) => {\r\n const {children, ...others} = props\r\n if(props.href) {\r\n return {children};\r\n }\r\n\r\n return {children}\r\n}\r\n\r\nconst PreparedBy = (props) => {\r\n let { prepared_by } = props\r\n if (typeof prepared_by === \"string\") {\r\n prepared_by = {name: prepared_by}\r\n }\r\n const { name, version } = prepared_by\r\n return <>{name} {version}>\r\n}\r\n\r\n//\r\n// unfortunately the component doesn't support the alphanumeric QR\r\n// code encoding; this breaks the design rules for 3-sided cards but that's\r\n// the least of what's wrong with this system\r\n//\r\n\r\nclass QRVirus extends PureComponent {\r\n render = () => {\r\n const { config, pathname } = this.props\r\n const { images, date_prepared, prepared_by, prepared_link } = config\r\n const barcode_url = cleanQRL(window.location)\r\n const selectedImage = selectImage(images, 256, 256)\r\n const imgUrl = pathname + selectedImage.name\r\n\r\n return \r\n
Scan QR Code to view this photo on a mobile device
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Apollo/Gorgon photo shell v1.0; images and data prepared by {\" \"}\r\n \r\n {\" \"} at {date_prepared}.
\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport default withRouter(ShellShell);\r\n","import './PhotoShell.scss';\nimport React, {Component} from \"react\";\nimport {\n BrowserRouter as Router, Switch, Route\n} from \"react-router-dom\";\nimport ShellShell from \"./ShellShell\";\nimport {HelmetProvider} from \"react-helmet-async\";\n\nclass App extends Component {\n render = () => \n \n \n \n \n \n \n \n \n}\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\n\nconst here=window.location\n\n//\n// If the URL is localhost or numeric (not looked up in DNS) we assume that this\n// is running in development mode and redirect to a test page\n//\n\nlet DEV_HOSTNAME = /^(localhost|[0-9.]+)$/i\n\nif(here.hostname.match(DEV_HOSTNAME)) {\n if(!here.pathname.startsWith(\"/$/\")) {\n here.pathname = \"/$/3TK$LMS0TFPT7JGCY/\"\n }\n}\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n"],"sourceRoot":""}