{"version":3,"sources":["components/headerComponent/nowplaying.js","components/headerComponent/calltovaporaki.js","components/headerComponent/calltoweather.js","components/headerComponent/songsplayed.js","components/headerComponent/geolocation.js","components/headerComponent/header.js","App.js","serviceWorker.js","index.js"],"names":["NowPlaying","className","data-username","id","src","type","autoPlay","controls","href","target","CalltoVaporaki","props","state","error","isLoaded","items","fetch","then","res","json","result","setState","this","message","map","item","key","_embedded","media_details","sizes","thumbnail","source_url","link","title","rendered","React","Component","SongsPlayed","Header","App","today","Date","getFullYear","Boolean","window","location","hostname","match","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"iKAoBeA,MAlBf,WACI,OACI,yBAAKC,UAAU,OACX,yBAAKA,UAAU,aACX,gMACA,yBAAKA,UAAU,kBACX,yBAAKA,UAAU,uBAAuBC,gBAAc,YAApD,eACA,2BAAOC,GAAG,UAAUF,UAAU,sBAAsBG,IAAI,6CAA6CC,KAAK,aAAaC,SAAS,WAAWC,UAAQ,GAC/I,iFAEJ,iYAA8E,uBAAGC,KAAK,6CAA6CC,OAAO,UAA5D,mJAA9E,S,mCC2CLC,E,YApDX,WAAYC,GAAQ,IAAD,8BACjB,4CAAMA,KACDC,MAAQ,CACXC,MAAO,KACPC,UAAU,EACVC,MAAO,IALQ,E,iFASE,IAAD,OAClBC,MAAM,yEACHC,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MACC,SAACG,GACC,EAAKC,SAAS,CACZP,UAAU,EACVC,MAAOK,OAMX,SAACP,GACC,EAAKQ,SAAS,CACZP,UAAU,EACVD,e,+BAMA,IAAD,EAC4BS,KAAKV,MAAhCC,EADD,EACCA,MAAOC,EADR,EACQA,SAAUC,EADlB,EACkBA,MACzB,OAAIF,EACK,uCAAaA,EAAMU,SAChBT,EAIR,wBAAIb,UAAU,iBACXc,EAAMS,KAAI,SAAAC,GAAI,OACb,wBAAIC,IAAKD,EAAKtB,IACZ,yBAAKC,IAAKqB,EAAKE,UAAU,oBAAoB,GAAGC,cAAcC,MAAMC,UAAUC,aAC9E,uBAAGtB,OAAO,SAASD,KAAMiB,EAAKO,MAAOP,EAAKQ,MAAMC,eAPjD,+C,GArCcC,IAAMC,WCAPD,IAAMC,UCanBC,MAbf,WACI,OACI,yBAAKpC,UAAU,6BACX,yBAAKA,UAAU,aACX,2IACA,yBAAKA,UAAU,iBACX,yBAAKA,UAAU,uBAAuBC,gBAAc,YAApD,mB,MCLDiC,IAAMC,UCkCVE,MA9Bf,WACI,OACI,gCACI,yBAAKrC,UAAU,aACX,yBAAKA,UAAU,kBACX,yBAAKA,UAAU,yBACX,yBAAKG,IAAI,2BACT,mIAEJ,yBAAKH,UAAU,yBACX,yBAAKG,IAAI,4BAGjB,yBAAKH,UAAU,iBAEX,yBAAKA,UAAU,YAAW,kBAAC,EAAD,MAAc,6BACxC,kBAAC,EAAD,OAEA,yBAAKA,UAAU,YACX,4LACA,kBAAC,EAAD,W,MCPTsC,MAhBf,WACI,IAAMC,EAAQ,IAAIC,KAClB,OACI,yBAAKxC,UAAU,OACX,kBAAC,EAAD,MACA,yBAAKA,UAAU,oBACf,yBAAKA,UAAU,OACX,yBAAKA,UAAU,aACX,mCAAMuC,EAAME,cAAZ,4BCAAC,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCbNC,IAASC,OAAO,kBAAC,EAAD,MAASC,SAASC,eAAe,SD4H3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMrC,MAAK,SAAAsC,GACjCA,EAAaC,iB","file":"static/js/main.8e58064b.chunk.js","sourcesContent":["import React from 'react';\r\n\r\nfunction NowPlaying() {\r\n return (\r\n
\r\n
\r\n

Παίζει τώρα στο Ράδιο Βαποράκι

\r\n
\r\n
Loading ...
\r\n \r\n

Αν ο player δεν λειτουργεί για εσάς, χρησιμοποιήστε το παρακάτω κάντε κλίκ ΕΔΩ για να ακούσετε το ράδιο.\r\n

\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default NowPlaying;","import React from 'react';\r\n\r\nclass CalltoVaporaki extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n error: null,\r\n isLoaded: false,\r\n items: []\r\n };\r\n }\r\n \r\n componentDidMount() {\r\n fetch(\"https://www.radiovaporaki.com/wp-json/wp/v2/posts/?_embed&per_page=10\")\r\n .then(res => res.json())\r\n .then(\r\n (result) => {\r\n this.setState({\r\n isLoaded: true,\r\n items: result\r\n });\r\n },\r\n // Note: it's important to handle errors here\r\n // instead of a catch() block so that we don't swallow\r\n // exceptions from actual bugs in components.\r\n (error) => {\r\n this.setState({\r\n isLoaded: true,\r\n error\r\n });\r\n }\r\n )\r\n }\r\n \r\n render() {\r\n const { error, isLoaded, items } = this.state;\r\n if (error) {\r\n return
Error: {error.message}
;\r\n } else if (!isLoaded) {\r\n return
Loading...
;\r\n } else {\r\n return (\r\n \r\n );\r\n }\r\n }\r\n }\r\n\r\nexport default CalltoVaporaki;","import React from 'react';\r\n\r\nclass CalltoWeather extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n error: null,\r\n isLoaded: false,\r\n stations: []\r\n };\r\n }\r\n \r\n componentDidMount() {\r\n fetch(\"http://api.openweathermap.org/data/2.5/weather?id=6167865&units=imperial&APPID=7bd038c713a43503399fe8b1cf907575\")\r\n .then(res => res.json())\r\n .then(\r\n (result) => {\r\n this.setState({\r\n isLoaded: true,\r\n stations: result\r\n });\r\n },\r\n // Note: it's important to handle errors here\r\n // instead of a catch() block so that we don't swallow\r\n // exceptions from actual bugs in components.\r\n (error) => {\r\n this.setState({\r\n isLoaded: true,\r\n error\r\n });\r\n }\r\n )\r\n }\r\n \r\n render() {\r\n const { error, isLoaded, stations } = this.state;\r\n if (error) {\r\n return
Error: {error.message}
;\r\n } else if (!isLoaded) {\r\n return
Loading...
;\r\n } else {\r\n return (\r\n
\r\n\r\n
\r\n {stations.id}\r\n \r\n
\r\n\r\n
\r\n );\r\n }\r\n }\r\n }\r\n\r\nexport default CalltoWeather;","import React from 'react';\r\n\r\nfunction SongsPlayed() {\r\n return (\r\n
\r\n
\r\n

Ακούσαμε μέχρι τώρα...

\r\n
\r\n
Loading ...
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default SongsPlayed;","import React from \"react\";\r\nimport { geolocated } from \"react-geolocated\";\r\n \r\nclass Demo extends React.Component {\r\n render() {\r\n return !this.props.isGeolocationAvailable ? (\r\n
Your browser does not support Geolocation
\r\n ) : !this.props.isGeolocationEnabled ? (\r\n
Geolocation is not enabled
\r\n ) : this.props.coords ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
latitude{this.props.coords.latitude}
longitude{this.props.coords.longitude}
altitude{this.props.coords.altitude}
heading{this.props.coords.heading}
speed{this.props.coords.speed}
\r\n ) : (\r\n
Getting the location data…
\r\n );\r\n }\r\n}\r\n \r\nexport default Demo;","import React from 'react';\r\nimport NowPlaying from './nowplaying';\r\nimport CalltoVaporaki from './calltovaporaki';\r\nimport CalltoWeather from './calltoweather';\r\nimport SongsPlayed from './songsplayed';\r\nimport Demo from \"./geolocation\";\r\n\r\nfunction Header() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n

Η Ελλάδα όπως παλιά

\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n

\r\n \r\n
\r\n
\r\n

Πρόσφατες αναρτήσεις στο www.radiovaporaki.com

\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default Header;","import React from 'react';\nimport Header from './components/headerComponent/header';\nimport './assets/css/master.css';\n\nfunction App() {\n const today = new Date();\n return (\n
\n
\n
\n
\n
\n

© {today.getFullYear()} Radio Vaporaki.com

\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 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":""}