(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6084],{2023:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:a,language:l,duration:n=r.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(n),query:{geocode:t,units:a,language:l,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:a,language:l,duration:n=r.HourlyForecastDuration.TWO_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(n),query:{geocode:t,units:a,language:l,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:a,language:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/15minute",query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:a,language:r,duration:l="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(l),query:{geocode:t,units:a,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let r=a(31002)},4038:(e,t)=>{"use strict";var a,r,l,n,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"}(r||(t.PrecipType=r={})),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"}(l||(t.ThunderCategory=l={})),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"}(n||(t.PrecipTypeCode=n={})),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={}))},8040:(e,t,a)=>{"use strict";t.Sn=o;let r=a(91589),l=a(75587),n=a(90048),i=a(11157);async function o(e){let{geocode:t,language:a="en-US"}=e,o=(0,l.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:a})),s=await fetch(o,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,n.handleFetchResponse)(s);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},10050:(e,t,a)=>{"use strict";a.d(t,{default:()=>A});var r=a(7629);a(15545);var l=a(96361),n=a(50009),i=a(24044),o=a(61022),s=a(31002);let d=(e,t)=>{if(!e)return"";try{let a=new Date(e),r={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"};if(!t)return a.toLocaleTimeString("en-US",r);return a.toLocaleTimeString(t,r)}catch(e){return console.error("Error formatting time:",e),""}};var c=a(72084),u=a(8040),m=a(71011),f=a(40397);async function h(e){try{return(await a(15079)("./".concat("alert-level-".concat(e),".svg"))).default}catch(t){return console.error("Error loading alert icon: ".concat(e),t),null}}var x=a(94279);let p=e=>{let{location:t}=e,{data:a,error:n,isLoading:i}=(0,l.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,a]=e;return(0,u.Sn)({geocode:a,language:"en-US"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),o=(null==a?void 0:a.alerts)&&a.alerts.length>0?a.alerts[0]:null,s=o?(()=>{if(!o)return null;let{productIdentifier:e,phenomena:t,significance:a}=o;if(!e||!t||!a)return null;let r=(0,m.F)({productIdentifier:e,phenomena:t,significance:a}),l=(0,f.t)({productIdentifier:e||"",phenomena:t,significance:a}),n={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 n[l?"severe":r]||n[4]})():null,d=o?(0,m.F)({productIdentifier:o.productIdentifier,phenomena:o.phenomena,significance:o.significance}):null,c=o?(0,f.t)({productIdentifier:o.productIdentifier,phenomena:o.phenomena,significance:o.significance}):null,{data:p,error:v}=(0,l.Ay)("alert-".concat(d),()=>null===d?null:h(d),{revalidateOnFocus:!1,dedupingInterval:1/0});return i||n||!o?null:(0,r.jsxs)("div",{className:"flex items-center gap-4 rounded-sm px-2 py-2 text-sm",style:{"--alert-icon":null==s?void 0:s.icon,"--alert-fill":null==s?void 0:s.fill,"--alert-border":null==s?void 0:s.border,backgroundColor:null==s?void 0:s.backgroundColor,color:null==s?void 0:s.textColor},role:"alert","aria-live":"polite",children:[(0,r.jsxs)("div",{className:"flex flex-1 gap-2",children:[p&&!v&&(0,r.jsx)(p,{className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,r.jsx)("span",{className:"uppercase",children:o.eventDescription})]}),a&&a.alerts.length>1&&(0,r.jsxs)(x.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==s?void 0:s.buttonBackgroundColor,...1===d||c?{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 v=a(95445);let g=e=>{let{location:t,weatherData:a,forecastData:l,IconComponent:n,isLoading:i,error:o,formattedTime:s,video:d}=e;return t?i?(0,r.jsx)(b,{location:t}):!o&&a&&l?(0,r.jsx)(y,{location:t,weatherData:a,forecastData:l,IconComponent:n,formattedTime:s,video:d}):(0,r.jsx)(N,{location:t,error:o}):(0,r.jsx)(b,{message:"Loading location..."})},y=e=>{let{location:t,weatherData:a,forecastData:l,formattedTime:n,video:i}=e;return(0,r.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between bg-teal-800 p-4 text-white",children:[(0,r.jsxs)(v.Ay,{variant:"Title.S",color:"inverse",elementType:"h2",children:[t.displayName,", ",t.adminDistrict]}),(0,r.jsxs)(v.Ay,{color:"inverse",children:["As of ",n]})]}),(0,r.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-4 text-white",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)(v.Ay,{variant:"Display.XL",color:"inverse",elementType:"h2",children:[Math.round(a.temperature),"\xb0"]})}),(0,r.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(v.Ay,{variant:"Title.M",color:"inverse",elementType:"p",children:a.wxPhraseLong}),(0,r.jsxs)(v.Ay,{className:"mt-2",variant:"Title.M",color:"inverse",elementType:"p",children:["Day ",Math.round(l.temperatureMax),"\xb0 • Night"," ",Math.round(l.temperatureMin),"\xb0"]})]}),(0,r.jsx)("div",{className:"max-w-[50%]"})]})]}),i&&(0,r.jsx)(j,{title:i.title,url:i.url})]})},N=e=>{let{location:t,error:a}=e;return(0,r.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,r.jsxs)("h2",{className:"text-xl font-medium",children:[t.displayName,", ",t.adminDistrict]})}),(0,r.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,r.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,r.jsx)("div",{className:"text-xl text-red-300",children:(null==a?void 0:a.message)||"Unable to load weather data"})}),(0,r.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,r.jsx)("div",{className:"max-w-[50%]",children:(0,r.jsx)(p,{location:t})})})]})]})},b=e=>{let{location:t,message:a="Loading weather data..."}=e;return(0,r.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,r.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,r.jsx)("h2",{className:"text-xl font-medium",children:t?"".concat(t.displayName,", ").concat(t.adminDistrict):"Loading location..."})}),(0,r.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,r.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,r.jsx)("div",{className:"animate-pulse text-xl",children:a})}),t&&(0,r.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,r.jsx)("div",{className:"max-w-[50%]",children:(0,r.jsx)(p,{location:t})})})]})]})},j=e=>{let{title:t}=e;return(0,r.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,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white text-teal-800",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,r.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,r.jsxs)(v.Ay,{color:"inverse",children:["Watch: ",t]})]})};var w=a(15863),C=a(36183),T=a(27657),E=a(36706);let A=e=>{let{location:t,video:a}=e,{effectiveLocation:u,isLocationLoading:m,locationError:f}=(0,n.s)({location:t}),{weatherData:h,forecastData:x,IconComponent:p,isLoading:v,error:y,formattedTime:N}=function(e){var t,a,r,n,u;let m=(0,C.md)(T.Yt),f=null==(t=(0,E.xP)(m))?void 0:t.code,{data:h,error:x,isLoading:p}=(0,l.Ay)(e?["weather",e.geocode,f]:null,e=>{let[t,a,r]=e;return(0,i.z)({geocode:a,units:r,language:"en-US"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:v,error:g,isLoading:y}=(0,l.Ay)(e?["daily-forecast",e.geocode,f]:null,t=>{let[a,r,l]=t;return e?(0,o.v1)({geocode:r,units:l,language:"en-US"}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),N=h?{temperature:h.temperature,wxPhraseLong:h.wxPhraseLong,iconName:s.ICON_CODE_MAP[h.iconCode]||"na",validTimeLocal:h.validTimeLocal}:void 0,b=v&&v.length>0?{temperatureMax:null!=(n=null==(a=v[0])?void 0:a.calendarDayTemperatureMax)?n:0,temperatureMin:null!=(u=null==(r=v[0])?void 0:r.calendarDayTemperatureMin)?u:0}:void 0,{data:j}=(0,l.Ay)(N?"icon-".concat(N.iconName):null,()=>(0,c.T)((null==N?void 0:N.iconName)||"na"),{revalidateOnFocus:!1,dedupingInterval:1/0}),w=N?d(N.validTimeLocal):"";return{weatherData:N,forecastData:b,IconComponent:j,isLoading:p||y,error:x||g,formattedTime:w}}(u),b=v||m,j=y||f;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t,video:a},state:{effectiveLocation:u,isLocationLoading:m,isLoading:b,weatherData:h,forecastData:x,formattedTime:N,error:j,componentState:j&&"error"||b&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,r.jsx)(g,{location:u,weatherData:h,forecastData:x,IconComponent:p,isLoading:b,error:j,formattedTime:N,video:a})]})}},10353:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ContentMediaBlock:()=>d,default:()=>c});var r=a(7629),l=a(50352),n=a(35366),i=a(29548),o=a(84870),s=a(94279);let d=e=>{let{contentQuery:t,limit:a=4,title:d="Trending",ctaText:c="More Stories",ctaLink:u="/"}=e,m=(null==t?void 0:t.mergedContent)||[];if(!(0,i.J)(m))return null;let f=m.slice(0,Number(a));return(0,r.jsxs)("section",{className:"@container not-prose mx-auto w-full max-w-4xl rounded-md bg-white p-5",children:[(0,r.jsx)("h2",{className:"not-prose mb-4 text-2xl font-bold",children:d}),(0,r.jsx)("div",{className:"@md:grid-cols-2 @lg:grid-cols-4 grid grid-cols-1 gap-4",children:f.map(e=>{var t;let a=e.overrideTitle||e.title,i=e.overrideThumbnail||e.thumbnail,s=(null==(t=e.url)?void 0:t.includes("video"))||!1,d=e.source||"Weather News";return(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"relative mb-2 h-32 w-full overflow-hidden rounded-md",children:[(0,r.jsx)(l.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}}),s&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-white/80",children:(0,r.jsx)(n.A,{className:"ml-0.5 size-4 text-gray-800"})})})]}),(0,r.jsx)("div",{className:"mb-1 text-xs font-medium text-gray-600",children:d}),(0,r.jsx)("h3",{className:"not-prose mb-1 text-base font-normal leading-tight text-gray-900",children:(0,r.jsx)(o.default,{href:e.url||"#",className:"not-prose font-normal text-gray-900 no-underline hover:no-underline",children:a})})]},e.id)})}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(o.default,{href:null!=u?u:"/",children:(0,r.jsx)(s.$n,{className:"rounded bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:c})})})]})},c=d},11157:(e,t)=>{"use strict";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{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,r.fromCompactResponse)(t)||[]).map((a,r)=>e(a,r,t))};let r=a(84998)},15079:(e,t,a)=>{var r={"./alert-level-1.svg":[4460,4460],"./alert-level-2.svg":[94943,4943],"./alert-level-3.svg":[44846,4846],"./alert-level-4.svg":[26537,6537]};function l(e){if(!a.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],l=t[0];return a.e(t[1]).then(()=>a(l))}l.keys=()=>Object.keys(r),l.id=15079,e.exports=l},15863:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DebugCollector:()=>i});var r=a(15545),l=a(23974),n=a(90681);function i(e){let{componentName:t,data:a,page:i,onUpdateData:o,onSetPageData:s}=e,{updateComponentData:d,setPageData:c}=(0,l.K)(),u=(0,r.useRef)(!1),m=o||d,f=s||c;return(0,r.useEffect)(()=>{if(a)return n.debugLogger.lifecycle("DebugCollector","Collecting component data for ".concat(t),{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),m(t,{...a,_collectedAt:new Date().toISOString()}),()=>{n.debugLogger.lifecycle("DebugCollector","Cleaning up data for ".concat(t)),m(t,null)}},[t,a,m]),(0,r.useEffect)(()=>{i&&!u.current&&(n.debugLogger.lifecycle("DebugCollector","Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),f({...i,_updatedAt:new Date().toISOString()}),u.current=!0)},[i,f]),null}},29548:(e,t,a)=>{"use strict";a.d(t,{J:()=>r});let r=e=>Array.isArray(e)&&e.length>0},37765:(e,t,a)=>{"use strict";a.r(t),a.d(t,{AdBlock:()=>d,default:()=>c});var r=a(7629),l=a(15545),n=a(15863),i=a(35238),o=a(48702),s=a(50533);let d=e=>{let{adId:t,variant:a="banner",title:d=null,height:c="120px",className:u=""}=e,{user:m}=(0,s.J)(),{isUserPremium:f}=m,[h,x]=(0,l.useState)({loaded:!1,height:c,displayAd:!1}),p=(0,l.useRef)(null),v=(0,l.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),g=(0,l.useMemo)(()=>"WX_Hidden"!==t&&h.displayAd?"WX_WindowShade"===t?"region-contentTop overflow-hidden mb-4":"WX_BottomLeader"===t?"bg-white rounded-md overflow-hidden px-4 pb-4 mt-4":"WX_SpotLight"===t||"WX_DriverUnit"===t?"overflow-hidden bg-white mb-4":"banner"===a?"rounded-lg overflow-hidden bg-white shadow-md mb-4":"bg-white rounded-md overflow-hidden px-4 pb-4":"hidden",[t,a,h.displayAd]),y=(0,l.useMemo)(()=>{let e=h.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)},[h.loaded]),N=(0,l.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&x(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),b=(0,l.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);x(e=>({...e,displayAd:t}))},[]);return((0,l.useEffect)(()=>{x(e=>({...e,loaded:!1,height:c,displayAd:!1})),v.current.resize&&v.current.resize.disconnect(),v.current.adFrameMutation&&v.current.adFrameMutation.disconnect(),v.current.adCreativeMutation&&v.current.adCreativeMutation.disconnect();let e=new ResizeObserver(N);v.current.resize=e;let t=new MutationObserver(b);v.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),x(e=>({...e,loaded:!0})),t.observe(p.current,{childList:!0,subtree:!0}))});v.current.adFrameMutation=a;let r=p.current;return r&&a&&a.observe(r,{childList:!0,subtree:!0}),()=>{e.disconnect(),a.disconnect(),t.disconnect()}},[t,c,N]),!t||f)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:a,title:d,height:c,className:u},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd},performance:{renderTime:Date.now()}}}),(0,r.jsxs)("div",{className:(0,i.cn)(g,u),children:[d&&h.loaded&&(0,r.jsx)("div",{className:"py-0.75 text-xxs w-full px-4 text-right text-gray-400",children:d}),"WX_PromoDriver1"===t&&!d&&h.loaded&&h.displayAd&&(0,r.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,r.jsx)("div",{id:t,className:y,style:{height:h.loaded?"100%":"0px"},ref:p})]}),"WX_PromoDriver1"===t&&(!h.loaded||!h.displayAd)&&(0,r.jsx)(o.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},c=d},42629:(e,t,a)=>{"use strict";a.d(t,{DailyForecast:()=>v,A:()=>y});var r=a(7629);a(15545);var l=a(94279),n=a(61022),i=a(31002),o=a(96361),s=a(84048),d=a(72084),c=a(50009),u=a(35238),m=a(67267);let f=function(e,t){let a=(0,m.G)();return a?a.variant(e,t):t};var h=a(36183),x=a(27657),p=a(36706);let v=e=>{var t;let{location:a}=e,{value:s}=f("reorder-current-conditions-and-forecast","control"),{effectiveLocation:d,isLocationLoading:m}=(0,c.s)({location:a}),v=(0,h.md)(x.Yt),y=null==(t=(0,p.xP)(v))?void 0:t.code,{data:N,error:b,isLoading:j}=(0,o.Ay)(d?["daily-forecast",d.geocode,y]:null,e=>{let[t,a,r]=e;return d?(0,n.v1)({geocode:a,units:r,language:"en-US",duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),w=[];if(N&&N[0]&&N[0].daypart){let e=N[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,r.jsxs)("div",{className:"flex items-center justify-between px-6 py-5","data-testid":"forecast-period-".concat(t),children:[(0,r.jsx)("div",{className:"w-1/3 text-xl font-medium text-gray-700","data-testid":"period-name",children:e.name}),(0,r.jsxs)("div",{className:"text-5xl font-bold ".concat(a," w-1/3 text-center"),"data-testid":"temperature",children:[e.temperature,"\xb0"]}),(0,r.jsxs)("div",{className:"flex w-1/3 items-center justify-end",children:[(0,r.jsx)("div",{className:"flex w-12 justify-center","data-testid":"weather-icon",children:(0,r.jsx)(g,{iconName:e.iconName})}),(0,r.jsx)("div",{className:"ml-6 w-16 text-xl font-medium text-gray-700","data-testid":"precipitation",children:e.precipitation})]})]},e.name)})}),(0,r.jsx)("div",{className:"flex justify-start p-4",children:(0,r.jsx)(l.$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,r.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white shadow-md",children:[(0,r.jsx)("div",{className:"bg-slate-800 p-4 text-white",children:(0,r.jsx)("h2",{className:"text-2xl font-bold",children:"Loading location..."})}),(0,r.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,r.jsx)("div",{className:"animate-pulse text-xl",children:"Determining location..."})})]})},g=e=>{let{iconName:t}=e,{data:a,isLoading:l}=(0,o.Ay)("icon-".concat(t),()=>(0,d.T)(t),{revalidateOnFocus:!1,dedupingInterval:1/0});return l?(0,r.jsx)("div",{className:"flex h-12 w-12 items-center justify-center",children:(0,r.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-b-2 border-t-2 border-gray-400"})}):a?(0,r.jsx)("div",{className:"h-12 w-12",children:(0,r.jsx)(a,{className:"lightBG","aria-label":t})}):(0,r.jsx)("div",{className:"h-12 w-12",children:(0,r.jsx)(s.default,{className:"lightBG","aria-label":"Weather icon not available"})})},y=v},48702:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n});var r=a(7629);a(15545);var l=a(19129);let n=e=>{let{title:t,subTitle:a,subText:n,ctaStyle:i,media:o,buttonText:s,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=(e=>e&&"object"==typeof e&&"url"in e)(o)?o.url:"string"==typeof o?o:null;return(0,r.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,r.jsx)("div",{className:"cta-block ".concat(i),children:(0,r.jsxs)("div",{className:"cta-content text-black",children:[(0,r.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,r.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsx)(l.A,{src:m,alt:t})})}),a&&(0,r.jsx)("h2",{className:"mb-2 text-lg font-bold",children:a}),n&&(0,r.jsx)("p",{className:"mb-4",children:n}),"standard"===i&&(0,r.jsx)("div",{className:"mt-4 flex justify-end",children:(0,r.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:s||"Learn More"})})]})})})}},61022:(e,t,a)=>{"use strict";t.vt=void 0,t.v1=s;let r=a(2023),l=a(75587),n=a(90048),i=a(11299),o=a(4038);async function s(e){let a=(0,r.getDailyForecastUrlConfig)(e),i=(0,l.urlFrom)(a),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),s=await (0,n.handleFetchResponse)(o);return(0,t.vt)(s)}t.vt=(0,i.createTransformer)((e,t,a)=>{var r,l,n,i,s,d,c,u,m,f,h,x,p,v,g,y,N,b,j,w,C,T,E,A;return{...e,calendarDayTemperatureMax:null!=(l=e.calendarDayTemperatureMax)?l:0,calendarDayTemperatureMin:null!=(n=e.calendarDayTemperatureMin)?n:0,dayOfWeek:null!=(i=e.dayOfWeek)?i:"",expirationTimeUtc:null!=(s=e.expirationTimeUtc)?s:0,moonPhase:null!=(d=e.moonPhase)?d:"",moonPhaseCode:null!=(c=e.moonPhaseCode)?c:o.MoonPhaseCode.NEW,moonPhaseDay:null!=(u=e.moonPhaseDay)?u:0,moonriseTimeLocal:null!=(m=e.moonriseTimeLocal)?m:"",moonriseTimeUtc:null!=(f=e.moonriseTimeUtc)?f:0,moonsetTimeLocal:null!=(h=e.moonsetTimeLocal)?h:"",moonsetTimeUtc:null!=(x=e.moonsetTimeUtc)?x:0,narrative:null!=(p=e.narrative)?p:"",qpf:null!=(v=e.qpf)?v:0,qpfSnow:null!=(g=e.qpfSnow)?g:0,sunriseTimeLocal:null!=(y=e.sunriseTimeLocal)?y:"",sunriseTimeUtc:null!=(N=e.sunriseTimeUtc)?N:0,sunsetTimeLocal:null!=(b=e.sunsetTimeLocal)?b:"",sunsetTimeUtc:null!=(j=e.sunsetTimeUtc)?j:0,temperatureMax:null!=(w=e.temperatureMax)?w:0,temperatureMin:null!=(C=e.temperatureMin)?C:0,validTimeLocal:null!=(T=e.validTimeLocal)?T:"",validTimeUtc:null!=(E=e.validTimeUtc)?E:0,daypart:null!=(A=null==(r=a.daypart)?void 0:r[0])?A:{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:[]}}})},84998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(a,r)=>{let l={};return t.forEach(t=>{e[t]&&Array.isArray(e[t])&&(l[t]=e[t][r])}),l}):null}},91589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:a,areaId:r,adminDistrictCode:l,language:n}=e,i={format:"json",language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),a&&(i.countryCode=a),r&&(i.areaId=r),l&&(i.adminDistrictCode=l),{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"}}}}}]);