"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5921],{592:(e,t)=>{t.C=void 0,t.C=(e,t,a)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||a||null:a||null},2957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:a,areaId:n,adminDistrictCode:r,language:l}=e,i={format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),a&&(i.countryCode=a),n&&(i.areaId=n),r&&(i.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:a,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},11470:(e,t,a)=>{a.r(t),a.d(t,{TaboolaBlock:()=>h,default:()=>x});var n=a(66881),r=a(89925),l=a(31321),i=a(99164),s=a(60012),o=a(13578),d=a(55180);function c(e){let{url:t,scriptId:a}=e;return window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),(0,n.jsx)(d.default,{async:!0,id:a,src:t})}function u(e){let{pageType:t,placements:a,pageUrl:n}=e;return(0,r.useEffect)(()=>{window._taboola=window._taboola||[],window._taboola.push({[t]:"auto",url:n}),a.forEach(e=>{window._taboola.push({...e})}),window._taboola.push({flush:!0})},[t,n,a]),null}var m=a(51310);let h=e=>{let{placements:t,pageType:a,className:d="",showTaboola:h}=e,x=(0,o.A)(),f=(0,l.usePathname)(),p="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,r.useEffect)(()=>{if(!h&&x&&p)return()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})}},[x,p,h]);let g=(0,r.useMemo)(()=>{let e=(0,i.yw)();return"".concat(e).concat(f||"")},[f]);return!h&&x&&p?(0,n.jsxs)("section",{className:(0,m.cn)("@container",d),children:[x&&p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{url:p,scriptId:"tb_loader_script"}),(0,n.jsx)(u,{pageType:a,placements:t,pageUrl:g})]}),(0,n.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:p,pageType:a,className:d}}})]}):null},x=h},13578:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(89925),r=a(20895),l=a(98173),i=a(84378);let s=function(){let{DISCONNECTED_user:e}=(0,l.J)(),[t,a]=(0,n.useState)(!1),s=(0,r.md)(i.W);return(0,n.useEffect)(()=>{s&&a((()=>{try{var e,t,a,n;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(a=window)||null==(t=a.DprSdk)?void 0:t.getFeatureFlags();return null==(n=null==e?void 0:e.taboola)||n}return!0}catch(e){return!0}})())},[s]),t&&!(null==e?void 0:e.isUserPremium)}},24123:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,n.fromCompactResponse)(t)||[]).map((a,n)=>e(a,n,t))};let n=a(82862)},24278:(e,t,a)=>{t.vt=void 0,t.v1=o;let n=a(52015),r=a(11195),l=a(56488),i=a(24123),s=a(72990);async function o(e){let a=(0,n.getDailyForecastUrlConfig)(e),i=(0,r.urlFrom)(a),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,l.handleFetchResponse)(s);return(0,t.vt)(o)}t.vt=(0,i.createTransformer)((e,t,a)=>{var n,r,l,i,o,d,c,u,m,h,x,f,p,g,v,b,w,j,N,y,C,T,_,E;return{calendarDayTemperatureMax:null!=(r=e.calendarDayTemperatureMax)?r:0,calendarDayTemperatureMin:null!=(l=e.calendarDayTemperatureMin)?l:0,dayOfWeek:null!=(i=e.dayOfWeek)?i:"",expirationTimeUtc:null!=(o=e.expirationTimeUtc)?o:0,moonPhase:null!=(d=e.moonPhase)?d:"",moonPhaseCode:null!=(c=e.moonPhaseCode)?c:s.MoonPhaseCode.NEW,moonPhaseDay:null!=(u=e.moonPhaseDay)?u:0,moonriseTimeLocal:null!=(m=e.moonriseTimeLocal)?m:"",moonriseTimeUtc:null!=(h=e.moonriseTimeUtc)?h:0,moonsetTimeLocal:null!=(x=e.moonsetTimeLocal)?x:"",moonsetTimeUtc:null!=(f=e.moonsetTimeUtc)?f:0,narrative:null!=(p=e.narrative)?p:"",qpf:null!=(g=e.qpf)?g:0,qpfSnow:null!=(v=e.qpfSnow)?v:0,sunriseTimeLocal:null!=(b=e.sunriseTimeLocal)?b:"",sunriseTimeUtc:null!=(w=e.sunriseTimeUtc)?w:0,sunsetTimeLocal:null!=(j=e.sunsetTimeLocal)?j:"",sunsetTimeUtc:null!=(N=e.sunsetTimeUtc)?N:0,temperatureMax:null!=(y=e.temperatureMax)?y:0,temperatureMin:null!=(C=e.temperatureMin)?C:0,validTimeLocal:null!=(T=e.validTimeLocal)?T:"",validTimeUtc:null!=(_=e.validTimeUtc)?_:0,daypart:null!=(E=null==a||null==(n=a.daypart)?void 0:n[t])?E:{cloudCover:[],dayOrNight:[],daypartName:[],iconCode:[],iconCodeExtend:[],narrative:[],precipChance:[],precipType:[],qpf:[],qpfSnow:[],qualifierCode:[],qualifierPhrase:[],relativeHumidity:[],snowRange:[],temperature:[],temperatureHeatIndex:[],temperatureWindChill:[],thunderCategory:[],thunderIndex:[],uvDescription:[],uvIndex:[],windDirection:[],windDirectionCardinal:[],windPhrase:[],windSpeed:[],wxPhraseLong:[],wxPhraseShort:[]}}})},52015:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:a,language:r,duration:l=n.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(l),query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:a,language:r,duration:l=n.HourlyForecastDuration.TWO_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(l),query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:a,language:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/15minute",query:{geocode:t,units:a,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:a,language:n,duration:r="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(r),query:{geocode:t,units:a,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let n=a(76802)},53232:(e,t,a)=>{t.Sn=s;let n=a(2957),r=a(11195),l=a(56488),i=a(88909);async function s(e){let{geocode:t,language:a="en-US"}=e,s=(0,r.urlFrom)((0,n.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:a})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,l.handleFetchResponse)(o);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},60077:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},65705:(e,t,a)=>{a.r(t),a.d(t,{MorningBriefBlock:()=>z,default:()=>H});var n=a(66881),r=a(89925),l=a(67050),i=a(51680),s=a(37569),o=a(70526),d=a(17857),c=a(29992),u=a(81312),m=a(61005),h=a(65796),x=a(63758),f=a(51310);function p(e){let{className:t,...a}=e;return(0,n.jsx)(h.uB,{"data-slot":"command",className:(0,f.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...a})}function g(e){let{className:t,...a}=e;return(0,n.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,n.jsx)(x.A,{className:"size-4 shrink-0 opacity-50"}),(0,n.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,f.cn)("placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",t),...a})]})}function v(e){let{className:t,...a}=e;return(0,n.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,f.cn)("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",t),...a})}function b(e){let{className:t,...a}=e;return(0,n.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,f.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...a})}function w(e){let{className:t,...a}=e;return(0,n.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,f.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...a})}a(99548);var j=a(37458);function N(e){var t;let{label:a,placeholder:l,className:s,location:h,onChangeLocation:x}=e,[N,y]=(0,r.useState)(!1),[C,T]=(0,r.useState)(""),{isLoading:_,data:E}=function(e){let t=e.trim().length>0,{isLoading:a,data:n,error:r}=(0,c.Ay)(t?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e));return{isLoading:a,data:n,error:r}}((0,u.A)(C,300));return(0,n.jsxs)(m.AM,{open:N,onOpenChange:y,children:[(0,n.jsx)(m.Wv,{asChild:!0,children:(0,n.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,f.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",s),children:[(0,n.jsx)("div",{children:_?(0,n.jsx)(i.A,{className:"animate-spin"}):(0,n.jsx)(j.A,{})}),(0,n.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==h?void 0:h.displayName)?t:a})]})}),(0,n.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,n.jsxs)(p,{shouldFilter:!1,children:[(0,n.jsx)(g,{placeholder:l,value:C,onValueChange:T}),(0,n.jsx)(v,{children:(0,n.jsx)(b,{children:null==E?void 0:E.map(e=>(0,n.jsx)(w,{value:e.locId,onSelect:()=>{null==x||x(e),y(!1)},children:e.address},e.locId))})})]})})]})}var y=a(59864);function C(e){let{label:t,error:a,className:r,...l}=e;return(0,n.jsxs)("div",{className:"w-full",children:[t&&(0,n.jsx)("label",{className:"text-sm",children:t}),(0,n.jsx)(y.p,{...l,className:a?"".concat(r," border-red-500"):r})]})}var T=a(91152);let _={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},E=/\{\{(.*?)\}\}/g;function A(){return(0,n.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(E).map((e,t)=>{let a=_["{{".concat(e,"}}")];return a?(0,n.jsx)(T.default,{href:a.url,className:"underline",children:a.text},t):(0,n.jsx)("span",{children:e},t)})})}let S={src:"/_next/static/media/morning-brief-logo.73126316.svg"},k={src:"/_next/static/media/ellipse.b0c8befa.png"};var I=a(59817),L=a(98387),D=a(1073),P=a(20895),R=a(86397);let M=(0,a(71369).tG)("emailPreferences",null,void 0,{getOnInit:!0});var F=a(98173),U=a(91874);let O=()=>{let[e,t]=(0,P.fp)(M),{user:a}=(0,F.J)(),n=(null==a?void 0:a.userID)||null,l=(null==a?void 0:a.isUserLoggedIn)||!1,i=(0,r.useCallback)(a=>{n&&t({userId:n,expiry:Date.now()+9e5,subscriptions:function(e,t){let a=(null==t?void 0:t.length)?t:U.J3,n={};return e?(null==a||a.forEach(e=>{n[e.subscriptionGroupName]=e}),e.forEach(e=>{n[e.subscriptionGroupName]=e}),Object.values(n)):a}(a,null==e?void 0:e.subscriptions)})},[n,t,null==e?void 0:e.subscriptions]),s=e&&e.userId===n&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(n&&l&&!s?"getEmailPreferencesStatus/".concat(n):void 0,()=>(0,R.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{n&&e&&i(e.subscriptions)}}),{subscriptions:n&&e?e.subscriptions:null,updateSubscriptions:i}};async function W(e,t){let{arg:a}=t,{email:n,location:r,isAnonymous:l}=a,{location:i}=await (0,D.$M)(r.placeId).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:(null==i?void 0:i.dmaCd)||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return l&&(s.email=n),await (0,L.p_)(s).then(e=>({...e,sentSubscriptions:s.subscriptions}))}var B=a(881),G=a(592);let z=()=>{var e,t;let{userProfile:a}=(0,F.J)(),[d,c]=(0,r.useState)(null!=(e=null==a?void 0:a.email)?e:""),[u,m]=(0,r.useState)(null),[h,x]=(0,r.useState)(!1),{data:f,loading:p,onSubmit:g,error:v}=function(){let{updateSubscriptions:e}=O(),{isMutating:t,trigger:a,data:n,error:l,reset:i}=(0,I.A)("newsletter/signup/daily-newsletters-1",(e,t)=>W("daily-newsletters-1",t));return{loading:t,error:l,data:n,onSubmit:(0,r.useCallback)(async t=>{let n=await a(t);return n.sentSubscriptions&&e(n.sentSubscriptions),n},[a,e]),onReset:i}}(),{subscriptions:b}=O(),w=(0,r.useMemo)(()=>(0,G.C)(b,U.rn),[b]),j=(0,r.useCallback)(async e=>{e.preventDefault(),!p&&d.trim()&&u&&(x(!0),await g({email:d,location:u,isAnonymous:!(null==a?void 0:a.email)}))},[g,d,u,p,null==a?void 0:a.email]);return!h&&(null==w?void 0:w.isSubscribed)?null:(0,n.jsxs)("div",{style:{backgroundImage:'url("'.concat(k.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pl-5 pr-[30px] shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,n.jsx)(B.A,{src:S.src,alt:"",className:"w-37.5 m-0",rounded:!1}),(0,n.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,n.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==f?void 0:f.status)==="success"?(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(l.A,{className:"h-6 w-6 text-green-500"}),(0,n.jsx)("div",{className:"text-sm text-gray-700",children:(0,n.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,n.jsxs)("form",{onSubmit:j,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,n.jsx)(C,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:d,onChange:e=>c(e.target.value),error:!!(null==f?void 0:f.emailError),disabled:!!(null==a?void 0:a.email)}),(0,n.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:u,onChangeLocation:m}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:p||!(d&&u),children:[(0,n.jsx)("span",{children:"Sign Up"}),p&&(0,n.jsx)(i.A,{className:"animate-spin"})]})})]}),v&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,n.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,n.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==f?void 0:f.status)==="error"&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,n.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,n.jsx)("div",{className:"text-sm",children:null!=(t=f.emailError)?t:f.error})]}),(0,n.jsx)(A,{})]})};z.displayName="MorningBriefBlock";let H=z},67178:(e,t,a)=>{a.d(t,{CurrentConditions:()=>_,A:()=>E});var n=a(66881);a(89925);var r=a(29992),l=a(55794),i=a(36980),s=a(24278),o=a(76802),d=a(53232),c=a(46155),u=a(48517),m=a(20796),h=a(70526);let x=e=>{let{location:t}=e,{data:a,error:l,isLoading:i}=(0,r.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,a]=e;return(0,d.Sn)({geocode:a,language:"en-US"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),s=(null==a?void 0:a.alerts)&&a.alerts.length>0?a.alerts[0]:null,o=s?(()=>{if(!s)return null;let{productIdentifier:e,phenomena:t,significance:a}=s;if(!e||!t||!a)return null;let n=(0,c.F)({productIdentifier:e,phenomena:t,significance:a}),r=(0,u.t)({productIdentifier:e||"",phenomena:t,significance:a}),l={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return l[r?"severe":n]||l[4]})():null,x=s?(0,c.F)({productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance}):null,f=s?(0,u.t)({productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance}):null;return i||l||!s?null:(0,n.jsxs)("div",{className:"flex items-center gap-4 rounded-sm px-2 py-2 text-sm",style:{backgroundColor:null==o?void 0:o.backgroundColor,color:null==o?void 0:o.textColor},role:"alert","aria-live":"polite",children:[(0,n.jsxs)("div",{className:"flex flex-1 gap-2",children:[s&&(0,n.jsx)(m.AlertIcon,{productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,n.jsx)("span",{className:"uppercase",children:s.eventDescription})]}),a&&a.alerts.length>1&&(0,n.jsxs)(h.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==o?void 0:o.buttonBackgroundColor,...1===x||f?{outline:"solid 1px #ffffff"}:{}},className:"rounded-xs flex h-6 items-center justify-center border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(a.alerts.length-1," more alerts"),children:["+",a.alerts.length-1," MORE"]})]})};var f=a(63629),p=a(286);let g=e=>{let{location:t,weatherData:a,forecastData:r,isLoading:l,error:i,formattedTime:s,video:o}=e;return t?l?(0,n.jsx)(w,{location:t}):!i&&a&&r?(0,n.jsx)(v,{location:t,weatherData:a,forecastData:r,formattedTime:s,video:o}):(0,n.jsx)(b,{location:t,error:i}):(0,n.jsx)(w,{message:"Loading location..."})},v=e=>{let{location:t,weatherData:a,forecastData:r,formattedTime:l,video:i}=e;return(0,n.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between bg-teal-800 p-4 text-white",children:[(0,n.jsxs)(f.Ay,{variant:"Title.S",color:"inverse",elementType:"h2",children:[t.displayName,", ",t.adminDistrict]}),(0,n.jsxs)(f.Ay,{color:"inverse",children:["As of ",l]})]}),(0,n.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-4 text-white",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)(f.Ay,{variant:"Display.XL",color:"inverse",elementType:"h2",children:[Math.round(a.temperature),"\xb0"]}),(0,n.jsx)("div",{className:"ml-4",children:(0,n.jsx)(p.WxIcon,{iconCode:a.iconCode,className:"lightBG h-20 w-20","aria-label":a.wxPhraseLong,iconTheme:"lightBG"})})]}),(0,n.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)(f.Ay,{variant:"Title.M",color:"inverse",elementType:"p",children:a.wxPhraseLong}),(0,n.jsxs)(f.Ay,{className:"mt-2",variant:"Title.M",color:"inverse",elementType:"p",children:["Day ",Math.round(r.temperatureMax),"\xb0 • Night"," ",Math.round(r.temperatureMin),"\xb0"]})]}),(0,n.jsx)("div",{className:"max-w-[50%]",children:(0,n.jsx)(x,{location:t})})]})]}),i&&(0,n.jsx)(j,{title:i.title,url:i.url})]})},b=e=>{let{location:t,error:a}=e;return(0,n.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,n.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,n.jsxs)("h2",{className:"text-xl font-medium",children:[t.displayName,", ",t.adminDistrict]})}),(0,n.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,n.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,n.jsx)("div",{className:"text-xl text-red-300",children:(null==a?void 0:a.message)||"Unable to load weather data"})}),(0,n.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,n.jsx)("div",{className:"max-w-[50%]",children:(0,n.jsx)(x,{location:t})})})]})]})},w=e=>{let{location:t,message:a="Loading weather data..."}=e;return(0,n.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,n.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,n.jsx)("h2",{className:"text-xl font-medium",children:t?"".concat(t.displayName,", ").concat(t.adminDistrict):"Loading location..."})}),(0,n.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,n.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,n.jsx)("div",{className:"animate-pulse text-xl",children:a})}),t&&(0,n.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,n.jsx)("div",{className:"max-w-[50%]",children:(0,n.jsx)(x,{location:t})})})]})]})},j=e=>{let{title:t}=e;return(0,n.jsxs)("div",{className:"flex cursor-pointer items-center gap-3 bg-teal-800 p-4 text-white transition-colors hover:bg-teal-700",children:[(0,n.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white text-teal-800",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z",clipRule:"evenodd"})})}),(0,n.jsxs)(f.Ay,{color:"inverse",children:["Watch: ",t]})]})};var N=a(60012),y=a(20895),C=a(1825),T=a(40016);let _=e=>{let{location:t,video:a}=e,{effectiveLocation:d,isLocationLoading:c,locationError:u}=(0,l.s)({location:t}),{weatherData:m,forecastData:h,isLoading:x,error:f,formattedTime:p}=function(e){var t,a,n,l,d;let c=(0,y.md)(C.Yt),u=null==(t=(0,T.xP)(c))?void 0:t.code,{data:m,error:h,isLoading:x}=(0,r.Ay)(e?["weather",e.geocode,u]:null,e=>{let[t,a,n]=e;return(0,i.z)({geocode:a,units:n,language:"en-US"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:f,error:p,isLoading:g}=(0,r.Ay)(e?["daily-forecast",e.geocode,u]:null,t=>{let[a,n,r]=t;return e?(0,s.v1)({geocode:n,units:r,language:"en-US"}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),v=m?{temperature:m.temperature,wxPhraseLong:m.wxPhraseLong,iconName:o.ICON_CODE_MAP[m.iconCode]||"na",iconCode:m.iconCode,validTimeLocal:m.validTimeLocal}:void 0,b=f&&f.length>0?{temperatureMax:null!=(l=null==(a=f[0])?void 0:a.calendarDayTemperatureMax)?l:0,temperatureMin:null!=(d=null==(n=f[0])?void 0:n.calendarDayTemperatureMin)?d:0}:void 0,w=v?((e,t)=>{if(!e)return"";try{let t=new Date(e);return t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"})}catch(e){return console.error("Error formatting time:",e),""}})(v.validTimeLocal):"";return{weatherData:v,forecastData:b,isLoading:x||g,error:h||p,formattedTime:w}}(d),v=x||c,b=f||u;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t,video:a},state:{effectiveLocation:d,isLocationLoading:c,isLoading:v,weatherData:m,forecastData:h,formattedTime:p,error:b,componentState:b&&"error"||v&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,n.jsx)(g,{location:d,weatherData:m,forecastData:h,isLoading:v,error:b,formattedTime:p,video:a})]})},E=_},69816:(e,t,a)=>{a.r(t),a.d(t,{ContentMediaBlock:()=>c,default:()=>u});var n=a(66881),r=a(76412),l=a(18096),i=a(79670),s=a(91152),o=a(70526),d=a(27801);let c=e=>{let{contentQuery:t,limit:a=4,title:c="Trending",ctaText:u="More Stories",ctaLink:m="/"}=e,h=(null==t?void 0:t.mergedContent)||[];if(!(0,i.J)(h))return null;let x=h.slice(0,Number(a));if(x.every(e=>"image"===e.contentType)){let e=x.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",seo:{altText:e.overrideTitle||e.title,caption:e.overrideDescription||e.description||""}}));return(0,n.jsx)("section",{className:"not-prose mx-auto w-full max-w-4xl",children:(0,n.jsx)(d.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}return(0,n.jsxs)("section",{className:"@container not-prose mx-auto w-full max-w-4xl rounded-md bg-white p-5",children:[(0,n.jsx)("h2",{className:"not-prose mb-4 text-2xl font-bold",children:c}),(0,n.jsx)("div",{className:"@md:grid-cols-2 @lg:grid-cols-4 grid grid-cols-1 gap-4",children:x.map(e=>{var t;let a=e.overrideTitle||e.title,i=e.overrideThumbnail||e.thumbnail,o=(null==(t=e.url)?void 0:t.includes("video"))||!1,d=e.source||"Weather News";return(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:"relative mb-2 h-32 w-full overflow-hidden rounded-md",children:[(0,n.jsx)(r.default,{src:i||"/placeholder.svg",alt:a,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw",style:{position:"absolute",height:"100%",width:"100%",left:0,top:0}}),o&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-white/80",children:(0,n.jsx)(l.A,{className:"ml-0.5 size-4 text-gray-800"})})})]}),(0,n.jsx)("div",{className:"mb-1 text-xs font-medium text-gray-600",children:d}),(0,n.jsx)("h3",{className:"not-prose mb-1 text-base font-normal leading-tight text-gray-900",children:(0,n.jsx)(s.default,{href:e.url||"#",className:"not-prose font-normal text-gray-900 no-underline hover:no-underline",children:a})})]},e.id)})}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(s.default,{href:null!=m?m:"/",children:(0,n.jsx)(o.$n,{className:"rounded bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:u})})})]})},u=c},72990:(e,t)=>{var a,n,r,l,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(a||(t.MoonPhaseCode=a={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(n||(t.PrecipType=n={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(r||(t.ThunderCategory=r={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(l||(t.PrecipTypeCode=l={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(i||(t.PrecipIntensityCode=i={}))},78835:(e,t,a)=>{a.d(t,{DailyForecast:()=>g,A:()=>b});var n=a(66881);a(89925);var r=a(70526),l=a(24278),i=a(76802),s=a(29992),o=a(55794),d=a(286),c=a(19568),u=a(51310),m=a(55868);let h=function(e,t){let a=(0,m.G)();return a?a.variant(e,t):t};var x=a(20895),f=a(1825),p=a(40016);let g=e=>{var t;let{location:a}=e,{value:d}=h("reorder-current-conditions-and-forecast","control"),{effectiveLocation:c,isLocationLoading:m}=(0,o.s)({location:a}),g=(0,x.md)(f.Yt),b=null==(t=(0,p.xP)(g))?void 0:t.code,{data:w,error:j,isLoading:N}=(0,s.Ay)(c?["daily-forecast",c.geocode,b]:null,e=>{let[t,a,n]=e;return c?(0,l.v1)({geocode:a,units:n,language:"en-US",duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),y=[];if(w&&w[0]&&w[0].daypart){let e=w[0].daypart;if(e&&e.daypartName)for(let t=0;t{let a="Afternoon"===e.name||"Evening"===e.name?"text-blue-600":"text-slate-700";return(0,n.jsxs)("div",{className:"flex items-center justify-between px-6 py-5","data-testid":"forecast-period-".concat(t),children:[(0,n.jsx)("div",{className:"w-1/3 text-xl font-medium text-gray-700","data-testid":"period-name",children:e.name}),(0,n.jsxs)("div",{className:"text-5xl font-bold ".concat(a," w-1/3 text-center"),"data-testid":"temperature",children:[e.temperature,"\xb0"]}),(0,n.jsxs)("div",{className:"flex w-1/3 items-center justify-end",children:[(0,n.jsx)("div",{className:"flex w-12 justify-center","data-testid":"weather-icon",children:(0,n.jsx)(v,{iconCode:e.iconCode,wxPhraseLong:i.ICON_CODE_MAP[e.iconCode]})}),(0,n.jsx)("div",{className:"ml-6 w-16 text-xl font-medium text-gray-700","data-testid":"precipitation",children:e.precipitation})]})]},e.name)})}),(0,n.jsx)("div",{className:"flex justify-start p-4",children:(0,n.jsx)(r.$n,{variant:"default",className:"rounded-md bg-slate-900 text-white hover:bg-slate-800","data-testid":"next-48-hours",children:"Next 48 Hours"})})]}):(0,n.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white shadow-md",children:[(0,n.jsx)("div",{className:"bg-slate-800 p-4 text-white",children:(0,n.jsx)("h2",{className:"text-2xl font-bold",children:"Loading location..."})}),(0,n.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,n.jsx)("div",{className:"animate-pulse text-xl",children:"Determining location..."})})]})},v=e=>{let{iconCode:t,wxPhraseLong:a}=e,r=a||"Weather condition ".concat(t);return"na"!==(i.ICON_CODE_MAP[t]||"na")?(0,n.jsx)(d.WxIcon,{iconCode:t,className:"lightBG",size:"xl","aria-label":r,iconTheme:"lightBG"}):(0,n.jsx)(c.Y,{size:"xl",className:"lightBG","aria-label":"Weather icon not available"})},b=g},81652:(e,t,a)=>{a.r(t),a.d(t,{DailyForecastBlock:()=>l,default:()=>i});var n=a(66881);a(89925);var r=a(78835);let l=()=>(0,n.jsx)(r.A,{}),i=l},82862:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(a,n)=>{let r={};return t.forEach(t=>{let a=e[t];void 0!==a&&Array.isArray(a)&&n{a.r(t),a.d(t,{PromoDriverBlock:()=>s,default:()=>o});var n=a(66881);a(89925);var r=a(76412),l=a(91152),i=a(97172);let s=e=>{let{title:t,image:a,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(a)?a:null;return t||u&&(null==u?void 0:u.url)||s||o||d?(0,n.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,n.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,n.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,n.jsx)("a",{href:d&&d.url||"#",children:(0,n.jsx)(r.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||d)&&(0,n.jsxs)("div",{className:"p-4",children:[s&&(0,n.jsx)("a",{href:d&&d.url||"#",children:(0,n.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,n.jsx)("a",{href:d&&d.url||"#",children:(0,n.jsx)("p",{className:"mb-4 text-base",children:o})}),d&&(0,n.jsx)("div",{className:"flex justify-end",children:c?(0,n.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text}):(0,n.jsx)(l.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text})})]})]})]}):null},o=s},86397:(e,t,a)=>{t.j=i;let n=a(11195),r=a(56488),l=a(60077);async function i(){let e=(0,l.getEmailPreferencesStatusUrlConfig)(),t=(0,n.urlFrom)(e),a=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,r.handleFetchResponse)(a)}},88909:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{a.r(t),a.d(t,{AdBlock:()=>d,default:()=>c});var n=a(66881),r=a(89925),l=a(60012),i=a(51310),s=a(94600),o=a(98173);let d=e=>{let{adId:t,variant:a="banner",title:d=null,height:c="120px",className:u=""}=e,{user:m}=(0,o.J)(),{isUserPremium:h}=m,[x,f]=(0,r.useState)({loaded:!1,height:c,displayAd:!1}),p=(0,r.useRef)(null),g=(0,r.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),v=(0,r.useMemo)(()=>{if("WX_Hidden"===t||!x.displayAd)return"hidden";if("WX_WindowShade"===t)return"region-contentTop overflow-hidden mb-4";if("WX_BottomLeader"===t)return"bg-white rounded-md overflow-hidden px-4 pb-4 mt-4";if("WX_SpotLight"===t||"WX_DriverUnit"===t)return"overflow-hidden bg-white mb-4";if("WX_Top300Variable"===t)return"sticky top-[82px] z-45 bg-white rounded-md overflow-hidden px-4 pb-4";if("MW_Position1"===t)return"bottom-[61px] block fixed w-full z-[98] bg-[#dee0e3] p-2";else if("MW_Position3"===t)return"overflow-hidden mb-5";else if("MW_Position4"===t||"MW_Position5"===t)return"rounded-lg overflow-hidden bg-white pt-0 px-4 pb-4";else if("banner"===a)return"rounded-lg overflow-hidden bg-white shadow-md mb-4";return"bg-white rounded-md overflow-hidden px-4 pb-4"},[t,a,x.displayAd]),b=(0,r.useMemo)(()=>{let e=x.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,x.loaded]),w=(0,r.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&f(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),j=(0,r.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);f(e=>({...e,displayAd:t}))},[]);return((0,r.useEffect)(()=>{f(e=>({...e,loaded:!1,height:c,displayAd:!1})),g.current.resize&&g.current.resize.disconnect(),g.current.adFrameMutation&&g.current.adFrameMutation.disconnect(),g.current.adCreativeMutation&&g.current.adCreativeMutation.disconnect();let e=new ResizeObserver(w);g.current.resize=e;let t=new MutationObserver(j);g.current.adCreativeMutation=t;let a=new MutationObserver(a=>{a.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&p.current&&e&&t&&(e.observe(p.current),f(e=>({...e,loaded:!0})),t.observe(p.current,{childList:!0,subtree:!0}))});g.current.adFrameMutation=a;let n=p.current;return n&&a&&a.observe(n,{childList:!0,subtree:!0}),()=>{e.disconnect(),a.disconnect(),t.disconnect()}},[j,t,c,w]),!t||h)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:a,title:d,height:c,className:u},state:{loaded:x.loaded,height:x.height,displayAd:x.displayAd},performance:{renderTime:Date.now()}}}),(0,n.jsxs)("div",{className:(0,i.cn)(v,u),children:[d&&x.loaded&&(0,n.jsx)("div",{className:"py-0.75 text-xxs w-full px-4 text-right text-gray-400",children:d}),"WX_PromoDriver1"===t&&!d&&x.loaded&&x.displayAd&&(0,n.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,n.jsx)("div",{id:t,className:b,style:{height:x.loaded?"100%":"0px"},ref:p})]}),"WX_PromoDriver1"===t&&(!x.loaded||!x.displayAd)&&(0,n.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},c=d},91874:(e,t)=>{t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},94600:(e,t,a)=>{a.r(t),a.d(t,{CTABlock:()=>l,default:()=>i});var n=a(66881);a(89925);var r=a(881);let l=e=>{let{title:t,subTitle:a,subText:l,ctaStyle:i,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s:null;return(0,n.jsx)("section",{className:"@container not-prose mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,n.jsx)("div",{className:"cta-block ".concat(i),children:(0,n.jsxs)("div",{className:"cta-content text-black",children:[(0,n.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,n.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,n.jsx)("div",{className:"relative w-full",children:(0,n.jsx)(r.A,{src:m,alt:t})})}),a&&(0,n.jsx)("h2",{className:"mb-2 text-lg font-bold",children:a}),l&&(0,n.jsx)("p",{className:"mb-4",children:l}),"standard"===i&&(0,n.jsx)("div",{className:"mt-4 flex justify-end",children:(0,n.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:o||"Learn More"})})]})})})},i=l},98328:(e,t,a)=>{a.r(t),a.d(t,{CurrentConditionsBlock:()=>o,default:()=>d});var n=a(66881);a(89925);var r=a(67178),l=a(1073),i=a(85515),s=a(29992);let o=e=>{let{locationProvider:t,locationEntry:a}=e,{data:o,error:d,isLoading:c}=(0,s.Ay)("specified"===t&&a?["specified-location-data",a]:null,()=>a?(0,l.PT)(a):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return"specified"===t&&c?(0,n.jsx)("div",{children:"Loading location data..."}):"specified"===t&&d?(0,n.jsxs)("div",{children:["Error loading location data: ",d.message]}):"specified"===t&&o&&a?(0,n.jsx)(r.A,{location:(0,i.I)(o)}):"specified"!==t?(0,n.jsx)(r.A,{}):null},d=o},98387:(e,t,a)=>{t.p_=i;let n=a(11195),r=a(56488),l=a(60077);async function i(e){let t=(0,l.getEmailPreferencesSetUrlConfig)(),a=(0,n.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:a,mParticleId:n}=e,r={};return t&&(r.subscriptions=t),a&&(r.email=a),n&&(r.mParticleId=n),r}(e)),s=await fetch(a,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,r.handleFetchResponse)(s)}},99164:(e,t,a)=>{a.d(t,{yw:()=>l});var n=a(91649),r=a(37811);let l=()=>{if(n.A){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return"".concat(e,"//").concat(t).concat(a?":".concat(a):"")}return(()=>{let e=r.env.NEXT_PUBLIC_SERVER_URL;return!e&&r.env.VERCEL_PROJECT_PRODUCTION_URL?"production"===r.env.VERCEL_ENV?"https://weather.com":"https://".concat(r.env.VERCEL_PROJECT_PRODUCTION_URL):(e||(e="https://localhost:3001"),e)})()}},99548:(e,t,a)=>{a.d(t,{Cf:()=>c,L3:()=>u,LC:()=>d,ZJ:()=>o,lG:()=>s});var n=a(66881);a(89925);var r=a(25847),l=a(85986),i=a(51310);function s(e){let{...t}=e;return(0,n.jsx)(r.bL,{"data-slot":"dialog",...t})}function o(e){let{...t}=e;return(0,n.jsx)(r.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,n.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function c(e){let{className:t,children:a,...s}=e;return(0,n.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,n.jsx)(d,{}),(0,n.jsxs)(r.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...s,children:[a,(0,n.jsxs)(r.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,n.jsx)(l.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...a}=e;return(0,n.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg font-semibold leading-none",t),...a})}}}]);