(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,250966,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return l.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let l=e.r(905316),n=e.r(117707),s=e.r(888101)},249725,e=>{"use strict";var t=e.i(546446),r=e.i(206507),a=e.i(726249),i=e.i(310847);e.s(["useLocationFeatureIds",0,function(){let[e,l]=(0,t.useAtom)(i.wxuUserLocationFeatureIdsAtom),n=e??{},s=(0,r.useCallback)(e=>{if(e.placeId){let t=n[e.placeId];if(t)return t}if(e.geocode){let t=n[(0,a.formatGeocode)(e.geocode)];if(t)return t}},[n]),o=(0,r.useCallback)(e=>e in n,[n]);return{featureIds:n,resolveFeatureId:s,hasResolvedPlaceId:o,recordFeatureId:(0,r.useCallback)((e,t)=>{let r=[];e.placeId&&r.push(e.placeId),e.geocode&&r.push((0,a.formatGeocode)(e.geocode)),0!==r.length&&l(e=>{let a=e??{};if(!r.some(e=>!(e in a)||a[e]!==t))return a;let i={...a};for(let e of r)i[e]=t;return i})},[l])}}])},520362,e=>{"use strict";var t=e.i(155252),r=e.i(206507);let a=e=>{let{apiRoute:t,depth:a,refresh:i,serverURL:l}=e,n=(0,r.useRef)(!1),s=(0,r.useCallback)(e=>{e.origin===l&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,l]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),n.current||(n.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:l}),i()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[l,s,a,t,i]),null};var i=e.i(184154);let l=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),n={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let r=(0,i.useRouter)();return(0,t.jsx)(a,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),a=(0,r.useRef)(null),i=(0,r.useRef)(null),s=(0,r.useRef)(null),o=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",a.current?.disconnect();return}let l=r.getBoundingClientRect();i.style.top=`${l.top+window.scrollY}px`,i.style.left=`${l.left+window.scrollX}px`,i.style.width=`${l.width}px`,i.style.height=`${l.height}px`,i.style.opacity="1"},[]),c=(0,r.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),a.current?.disconnect()},[]),u=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,d()}))},[d]),m=(0,r.useCallback)(e=>{if(e===s.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void l.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?m(e.data.blockId):c())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==i.current&&cancelAnimationFrame(i.current),a.current?.disconnect(),e.current?.remove()}},[m,c,u]),null},"LivePreviewListener",0,s],520362)},79137,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},731672,e=>{"use strict";var t=e.i(546446),r=e.i(897892),a=e.i(671525),i=e.i(889753),l=e.i(45846),n=e.i(310847),s=e.i(284007),o=e.i(391174),d=e.i(318849),c=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(i.userProfileAtom),u=(0,t.useSetAtom)(i.userPreferencesAtom),[,m]=(0,t.useAtom)(n.wxuUserAccountUserAccountResponseAtom),{refresh:h}=(0,a.usePageNavigation)();return async()=>{try{return(0,c.regenerateMetricsSession)(),await l.upsxClient.auth.logout(),(0,o.invalidateUpsxCache)(),e(s.RESET),u(s.RESET),m(null),(0,r.deleteCookie)("twc-user",{domain:".weather.com"}),(0,d.disableSwrPersist)(),h({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},129932,e=>{"use strict";var t=e.i(155252),r=e.i(206507),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Products"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",clipRule:"evenodd"})]})),l=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));l.displayName="SkincareBold",e.s(["SkincareBold",0,l])},800177,e=>{"use strict";var t=e.i(155252),r=e.i(206507),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Products"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9",clipRule:"evenodd"})]})),l=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));l.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,l])},677997,e=>{"use strict";var t=e.i(155252),r=e.i(206507),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"lightning"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),l=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));l.displayName="Lightning",e.s(["Lightning",0,l])},460581,e=>{"use strict";var t=e.i(155252),r=e.i(206507),a=e.i(240058),i=e.i(64412),l=e.i(677997),n=e.i(995113),s=e.i(702957),o=e.i(489408),d=e.i(113016),c=e.i(312401),u=e.i(807215),m=e.i(876329),h=e.i(632137),x=e.i(546446),p=e.i(827049),f=e.i(537989),g=e.i(381477),v=e.i(445899),b=e.i(427977),y=e.i(184154),w=e.i(559421),j=e.i(388706),k=e.i(498076),N=e.i(981851),C=e.i(611540),S=e.i(528600),R=e.i(837879);e.s(["default",0,function(){let e=(0,k.useIsMobile)(),L=(0,y.usePathname)(),U=(0,w.useCanonicalBasePath)(),A=(0,x.useAtomValue)(f.pageIdAtom),I=(0,N.useTranslations)("SidebarNavigation"),{user:E}=(0,S.useUser)(),{isUserPremium:B}=E,P=(0,R.useSubscriptionsEnabled)(),{location:_,isLoading:O}=(0,i.useLocation)(),M=(0,x.useAtomValue)(p.pageLocaleAtom),{data:F}=(0,g.default)(["navigation/getVideoLink",M],([e,t])=>(0,v.getVideoLink)(t),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:z}=(0,g.default)(["navigation/getQuickNav",M],()=>(0,b.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),T=(0,r.useMemo)(()=>{if(O||!_)return[];let e=_.placeId||"",r=U?`${U}/today`:(0,C.interpolateUrl)(C.URLS.today,{locale:M,locId:e}),a=(0,C.interpolateUrl)(C.URLS.radar,{locale:M,locId:e}),i=U?L.split("/").pop():null,h=U?j.CANONICAL_PAGE_TYPES.includes(i):L.includes("/weather/today/")||L.includes("/weather/hourbyhour/")||L.includes("/weather/tenday/")||L.includes("/weather/monthly/")||L.includes("/forecast/allergy/")||L.includes("/forecast/air-quality/")||L.includes("/forecast/cold-flu/"),x=L.includes("/weather/radar/")||L.includes("/weather/maps/"),p=L.includes("/subscribe"),f="video"===A,g=z?.videoLinkLocaleInclude?.["en-US"],v=g?.override?`?${g?.adRef}`:"",b=F?`${F}${v}`:"",y="h-6 w-6 text-inherit";return[{name:I("forecast"),href:r,icon:(0,t.jsx)(s.PartlyCloudyBold,{className:y}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:y}),isActive:h},...F?[{name:I("video"),href:b,icon:(0,t.jsx)(d.VideoPlayerBold,{className:y}),activeIcon:(0,t.jsx)(c.VideoPlayerBoldFilled,{className:y}),isActive:f}]:[],{name:I("radar"),href:a,icon:(0,t.jsx)(u.RadarBold,{className:y}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:y}),isActive:x},...P&&!B&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(l.Lightning,{className:y}),activeIcon:(0,t.jsx)(n.LightningFilled,{className:y}),isActive:p}]||[]]},[O,_,M,L,A,F,z,U]);return e&&0!==T.length?(0,t.jsx)("nav",{className:"fixed right-0 bottom-0 left-0 z-110 bg-white md:hidden","aria-label":"Mobile navigation","data-component":"localsuite-nav","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:T.map(e=>(0,t.jsxs)(a.default,{href:e.href,className:(0,h.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:(0,h.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold"),children:e.name})]},e.name))})})}):null}])},526456,e=>{"use strict";var t=e.i(155252),r=e.i(206507),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Current Location"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M2 6.491a.5.5 0 0 0 .315.473l4.8 1.92 1.92 4.801A.5.5 0 0 0 9.5 14h.008a.5.5 0 0 0 .462-.329l4-11a.5.5 0 0 0-.64-.64l-11 4A.5.5 0 0 0 2 6.49"})]})),l=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));l.displayName="CurrentLocationFilled",e.s(["CurrentLocationFilled",0,l])},556441,e=>{"use strict";var t=e.i(155252),r=e.i(184154),a=e.i(240058),i=e.i(877957),l=e.i(368847),n=e.i(132084),s=e.i(528600),o=e.i(837879),d=e.i(498076),c=e.i(37429);e.s(["default",0,()=>{let e=(0,r.useSearchParams)(),u=e.get("par")||e.get("partner"),m=(0,d.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:x}=(0,s.useUser)(),{isUserPremium:p}=x;return u===n.Partner.TIKTOK&&m&&h&&!p?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(c.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(l.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(l.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(i.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(a.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",children:"Claim Now"})})]})]}):null}])},778828,e=>{"use strict";var t=e.i(155252),r=e.i(632137),a=e.i(240058),i=e.i(206507),l=e.i(981851),n=e.i(546446),s=e.i(877957),o=e.i(809058),d=e.i(526456),c=e.i(527207),u=e.i(226602);e.i(304158);var m=e.i(485737),h=e.i(726249),x=e.i(498076);let p=({animationStrings:e})=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("span",{"data-nosnippet":!0,className:(0,r.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var f=e.i(436066);e.i(24959);var g=e.i(686557),v=e.i(64412);let b="LOCATION_PICKER_POPUP_CLOSED",y="light",w={light:"bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500",dark:"bg-white text-gray-900 hover:bg-[#E6E6E6] active:bg-[#CCCCCC] focus-visible:ring-2 focus-visible:ring-blue-500"},j={light:"bg-gray-900 text-white",dark:"bg-white text-gray-900"},k={light:"fill-gray-900",dark:"fill-white"},N={light:"text-gray-300",dark:"text-[#5C5C5C]"},C={light:"bg-white/12 text-white hover:bg-white/20",dark:"bg-black/8 text-gray-900 hover:bg-black/14"};function S({locale:e,className:a}){let R=(0,l.useTranslations)("Header"),L=(0,x.useIsMobile)(),U=(0,i.useRef)(null),A=(0,n.useAtomValue)(m.geoipGeocode),{location:I}=(0,v.useLocation)(),E=I?.name||I?.city||I?.displayName,B=I?.geocode,P=!!B&&!!A&&(0,h.formatGeocode)(B)===(0,h.formatGeocode)(A),[_,O]=(0,n.useAtom)(f.locationPickerOpenAtom),[M,F]=(0,i.useState)(!1);(0,i.useEffect)(()=>{try{"true"!==localStorage.getItem(b)&&F(!0)}catch{}},[]);let z=(0,i.useCallback)(()=>{F(!1);try{localStorage.setItem(b,"true")}catch{}},[]),T=(0,i.useCallback)(()=>{M&&z(),O(!_)},[M,z,O,_]);(0,i.useEffect)(()=>{if(!_||L)return;let e=e=>{U.current&&!U.current.contains(e.target)&&O(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[_,L,O]),(0,i.useEffect)(()=>{if(!_)return;let e=e=>{"Escape"===e.key&&O(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[_,O]);let H=M&&!_;return(0,t.jsxs)("div",{ref:U,className:(0,r.cn)("relative max-md:mr-auto",a),children:[(0,t.jsxs)(o.Popover,{open:H,children:[(0,t.jsx)(o.PopoverAnchor,{asChild:!0,children:(0,t.jsx)("div",{className:"rounded-4xl bg-white md:p-1 md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(s.Button,{type:"button",variant:"ghostUI",onClick:T,"aria-expanded":_,"aria-haspopup":"dialog","aria-label":E??R("searchPlaceholderText"),"data-state":_?"open":"closed","data-testid":"location-picker-trigger",className:(0,r.cn)("inline-flex h-10 items-center justify-center gap-2 rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none",w[y]),children:[P&&(0,t.jsx)(d.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true"}),(0,t.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:E||(0,t.jsx)(p,{animationStrings:["Location"]})}),(0,t.jsx)(c.ChevronUp,{className:(0,r.cn)("size-3 shrink-0 text-white transition-transform duration-150",!_&&"rotate-180"),"aria-hidden":"true"})]})})}),(0,t.jsx)(o.PopoverContent,{side:"bottom",align:"start",sideOffset:12,"data-component":"location-picker-onboarding",className:(0,r.cn)("w-[320px] origin-top rounded-3xl border-none p-4 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)]",j[y]),arrowClassName:k[y],onOpenAutoFocus:e=>e.preventDefault(),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-base leading-tight font-bold",children:"✨ Switching locations is easier with the new location selector."}),(0,t.jsx)("p",{className:(0,r.cn)("text-sm leading-tight font-medium",N[y]),children:"Search for new locations or choose from a list of your saved locations and recent searches."})]}),(0,t.jsx)("button",{type:"button",onClick:z,"aria-label":"Dismiss",className:(0,r.cn)("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-2xl transition-colors",C[y]),"data-testid":"location-picker-popup-close",children:(0,t.jsx)(u.Close,{className:"size-4 text-inherit","aria-hidden":"true"})})]})})]}),(0,t.jsx)("div",{className:(0,r.cn)(!L&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(g.Search,{locale:e,open:_,onOpenChange:O})})]})}var R=e.i(559421),L=e.i(528600),U=e.i(731672),A=e.i(792461),I=e.i(381477),E=e.i(445899),B=e.i(296990),P=e.i(674885),_=e.i(336726),O=e.i(184154),M=e.i(357508),F=e.i(827049),z=e.i(449172),T=e.i(316810);let H=({url:e,action:i,name:l,isNew:n,isExternal:s,isInGroup:o})=>{if(!e&&!i)return null;let d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[l,n&&(0,t.jsx)(T.default,{})]}),s&&(0,t.jsx)(z.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),c=(0,r.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",o?"px-10":"px-6");return(0,t.jsx)("li",{className:o?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,t.jsx)(a.default,{href:e,className:c,target:s?"_blank":void 0,children:d}):(0,t.jsx)("button",{onClick:i,className:(0,r.cn)(c,"cursor-pointer"),children:d})},l)};var V=e.i(993269),$=e.i(859827);let G=({isExpanded:e,toggleCategory:a,name:i,links:l})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsxs)("div",{className:(0,r.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:a,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,t.jsx)("h2",{className:(0,r.cn)("text-gray-900 md:font-bold"),children:i}),(0,t.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,t.jsx)(V.Minus,{size:"md",className:"text-black"}):(0,t.jsx)($.Plus,{size:"md",className:"text-black"})})]}),(0,t.jsx)("ul",{className:(0,r.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:l.map(e=>(0,t.jsx)(H,{...e,isInGroup:!0},e.name))})]},i);var D=e.i(611540);let q=(0,i.forwardRef)((e,a)=>{let[o,d]=(0,n.useAtom)(f.settingsMenuOpenAtom),u=(0,n.useAtomValue)(P.isImperialUnitsAtom),m=(0,O.useParams)(),h=(m?.locale||"en-US").split("-")[1],{location:x}=(0,v.useLocation)(),p=(0,R.useCanonicalBasePath)(),{user:{isUserLoggedIn:g}}=(0,L.useUser)(),b=(0,U.useUserLogout)(),y=(0,A.useRefMemo)(b),w=x?.placeId||"",j=(0,n.useAtomValue)(F.pageLocaleAtom),k=(0,l.useTranslations)("SidebarNavigation"),N=(0,l.useTranslations)("UserRegistration"),{data:C}=(0,I.default)(["navigation/getVideoLink",j],([e,t])=>(0,E.getVideoLink)(t),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[S,z]=(0,i.useState)({}),T=(0,i.useMemo)(()=>[{name:k("weatherForecasts"),links:[{name:k("today"),url:p?`${p}/today`:(0,D.interpolateUrl)(D.URLS.today,{locale:j,locId:w})},{name:k("hourly"),url:p?`${p}/hourbyhour`:(0,D.interpolateUrl)(D.URLS.hourly,{locale:j,locId:w})},{name:k("tenday"),url:p?`${p}/tenday`:(0,D.interpolateUrl)(D.URLS.tenday,{locale:j,locId:w})}]},{name:k("radarAndMaps"),links:[{name:k("interactiveRadarMap"),url:`${(0,D.interpolateUrl)(D.URLS.interactiveMap,{locale:j,locId:w})}?animation=true`},..."en-US"===j?[{name:"US Forecast",url:D.URLS.usForecast},{name:"US Satellite & Radar",url:D.URLS.usSatAndRadar},{name:"World Satellite",url:D.URLS.worldSatellite},{name:"US Severe Alerts",url:D.URLS.usSevereAlerts},{name:"US Health",url:D.URLS.usHealth}]:[]]},..."en-US"===j?[{name:k("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:k("hurricaneCentral"),url:"/storms/hurricane-central"},{name:k("tornadoCentral"),url:"/storms/tornado-central"},{name:k("safetyAndPrep"),url:"/safety/index"},{name:k("spaceAndSkywatching"),url:D.URLS.spaceSkywatching},...C?[{name:k("video"),url:C}]:[]]}]:C?[{name:k("video"),links:[{name:k("topStories"),url:C}]}]:[],{name:k("productAccount"),links:[..."en-US"===j?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...g?[{name:N("manageAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSettings,{locale:j})},{name:N("logOut"),action:y.current}]:[{name:N("createAnAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSignup,{locale:j})},{name:N("logIn"),url:(0,D.interpolateUrl)(D.URLS.memberLogin,{locale:j})}]]},{name:k("lifestyle"),links:[..."en-US"===j?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:k("recipes"),url:"/home-garden/recipes"},{name:k("homeAndGarden"),url:D.URLS.homeGarden},{name:k("travelAndOutdoors"),url:D.URLS.travel},{name:k("petsAndAnimals"),url:D.URLS.pets},{name:"Health",url:"/health"}]:[],{name:k("allergyTracker"),url:(0,D.interpolateUrl)(D.URLS.allergy,{locale:j,locId:w})},{name:k("airQualityIndex"),url:(0,D.interpolateUrl)(D.URLS.airQuality,{locale:j,locId:w})},{name:k("coldAndFluTracker"),url:(0,D.interpolateUrl)(D.URLS.coldFlu,{locale:j,locId:w})},..."en-US"===j?[{name:k("skinHealth"),url:D.URLS.skinHealth}]:[]]},..."en-US"===j?[{name:"Explore",url:"/explore"}]:[]],[g,y,w,C,p,j]);return(0,t.jsxs)("nav",{ref:a,className:(0,r.cn)("md:h-unset absolute top-full right-0 left-0 z-110 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,t.jsxs)(s.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":o,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>d(e=>!e),children:[(0,t.jsx)(B.Globe,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,t.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:h}),(0,t.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:u?"°F":"°C"}),o?(0,t.jsx)(c.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(_.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(M.default,{})]}),!o&&(0,t.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:T.map((e,r)=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,t.jsx)(G,{isExpanded:S[e.name],toggleCategory:()=>{var t;return t=e.name,void z(e=>({...e,[t]:!e[t]}))},...e}):(0,t.jsx)(H,{...e})},r))})]})});q.displayName="Navigation";var Q=e.i(747961);let W=(0,i.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hamburger"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.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"})]})),Y=i.default.forwardRef((e,r)=>(0,t.jsx)(Q.BaseIcon,{ref:r,icon:W,...e}));function K(){let[e,r]=(0,n.useAtom)(f.menuOpenAtom),a=(0,i.useRef)(null),l=(0,i.useRef)(null);return(0,i.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,i.useEffect)(()=>{function t(t){e&&a.current&&l.current&&!a.current.contains(t.target)&&!l.current.contains(t.target)&&r(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,r]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Button,{ref:a,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:()=>r(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(u.Close,{}):(0,t.jsx)(Y,{})}),e&&(0,t.jsx)(q,{ref:l})]})}Y.displayName="Hamburger";var X=e.i(368847),J=e.i(837879),Z=e.i(654623),ee=e.i(940496),et=e.i(537989);let er=()=>{let e=(0,n.useAtomValue)(et.pageIdAtom);return(0,i.useCallback)(t=>{let r=`${e}_${t}`;(0,ee.setCookie)("fromStr",r,{path:"/",domain:".weather.com"})},[e])};function ea(){let{user:e,userProfile:r}=(0,L.useUser)(),n=(0,U.useUserLogout)(),{isUserLoggedIn:d,isUserPremium:c}=e,[u,m]=(0,i.useState)(!1),h=(0,J.useSubscriptionsEnabled)(),x=(0,l.useTranslations)("UserRegistration"),p=(0,Z.useLocale)(),f=er(),g="flex size-8 shrink-0 items-center justify-center rounded-full border-2 border-current text-sm leading-none font-bold text-inherit";return(0,t.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:d?(0,t.jsxs)(o.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:u,onOpenChange:m,children:[(0,t.jsx)(o.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":u,className:g,"data-testid":"header-profile-button",children:r?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(o.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(a.default,{href:(0,D.interpolateUrl)(D.URLS.memberSettings,{locale:p}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:g,children:r?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(X.default,{variant:"Body.S",children:r?.firstName}),(0,t.jsx)(X.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:x("manageAccount")})]})]})}),!c&&h&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(X.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(X.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(a.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>f("user_flyout_go_premium"),children:(0,t.jsx)(s.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(s.Button,{variant:"link",onClick:n,"data-testid":"header-profile-signout",children:x("signOut")})})]})})]}):(0,t.jsx)(a.default,{href:(0,D.interpolateUrl)(D.URLS.memberLogin,{locale:p}),children:(0,t.jsx)(s.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:x("logIn")})})})}var ei=e.i(995113);function el(){let{user:e}=(0,L.useUser)(),{isUserPremium:i}=e,l=(0,J.useSubscriptionsEnabled)(),n=er();return i||!l?null:(0,t.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(a.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,r.cn)("group relative inline-flex h-10 items-center justify-center gap-1 overflow-hidden rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>n("header_go_premium"),children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(ei.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,t.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var en=e.i(458645);e.i(647872);var es=e.i(523579);e.s(["default",0,function({locale:e,subnav:i,hideHeaderOnDesktop:l}){let s,o=(0,x.useIsMobile)(),d=(s=(0,x.useIsMobile)(),(0,O.usePathname)().includes("/subscribe")&&!s||l&&!o),c=(0,n.useAtomValue)(es.retroWeatherAtom),u=(0,n.useAtomValue)(f.menuOpenAtom),m=(0,n.useAtomValue)(f.locationPickerOpenAtom),h=c?"/retro":(0,D.interpolateUrl)(D.URLS.home,{locale:e});return d?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:"z-sticky relative top-0 w-full md:sticky",children:(0,t.jsx)("div",{className:"text-black max-md:bg-white","data-component":"header-main","data-testid":"header-main",children:(0,t.jsxs)("div",{className:"mx-auto flex items-center justify-between gap-2 px-3 py-2 md:gap-4 md:py-3 md:pl-0",children:[(0,t.jsx)("span",{className:"contents md:hidden",children:(0,t.jsx)(K,{})}),(0,t.jsx)("div",{className:"flex items-center md:hidden",children:(0,t.jsx)(a.default,{href:h,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(en.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),(0,t.jsx)(S,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:i}),(0,t.jsx)(el,{}),(0,t.jsx)(ea,{})]})})}),(0,t.jsx)("div",{className:(0,r.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",u||m?"hidden":"block"),children:i})]})}],778828)}]);