(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"},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(25908);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),R=(0,n.md)(d.pX),S=(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:I=null,transactionDateTime:D=null,firstTransactionDateTime:k=null,autoRenew:T=null,price:L=null,productName:V=null}=(0,i.mT)(U)||{},z=(0,r.useMemo)(()=>({premium:j,premiumProductTier:C,premiumExpiration:I,premiumStart:D,premiumFirstTransactionDate:k,premiumProductId:B,premiumProductAutoRenew:T,premiumPrice:L,premiumProductName:V,isRegisteredUser:x||S||!1,isLoggedIn:x,"Amplitude.device_id":R,$Gender:E,$FirstName:N,saleOfDataAuthorization:M,sensitiveDataAuthorization:P,devUser:!1}),[j,C,I,D,k,B,T,L,V,R,x,S,N,E,M,P]);(0,r.useEffect)(()=>{(0,i.Js)(z)&&!g&&A(!0)},[z,g]);let H=(0,r.useCallback)(()=>{for(let e in z)void 0===z[e]&&delete z[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(z),y(!0),console.debug("MParticle: User attributes set - ",z)}},[v,z,g,b]);return{userAttributes:z,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])}}},3803:(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)("404b3ea83c23dab0ad439a62390843a1c1da26ee2f",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})}},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"},6313:(e,l,t)=>{"use strict";t.d(l,{h:()=>u});var r=t(57809),a=t(55462),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}}}},7910:(e,l,t)=>{"use strict";t.d(l,{G:()=>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:"currentColor",viewBox:"0 0 24 24",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:"External Link"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{d:"m19.395 3.83-6.82.145c-.423.009-.759-.327-.75-.75s.359-.774.783-.783l8.67-.184a.73.73 0 0 1 .75.75l-.184 8.67c-.009.423-.359.774-.783.783s-.759-.327-.75-.75l.145-6.82-8.625 8.625c-.306.306-.791.316-1.084.023s-.283-.778.023-1.084z"}),(0,r.jsx)("path",{d:"M2.614 7.334h8.966c.857 0 .857 1.348 0 1.348H3.954V20.06h11.657v-5.798c0-.921 1.337-.921 1.337 0v7.143H2.614z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ExternalLink"},8648:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var r=t(57809),a=t(86835),n=t(19734),i=t(62810),s=t(42494);let o=()=>{let{updatePreferences:e}=(0,a.g)(),l=(0,r.md)(n.nU)||[],[t,o]=(0,r.fp)(i.I6),c=(0,s.useCallback)(t=>{let r={...t,position:Math.max(...l.map(e=>e.position),0)+1};e({locations:[...l,r]})},[l,e]),d=(0,s.useCallback)(t=>{e({locations:l.filter(e=>e.placeID!==t)})},[l,e]),u=(0,s.useCallback)(e=>{o(l=>[...l||[],e])},[o]);return{addFavoriteLocation:c,removeFavoriteLocation:d,addRecentLocation:u,removeRecentLocation:(0,s.useCallback)(e=>{o(l=>(l||[]).filter(l=>l!==e))},[o]),clearRecentLocations:(0,s.useCallback)(()=>{o([])},[o]),recentLocations:t||[],favoriteLocations:l.sort((e,l)=>e.position-l.position)}}},9042:(e,l,t)=>{"use strict";t.d(l,{F:()=>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 3.26 1.38 2.79.23.5.5.075 3.08.445L11 9.22l-.374.365.09.5.525 3.065-2.755-1.445L8 11.5l-.465.245L4.78 13.17l.5-3.065.09-.5L5 9.22 2.79 7.045 5.87 6.6l.5-.075.23-.5zM8 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="Star"},9784:(e,l,t)=>{"use strict";l.vd=i;let r=t(21707),a=t(56438),n=t(40919);async function i(e,l){let t=l?l.split("-").join("_"):"en_US",i=(0,a.urlFrom)((0,r.getCMSOrderedListUrlConfig)({language:t,collectionId:e,collectionType:"video"})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,n.handleFetchResponse)(s)}},11194:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-76x76.e05fe180.png",height:76,width:76,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEUBM5kzW60/ZbNnhcJcfL53kskWRaJMb7gAKpUmUaiGn8+gs9mdmm37AAAACXBIWXMAARlAAAEZQAGA43XUAAAANElEQVR4nEWItw3AMBDELny099/XsBqxIUHgMnPENE+UgsAA/TqezMVaErvAcDhyUVT/5wMU/wDHmTo4nAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},15973:(e,l,t)=>{"use strict";t.d(l,{A:()=>s});var r=t(61473),a=t(95833),n=t(9784);let i={"en-US":"b5b00612-dcab-47fe-aa37-7edcc198c3eb","es-US":"79e3a66a-ee77-47a2-a93d-84931a413924","de-DE":"ef0cb00f-bd97-4636-b2b2-b7d0fcd7dc30","en-IN":"b784ec68-382d-4b45-8eb0-47f3d677d6c6",en:"85d5d0c0-c26b-420a-8bd5-788bba2ec0bb"},s=async e=>{var l,t,s;let o=await (0,a.p)(),c=null==o||null==(l=o.videoLinkLocaleInclude)?void 0:l[e],d=null==c?void 0:c.launchPlaylist;if((null==c?void 0:c.override)&&d){let l=await (0,n.vd)(d,e);return(null==l||null==(s=l[0])?void 0:s.url)||null}let u=i[e];if(!u)return null;let h=await (0,r.O)(u,"1");return(null==h||null==(t=h[0])?void 0:t.url)||null}},16134:(e,l,t)=>{"use strict";t.d(l,{LivePreviewListener:()=>i});var r=t(21102);t(42494);var a=t(57145),n=t(34679);let i=e=>{let l=(0,n.useRouter)();return(0,r.jsx)(a.p,{...e,refresh:l.refresh})}},21227:(e,l,t)=>{"use strict";t.d(l,{default:()=>d});var r=t(21102);t(42494);var a=t(58250),n=t(71535),i=t(57809);let s=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:"/_next/static/media/focusLogo.d2f298c8.svg"}];var o=t(94456),c=t(20423);let d=e=>{let{classname:l,divider:t}=e,d=(0,i.md)(a.X),{url:u,cobrandIconSrc:h}=s.find(e=>e.locales.includes(d))||{};return u&&h?(0,r.jsxs)("span",{className:"flex",children:[t&&(0,r.jsx)("div",{className:"mx-[15px] h-[27px] border-l-2 border-l-[#2524221A]"}),(0,r.jsx)(c.default,{href:u,target:"_blank",className:(0,n.cn)("relative p-0",l,{"de-DE":"de-DE"===d}),children:(0,r.jsx)(o.A,{className:"h-6 w-auto",src:h,alt:"focus logo",rounded:!1})})]}):null}},21414:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/favicon-96x96.bb9bbbeb.png",height:96,width:96,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUBM5k4YLBjgcBvjMUcSaRVd7tGa7UAKpUwWKyAmcyoudx8N4QxAAAACXBIWXMAARlAAAEZQAGA43XUAAAANElEQVR4nEXGMRLAMAwCQUACKfn/gz3jxtfsAa+Zy37ivY4XGCC/VFWLrph0g7LsIpoMmT4WkwC61jzqfAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},21651:(e,l,t)=>{"use strict";t.d(l,{default:()=>s});var r=t(21102),a=t(25908),n=t(20423),i=t(34961);function s(){let{user:e}=(0,a.J)(),{isUserPremium:l}=e;return!l&&(0,r.jsx)(i.$n,{variant:"outline",className:"hidden h-8 px-3 py-0 text-sm font-bold whitespace-nowrap md:inline-flex md:h-12 md:px-4 md:text-base",asChild:!0,children:(0,r.jsx)(n.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",children:"Go Premium"})})}},21707:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getCMSCollectionsUrlConfig=function(e){let{collectionId:l,locale:t="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/collections/".concat(t,"/").concat(l)}},l.getCMSAssetByIDUrlConfig=function(e){let{language:l,assetId:t}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/a/".concat(l,"/").concat(t)}},l.getCMSOrderedCollectionsUrlConfig=function(e){let{collectionId:l,language:t="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/ordered-collections/".concat(t,"/").concat(l)}},l.getCMSOrderedListUrlConfig=function(e){let{collectionId:l,language:t,collectionType:r}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/orderedlist/".concat(t,"/").concat(r,"/").concat(l)}},l.getCMSAssetsUrlConfig=function(e){let{language:l="en_US",query:t={},skip:n=0,limit:i=10,sort:s="-publishdate"}=e,o={q:Object.keys(t).reduce((e,l)=>{let r=t[l];return r instanceof Array?[...e,...r.map(e=>a(l,e))]:[...e,a(l,r)]},[]).join(";"),pg:"".concat(n,",").concat(i),format:"json",sort:s},c=(0,r.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(l),search:"?".concat(c)}},l.getCMSAssetsRawQueryUrlConfig=function(e){let{language:l="en_US",query:t="",skip:a=0,limit:n=10,sort:i="-publishdate"}=e,s={q:t,pg:"".concat(a,",").concat(n),format:"json",sort:i},o=(0,r.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(l),search:"?".concat(o)}},l.getCMSAssetsSlideshowUrlConfig=function(e){let{offset:l=0,assetId:t,limit:r=500}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/assets/slideshow/".concat(t,"/").concat(l,",").concat(r)}},l.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let r=t(56438);function a(e,l){let t="'".concat(l.$in,"'");return l.$in instanceof Array&&(t=l.$in.map(e=>"'".concat(e,"'")).join(",")),"".concat(e,":$in(").concat(t,")")}},22391:(e,l,t)=>{"use strict";var r=t(37811);Object.defineProperty(l,"__esModule",{value:!0}),l.getMediaAssetsByIdUrlConfig=function(e){let{assetId:l,limit:t,language:a}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,assetId:l,language:a,limit:t||void 0}}},l.getMediaAssetsByPlaylistIdUrlConfig=function(e){let{playlistId:l,limit:t,locale:a}=e,n=a?a.split("-").join("_"):"en_US";return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,dsxLocale:n,playlistId:l,...void 0!==t?{limit:t.toString()}:{}}}}},23856:(e,l,t)=>{"use strict";t.d(l,{default:()=>S});var r=t(21102),a=t(42494),n=t(34961),i=t(83037),s=t(25908),o=t(6313),c=t(71535),d=t(97521),u=t(59946),h=t(15973),m=t(57809),f=t(78461),v=t(58250),x=t(20423),p=t(7910),w=t(46785);let g=e=>{let{url:l,action:t,name:a,isNew:n,isExternal:i,isInGroup:s}=e;if(!l&&!t)return null;let o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"relative flex items-center",children:[a,n&&(0,r.jsx)(w.A,{})]}),i&&(0,r.jsx)(p.G,{size:"sm","data-testid":"external-link-icon"})]}),d=(0,c.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",s?"px-10":"px-6");return(0,r.jsx)("li",{className:s?"border-b border-[rgba(37,36,34,0.10)]":"",children:l?(0,r.jsx)(x.default,{href:l,className:d,target:i?"_blank":void 0,children:o}):(0,r.jsx)("button",{onClick:t,className:(0,c.cn)(d,"cursor-pointer"),children:o})},a)};var A=t(74380),b=t(36596);let y=e=>{let{isExpanded:l,toggleCategory:t,name:a,links:n}=e;return(0,r.jsxs)("div",{className:"w-full md:mb-6",children:[(0,r.jsxs)("div",{className:(0,c.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:t,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,r.jsx)("h2",{className:(0,c.cn)("text-gray-900 md:font-bold"),children:a}),(0,r.jsx)("span",{"aria-label":l?"Collapse":"Expand",children:l?(0,r.jsx)(A.H,{size:"md",className:"text-black"}):(0,r.jsx)(b.F,{size:"md",className:"text-black"})})]}),(0,r.jsx)("ul",{className:(0,c.cn)("bg-[#ebecee] md:space-y-2",!l&&"hidden"),children:n.map(e=>(0,r.jsx)(g,{...e,isInGroup:!0},e.name))})]},a)},j=(0,a.forwardRef)((e,l)=>{let[t,n]=(0,a.useState)(!1),{effectiveLocation:x}=(0,i.s)({}),{user:{isUserLoggedIn:p}}=(0,s.J)(),w=(0,o.h)(),A=(0,d.X)(w),b=(null==x?void 0:x.placeId)||"",j=(0,m.md)(v.X),{data:C}=(0,u.Ay)(["navigation/getVideoLink",j],e=>{let[l,t]=e;return(0,h.A)(t)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[N,E]=(0,a.useState)({}),R=(0,a.useMemo)(()=>[{name:"Weather Forecasts",links:[{name:"My Dashboard",url:"/mydashboard",isNew:!1},{name:"Today",url:"/weather/today/l/".concat(b)},{name:"Hourly",url:"/weather/hourbyhour/l/".concat(b)},{name:"10 Day",url:"/weather/tenday/l/".concat(b)}]},{name:"Radar & Maps",links:[{name:"Interactive Radar Map",url:"/weather/radar/interactive/l/".concat(b,"?animation=true")},{name:"US Forecast",url:"/maps/currentusweather"},{name:"US Satellite & Radar",url:"/maps/ussatellitemap"},{name:"World Satellite",url:"/maps/satellite/caribbeanweathermap"},{name:"US Severe Alerts",url:"/maps/severealerts"},{name:"US Health",url:"/maps/health/allergies/treepollen"}]},{name:"News & Media",links:[{name:"Top Weather Stories",url:"/news"},{name:"Hurricane Central",url:"/storms/hurricane-central"},{name:"Tornado Central",url:"/storms/tornado-central",isNew:1757808e6>Date.now()},{name:"Safety & Prep",url:"/safety/index"},{name:"Space & Skywatching",url:"/science/space"},...C?[{name:"Videos",url:C}]:[]]},{name:"Products & Account",links:[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0},...p?[{name:"Manage Account",url:"/member/settings"},{name:"Logout",action:A.current}]:[{name:"Create An Account",url:"/signup"},{name:"Sign in",url:"/login"}]]},{name:"Lifestyle",links:[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Recipes",url:"/home-garden/recipes"},{name:"Home & Garden",url:"/home-garden"},{name:"Travel & Outdoors",url:"/travel"},{name:"Pets & Animals",url:"/pets"},{name:"Health",url:"/health"},{name:"Allergy Tracker",url:"/forecast/allergy/l/".concat(b)},{name:"Air Quality Index",url:"/forecast/air-quality/l/".concat(b)},{name:"Cold & Flu Tracker",url:"/forecast/cold-flu/l/".concat(b)},{name:"Skin Health",url:"/health/skin-health"}]},{name:"Explore",url:"/snow/ski",isNew:17723196e5>Date.now()}],[p,A,b,C]);return(0,r.jsxs)("nav",{ref:l,className:(0,c.cn)("md:h-unset absolute top-full right-0 left-0 z-40 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,r.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,r.jsx)(f.default,{inNavigation:!0,onDropdownToggle:n})]}),!t&&(0,r.jsx)("div",{className:"mx-auto flex w-full max-w-7xl flex-col justify-center md:flex-row md:gap-3 md:px-4","data-testid":"header-nav-content",children:R.map((e,l)=>(0,r.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,r.jsx)(y,{isExpanded:N[e.name],toggleCategory:()=>(e=>{E(l=>({...l,[e]:!l[e]}))})(e.name),...e}):(0,r.jsx)(g,{...e})},l))})]})});j.displayName="Navigation";var C=t(13656),N=t(66188);let E=(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 24 24",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:"Hamburger"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})}),R=a.forwardRef((e,l)=>(0,r.jsx)(N.h,{ref:l,icon:E,...e}));function S(){let[e,l]=(0,a.useState)(!1),t=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var l,t;e?null==(l=document.querySelector("html"))||l.classList.add("overflow-hidden"):null==(t=document.querySelector("html"))||t.classList.remove("overflow-hidden")},[e]),(0,a.useEffect)(()=>{function r(r){e&&t.current&&i.current&&!t.current.contains(r.target)&&!i.current.contains(r.target)&&l(!1)}return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.$n,{ref:t,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>l(!e),"data-testid":"header-menu-button",children:e?(0,r.jsx)(C.b,{}):(0,r.jsx)(R,{})}),e&&(0,r.jsx)(j,{ref:i})]})}R.displayName="Hamburger"},23930:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-72x72.1b13d775.png",height:72,width:72,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEUAMplnhcIDNptHa7UxWawAK5U9Y7J3kslWd7spU6kWRKIdSqWZrdbvJZKdAAAACXBIWXMAARlAAAEZQAGA43XUAAAAN0lEQVR4nB3GyQ3AMAwEsVndstN/vQHMFwHjMct8iValGZyagAT/pG4tK58ov9S0RlpuuIf7+QEauQD1QEq+AwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},24034:(e,l,t)=>{"use strict";t.d(l,{FlagsBoundaryClient:()=>o});var r=t(95799);let a=(0,t(79589).eU)();var n=t(74057),i=t(77201),s=t(55358);let o=e=>{let{params:l}=e;return(0,r.u)([[a,l.privacyRegime],[n.u,l.deviceClass],[s.zs,l.userTier],[i.a,l.adsKillswitch]]),null}},26131:(e,l,t)=>{"use strict";t.d(l,{Ay:()=>n,Eq:()=>s,Ub:()=>c,Y6:()=>i,Yv:()=>o,uV:()=>a});var r=t(42216),a=function(e){return e.CA="ca",e.CA_QC="ca-qc",e.EXEMPT="exempt",e.GDPR="gdpr",e.JP="jp",e.KR="kr",e.LATAM_CO="latam-co",e.LATAM_DO="latam-do",e.LATAM_PE="latam-pe",e.LGPD="lgpd",e.PIPL="pipl",e.TR_KVKK="tr-kvkk",e.USA="usa",e.USA_CCPA="usa-ccpa",e.USA_CO="usa-co",e.USA_CT="usa-ct",e.USA_VA="usa-va",e.USA_UT="usa-ut",e}({});let n=a,i=["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],s=["usa","usa-ccpa","usa-co","usa-ct","usa-va"],o=Object.values(a),c=()=>(0,r.getCookie)("twc-privacy")||"exempt"},30956:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-152x152.7dd6518b.png",height:152,width:152,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAMZg6YbBkgsFHbLVTdbocSaQtV6t2kcgMPZ6Sp9OJ9+/PAAAACXBIWXMAARlAAAEZQAGA43XUAAAAMElEQVR4nDXGQQ4AIAgDsI0xwP9/2Gi0pwLfzEt18sZ60YpcHQW3JKbBjKPgokh6AxNmAKXMzsRIAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},34736:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-120x120.f557f572.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUAMJgFNppnhcJJbrY3Xq9Wd7spVKk+ZLIZR6Nzj8eTqNOyk1hyAAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nB2HyREAIBDCENjL/gt21nySADgHy+pXTvhf1wYAXcYlEzmSrEQFyaDRaZWrHxWNANLNCfvsAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},35071:(e,l,t)=>{"use strict";t.d(l,{Mu:()=>i,cc:()=>s,tX:()=>n});var r=t(79589),a=t(55358);let n=(0,r.eU)(e=>{var l;return null==(l=e(a.UU))?void 0:l.email}),i=(0,r.eU)(e=>{var l;return null==(l=e(a.UU))?void 0:l.firstName}),s=(0,r.eU)(e=>{var l;return null==(l=e(a.UU))?void 0:l.gender});(0,r.eU)(e=>{var l;return null==(l=e(a.UU))?void 0:l.emailVerified})},37786:(e,l,t)=>{"use strict";t.d(l,{K:()=>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:"Twitter"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12.217 1.27h2.249L9.552 6.884l5.78 7.642h-4.525L7.262 9.892l-4.056 4.635H.956L6.21 8.52.666 1.27h4.64l3.205 4.236zm-.79 11.91h1.247L4.63 2.546H3.292z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="Twitter"},38973:(e,l,t)=>{"use strict";t.d(l,{default:()=>C});var r=t(21102),a=t(20423),n=t(83037),i=t(42494),s=t(66188);let o=(0,i.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",className:"styles--videoIcon--1DwjO Icon--icon--ySD-o Icon--lightTheme--Mqfrs",viewBox:"0 0 24 24",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:"Video"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M21 5.75H3a1.5 1.5 0 0 0-1.5 1.5v13.5a1.5 1.5 0 0 0 1.5 1.5h18a1.5 1.5 0 0 0 1.5-1.5V7.25a1.5 1.5 0 0 0-1.5-1.5M3 7.25h9.75v13.5H3zm9.75 13.5V7.25H21l.002 13.5z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M9.5 17a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3A.5.5 0 0 1 9.5 17M19 2.77H4v1.384h15zM15.5 0H8v1.385h7.5z"})]})}),c=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:o,...e}));c.displayName="PlaylistVideo";let d=(0,i.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:"Calendar"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M13 2h-2v-.5a.5.5 0 0 0-1 0V2H6v-.5a.5.5 0 0 0-1 0V2H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v.5a.5.5 0 0 0 1 0V3h4v.5a.5.5 0 0 0 1 0V3h2z"})]})}),u=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:d,...e}));u.displayName="Calendar";let h=(0,i.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:"Time"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"}),(0,r.jsx)("path",{d:"M10.648 10.647a.5.5 0 0 1-.706 0L7.5 8.205V4a.5.5 0 0 1 1 0v3.79l2.148 2.152a.5.5 0 0 1 0 .705"})]})]})}),m=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:h,...e}));m.displayName="Time";let f=(0,i.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:"Radar"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M15 1.707 14.293 1 7.647 7.647a.5.5 0 0 0 .707.707l2.09-2.09A2.998 2.998 0 1 1 7.502 5.04C7.774 4.996 8 4.776 8 4.5c0-.275-.224-.503-.498-.469a4.006 4.006 0 1 0 3.656 1.519l1.424-1.424A5.94 5.94 0 0 1 14 8a6 6 0 1 1-6.5-5.98.534.534 0 0 0 .5-.52.473.473 0 0 0-.5-.482A7 7 0 1 0 15 8a6.93 6.93 0 0 0-1.711-4.582z"})]})}),v=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:f,...e}));v.displayName="Radar";var x=t(71535),p=t(57809),w=t(58250),g=t(59946),A=t(15973),b=t(95833),y=t(59809),j=t(17846);function C(e){var l;let{location:t}=e,i=(0,y.z)()&&j.A,{effectiveLocation:s,isLocationLoading:o}=(0,n.s)({location:t,fallbackOrder:n.i.PREFER_RECENT}),d=(0,p.md)(w.X),{data:h}=(0,g.Ay)(i?["navigation/getVideoLink",d]:null,e=>{let[l,t]=e;return(0,A.A)(t)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:f}=(0,g.Ay)(i?["navigation/getQuickNav",d]:null,()=>(0,b.p)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3});if(!i)return null;let C=null==f||null==(l=f.videoLinkLocaleInclude)?void 0:l["en-US"],N=(null==C?void 0:C.override)?"?".concat(null==C?void 0:C.adRef):"",E=!o&&s?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(m,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Weekend",href:"/weather/weekend/l/".concat(s.placeId)},{name:"Monthly",href:"/weather/monthly/l/".concat(s.placeId)},{name:"Radar",href:"/weather/radar/interactive/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(v,{className:"h-8 w-8"}),isMobile:!0},{name:"Video",href:"".concat(h).concat(N)||"",icon:(0,r.jsx)(c,{className:"h-4 w-4"}),mobileIcon:(0,r.jsx)(c,{className:"h-8 w-8"}),isMobile:!0}]:[],R=new Date().getDate();return(0,r.jsx)("nav",{className:"fixed right-0 bottom-0 left-0 z-101 border-b border-[#2524221a] bg-[var(--background)] md:relative md:z-10",children:(0,r.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:o||!s?null:(0,r.jsx)("div",{className:"flex h-15 w-full md:h-10",children:(0,r.jsx)("div",{className:"relative flex w-full flex-wrap items-stretch justify-around overflow-hidden",children:E.map(e=>(0,r.jsxs)(a.default,{href:e.href,className:(0,x.cn)("relative mt-[1px] flex h-[calc(100%-2px)] items-center justify-center gap-[5px] px-[15px] text-xs text-nowrap text-[#676767] outline-offset-0","md:text-base md:text-gray-800","after:absolute after:bottom-[-1px] after:left-1/2 after:h-[2px] after:w-0 after:-translate-x-1/2 after:bg-gray-800 after:transition-[width] after:duration-300 after:content-[''] hover:after:w-[calc(100%-10px)]",{"hidden md:flex":!e.isMobile}),children:[(0,r.jsx)("span",{className:"hidden md:inline",children:e.icon}),(0,r.jsxs)("span",{className:"flex flex-col items-center",children:[e.mobileIcon&&(0,r.jsxs)("span",{className:"relative md:hidden",children:[e.mobileIcon,"Today"===e.name&&(0,r.jsx)("span",{className:"absolute top-3 left-0 w-full text-center text-xs",children:R})]}),e.name,e.isNew&&(0,r.jsx)("span",{className:"ml-2 rounded bg-black px-1.5 py-0.5 text-xs text-white",children:"NEW"})]})]},e.name))})})})})}},41274:(e,l,t)=>{"use strict";t.d(l,{SidebarNavigationContextProvider:()=>i,c:()=>n});var r=t(21102),a=t(42494);let n=a.createContext({isSidebarOverlayOpen:!1,showOverlay:()=>{},hideOverlay:()=>{}}),i=e=>{let{children:l}=e,[t,i]=a.useState(!1),s=(0,a.useCallback)(()=>{var e,l;i(!0),null==(l=document.querySelector(".closeSidebarOverlayButton"))||null==(e=l.focus)||e.call(l)},[]),o=(0,a.useCallback)(()=>{i(!1),setTimeout(()=>{var e,l;return null==(l=document.querySelector(".openSidebarOverlayButton"))||null==(e=l.focus)?void 0:e.call(l)},10)},[]);return(0,r.jsx)(n.Provider,{value:{isSidebarOverlayOpen:t,showOverlay:s,hideOverlay:o},children:l})}},41611:(e,l,t)=>{"use strict";t.d(l,{_:()=>r});let r=new(t(91119)).UPSXClient({baseUrl:"https://upsx.weather.com"})},42684:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-180x180.692a128e.png",height:180,width:180,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUCNJoxWaxjgsAALJY/ZbIaR6NKbrZ+l8xvi8WkttobHixGAAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nEWIwRHAMAzCAIPt7L9wL/lUH+kE/FQ9ccRXcbPu7SPtLBG56Q68kjREeI/zARK7ALR+c2W5AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},43484:(e,l,t)=>{"use strict";t.d(l,{default:()=>u});var r=t(21102),a=t(42494),n=t(73017),i=t(34961),s=t(39234),o=t(78358),c=t(45342),d=t(26131);let u=e=>{let{isUserLoggedIn:l,regime:t,privacyPolicyLink:u,deviceClass:h,experience:m,isPremiumUser:f}=e,v=(0,n.c)("PrivacyConsentModal"),[x,p]=(0,a.useState)(!1),[w,g]=(0,a.useState)(!1),[A,b]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!d.Eq.includes(t)||f)return;let e=localStorage.getItem("gpcConflict"),r=localStorage.getItem("saleOfDataConflict");e?(g(!0),p(!0)):l&&r&&(b(!0),p(!0))},[t,f,l]);let y=async e=>{try{let l={purpose:e.purpose,consent:e.value,setByUser:!0};await o._.consent.createUserConsent(l),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},j=e=>{let t=window,r=window.top,a=t.DprSdk||(null==r?void 0:r.DprSdk);if(!a)return void console.error("Unable to fix conflict, missing DprSdk.");a.setUserConsents({[c.nb.SALE_OF_DATA]:e}),l&&y({purpose:c.nb.SALE_OF_DATA,value:e,refreshAfterUpdate:!0}),w?(localStorage.removeItem("gpcConflict"),l||window.location.reload()):A&&localStorage.removeItem("saleOfDataConflict"),p(!1)},C="",N="";if(w?(C="gpcConflictHeader",N="gpcConflictParagraph",t===d.uV.USA_CCPA&&(N+="_usa-ccpa")):A&&(C="saleOfDataConflictHeader",N="saleOfDataConflictParagraph",t===d.uV.USA_CCPA&&(N+="_usa-ccpa")),N)return(0,r.jsx)(s.lG,{open:x,onOpenChange:p,children:(0,r.jsxs)(s.Cf,{className:"text-center ".concat("desktop"!==h?"h-screen w-screen max-w-none rounded-none":"max-w-lg"," ").concat("wu"===m?"wu-theme":""," "),onEscapeKeyDown:e=>{(A||w)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[C&&(0,r.jsx)(s.c7,{children:(0,r.jsx)(s.L3,{className:"text-xl font-semibold",children:v(C)})}),(0,r.jsx)("div",{className:"py-4",children:(0,r.jsx)("p",{className:"text-sm leading-relaxed",children:v.rich(N,{privacyPolicyLink:e=>(0,r.jsx)("a",{href:u,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,r.jsxs)(s.Es,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,r.jsx)(i.$n,{onClick:()=>{j(!0)},variant:"default",className:"w-full sm:w-auto",children:v("optInButtonText")}),(0,r.jsx)(i.$n,{onClick:()=>{j(!1)},variant:"secondary",className:"w-full sm:w-auto",children:v("optOutButtonText")})]})]})})}},45342:(e,l,t)=>{"use strict";t.d(l,{nb:()=>r});var r=function(e){return e.ESSENTIAL_TECHNOLOGY="essential-technology",e.FUNCTIONAL_TECHNOLOGY="functional-technology",e.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",e.INTERNATIONAL_TRANSFER="international-transfer",e.SALE_OF_DATA="sale-of-data",e.SENSITIVE_DATA="sensitive-data",e.SELECT_PERSONALISED_CONTENT="Select personalised content",e.SELECT_PERSONALISED_ADS="Select personalised ads",e.SELECT_BASIC_ADS="Select basic ads",e.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",e.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",e.MEASURE_AD_PERFORMANCE="Measure ad performance",e.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",e.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",e.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",e.MEASURE_CONTENT_PERFORMANCE="Measure content performance",e}({})},46701:(e,l,t)=>{"use strict";t.d(l,{C:()=>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:"Overflow Menu Vertical"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("path",{d:"M8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="OverflowMenuVertical"},46785:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});var r=t(21102),a=t(71535);t(42494);let n=e=>{let{className:l}=e;return(0,r.jsx)("span",{className:(0,a.cn)("text-xxs bg-brand-200 ml-2 inline-flex h-[19px] items-center justify-center rounded-md border-2 border-white px-[3px] py-1 font-bold text-white",l),children:"New"})}},47265:(e,l,t)=>{"use strict";t.d(l,{UserAuthSync:()=>b});var r=t(42494),a=t(25908),n=t(41611),i=t(13501),s=t(37811),o=t(26131),c=t(45342);let d=async()=>{try{let e=await m();await f({upsxConsentResponse:e}),await w({upsxConsentResponse:e})}catch(e){console.log(e)}},u=e=>{var l;let{purpose:t,upsxConsentResponse:r}=e,a=null==r||null==(l=r.find)?void 0:l.call(r,e=>(null==e?void 0:e.purpose)===t);return null==a?void 0:a.consent},h=async e=>{let{purpose:l,value:t,setByUser:r}=e,a={purpose:l,consent:t,setByUser:r,consentDateTime:new Date().toISOString()};await n._.consent.createUserConsent(a)},m=async()=>await n._.consent.getUserConsent(),f=async e=>{let{upsxConsentResponse:l}=e,t=u({purpose:"sale-of-data",upsxConsentResponse:l}),{localSaleOfDataConsent:r,setByUser:a}=v();x({localSaleOfDataConsent:r,upsxSaleOfDataConsent:t}),p({upsxSaleOfDataConsent:t})&&await h({purpose:"sale-of-data",value:r,setByUser:a})},v=()=>{var e;let l=window.DprSdk,t=null==l?void 0:l.getUserConsent("sale-of-data"),r="boolean"==typeof t;return{localSaleOfDataConsent:r?t:null==(e=null==l?void 0:l.getRegimePurposeDefaultValue("sale-of-data"))||e,setByUser:r}},x=e=>{let{localSaleOfDataConsent:l,upsxSaleOfDataConsent:t}=e,r=window.DprSdk,a=window.navigator.globalPrivacyControl,n=localStorage.getItem("saleOfDataConflict"),i=!0===t&&!1===l&&!a;i&&!n?localStorage.setItem("saleOfDataConflict","true"):!i&&n&&localStorage.removeItem("saleOfDataConflict"),!1===t&&!0===l&&(null==r||r.setUserConsents({"sale-of-data":!1},{skipLogUserConsent:!0}))},p=e=>{let{upsxSaleOfDataConsent:l}=e,t=!1,r=window.navigator.globalPrivacyControl;return("boolean"!=typeof l||r&&!0===l)&&(t=!0),t},w=async e=>{let{upsxConsentResponse:l}=e;if((0,o.Ub)()!==o.uV.USA_CCPA)return;let t=u({purpose:c.nb.SENSITIVE_DATA,upsxConsentResponse:l}),{localSensitiveDataConsent:r}=g();A({localSensitiveDataConsent:r,upsxSensitiveDataConsent:t}),function(e){let{upsxSensitiveDataConsent:l}=e,t=!1;return"boolean"!=typeof l&&(t=!0),t}({upsxSensitiveDataConsent:t})&&await h({purpose:c.nb.SENSITIVE_DATA,value:!0,setByUser:!1})},g=()=>{var e;let{DprSdk:l}=window,t=null==l?void 0:l.getUserConsent(c.nb.SENSITIVE_DATA),r="boolean"==typeof t;return{localSensitiveDataConsent:r?t:null==(e=null==l?void 0:l.getRegimePurposeDefaultValue(c.nb.SENSITIVE_DATA))||e,setByUser:r}},A=async e=>{let{localSensitiveDataConsent:l,upsxSensitiveDataConsent:t}=e,{DprSdk:r}=window;"boolean"==typeof t&&t!==l&&(null==r||r.setUserConsents({[c.nb.SENSITIVE_DATA]:t},{skipLogUserConsent:!0}))},b=()=>(!function(){let[e,l]=(0,r.useState)(!1),[t,c]=(0,r.useState)(null),d=(0,r.useRef)(!1),u=(0,o.Ub)(),{user:{isUserLoggedIn:h,userID:m,anonId:f}}=(0,a.J)(),v=(0,r.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(m){l(!0),c(null);try{let l=await n._.applications.getApplications(e.appId||"twc-web-registered",e.endpointId||m),t=(null==l?void 0:l.partners)||[],r=(()=>{let e=[],l=s.env.NEXT_PUBLIC_OMNITURE_ID||null;l&&e.push({name:"omniture",id:l});let t=function(e){let{upsxId:l,anonId:t}=e;return l||t||null}({upsxId:m,anonId:f});t&&(e.push({name:"amplitude",id:t}),e.push({name:"airlytics",id:t}));let r=s.env.NEXT_PUBLIC_MPARTICLE_ID||null;r&&e.push({name:"mParticle",id:r}),!h&&r&&e.push({name:"braze",id:r}),h&&m&&(e.push({name:"zuora",id:m}),e.push({name:"braze",id:m}));let a=s.env.NEXT_PUBLIC_SOURCEPOINT_DSR_ID||null;return o.Y6.includes(u)&&a&&e.push({name:"sourcepoint",id:a}),e})(),a=(0,i.J)(t)?r.filter(e=>{let l=t.find(l=>l.name===e.name);return!l||l.id!==e.id}):r;return a.length&&(l?await n._.applications.addPartner(e.appId||"twc-web-registered",e.endpointId||m,{partners:a,version:"1.0.0"}):await n._.applications.createApplication({appId:e.appId||"twc-web-registered",endpointId:e.endpointId||m,partners:a,version:"1.0.0"})),d.current=!0,{success:!0,addedOrUpdated:a}}catch(l){let e=l instanceof Error?l:Error("Unknown error occurred");return c(e),{success:!1,error:e.message}}finally{l(!1),localStorage.setItem("PARTNERS_SYNC","false")}}},[m]);(0,r.useEffect)(()=>{let e=localStorage.getItem("PARTNERS_SYNC"),l=e&&JSON.parse(e);h&&m&&l&&!d.current&&(async()=>{await v()})()},[m,h])}(),!function(){let e=(0,r.useRef)(!1),{user:{isUserLoggedIn:l}}=(0,a.J)();(0,r.useEffect)(()=>{l&&!e.current&&(d(),e.current=!0)},[l])}(),null)},47996:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-57x57.6d7d6f74.png",height:57,width:57,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUBM5ligcA4X68rVKpGa7UAK5UWRaJ0j8eBmcxSdLmgs9lKEzI+AAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nEXGuREAIAzEwPtsA/0XzAwJSlbAr+rhRb/r0EABOeSaMcxI2g2R5B6jpUjpCxLXAK1UT5hqAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},51489:(e,l,t)=>{"use strict";t.d(l,{y:()=>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 Down"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8.471 10.529a.667.667 0 0 1-.942 0L3.35 6.35a.495.495 0 1 1 .7-.7L8 9.6l3.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="ChevronDown"},52929:(e,l,t)=>{"use strict";t.d(l,{default:()=>s});var r=t(21102);t(42494);var a=t(81935),n=t(57809);let i=["VA","SO"],s=e=>{let{className:l}=e,t=(0,n.md)(a.HJ);return i.includes(t)?(0,r.jsxs)("svg",{className:l,viewBox:"0 0 24 24",children:[(0,r.jsx)("title",{children:"The Weather Channel"}),(0,r.jsx)("path",{d:"M0 0h24v24H0V0zm2.0433 6.807v.657h.9629v3.2794h.8043V7.464h.9402l.1303-.657H2.0433zm3.0982-.0794c.034.119.0567.3908.0567.6627v3.3531h.7703V8.6647c.1699-.1529.4134-.2662.6003-.2662.2153 0 .2946.1076.2946.3965v1.9484h.742V8.7157c0-.3285-.017-.3738-.0737-.538-.0906-.2436-.3965-.4136-.7533-.4136-.2945 0-.623.1246-.8213.3116 0-.034.0114-.153.0114-.2436v-.5777c0-.2776-.017-.5494-.051-.708l-.776.1812zm5.1655 3.2455c-.2322.1926-.4758.2889-.7363.2889-.3908 0-.6117-.2549-.6117-.7024V9.537h1.6765v-.1756c0-.606-.119-.9969-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3852 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4022l-.2945-.453zm-8.241 2.1964l.9402 3.9704h.9005l.323-1.6142c.1132-.5778.1925-1.1328.1925-1.1328.0057.034.051.5324.1869 1.1441l.3512 1.6029h.8666l.9515-3.9704h-.8326l-.3228 1.4952c-.068.3286-.204 1.1838-.2153 1.3084 0 0-.0963-.674-.1699-1.0421l-.3625-1.7615h-.8666l-.3512 1.5915c-.1189.5438-.1869 1.1045-.2039 1.2575 0 0-.0453-.5608-.2095-1.2971l-.3399-1.552H2.066zm7.0172 3.1661c-.2322.1926-.4758.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.119-.9968-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3851 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4021l-.2945-.4532zm.742-1.7841l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1076.3398.4305v.119c-.0792-.0058-.1132-.0058-.1699-.0058-.9232 0-1.3933.3172-1.3933.9969 0 .5777.3511.9063.9968.9063.238 0 .4418-.0567.5834-.1586.0567-.0397.068-.051.1756-.153.0737.1473.2323.2776.4078.3512l.4022-.4644c-.221-.1643-.2719-.2833-.2719-.5948v-.051l.017-.9742c0-.3115-.0113-.402-.051-.521-.1133-.3229-.4474-.5041-.9345-.5041-.2663 0-.5098.051-.793.1699-.204.0793-.2832.119-.4701.2379zm4.4009-.3512h-.6797c0-.2945.017-.606.0453-.8723l-.7703.1926c-.0283.2152-.0283.4078-.0283.691h-.2889v.4928h.2889v1.5973c0 .2661.0056.3228.051.4474.085.2549.3964.4248.7816.4248.1982 0 .3965-.0396.6174-.1303l-.0964-.453c-.1359.0396-.2038.0566-.2718.0566-.2606 0-.3285-.0963-.3285-.4645v-1.4783h.4871l.1926-.5041zm.2095-1.1101c.034.1189.0566.3908.0566.6626v3.3531h.7703v-2.0787c.17-.1529.4135-.2662.6004-.2662.2152 0 .2945.1077.2945.3965v1.9484h.742v-2.0277c0-.3285-.017-.3738-.0736-.538-.0907-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm5.1654 3.2454c-.2322.1926-.4757.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.1189-.9968-.385-1.2687-.187-.1926-.5042-.3059-.8383-.3059-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1498 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1303 1.0932-.4021l-.2946-.4532zm.7817-2.0163c.0623.1642.1076.4587.1076.8495v1.9371h.759v-2.0503c.1415-.1643.2945-.2436.4644-.2436.085 0 .1472.017.2209.0567l.2096-.6684c-.119-.051-.17-.0623-.2833-.0623-.085 0-.1869.017-.2492.0453-.1415.068-.3228.221-.4304.3682-.0113-.1643-.051-.2945-.119-.4135l-.6796.1813zM4.9489 17.7585c-.2152-.1869-.606-.3115-.9968-.3115-.6344 0-1.2008.3399-1.5067.912-.1812.3398-.2662.7306-.2662 1.2233 0 .5778.1586 1.0536.4758 1.4104.3229.3682.742.5437 1.2857.5437.4475 0 .7817-.1132 1.0932-.3681l-.3625-.4985a3.6136 3.6136 0 0 1-.0793.0624c-.1926.1302-.3795.1925-.5947.1925-.3399 0-.6004-.1529-.759-.4418-.119-.2152-.1642-.5154-.1642-1.0535 0-.4588.068-.7873.2209-1.0138.1416-.2096.402-.3399.6683-.3399.2209 0 .4305.0737.6287.221l.3568-.5382zm.3908-.3058c.034.119.0566.3908.0566.6627v3.353h.7703v-2.0786c.17-.153.4135-.2662.6004-.2662.2152 0 .2945.1076.2945.3964v1.9485h.742v-2.0277c0-.3286-.017-.3739-.0736-.5381-.0906-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm3.0755 1.4613l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1077.3398.4305v.119c-.0793-.0057-.1133-.0057-.17-.0057-.9231 0-1.3932.3171-1.3932.9968 0 .5778.3511.9063.9968.9063.2379 0 .4418-.0567.5834-.1586.0566-.0397.068-.051.1756-.153.0736.1473.2322.2776.4078.3512l.4021-.4644c-.2209-.1643-.2718-.2832-.2718-.5947v-.051l.017-.9742c0-.3116-.0114-.4022-.051-.5211-.1133-.3229-.4475-.5041-.9346-.5041-.2662 0-.5097.051-.793.17-.2038.0792-.2831.1189-.47.2378zm2.8546-.2266c.068.1926.102.4305.102.6797v2.1014h.7589V19.418c.1756-.1586.3738-.2606.5267-.2606.1983 0 .255.0963.255.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0567-.4134-.0906-.2493-.3738-.4192-.6966-.4192-.17 0-.3682.0453-.5211.1246-.1246.068-.1586.0907-.3342.2152 0-.1189-.0397-.2435-.1076-.3624l-.674.1925zm3.0188 0c.068.1926.102.4305.102.6797v2.1014h.759V19.418c.1755-.1586.3737-.2606.5267-.2606.1982 0 .2549.0963.2549.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0566-.4134-.0906-.2493-.3739-.4192-.6967-.4192-.17 0-.3681.0453-.521.1246-.1247.068-.1587.0907-.3342.2152 0-.1189-.0397-.2435-.1077-.3624l-.674.1925zm5.0806 2.0108c-.2323.1925-.4758.2888-.7364.2888-.3908 0-.6117-.2548-.6117-.7023v-.0226h1.6766v-.1757c0-.606-.119-.9968-.3852-1.2687-.1869-.1926-.504-.3058-.8382-.3058-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1497 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1302 1.0932-.4021l-.2945-.4531zm1.5859-3.421l-.776.1755c.0283.2605.0397.4927.0397.8722v2.1637c0 .4135.0113.504.068.6513.0905.2436.3511.3965.674.3965.1642 0 .3228-.0283.453-.0792l-.1302-.4532c-.0396.0113-.0566.0113-.085.0113-.0623 0-.1246-.0283-.1529-.0792-.0453-.0793-.051-.1473-.051-.6458v-2.2599c0-.4078-.0113-.5947-.0396-.7533zM8.9703 8.9818h.878v-.034c0-.2152-.0227-.3285-.0907-.4361-.0736-.1133-.1813-.17-.3342-.17-.2888 0-.453.2266-.453.6288v.0113zm-1.2238 5.3625h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3342-.17-.2888 0-.4531.2266-.4531.6287v.0113zm3.5683.4928h-.034c-.5267 0-.708.0963-.708.4418 0 .2265.1416.3795.3342.3795.1416 0 .2832-.0737.3965-.1983l.0113-.623zm6.9495-.4928h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3341-.17-.2889 0-.4532.2266-.4532.6287v.0113zm-8.3595 5.8553h-.034c-.5268 0-.708.0963-.708.4418 0 .2266.1416.3795.3342.3795.1416 0 .2832-.0736.3965-.1982l.0113-.623zm8.1277-.4927h.8779v-.034c0-.2153-.0227-.3285-.0906-.4361-.0737-.1133-.1813-.17-.3342-.17-.2889 0-.4531.2266-.4531.6287v.0114z",fill:"currentColor",fillRule:"evenodd"})]}):(0,r.jsxs)("svg",{className:l,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 48",children:[(0,r.jsx)("title",{children:"The Weather Company"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 48H0V0h48v48ZM19.197 37.414c-.548 0-1.05.105-1.633.35-.42.163-.583.245-.967.49l.665 1.119c.64-.431 1.224-.676 1.725-.676.571 0 .7.222.7.886v.245a4.025 4.025 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.722 1.865 2.051 1.865.49 0 .91-.116 1.202-.326.116-.081.14-.104.361-.314.152.303.479.57.84.722l.827-.956c-.455-.338-.56-.583-.56-1.224v-.105l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.921-1.038-1.924-1.038Zm18.107.012c-.793 0-1.388.257-1.877.804-.525.583-.747 1.295-.747 2.368 0 1.877 1.108 3.09 2.822 3.09.84 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.979.595-1.515.595-.805 0-1.259-.526-1.259-1.447v-.047h3.451v-.361c0-1.247-.245-2.052-.793-2.611-.384-.397-1.038-.63-1.725-.63ZM7.409 35.234c-1.306 0-2.472.7-3.101 1.877-.373.7-.548 1.505-.548 2.519 0 1.189.326 2.169.98 2.903.664.758 1.527 1.12 2.646 1.12.92 0 1.61-.234 2.25-.758l-.745-1.027a7.262 7.262 0 0 1-.164.128c-.397.268-.781.396-1.224.397-.7 0-1.236-.315-1.563-.91-.244-.443-.337-1.06-.337-2.168 0-.945.139-1.621.454-2.087.291-.432.828-.7 1.376-.7.454 0 .886.152 1.294.455l.735-1.108c-.443-.385-1.248-.64-2.053-.64Zm33.404.012c.059.536.081 1.014.081 1.795l.002 4.714c.005.634.035.812.138 1.08.187.502.723.817 1.388.817.338 0 .664-.058.933-.163l-.268-.933a.519.519 0 0 1-.175.023c-.128 0-.257-.058-.315-.163-.093-.163-.105-.304-.105-1.33v-4.945c-.006-.64-.03-.972-.082-1.257l-1.596.362Zm-30.547 0c.07.245.117.804.117 1.363v6.903h1.585v-4.279c.35-.314.851-.547 1.236-.547.443 0 .606.22.606.815v4.01h1.528v-4.173c0-.676-.035-.77-.151-1.108-.187-.5-.817-.851-1.551-.851-.607 0-1.283.257-1.69.642 0-.07.022-.315.022-.502V36.33c0-.57-.035-1.13-.105-1.457l-1.597.373Zm12.207 2.541c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .526.199.526.875v3.882h1.539v-4.36c0-.373-.036-.63-.118-.851-.186-.513-.769-.863-1.433-.864-.35 0-.759.094-1.073.257-.257.14-.327.186-.688.443a1.53 1.53 0 0 0-.222-.746l-1.387.396Zm6.215 0c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .524.199.524.875v3.882h1.54v-4.36c0-.373-.035-.63-.117-.851-.186-.513-.77-.864-1.434-.864-.35 0-.758.094-1.073.257a5.28 5.28 0 0 0-.688.443c0-.245-.081-.502-.22-.746l-1.389.396ZM19.663 40.9l-.023 1.283c-.233.256-.525.408-.817.408-.396 0-.687-.315-.687-.781 0-.711.373-.91 1.457-.91h.07Zm17.664-2.332c.315 0 .536.117.688.35.14.221.186.455.186.898v.07h-1.806v-.023c0-.828.337-1.295.932-1.295ZM22.1 26.375c-.548 0-1.05.106-1.633.35a4.44 4.44 0 0 0-.968.49l.665 1.119c.641-.431 1.224-.676 1.726-.676.57 0 .699.222.699.886v.245a3.99 3.99 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.723 1.866 2.052 1.866.49 0 .91-.117 1.201-.327.117-.081.14-.105.361-.314.152.303.479.57.84.722l.827-.956c-.454-.338-.56-.583-.56-1.223v-.106l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.92-1.038-1.923-1.038Zm-5.97.012c-.793 0-1.387.257-1.877.804-.525.583-.746 1.295-.746 2.368 0 1.877 1.107 3.09 2.821 3.09.84 0 1.562-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.516.594-.804 0-1.259-.525-1.259-1.446v-.046h3.451v-.361c0-1.248-.245-2.053-.793-2.612-.384-.397-1.037-.63-1.725-.63Zm21.651 0c-.793 0-1.388.256-1.878.804-.524.583-.746 1.295-.746 2.368 0 1.877 1.109 3.09 2.823 3.09.839 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.98.594-1.516.594-.804 0-1.26-.525-1.26-1.446v-.046H40.3v-.361c0-1.248-.244-2.053-.792-2.612-.385-.397-1.038-.63-1.726-.63Zm-12.114-1.294c-.058.443-.059.84-.059 1.423h-.594v1.013h.594l.001 3.498c.004.374.025.492.105.712.175.525.816.874 1.608.874a3.28 3.28 0 0 0 1.272-.268l-.199-.933c-.28.082-.42.117-.56.117-.535 0-.676-.198-.676-.956V27.53h1.003l.397-1.037h-1.4c0-.606.036-1.248.094-1.796l-1.586.397Zm-22.14-.723 1.935 8.173h1.854l.664-3.322c.232-1.18.394-2.315.397-2.332.012.07.105 1.097.385 2.355l.722 3.299h1.785l1.958-8.173h-1.713l-.665 3.078c-.14.677-.42 2.437-.443 2.694 0 0-.199-1.388-.35-2.146L9.31 24.37H7.526l-.723 3.276a27.537 27.537 0 0 0-.42 2.588 21.687 21.687 0 0 0-.43-2.67l-.7-3.194H3.527Zm25.463-.163c.07.245.116.805.116 1.364v6.903h1.586v-4.28c.35-.314.851-.547 1.236-.547.443 0 .606.221.606.816v4.01h1.528V28.3c0-.676-.035-.77-.152-1.108-.186-.5-.816-.85-1.55-.85-.607 0-1.283.256-1.691.64 0-.07.023-.314.023-.5v-1.19c0-.571-.035-1.13-.105-1.457l-1.597.373Zm15.285 2.157c-.175 0-.385.035-.513.093-.292.14-.665.455-.886.758a1.918 1.918 0 0 0-.245-.85l-1.399.372c.129.338.221.944.221 1.748v3.989h1.563v-4.221c.291-.338.606-.502.956-.502a.89.89 0 0 1 .455.117l.431-1.376c-.244-.105-.35-.128-.583-.128Zm-21.71 3.497-.023 1.284c-.233.256-.524.408-.815.408-.397 0-.689-.315-.689-.782 0-.71.374-.91 1.458-.91h.07Zm-6.412-2.332c.315 0 .536.118.688.35.14.222.186.455.186.898v.07h-1.806v-.023c0-.828.338-1.295.932-1.295Zm21.65 0c.316 0 .538.118.69.35.139.222.186.455.186.898v.07H36.87v-.023c0-.827.338-1.295.933-1.295ZM18.65 15.35c-.793 0-1.388.256-1.878.804-.524.583-.746 1.294-.746 2.367 0 1.877 1.108 3.09 2.822 3.09.84 0 1.563-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.515.594-.805 0-1.26-.524-1.26-1.445v-.047h3.451v-.361c0-1.248-.244-2.053-.792-2.613-.385-.396-1.038-.628-1.726-.628ZM3.48 13.33v1.353h1.982v6.75h1.656v-6.75h1.936l.267-1.353h-5.84Zm6.378-.163c.07.245.117.805.117 1.364v6.903h1.585v-4.28c.35-.314.851-.547 1.236-.548.443 0 .606.222.606.817v4.01h1.528V17.26c0-.676-.035-.77-.152-1.108-.186-.501-.816-.851-1.55-.851-.607 0-1.283.257-1.69.641 0-.07.022-.315.022-.502v-1.189c0-.571-.035-1.13-.105-1.457l-1.597.373Zm8.814 3.323c.315 0 .537.117.688.35.14.221.187.454.187.897v.07h-1.808v-.023c0-.828.338-1.294.933-1.294Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M49.97 2.175V.791h.691a.45.45 0 0 1 .203.05.422.422 0 0 1 .24.397.443.443 0 0 1-.25.416.468.468 0 0 1-.213.054h-.492V1.47h.405c.045 0 .09-.02.133-.058.046-.039.068-.096.068-.173 0-.08-.023-.135-.068-.165a.226.226 0 0 0-.127-.045h-.268v1.146h-.323Zm.85-.649.336.649h-.354l-.323-.649h.342ZM50.5 3c-.208 0-.402-.039-.583-.116A1.507 1.507 0 0 1 49 1.5c0-.208.039-.402.116-.583A1.508 1.508 0 0 1 50.5 0c.208 0 .402.039.583.116a1.507 1.507 0 0 1 .8 1.967 1.51 1.51 0 0 1-.8.8A1.467 1.467 0 0 1 50.5 3Zm0-.371c.208 0 .396-.05.566-.152a1.17 1.17 0 0 0 .409-.409c.101-.171.152-.36.152-.568 0-.208-.05-.396-.152-.566a1.144 1.144 0 0 0-.409-.409A1.075 1.075 0 0 0 50.5.371c-.208 0-.397.051-.568.154a1.144 1.144 0 0 0-.409.409c-.101.17-.152.358-.152.566 0 .208.05.397.152.568.101.17.238.306.409.409.171.101.36.152.568.152Z",fill:"currentColor"})]})}},53599:(e,l,t)=>{"use strict";t.d(l,{A:()=>n,b:()=>a});var r=t(34679);let a=()=>{let e=(0,r.useRouter)();return{navigate:function(l){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mpa:r=!0,replace:a=!1}=t;r?a?window.location.replace(l):window.location.href=l:a?e.replace(l):e.push(l)},refresh:function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mpa:t=!0}=l;t?window.location.reload():e.refresh()},router:e}},n=a},55461:(e,l,t)=>{"use strict";t.d(l,{f:()=>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:"Facebook"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 0 0-1.932 15.765v-5.32h-1.65V8h1.65V6.947c0-2.723 1.232-3.985 3.905-3.985.507 0 1.382.1 1.74.198v2.216c-.19-.02-.518-.03-.925-.03-1.312 0-1.818.498-1.818 1.79V8h2.613l-.45 2.445H8.97v5.496A8 8 0 0 0 8 0"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="Facebook"},56452:(e,l,t)=>{"use strict";t.d(l,{default:()=>el});var r=t(21102),a=t(42494),n=t(73017),i=t(53599),s=t(67058),o=t(59946),c=t(57809),d=t(62810),u=t(92105),h=t(72158),m=t(24344);let f=()=>{let{getLocationName:e,getLocationContext:l,getLocationPresentationName:t}=(0,m.p)();return{buildSearchItem:(0,a.useCallback)(r=>({placeId:r.placeId,temperature:0,iconCode:44,geocode:"".concat(r.latitude,",").concat(r.longitude),presentationName:t(r),name:e(r),nameContext:l(r),displayName:r.displayName}),[l,e,t])}};var v=t(59809),x=t(22793),p=t(79160),w=t(55082),g=t(86835),A=t(11776),b=t(21164),y=t(3319),j=t(26464),C=t(71535),N=t(46701);function E(e){let{open:l,onClick:t,onDismiss:n,onDelete:i}=e,s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;return l&&(e=e=>{var l;(null==(l=s.current)?void 0:l.contains(e.target))?e.stopPropagation():null==n||n()},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[l,n]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("button",{className:"flex cursor-pointer items-center justify-center p-2",onClick:e=>{e.stopPropagation(),null==t||t()},children:(0,r.jsx)(N.C,{className:"text-current",title:"More"})}),(0,r.jsx)("button",{ref:s,className:(0,C.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",l&&"visible top-1/2 right-[10px] -translate-y-1/2 opacity-100"),onClick:e=>{e.stopPropagation(),null==i||i(),null==n||n()},children:"Delete"})]})}var R=t(2562),S=t(9042);function M(e){let{isFavorite:l,onClick:t}=e,a=(0,n.c)("Header");return(0,r.jsxs)("div",{className:"group/favorite relative",children:[(0,r.jsx)("span",{className:(0,C.cn)("bg-brand-400 absolute hidden -translate-x-full items-center text-xs text-nowrap capitalize group-hover/favorite:inline-flex","top-0 bottom-0 pl-1"),children:a(l?"removeLocation":"saveLocation")}),(0,r.jsx)("button",{onClick:t,className:"flex cursor-pointer items-center justify-center p-2",children:l?(0,r.jsx)(R.B,{className:"size-6 text-[#fdc107]",title:"Unfavorite"}):(0,r.jsx)(S.F,{className:"size-6 text-inherit hover:text-[#fdc107]",title:"Favorite"})})]})}var P=t(38915),U=t(85409),B=t(51135),I=t(2092),D=t(90267),k=t(34679);let T=()=>{let e=(0,k.useParams)();return(null==e?void 0:e.locale)||"en-US"};function L(e){var l;let{search:t}=e,a=(e=>{var l;let t=(0,c.md)(I.Yt),r=null==(l=(0,D.xP)(t))?void 0:l.code,a=T(),{data:n}=(0,o.Ay)(e?["currentConditions",e,r,a]:null,async e=>{let[,l,t,r]=e;return(0,B.z)({geocode:l,units:t,language:r})},{revalidateIfStale:!0,revalidateOnFocus:!0,dedupingInterval:3e5});return n})(t.geocode),n=null!=(l=null==a?void 0:a.iconCode)?l:t.iconCode,i=a?a.temperature:t.temperature;return(0,r.jsxs)("div",{className:"flex items-center gap-1","data-testid":"location-search-weather",children:[(0,r.jsx)("div",{className:"flex items-center justify-center text-gray-400",children:(0,r.jsx)(P.WxIcon,{iconCode:n,className:"lightBG",iconTheme:"lightBG",size:"md"})}),(0,r.jsx)("div",{className:"text-l text-inherit",children:(0,r.jsx)(U.B,{value:i})})]})}let V=(e,l)=>{let{data:t}=(0,o.Ay)(e?["location-data",e,l]:null,e=>{let[l,t,r]=e;return(0,A.$M)(t,r)},{revalidateOnFocus:!1,dedupingInterval:3e5});return null==t?void 0:t.location};function z(e){let{placeId:l,locationData:t,onSelect:n,showMoreButton:i,onToggleSave:s,onClickMore:o,onDismissMore:c,openMore:d,onRemove:u,disabledFavorites:h,isFavorite:m,showWeather:v,attributes:x,isFocused:p,isSortable:w}=e,g=T(),{buildSearchItem:A}=f(),b=(0,a.useRef)(null),N=V((null==t?void 0:t.nameContext)?null:l,g),R=(0,a.useMemo)(()=>t||(N?A(N):null),[A,N,t]);return((0,a.useEffect)(()=>{let e=b.current;return p&&(null==e||e.focus()),()=>null==e?void 0:e.blur()},[p]),R)?(0,r.jsxs)("div",{className:(0,C.cn)("group flex w-full flex-1 items-center","hover:bg-brand-400 hover:text-white",p&&"bg-brand-400 text-white"),children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,...x,ref:b,className:(0,C.cn)("flex flex-1 cursor-pointer items-center gap-4 py-2 pl-1",p&&"outline-0",null==x?void 0:x.className),onClick:()=>null==n?void 0:n(R),onKeyDown:e=>{var l;null==x||null==(l=x.onKeyDown)||l.call(x,e),("Enter"===e.key||" "===e.key)&&(" "!==e.key||!w)&&R&&(e.preventDefault(),null==n||n(R))},children:[v?(0,r.jsx)(L,{search:R}):(0,r.jsx)(y.a,{className:"size-4 text-current"}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)(j.Ay,{variant:"Body.M",className:"text-nowrap text-inherit",children:R.name}),(0,r.jsx)(j.Ay,{variant:"Body.S",color:"secondary",className:(0,C.cn)("text-nowrap group-hover:text-inherit",p&&"text-inherit"),children:R.nameContext})]})]}),!h&&(0,r.jsx)(M,{isFavorite:m,onClick:()=>null==s?void 0:s(R)}),i&&o&&c&&u&&(0,r.jsx)(E,{open:d,onClick:()=>o(l),onDismiss:c,onDelete:()=>u(l)})]}):null}function H(e){let{location:l,onSelect:t,onRemove:n,onDismissMore:i,openMore:s,showMoreButton:o,onClickMore:c,onToggleSave:d,isFocused:u=!1}=e,h=T(),{buildSearchItem:m}=f(),v=V(l.placeID||null,h),x=(0,a.useMemo)(()=>v?m(v):null,[m,v]),{attributes:p,listeners:g,setNodeRef:A,transform:y,transition:j,isDragging:C}=(0,w.gl)({id:l.placeID||""}),N={transform:b.Ks.Transform.toString(y),transition:j};return x?(0,r.jsx)("div",{ref:A,style:N,className:C?"relative z-10 bg-gray-50 opacity-50 shadow-lg":void 0,children:(0,r.jsx)(z,{placeId:l.placeID,locationData:x,disabledFavorites:!1,showMoreButton:null!=o&&o,onSelect:t,openMore:s,onClickMore:c,onDismissMore:i,onRemove:n,onToggleSave:d,showWeather:!0,isFavorite:!0,attributes:{...p,...g},isFocused:u,isSortable:!0})}):null}var O=t(17577);function _(e){let{title:l,onClearAll:t,testId:a}=e,i=(0,n.c)("Header");return(0,r.jsxs)("div",{className:"flex items-center justify-between py-4","data-testid":a,children:[(0,r.jsx)(j.Ay,{elementType:"h2",variant:"Body.S.Bold",children:l}),t&&(0,r.jsx)("button",{onClick:t,className:"cursor-pointer text-sm font-medium",children:i("clear")})]})}function K(e){let{searches:l,searching:t,onSelectSearch:s,showFavorites:o=!0,recentLocations:c=[],favoriteLocations:d,isUserLoggedIn:u,onClearRecentLocations:h,onRemoveRecentSearchLocation:m,focusedIndex:f=-1}=e,v=(0,n.c)("Header"),{updatePreferences:x}=(0,g.g)(),{openMore:b,dismissMore:y,isOpen:C}=function(){let[e,l]=(0,a.useState)(null);return{openMore:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";l(t?"".concat(t,"-").concat(e):e)},dismissMore:()=>{l(null)},isOpen:function(l){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e===(t?"".concat(t,"-").concat(l):l)}}}(),{navigate:N}=(0,i.A)(),E=T(),R=(0,O.n)({key:"memberSignup",interpolationArgs:{locale:E}}),S=(0,a.useMemo)(()=>u&&(null==d?void 0:d.map(e=>({...e,geocode:e.coordinate,placeId:e.placeID})).sort((e,l)=>(e.position||0)-(l.position||0)))||[],[u,d]),M=(0,a.useMemo)(()=>c.filter(e=>!S.some(l=>l.placeID===e)),[c,S]),P=(0,p.FR)((0,p.MS)(p.AN,{activationConstraint:{distance:8}}),(0,p.MS)(p.uN,{coordinateGetter:w.JR})),U=async e=>{if(!u)return void N(R);if(S.some(l=>l.placeID===e.placeId))x({locations:S.filter(l=>l.placeID!==e.placeId)});else{let l=e.geocode,t=e.displayName||"";if(!l&&e.placeId)try{let r=await (0,A.$M)(e.placeId,"en-US");(null==r?void 0:r.location)&&(l="".concat(r.location.latitude,",").concat(r.location.longitude),t=r.location.displayName)}catch(e){console.error("Failed to fetch location data for favoriting:",e)}if(l){let r={placeID:e.placeId,coordinate:l,name:t,position:S.length+1};x({locations:[...S,r]})}else console.debug("Unable to get geocode for location:",e.name||e.placeId)}},B=e=>{x({locations:S.filter(l=>l.placeID!==e)})};return(0,r.jsx)("div",{"data-testid":"location-search-results-dropdown",className:"overflow-x-hidden",children:t?(0,r.jsx)(j.Ay,{children:v("loadingResults")}):o&&0===c.length&&0===S.length?(0,r.jsx)("div",{className:"p-6 text-center text-gray-500","data-testid":"location-search-empty-message",children:v("noRecentLocations")}):o?(0,r.jsxs)(r.Fragment,{children:[S.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{title:v("favoritesTitle"),testId:"location-search-favorites-header"}),(0,r.jsx)(p.Mp,{sensors:P,collisionDetection:p.fp,onDragEnd:e=>{let{active:l,over:t}=e;if(t&&l.id!==t.id){let e=S.findIndex(e=>e.placeID===l.id),r=S.findIndex(e=>e.placeID===t.id);x({locations:(0,w.be)([...S],e,r)})}},children:(0,r.jsx)(w.gB,{items:S.map(e=>e.placeID||""),children:(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-favorites-list",children:S.map((e,l)=>(0,r.jsx)(H,{location:e,onToggleSave:U,onSelect:s,onRemove:B,openMore:C(e.placeID||"","favorites"),onClickMore:e=>b(e,"favorites"),onDismissMore:y,showMoreButton:!0,isFocused:l===f},e.placeID))})})})]}),M.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{title:v("recentLocationsTitle"),onClearAll:h,testId:"location-search-recent-header"}),(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-recent-list",children:M.map((e,l)=>{let t=S.length+l;return(0,r.jsx)(z,{placeId:e,showMoreButton:c.length>1,onSelect:s,onToggleSave:U,onDismissMore:y,onClickMore:e=>b(e,"recents"),openMore:C(e,"recents"),onRemove:m,isFocused:t===f},e)})})]})]}):0===l.length?(0,r.jsx)(j.Ay,{children:v("noResults")}):(0,r.jsx)("div",{className:"flex flex-1 flex-col divide-y","data-testid":"location-search-results-list",children:l.map((e,l)=>{let t=S.some(l=>l.placeID===e.placeId);return(0,r.jsx)(z,{placeId:e.placeId,locationData:e,onSelect:s,onToggleSave:U,isFavorite:t,isFocused:l===f},e.placeId)})})})}var F=t(66188);let W=(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:"Search"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"m14.5 13.793-3.776-3.776a5.509 5.509 0 1 0-.707.707l3.776 3.776zM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"})]})}),X=a.forwardRef((e,l)=>(0,r.jsx)(F.h,{ref:l,icon:W,...e}));X.displayName="Search";var G=t(34961),Q=t(5390),J=t(25908),Z=t(32124);let Y=(0,a.memo)(e=>{let{recentLocationsLength:l}=e,t=(0,n.c)("Header"),{navigate:a}=(0,i.A)(),s=T(),o=((0,v.z)(),(0,O.n)({key:"memberSignup",interpolationArgs:{locale:s}})),{user:{isUserLoggedIn:c}}=(0,J.J)();return c||l{a(o)},children:[(0,r.jsxs)("div",{className:"items-center justify-between",children:[(0,r.jsx)(j.EY,{variant:"Body.M.Bold",children:t("upsellTitle".concat(l>=4?"2":"1"))}),(0,r.jsx)(j.EY,{variant:"Body.S",children:t("upsellSubtitle".concat(l>=4?"2":"1"))})]}),(0,r.jsx)(Z.A,{className:"size-5"})]})});var q=t(17846);function $(e){var l;let{className:t,searchContainerRef:n,searchInputRef:i,searchQuery:s,placeholderText:o,searchOpen:c,isMobile:d,canSearch:u,showFavorites:h,searching:m,recentSearches:f,recentLocations:v,favoriteLocations:p,isUserLoggedIn:w=!1,setSearchQuery:g,onSearchOpen:A,onSelectSearch:b,onClearRecentLocations:y,onRemoveRecentSearchLocation:j}=e,[N,E]=(0,a.useState)(-1),[R,S]=(0,a.useState)(!1),M=(0,a.useMemo)(()=>{if(!h)return f.length;let e=w&&(null==p?void 0:p.length)||0,l=new Set(null==p?void 0:p.map(e=>e.placeID));return e+((null==v?void 0:v.filter(e=>!l.has(e)).length)||0)},[h,f.length,w,p,v]);(0,a.useEffect)(()=>{E(-1)},[s,c,M]);let P=(0,a.useCallback)(e=>{c&&0!==M&&("ArrowDown"===e.key?(e.preventDefault(),E(e=>{if(-1===e)return 0;let l=e+1;return l>=M?M-1:l})):"ArrowUp"===e.key&&(e.preventDefault(),E(e=>{let l=e-1;if(l{if(!c)return;let e=e=>{"ArrowDown"===e.key||"ArrowUp"===e.key?(S(!1),P(e)):"Tab"===e.key&&S(!0)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,P]),(0,r.jsxs)("div",{ref:n,className:(0,C.cn)("mx-auto w-full md:max-w-104",c&&"z-50",d&&c&&"fixed top-0 right-0 bottom-0 left-0 h-full bg-white"),"data-testid":"header-search",children:[q.A&&d&&(0,r.jsx)("div",{className:"flex w-full justify-end",children:(0,r.jsx)(G.$n,{variant:"ghostUI",className:(0,C.cn)("twcSearchTrigger m-0 p-1",c&&"hidden"),onClick:()=>A(!0),children:(0,r.jsx)(X,{className:"h-5 w-5 text-gray-900"})})}),(0,r.jsxs)("div",{className:(0,C.cn)("relative m-auto w-full md:flex md:flex-1",!c&&"max-md:hidden",t),children:[(0,r.jsxs)("div",{className:"flex w-full items-center gap-2 border-b-1 border-gray-900/10 px-3 py-2 md:border-none md:p-0",children:[c&&(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(G.$n,{variant:"ghostUI",className:"m-0 p-2",onClick:()=>A(!1),children:(0,r.jsx)(Q.J,{className:"size-6"})})}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)(x.p,{ref:i,value:s,placeholder:o,onChange:e=>g(e.target.value),onClick:()=>A(!0),className:(0,C.cn)("h-10 w-full cursor-pointer rounded-sm border-none !bg-gray-100 text-[1rem] overflow-ellipsis text-gray-900 transition-colors focus-visible:ring-2 focus-visible:ring-white md:h-12 md:cursor-auto md:rounded-lg md:text-[1rem]","px-4 py-[5px] max-md:pl-9 md:pr-10","placeholder:placeholder-opacity-100 placeholder:text-gray-600 placeholder:transition-all focus:placeholder:opacity-0")}),(0,r.jsx)("div",{className:"absolute top-1/2 flex -translate-y-1/2 transform items-center max-md:left-3 md:right-3",children:(0,r.jsx)(X,{className:"size-4 text-gray-900 md:size-5"})})]})]}),c&&(u||h)&&(0,r.jsxs)("div",{className:(0,C.cn)("relative mt-1 w-full overflow-y-auto rounded-md bg-white px-3 pb-2.5 text-gray-800 shadow-lg md:mx-auto md:mt-2 md:max-w-md","md:absolute md:top-full md:z-80 md:max-h-130"),children:[(0,r.jsx)(K,{searches:f,searching:m,showFavorites:h,recentLocations:v,onClearAll:()=>g(""),favoriteLocations:p||[],isUserLoggedIn:w,onSelectSearch:b,onClearRecentLocations:y,onRemoveRecentSearchLocation:j,focusedIndex:R?-1:N}),h&&(0,r.jsx)(Y,{recentLocationsLength:null!=(l=null==v?void 0:v.length)?l:0})]})]})]})}var ee=t(8648);function el(e){let{locale:l,className:t}=e,{navigate:m}=(0,i.b)(),[x,p]=(0,a.useState)(""),w=(0,u.d)(x,200),[g,A]=(0,a.useState)(!1),b=(0,v.z)(),[,y]=(0,c.fp)(d.I6),j=(0,a.useRef)(null),C=(0,a.useRef)(null),N=(0,n.c)("Header"),{recentLocations:E,favoriteLocations:R,clearRecentLocations:S,removeRecentLocation:M}=(0,ee.A)(),{user:P}=(0,J.J)(),{isUserLoggedIn:U}=P,B=N("searchPlaceholderText"),I=w.length>=3,D=!w,{data:k,isLoading:T}=(0,o.Ay)(I?["locations",w,"city,locality,neighborhood,postal,airport,address",l]:null,e=>{let[l,t,r,a]=e;return(0,s.$$)(t,r,a)},{revalidateOnFocus:!1,dedupingInterval:2e3}),{buildSearchItem:L}=f(),V=(0,a.useMemo)(()=>k?k.map(e=>L(e)):[],[L,k]);(0,a.useEffect)(()=>{function e(e){j.current&&!j.current.contains(e.target)&&A(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.useEffect)(()=>{var e;document.body.style.overflow=b&&g?"hidden":"",b&&g&&(null==(e=C.current)||e.focus())},[b,g]);let z=(0,a.useCallback)(e=>{A(!1),e.placeId&&e.geocode&&y(l=>{let t=(null==l?void 0:l.filter(l=>l!==e.placeId))||[];return[e.placeId,...t].slice(0,5)}),e.placeId&&m("".concat(l===h.q?"":"/"+l,"/weather/today/l/").concat(e.placeId))},[m,l,y]);return(0,r.jsx)($,{className:t,searchContainerRef:j,searchInputRef:C,searchQuery:x,placeholderText:B,searchOpen:g,isMobile:b,canSearch:I,showFavorites:D,searching:T,recentSearches:V,recentLocations:E,favoriteLocations:R,isUserLoggedIn:U,setSearchQuery:p,onSearchOpen:A,onSelectSearch:z,onClearRecentLocations:S,onRemoveRecentSearchLocation:M})}},58342:(e,l,t)=>{Promise.resolve().then(t.bind(t,76283)),Promise.resolve().then(t.bind(t,5368)),Promise.resolve().then(t.bind(t,34736)),Promise.resolve().then(t.bind(t,63508)),Promise.resolve().then(t.bind(t,30956)),Promise.resolve().then(t.bind(t,42684)),Promise.resolve().then(t.bind(t,47996)),Promise.resolve().then(t.bind(t,58864)),Promise.resolve().then(t.bind(t,23930)),Promise.resolve().then(t.bind(t,11194)),Promise.resolve().then(t.bind(t,72822)),Promise.resolve().then(t.bind(t,87214)),Promise.resolve().then(t.bind(t,21414)),Promise.resolve().then(t.bind(t,21227)),Promise.resolve().then(t.bind(t,72028)),Promise.resolve().then(t.bind(t,21651)),Promise.resolve().then(t.bind(t,38973)),Promise.resolve().then(t.bind(t,23856)),Promise.resolve().then(t.bind(t,60293)),Promise.resolve().then(t.bind(t,56452)),Promise.resolve().then(t.bind(t,78461)),Promise.resolve().then(t.bind(t,74158)),Promise.resolve().then(t.bind(t,43484)),Promise.resolve().then(t.bind(t,24034)),Promise.resolve().then(t.bind(t,63924)),Promise.resolve().then(t.bind(t,41274)),Promise.resolve().then(t.bind(t,52929)),Promise.resolve().then(t.bind(t,80364)),Promise.resolve().then(t.bind(t,47265)),Promise.resolve().then(t.bind(t,62732)),Promise.resolve().then(t.bind(t,41133)),Promise.resolve().then(t.bind(t,23140)),Promise.resolve().then(t.bind(t,56735)),Promise.resolve().then(t.bind(t,10559)),Promise.resolve().then(t.t.bind(t,1715,23)),Promise.resolve().then(t.t.bind(t,73084,23)),Promise.resolve().then(t.bind(t,91601)),Promise.resolve().then(t.bind(t,15007)),Promise.resolve().then(t.bind(t,97349)),Promise.resolve().then(t.bind(t,20423)),Promise.resolve().then(t.bind(t,16134)),Promise.resolve().then(t.bind(t,3803)),Promise.resolve().then(t.bind(t,89131)),Promise.resolve().then(t.t.bind(t,80740,23))},58864:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-60x60.648d9dc2.png",height:60,width:60,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUBM5ljgsA4YK9EabQrVKpWeLsAKpR4kskXRqKhtNk+qzM6AAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nEXGuRHAMAwDQRAPSfffsEdKtMkd8HTfeIr3VjHQgL5kpgyXImbBOsZYUqT2BxRoALNzyWwDAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},60293:(e,l,t)=>{"use strict";t.d(l,{default:()=>U});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(25908),u=t(71535),h=t(74228),m=t.n(h),f=t(33650),v=t.n(f),x=t(2562),p=t(9042),w=t(46701),g=t(8648),A=t(53599),b=t(58250),y=t(17577),j=t(83037),C=t(57809),N=t(34679);let E=e=>{let{isFavorite:l,placeId:t,name:a,coordinate:n}=e,{user:i}=(0,d.J)(),{isUserLoggedIn:s}=i,{navigate:o}=(0,A.A)(),c=(e=>{let{effectiveLocation:l}=(0,j.s)({}),t=(null==l?void 0:l.placeId)||"",r=(0,N.usePathname)(),a=(0,C.md)(b.X),n=(0,y.n)({key:"today",interpolationArgs:{locId:e,locale:a}});return r.includes(e)?r.replace(t,e):n})(t),{addFavoriteLocation:u,removeFavoriteLocation:h,removeRecentLocation:m}=(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)(v(),{href:c,children:a}),l?(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>h(t),children:(0,r.jsx)(x.B,{className:"h-[18px] w-[18px] text-[#fdc107]"})}):(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>{s?u({name:a,coordinate:n,placeID:t}):o("/signup")},children:(0,r.jsx)(p.F,{className:"h-[18px] w-[18px]"})}),(0,r.jsx)(R,{onDelete:()=>{h(t),m(t)}})]})};function R(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)(w.C,{className:"h-5 w-5"})}),(0,r.jsx)("button",{ref:t,className:(0,u.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 S=t(11776),M=t(59946);let P=e=>{let{placeId:l}=e,t=(0,C.md)(b.X),{data:a}=(0,M.Ay)(l?["location-data",l]:null,()=>(0,S.$M)(l,t),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!a)return null;let{city:n,latitude:i,longitude:s}=a.location;return(0,r.jsx)(E,{placeId:l,name:n,coordinate:"".concat(i,",").concat(s)})},U=()=>{let{user:e}=(0,d.J)(),{isUserLoggedIn:l}=e,{favoriteLocations:t,recentLocations:n}=(0,g.A)(),i=l?n:n.slice(0,1);i=i.filter(e=>!t.some(l=>{let{placeID:t}=l;return t===e}));let{effectiveLocation:o}=(0,j.s)({}),[h,f]=(0,a.useState)(0),v=(0,a.useRef)(null),x=(0,a.useRef)(null),p=((e,l)=>{if(!e.current)return 0;let t=Array.from(e.current.children);return 0===t.length?0:t[l].offsetLeft})(v,h),[,w]=(0,a.useState)(0),A=()=>w(e=>e+1);(0,a.useEffect)(()=>(window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)),[]),(0,a.useEffect)(()=>{A(),f(0)},[i.length,t.length]);let b=v.current&&x.current&&x.current.clientWidth+p