(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,778828,e=>{"use strict";var a=e.i(458201),t=e.i(632137),r=e.i(240058),n=e.i(538167),i=e.i(789422),l=e.i(282446),s=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,t.f)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var h=e.i(436066);e.i(24959);var x=e.i(686557),f=e.i(64412),p=e.i(262453),g=e.i(214008);let b="bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500";function v({locale:e,className:r,elevated:j=!1}){let y=(0,i.r)("Header"),w=(0,u.f)(),N=(0,n.useRef)(null),k=(0,p.f)(),{location:C}=(0,f.f)(),{location:A}=(0,f.f)("geolocation"),S=C?.name||C?.city||C?.displayName,E=(0,g.f)(C,A),[_,U]=(0,l.q)(h.O),R=(0,n.useCallback)(()=>{U(!_)},[U,_]);return(0,n.useEffect)(()=>{if(!_||w)return;let e=e=>{N.current&&!N.current.contains(e.target)&&U(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[_,w,U]),(0,n.useEffect)(()=>{if(!_)return;let e=e=>{"Escape"===e.key&&U(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[_,U]),(0,a.jsxs)("div",{ref:N,className:(0,t.f)("relative max-md:mr-auto",r),children:[(0,a.jsx)("div",{className:(0,t.f)("rounded-4xl bg-white md:rounded-full md:bg-white/66 md:p-1 md:backdrop-blur-[16px] md:backdrop-saturate-[1.8] md:transition-shadow md:duration-200",j&&"md:shadow-[0_2px_8px_0_rgba(0,0,0,0.16)]"),children:(0,a.jsxs)(s.f,{type:"button",variant:"ghostUI",onClick:R,"aria-expanded":_,"aria-haspopup":"dialog","aria-label":S??y("searchPlaceholderText"),"data-state":_?"open":"closed","data-testid":"location-picker-trigger",className:(0,t.f)("inline-flex h-10 items-center justify-center gap-2 rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:rounded-full md:ps-4 md:pe-3 md:font-medium","focus-visible:ring-offset-0 focus-visible:outline-none",b),children:[E&&k?(0,a.jsx)(o.f,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):E&&!k?(0,a.jsx)(d.f,{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:S||(0,a.jsx)(m,{animationStrings:["Location"]})}),(0,a.jsx)(c.f,{className:(0,t.f)("size-3 shrink-0 text-white transition-transform duration-150 md:size-3.5",!_&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,a.jsx)("div",{className:(0,t.f)(!w&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,a.jsx)(x.f,{locale:e,open:_,onOpenChange:U})})]})}var j=e.i(559421),y=e.i(528600),w=e.i(731672),N=e.i(792461),k=e.i(190344),C=e.i(296990),A=e.i(674885),S=e.i(336726),E=e.i(935251),_=e.i(357508),U=e.i(942400);e.i(647872);var R=e.i(928083),z=e.i(598513),L=e.i(993269),H=e.i(859827),M=e.i(449172),I=e.i(316810);let O=({url:e,action:n,name:i,isNew:l,isExternal:s,isInGroup:d,onClick:o,sourceModule:c,sourceElement:u,modulePosition:m})=>{if(!e&&!n)return null;let h=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"relative flex items-center",children:[i,l&&(0,a.jsx)(I.f,{})]}),s&&(0,a.jsx)(M.f,{size:"sm","data-testid":"external-link-icon"})]}),x=(0,t.f)("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)(r.default,{href:e,className:x,target:s?"_blank":void 0,onClick:o,sourceModule:c,sourceElement:u,"data-module-key":m,children:h}):(0,a.jsx)("button",{onClick:n,className:(0,t.f)(x,"cursor-pointer"),children:h})},i)},T=({isExpanded:e,toggleCategory:r,name:n,links:i,isNew:l})=>(0,a.jsxs)("div",{className:"w-full md:mb-6",children:[(0,a.jsx)("h2",{className:"contents",children:(0,a.jsxs)("button",{type:"button",onClick:r,"aria-expanded":!!e,"aria-label":`Toggle ${n} category`,className:(0,t.f)("flex w-full cursor-pointer items-center justify-between px-6 py-2.5 text-left md:cursor-default","focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none"),children:[(0,a.jsxs)("span",{className:"relative flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-900 md:font-bold",children:n}),l&&(0,a.jsx)(I.f,{})]}),(0,a.jsx)("span",{"aria-hidden":"true",children:e?(0,a.jsx)(L.f,{size:"md",className:"text-black"}):(0,a.jsx)(H.f,{size:"md",className:"text-black"})})]})}),(0,a.jsx)("ul",{className:(0,t.f)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:i.map(e=>(0,a.jsx)(O,{sourceModule:"header-nav",sourceElement:e.name,...e,isInGroup:!0},e.name))})]},n);var B=e.i(611540),K=e.i(304116),F=e.i(269153);let P=[{titleKey:"running",urlKey:"activityHubRunning"},{titleKey:"camping",urlKey:"activityHubCamping"},{titleKey:"hiking",urlKey:"activityHubHiking"},{titleKey:"golf",urlKey:"activityHubGolf"},{titleKey:"cycling",urlKey:"activityHubCycling"},{titleKey:"gardening",urlKey:"activityHubGardening"},{titleKey:"tennis",urlKey:"activityHubTennis"}],D={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},G=(0,n.forwardRef)((e,r)=>{let[d,o]=(0,l.q)(h.Z),m=(0,l.y)(A.r),x=(0,E.useParams)(),p=(x?.locale||"en-US").split("-")[1],{location:g}=(0,f.f)(),b=(0,j.f)(),{user:{isUserLoggedIn:v}}=(0,y.f)(),L=(0,w.f)(),H=(0,N.f)(L),M=g?.placeId||"",I=g?.featureId,O=g?.canonicalID,G=(0,F.f)(),q=(0,U.f)(),W=(0,l.y)(R.f),V=(0,u.f)(),$=(0,z.f)(),J=(0,i.r)("SidebarNavigation"),Q=(0,i.r)("ActivityHubDriver"),Y=(0,i.r)("UserRegistration"),Z=(0,k.f)(),[X,ee]=(0,n.useState)({}),ea=(0,n.useCallback)(e=>(0,K.f)({pageType:e,locale:q,canonicalBasePath:b,canonicalID:O,featureId:I,placeId:M,skipCanonical:G}),[q,b,O,I,M,G]),et=(0,n.useMemo)(()=>[{name:J("weatherForecasts"),links:[{name:J("today"),url:ea("today")},{name:J("hourly"),url:ea("hourbyhour")},{name:J("tenday"),url:ea("tenday")}]},{name:J("radarAndMaps"),links:[{name:J("interactiveRadarMap"),url:`${(0,B.R)(B.e.interactiveMap,{locale:q,locId:M})}?animation=true`},..."en-US"===q?[{name:"US Forecast",url:B.e.usForecast},{name:"US Satellite & Radar",url:B.e.usSatAndRadar},{name:"World Satellite",url:B.e.worldSatellite},{name:"US Severe Alerts",url:B.e.usSevereAlerts},{name:"US Health",url:B.e.usHealth}]:[]]},..."en-US"===q?[{name:"News",links:[{name:J("topStories"),url:B.e.news},{name:J("hurricaneCentral"),url:"/storms/hurricane-central"},{name:J("tornadoCentral"),url:"/storms/tornado-central"},{name:J("safetyAndPrep"),url:"/safety/index"},{name:J("spaceAndSkywatching"),url:B.e.spaceSkywatching},...Z?[{name:J("video"),url:Z}]:[]]}]:Z?[{name:J("video"),links:[{name:J("topStories"),url:Z}]}]:[],..."en-US"===q&&W&&V?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:P.map(({titleKey:e,urlKey:a},t)=>{let r=D[e],n=String(t);return{name:Q(e),url:(0,B.R)(B.e[a],{locale:q,locId:M}),onClick:()=>$({interactionType:"click",interactionElement:r,moduleId:"hamburger-menu",modulePosition:n,destinationPageId:r},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:r,modulePosition:n}})}]:[],{name:J("productAccount"),links:[..."en-US"===q?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:Y("manageAccount"),url:(0,B.R)(B.e.memberSettings,{locale:q})},{name:Y("logOut"),action:H.current}]:[{name:Y("createAnAccount"),url:(0,B.R)(B.e.memberSignup,{locale:q})},{name:Y("logIn"),url:(0,B.R)(B.e.memberLogin,{locale:q})}]]},{name:J("lifestyle"),links:[..."en-US"===q?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:J("recipes"),url:"/home-garden/recipes"},{name:J("homeAndGarden"),url:B.e.homeGarden},{name:J("travelAndOutdoors"),url:B.e.travel},{name:J("petsAndAnimals"),url:B.e.pets},{name:"Health",url:"/health"}]:[],{name:J("allergyTracker"),url:ea("allergy")},{name:J("airQualityIndex"),url:ea("air-quality")},{name:J("coldAndFluTracker"),url:ea("cold-flu")},..."en-US"===q?[{name:J("skinHealth"),url:B.e.skinHealth}]:[]]}],[v,H,M,q,ea,Z,W,V,$]);return(0,a.jsxs)("nav",{ref:r,className:(0,t.f)("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)(s.f,{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)(C.f,{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:p}),(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:m?"°F":"°C"}),d?(0,a.jsx)(c.f,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,a.jsx)(S.f,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,a.jsx)(_.f,{})]}),!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:et.map(e=>(0,a.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:(0,a.jsx)(T,{isExpanded:X[e.name],toggleCategory:()=>{var a;e.analyticsElement&&!X[e.name]&&$({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),a=e.name,ee(e=>({...e,[a]:!e[a]}))},...e})},e.name))})]})});G.displayName="Navigation";var q=e.i(710746),W=e.i(747961);let V=(0,n.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...i},l)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":t,"aria-describedby":n,...i,children:[r?(0,a.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Hamburger"}):e?(0,a.jsx)("title",{id:t,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"})]})),$=n.default.forwardRef((e,t)=>(0,a.jsx)(W.f,{ref:t,icon:V,...e}));function J(){let[e,t]=(0,l.q)(h.y),r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,n.useEffect)(()=>{function a(a){e&&r.current&&i.current&&!r.current.contains(a.target)&&!i.current.contains(a.target)&&t(!1)}return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e,t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.f,{ref:r,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:()=>t(!e),"data-testid":"header-menu-button",children:e?(0,a.jsx)(q.f,{}):(0,a.jsx)($,{})}),e&&(0,a.jsx)(G,{ref:i})]})}$.displayName="Hamburger";var Q=e.i(368847),Y=e.i(809058),Z=e.i(837879),X=e.i(580547),ee=e.i(201542),ea=e.i(537989);let et=()=>{let e=(0,l.y)(ea.f);return(0,n.useCallback)(a=>{let t=`${e}_${a}`;(0,ee.setCookie)("fromStr",t,{path:"/",domain:".weather.com"})},[e])};var er=e.i(683199);function en(){let{user:e,userProfile:t}=(0,y.f)(),l=(0,w.f)(),{isUserLoggedIn:d,isUserPremium:o}=e,[c,u]=(0,n.useState)(!1),m=(0,Z.f)(),h=(0,i.r)("UserRegistration"),x=(0,X.X)(),f=et(),p=(0,er.f)(),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,a.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:d?(0,a.jsxs)(Y.V,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:u,children:[(0,a.jsx)(Y.J,{asChild:!0,children:(0,a.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":c,className:g,"data-testid":"header-profile-button",children:t?.firstName?.charAt(0)?.toUpperCase()})}),(0,a.jsx)(Y.T,{className:"z-9996 p-0",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(r.default,{href:(0,B.R)(B.e.memberSettings,{locale:x}),"data-testid":"header-profile-account",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,a.jsx)("span",{className:g,children:t?.firstName?.charAt(0)?.toUpperCase()}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(Q.U,{variant:"Body.S",children:t?.firstName}),(0,a.jsx)(Q.U,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:h("manageAccount")})]})]})}),!o&&m&&(0,a.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,a.jsx)(Q.U,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,a.jsx)(Q.U,{children:"Try our best radar and forecasting features for weather planning."}),(0,a.jsx)(r.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)(s.f,{variant:"default",children:"Go Premium"})})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,a.jsx)(s.f,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:h("signOut")})})]})})]}):(0,a.jsx)(r.default,{href:(0,B.R)(B.e.memberLogin,{locale:x}),sourceModule:"header",sourceElement:"sign-in",children:(0,a.jsx)(s.f,{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:h("logIn")})})})}var ei=e.i(701600);function el(){let{user:e}=(0,y.f)(),{isUserPremium:n}=e,i=(0,Z.f)(),l=et(),s=(0,er.f)();return n||!i?null:(0,a.jsxs)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,t.f)("group relative inline-flex h-10 items-center justify-center gap-2 overflow-hidden rounded-full ps-3 pe-4 py-0 text-sm font-medium transition-colors","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>{l("header_go_premium"),s({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)(ei.f,{"aria-hidden":"true",className:"relative z-2 size-4 text-white"}),(0,a.jsx)("span",{className:"relative text-sm font-medium whitespace-nowrap text-white",children:"Get Premium"})]})}let es=(0,n.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...i},l)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":t,"aria-describedby":n,...i,children:[r?(0,a.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"User Avatar"}):e?(0,a.jsx)("title",{id:t,children:e}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M8 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"}),(0,a.jsx)("path",{d:"M8 1a7 7 0 1 0 7 7 7.01 7.01 0 0 0-7-7M5 13.188V12.5A1.5 1.5 0 0 1 6.5 11h3a1.5 1.5 0 0 1 1.5 1.5v.688a5.95 5.95 0 0 1-6 0m6.996-.725A2.5 2.5 0 0 0 9.5 10h-3a2.5 2.5 0 0 0-2.496 2.463 6 6 0 1 1 7.992 0"})]})]})),ed=n.default.forwardRef((e,t)=>(0,a.jsx)(W.f,{ref:t,icon:es,...e}));function eo({firstName:e,isPremium:r,isAdFree:n}){let i=e?.charAt(0)?.toUpperCase();return(0,a.jsxs)("div",{className:(0,t.f)("relative flex h-8 w-8 items-center justify-center rounded-full border-1 border-gray-900 md:h-12 md:w-12"),children:[(0,a.jsx)("span",{className:(0,t.f)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":r}),children:i}),r&&(0,a.jsx)("span",{className:(0,t.f)("absolute bottom-[-1px] left-[-1px] h-[9px] w-8 bg-white text-[6.25px] uppercase md:h-[13px] md:w-12 md:text-[10px]"),children:n?"Ad Free":"Premium"})]})}ed.displayName="UserAvatar";let ec="inline-flex h-10 cursor-pointer items-center gap-2 rounded-full ps-3 pe-3.5 text-sm font-medium whitespace-nowrap text-gray-900 no-underline transition-colors hover:bg-black/7 focus-visible:bg-black/7 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",eu=()=>{let{user:e,userProfile:l}=(0,y.f)(),{isUserLoggedIn:d,isUserPremium:o,isUserAdFree:c}=e,u=(0,w.f)(),m=(0,Z.f)(),h=(0,i.r)("SidebarNavigation"),x=(0,i.r)("UserRegistration"),f=(0,X.X)(),p=(0,er.f)(),[g,b]=(0,n.useState)(!1),v=l?.firstName?.charAt(0)?.toUpperCase();return d?(0,a.jsxs)(Y.V,{open:g,onOpenChange:b,children:[(0,a.jsx)(Y.J,{asChild:!0,children:(0,a.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":g,"data-testid":"header-account-button",className:(0,t.f)(ec,g&&"bg-black/7"),children:[v?(0,a.jsx)("span",{"aria-hidden":"true",className:"flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-current text-[10px] leading-none font-bold",children:v}):(0,a.jsx)(ed,{"aria-hidden":"true",className:"size-4 shrink-0"}),h("myAccount")]})}),(0,a.jsx)(Y.T,{side:"bottom",align:"end",sideOffset:8,className:"z-9996 p-0",showArrow:!1,children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(r.default,{href:(0,B.R)(B.e.memberSettings,{locale:f}),"data-testid":"header-profile-account",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,a.jsx)(eo,{firstName:l?.firstName,isPremium:o,isAdFree:c}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(Q.U,{variant:"Body.S",children:l?.firstName}),(0,a.jsx)(Q.U,{className:"text-sm text-gray-500 hover:text-gray-700",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)(Q.U,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,a.jsx)(Q.U,{children:"Try our best radar and forecasting features for weather planning."}),(0,a.jsx)(r.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>p({sourceModule:"top-menu",sourceElement:"get-premium"}),children:(0,a.jsx)(s.f,{variant:"default",children:"Go Premium"})})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,a.jsx)(s.f,{variant:"link",onClick:u,"data-testid":"header-profile-signout",children:x("signOut")})})]})})]}):(0,a.jsxs)(r.default,{href:(0,B.R)(B.e.memberLogin,{locale:f}),sourceModule:"header",sourceElement:"sign-in","data-testid":"header-sign-in",className:ec,children:[(0,a.jsx)(ed,{"aria-hidden":"true",className:"size-4 shrink-0"}),x("logIn")]})},em=(0,n.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...i},l)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":t,"aria-describedby":n,...i,children:[r?(0,a.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"Settings"}):e?(0,a.jsx)("title",{id:t,children:e}):null,(0,a.jsxs)("g",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:.33,children:[(0,a.jsx)("path",{d:"M13.5 8.38v-.765l.96-.84a1.003 1.003 0 0 0 .19-1.275l-1.18-2a1.004 1.004 0 0 0-1.185-.45l-1.215.41a6 6 0 0 0-.655-.375l-.255-1.26a1 1 0 0 0-1-.805H6.82a1 1 0 0 0-1 .805l-.255 1.26a6 6 0 0 0-.66.375l-1.19-.43a1 1 0 0 0-.32-.03.993.993 0 0 0-.865.5l-1.18 2a1 1 0 0 0 .205 1.255l.945.865v.765l-.945.84A.996.996 0 0 0 1.35 10.5l1.18 2a.99.99 0 0 0 .865.5 1 1 0 0 0 .32-.05l1.215-.41q.314.21.655.375l.255 1.26a1 1 0 0 0 1 .805H9.2a1 1 0 0 0 1-.805l.255-1.26q.342-.165.66-.375l1.21.41a1 1 0 0 0 .32.05 1 1 0 0 0 .865-.5l1.14-2a1 1 0 0 0-.205-1.255zM12.605 12l-1.715-.58c-.402.34-.861.606-1.355.785L9.18 14H6.82l-.355-1.775a4.7 4.7 0 0 1-1.35-.785l-1.72.56-1.18-2 1.36-1.2a4.4 4.4 0 0 1 0-1.565L2.215 6l1.18-2 1.715.58a4.4 4.4 0 0 1 1.355-.785L6.82 2h2.36l.355 1.775c.49.184.947.45 1.35.785l1.72-.56 1.18 2-1.36 1.2a4.5 4.5 0 0 1 0 1.565L13.785 10z"}),(0,a.jsx)("path",{d:"M8 11a3 3 0 0 1-2.772-1.852 2.997 2.997 0 0 1 2.186-4.09A3.002 3.002 0 0 1 11 8a2.96 2.96 0 0 1-.87 2.13A2.96 2.96 0 0 1 8 11Zm0-5a1.96 1.96 0 0 0-1.428.572A1.96 1.96 0 0 0 6 8a1.95 1.95 0 0 0 1.227 1.86c.245.099.508.146.773.14a1.946 1.946 0 0 0 1.86-1.227c.098-.246.146-.508.14-.773a1.96 1.96 0 0 0-1.228-1.86A2 2 0 0 0 8 6Z"})]})]})),eh=n.default.forwardRef((e,t)=>(0,a.jsx)(W.f,{ref:t,icon:em,...e}));eh.displayName="Settings";var ex=e.i(166763),ef=e.i(121301),ep=e.i(367810),eg=e.i(35137);function eb({open:e,onOpenChange:t,locale:r,handleLocaleChange:n}){return(0,a.jsx)(ep.N,{open:e,onOpenChange:t,children:(0,a.jsx)(ep.d,{showCloseButton:!1,"aria-describedby":void 0,overlayClassName:"bg-gray-900/80",className:"h-[min(720px,calc(100dvh-48px))] max-w-[calc(100%-2rem)] overflow-hidden rounded-3xl border-none p-0 shadow-[0_12px_32px_0_rgba(37,36,34,0.3)] sm:max-w-[480px]",children:(0,a.jsx)(eg.f,{locale:r,LOCALE_DATA:ex.e,handleLocaleChange:n,variant:"dialog",onClose:()=>t(!1),renderHeading:e=>(0,a.jsx)(ep.F,{asChild:!0,className:"pt-0 text-start",children:e})})})})}var ev=e.i(524940);function ej(){let e=(0,i.r)("SidebarNavigation"),[r,l]=(0,n.useState)(!1),[s,d]=(0,n.useState)(!1),o=(0,n.useRef)(null),[c,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{u(o.current?.closest('[data-testid="header-utilities"]')??null)},[]);let m=(0,n.useMemo)(()=>({current:c}),[c]),{isImperial:h,isMetric:x,isHybrid:f,locale:p,handleUnitChange:g,handleLocaleChange:b}=(0,ev.g)({onBeforeLocaleNavigate:()=>d(!1)});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Y.V,{open:r,onOpenChange:l,children:[c&&(0,a.jsx)(Y.r,{virtualRef:m}),(0,a.jsx)(Y.J,{asChild:!0,children:(0,a.jsxs)("button",{ref:o,type:"button","data-testid":"header-settings-button",className:(0,t.f)(ec,r&&"bg-black/7"),children:[(0,a.jsx)(eh,{"aria-hidden":"true",className:"size-4 shrink-0"}),e("settings")]})}),(0,a.jsx)(Y.T,{align:"end",sideOffset:6,showArrow:!1,className:"flex w-[380px] flex-col gap-1 rounded-2xl border border-solid border-gray-100 p-3 shadow-[0_12px_32px_0_rgba(37,36,34,0.2)]",children:(0,a.jsx)(ef.f,{isImperial:h,isMetric:x,isHybrid:f,locale:p,LOCALE_DATA:ex.e,handleUnitChange:g,onOpenLocationLanguage:()=>{l(!1),d(!0)},variant:"popover"})})]}),(0,a.jsx)(eb,{open:s,onOpenChange:d,locale:p,handleLocaleChange:b})]})}function ey({elevated:e,hideGoPremiumButton:r}){return(0,a.jsxs)("div",{"data-testid":"header-utilities","data-elevated":e,className:(0,t.f)("hidden items-center gap-2 md:ms-auto md:flex","rounded-full bg-white/66 p-1 backdrop-blur-[16px] backdrop-saturate-[1.8] transition-shadow duration-200",e&&"shadow-[0_2px_8px_0_rgba(0,0,0,0.16)]"),children:[(0,a.jsx)(ej,{}),(0,a.jsx)(eu,{}),!r&&(0,a.jsx)(el,{})]})}function ew(e){return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}var eN=e.i(521231);e.i(609717);var ek=e.i(950771);let eC={src:e.i(10993).default,width:208,height:74,blurWidth:0,blurHeight:0},eA=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:eC.src,cobrandIconWidth:eC.width,cobrandIconHeight:eC.height}];var eS=e.i(37429);let eE=e=>{let{classname:n}=e,i=(0,l.y)(ek.f),{url:s,cobrandIconSrc:d,cobrandIconWidth:o,cobrandIconHeight:c}=eA.find(e=>e.locales.includes(i))||{};return s&&d?(0,a.jsx)("span",{className:"flex",children:(0,a.jsx)(r.default,{href:s,target:"_blank",className:(0,t.f)("relative p-0",n,{"de-DE":"de-DE"===i}),children:(0,a.jsx)(eS.U,{className:"h-6 w-auto max-w-none",src:d,alt:"focus logo",width:o,height:c,rounded:!1})})}):null};var e_=e.i(888932);e.s(["default",0,function({locale:e,subnav:i,mobileOnlySubnav:s,hideLocationPicker:d,hideGoPremiumButton:o}){let c,m=(c=(0,u.f)(),(0,E.usePathname)().includes("/subscribe")&&!c),x=(0,l.y)(h.y),f=(0,l.y)(h.O),p=(0,n.useSyncExternalStore)(ew,()=>window.scrollY>0,()=>!1),g=(0,B.R)(B.e.home,{locale:e}),{ref:b,isOverDark:j}=(0,e_.f)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{className:(0,t.f)("relative top-0",m?"w-full md:fixed md:w-auto":"w-full md:sticky",x||f?"z-overlay":"z-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:justify-start md:gap-4 md:pr-2",children:[!m&&(0,a.jsx)("span",{className:"contents md:hidden",children:(0,a.jsx)(J,{})}),(0,a.jsxs)("div",{ref:b,className:(0,t.f)("flex items-center md:gap-4",d&&"max-md:mr-auto"),children:[(0,a.jsx)(r.default,{href:g,className:"flex items-center","data-testid":"header-logo",children:(0,a.jsx)(eN.default,{className:(0,t.f)("h-10 w-auto transition-colors duration-200 md:h-12",j?"md:text-white":"text-[#003399]")})}),(0,a.jsx)("span",{className:"hidden md:contents",children:(0,a.jsx)(eE,{})})]}),!m&&(0,a.jsxs)(a.Fragment,{children:[!d&&(0,a.jsx)(v,{locale:e,elevated:p}),!s&&(0,a.jsx)("div",{className:"hidden md:contents",children:i}),(0,a.jsx)(ey,{elevated:p,hideGoPremiumButton:o}),(0,a.jsx)(en,{})]})]})})}),!m&&(0,a.jsx)("div",{className:(0,t.f)("z-sticky sticky top-2 mb-6 px-3 md:hidden",x||f?"hidden":"block"),children:i})]})}],778828)}]);