(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,348501,e=>{e.q("/_next/static/media/dlpg-you.0o6zs2s1qinws.png")},10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},731672,e=>{"use strict";var a=e.i(546446),l=e.i(646341),t=e.i(671525),r=e.i(889753),i=e.i(45846),s=e.i(284007),n=e.i(756227),d=e.i(318849),o=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,a.useSetAtom)(r.userPreferencesAtom),c=(0,n.useResetAuthState)(),{refresh:u}=(0,t.usePageNavigation)();return async()=>{try{return(0,o.regenerateMetricsSession)(),await i.upsxClient.auth.logout(),c(),e(s.RESET),(0,l.deleteCookie)("twc-user",{domain:".weather.com"}),(0,d.disableSwrPersist)(),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},129932,e=>{"use strict";var a=e.i(699173),l=e.i(592121),t=e.i(747961);let r=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Products"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.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"})]})),i=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:r,...e}));i.displayName="SkincareBold",e.s(["SkincareBold",0,i])},800177,e=>{"use strict";var a=e.i(699173),l=e.i(592121),t=e.i(747961);let r=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Products"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.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"})]})),i=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:r,...e}));i.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,i])},995113,e=>{"use strict";var a=e.i(699173),l=e.i(592121),t=e.i(747961);let r=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"lightning"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M5.748 14.435a.43.43 0 0 0 .203.195.4.4 0 0 0 .164.037.4.4 0 0 0 .188-.057.43.43 0 0 0 .145-.142l5.47-7.69a.47.47 0 0 0 .046-.453.44.44 0 0 0-.156-.185.4.4 0 0 0-.223-.068H9.587l.727-3.52a.49.49 0 0 0-.084-.384.4.4 0 0 0-.146-.124A.4.4 0 0 0 9.902 2H5.694a.4.4 0 0 0-.268.094.46.46 0 0 0-.152.254L4.01 8.23a.49.49 0 0 0 .083.39q.062.082.151.126a.4.4 0 0 0 .187.04h2.032L5.7 14.147c-.014.1.003.201.049.289"})]})),i=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:r,...e}));i.displayName="LightningFilled",e.s(["LightningFilled",0,i])},113016,312401,807215,876329,e=>{"use strict";var a=e.i(699173),l=e.i(592121),t=e.i(747961);let r=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Video"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M9.5 8.895a.5.5 0 0 1 .762-.426l5.046 3.105a.5.5 0 0 1 0 .852l-5.046 3.105a.5.5 0 0 1-.762-.426z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 4.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2zm-17 13h17v-11h-17z",clipRule:"evenodd"})]})),i=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:r,...e}));i.displayName="VideoPlayerBold",e.s(["VideoPlayerBold",0,i],113016);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Video"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 4.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2zM10.262 8.469a.5.5 0 0 0-.762.426v6.21a.5.5 0 0 0 .762.426l5.046-3.105a.5.5 0 0 0 0-.852z",clipRule:"evenodd"})]})),n=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:s,...e}));n.displayName="VideoPlayerBoldFilled",e.s(["VideoPlayerBoldFilled",0,n],312401);let d=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Radar"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M12 2a1 1 0 0 1 0 2 8.001 8.001 0 1 0 2.322 15.655 8 8 0 0 0 4-12.557l-1.43 1.43A6 6 0 1 1 12 6a1 1 0 0 1 0 2 4 4 0 1 0 3.447 1.973l-2.74 2.74a1 1 0 0 1-1.414-1.414l6.321-6.323.043-.047a1 1 0 0 1 1.415 0A10 10 0 1 1 12 2"})]})),o=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:d,...e}));o.displayName="RadarBold",e.s(["RadarBold",0,o],807215);let c=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Radar"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8.002 8.002 0 0 0-7.056 11.772 8.001 8.001 0 1 0 12.713-9.43.75.75 0 0 0-1.06 0l-.006.007-.03.027-5.091 5.09a.751.751 0 0 0 1.06 1.062l2.053-2.053A3.001 3.001 0 1 1 12 9a.75.75 0 0 0 0-1.5 4.502 4.502 0 0 0-3.969 6.621 4.502 4.502 0 0 0 7.71.379 4.5 4.5 0 0 0-.075-5.108l1.429-1.43a6.5 6.5 0 0 1 .31 7.65A6.5 6.5 0 1 1 12 5.5.75.75 0 0 0 12 4",clipRule:"evenodd"})]})),u=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:c,...e}));u.displayName="RadarBoldFilled",e.s(["RadarBoldFilled",0,u],876329)},702957,489408,e=>{"use strict";var a=e.i(699173),l=e.i(592121),t=e.i(747961);let r=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Today"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 2a5.5 5.5 0 0 1 5.5 5.5c0 1.661-.74 3.145-1.902 4.153A5.5 5.5 0 0 1 17 22H7a5.5 5.5 0 0 1-1.628-10.753 7.01 7.01 0 0 1 5.193-4.6A5.5 5.5 0 0 1 16 2m-4 6.5a5 5 0 0 0-4.857 3.813l-.154.628-.635.12A3.5 3.5 0 0 0 7 20h10a3.5 3.5 0 0 0 .645-6.94l-.635-.118-.154-.629A5 5 0 0 0 12 8.5M16 4a3.5 3.5 0 0 0-3.363 2.53 7 7 0 0 1 5.55 3.701A3.5 3.5 0 0 0 16 4",clipRule:"evenodd"})]})),i=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:r,...e}));i.displayName="PartlyCloudyBold",e.s(["PartlyCloudyBold",0,i],702957);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Today"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 2a5.5 5.5 0 0 1 3.6 9.655A5.5 5.5 0 0 1 17 22H7a5.5 5.5 0 0 1-1.628-10.753 7.01 7.01 0 0 1 5.193-4.6A5.5 5.5 0 0 1 16 2m0 2a3.5 3.5 0 0 0-3.363 2.53 7 7 0 0 1 5.55 3.701A3.5 3.5 0 0 0 16 4",clipRule:"evenodd"})]})),n=l.default.forwardRef((e,l)=>(0,a.jsx)(t.BaseIcon,{ref:l,icon:s,...e}));n.displayName="PartlyCloudyBoldFilled",e.s(["PartlyCloudyBoldFilled",0,n],489408)},778828,e=>{"use strict";var a=e.i(699173),l=e.i(632137),t=e.i(240058),r=e.i(592121),i=e.i(683903),s=e.i(546446),n=e.i(877957),d=e.i(616448),o=e.i(526456),c=e.i(527207),u=e.i(498076);let m=({animationStrings:e})=>(0,a.jsx)(a.Fragment,{children:e.map(e=>(0,a.jsx)("span",{"data-nosnippet":!0,className:(0,l.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var x=e.i(436066);e.i(24959);var h=e.i(686557),f=e.i(64412),p=e.i(262453),v=e.i(214008);let g="bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500";function b({locale:e,className:t}){let j=(0,i.useTranslations)("Header"),w=(0,u.useIsMobile)(),y=(0,r.useRef)(null),N=(0,p.usePreciseGeocode)(),{location:S}=(0,f.useLocation)(),{location:R}=(0,f.useLocation)("geolocation"),k=S?.name||S?.city||S?.displayName,C=(0,v.isSameLocation)(S,R),[A,U]=(0,s.useAtom)(x.locationPickerOpenAtom),B=(0,r.useCallback)(()=>{U(!A)},[U,A]);return(0,r.useEffect)(()=>{if(!A||w)return;let e=e=>{y.current&&!y.current.contains(e.target)&&U(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A,w,U]),(0,r.useEffect)(()=>{if(!A)return;let e=e=>{"Escape"===e.key&&U(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[A,U]),(0,a.jsxs)("div",{ref:y,className:(0,l.cn)("relative max-md:mr-auto",t),children:[(0,a.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,a.jsxs)(n.Button,{type:"button",variant:"ghostUI",onClick:B,"aria-expanded":A,"aria-haspopup":"dialog","aria-label":k??j("searchPlaceholderText"),"data-state":A?"open":"closed","data-testid":"location-picker-trigger",className:(0,l.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",g),children:[C&&N?(0,a.jsx)(o.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):C&&!N?(0,a.jsx)(d.CurrentLocation,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):null,(0,a.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:k||(0,a.jsx)(m,{animationStrings:["Location"]})}),(0,a.jsx)(c.ChevronUp,{className:(0,l.cn)("size-3 shrink-0 text-white transition-transform duration-150",!A&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,a.jsx)("div",{className:(0,l.cn)(!w&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,a.jsx)(h.Search,{locale:e,open:A,onOpenChange:U})})]})}var j=e.i(559421),w=e.i(528600),y=e.i(731672),N=e.i(792461),S=e.i(190344),R=e.i(296990),k=e.i(674885),C=e.i(336726),A=e.i(961123),U=e.i(357508);e.i(609717);var B=e.i(950771);e.i(647872);var L=e.i(494889),P=e.i(449172),M=e.i(316810);let E=({url:e,action:r,name:i,isNew:s,isExternal:n,isInGroup:d})=>{if(!e&&!r)return null;let o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"relative flex items-center",children:[i,s&&(0,a.jsx)(M.default,{})]}),n&&(0,a.jsx)(P.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),c=(0,l.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",d?"px-10":"px-6");return(0,a.jsx)("li",{className:d?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,a.jsx)(t.default,{href:e,className:c,target:n?"_blank":void 0,children:o}):(0,a.jsx)("button",{onClick:r,className:(0,l.cn)(c,"cursor-pointer"),children:o})},i)};var I=e.i(993269),_=e.i(859827);let z=({isExpanded:e,toggleCategory:t,name:r,links:i})=>(0,a.jsxs)("div",{className:"w-full md:mb-6",children:[(0,a.jsxs)("div",{className:(0,l.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,a.jsx)("h2",{className:(0,l.cn)("text-gray-900 md:font-bold"),children:r}),(0,a.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,a.jsx)(I.Minus,{size:"md",className:"text-black"}):(0,a.jsx)(_.Plus,{size:"md",className:"text-black"})})]}),(0,a.jsx)("ul",{className:(0,l.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:i.map(e=>(0,a.jsx)(E,{...e,isInGroup:!0},e.name))})]},r);var F=e.i(611540),T=e.i(304116),H=e.i(269153);let V=(0,r.forwardRef)((e,t)=>{let[d,o]=(0,s.useAtom)(x.settingsMenuOpenAtom),u=(0,s.useAtomValue)(k.isImperialUnitsAtom),m=(0,A.useParams)(),h=(m?.locale||"en-US").split("-")[1],{location:p}=(0,f.useLocation)(),v=(0,j.useCanonicalBasePath)(),{user:{isUserLoggedIn:g}}=(0,w.useUser)(),b=(0,y.useUserLogout)(),P=(0,N.useRefMemo)(b),M=p?.placeId||"",I=p?.featureId,_=p?.canonicalID,V=(0,H.useIsSamsungPartner)(),O=(0,s.useAtomValue)(B.pageLocaleAtom),G=(0,s.useAtomValue)(L.newsHubEnabledAtom),q=(0,i.useTranslations)("SidebarNavigation"),D=(0,i.useTranslations)("UserRegistration"),W=(0,S.useVideoNavUrl)(),[K,Q]=(0,r.useState)({}),Y=(0,r.useCallback)(e=>(0,T.buildLocationPageHref)({pageType:e,locale:O,canonicalBasePath:v,canonicalID:_,featureId:I,placeId:M,skipCanonical:V}),[O,v,_,I,M,V]),$=(0,r.useMemo)(()=>[{name:q("weatherForecasts"),links:[{name:q("today"),url:Y("today")},{name:q("hourly"),url:Y("hourbyhour")},{name:q("tenday"),url:Y("tenday")}]},{name:q("radarAndMaps"),links:[{name:q("interactiveRadarMap"),url:`${(0,F.interpolateUrl)(F.URLS.interactiveMap,{locale:O,locId:M})}?animation=true`},..."en-US"===O?[{name:"US Forecast",url:F.URLS.usForecast},{name:"US Satellite & Radar",url:F.URLS.usSatAndRadar},{name:"World Satellite",url:F.URLS.worldSatellite},{name:"US Severe Alerts",url:F.URLS.usSevereAlerts},{name:"US Health",url:F.URLS.usHealth}]:[]]},..."en-US"===O?[{name:q("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:q("hurricaneCentral"),url:"/storms/hurricane-central"},{name:q("tornadoCentral"),url:"/storms/tornado-central"},{name:q("safetyAndPrep"),url:"/safety/index"},{name:q("spaceAndSkywatching"),url:F.URLS.spaceSkywatching},...W?[{name:q("video"),url:W}]:[]]}]:W?[{name:q("video"),links:[{name:q("topStories"),url:W}]}]:[],{name:q("productAccount"),links:[..."en-US"===O?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...g?[{name:D("manageAccount"),url:(0,F.interpolateUrl)(F.URLS.memberSettings,{locale:O})},{name:D("logOut"),action:P.current}]:[{name:D("createAnAccount"),url:(0,F.interpolateUrl)(F.URLS.memberSignup,{locale:O})},{name:D("logIn"),url:(0,F.interpolateUrl)(F.URLS.memberLogin,{locale:O})}]]},{name:q("lifestyle"),links:[..."en-US"===O?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:q("recipes"),url:"/home-garden/recipes"},{name:q("homeAndGarden"),url:F.URLS.homeGarden},{name:q("travelAndOutdoors"),url:F.URLS.travel},{name:q("petsAndAnimals"),url:F.URLS.pets},{name:"Health",url:"/health"}]:[],{name:q("allergyTracker"),url:Y("allergy")},{name:q("airQualityIndex"),url:Y("air-quality")},{name:q("coldAndFluTracker"),url:Y("cold-flu")},..."en-US"===O?[{name:q("skinHealth"),url:F.URLS.skinHealth}]:[]]},..."en-US"===O?[...G?[{name:"News",url:F.URLS.news}]:[],{name:"Explore",url:"/explore"}]:[]],[g,P,M,O,Y,W,G]);return(0,a.jsxs)("nav",{ref:t,className:(0,l.cn)("md:h-unset z-overlay absolute top-full right-0 left-0 h-[calc(100dvh-56px)] w-full overflow-y-auto bg-white pb-14 shadow-md md:py-8 md:pb-0"),"data-testid":"header-nav-menu",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,a.jsxs)(n.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":d,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>o(e=>!e),children:[(0,a.jsx)(R.Globe,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,a.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:h}),(0,a.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"}),d?(0,a.jsx)(c.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,a.jsx)(C.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,a.jsx)(U.default,{})]}),!d&&(0,a.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:$.map((e,l)=>(0,a.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,a.jsx)(z,{isExpanded:K[e.name],toggleCategory:()=>{var a;return a=e.name,void Q(e=>({...e,[a]:!e[a]}))},...e}):(0,a.jsx)(E,{...e})},l))})]})});V.displayName="Navigation";var O=e.i(226602),G=e.i(747961);let q=(0,r.forwardRef)(({title:e,titleId:l,desc:t,descId:r,...i},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:s,"aria-labelledby":l,"aria-describedby":r,...i,children:[t?(0,a.jsx)("desc",{id:r,children:t}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Hamburger"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.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"})]})),D=r.default.forwardRef((e,l)=>(0,a.jsx)(G.BaseIcon,{ref:l,icon:q,...e}));function W(){let[e,l]=(0,s.useAtom)(x.menuOpenAtom),t=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,r.useEffect)(()=>{function a(a){e&&t.current&&i.current&&!t.current.contains(a.target)&&!i.current.contains(a.target)&&l(!1)}return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Button,{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,a.jsx)(O.Close,{}):(0,a.jsx)(D,{})}),e&&(0,a.jsx)(V,{ref:i})]})}D.displayName="Hamburger";var K=e.i(368847),Q=e.i(809058),Y=e.i(837879),$=e.i(730921),J=e.i(864723),X=e.i(537989);let Z=()=>{let e=(0,s.useAtomValue)(X.pageIdAtom);return(0,r.useCallback)(a=>{let l=`${e}_${a}`;(0,J.setCookie)("fromStr",l,{path:"/",domain:".weather.com"})},[e])};var ee=e.i(683199);function ea(){let{user:e,userProfile:l}=(0,w.useUser)(),s=(0,y.useUserLogout)(),{isUserLoggedIn:d,isUserPremium:o}=e,[c,u]=(0,r.useState)(!1),m=(0,Y.useSubscriptionsEnabled)(),x=(0,i.useTranslations)("UserRegistration"),h=(0,$.useLocale)(),f=Z(),p=(0,ee.usePremiumSource)(),v="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,a.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:d?(0,a.jsxs)(Q.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:u,children:[(0,a.jsx)(Q.PopoverTrigger,{asChild:!0,children:(0,a.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":c,className:v,"data-testid":"header-profile-button",children:l?.firstName?.charAt(0)?.toUpperCase()})}),(0,a.jsx)(Q.PopoverContent,{className:"z-9996 p-0",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(t.default,{href:(0,F.interpolateUrl)(F.URLS.memberSettings,{locale:h}),"data-testid":"header-profile-account",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,a.jsx)("span",{className:v,children:l?.firstName?.charAt(0)?.toUpperCase()}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(K.default,{variant:"Body.S",children:l?.firstName}),(0,a.jsx)(K.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:x("manageAccount")})]})]})}),!o&&m&&(0,a.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,a.jsx)(K.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,a.jsx)(K.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,a.jsx)(t.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{f("user_flyout_go_premium"),p({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,a.jsx)(n.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,a.jsx)(n.Button,{variant:"link",onClick:s,"data-testid":"header-profile-signout",children:x("signOut")})})]})})]}):(0,a.jsx)(t.default,{href:(0,F.interpolateUrl)(F.URLS.memberLogin,{locale:h}),children:(0,a.jsx)(n.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 el=e.i(995113);function et(){let{user:e}=(0,w.useUser)(),{isUserPremium:r}=e,i=(0,Y.useSubscriptionsEnabled)(),s=Z(),n=(0,ee.usePremiumSource)();return r||!i?null:(0,a.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,a.jsxs)(t.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,l.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:()=>{s("header_go_premium"),n({sourceModule:"top-menu",sourceElement:"get-premium"})},children:[(0,a.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,a.jsx)(el.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,a.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var er=e.i(458645),ei=e.i(523579);e.s(["default",0,function({locale:e,subnav:r,hideHeaderOnDesktop:i,hideLocationPicker:n,hideGoPremiumButton:d}){let o,c=(0,u.useIsMobile)(),m=(o=(0,u.useIsMobile)(),(0,A.usePathname)().includes("/subscribe")&&!o||i&&!c),h=(0,s.useAtomValue)(ei.retroWeatherAtom),f=(0,s.useAtomValue)(x.menuOpenAtom),p=(0,s.useAtomValue)(x.locationPickerOpenAtom),v=h?"/retro":(0,F.interpolateUrl)(F.URLS.home,{locale:e});return m?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{className:"z-sticky relative top-0 w-full md:sticky",children:(0,a.jsx)("div",{className:"text-black max-md:bg-white","data-component":"header-main","data-testid":"header-main",children:(0,a.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,a.jsx)("span",{className:"contents md:hidden",children:(0,a.jsx)(W,{})}),(0,a.jsx)("div",{className:(0,l.cn)("flex items-center md:hidden",n&&"max-md:mr-auto"),children:(0,a.jsx)(t.default,{href:v,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,a.jsx)(er.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),!n&&(0,a.jsx)(b,{locale:e}),(0,a.jsx)("div",{className:"hidden md:contents",children:r}),!d&&(0,a.jsx)(et,{}),(0,a.jsx)(ea,{})]})})}),(0,a.jsx)("div",{className:(0,l.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",f||p?"hidden":"block"),children:r})]})}],778828)},556441,e=>{"use strict";var a=e.i(699173),l=e.i(961123),t=e.i(240058),r=e.i(877957),i=e.i(368847),s=e.i(132084),n=e.i(528600),d=e.i(837879),o=e.i(498076),c=e.i(37429),u=e.i(683199);e.s(["default",0,()=>{let e=(0,l.useSearchParams)(),m=e.get("par")||e.get("partner"),x=(0,o.useIsMobile)(),h=(0,d.useSubscriptionsEnabled)(),{user:f}=(0,n.useUser)(),{isUserPremium:p}=f,v=(0,u.usePremiumSource)();return m===s.Partner.TIKTOK&&x&&h&&!p?(0,a.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,a.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,a.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,a.jsx)(i.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,a.jsx)(i.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,a.jsx)(r.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,a.jsx)(t.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>v({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])}]);