(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1876],{1087:(e,t,r)=>{"use strict";r.d(t,{debugLogger:()=>o});var n=r(37811);let a="[FrontendAdminHeader]",l="preview"===n.env.VERCEL_TARGET_ENV||"development"===n.env.VERCEL_TARGET_ENV,o={info:(e,t,r)=>{(l||"preview"===n.env.VERCEL_ENV)&&console.log("".concat(a," [").concat(e,"] ").concat(t),void 0!==r?r:"")},warn:(e,t,r)=>{(l||"preview"===n.env.VERCEL_ENV)&&console.warn("".concat(a," [").concat(e,"] ").concat(t),void 0!==r?r:"")},error:(e,t,r)=>{console.error("".concat(a," [").concat(e,"] ").concat(t),void 0!==r?r:"")},lifecycle:(e,t,r)=>{(l||"preview"===n.env.VERCEL_ENV)&&"true"===n.env.NEXT_PUBLIC_DEBUG_COMPONENTS&&console.log("".concat(a," [").concat(e,"] \uD83D\uDD04 ").concat(t),void 0!==r?r:"")}}},2631:(e,t,r)=>{"use strict";r.d(t,{y:()=>l});var n=r(43641),a=r(37811);let l=()=>{if(n.A){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return"".concat(e,"//").concat(t).concat(r?":".concat(r):"")}return a.env.VERCEL_PROJECT_PRODUCTION_URL?"production"===a.env.VERCEL_ENV?"https://weather.com":"https://".concat(a.env.VERCEL_PROJECT_PRODUCTION_URL):a.env.NEXT_PUBLIC_SERVER_URL||""}},4924:(e,t,r)=>{"use strict";function n(e){let{src:t,width:r,quality:n}=e;if(!t||-1===t.indexOf("w-x.co"))return t;let a=new URL(t);return a.searchParams.set("format","auto"),a.searchParams.set("optimize","medium"),a.searchParams.set("width",r.toString()),n&&a.searchParams.set("quality",n.toString()),a.href}r.r(t),r.d(t,{default:()=>n})},5540:(e,t,r)=>{"use strict";r.d(t,{Bu:()=>c,Uo:()=>l,cl:()=>a,lr:()=>d,tE:()=>n,xP:()=>u});let n="Imperial",a="Metric",l="Hybrid",o={code:"e",name:n,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},i={code:"m",name:a,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},s={code:"h",name:l,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"},d="unitOfMeasurement";function c(e){switch(null==e?void 0:e.toLowerCase()){case"e":case"f":return o;case"m":case"c":return i;case"h":return s;default:return null}}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e.toLowerCase()){case"imperial":case"Imperial":return o;case"metric":case"Metric":return i;case"hybrid":case"Hybrid":return s;default:return null}}},7453:(e,t,r)=>{Promise.resolve().then(r.bind(r,65835)),Promise.resolve().then(r.bind(r,99451)),Promise.resolve().then(r.bind(r,79730)),Promise.resolve().then(r.bind(r,50441)),Promise.resolve().then(r.bind(r,39922))},9935:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,_:()=>i});var n=r(93486),a=r(35550),l=r(86039),o=r(60896);let i=(0,a.forwardRef)((e,t)=>{let{src:r,alt:a,shadow:i,rounded:s=!0,className:d,wrapperClassName:c,width:u=320,height:f=180,quality:h,priority:m=!1,loading:p,objectFit:b="contain",fill:v=!1,sizes:x,...w}=e;if(!r)return null;let g=(0,n.jsx)(l.default,{ref:t,src:r,alt:a,width:v?void 0:u,height:v?void 0:f,quality:h,priority:m,loading:p,fill:v,sizes:x,className:(0,o.cn)({"shadow-md":i,"rounded-lg":s,"object-contain":"contain"===b,"object-cover":"cover"===b,"object-fill":"fill"===b,"object-none":"none"===b,"object-scale-down":"scale-down"===b,"h-auto w-full":!v},d),...w});return v?(0,n.jsx)("div",{className:(0,o.cn)("relative h-full w-full",c),children:g}):g});i.displayName="Image";let s=i},22015:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(35550),a=r(52493),l=r(76075),o=r(43646);let i=()=>{try{var e,t,r,n;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(r=window)||null==(t=r.DprSdk)?void 0:t.getFeatureFlags();return null==(n=null==e?void 0:e.taboola)||n}return!0}catch(e){return!0}},s=function(){let{DISCONNECTED_user:e}=(0,l.J)(),[t,r]=(0,n.useState)(!1),s=(0,a.md)(o.W);return(0,n.useEffect)(()=>{s&&r(i())},[s]),t&&!(null==e?void 0:e.isUserPremium)}},25129:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DebugCollector:()=>o});var n=r(35550),a=r(11140),l=r(1087);function o(e){let{componentName:t,data:r,page:o,onUpdateData:i,onSetPageData:s}=e,{updateComponentData:d,setPageData:c}=(0,a.K)(),u=(0,n.useRef)(!1),f=i||d,h=s||c;return(0,n.useEffect)(()=>{if(r)return l.debugLogger.lifecycle("DebugCollector","Collecting component data for ".concat(t),{dataKeys:Object.keys(r),hasPerformance:!!r.performance,hasContext:!!r.context}),f(t,{...r,_collectedAt:new Date().toISOString()}),()=>{l.debugLogger.lifecycle("DebugCollector","Cleaning up data for ".concat(t)),f(t,null)}},[t,r,f]),(0,n.useEffect)(()=>{o&&!u.current&&(l.debugLogger.lifecycle("DebugCollector","Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),h({...o,_updatedAt:new Date().toISOString()}),u.current=!0)},[o,h]),null}},29717:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"url"in e}r.d(t,{bt:()=>n})},33929:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,U:()=>o});var n=r(14815),a=r(5540),l=r(63094);let o=(0,n.tG)("userProfile",null),i=(0,n.tG)("userPreferences",{userID:(0,l.A)(),unit:a.tE,locations:[],locale:"en_US",mapSettings:{animationSpeed:1,autoplay:!0,opacity:100,roadOverlay:"default",style:"default"},favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]})},36501:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",a=arguments.length;rn})},39922:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(93486),a=r(60896),l=r(35550);function o(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...r})}function i(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",t),...r})}function s(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",t),...r})}var d=r(22015);function c(e){let{taboolaId:t,taboolaType:r="generic",title:c="",className:u=""}=e,f=(0,d.A)(),[h,m]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{let e=document.getElementById(t),r=new MutationObserver(t=>{t.forEach(t=>{("style"===t.attributeName||"class"===t.attributeName)&&m(!(null==e?void 0:e.checkVisibility()))})});return e&&r.observe(e,{attributes:!0,attributeFilter:["style","class"]}),()=>{e&&r.disconnect()}},[f,t]),f&&t)?"invisible"===r?(0,n.jsx)("div",{id:t}):"generic"===r?(0,n.jsxs)(o,{className:(0,a.cn)(u,h&&"hidden"),children:[c&&(0,n.jsx)(i,{children:(0,n.jsx)("h2",{className:"text-2xl font-bold",children:c})}),(0,n.jsx)(s,{className:"z-40",children:(0,n.jsx)("div",{id:t,className:"bg-none"})})]}):(0,n.jsxs)("div",{className:(0,a.cn)("wx-media-object gradient-overlay thirdparty-feed border",u,h&&"hidden"),children:[c&&(0,n.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,n.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:c})}),(0,n.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center"})]}):null}},43641:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=!!window.document&&!!window.document.createElement},43646:(e,t,r)=>{"use strict";r.d(t,{W:()=>i,default:()=>d});var n=r(93486),a=r(18673),l=r(60675),o=r(13601);let i=(0,o.eU)(!1);function s(){if(window.top===window.self)window.DprSdk&&(window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,l.getCookie)("twc-privacy")}),(0,o.zp)().set(i,!0));else try{var e;(null==(e=window.top)?void 0:e.DprSdk)&&(window.DprSdk=window.top.DprSdk)}catch(e){}}function d(){return(0,n.jsx)(a.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:s})}},46748:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(93486),a=r(76635),l=r.n(a);r(35550);let o=e=>{let{mpa:t=!0,...r}=e;if(t){let{href:e,children:t,...a}=r;return(0,n.jsx)("a",{href:e.toString(),...a,children:t})}return(0,n.jsx)(l(),{...r})}},50441:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(93486),a=r(35550),l=r(9261),o=r(95228),i=r(2631);let s=()=>{let e=(0,o.useRouter)(),t=(0,i.y)();return(0,a.useEffect)(()=>{console.debug("RefreshRouteOnSave mounted with server URL:",t);let e=e=>{console.error("Live preview error:",e.error)};return window.addEventListener("error",e),()=>{window.removeEventListener("error",e)}},[t]),(0,n.jsx)(l.p,{refresh:()=>{try{console.debug("Refreshing route via Next.js router"),e.refresh()}catch(e){console.error("Error refreshing route:",e)}},serverURL:t})}},58419:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(93486);r(35550);var a=r(86039),l=r(46748),o=r(29717);let i=e=>{let{title:t,image:r,subtitle:i,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,o.bt)(r)?r:null;return t||u&&(null==u?void 0:u.url)||i||s||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)(a.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(i||s||d)&&(0,n.jsxs)("div",{className:"p-4",children:[i&&(0,n.jsx)("a",{href:d&&d.url||"#",children:(0,n.jsx)("h4",{className:"mb-2 text-base font-bold",children:i})}),s&&(0,n.jsx)("a",{href:d&&d.url||"#",children:(0,n.jsx)("p",{className:"mb-4 text-base",children:s})}),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}},60896:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var n=r(36501);let a=(0,r(46261).zu)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function l(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.r(t),r.d(t,{AdBlock:()=>d,default:()=>c});var n=r(93486),a=r(35550),l=r(25129),o=r(60896),i=r(97928),s=r(76075);let d=e=>{let{adId:t,variant:r="banner",title:d=null,height:c="120px",className:u=""}=e,{user:f}=(0,s.J)(),{isUserPremium:h}=f,[m,p]=(0,a.useState)({loaded:!1,height:c,displayAd:!1}),b=(0,a.useRef)(null),v=(0,a.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),x=(0,a.useMemo)(()=>{if("WX_Hidden"===t||!m.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"===r)return"rounded-lg overflow-hidden bg-white shadow-md mb-4";return"bg-white rounded-md overflow-hidden px-4 pb-4"},[t,r,m.displayAd]),w=(0,a.useMemo)(()=>{let e=m.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,m.loaded]),g=(0,a.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&p(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),y=(0,a.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);p(e=>({...e,displayAd:t}))},[]);return((0,a.useEffect)(()=>{p(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(g);v.current.resize=e;let t=new MutationObserver(y);v.current.adCreativeMutation=t;let r=new MutationObserver(r=>{r.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)})&&b.current&&e&&t&&(e.observe(b.current),p(e=>({...e,loaded:!0})),t.observe(b.current,{childList:!0,subtree:!0}))});v.current.adFrameMutation=r;let n=b.current;return n&&r&&r.observe(n,{childList:!0,subtree:!0}),()=>{e.disconnect(),r.disconnect(),t.disconnect()}},[y,t,c,g]),!t||h)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:r,title:d,height:c,className:u},state:{loaded:m.loaded,height:m.height,displayAd:m.displayAd},performance:{renderTime:Date.now()}}}),(0,n.jsxs)("div",{className:(0,o.cn)(x,u),children:[d&&m.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&&m.loaded&&m.displayAd&&(0,n.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,n.jsx)("div",{id:t,className:w,style:{height:m.loaded?"100%":"0px"},ref:b})]}),"WX_PromoDriver1"===t&&(!m.loaded||!m.displayAd)&&(0,n.jsx)(i.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},c=d},79372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},getImageProps:function(){return i}});let n=r(37982),a=r(50032),l=r(12732),o=n._(r(4924));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let s=l.Image},79730:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(93486);r(35550);var a=r(76075),l=r(58419);let o=e=>{let{image:t,title:r,loggedInContent:o,loggedOutContent:i}=e,{user:s}=(0,a.J)(),d=s.isUserLoggedIn,c={blockType:"promoDriver",image:t,title:r};return d?(0,n.jsx)(l.default,{...c,subtitle:o.subtitle,bodyText:o.bodyText,ctaButton:o.ctaText||o.ctaUrl?{text:o.ctaText||"Learn More",url:o.ctaUrl||"/",openInNewTab:!1}:void 0}):(0,n.jsx)(l.default,{...c,subtitle:i.subtitle,bodyText:i.bodyText,ctaButton:i.ctaText||i.ctaUrl?{text:i.ctaText||"Learn More",url:i.ctaUrl||"/",openInNewTab:!1}:void 0})}},86039:(e,t,r)=>{"use strict";r.d(t,{default:()=>a.a});var n=r(79372),a=r.n(n)},97928:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(93486);r(35550);var a=r(9935);let l=e=>{let{title:t,subTitle:r,subText:l,ctaStyle:o,media:i,buttonText:s,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,f=void 0!=i.url?i.url:"string"==typeof i?i: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(o),children:(0,n.jsxs)("div",{className:"cta-content text-black",children:[(0,n.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),f&&(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)(a.A,{src:f,alt:t})})}),r&&(0,n.jsx)("h2",{className:"mb-2 text-lg font-bold",children:r}),l&&(0,n.jsx)("p",{className:"mb-4",children:l}),"standard"===o&&(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:s||"Learn More"})})]})})})}},99451:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var n=r(93486),a=r(35550),l=r(95228),o=r(2631),i=r(25129),s=r(22015),d=r(18673);function c(e){let{url:t,scriptId:r}=e;return window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),(0,n.jsx)(d.default,{async:!0,id:r,src:t})}function u(e){let{pageType:t,placements:r,pageUrl:n}=e;return(0,a.useEffect)(()=>{window._taboola=window._taboola||[],window._taboola.push({[t]:"auto",url:n}),r.forEach(e=>{window._taboola.push({...e})}),window._taboola.push({flush:!0})},[t,n,r]),null}let f=()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})};var h=r(60896);let m=e=>{let{placements:t,pageType:r,className:d=""}=e,m=(0,s.A)(),p=(0,l.usePathname)(),[b,v]=(0,a.useState)(!1),x="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,a.useEffect)(()=>{if(m&&x)return v(!1),()=>{f()}},[m,x]);let w=(0,a.useMemo)(()=>{let e=(0,o.y)();return"".concat(e).concat(p||"")},[p]);return m&&x?(0,n.jsxs)("section",{className:(0,h.cn)("@container",d),children:[m&&x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{url:x,scriptId:"tb_loader_script"}),(0,n.jsx)(u,{pageType:r,placements:t,pageUrl:w})]}),(0,n.jsx)(i.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:x,pageType:r,className:d},state:{loaded:b}}})]}):null}}},e=>{var t=t=>e(e.s=t);e.O(0,[6261,6635,4140,645,5333,9789,3980,9721,5709,7358],()=>t(7453)),_N_E=e.O()}]);