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AYC,MAGrD,C,2ECjGEjD,IAAAA,MAAc,CAAEgE,OAAQ,mCAAoCC,aAAc,aAAcC,qBAAsB,CAAC,aAAc,WAAYC,WAAY,MAAOC,OAAQ,KAAMC,QAAS,CAAC,IAAIC,QAI1L,IAAMC,EAA0BC,EAAAA,KAMhC,SAASC,I,IACPC,EAA0B,OAA1BA,EAAAA,SAASC,iBAAiB,mBAA1BD,EAA4CE,SAAQC,SAAAA,GACxB,IAAtBC,OAAOC,aACTF,EAAKG,UAAUC,IAAI,qBACnBJ,EAAKG,UAAUE,OAAO,wBACU,IAAvBJ,OAAOC,aAChBF,EAAKG,UAAUE,OAAO,qBACtBL,EAAKG,UAAUC,IAAI,wBAEnBJ,EAAKG,UAAUE,OAAO,qBACtBL,EAAKG,UAAUE,OAAO,sBAE1B,GACF,CAlBsBV,EAAQ,KAChBW,WAAWZ,GAEzBC,EAAAA,KAiBA,IAAMY,EAAWZ,EAAQ,KACzBE,SAASW,iBAAiB,oBAAoB,WAC5CZ,IACA,IAAMa,EAASZ,SAASa,cAAc,WAClCD,IACF,IAAIF,EAASE,EAAQ,CACnB,QAAW,CACT,QAAW,WACX,OAAU,YACV,SAAY,aAEbE,OAECV,OAAOW,SAASC,MAClBC,YAAW,W,IACTjB,EAAmD,OAAnDA,EAAAA,SAASkB,eAAed,OAAOW,SAASC,KAAKG,MAAM,MAAnDnB,EAAwDoB,iBACxDR,EAAON,UAAUC,IAAI,UACvB,GAAG,KAGT,IAEAH,OAAOO,iBAAiB,oBAAqBZ,E","sources":["webpack:///./app/javascript/components/ sync ^\\.\\/.*$","webpack:///./app/javascript/images/ sync ^\\.\\/.*$","webpack:///./app/javascript/components/BuoyChart.jsx","webpack:///./app/javascript/components/SpotChart.jsx","webpack:///./app/javascript/application.js.erb"],"sourcesContent":["var map = {\n\t\"./BuoyChart\": 494,\n\t\"./BuoyChart.jsx\": 494,\n\t\"./SpotChart\": 535,\n\t\"./SpotChart.jsx\": 535\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 900;","var map = {\n\t\"./Msw.png\": 412,\n\t\"./Msw.svg\": 75,\n\t\"./Spitcast.png\": 8,\n\t\"./Surfline.png\": 837,\n\t\"./Surfline.svg\": 858,\n\t\"./map.svg\": 146,\n\t\"./swell-marker.svg\": 254,\n\t\"./wave.jpg\": 240,\n\t\"./wave.png\": 692,\n\t\"./wave.svg\": 59,\n\t\"./wind-marker.svg\": 201\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 190;","import Highcharts from 'highcharts'\nimport HighchartsReact from 'highcharts-react-official'\nimport React from 'react'\nimport Bugsnag from '@bugsnag/js'\n\nconst BuoyChart = props => {\n const options = {\n accessibility: {\n enabled: false,\n },\n chart: {\n marginRight: 2,\n spacingLeft: 0,\n style: {\n fontFamily: 'inherit',\n },\n type: 'spline',\n },\n credits: {\n enabled: false,\n },\n legend: {\n borderWidth: 0,\n margin: 0,\n },\n series: props.data,\n title: {\n text: null,\n },\n tooltip: {\n formatter: function() {\n let tooltip = ''\n for (const point of this.points) {\n tooltip += `
● ${point.series.name}: ${point.y.toPrecision(2)}ft from ${point.point.direction}° (${point.point.swell.toPrecision(2)}ft @ ${point.point.period}s)`\n }\n tooltip = `${this.points[0].point.tooltip_time}${tooltip}`\n return tooltip\n },\n shared: true,\n },\n xAxis: {\n categories: props.xLabels,\n labels: {\n style: {\n color: null,\n }\n },\n plotBands: props.plotBands,\n title: {\n text: null,\n },\n },\n yAxis: {\n labels: {\n style: {\n color: null,\n }\n },\n min: 0,\n offset: -8,\n stackLabels: {\n enabled: true,\n style: {\n fontSize: '0.65em',\n fontWeight: 'normal',\n },\n },\n tickInterval: 1,\n title: {\n text: null\n },\n },\n }\n const ErrorBoundary = Bugsnag.client ? Bugsnag.getPlugin('react')?.createErrorBoundary(React) : React.Fragment\n\n return(\n \n \n \n )\n}\n\nexport default BuoyChart\n","import Highcharts from 'highcharts'\nimport HighchartsReact from 'highcharts-react-official'\nimport React from 'react'\nimport Bugsnag from '@bugsnag/js'\n\nconst SpotChart = props => {\n const options = {\n accessibility: {\n enabled: false,\n },\n chart: {\n marginRight: 2,\n spacingLeft: 0,\n style: {\n fontFamily: 'inherit',\n },\n styledMode: true,\n type: 'column',\n },\n credits: {\n enabled: false,\n },\n legend: {\n borderWidth: 0,\n margin: 0,\n },\n plotOptions: {\n areaspline: {},\n column: {\n borderRadius: 0,\n borderWidth: 0,\n groupPadding: 0.07,\n dataLabels: {\n enabled: false,\n },\n },\n series: {\n marker: {},\n stacking: 'normal',\n },\n },\n series: props.data,\n title: {\n text: null,\n },\n tooltip: {\n formatter: function() {\n let avg = 0\n let min = 0\n let max = 0\n let rating\n let tooltip = ''\n for (const point of this.points.reverse()) {\n if (point.series.name === 'Min') {\n tooltip = `${point.point.tooltip_time}${tooltip}`\n rating = point.point.rating\n min = point.y\n } else if (point.series.name === 'Avg') avg = point.y\n else max = point.y\n }\n tooltip += `
Max: ${(min + avg + max).toPrecision(2)} ft`\n tooltip += `
Avg: ${(min + avg).toPrecision(2)} ft`\n tooltip += `
Min: ${min.toPrecision(2)} ft`\n tooltip += `
${rating}`\n return tooltip\n },\n shared: true,\n },\n xAxis: {\n categories: props.xLabels,\n plotBands: props.plotBands,\n title: {\n text: null,\n },\n },\n yAxis: {\n max: props.max,\n offset: -8,\n stackLabels: {\n enabled: true,\n formatter: function() {\n return Highcharts.numberFormat(this.total, 1);\n },\n style: {\n fontSize: '0.65em',\n fontWeight: 'normal',\n },\n },\n tickInterval: 1,\n title: {\n text: null\n },\n },\n }\n const ErrorBoundary = Bugsnag.client ? Bugsnag.getPlugin('react')?.createErrorBoundary(React) : React.Fragment\n\n return(\n \n \n \n )\n}\n\nexport default SpotChart\n","import Bugsnag from '@bugsnag/js'\nimport BugsnagPluginReact from '@bugsnag/plugin-react'\n\n\n Bugsnag.start({ apiKey: 'd0457af0855497e1c4d29c59b55faea5', releaseStage: 'production', enabledReleaseStages: [\"production\", \"staging\"], appVersion: 'dev', logger: null, plugins: [new BugsnagPluginReact()]})\n\n\n// Support component names relative to this directory:\nconst componentRequireContext = require.context(\"components\", true)\nconst ReactRailsUJS = require(\"react_ujs\")\nReactRailsUJS.useContext(componentRequireContext)\n\nrequire.context('images', true)\n\nfunction setSafePadding() {\n document.querySelectorAll('.safe-padding')?.forEach(node => {\n if (window.orientation == 90) { // notch is on the left\n node.classList.add('safe-padding-left')\n node.classList.remove('safe-padding-right')\n } else if (window.orientation == -90) { // notch on the right\n node.classList.remove('safe-padding-left')\n node.classList.add('safe-padding-right')\n } else {\n node.classList.remove('safe-padding-left')\n node.classList.remove('safe-padding-right')\n }\n })\n}\n\nconst Headroom = require(\"headroom.js\")\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n setSafePadding()\n const navbar = document.querySelector(\".navbar\")\n if (navbar) {\n new Headroom(navbar, {\n \"classes\": {\n \"initial\": \"animated\",\n \"pinned\": \"slideDown\",\n \"unpinned\": \"slideUp\"\n }\n }).init()\n\n if (window.location.hash) {\n setTimeout(() => {\n document.getElementById(window.location.hash.slice(1))?.scrollIntoView()\n navbar.classList.add(\"slideUp\")\n }, 1000)\n }\n }\n})\n\nwindow.addEventListener(\"orientationchange\", setSafePadding)\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","props","Bugsnag","options","accessibility","enabled","chart","marginRight","spacingLeft","style","fontFamily","type","credits","legend","borderWidth","margin","series","data","title","text","tooltip","formatter","this","points","point","color","name","y","toPrecision","direction","swell","period","tooltip_time","shared","xAxis","categories","xLabels","labels","plotBands","yAxis","min","offset","stackLabels","fontSize","fontWeight","tickInterval","ErrorBoundary","createErrorBoundary","React","HighchartsReact","highcharts","Highcharts","styledMode","plotOptions","areaspline","column","borderRadius","groupPadding","dataLabels","marker","stacking","rating","avg","max","reverse","total","apiKey","releaseStage","enabledReleaseStages","appVersion","logger","plugins","BugsnagPluginReact","componentRequireContext","require","setSafePadding","document","querySelectorAll","forEach","node","window","orientation","classList","add","remove","useContext","Headroom","addEventListener","navbar","querySelector","init","location","hash","setTimeout","getElementById","slice","scrollIntoView"],"sourceRoot":""}