(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3482],{381:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(59716),n=r(77704),l=r(16357),o=r(56694),s=r(74171);let i=()=>{let e=(0,o.useRouter)(),t=(0,s.y)();return(0,n.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,a.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})}},5635:(e,t,r)=>{Promise.resolve().then(r.bind(r,98167)),Promise.resolve().then(r.bind(r,16047)),Promise.resolve().then(r.bind(r,41630)),Promise.resolve().then(r.bind(r,381)),Promise.resolve().then(r.bind(r,71379))},13820:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var a=r(9649);let n=(0,r(97324).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.d(t,{default:()=>m});var a=r(59716),n=r(77704),l=r(56694),o=r(74171),s=r(51045),i=r(70283),c=r(52131);function d(e){let{url:t,scriptId:r}=e;return window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),(0,a.jsx)(c.default,{async:!0,id:r,src:t})}function u(e){let{pageType:t,placements:r,pageUrl:a}=e;return(0,n.useEffect)(()=>{window._taboola=window._taboola||[],window._taboola.push({[t]:"auto",url:a}),r.forEach(e=>{window._taboola.push({...e})}),window._taboola.push({flush:!0})},[t,a,r]),null}let h=()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})};var f=r(13820);let m=e=>{let{placements:t,pageType:r,className:c=""}=e,m=(0,i.A)(),p=(0,l.usePathname)(),[x,b]=(0,n.useState)(!1),v="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,n.useEffect)(()=>{if(m&&v)return b(!1),()=>{h()}},[m,v]);let w=(0,n.useMemo)(()=>{let e=(0,o.y)();return"".concat(e).concat(p||"")},[p]);return m&&v?(0,a.jsxs)("section",{className:(0,f.cn)("@container",c),children:[m&&v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{url:v,scriptId:"tb_loader_script"}),(0,a.jsx)(u,{pageType:r,placements:t,pageUrl:w})]}),(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:v,pageType:r,className:c},state:{loaded:x}}})]}):null}},20104:(e,t,r)=>{"use strict";function a(e){let{src:t,width:r,quality:a}=e;if(!t||-1===t.indexOf("w-x.co"))return t;let n=new URL(t);return n.searchParams.set("format","auto"),n.searchParams.set("optimize","medium"),n.searchParams.set("width",r.toString()),a&&n.searchParams.set("quality",a.toString()),n.href}r.r(t),r.d(t,{default:()=>a})},41630:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var a=r(59716);r(77704);var n=r(88423),l=r(84271);let o=e=>{let{image:t,title:r,loggedInContent:o,loggedOutContent:s}=e,{user:i}=(0,n.J)(),c=i.isUserLoggedIn,d={blockType:"promoDriver",image:t,title:r};return c?(0,a.jsx)(l.default,{...d,subtitle:o.subtitle,bodyText:o.bodyText,ctaButton:o.ctaText||o.ctaUrl?{text:o.ctaText||"Learn More",url:o.ctaUrl||"/",openInNewTab:!1}:void 0}):(0,a.jsx)(l.default,{...d,subtitle:s.subtitle,bodyText:s.bodyText,ctaButton:s.ctaText||s.ctaUrl?{text:s.ctaText||"Learn More",url:s.ctaUrl||"/",openInNewTab:!1}:void 0})}},51045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DebugCollector:()=>o});var a=r(77704),n=r(89392),l=r(74243);function o(e){let{componentName:t,data:r,page:o,onUpdateData:s,onSetPageData:i}=e,{updateComponentData:c,setPageData:d}=(0,n.K)(),u=(0,a.useRef)(!1),h=s||c,f=i||d;return(0,a.useEffect)(()=>{if(r)return l.debugLogger.lifecycle("DebugCollector","Collecting component data for ".concat(t),{dataKeys:Object.keys(r),hasPerformance:!!r.performance,hasContext:!!r.context}),h(t,{...r,_collectedAt:new Date().toISOString()}),()=>{l.debugLogger.lifecycle("DebugCollector","Cleaning up data for ".concat(t)),h(t,null)}},[t,r,h]),(0,a.useEffect)(()=>{o&&!u.current&&(l.debugLogger.lifecycle("DebugCollector","Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),f({...o,_updatedAt:new Date().toISOString()}),u.current=!0)},[o,f]),null}},61185:(e,t,r)=>{"use strict";function a(e){return"object"==typeof e&&null!==e&&"url"in e}r.d(t,{bt:()=>a})},64949:(e,t,r)=>{"use strict";r.d(t,{J:()=>s,U:()=>o});var a=r(80584),n=r(65864),l=r(26726);let o=(0,a.tG)("userProfile",null),s=(0,a.tG)("userPreferences",{userID:(0,l.A)(),unit:n.tE,locations:[],locale:"en_US",mapSettings:{animationSpeed:1,autoplay:!0,opacity:100,roadOverlay:"default",style:"default"},favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]})},65864:(e,t,r)=>{"use strict";r.d(t,{Bu:()=>d,Uo:()=>l,cl:()=>n,lr:()=>c,tE:()=>a,xP:()=>u});let a="Imperial",n="Metric",l="Hybrid",o={code:"e",name:a,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},s={code:"m",name:n,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},i={code:"h",name:l,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"},c="unitOfMeasurement";function d(e){switch(null==e?void 0:e.toLowerCase()){case"e":case"f":return o;case"m":case"c":return s;case"h":return i;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 s;case"hybrid":case"Hybrid":return i;default:return null}}},67352:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var a=r(59716),n=r(74501),l=r.n(n);r(77704);let o=e=>{let{mpa:t=!0,...r}=e;if(t){let{href:e,children:t,...n}=r;return(0,a.jsx)("a",{href:e.toString(),...n,children:t})}return(0,a.jsx)(l(),{...r})}},70283:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(77704),n=r(78610),l=r(88423),o=r(72698);let s=()=>{try{var e,t,r,a;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==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}},i=function(){let{DISCONNECTED_user:e}=(0,l.J)(),[t,r]=(0,a.useState)(!1),i=(0,n.md)(o.W);return(0,a.useEffect)(()=>{i&&r(s())},[i]),t&&!(null==e?void 0:e.isUserPremium)}},71379:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var a=r(59716),n=r(13820);function l(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...r})}function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.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,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...r})}r(77704);var i=r(70283);function c(e){let{taboolaId:t,taboolaType:r="generic",title:c="",className:d=""}=e;return(0,i.A)()&&t?"invisible"===r?(0,a.jsx)("div",{id:t}):"generic"===r?(0,a.jsxs)(l,{className:d,children:[c&&(0,a.jsx)(o,{children:(0,a.jsx)("h2",{className:"text-2xl font-bold",children:c})}),(0,a.jsx)(s,{className:"z-40",children:(0,a.jsx)("div",{id:t,className:"bg-none"})})]}):(0,a.jsxs)("div",{className:(0,n.cn)("wx-media-object gradient-overlay thirdparty-feed border",d),children:[c&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:c})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center"})]}):null}},72698:(e,t,r)=>{"use strict";r.d(t,{W:()=>s,default:()=>c});var a=r(59716),n=r(52131),l=r(16182),o=r(13578);let s=(0,o.eU)(!1);function i(){if(window.top===window.self)window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,l.getCookie)("twc-privacy")}),(0,o.zp)().set(s,!0);else try{var e;window.DprSdk=null==(e=window.top)?void 0:e.DprSdk}catch(e){}}function c(){return(0,a.jsx)(n.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:i})}},74171:(e,t,r)=>{"use strict";r.d(t,{y:()=>l});var a=r(9005),n=r(37811);let l=()=>{if(a.A){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return"".concat(e,"//").concat(t).concat(r?":".concat(r):"")}return n.env.VERCEL_PROJECT_PRODUCTION_URL?"https://".concat(n.env.VERCEL_PROJECT_PRODUCTION_URL):n.env.NEXT_PUBLIC_SERVER_URL||""}},74243:(e,t,r)=>{"use strict";r.d(t,{debugLogger:()=>l});var a=r(37811);let n="[FrontendAdminHeader]",l={info:(e,t,r)=>{"preview"===a.env.VERCEL_ENV&&console.log("".concat(n," [").concat(e,"] ").concat(t),void 0!==r?r:"")},warn:(e,t,r)=>{"preview"===a.env.VERCEL_ENV&&console.warn("".concat(n," [").concat(e,"] ").concat(t),void 0!==r?r:"")},error:(e,t,r)=>{console.error("".concat(n," [").concat(e,"] ").concat(t),void 0!==r?r:"")},lifecycle:(e,t,r)=>{"preview"===a.env.VERCEL_ENV&&"true"===a.env.NEXT_PUBLIC_DEBUG_COMPONENTS&&console.log("".concat(n," [").concat(e,"] \uD83D\uDD04 ").concat(t),void 0!==r?r:"")}}},79548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var a=r(59716);r(77704);var n=r(40843);let l=e=>{let{title:t,subTitle:r,subText:l,ctaStyle:o,media:s,buttonText:i,linkUrl:c,openInNewTab:d,backgroundColor:u}=e,h=(e=>e&&"object"==typeof e&&"url"in e)(s)?s.url:"string"==typeof s?s:null;return(0,a.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,a.jsx)("div",{className:"cta-block ".concat(o),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),h&&(0,a.jsx)("a",{href:c,target:d?"_blank":"_self",rel:d?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:h,alt:t})})}),r&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:r}),l&&(0,a.jsx)("p",{className:"mb-4",children:l}),"standard"===o&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:c,target:d?"_blank":"_self",rel:d?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:i||"Learn More"})})]})})})}},84271:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(59716);r(77704);var n=r(72517),l=r(67352),o=r(61185);let s=e=>{let{title:t,image:r,subtitle:s,bodyText:i,ctaButton:c}=e,d=(null==c?void 0:c.url)&&/^https?:\/\//i.test(c.url),u=(0,o.bt)(r)?r:null;return t||u&&(null==u?void 0:u.url)||s||i||c?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:c&&c.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||i||c)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:c&&c.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),i&&(0,a.jsx)("a",{href:c&&c.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:i})}),c&&(0,a.jsx)("div",{className:"flex justify-end",children:d?(0,a.jsx)("a",{href:c.url||"#",target:c.openInNewTab?"_blank":"_self",rel:c.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:c.text}):(0,a.jsx)(l.default,{href:c.url||"#",target:c.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:c.text})})]})]})]}):null}},98167:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdBlock:()=>c,default:()=>d});var a=r(59716),n=r(77704),l=r(51045),o=r(13820),s=r(79548),i=r(88423);let c=e=>{let{adId:t,variant:r="banner",title:c=null,height:d="120px",className:u=""}=e,{user:h}=(0,i.J)(),{isUserPremium:f}=h,[m,p]=(0,n.useState)({loaded:!1,height:d,displayAd:!1}),x=(0,n.useRef)(null),b=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),v=(0,n.useMemo)(()=>"WX_Hidden"!==t&&m.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"===r?"rounded-lg overflow-hidden bg-white shadow-md mb-4":"bg-white rounded-md overflow-hidden px-4 pb-4":"hidden",[t,r,m.displayAd]),w=(0,n.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)},[m.loaded]),g=(0,n.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&p(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),j=(0,n.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);p(e=>({...e,displayAd:t}))},[]);return((0,n.useEffect)(()=>{p(e=>({...e,loaded:!1,height:d,displayAd:!1})),b.current.resize&&b.current.resize.disconnect(),b.current.adFrameMutation&&b.current.adFrameMutation.disconnect(),b.current.adCreativeMutation&&b.current.adCreativeMutation.disconnect();let e=new ResizeObserver(g);b.current.resize=e;let t=new MutationObserver(j);b.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)})&&x.current&&e&&t&&(e.observe(x.current),p(e=>({...e,loaded:!0})),t.observe(x.current,{childList:!0,subtree:!0}))});b.current.adFrameMutation=r;let a=x.current;return a&&r&&r.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),r.disconnect(),t.disconnect()}},[t,d,g]),!t||f)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:r,title:c,height:d,className:u},state:{loaded:m.loaded,height:m.height,displayAd:m.displayAd},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,o.cn)(v,u),children:[c&&m.loaded&&(0,a.jsx)("div",{className:"py-0.75 text-xxs w-full px-4 text-right text-gray-400",children:c}),"WX_PromoDriver1"===t&&!c&&m.loaded&&m.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,className:w,style:{height:m.loaded?"100%":"0px"},ref:x})]}),"WX_PromoDriver1"===t&&(!m.loaded||!m.displayAd)&&(0,a.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},d=c}},e=>{var t=t=>e(e.s=t);e.O(0,[9841,4547,9966,7143,2234,5870,4743,7358],()=>t(5635)),_N_E=e.O()}]);