"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3176],{4478:(e,t,a)=>{a.d(t,{J:()=>r});let r=e=>Array.isArray(e)&&e.length>0},8236:(e,t)=>{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={}))},25129:(e,t,a)=>{a.r(t),a.d(t,{DebugCollector:()=>i});var r=a(35550),l=a(11140),n=a(1087);function i(e){let{componentName:t,data:a,page:i,onUpdateData:s,onSetPageData:o}=e,{updateComponentData:d,setPageData:c}=(0,l.K)(),u=(0,r.useRef)(!1),m=s||d,f=o||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}},30740:(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,r)=>{let l={};return t.forEach(t=>{let a=e[t];void 0!==a&&Array.isArray(a)&&r{a.d(t,{DailyForecast:()=>g,A:()=>b});var r=a(93486);a(35550);var l=a(40749),n=a(89176),i=a(4244),s=a(67146),o=a(79940),d=a(80240),c=a(58426),u=a(60896),m=a(28082);let f=function(e,t){let a=(0,m.G)();return a?a.variant(e,t):t};var h=a(52493),x=a(22047),p=a(5540);let g=e=>{var t;let{location:a}=e,{value:d}=f("reorder-current-conditions-and-forecast","control"),{effectiveLocation:c,isLocationLoading:m}=(0,o.s)({location:a}),g=(0,h.md)(x.Yt),b=null==(t=(0,p.xP)(g))?void 0:t.code,{data:y,error:N,isLoading:j}=(0,s.Ay)(c?["daily-forecast",c.geocode,b]:null,e=>{let[t,a,r]=e;return c?(0,n.v1)({geocode:a,units:r,language:"en-US",duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),w=[];if(y&&y[0]&&y[0].daypart){let e=y[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)(v,{iconCode:e.iconCode,wxPhraseLong:i.ICON_CODE_MAP[e.iconCode]})}),(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..."})})]})},v=e=>{let{iconCode:t,wxPhraseLong:a}=e,l=a||"Weather condition ".concat(t);return"na"!==(i.ICON_CODE_MAP[t]||"na")?(0,r.jsx)(d.WxIcon,{iconCode:t,className:"lightBG",size:"xl","aria-label":l,iconTheme:"lightBG"}):(0,r.jsx)(c.Y,{size:"xl",className:"lightBG","aria-label":"Weather icon not available"})},b=g},40651:(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.d(t,{A:()=>m});var r=a(93486),l=a(35550);let n={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=a(9935),s=a(51995),o=a(72263),d=a(33832);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t,a;let{id:l,assets:u,currentSlideIndex:m,totalAssets:f,previous:h,next:x,sendTrackString:p,rounded:g=!1}=e;if(!u.length||m=u.length)return null;let v=u[m],b="".concat(m+1,"/").concat(f),y=0===m,N=m===f-1;return(0,r.jsxs)("figure",{id:l,className:"relative mb-4 mt-4 w-full max-w-full",children:[(0,r.jsx)("div",{className:g?"overflow-hidden rounded-[16px]":"",children:(0,r.jsx)("div",{className:"relative w-full ".concat(g?"rounded-[16px]":""),children:(0,r.jsx)("div",{className:"relative w-full ".concat(g?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,r.jsx)(i.A,{className:"absolute left-0 top-0 h-full w-full object-cover",src:v.url||"",alt:(null==(t=v.seo)?void 0:t.altText)||"",rounded:g,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,r.jsx)("figcaption",{children:(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{className:"flex items-center pt-2",children:(0,r.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(i.A,{src:n.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,r.jsx)("div",{className:"ml-2 mr-2",children:(0,r.jsx)(s.EY,{variant:"Body.S",color:"primary",children:b})}),(0,r.jsx)("div",{className:"flex-grow"}),(0,r.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:y,onClick:()=>{p("wxnode_slideshow_link-previous"),h()},children:(0,r.jsx)("span",{className:"flex items-center justify-center",children:(0,r.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,r.jsx)(o.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})}),(0,r.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:N,onClick:()=>{p("wxnode_slideshow_link-next"),x()},children:(0,r.jsx)("span",{className:"flex items-center justify-center",children:(0,r.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,r.jsx)(d.A,{className:"h-5 w-5 ".concat(N?"text-gray-200":"text-blue-500")})})})})]})}),v.filename&&!c(v.filename)&&(0,r.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:v.filename}),(null==(a=v.seo)?void 0:a.caption)&&(0,r.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(v.filename&&!c(v.filename)?"":"mt-0 pt-0"),children:v.seo.caption}),(0,r.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:a=[],allSlides:n=[],totalAssets:i=n.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,l.useId)(),m=t||"slideshow-".concat(c),f=n.length>0,[h,x]=(0,l.useState)(0),[p,g]=(0,l.useState)(1),[v,b]=(0,l.useState)(1),[y,N]=(0,l.useState)(f?n.slice(0,20):a),j=(0,l.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(h-1>=0){let e=h-1?Math.ceil((h-1)/20):1;x(h-1),g(e)}},[h]),C=(0,l.useCallback)(()=>{if(h+1=v){let e=20*p;if(e-3a.length&&p>=v){let e=20*p;e-3{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":w();break;case"ArrowRight":C()}},[m,j,w,C]);return(0,l.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,l.useEffect)(()=>{f&&0===y.length&&N(n.slice(0,20))},[f,n,y.length]),(0,r.jsx)(u,{id:m,assets:f?y:a,currentSlideIndex:h,totalAssets:i,previous:w,next:C,sendTrackString:o,rounded:d})}},56175:(e,t,a)=>{a.r(t),a.d(t,{ContentMediaBlock:()=>c,default:()=>u});var r=a(93486),l=a(86039),n=a(38430),i=a(4478),s=a(46748),o=a(40749),d=a(52003);let c=e=>{let{contentQuery:t,limit:a=4,title:c="Trending",ctaText:u="More Stories",ctaLink:m="/"}=e,f=(null==t?void 0:t.mergedContent)||[];if(!(0,i.J)(f))return null;let h=f.slice(0,Number(a));if(h.every(e=>"image"===e.contentType)){let e=h.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,r.jsx)("section",{className:"not-prose mx-auto w-full max-w-4xl",children:(0,r.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,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:c}),(0,r.jsx)("div",{className:"@md:grid-cols-2 @lg:grid-cols-4 grid grid-cols-1 gap-4",children:h.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,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}}),o&&(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)(s.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)(s.default,{href:null!=m?m:"/",children:(0,r.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},65733:(e,t,a)=>{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(4244)},65835:(e,t,a)=>{a.r(t),a.d(t,{AdBlock:()=>d,default:()=>c});var r=a(93486),l=a(35550),n=a(25129),i=a(60896),s=a(97928),o=a(76075);let d=e=>{let{adId:t,variant:a="banner",title:d=null,height:c="120px",className:u=""}=e,{user:m}=(0,o.J)(),{isUserPremium:f}=m,[h,x]=(0,l.useState)({loaded:!1,height:c,displayAd:!1}),p=(0,l.useRef)(null),g=(0,l.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),v=(0,l.useMemo)(()=>{if("WX_Hidden"===t||!h.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("MW_Position1"===t)return"bottom-[61px] block fixed w-full z-[98] bg-[#dee0e3] p-2";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,h.displayAd]),b=(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)},[t,h.loaded]),y=(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}))}},[]),N=(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})),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(y);g.current.resize=e;let t=new MutationObserver(N);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),x(e=>({...e,loaded:!0})),t.observe(p.current,{childList:!0,subtree:!0}))});g.current.adFrameMutation=a;let r=p.current;return r&&a&&a.observe(r,{childList:!0,subtree:!0}),()=>{e.disconnect(),a.disconnect(),t.disconnect()}},[N,t,c,y]),!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)(v,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:b,style:{height:h.loaded?"100%":"0px"},ref:p})]}),"WX_PromoDriver1"===t&&(!h.loaded||!h.displayAd)&&(0,r.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},68133:(e,t,a)=>{a.d(t,{default:()=>S});var r=a(93486);a(35550);var l=a(67146),n=a(79940),i=a(80938),s=a(89176),o=a(4244);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(86550),u=a(59557),m=a(30071),f=a(26686),h=a(40749);let x=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,c.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 r=(0,u.F)({productIdentifier:e,phenomena:t,significance:a}),l=(0,m.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=s?(0,u.F)({productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance}):null,x=s?(0,m.t)({productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance}):null;return i||n||!s?null:(0,r.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,r.jsxs)("div",{className:"flex flex-1 gap-2",children:[s&&(0,r.jsx)(f.AlertIcon,{productIdentifier:s.productIdentifier,phenomena:s.phenomena,significance:s.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,r.jsx)("span",{className:"uppercase",children:s.eventDescription})]}),a&&a.alerts.length>1&&(0,r.jsxs)(h.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==o?void 0:o.buttonBackgroundColor,...1===d||x?{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 p=a(51995),g=a(80240);let v=e=>{let{location:t,weatherData:a,forecastData:l,isLoading:n,error:i,formattedTime:s,video:o}=e;return t?n?(0,r.jsx)(N,{location:t}):!i&&a&&l?(0,r.jsx)(b,{location:t,weatherData:a,forecastData:l,formattedTime:s,video:o}):(0,r.jsx)(y,{location:t,error:i}):(0,r.jsx)(N,{message:"Loading location..."})},b=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)(p.Ay,{variant:"Title.S",color:"inverse",elementType:"h2",children:[t.displayName,", ",t.adminDistrict]}),(0,r.jsxs)(p.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.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)(p.Ay,{variant:"Display.XL",color:"inverse",elementType:"h2",children:[Math.round(a.temperature),"\xb0"]}),(0,r.jsx)("div",{className:"ml-4",children:(0,r.jsx)(g.WxIcon,{iconCode:a.iconCode,className:"lightBG h-20 w-20","aria-label":a.wxPhraseLong,iconTheme:"lightBG"})})]}),(0,r.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(p.Ay,{variant:"Title.M",color:"inverse",elementType:"p",children:a.wxPhraseLong}),(0,r.jsxs)(p.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%]",children:(0,r.jsx)(x,{location:t})})]})]}),i&&(0,r.jsx)(j,{title:i.title,url:i.url})]})},y=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)(x,{location:t})})})]})]})},N=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)(x,{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)(p.Ay,{color:"inverse",children:["Watch: ",t]})]})};var w=a(25129),C=a(52493),T=a(22047),A=a(5540);let S=e=>{let{location:t,video:a}=e,{effectiveLocation:c,isLocationLoading:u,locationError:m}=(0,n.s)({location:t}),{weatherData:f,forecastData:h,isLoading:x,error:p,formattedTime:g}=function(e){var t,a,r,n,c;let u=(0,C.md)(T.Yt),m=null==(t=(0,A.xP)(u))?void 0:t.code,{data:f,error:h,isLoading:x}=(0,l.Ay)(e?["weather",e.geocode,m]:null,e=>{let[t,a,r]=e;return(0,i.z)({geocode:a,units:r,language:"en-US"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:p,error:g,isLoading:v}=(0,l.Ay)(e?["daily-forecast",e.geocode,m]:null,t=>{let[a,r,l]=t;return e?(0,s.v1)({geocode:r,units:l,language:"en-US"}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),b=f?{temperature:f.temperature,wxPhraseLong:f.wxPhraseLong,iconName:o.ICON_CODE_MAP[f.iconCode]||"na",iconCode:f.iconCode,validTimeLocal:f.validTimeLocal}:void 0,y=p&&p.length>0?{temperatureMax:null!=(n=null==(a=p[0])?void 0:a.calendarDayTemperatureMax)?n:0,temperatureMin:null!=(c=null==(r=p[0])?void 0:r.calendarDayTemperatureMin)?c:0}:void 0,N=b?d(b.validTimeLocal):"";return{weatherData:b,forecastData:y,isLoading:x||v,error:h||g,formattedTime:N}}(c),b=x||u,y=p||m;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t,video:a},state:{effectiveLocation:c,isLocationLoading:u,isLoading:b,weatherData:f,forecastData:h,formattedTime:g,error:y,componentState:y&&"error"||b&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,r.jsx)(v,{location:c,weatherData:f,forecastData:h,isLoading:b,error:y,formattedTime:g,video:a})]})}},75433:(e,t,a)=>{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(30740)},85311:(e,t)=>{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"}}}},86550:(e,t,a)=>{t.Sn=s;let r=a(85311),l=a(77149),n=a(58238),i=a(40651);async function s(e){let{geocode:t,language:a="en-US"}=e,s=(0,l.urlFrom)((0,r.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:a})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,n.handleFetchResponse)(o);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},89176:(e,t,a)=>{t.vt=void 0,t.v1=o;let r=a(65733),l=a(77149),n=a(58238),i=a(75433),s=a(8236);async function o(e){let a=(0,r.getDailyForecastUrlConfig)(e),i=(0,l.urlFrom)(a),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,n.handleFetchResponse)(s);return(0,t.vt)(o)}t.vt=(0,i.createTransformer)((e,t,a)=>{var r,l,n,i,o,d,c,u,m,f,h,x,p,g,v,b,y,N,j,w,C,T,A,S;return{calendarDayTemperatureMax:null!=(l=e.calendarDayTemperatureMax)?l:0,calendarDayTemperatureMin:null!=(n=e.calendarDayTemperatureMin)?n: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!=(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!=(g=e.qpf)?g:0,qpfSnow:null!=(v=e.qpfSnow)?v:0,sunriseTimeLocal:null!=(b=e.sunriseTimeLocal)?b:"",sunriseTimeUtc:null!=(y=e.sunriseTimeUtc)?y:0,sunsetTimeLocal:null!=(N=e.sunsetTimeLocal)?N:"",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!=(A=e.validTimeUtc)?A:0,daypart:null!=(S=null==a||null==(r=a.daypart)?void 0:r[t])?S:{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:[]}}})},97928:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var r=a(93486);a(35550);var l=a(9935);let n=e=>{let{title:t,subTitle:a,subText:n,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,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:o||"Learn More"})})]})})})}}}]);