(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,731672,e=>{"use strict";var a=e.i(546446),l=e.i(530102),r=e.i(671525),i=e.i(889753),t=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)(i.userPreferencesAtom),c=(0,n.useResetAuthState)(),{refresh:u}=(0,r.usePageNavigation)();return async()=>{try{return(0,o.regenerateMetricsSession)(),await t.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),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="SkincareBold",e.s(["SkincareBold",0,t])},800177,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,t])},113016,312401,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="VideoPlayerBold",e.s(["VideoPlayerBold",0,t],113016);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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)(r.BaseIcon,{ref:l,icon:s,...e}));n.displayName="VideoPlayerBoldFilled",e.s(["VideoPlayerBoldFilled",0,n],312401)},524574,248730,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Home"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm-4 6h4v-4H5zM19 3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM5 9h14V5H5zM19 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm-4 6h4v-4h-4z",clipRule:"evenodd"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="HomeBold",e.s(["HomeBold",0,t],524574);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,a.jsx)("title",{id:l,children:"Home"}):e?(0,a.jsx)("title",{id:l,children:e}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zM19 3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM19 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2z",clipRule:"evenodd"})]})),n=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:s,...e}));n.displayName="HomeBoldFilled",e.s(["HomeBoldFilled",0,n],248730)},807215,876329,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="RadarBold",e.s(["RadarBold",0,t],807215);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),n=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:s,...e}));n.displayName="RadarBoldFilled",e.s(["RadarBoldFilled",0,n],876329)},702957,489408,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="PartlyCloudyBold",e.s(["PartlyCloudyBold",0,t],702957);let s=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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)(r.BaseIcon,{ref:l,icon:s,...e}));n.displayName="PartlyCloudyBoldFilled",e.s(["PartlyCloudyBoldFilled",0,n],489408)},995113,e=>{"use strict";var a=e.i(699173),l=e.i(592121),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),t=l.default.forwardRef((e,l)=>(0,a.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));t.displayName="LightningFilled",e.s(["LightningFilled",0,t])},778828,e=>{"use strict";var a=e.i(699173),l=e.i(632137),r=e.i(240058),i=e.i(592121),t=e.i(51390),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:r}){let j=(0,t.useTranslations)("Header"),w=(0,u.useIsMobile)(),y=(0,i.useRef)(null),R=(0,p.usePreciseGeocode)(),{location:N}=(0,f.useLocation)(),{location:S}=(0,f.useLocation)("geolocation"),k=N?.name||N?.city||N?.displayName,C=(0,v.isSameLocation)(N,S),[A,B]=(0,s.useAtom)(x.locationPickerOpenAtom),U=(0,i.useCallback)(()=>{B(!A)},[B,A]);return(0,i.useEffect)(()=>{if(!A||w)return;let e=e=>{y.current&&!y.current.contains(e.target)&&B(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A,w,B]),(0,i.useEffect)(()=>{if(!A)return;let e=e=>{"Escape"===e.key&&B(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[A,B]),(0,a.jsxs)("div",{ref:y,className:(0,l.cn)("relative max-md:mr-auto",r),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:U,"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&&R?(0,a.jsx)(o.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):C&&!R?(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:B})})]})}var j=e.i(559421),w=e.i(528600),y=e.i(731672),R=e.i(792461),N=e.i(190344),S=e.i(296990),k=e.i(674885),C=e.i(336726),A=e.i(961123),B=e.i(357508);e.i(609717);var U=e.i(950771);e.i(647872);var L=e.i(494889),M=e.i(449172),z=e.i(316810);let P=({url:e,action:i,name:t,isNew:s,isExternal:n,isInGroup:d})=>{if(!e&&!i)return null;let o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"relative flex items-center",children:[t,s&&(0,a.jsx)(z.default,{})]}),n&&(0,a.jsx)(M.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)(r.default,{href:e,className:c,target:n?"_blank":void 0,children:o}):(0,a.jsx)("button",{onClick:i,className:(0,l.cn)(c,"cursor-pointer"),children:o})},t)};var H=e.i(993269),I=e.i(859827);let E=({isExpanded:e,toggleCategory:r,name:i,links:t})=>(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:r,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:i}),(0,a.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,a.jsx)(H.Minus,{size:"md",className:"text-black"}):(0,a.jsx)(I.Plus,{size:"md",className:"text-black"})})]}),(0,a.jsx)("ul",{className:(0,l.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:t.map(e=>(0,a.jsx)(P,{...e,isInGroup:!0},e.name))})]},i);var _=e.i(611540),F=e.i(304116),T=e.i(269153);let V=(0,i.forwardRef)((e,r)=>{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)(),M=(0,R.useRefMemo)(b),z=p?.placeId||"",H=p?.featureId,I=p?.canonicalID,V=(0,T.useIsSamsungPartner)(),O=(0,s.useAtomValue)(U.pageLocaleAtom),D=(0,s.useAtomValue)(L.newsHubEnabledAtom),G=(0,t.useTranslations)("SidebarNavigation"),q=(0,t.useTranslations)("UserRegistration"),Q=(0,N.useVideoNavUrl)(),[W,$]=(0,i.useState)({}),K=(0,i.useCallback)(e=>(0,F.buildLocationPageHref)({pageType:e,locale:O,canonicalBasePath:v,canonicalID:I,featureId:H,placeId:z,skipCanonical:V}),[O,v,I,H,z,V]),Y=(0,i.useMemo)(()=>[{name:G("weatherForecasts"),links:[{name:G("today"),url:K("today")},{name:G("hourly"),url:K("hourbyhour")},{name:G("tenday"),url:K("tenday")}]},{name:G("radarAndMaps"),links:[{name:G("interactiveRadarMap"),url:`${(0,_.interpolateUrl)(_.URLS.interactiveMap,{locale:O,locId:z})}?animation=true`},..."en-US"===O?[{name:"US Forecast",url:_.URLS.usForecast},{name:"US Satellite & Radar",url:_.URLS.usSatAndRadar},{name:"World Satellite",url:_.URLS.worldSatellite},{name:"US Severe Alerts",url:_.URLS.usSevereAlerts},{name:"US Health",url:_.URLS.usHealth}]:[]]},..."en-US"===O?[{name:G("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:G("hurricaneCentral"),url:"/storms/hurricane-central"},{name:G("tornadoCentral"),url:"/storms/tornado-central"},{name:G("safetyAndPrep"),url:"/safety/index"},{name:G("spaceAndSkywatching"),url:_.URLS.spaceSkywatching},...Q?[{name:G("video"),url:Q}]:[]]}]:Q?[{name:G("video"),links:[{name:G("topStories"),url:Q}]}]:[],{name:G("productAccount"),links:[..."en-US"===O?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...g?[{name:q("manageAccount"),url:(0,_.interpolateUrl)(_.URLS.memberSettings,{locale:O})},{name:q("logOut"),action:M.current}]:[{name:q("createAnAccount"),url:(0,_.interpolateUrl)(_.URLS.memberSignup,{locale:O})},{name:q("logIn"),url:(0,_.interpolateUrl)(_.URLS.memberLogin,{locale:O})}]]},{name:G("lifestyle"),links:[..."en-US"===O?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:G("recipes"),url:"/home-garden/recipes"},{name:G("homeAndGarden"),url:_.URLS.homeGarden},{name:G("travelAndOutdoors"),url:_.URLS.travel},{name:G("petsAndAnimals"),url:_.URLS.pets},{name:"Health",url:"/health"}]:[],{name:G("allergyTracker"),url:K("allergy")},{name:G("airQualityIndex"),url:K("air-quality")},{name:G("coldAndFluTracker"),url:K("cold-flu")},..."en-US"===O?[{name:G("skinHealth"),url:_.URLS.skinHealth}]:[]]},..."en-US"===O?[...D?[{name:"News",url:_.URLS.news}]:[],{name:"Explore",url:"/explore"}]:[]],[g,M,z,O,K,Q,D]);return(0,a.jsxs)("nav",{ref:r,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)(S.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)(B.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:Y.map((e,l)=>(0,a.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,a.jsx)(E,{isExpanded:W[e.name],toggleCategory:()=>{var a;return a=e.name,void $(e=>({...e,[a]:!e[a]}))},...e}):(0,a.jsx)(P,{...e})},l))})]})});V.displayName="Navigation";var O=e.i(226602),D=e.i(747961);let G=(0,i.forwardRef)(({title:e,titleId:l,desc:r,descId:i,...t},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":i,...t,children:[r?(0,a.jsx)("desc",{id:i,children:r}):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"})]})),q=i.default.forwardRef((e,l)=>(0,a.jsx)(D.BaseIcon,{ref:l,icon:G,...e}));function Q(){let[e,l]=(0,s.useAtom)(x.menuOpenAtom),r=(0,i.useRef)(null),t=(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 a(a){e&&r.current&&t.current&&!r.current.contains(a.target)&&!t.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: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:()=>l(!e),"data-testid":"header-menu-button",children:e?(0,a.jsx)(O.Close,{}):(0,a.jsx)(q,{})}),e&&(0,a.jsx)(V,{ref:t})]})}q.displayName="Hamburger";var W=e.i(368847),$=e.i(809058),K=e.i(837879),Y=e.i(730921),J=e.i(858040),X=e.i(537989);let Z=()=>{let e=(0,s.useAtomValue)(X.pageIdAtom);return(0,i.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,i.useState)(!1),m=(0,K.useSubscriptionsEnabled)(),x=(0,t.useTranslations)("UserRegistration"),h=(0,Y.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)($.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:u,children:[(0,a.jsx)($.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)($.PopoverContent,{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,_.interpolateUrl)(_.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)(W.default,{variant:"Body.S",children:l?.firstName}),(0,a.jsx)(W.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)(W.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,a.jsx)(W.default,{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)(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)(r.default,{href:(0,_.interpolateUrl)(_.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 er(){let{user:e}=(0,w.useUser)(),{isUserPremium:i}=e,t=(0,K.useSubscriptionsEnabled)(),s=Z(),n=(0,ee.usePremiumSource)();return i||!t?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)(r.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 ei=e.i(458645);e.s(["default",0,function({locale:e,subnav:i,hideHeaderOnDesktop:t,hideLocationPicker:n,hideGoPremiumButton:d}){let o,c=(0,u.useIsMobile)(),m=(o=(0,u.useIsMobile)(),(0,A.usePathname)().includes("/subscribe")&&!o||t&&!c),h=(0,s.useAtomValue)(x.menuOpenAtom),f=(0,s.useAtomValue)(x.locationPickerOpenAtom),p=(0,_.interpolateUrl)(_.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)(Q,{})}),(0,a.jsx)("div",{className:(0,l.cn)("flex items-center md:hidden",n&&"max-md:mr-auto"),children:(0,a.jsx)(r.default,{href:p,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,a.jsx)(ei.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!n&&(0,a.jsx)(b,{locale:e}),(0,a.jsx)("div",{className:"hidden md:contents",children:i}),!d&&(0,a.jsx)(er,{}),(0,a.jsx)(ea,{})]})})}),(0,a.jsx)("div",{className:(0,l.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",h||f?"hidden":"block"),children:i})]})}],778828)}]);