{"version":3,"sources":["App.js","serviceWorker.js","index.js"],"names":["ConservationMap","className","alt","style","width","src","this","props","currentNote","body","title","href","target","Component","Note","note","setCurrentNote","onClick","color","NoteList","noteIds","Object","keys","notes","map","noteId","key","Main","App","bind","state","id","setState","Boolean","window","location","hostname","match","ReactDOM","render","StrictMode","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","console","message"],"mappings":"+PAUQA,G,6KAEF,OACE,yBAAKC,UAAU,OACb,yBAAKC,IAAI,MAAMC,MAAO,CAAEC,MAAO,SAAWC,IAAKC,KAAKC,MAAMC,YAAYC,OACtE,4BAAKH,KAAKC,MAAMC,YAAYE,MAA5B,IAAmC,uBAAGC,KAAML,KAAKC,MAAMC,YAAYC,KAAMG,OAAO,UAA7C,IAAuD,6BAAvD,kB,GALbC,cAWxBC,EAAO,SAAC,GAA8B,IAA5BC,EAA2B,EAA3BA,KAAMC,EAAqB,EAArBA,eAIpB,OACI,uBAAGC,QAJa,WAClBD,EAAeD,KAIX,wBAAId,UAAWc,EAAKG,OAEhB,yBAAKjB,UAAU,cAAcc,EAAKL,UAQxCS,EAAW,SAAAZ,GACf,IAAMa,EAAUC,OAAOC,KAAKf,EAAMgB,OAClC,OACE,6BAEE,wBAAItB,UAAU,QACXmB,EAAQI,KAAI,SAAAC,GAAM,OACjB,kBAAC,EAAD,CACEV,KAAMR,EAAMgB,MAAME,GAClBC,IAAKD,EACLT,eAAgBT,EAAMS,uBAQ5BW,EAAO,SAAApB,GACX,OACE,0BAAMN,UAAU,WAEZ,6BAASA,UAAU,cACjB,kBAAC,EAAD,CACEsB,MAAOhB,EAAMgB,MACbP,eAAgBT,EAAMS,kBAI1B,2BAAOf,UAAU,YACf,kBAAC,EAAD,CAAiBO,YAAaD,EAAMC,iBAuQjCoB,E,kDA/PX,WAAYrB,GAAQ,IAAD,8BACjB,cAAMA,IACDS,eAAiB,EAAKA,eAAea,KAApB,gBACtB,EAAKC,MAAQ,CACXP,MAAO,CACL,QAAS,CACP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B,MAAO,uBACPD,KAAM,gFAINS,MAAO,QAGT,SAAU,CACRa,GAAI,UACJrB,MAAO,mCACPD,KAAM,oFACNS,MAAO,QAMT,SAAU,CACRa,GAAI,KAEJrB,MAAO,0BACPD,KAAM,6EAENS,MAAO,QAGT,SAAU,CACRa,GAAI,UACJrB,MAAO,yBACPD,KAAM,+EAGNS,MAAO,QAGT,SAAU,CACRa,GAAI,UAEJrB,MAAO,oBACPD,KAAM,kFAENS,MAAO,QAET,SAAU,CACRa,GAAI,UAEJrB,MAAO,8BACPD,KAAM,8EAENS,MAAO,QAET,SAAU,CACRa,GAAI,UAEJrB,MAAO,qBACPD,KAAM,2EAGNS,MAAO,SAIXV,YAAa,CACXuB,GAAI,KACJrB,MAAO,oBACPD,KAAM,sFACNS,MAAO,KAzOM,E,2DA8OJH,GACbT,KAAK0B,SAAS,CAAExB,YAAaO,M,+BAG7B,OAEI,kBAAC,EAAD,CACEQ,MAAOjB,KAAKwB,MAAMP,MAClBf,YAAaF,KAAKwB,MAAMtB,YACxBQ,eAAgBV,KAAKU,qB,GAxPbH,aC9DAoB,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZNC,IAASC,OACP,kBAAC,IAAMC,WAAP,KACE,kBAAC,EAAD,OAEFC,SAASC,eAAe,SDyHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBC,MAAK,SAAAC,GACJA,EAAaC,gBAEdC,OAAM,SAAAC,GACLC,QAAQD,MAAMA,EAAME,a","file":"static/js/main.ff1c400a.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './App.css';\n\n\n\n\n\n\n\n\n class ConservationMap extends Component {\n render() {\n return (\n
\n \"Map\"\n

{this.props.currentNote.title}
View Map

\n
\n );\n }\n }\n\n const Note = ({ note, setCurrentNote }) => {\n const handleClick = () => {\n setCurrentNote(note);\n };\n return (\n \n
  • \n \n
    {note.title}
    \n \n
  • \n
    \n \n );\n };\n\n const NoteList = props => {\n const noteIds = Object.keys(props.notes);\n return (\n
    \n\n \n
    \n );\n };\n\n const Main = props => {\n return (\n
    \n\n
    \n \n
    \n\n \n \n
    \n );\n };\n\n class App extends Component {\n constructor(props) {\n super(props);\n this.setCurrentNote = this.setCurrentNote.bind(this);\n this.state = {\n notes: {\n 'map-1': {\n id: \"1\",\n title: \"Bigalk Trout Stream Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/bigalk_layout.jpg\",\n color: 'pink',\n },\n\n 'map-2': {\n id: \"note-2\",\n\n title: \"Kleckner Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/kleckner_layout.jpg\",\n \n\n color: 'blue',\n },\n\n 'map-3': {\n id: \"note-6\",\n\n title: \"Souhrada Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/souhradawild_layout.jpg\",\n \n color: 'blue',\n },\n 'map-4': {\n id: \"note-4\",\n title: \"Bonair Shooting Range\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/bonair_layout.jpg\",\n color: 'pink',\n },\n 'map-5': {\n id: \"note-5\",\n \n title: \"Lubbert Park\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/lubbert_layout.jpg\",\n color: 'blue',\n },\n 'map-6': {\n id: \"note-5\",\n title: \"Souhrada Forest\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/souhradaforest_layout.jpg\",\n \n color: 'pink',\n },\n\n 'map-7': {\n id: \"note-5\",\n\n title: \"Crane Creek Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/cranecreek_layout.jpg\",\n\n color: 'blue',\n },\n\n\n ///\n\n 'map-8': {\n id: \"8\",\n title: \"Lylah's Marsh\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/lylah_layout.jpg\",\n color: 'pink',\n },\n\n 'map-9': {\n id: \"note-9\",\n\n title: \"Turkey Bend Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/turkeybend_layout.jpg\",\n \n color: 'blue',\n },\n\n 'map-10': {\n id: \"note-10\",\n\n title: \"Cleghorn Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/cleghorn_layout.jpg\",\n\n color: 'blue',\n },\n 'map-11': {\n id: \"note-11\",\n title: \"Lake Hendricks\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/lakehendricks_layout.jpg\",\n color: 'pink',\n },\n 'map-12': {\n id: \"note-12\",\n\n title: \"Taylor's Pond Park\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/taylor_layout.jpg\",\n \n color: 'blue',\n },\n 'map-13': {\n id: \"note-13\",\n\n title: \"Dieken Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/dieken_layout.jpg\",\n\n\n color: 'pink',\n },\n\n 'map-14': {\n id: \"note-14\",\n\n\n title: \"Lidtke Park\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/lidtke_layout.jpg\",\n \n \n color: 'blue',\n },\n\n\n\n 'map-15': {\n id: \"15\",\n title: \"Thomson Marsh\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/thomson_layout.jpg\",\n color: 'pink',\n },\n\n 'map-16': {\n id: \"note-16\",\n\n title: \"Evans-Hughes Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/evanshughes_layout.jpg\",\n \n color: 'blue',\n },\n\n 'map-17': {\n id: \"note-17\",\n title: \"Mullen Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/mullen_layout.jpg\",\n color: 'blue',\n },\n 'map-18': {\n id: \"note-18\",\n\n title: \"Upper Iowa River Access\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/upperiowa_layout.jpg\",\n \n color: 'pink',\n },\n 'map-19': {\n id: \"note-19\",\n\n title: \"Florenceville Park\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/florenceville_layout.jpg\",\n \n color: 'blue',\n },\n 'map-20': {\n id: \"note-20\",\n\n \n title: \"Meiricks Pond Access\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/meirick_layout-1.jpg\",\n\n \n \n color: 'pink',\n },\n\n 'map-21': {\n id: \"note-21\",\n title: \"Vernon Springs Park/Turkey River\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/vernon_turkey_layout.jpg\",\n color: 'blue',\n },\n\n\n ///\n\n 'map-22': {\n id: \"22\",\n\n title: \"Hart Pond Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/hart_layout-1.jpg\",\n \n color: 'pink',\n },\n\n 'map-23': {\n id: \"note-23\",\n title: \"Martinek Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/martinek_layout.jpg\",\n \n \n color: 'blue',\n },\n\n 'map-24': {\n id: \"note-24\",\n\n title: \"Wittenbreer Marsh\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/wittenbreer_layout.jpg\",\n \n color: 'blue',\n },\n 'map-25': {\n id: \"note-25\",\n\n title: \"Joachim Woods Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/03/joachim_layout.jpg\",\n \n color: 'pink',\n },\n 'map-26': {\n id: \"note-26\",\n\n title: \"Reis Wildlife Area\",\n body: \"https://howardcounty.iowa.gov/mt-content/uploads/2020/09/reis_layout.jpg\",\n \n \n color: 'blue',\n },\n \n },\n currentNote: {\n id: null,\n title: 'Conservation Maps',\n body: 'https://howardcounty.iowa.gov/mt-content/uploads/2020/03/howardcountymap_layout.jpg',\n color: '',\n },\n };\n }\n\n setCurrentNote(note) {\n this.setState({ currentNote: note });\n }\n render() {\n return (\n \n \n \n );\n }\n }\n\n\nexport default App;\n\n\n\n\n\n\n\n\n\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.0/8 are 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 headers: { 'Service-Worker': 'script' },\n })\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\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\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(\n \n \n ,\n document.getElementById('root')\n);\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":""}