(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4036],{2562:(e,l,t)=>{"use strict";t.d(l,{B:()=>s});var r=t(21102),a=t(42494),n=t(66188);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Star"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8 1 5.727 5.61.64 6.345l3.68 3.59L3.45 15 8 12.61 12.55 15l-.87-5.065 3.68-3.585-5.085-.74z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="StarFilled"},3135:(e,l,t)=>{"use strict";t.d(l,{AdminHeaderWrapper:()=>j});var r=t(21102),a=t(42494),n=t(1388),i=t(42216),s=t(57809),o=t(75695),c=t(36132),d=t(34679),u=t(44182),h=t(59338);let m=(0,u.h)("AtomDebugHydrationBoundaries"),f=e=>{let{debugData:l}=e,{updateSection:t}=(0,h.K)(),r=(0,d.usePathname)();return m.info("Initial props received",{hasDebugData:!!l,currentPath:r}),(0,o.RH)([[c.B,l||{timestamp:new Date().toISOString()}]]),(0,a.useEffect)(()=>{m.lifecycle("Path changed",r);let e=sessionStorage.getItem("lastPath"),a=!e||e===r;m.info("Navigation type",a?"Direct load/refresh":"Client-side navigation"),t("route",r),a&&!l?t("meta",{dataState:"stale",lastConfirmedPath:e||null,currentPath:r,isDirectLoad:!0,timestamp:new Date().toISOString()}):(t("components",{}),l&&(m.info("Updating with new debug data for path",r),l.page&&t("page",l.page),l.match&&t("match",l.match),l.timestamp&&t("timestamp",l.timestamp),l.headers&&t("headers",l.headers),l.environment&&t("environment",l.environment),l.location&&t("location",{...l.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),t("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:a,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",null!=r?r:"")},[r,l,t]),m.lifecycle("Hydration complete",{debugData:l,pathname:r}),null};var v=t(85157);let x=(0,v.createServerReference)("409599969d26ed5ed8d4487d4f6ed5185d2a0e4e1c",v.callServer,void 0,v.findSourceMapURL,"translateDebugDataAction");var p=t(83037);let w=(0,u.h)("LocationCollector"),g=(0,u.h)("DataCollector");function A(e){let{pageProps:l,userRoles:t}=e,r=(0,d.usePathname)(),n=(0,d.useSearchParams)(),{updateSection:i}=(0,h.K)(),s=(0,a.useRef)(!1);!function(){let{updateSection:e}=(0,h.K)(),{effectiveLocation:l,isLocationLoading:t}=(0,p.s)({});(0,a.useEffect)(()=>{l&&!t&&(w.info("Location data updated",l.displayName),e("location",{...l,_observedFrom:"useLocationSource",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[l,t,e])}(),(0,a.useEffect)(()=>{if(t&&t.length>0){let e=Array.isArray(t)?t:[];i("userRoles",e),g.info("DataCollector","User roles updated",e)}},[t,i]);let o=(0,a.useCallback)(async()=>{try{g.info("DataCollector","Collecting data for route:",{path:r,paramsCount:n?Array.from(n.keys()).length:0});let e={};null==n||n.forEach((l,t)=>{e[t]=l}),g.lifecycle("DataCollector","Calling translateDebugDataAction");let t=await x({route:null!=r?r:"",params:e,pageProps:l});t&&(g.info("DataCollector","Debug data received",{route:t.route,hasPage:!!t.page,hasMatch:!!t.match,hasHeaders:!!t.headers,hasEnvironment:!!t.environment}),t.route&&(i("route",t.route),g.info("DataCollector","Route updated",t.route)),t.page&&(i("page",t.page),g.info("DataCollector","Page data updated",{title:t.page.title,id:t.page.id}),i("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:!1,timestamp:new Date().toISOString()})),t.match&&(i("match",t.match),g.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(t.match||{})})),t.headers&&(i("headers",t.headers),g.info("DataCollector","Headers updated",{headerCount:Object.keys(t.headers||{}).length})),t.environment&&(i("environment",t.environment),g.info("DataCollector","Environment data updated",{envVarCount:Object.keys(t.environment||{}).length})),i("timestamp",new Date().toISOString()))}catch(e){g.error("DataCollector","Error collecting debug data:",e),i("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[r,n,l,i]);return(0,a.useEffect)(()=>{g.lifecycle("DataCollector","Setting up data collection for path",r),s.current||(s.current=!0);let e=setTimeout(()=>{o()},200);return()=>{clearTimeout(e),g.lifecycle("DataCollector","Cleanup for path",r)}},[o,r]),null}function b(e){let{children:l,pageProps:t}=e;return(0,r.jsxs)(s.Kq,{children:[(0,r.jsx)(f,{debugData:null}),(0,r.jsx)(A,{pageProps:t}),l]})}let y=(0,n.default)(()=>t.e(5766).then(t.bind(t,45766)).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{webpack:()=>[45766]},ssr:!1,loading:()=>null});function j(e){let{children:l}=e,[t,n]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).has("debug"),l="true"===(0,i.getCookie)("twc-debug-mode");e&&(0,i.setCookie)("twc-debug-mode","true",{maxAge:2592e3}),n(e||l)},[]),!0===t)?(0,r.jsxs)(b,{children:[(0,r.jsx)(y,{}),l]}):(0,r.jsx)(r.Fragment,{children:l})}},3319:(e,l,t)=>{"use strict";t.d(l,{a:()=>s});var r=t(21102),a=t(42494),n=t(66188);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Location"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}),(0,r.jsx)("path",{d:"m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"})]})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="Location"},3780:(e,l,t)=>{"use strict";t.d(l,{e:()=>m});var r=t(42494),a=t(61300),n=t(57809),i=t(14296),s=t(27551),o=t(35071),c=t(36528),d=t(62810),u=t(17846),h=t(66172);let m=()=>{var e,l,t,m,f;let v=(0,a.G)(),{user:{isUserLoggedIn:x,isUserPremium:p,subscriptionTier:w}}=(0,h.J)(),[g,A]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),j=null!=p&&p,C=function(e){var l;return null!=(l=s.pj[e])?l:s.pj[s.C0.none]}(w),N=(0,n.md)(o.Mu),E=(0,n.md)(o.cc),S=(0,n.md)(d.pX),R=(0,n.md)(d.P9),M=u.A?(null==(l=window)||null==(e=l.DprSdk)?void 0:e.getUserConsent("sale-of-data"))!==!1:void 0,P=u.A?(null==(m=window)||null==(t=m.DprSdk)?void 0:t.getUserConsent("sensitive-data"))!==!1:void 0,U=null!=(f=(0,c.getCookie)("subscription"))?f:"",{productID:B=null,expirationDateTime:k=null,transactionDateTime:I=null,firstTransactionDateTime:D=null,autoRenew:T=null,price:L=null,productName:z=null}=(0,i.mT)(U)||{},V=(0,r.useMemo)(()=>({premium:j,premiumProductTier:C,premiumExpiration:k,premiumStart:I,premiumFirstTransactionDate:D,premiumProductId:B,premiumProductAutoRenew:T,premiumPrice:L,premiumProductName:z,isRegisteredUser:x||R||!1,isLoggedIn:x,"Amplitude.device_id":S,$Gender:E,$FirstName:N,saleOfDataAuthorization:M,sensitiveDataAuthorization:P,devUser:!1}),[j,C,k,I,D,B,T,L,z,S,x,R,N,E,M,P]);(0,r.useEffect)(()=>{(0,i.Js)(V)&&!g&&A(!0)},[V,g]);let H=(0,r.useCallback)(()=>{for(let e in V)void 0===V[e]&&delete V[e];if(v&&g&&!b){var e,l,t;let r=null==(t=window.mParticle)||null==(l=t.Identity)||null==(e=l.getCurrentUser)?void 0:e.call(l);if(!r)return void console.warn("MParticle: No current user");r.setUserAttributes(V),y(!0),console.debug("MParticle: User attributes set - ",V)}},[v,V,g,b]);return{userAttributes:V,setUserAttribute:(0,r.useCallback)((e,l)=>{var t,r,a;if(!v)return void console.warn("MParticle is not initialized");let n=null==(a=window.mParticle)||null==(r=a.Identity)||null==(t=r.getCurrentUser)?void 0:t.call(r);if(!n)return void console.warn("MParticle: No current user");n.setUserAttribute(e,l),console.debug("MParticle: User attribute set - ".concat(e))},[v]),setUserAttributes:H,removeUserAttribute:(0,r.useCallback)(e=>{var l,t,r;if(!v)return void console.warn("MParticle is not initialized");let a=null==(r=window.mParticle)||null==(t=r.Identity)||null==(l=t.getCurrentUser)?void 0:l.call(t);if(!a)return void console.warn("MParticle: No current user");a.removeUserAttribute(e),console.debug("MParticle: User attribute removed - ".concat(e))},[v])}}},5368:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-114x114.46b335fc.png",height:114,width:114,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAMZgzW61igcBDaLQPP599lstwjMUeSqVNcLilttsQcWCRAAAACXBIWXMAARlAAAEZQAGA43XUAAAAMElEQVR4nDXIxxEAIAzEwAtO9N8wD4NeOwJ+EQ9McY9n4SNVFtHykNNwSVISTZp2XA/JAJeZDGRwAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},5390:(e,l,t)=>{"use strict";t.d(l,{J:()=>s});var r=t(21102),a=t(42494),n=t(66188);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Chevron Left"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M5.586 8.586a.667.667 0 0 1 0-.943l4.178-4.179a.495.495 0 0 1 .7.7l-3.95 3.95 3.95 3.95a.495.495 0 1 1-.7.7z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ChevronLeft"},5667:(e,l,t)=>{"use strict";t.d(l,{default:()=>s});var r=t(21102),a=t(42494),n=t(86892),i=t(20423);let s=()=>{let e=(0,n.c)(),[l,t]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=document.querySelector("#wx-hero-content"),l=document.querySelector(".regionTopAds"),r=new MutationObserver(()=>{t(!0)});return[e,l].filter(Boolean).forEach(e=>{r.observe(e,{attributes:!0,childList:!0,subtree:!0})}),()=>{r.disconnect()}},[]),l)?null:(0,r.jsxs)("div",{className:"box-border flex min-h-12 items-center gap-2 px-3 py-2 text-white",style:{background:"linear-gradient(90deg, #204794 0%, #1164A2 50%, #007094 100%)"},children:[(0,r.jsx)("span",{className:"hidden md:inline",children:"Sign in to see fewer ads, or upgrade to Premium and go fully ad-free with a free trial."}),(0,r.jsx)("span",{className:"inline md:hidden",children:"Go ad-free with Premium."}),(0,r.jsx)(i.default,{href:"/subscribe?tpcc=banner-premium-merchandising",className:"ml-auto box-border hidden h-8 items-center justify-center rounded-lg border border-white px-3 py-2 text-sm font-bold whitespace-nowrap text-white no-underline hover:text-white focus:text-white md:flex",onClick:()=>{e({interactionElement:"merchandising-banner-go-to-subs-button",interactionType:"click",moduleId:"PremiumMerchandisingBanner"})},children:"Sign in to see fewer ads"}),(0,r.jsx)(i.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb",className:"box-border flex h-8 w-50 items-center justify-center rounded-lg bg-white px-3 py-2 text-sm font-bold whitespace-nowrap text-black no-underline max-md:ml-auto max-md:w-30",onClick:()=>{e({interactionElement:"merchandising-banner-go-to-checkout-button",interactionType:"click",moduleId:"PremiumMerchandisingBanner"})},children:"Start free trial"})]})}},6313:(e,l,t)=>{"use strict";t.d(l,{h:()=>u});var r=t(57809),a=t(67503),n=t(42216),i=t(53599),s=t(55358),o=t(41611),c=t(62810),d=t(51107);function u(){let e=(0,r.Xr)(s.UU),l=(0,r.Xr)(s.JK),[,t]=(0,r.fp)(c.lr),{refresh:u}=(0,i.b)();return async()=>{try{return await o._.auth.logout(),(0,a.j)(e=>"string"==typeof e&&e.startsWith("/upsx"),void 0,{revalidate:!1}),e(d.Ut),l(d.Ut),t(null),(0,n.deleteCookie)("twc-user",{domain:".weather.com"}),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}},6733:(e,l,t)=>{"use strict";t.d(l,{default:()=>P});var r=t(21102),a=t(42494),n=t(66188);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Left"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M6.44 12.855a.499.499 0 0 0 .706-.705L3.708 8.707h9.585a.5.5 0 1 0 0-1H3.708l3.438-3.442a.499.499 0 0 0-.706-.705L2.5 7.5a1 1 0 0 0 0 1.415z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ArrowLeft";let o=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Right"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M9.56 3.56a.499.499 0 0 0-.706.705l3.438 3.443H2.707a.5.5 0 0 0 0 1h9.585L8.854 12.15a.499.499 0 0 0 .706.705l3.94-3.94a1 1 0 0 0 0-1.415z"})]})}),c=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:o,...e}));c.displayName="ArrowRight";var d=t(71535),u=t(74228),h=t.n(u),m=t(33650),f=t.n(m),v=t(2562),x=t(9042),p=t(46701),w=t(66172),g=t(8648),A=t(53599),b=t(76128);let y=e=>{let{isFavorite:l,placeId:t,name:a,coordinate:n}=e,{user:i}=(0,w.J)(),{isUserLoggedIn:s}=i,{navigate:o}=(0,A.A)(),c=(0,b.A)(t),{addFavoriteLocation:d,removeFavoriteLocation:u,removeRecentLocation:h}=(0,g.A)();return(0,r.jsxs)("div",{className:"flex h-full max-w-75 shrink-[0] items-center gap-3 border-r-1 border-[#2524221A] px-3 text-nowrap",children:[(0,r.jsx)(f(),{href:c,children:a}),l?(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>u(t),children:(0,r.jsx)(v.B,{className:"h-[18px] w-[18px] text-[#fdc107]"})}):(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>{s?d({name:a,coordinate:n,placeID:t}):o("/signup")},children:(0,r.jsx)(x.F,{className:"h-[18px] w-[18px]"})}),(0,r.jsx)(j,{onDelete:()=>{u(t),h(t)}})]})};function j(e){let{onDelete:l}=e,t=(0,a.useRef)(null),[n,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e;return n&&(e=e=>{var l;(null==(l=t.current)?void 0:l.contains(e.target))?e.stopPropagation():i(!1)},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[n]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("button",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{e.stopPropagation(),i(!0)},children:(0,r.jsx)(p.C,{className:"h-5 w-5"})}),(0,r.jsx)("button",{ref:t,className:(0,d.cn)("bg-brand-400 invisible absolute -top-full -right-full !m-0 h-10 cursor-pointer rounded-lg border border-[#1b4de4] px-[14px] py-[6px] text-sm font-medium text-nowrap text-white opacity-0 transition-[right,opacity] duration-300 ease-out hover:bg-white hover:text-black",n&&"visible top-1/2 right-[10px] -translate-y-1/2 opacity-100"),onClick:l,children:"Delete"})]})}var C=t(58250),N=t(11776),E=t(57809),S=t(59946);let R=e=>{let{placeId:l}=e,t=(0,E.md)(C.X),{data:a}=(0,S.Ay)(l?["location-data",l]:null,()=>(0,N.$M)(l,t),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!a)return null;let{city:n,latitude:i,longitude:s}=a.location;return(0,r.jsx)(y,{placeId:l,name:n,coordinate:"".concat(i,",").concat(s)})};var M=t(83037);let P=()=>{let{favoriteLocations:e,recentLocations:l}=(0,g.A)(),t=l.filter(l=>!e.some(e=>{let{placeID:t}=e;return t===l})),{effectiveLocation:n}=(0,M.s)({}),[i,o]=(0,a.useState)(0),u=(0,a.useRef)(null),m=(0,a.useRef)(null),f=((e,l)=>{if(!e.current)return 0;let t=Array.from(e.current.children);return 0===t.length?0:t[l].offsetLeft})(u,i),[,v]=(0,a.useState)(0),x=()=>v(e=>e+1);(0,a.useEffect)(()=>(window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[]),(0,a.useEffect)(()=>{x(),o(0)},[t.length,e.length]);let p=u.current&&m.current&&m.current.clientWidth+f