PageSourceSearch

https://www.swellmap.com/_next/static/chunks/5135.1e94f9ee87f2952d.js

js swellmap.com collected 2026-09-27 02:20:18 UTC 3,330 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5135],{10340:(t,e,o)=>{o.r(e),o.d(e,{default:()=>v});var l=o(37876),n=o(14232),a=o(89099),r=o(1105),c=o(22372),s=o.n(c),i=o(16895),u=o(45975),d=o(80391),p=o(64934),m=o(61171),f=o(2921),h=o(21744),x=o(34501);let v=()=>{var t;let e=(0,a.useRouter)(),o=(0,f.QJ)(),{forecastType:c,area:v,region:y}=(0,r.d4)(t=>t.navigation),[g,b]=(0,n.useState)(null),[F,j]=(0,n.useState)((0,f.GV)(v.mapForecasts)),[k,S]=(0,n.useState)(null),[A,C]=(0,n.useState)(!!e.query.lon&&!!e.query.lat),[q,z]=(0,n.useState)(!A),E=(0,n.useRef)(!1),w=(0,n.useCallback)(t=>{null!==t&&b(t.leafletElement)},[]),M=(0,n.useRef)(0);(0,n.useEffect)(()=>{S(null),A?C(!1):(z(!0),v&&j((0,f.GV)(v.mapForecasts)))},[v]),(0,n.useEffect)(()=>{S(null),!A&&(z(!0),y&&j((0,f.GV)(y.locations)))},[y]),(0,n.useLayoutEffect)(()=>{let t=document.querySelectorAll(".leaflet-marker-icon");for(let e=0;e<t.length;++e)t[e].setAttribute("tabindex","-1");let e=document.querySelectorAll(".leaflet-container a");for(let t=0;t<e.length;++t)e[t].setAttribute("tabindex","-1")});let Z=(0,n.useMemo)(()=>{if(v.mapForecasts&&g){let t=g.getZoom();return(t>3&&t<=5?s()(v.mapForecasts,{isMajorSmall:!0}):t>5&&t<8?s()(v.mapForecasts,{isMajor:!0}):v.mapForecasts).map(n=>{var a;return(0,l.jsx)(u.A,{icon:(0,f.R8)(n.summary_icon,n.summary_description,o),position:[n.lat,n.lon],onClick:()=>{var t;return t=n.title,void e.push("/".concat(c,"-forecasts/").concat(v.id,"/").concat(t))},children:(0,l.jsx)(f.FS,{permanent:t<8&&t>4,offset:n.tooltipPosition?(0,i.point)(2,0):(0,i.point)(-42,0),direction:null!=(a=n.tooltipPosition)?a:"left",interactive:!0,children:(0,m.EM)(n.title)})},n.title+t)})}return null},[v,null==g?void 0:g.getZoom()]);return(0,l.jsxs)(f.VZ,{ref:w,maxZoom:18,zoomControl:!1,center:A?[e.query.lat,e.query.lon]:null,zoom:A?null!=(t=e.query.z)?t:10:null,bounds:q?F:null,boundsOptions:{maxZoom:12},useFlyTo:!0,scrollWheelZoom:!1,onZoomEnd:()=>{z(!1)},onMoveEnd:()=>{if(E.current||e.query.lon||e.query.lat){let t=null==g?void 0:g.getCenter(),o=null==g?void 0:g.getZoom();e.replace("/".concat(c,"-forecasts/").concat(v.id,"?lon=").concat(t.lng,"&lat=").concat(t.lat,"&z=").concat(o),void 0,{shallow:!0})}else E.current=!0},keyboard:!1,onClick:t=>{M.current++,window.setTimeout(()=>{1===M.current&&(S(t.latlng),M.current=0)},300)},onDblClick:()=>{M.current=0},tap:!1,children:[(0,l.jsx)(d.A,{position:"topright"}),(0,l.jsx)(p.A,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}),(0,l.jsx)(x.s,{}),(0,l.jsx)(h.MapAdvert,{}),Z,k&&(0,l.jsx)(u.A,{position:k,icon:(0,f.aY)(o),onClick:()=>{e.push("/".concat(c,"-forecasts/").concat(v.id,"/on-demand?lon=").concat(k.lng.toFixed(3),"&lat=").concat(k.lat.toFixed(3)))},keyboard:!1,children:(0,l.jsx)(f.FS,{children:"Forecast for ".concat(k.lng.toFixed(3),", ").concat(k.lat.toFixed(3))})})]})}},55978:(t,e,o)=>{var l=o(29563);e.A=void 0;var n=l(o(59628)),a=o(37876);e.A=(0,n.default)((0,a.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.