{"version":3,"sources":["PlDistributionBox.js","App.js","serviceWorker.js","index.js"],"names":["boxStyle","margin","padding","background","width","display","verticalAlign","PlDistributionBox","_this$props$distribut","this","props","distributionData","name","ref","gitlab","documentation","react_default","a","createElement","style","Object","objectSpread","href","download","listStyleType","Component","App","_this","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","state","distributions","_this2","host","window","location","distributionsURL","process","DISTRIBUTIONS_URL","concat","fetch","then","response","json","map","dist","filename","url","setState","className","top","position","PlDistributionBox_PlDistributionBox","key","Boolean","hostname","match","ReactDOM","render","src_App_0","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"gOAEMA,EAAW,CACbC,OAAQ,OACRC,QAAS,OACTC,WAAY,UACZC,MAAO,OACPC,QAAS,eACTC,cAAe,OAQbC,mLACK,IAAAC,EACoCC,KAAKC,MAAMC,iBAAhDC,EADCJ,EACDI,KAAMC,EADLL,EACKK,IAAKC,EADVN,EACUM,OAAQC,EADlBP,EACkBO,cACzB,OACEC,EAAAC,EAAAC,cAAA,OAAKC,MAAKC,OAAAC,EAAA,EAAAD,CAAA,GAAOpB,IACfgB,EAAAC,EAAAC,cAAA,UAAKN,GACLI,EAAAC,EAAAC,cAAA,wBAAeF,EAAAC,EAAAC,cAAA,KAAGI,KAAMT,EAAKU,UAAQ,GAAtB,UAAf,KACAP,EAAAC,EAAAC,cAAA,YACKJ,GAAUC,IACXC,EAAAC,EAAAC,cAAA,eACEF,EAAAC,EAAAC,cAAA,oCACAF,EAAAC,EAAAC,cAAA,MAAIC,MAAO,CAACjB,QAAW,EAAGsB,cAAiB,SACvCT,GACAC,EAAAC,EAAAC,cAAA,UAAIF,EAAAC,EAAAC,cAAA,KAAGI,KAAMP,GAAT,kBAEJD,GACAE,EAAAC,EAAAC,cAAA,UAAIF,EAAAC,EAAAC,cAAA,KAAGI,KAAMR,GAAT,8BAhBUW,aCwBjBC,qBAjCb,SAAAA,IAAc,IAAAC,EAAA,OAAAP,OAAAQ,EAAA,EAAAR,CAAAX,KAAAiB,IACZC,EAAAP,OAAAS,EAAA,EAAAT,CAAAX,KAAAW,OAAAU,EAAA,EAAAV,CAAAM,GAAAK,KAAAtB,QACKuB,MAAQ,CAACC,cAAe,IAFjBN,mFAKM,IAAAO,EAAAzB,KACZ0B,EAAOC,OAAOC,SAASF,KACvBG,EAAmBC,8CAAYC,mBAAZ,WAAAC,OAA4CN,EAA5C,6BAEzBO,MAAMJ,GACDK,KAAK,SAAAC,GAAQ,OAAIA,EAASC,SAC1BF,KAAK,SAAAC,GAAQ,OAAIA,EAASX,cAAca,IAAI,SAAAC,GAC3C,OAAO3B,OAAAC,EAAA,EAAAD,CAAA,GAAI2B,EAAX,CAAiBlC,IAAKkC,EAAKC,SAAL,UAAAP,OAA0BM,EAAKC,UAAaD,EAAKE,UAExEN,KAAK,SAAAV,GAAa,OAAIC,EAAKgB,SAAS,CAACjB,cAAeA,uCAKzD,OACEjB,EAAAC,EAAAC,cAAA,OAAKiC,UAAU,OACbnC,EAAAC,EAAAC,cAAA,0BACAF,EAAAC,EAAAC,cAAA,OAAKC,MAAO,CAACiC,IAAK,IAAKC,SAAU,WAC7B5C,KAAKuB,MAAMC,eACXxB,KAAKuB,MAAMC,cACRa,IAAK,SAAAC,GAAI,OAAI/B,EAAAC,EAAAC,cAACoC,EAAD,CAAmBC,IAAKR,EAAKnC,KAAMD,iBAAkBoC,eA1B/DtB,cCME+B,QACW,cAA7BpB,OAAOC,SAASoB,UAEe,UAA7BrB,OAAOC,SAASoB,UAEhBrB,OAAOC,SAASoB,SAASC,MACvB,2DCZNC,IAASC,OAAO5C,EAAAC,EAAAC,cAAC2C,EAAD,MAASC,SAASC,eAAe,SD2H3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMvB,KAAK,SAAAwB,GACjCA,EAAaC","file":"static/js/main.fea69adf.chunk.js","sourcesContent":["import React, { Component } from \"react\";\n\nconst boxStyle = {\n margin: '10px'\n , padding: '20px'\n , background: '#ffdd55'\n , width: '10em'\n , display: 'inline-block'\n , verticalAlign: 'top'\n\n};\n\n/** \n * A box representing one pinLocker distribution\n * @param distributionData - the Distribution Object. needs at least name and ref\n */\nclass PlDistributionBox extends Component {\n render() {\n let { name, ref, gitlab, documentation } = this.props.distributionData;\n return (\n
\n

{name}

\n
Download here
\n
\n { (gitlab || documentation) &&\n
\n Other Information\n \n
\n }\n
\n
\n );\n }\n}\n\nexport { PlDistributionBox };\n","/* eslint-disable react/jsx-no-comment-textnodes */\nimport React, { Component } from 'react';\nimport { PlDistributionBox } from \"./PlDistributionBox\"\nimport './App.css';\n\n \nclass App extends Component {\n constructor() {\n super()\n this.state = {distributions: []}\n }\n\n componentDidMount() {\n const host = window.location.host\n const distributionsURL = process.env.DISTRIBUTIONS_URL || `https://${host}/files/distributions.json`\n\n fetch(distributionsURL)\n .then(response => response.json())\n .then(response => response.distributions.map(dist => {\n return {...dist, ref: dist.filename ? `/files/${dist.filename}` : dist.url }\n }))\n .then(distributions => this.setState({distributions: distributions}))\n }\n\n\n render() {\n return (\n
\n

pinLocker.de

\n
\n { this.state.distributions &&\n this.state.distributions\n .map( dist => )\n }\n
\n
\n );\n }\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}