(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,414338,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(730921),a=e.i(683903),i=e.i(877957),l=e.i(367810),s=e.i(901351),o=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(611540);let m=({isUserLoggedIn:e,regime:m,deviceClass:p,experience:f,isPremiumUser:h})=>{let g=(0,a.useTranslations)("PrivacyConsentModal"),x=(0,r.useLocale)(),v=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:x}),[b,y]=(0,n.useState)(!1),[w,S]=(0,n.useState)(!1),[E,j]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||h||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),n=localStorage.getItem("saleOfDataConflict");t?(S(!0),y(!0)):e&&n&&m===c.Regime.USA_CCPA&&(j(!0),y(!0))},[m,h,e]);let A=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},C=t=>{let n=window,r=window.top,a=n.DprSdk||r?.DprSdk;a?(a.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&A({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),w?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):E&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),y(!1)):console.error("Unable to fix conflict, missing DprSdk.")},N="",k="";if(w?(N="gpcConflictHeader",k="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(k+="_usa-ccpa")):E&&(N="saleOfDataConflictHeader",k="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(k+="_usa-ccpa")),k)return(0,t.jsx)(l.Dialog,{open:b,onOpenChange:y,children:(0,t.jsxs)(l.DialogContent,{className:`text-center ${"desktop"!==p?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===f?"wu-theme":""} `,onEscapeKeyDown:e=>{(E||w)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[N&&(0,t.jsx)(l.DialogHeader,{children:(0,t.jsx)(l.DialogTitle,{className:"text-xl font-semibold",children:g(N)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:g.rich(k,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:v,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(l.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(i.Button,{onClick:()=>{C(!0)},variant:"default",className:"w-full sm:w-auto",children:g("optInButtonText")}),(0,t.jsx)(i.Button,{onClick:()=>{C(!1)},variant:"secondary",className:"w-full sm:w-auto",children:g("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModalClient",0,m,"default",0,m])},520362,e=>{"use strict";var t=e.i(699173),n=e.i(592121);let r=e=>{let{apiRoute:t,depth:r,refresh:a,serverURL:i}=e,l=(0,n.useRef)(!1),s=(0,n.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof a?a():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[a,i]);return(0,n.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),l.current||(l.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:i}),a()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[i,s,r,t,a]),null};var a=e.i(961123);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),l={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 n=(0,a.useRouter)();return(0,t.jsx)(r,{...e,refresh:n.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,n.useRef)(null),t=(0,n.useRef)(null),r=(0,n.useRef)(null),a=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{if("u"{let n=t.current,a=e.current;if(!n||!a)return;if(!n.isConnected){t.current=null,a.style.opacity="0",r.current?.disconnect();return}let i=n.getBoundingClientRect();a.style.top=`${i.top+window.scrollY}px`,a.style.left=`${i.left+window.scrollX}px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.opacity="1"},[]),d=(0,n.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),u=(0,n.useCallback)(()=>{t.current&&null===a.current&&(a.current=requestAnimationFrame(()=>{a.current=null,c()}))},[c]),m=(0,n.useCallback)(e=>{if(e===s.current)return;let n=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!n)return void i.debug("No element found for block ID",{blockId:e});let a=(e=>{let t=e,n=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):d())};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!==a.current&&cancelAnimationFrame(a.current),r.current?.disconnect(),e.current?.remove()}},[m,d,u]),null},"LivePreviewListener",0,s],520362)},104777,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(836549),l=e.r(560716),s=e.r(544383)},313983,e=>{"use strict";var t,n=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>n])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let n=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,n],494889);let r=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,r],928083);let a=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,a],624432),e.s([],647872)},567277,e=>{"use strict";var t=e.i(546584),n=e.i(592121),r=e.i(961123);function a(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let n=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let n=e.scriptSrc?e.scriptSrc:a()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),a()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});n&&(r.current=n.setRoute)}},[e.route]),null}function s(e){let a=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,n=(0,r.usePathname)();if(!e)return null;let a=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!a)return n;let l=n;try{let e=Object.entries(a);for(let[t,n]of e)if(!Array.isArray(n)){let e=i(n);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=i(n.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return n}})();return n.default.createElement(l,{route:a,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(s,{...e}))}])},540039,e=>{"use strict";var t,n=e.i(546584),r={scriptHostname:("u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof n.default?"dpl_9Vge8pcfsr24dhqjg1QfohgLnYNS":void 0},a=e.i(592121),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:n}){return(0,a.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let n=document.createElement("script");for(let[a,i]of(n.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,n.setAttribute("data-explicit-opt-in","true"),e.nonce&&n.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))i&&n.setAttribute(a,i);(document.head||document.documentElement).appendChild(n)}}({nonce:n}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},731672,e=>{"use strict";var t=e.i(546446),n=e.i(646341),r=e.i(671525),a=e.i(889753),i=e.i(45846),l=e.i(284007),s=e.i(756227),o=e.i(318849),c=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(a.userPreferencesAtom),d=(0,s.useResetAuthState)(),{refresh:u}=(0,r.usePageNavigation)();return async()=>{try{return(0,c.regenerateMetricsSession)(),await i.upsxClient.auth.logout(),d(),e(l.RESET),(0,n.deleteCookie)("twc-user",{domain:".weather.com"}),(0,o.disableSwrPersist)(),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},778828,e=>{"use strict";var t=e.i(699173),n=e.i(632137),r=e.i(240058),a=e.i(592121),i=e.i(683903),l=e.i(546446),s=e.i(877957),o=e.i(616448),c=e.i(526456),d=e.i(527207),u=e.i(498076);let m=({animationStrings:e})=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("span",{"data-nosnippet":!0,className:(0,n.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var p=e.i(436066);e.i(24959);var f=e.i(686557),h=e.i(64412),g=e.i(262453),x=e.i(214008);let v="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 y=(0,i.useTranslations)("Header"),w=(0,u.useIsMobile)(),S=(0,a.useRef)(null),E=(0,g.usePreciseGeocode)(),{location:j}=(0,h.useLocation)(),{location:A}=(0,h.useLocation)("geolocation"),C=j?.name||j?.city||j?.displayName,N=(0,x.isSameLocation)(j,A),[k,R]=(0,l.useAtom)(p.locationPickerOpenAtom),_=(0,a.useCallback)(()=>{R(!k)},[R,k]);return(0,a.useEffect)(()=>{if(!k||w)return;let e=e=>{S.current&&!S.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[k,w,R]),(0,a.useEffect)(()=>{if(!k)return;let e=e=>{"Escape"===e.key&&R(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[k,R]),(0,t.jsxs)("div",{ref:S,className:(0,n.cn)("relative max-md:mr-auto",r),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:_,"aria-expanded":k,"aria-haspopup":"dialog","aria-label":C??y("searchPlaceholderText"),"data-state":k?"open":"closed","data-testid":"location-picker-trigger",className:(0,n.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",v),children:[N&&E?(0,t.jsx)(c.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):N&&!E?(0,t.jsx)(o.CurrentLocation,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):null,(0,t.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:C||(0,t.jsx)(m,{animationStrings:["Location"]})}),(0,t.jsx)(d.ChevronUp,{className:(0,n.cn)("size-3 shrink-0 text-white transition-transform duration-150",!k&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,t.jsx)("div",{className:(0,n.cn)(!w&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(f.Search,{locale:e,open:k,onOpenChange:R})})]})}var y=e.i(559421),w=e.i(528600),S=e.i(731672),E=e.i(792461),j=e.i(190344),A=e.i(296990),C=e.i(674885),N=e.i(336726),k=e.i(961123),R=e.i(357508);e.i(609717);var _=e.i(950771);e.i(647872);var L=e.i(928083),U=e.i(598513),I=e.i(993269),P=e.i(859827),T=e.i(449172),O=e.i(316810);let B=({url:e,action:a,name:i,isNew:l,isExternal:s,isInGroup:o,onClick:c,sourceModule:d,sourceElement:u,modulePosition:m})=>{if(!e&&!a)return null;let p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[i,l&&(0,t.jsx)(O.default,{})]}),s&&(0,t.jsx)(T.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),f=(0,n.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)(r.default,{href:e,className:f,target:s?"_blank":void 0,onClick:c,sourceModule:d,sourceElement:u,"data-module-key":m,children:p}):(0,t.jsx)("button",{onClick:a,className:(0,n.cn)(f,"cursor-pointer"),children:p})},i)},D=({isExpanded:e,toggleCategory:r,name:a,links:i,isNew:l})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsx)("h2",{className:"contents",children:(0,t.jsxs)("button",{type:"button",onClick:r,"aria-expanded":!!e,"aria-label":`Toggle ${a} category`,className:(0,n.cn)("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,t.jsxs)("span",{className:"relative flex items-center",children:[(0,t.jsx)("span",{className:"text-gray-900 md:font-bold",children:a}),l&&(0,t.jsx)(O.default,{})]}),(0,t.jsx)("span",{"aria-hidden":"true",children:e?(0,t.jsx)(I.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(P.Plus,{size:"md",className:"text-black"})})]})}),(0,t.jsx)("ul",{className:(0,n.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:i.map(e=>(0,t.jsx)(B,{...e,isInGroup:!0},e.name))})]},a);var H=e.i(611540),M=e.i(304116),F=e.i(269153);let z=[{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"}],V={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},$=(0,a.forwardRef)((e,r)=>{let[o,c]=(0,l.useAtom)(p.settingsMenuOpenAtom),m=(0,l.useAtomValue)(C.isImperialUnitsAtom),f=(0,k.useParams)(),g=(f?.locale||"en-US").split("-")[1],{location:x}=(0,h.useLocation)(),v=(0,y.useCanonicalBasePath)(),{user:{isUserLoggedIn:b}}=(0,w.useUser)(),I=(0,S.useUserLogout)(),P=(0,E.useRefMemo)(I),T=x?.placeId||"",O=x?.featureId,B=x?.canonicalID,$=(0,F.useIsSamsungPartner)(),K=(0,l.useAtomValue)(_.pageLocaleAtom),G=(0,l.useAtomValue)(L.activityHubMenuEnabledAtom),Y=(0,u.useIsMobile)(),q=(0,U.useSendInteractionEvent)(),X=(0,i.useTranslations)("SidebarNavigation"),W=(0,i.useTranslations)("ActivityHubDriver"),Q=(0,i.useTranslations)("UserRegistration"),J=(0,j.useVideoNavUrl)(),[Z,ee]=(0,a.useState)({}),et=(0,a.useCallback)(e=>(0,M.buildLocationPageHref)({pageType:e,locale:K,canonicalBasePath:v,canonicalID:B,featureId:O,placeId:T,skipCanonical:$}),[K,v,B,O,T,$]),en=(0,a.useMemo)(()=>[{name:X("weatherForecasts"),links:[{name:X("today"),url:et("today")},{name:X("hourly"),url:et("hourbyhour")},{name:X("tenday"),url:et("tenday")}]},{name:X("radarAndMaps"),links:[{name:X("interactiveRadarMap"),url:`${(0,H.interpolateUrl)(H.URLS.interactiveMap,{locale:K,locId:T})}?animation=true`},..."en-US"===K?[{name:"US Forecast",url:H.URLS.usForecast},{name:"US Satellite & Radar",url:H.URLS.usSatAndRadar},{name:"World Satellite",url:H.URLS.worldSatellite},{name:"US Severe Alerts",url:H.URLS.usSevereAlerts},{name:"US Health",url:H.URLS.usHealth}]:[]]},..."en-US"===K?[{name:"News",links:[{name:X("topStories"),url:H.URLS.news},{name:X("hurricaneCentral"),url:"/storms/hurricane-central"},{name:X("tornadoCentral"),url:"/storms/tornado-central"},{name:X("safetyAndPrep"),url:"/safety/index"},{name:X("spaceAndSkywatching"),url:H.URLS.spaceSkywatching},...J?[{name:X("video"),url:J}]:[]]}]:J?[{name:X("video"),links:[{name:X("topStories"),url:J}]}]:[],..."en-US"===K&&G&&Y?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:z.map(({titleKey:e,urlKey:t},n)=>{let r=V[e],a=String(n);return{name:W(e),url:(0,H.interpolateUrl)(H.URLS[t],{locale:K,locId:T}),onClick:()=>q({interactionType:"click",interactionElement:r,moduleId:"hamburger-menu",modulePosition:a,destinationPageId:r},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:r,modulePosition:a}})}]:[],{name:X("productAccount"),links:[..."en-US"===K?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...b?[{name:Q("manageAccount"),url:(0,H.interpolateUrl)(H.URLS.memberSettings,{locale:K})},{name:Q("logOut"),action:P.current}]:[{name:Q("createAnAccount"),url:(0,H.interpolateUrl)(H.URLS.memberSignup,{locale:K})},{name:Q("logIn"),url:(0,H.interpolateUrl)(H.URLS.memberLogin,{locale:K})}]]},{name:X("lifestyle"),links:[..."en-US"===K?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:X("recipes"),url:"/home-garden/recipes"},{name:X("homeAndGarden"),url:H.URLS.homeGarden},{name:X("travelAndOutdoors"),url:H.URLS.travel},{name:X("petsAndAnimals"),url:H.URLS.pets},{name:"Health",url:"/health"}]:[],{name:X("allergyTracker"),url:et("allergy")},{name:X("airQualityIndex"),url:et("air-quality")},{name:X("coldAndFluTracker"),url:et("cold-flu")},..."en-US"===K?[{name:X("skinHealth"),url:H.URLS.skinHealth}]:[]]}],[b,P,T,K,et,J,G,Y,q]);return(0,t.jsxs)("nav",{ref:r,className:(0,n.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,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:()=>c(e=>!e),children:[(0,t.jsx)(A.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:g}),(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:m?"°F":"°C"}),o?(0,t.jsx)(d.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(N.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(R.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:en.map(e=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:(0,t.jsx)(D,{isExpanded:Z[e.name],toggleCategory:()=>{var t;e.analyticsElement&&!Z[e.name]&&q({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),t=e.name,ee(e=>({...e,[t]:!e[t]}))},...e})},e.name))})]})});$.displayName="Navigation";var K=e.i(226602),G=e.i(747961);let Y=(0,a.forwardRef)(({title:e,titleId:n,desc:r,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":n,"aria-describedby":a,...i,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Hamburger"}):e?(0,t.jsx)("title",{id:n,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"})]})),q=a.default.forwardRef((e,n)=>(0,t.jsx)(G.BaseIcon,{ref:n,icon:Y,...e}));function X(){let[e,n]=(0,l.useAtom)(p.menuOpenAtom),r=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,a.useEffect)(()=>{function t(t){e&&r.current&&i.current&&!r.current.contains(t.target)&&!i.current.contains(t.target)&&n(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,n]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.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:()=>n(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(K.Close,{}):(0,t.jsx)(q,{})}),e&&(0,t.jsx)($,{ref:i})]})}q.displayName="Hamburger";var W=e.i(368847),Q=e.i(809058),J=e.i(837879),Z=e.i(730921),ee=e.i(864723),et=e.i(537989);let en=()=>{let e=(0,l.useAtomValue)(et.pageIdAtom);return(0,a.useCallback)(t=>{let n=`${e}_${t}`;(0,ee.setCookie)("fromStr",n,{path:"/",domain:".weather.com"})},[e])};var er=e.i(683199);function ea(){let{user:e,userProfile:n}=(0,w.useUser)(),l=(0,S.useUserLogout)(),{isUserLoggedIn:o,isUserPremium:c}=e,[d,u]=(0,a.useState)(!1),m=(0,J.useSubscriptionsEnabled)(),p=(0,i.useTranslations)("UserRegistration"),f=(0,Z.useLocale)(),h=en(),g=(0,er.usePremiumSource)(),x="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:o?(0,t.jsxs)(Q.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:d,onOpenChange:u,children:[(0,t.jsx)(Q.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":d,className:x,"data-testid":"header-profile-button",children:n?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(Q.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{href:(0,H.interpolateUrl)(H.URLS.memberSettings,{locale:f}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:x,children:n?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(W.default,{variant:"Body.S",children:n?.firstName}),(0,t.jsx)(W.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:p("manageAccount")})]})]})}),!c&&m&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(W.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(W.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(r.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{h("user_flyout_go_premium"),g({sourceModule:"top-menu",sourceElement:"get-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:l,"data-testid":"header-profile-signout",children:p("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,H.interpolateUrl)(H.URLS.memberLogin,{locale:f}),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:p("logIn")})})})}var ei=e.i(995113);function el(){let{user:e}=(0,w.useUser)(),{isUserPremium:a}=e,i=(0,J.useSubscriptionsEnabled)(),l=en(),s=(0,er.usePremiumSource)();return a||!i?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)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,n.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:()=>{l("header_go_premium"),s({sourceModule:"top-menu",sourceElement:"get-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 es=e.i(458645);e.s(["default",0,function({locale:e,subnav:a,hideHeaderOnDesktop:i,hideLocationPicker:s,hideGoPremiumButton:o}){let c,d=(0,u.useIsMobile)(),m=(c=(0,u.useIsMobile)(),(0,k.usePathname)().includes("/subscribe")&&!c||i&&!d),f=(0,l.useAtomValue)(p.menuOpenAtom),h=(0,l.useAtomValue)(p.locationPickerOpenAtom),g=(0,H.interpolateUrl)(H.URLS.home,{locale:e});return m?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:(0,n.cn)("relative top-0 w-full md:sticky",f||h?"z-overlay":"z-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)(X,{})}),(0,t.jsx)("div",{className:(0,n.cn)("flex items-center md:hidden",s&&"max-md:mr-auto"),children:(0,t.jsx)(r.default,{href:g,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(es.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!s&&(0,t.jsx)(b,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:a}),!o&&(0,t.jsx)(el,{}),(0,t.jsx)(ea,{})]})})}),(0,t.jsx)("div",{className:(0,n.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",f||h?"hidden":"block"),children:a})]})}],778828)},556441,e=>{"use strict";var t=e.i(699173),n=e.i(961123),r=e.i(240058),a=e.i(877957),i=e.i(368847),l=e.i(132084),s=e.i(528600),o=e.i(837879),c=e.i(498076),d=e.i(37429),u=e.i(683199);e.s(["default",0,()=>{let e=(0,n.useSearchParams)(),m=e.get("par")||e.get("partner"),p=(0,c.useIsMobile)(),f=(0,o.useSubscriptionsEnabled)(),{user:h}=(0,s.useUser)(),{isUserPremium:g}=h,x=(0,u.usePremiumSource)();return m===l.Partner.TIKTOK&&p&&f&&!g?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(d.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)(i.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.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,t.jsx)(a.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(r.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>x({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])}]);