1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fd8490ee-8104-43bb-9ad7-b4fec2254411",e._sentryDebugIdIdentifier="sentry-dbid-fd8490ee-8104-43bb-9ad7-b4fec2254411")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{15050:(e,t,n)=>{n.d(t,{NACMediaBlockComponent:()=>c});var l=n(39422),a=n(28745),i=n(92581),r=n(13554),s=n(55324),o=n(33795);let c=e=>{let{backgroundColor:t,mode:n}=e,{tenant:c}=(0,i.K)(),d="object"==typeof c&&null!==c?c.slug:null,u="bg-".concat(t),m=(0,r.A)(t);return d?(0,l.jsx)("div",{className:(0,s.cn)(u),children:(0,l.jsx)("div",{className:(0,s.cn)("container py-4 w-full text-center ",m),children:(0,l.jsx)(a.NACWidget,{center:d,widget:"media",mediaMode:n})})}):(o.Cp("NACMediaWidget: center not defined"),null)}},22483:(e,t,n)=>{n.d(t,{W:()=>r,g:()=>s});var l=n(39422),a=n(11461),i=n(55324);function r(e){let{label:t,className:n,children:a}=e;return(0,l.jsx)("div",{role:"region","aria-label":t,tabIndex:0,className:"relative w-full max-h-[calc(100dvh-5rem)] overflow-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring lg:max-h-[calc(100dvh-2rem)] xl:max-h-none xl:overflow-visible",children:(0,l.jsx)("table",{className:(0,i.cn)("w-full caption-bottom text-sm",n),children:a})})}function s(e){let{className:t,...n}=e;return(0,l.jsx)(a.A0,{className:(0,i.cn)("[&_th]:sticky [&_th]:top-0 [&_th]:z-20 [&_th]:bg-background [&_th]:shadow-[inset_0_-1px_0_var(--border)] [&_th:first-child]:z-30",t),...n})}},28745:(e,t,n)=>{n.d(t,{NACWidget:()=>c});var l=n(39422),a=n(57562),i=n(56961),r=n(69422),s=n(32504);let o={map:{scriptName:"danger-map",widgetDataKey:"mapWidgetData",widgetControllerKey:"mapWidget"},forecast:{scriptName:"forecasts",widgetDataKey:"forecastWidgetData",widgetControllerKey:"forecastWidget"},warnings:{scriptName:"warnings",widgetDataKey:"warningWidgetData",widgetControllerKey:"warningsWidget"},stations:{scriptName:"stations",widgetDataKey:"stationWidgetData",widgetControllerKey:"stationWidget"},observations:{scriptName:"observations",widgetDataKey:"obsWidgetData",widgetControllerKey:"obsWidget"},media:{scriptName:"media",widgetDataKey:"mediaWidgetData",widgetControllerKey:"mediaWidget"}};function c(e){let{center:t,widget:n,mediaMode:c,mapHeight:d}=e,{version:u,baseUrl:m,devMode:x}=(0,a.P)(),h="nac-widget-".concat(n),p=m.replace(/\/+$/,""),f="".concat(p,"/").concat(u),{scriptName:g,widgetDataKey:v,widgetControllerKey:w}=o[n];(0,r.useEffect)(function(){let e;(e="".concat(f,"/").concat(g,".css"),new Promise((t,n)=>{if(document.querySelector('link[href="'.concat(e,'"]')))return void t(e);let l=document.createElement("link");l.type="text/css",l.rel="stylesheet",l.onload=()=>t(e),l.onerror=()=>n(e),l.href=e;let a=document.head.querySelector('link[rel="stylesheet"], style');a?document.head.insertBefore(l,a):document.head.prepend(l)})).catch(e=>console.error("Failed to load style for ".concat(n," widget:"),e))},[g,f,n]),(0,r.useEffect)(function(){let e=window.location.pathname,l={googleMapsApiKey:s.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY||"",centerId:("dvac"===t?"nwac":t).toUpperCase(),devMode:x,mountId:"#".concat(h),baseUrl:e,controlledMount:!0,..."media"===n&&{mode:c},..."map"===n&&{height:d}};window[v]=l});let[b,j]=(0,r.useState)(!1);return(0,r.useEffect)(function(){return b&&window[w]&&!window[w]._mounted&&window[w].mount(),()=>{window[w]&&window[w]._mounted&&window[w].unmount()}},[w,b]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{id:"widget-container","data-widget":n,children:(0,l.jsx)("div",{id:h})}),(0,l.jsx)(i.default,{src:"".concat(f,"/").concat(g,".js"),strategy:"afterInteractive",crossOrigin:"anonymous",type:"module",onReady:()=>{j(!0)}})]})}},31445:(e,t,n)=>{n.d(t,{PrecipTableClient:()=>S});var l=n(39422),a=n(11461);n(81998),n(60220);let i=[1,3,6,12,24,48,72],r=[...i.map(e=>({value:"".concat(e,"h"),label:"".concat(e,"H total")})),{value:"lastUpdate",label:"Last update"},{value:"latitude",label:"Latitude"},{value:"longitude",label:"Longitude"},{value:"elevation",label:"Elevation"}].map(e=>e.value);var s=n(55324),o=n(3297),c=n(89834),d=n(89655),u=n(69422),m=n(22483),x=n(70689);let h={imperial:"in",metric:"mm"},p={imperial:"ft",metric:"m"};function f(e,t){return"number"==typeof t?e.totals[t]:"name"===t?e.name:"lastUpdate"===t?e.lastUpdateMs:e[t]}function g(e,t){return"string"==typeof e?e.localeCompare(String(t)):Number(e)-Number(t)}function v(e){let{active:t,desc:n}=e;return t?n?(0,l.jsx)(c.A,{className:"h-4 w-4","aria-hidden":!0}):(0,l.jsx)(d.A,{className:"h-4 w-4","aria-hidden":!0}):(0,l.jsx)(o.A,{className:"h-4 w-4 text-muted-foreground group-hover:text-foreground","aria-hidden":!0})}function w(e){let{label:t,sublabel:n,active:a,desc:i,onClick:r}=e;return(0,l.jsxs)("button",{type:"button",onClick:r,className:"group cursor-pointer",title:"Sort by ".concat(t),children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 font-semibold text-foreground",children:[t,(0,l.jsx)(v,{active:a,desc:i})]}),n&&(0,l.jsx)("div",{className:"text-sm font-normal text-muted-foreground",children:n})]})}function b(e){let{label:t,sublabel:n,state:i,sticky:r=!1}=e;return(0,l.jsx)(a.nd,{"aria-sort":function(e,t){if(e)return t?"descending":"ascending"}(i.active,i.desc),className:(0,s.cn)("whitespace-nowrap px-2 text-right al
1ign-top",r&&"sticky left-0 z-10 bg-background text-left"),children:(0,l.jsx)(w,{label:t,sublabel:n,active:i.active,desc:i.desc,onClick:i.onClick})})}function j(e){let{row:t,unit:n,visible:i}=e,r=!t.lastUpdate;return(0,l.jsxs)(a.Hj,{className:"bg-background even:bg-muted",children:[(0,l.jsx)(a.nA,{className:"sticky left-0 z-10 whitespace-nowrap bg-inherit px-2 py-1.5 font-medium",children:t.name}),(0,l.jsx)(y,{row:t,unit:n,windows:i.windows}),i.has("lastUpdate")&&(0,l.jsx)(a.nA,{className:(0,s.cn)("whitespace-nowrap px-2 py-1.5 text-right",r&&"text-muted-foreground"),children:r?"no report in 72H":t.lastUpdate}),i.has("latitude")&&(0,l.jsx)(a.nA,{className:"px-2 py-1.5 text-right",children:null!=t.latitude?t.latitude.toFixed(4):"â"}),i.has("longitude")&&(0,l.jsx)(a.nA,{className:"px-2 py-1.5 text-right",children:null!=t.longitude?Math.abs(t.longitude).toFixed(4):"â"}),i.has("elevation")&&(0,l.jsx)(a.nA,{className:"px-2 py-1.5 text-right",children:null==t.elevation?"â":("metric"===n?Math.round(.3048*t.elevation):t.elevation).toLocaleString()})]})}function y(e){let{row:t,unit:n,windows:i}=e;return 0===i.length?null:t.hasData?i.map(e=>{let i=t.totals[e];return(0,l.jsx)(a.nA,{className:(0,s.cn)("px-2 py-1.5 text-right",null==i&&"text-muted-foreground"),children:null==i?"â":"metric"===n?(25.4*i).toFixed(1):i.toFixed(2)},e)}):(0,l.jsx)(a.nA,{colSpan:i.length,className:"px-2 py-1.5 text-center text-muted-foreground",children:"missing"})}function N(e){let{sort:t,onSort:n,unit:i,timezoneLabel:r,visible:s}=e,o=e=>({active:(null==t?void 0:t.key)===e,desc:(null==t?void 0:t.key)===e&&t.desc,onClick:()=>n(e)});return(0,l.jsxs)(a.Hj,{children:[(0,l.jsx)(b,{label:"Station",state:o("name"),sticky:!0}),s.windows.map(e=>(0,l.jsx)(b,{label:"".concat(e,"H"),sublabel:h[i],state:o(e)},e)),s.has("lastUpdate")&&(0,l.jsx)(b,{label:"Last update",sublabel:r||void 0,state:o("lastUpdate")}),s.has("latitude")&&(0,l.jsx)(b,{label:"Latitude",sublabel:"\xb0N",state:o("latitude")}),s.has("longitude")&&(0,l.jsx)(b,{label:"Longitude",sublabel:"\xb0W",state:o("longitude")}),s.has("elevation")&&(0,l.jsx)(b,{label:"Elevation",sublabel:p[i],state:o("elevation")})]})}function k(e){let{table:t,columns:n=r}=e,s=(0,u.useMemo)(()=>(function(e){let t=new Set(e);return{windows:i.filter(e=>t.has("".concat(e,"h"))),has:e=>t.has(e)}})(n),[n]),[o,c]=(0,u.useState)(null),[d,h]=(0,u.useState)("imperial"),p=(0,u.useMemo)(()=>o?[...t.rows].sort((e,t)=>(function(e,t,n){let l=f(e,n.key),a=f(t,n.key);return null===l||null===a?Number(null===l)-Number(null===a):n.desc?-g(l,a):g(l,a)})(e,t,o)):t.rows,[t.rows,o]);return 0===t.rows.length?(0,l.jsx)("p",{className:"text-muted-foreground",children:"No precipitation readings from these stations in the last 72 hours."}):(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-3",children:(0,l.jsx)(x.d,{unit:d,onChange:h})}),(0,l.jsxs)(m.W,{label:"Accumulated precipitation by station",className:"mx-auto w-auto text-base",children:[(0,l.jsx)(m.g,{children:(0,l.jsx)(N,{sort:o,onSort:e=>c(t=>(null==t?void 0:t.key)===e?{key:e,desc:!t.desc}:{key:e,desc:"name"!==e}),unit:d,timezoneLabel:t.timezoneLabel,visible:s})}),(0,l.jsx)(a.BF,{children:p.map(e=>(0,l.jsx)(j,{row:e,unit:d,visible:s},"".concat(e.source,":").concat(e.stid)))})]})]})}var C=n(35291);function A(e){let{children:t}=e;return(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:t})}function S(e){let{stations:t,columns:n}=e,a=function(e){let t=e.map(C.ux).join(","),[n,l]=(0,u.useState)({status:"loading"});return(0,u.useEffect)(()=>{let e=new AbortController;return l({status:"loading"}),fetch("/weather/precip-data?stations=".concat(encodeURIComponent(t)),{signal:e.signal}).then(e=>e.ok?e.json():Promise.reject(Error("HTTP ".concat(e.status)))).then(e=>l({status:"ready",table:e})).catch(()=>{e.signal.aborted||l({status:"error"})}),()=>e.abort()},[t]),n}(t);return"loading"===a.status?(0,l.jsx)("div",{role:"status","aria-label":"Loading precipitation totals",className:"h-96 animate-pulse rounded-md bg-muted"}):"error"===a.status?(0,l.jsx)(A,{children:"Precipitation data is unavailable right now. Please try again shortly."}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k,{table:a.table,columns:n}),(0,l.jsx)(A,{children:"Data not quality controlled. Accumulated precipitation does not reflect weather station outages or other technical errors."})]})}},35291:(e,t,n)=>
1{function l(e){return"".concat(e.source,":").concat(e.stid)}function a(e){let t=e.indexOf(":");return t<=0||t===e.length-1?null:{source:e.slice(0,t),stid:e.slice(t+1)}}n.d(t,{bs:()=>a,ux:()=>l})},42885:(e,t,n)=>{n.d(t,{GalleryGrid:()=>F});var l=n(39422),a=n(5581),i=n(50191),r=n(55324);let s={youtube:"YouTube",vimeo:"Vimeo"},o=/^[a-zA-Z0-9_-]{11}$/,c=/^[0-9]+$/;function d(e){if(!e||"string"!=typeof e)return null;let t=e.trim();try{let e=new URL(t),n=e.hostname.replace(/^www\./,""),l=e.pathname.split("/").filter(Boolean);if("youtu.be"===n){let e=l[0];return e&&o.test(e)?{provider:"youtube",id:e}:null}if("youtube.com"===n||"m.youtube.com"===n||"youtube-nocookie.com"===n){let t=e.searchParams.get("v");if(t&&o.test(t))return{provider:"youtube",id:t};if(["embed","shorts","v"].includes(l[0])&&l[1])return o.test(l[1])?{provider:"youtube",id:l[1]}:null;return null}if("vimeo.com"===n||"player.vimeo.com"===n){let e="video"===l[0]?l[1]:l[0];return e&&c.test(e)?{provider:"vimeo",id:e}:null}return null}catch(e){return o.test(t)?{provider:"youtube",id:t}:null}}function u(e){let{provider:t,id:n}=e;return"youtube"===t?"https://i.ytimg.com/vi/".concat(n,"/hqdefault.jpg"):null}var m=n(49370),x=n(69422),h=n(41232),p=n(39057),f=n(97878),g=n(18405),v=n(74611),w=n(38268),b=n(6771);function j(e){var t,n,a;let{open:i,onOpenChange:r,title:s,index:o,count:c,onPrev:d,onNext:u,zoomRef:m,children:h}=e,p=c>1,f=(0,x.useRef)(null);return t=i&&p,n=d,a=u,(0,x.useEffect)(()=>{if(!t)return;let e=e=>{"ArrowLeft"===e.key?(e.stopPropagation(),n()):"ArrowRight"===e.key&&(e.stopPropagation(),a())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t,n,a]),(0,l.jsx)(b.Dialog,{open:i,onOpenChange:r,children:(0,l.jsxs)(b.DialogContent,{ref:f,hideClose:!0,onOpenAutoFocus:e=>{var t;e.preventDefault(),null==(t=f.current)||t.focus()},className:"h-[100dvh] w-screen max-w-none border-0 bg-transparent p-0 shadow-none focus:outline-none sm:rounded-none",overlayClassName:"bg-black/95",children:[(0,l.jsx)(b.DialogTitle,{className:"sr-only",children:s}),(0,l.jsxs)(b.DialogDescription,{className:"sr-only",children:["Viewing item ",o+1," of ",c,". Use the arrow keys to move between items."]}),h,(0,l.jsx)(k,{index:o,count:c,zoomRef:m}),(0,l.jsx)(A,{show:p,onPrev:d,onNext:u})]})})}function y(e){let{caption:t,children:n}=e;return(0,l.jsxs)("div",{className:"flex h-[100dvh] flex-col px-4 pb-5 pt-14 sm:px-20",children:[(0,l.jsx)("div",{className:"relative flex min-h-0 flex-1 items-center justify-center",children:n}),t&&(0,l.jsx)("div",{className:"mx-auto max-h-[20vh] w-full max-w-3xl shrink-0 overflow-y-auto pt-4 text-center text-sm text-white/80",children:t})]})}let N="flex h-9 w-9 items-center justify-center rounded-full text-white/80 transition hover:bg-white/20 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60";function k(e){let{index:t,count:n,zoomRef:a}=e;return(0,l.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-[70] flex items-start justify-between p-3",children:[n>1?(0,l.jsxs)("span",{className:"rounded-full bg-black/40 px-3 py-1 text-sm tabular-nums text-white/80 backdrop-blur",children:[t+1," / ",n]}):(0,l.jsx)("span",{}),(0,l.jsxs)("div",{className:"pointer-events-auto flex items-center gap-1 rounded-full bg-black/40 p-1 backdrop-blur",children:[a&&(0,l.jsx)(C,{zoomRef:a}),(0,l.jsx)(b.HM,{className:N,"aria-label":"Close",children:(0,l.jsx)(h.A,{className:"h-5 w-5"})})]})]})}function C(e){let{zoomRef:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=t.current)?void 0:e.zoomIn()},"aria-label":"Zoom in",className:N,children:(0,l.jsx)(p.A,{className:"h-5 w-5"})}),(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=t.current)?void 0:e.zoomOut()},"aria-label":"Zoom out",className:N,children:(0,l.jsx)(f.A,{className:"h-5 w-5"})}),(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=t.current)?void 0:e.resetTransform()},"aria-label":"Reset zoom",className:N,children:(0,l.jsx)(g.A,{className:"h-5 w-5"})})]})}function A(e){let{show:t,onPrev:n,onNext:a}=e;return t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S,{direction:"prev",onClick:n}),(0,l.jsx)(S,{direction:"next",onClick:a})]}):null}function S(e){let{direction:t,onClick:n}=e,a="prev"===t,i=a?v.A:w.A;return(0,l.jsx)("button",{type:"button",onClick:e=>{e.detail>0&&e.currentTarget.blur(),n()},"aria-label":a?"Previous":"Next",className:"group absolute inset-y-0 z-[60] flex w-[10vw] min-w-14 items-center focus:outline-none ".concat(a?"left-0 justify-start pl-2 sm:pl-4":"right-0 justify-end pr-2 sm:pr-4"),children:(0,l.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-md bg-white/10 text-white opacity-70 backdrop-blur transition group-hover:bg-white/20 group-hover:opacity-100 group-focus-visible:ring-2 group-focus-visible:ring-white/60",children:(0,l.jsx)(i,{className:"h-6 w-6"})})})}var _=n(72865),D=n(77554);let I=e=>{let{resource:t,transformRef:n}=e,i=(0,x.useRef)(null),[s,o]=(0,x.useState)(1);return(0,l.jsx)(D.GT,{ref:n,initialScale:1,minScale:1,maxScale:5,centerOnInit:!0,doubleClick:{disabled:!0},wheel:{step:.15},onTransform:(e,t)=>
1o(t.scale),children:e=>{let{zoomIn:n,resetTransform:o,instance:c}=e;return(0,l.jsx)(D.WZ,{wrapperStyle:{width:"100%",height:"100%"},contentStyle:{width:"100%",height:"100%"},children:(0,l.jsx)("div",{className:(0,r.cn)("relative h-full w-full",s>1?"cursor-grab active:cursor-grabbing":"cursor-zoom-in"),onPointerDown:e=>{i.current={x:e.clientX,y:e.clientY}},onPointerUp:e=>{let t=i.current;i.current=null,!t||Math.hypot(e.clientX-t.x,e.clientY-t.y)>6||(c.state.scale>1?o():n())},children:(0,l.jsx)(a.ImageMedia,{resource:t,fill:!0,imgClassName:"object-contain pointer-events-none"})})})}})};var P=n(4057);let M=e=>{var t;return"object"==typeof e&&null!==e&&!!(null==(t=e.mimeType)?void 0:t.includes("video"))},T=e=>"video"===e.type||(0,P.Lu)(e.media),U=e=>{let{items:t,open:n,onOpenChange:a,startIndex:i}=e,{setApi:r,index:s,scrollPrev:o,scrollNext:c}=function(e,t){let[n,l]=(0,x.useState)(),[a,i]=(0,x.useState)(e);return(0,x.useEffect)(()=>{t?i(e):l(void 0)},[t,e]),(0,x.useEffect)(()=>{if(!n)return;n.scrollTo(e,!0),i(n.selectedScrollSnap());let t=()=>i(n.selectedScrollSnap());return n.on("select",t),()=>{n.off("select",t)}},[n,e]),{setApi:l,index:a,scrollPrev:(0,x.useCallback)(()=>null==n?void 0:n.scrollPrev(),[n]),scrollNext:(0,x.useCallback)(()=>null==n?void 0:n.scrollNext(),[n])}}(i,n),d=(0,x.useRef)(null),u=t[s],m=(null==u?void 0:u.type)==="upload"&&!M(u.media);return(0,l.jsx)(j,{open:n,onOpenChange:a,title:"Gallery",index:s,count:t.length,onPrev:o,onNext:c,zoomRef:m?d:void 0,children:n&&(0,l.jsx)(_.FN,{opts:{startIndex:i,loop:t.length>1,watchDrag:!1},setApi:r,children:(0,l.jsx)(_.Wk,{children:t.map((e,t)=>{var n;return(0,l.jsx)(_.A7,{children:(0,l.jsx)(y,{caption:e.caption?(0,l.jsx)("p",{className:"text-white",children:e.caption}):void 0,children:(0,l.jsx)(z,{item:e,isActive:t===s,transformRef:d})})},null!=(n=e.id)?n:t)})})})})};function z(e){let{item:t,isActive:n,transformRef:r}=e;if("video"===t.type){let e=d(t.videoUrl);return e?(0,l.jsx)(E,{video:e,title:t.videoTitle,isActive:n}):(0,l.jsx)("a",{href:t.videoUrl||"#",target:"_blank",rel:"noopener noreferrer",className:"text-white underline",children:t.videoTitle||"Open video"})}return M(t.media)?(0,l.jsx)(i.VideoMedia,{resource:t.media,showVideoControls:!0,videoClassName:"max-h-full w-auto max-w-full"}):n?(0,l.jsx)(I,{resource:t.media,transformRef:r}):(0,l.jsx)("div",{className:"relative h-full w-full",children:(0,l.jsx)(a.ImageMedia,{resource:t.media,fill:!0,imgClassName:"object-contain"})})}function E(e){let{video:t,title:n,isActive:a}=e;if(a)return(0,l.jsx)("iframe",{className:"aspect-video max-h-full w-full max-w-5xl",src:function(e){let{provider:t,id:n}=e,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(t){case"youtube":{let e=new URLSearchParams({rel:"0",...l?{autoplay:"1"}:{}});return"https://www.youtube-nocookie.com/embed/".concat(n,"?").concat(e.toString())}case"vimeo":{let e=new URLSearchParams(l?{autoplay:"1"}:{}).toString();return"https://player.vimeo.com/video/".concat(n).concat(e?"?".concat(e):"")}}}(t,!0),title:n||"".concat(s[t.provider]," video"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0});let i=u(t);return i?(0,l.jsx)("img",{src:i,alt:n||"",className:"max-h-full max-w-full object-contain"}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 text-center text-white",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-white/70",children:s[t.provider]}),n&&(0,l.jsx)("span",{className:"text-sm",children:n})]})}let W={2:"grid grid-cols-1 sm:grid-cols-2",3:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"},L={2:"columns-1 sm:columns-2",3:"columns-1 sm:columns-2 lg:columns-3",4:"columns-1 sm:columns-2 md:columns-3 lg:columns-4"},K={2:"(max-width: 640px) 100vw, 50vw",3:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",4:"(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw"},R=()=>(0,l.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,l.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-black/60 transition group-hover:bg-black/80",children:(0,l.jsx)(m.A,{className:"h-7 w-7 fill-white text-white"})})}),F=e=>{let{items:t,layout:n,columns:o}=e,[c,m]=(0,x.useState)(!1),[h,p]=(0,x.useState)(0),f=t.filter(T),g="masonry"===n,v=g?(0,r.cn)(L[o],"gap-3 [&>*]:mb-3 [&>
1*]:break-inside-avoid"):(0,r.cn)(W[o],"gap-3");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:v,children:f.map((e,t)=>{var n;return(0,l.jsx)("button",{type:"button",onClick:()=>{p(t),m(!0)},className:"group block w-full cursor-pointer overflow-hidden text-left","aria-label":e.caption||e.videoTitle||"Open item",children:(e=>{if("video"===e.type){let t=d(e.videoUrl);if(!t)return(0,l.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-muted p-4 text-center text-sm text-muted-foreground",children:e.videoTitle||"Video unavailable"});let n=u(t);return(0,l.jsxs)("div",{className:"relative aspect-video w-full overflow-hidden bg-black",children:[n?(0,l.jsx)("img",{src:n,alt:e.videoTitle||"",loading:"lazy",className:"h-full w-full object-cover transition-transform duration-300 ease-in-out group-hover:scale-105"}):(0,l.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 p-4 text-center",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-white/70",children:s[t.provider]}),e.videoTitle&&(0,l.jsx)("span",{className:"line-clamp-2 text-sm text-white",children:e.videoTitle})]}),(0,l.jsx)(R,{})]})}return M(e.media)?(0,l.jsxs)("div",{className:(0,r.cn)("relative w-full overflow-hidden bg-black",!g&&"aspect-square"),children:[(0,l.jsx)(i.VideoMedia,{resource:e.media,showVideoControls:!1,videoClassName:(0,r.cn)("w-full",g?"h-auto":"h-full object-cover")}),(0,l.jsx)(R,{})]}):g?(0,l.jsx)(a.ImageMedia,{resource:e.media,pictureClassName:"!my-0 block",imgClassName:"w-full h-auto transition-transform duration-300 ease-in-out group-hover:scale-105",sizes:K[o]}):(0,l.jsx)("div",{className:"relative aspect-square w-full overflow-hidden",children:(0,l.jsx)(a.ImageMedia,{resource:e.media,fill:!0,imgClassName:"object-cover transition-transform duration-300 ease-in-out group-hover:scale-105",sizes:K[o]})})})(e)},null!=(n=e.id)?n:t)})}),(0,l.jsx)(U,{items:f,open:c,onOpenChange:m,startIndex:h})]})}},70689:(e,t,n)=>{n.d(t,{d:()=>o,B:()=>s});var l=n(39422),a=n(55324),i=n(69422);let r="nwac-station-graph-units";function s(){let[e,t]=(0,i.useState)("imperial");return(0,i.useEffect)(()=>{t("metric"===function(e){try{return window.localStorage.getItem(e)}catch(e){return null}}(r)?"metric":"imperial")},[]),[e,e=>{t(e);try{window.localStorage.setItem(r,e)}catch(e){}}]}function o(e){let{unit:t,onChange:n}=e,i=(e,i,r)=>(0,l.jsxs)("button",{type:"button",onClick:()=>n(e),"aria-pressed":t===e,"aria-label":i,className:(0,a.cn)("relative z-10 w-12 rounded-md py-1.5 text-center text-sm transition-colors sm:w-20",t===e?"text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,l.jsx)("span",{className:"sm:hidden",children:r}),(0,l.jsx)("span",{className:"hidden sm:inline",children:i})]});return(0,l.jsxs)("div",{role:"group","aria-label":"Units",className:"relative inline-flex rounded-md bg-muted p-1",children:[(0,l.jsx)("span",{"aria-hidden":!0,className:(0,a.cn)("absolute inset-y-1 left-1 w-12 rounded-md bg-primary transition-transform duration-200 sm:w-20","metric"===t&&"translate-x-12 sm:translate-x-20")}),i("imperial","Imperial","Imp"),i("metric","Metric","Met")]})}}}]);
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.