(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},834005,e=>{e.q("/_next/static/media/dlpg-you.0o6zs2s1qinws.png")},677997,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":l,...s,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"lightning"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),s=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:l,...e}));s.displayName="Lightning",e.s(["Lightning",0,s])},738426,e=>{"use strict";var t=e.i(592121),a=e.i(598513);let i={"my-plans":"my-plans-web-to-app-install","24-hour-radar":"radar-24hour-web-to-app-install","floating-button":"floating-button-web-to-app-install"},l={"my-plans":{"get-the-app":"Get the app","learn-more":"Learn more"},"24-hour-radar":{"get-the-app":"Get the app","learn-more":"Learn more"},"floating-button":{"get-the-app":"Get the App"}};e.s(["useTrackInstallPromptClick",0,function(e){let s=(0,a.useSendInteractionEvent)();return(0,t.useCallback)(t=>{s({moduleId:i[e],interactionType:"click",interactionElement:l[e][t]},{flushImmediately:!0})},[s,e])}])},429745,e=>{"use strict";var t=e.i(699173),a=e.i(367810),i=e.i(226602),l=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:s,title:n,headline:r,description:o,imageUrl:c,imageAlt:d="",imageContent:u,getAppHref:m,getAppLabel:p="Get the app",onGetAppClick:h,learnMoreHref:x,learnMoreLabel:f="Learn more",onLearnMoreClick:g,closeLabel:b="Close",onCloseClick:v})=>(0,t.jsx)(a.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(a.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,className:(0,l.cn)("flex flex-col gap-12 overflow-y-auto border-0 border-b border-black/10 bg-white p-6","pb-[calc(1.5rem+env(safe-area-inset-bottom))]","fixed inset-x-0 top-auto bottom-0 max-h-[90dvh] w-full max-w-none translate-x-0 translate-y-0 sm:max-w-none","rounded-t-3xl rounded-b-none","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[(0,t.jsx)(a.DialogClose,{"aria-label":b,onClick:v,className:"absolute top-4 left-4 z-10 flex size-8 cursor-pointer items-center justify-center rounded-2xl bg-[#f5f5f5] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(i.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),n?(0,t.jsx)(a.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:n}):(0,t.jsx)(a.DialogTitle,{className:"sr-only",children:r}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[u||(c?(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsx)("img",{src:c,alt:d,className:"size-full rounded-lg object-cover"})}):null),(0,t.jsxs)("div",{className:"flex flex-col gap-2 px-4 text-center",children:[(0,t.jsx)("p",{className:"text-2xl font-extrabold text-[#252422]",children:r}),(0,t.jsx)("p",{className:"text-base font-medium text-[#676767]",children:o})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("a",{href:m,onClick:h,className:"flex h-12 w-full items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:p}),x&&(0,t.jsx)("a",{href:x,onClick:g,className:"flex h-12 w-full items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:f})]})]})})])},726812,16730,e=>{"use strict";let t="com.weather.Weather",a="id295646461",i="https://app.appsflyer.com",l="weather.com",s=`https://apps.apple.com/us/app/the-weather-channel/${a}`,n=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,l,"APPSFLYER_HOST",0,i,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,s,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,a,"PLAY_STORE_URL",0,n],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:s,currentUrl:n,allowAppsFlyer:r,deepLinkValue:o}){if(!r||!s||null===e)return"";let c="android"===e?t:a,d=encodeURIComponent(s.replace(/ /g,"_")),u=`${i}/${c}?pid=WWW&af_adset=${d}&c=${l}`;return o&&(u+=`&deep_link_value=${encodeURIComponent(o)}`),"ios"===e&&n&&(u+=`&af_ios_fallback=${encodeURIComponent(n)}`),u}],16730)},881282,e=>{"use strict";e.s(["getPlatform",0,function(e){return/iPhone|iPod|iPad/.test(e)?"ios":/Android/.test(e)?"android":null}])},677691,e=>{"use strict";var t=e.i(592121),a=e.i(726812),i=e.i(16730),l=e.i(881282);e.s(["useAppInstallLink",0,function(e,s){let[n,r]=(0,t.useState)(null),[o,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(!1);(0,t.useEffect)(()=>{r((0,l.getPlatform)(navigator.userAgent)),c(window.location.href),u(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)},[]);let m=(0,i.getAppsFlyerLink)({platform:n,trackAdset:e,currentUrl:o,allowAppsFlyer:d,deepLinkValue:s}),p="android"===n?a.PLAY_STORE_URL:a.APP_STORE_URL;return{href:m||p,platform:n}}])},468104,269186,328166,e=>{"use strict";var t=e.i(592121),a=e.i(598513);e.s(["useTrackModuleClick",0,function(){let e=(0,a.useSendInteractionEvent)();return(0,t.useCallback)((t,a)=>{e({moduleId:t,interactionType:"click",interactionElement:a},{flushImmediately:!0})},[e])}],468104);var i=e.i(699173);e.s(["Card",0,function({src:e,alt:t,top:a,left:l,width:s}){return(0,i.jsx)("img",{src:e,alt:t,className:"absolute rounded-xl",style:{top:a,left:l,width:s}})},"CompositeFrame",0,function({left:e,top:t,width:a,height:l,children:s}){return(0,i.jsx)("div",{className:"absolute",style:{left:e,top:t,width:a,height:l},children:s})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:a,color:l,cx:s,cy:n,rx:r,ry:o}){let c=(0,t.useId)();return(0,i.jsxs)("svg",{"aria-hidden":"true",className:"absolute inset-0 size-full",viewBox:`0 0 ${e} ${a}`,preserveAspectRatio:"none",children:[(0,i.jsx)("g",{opacity:.32,filter:`url(#${c})`,children:(0,i.jsx)("ellipse",{cx:s,cy:n,rx:r,ry:o,fill:l})}),(0,i.jsx)("defs",{children:(0,i.jsxs)("filter",{id:c,x:"0",y:"0",width:e,height:a,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:40})]})})]})}],269186);let l={src:e.i(834005).default,width:516,height:380,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAoklEQVR42h3Lyw6CMBRF0f7/ZzFxZEKiMYKiJjz6oAVuW4Fc0WPDYM/WFodTl12LG5flnavHk4eRePKRpe75WNhMnCubN02Dtm33jDEg7+GGAZfXmAtlXKjrGl3XQimFdV2xzDMiTQm+gxgnYqcV4mAxx4CQbu8MFl1jpYkFJTBqCW86UEJSSoQEtkj4MLMIYaa+t9xbx9rYPR8ib1/wwj/6A1qGsw/Ra/bcAAAAAElFTkSuQmCC"};e.s(["default",0,l],328166)},432124,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(240058),l=e.i(64412),s=e.i(677997),n=e.i(995113),r=e.i(702957),o=e.i(489408),c=e.i(113016),d=e.i(312401),u=e.i(807215),m=e.i(876329),p=e.i(160937),h=e.i(64344),x=e.i(51398),f=e.i(240027),g=e.i(632137),b=e.i(546446);e.i(609717);var v=e.i(950771),y=e.i(537989);e.i(647872);var j=e.i(494889),w=e.i(611540),k=e.i(738426),N=e.i(468104),S=e.i(18358),A=e.i(381477),C=e.i(190344),L=e.i(427977),U=e.i(961123),R=e.i(559421),P=e.i(388706),I=e.i(498076),E=e.i(683903),_=e.i(304116),M=e.i(379276),B=e.i(269153),T=e.i(528600),F=e.i(837879),D=e.i(683199),H=e.i(677691),z=e.i(429745),O=e.i(269186),G=e.i(328166),K=e.i(226602),$=e.i(697380),W=e.i(512134),V=e.i(521350),Y=e.i(358273);let q="wx-next/get-app-button:dismissed-session",Q=["/hourbyhour","/radar","/download-app"];function X(){let e=(0,I.useIsMobile)(),i=(0,U.usePathname)(),l=(0,b.useAtomValue)($.fixedBottomAdHeightAtom),{isDismissed:s,dismiss:n}=function(){let e=(0,W.useIsClient)(),[t,i]=(0,a.useState)(!1);return{isDismissed:!e||t||function(){let e=function(){if(!(0,V.isLocalStorageAvailable)())return null;try{return localStorage.getItem(q)}catch{return null}}();if(!e)return!1;let t=(0,Y.getMetricsSession)()?.sessionId;return!!t&&t===e}(),dismiss:(0,a.useCallback)(()=>{let e=(0,Y.getMetricsSession)()?.sessionId;if(e&&(0,V.isLocalStorageAvailable)())try{localStorage.setItem(q,e)}catch{}i(!0)},[])}}(),{href:r}=(0,H.useAppInstallLink)("floating-button","floating-button"),o=(0,k.useTrackInstallPromptClick)("floating-button"),c=(0,N.useTrackModuleClick)();if(!e||s||Q.some(e=>i.includes(e)))return null;let d=`calc(3.5rem + ${l}px + 0.75rem)`;return(0,t.jsx)("div",{className:"z-sticky fixed left-1/2 -translate-x-1/2 md:hidden",style:{bottom:d},"data-testid":"get-app-button","data-component":"get-app-button",children:(0,t.jsxs)("div",{style:{background:"linear-gradient(to right, #204794, #007094)"},className:"group relative flex h-10 items-center overflow-hidden rounded-full shadow-lg",children:[(0,t.jsx)("a",{href:r,onClick:()=>o("get-the-app"),className:"relative z-2 flex h-full items-center gap-2 pr-2 pl-4 font-semibold text-white no-underline focus:outline-none",children:(0,t.jsx)("span",{className:"text-sm whitespace-nowrap",children:"Get the App"})}),(0,t.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>{c("floating-get-the-app-button","dismiss"),n()},className:"relative z-2 flex h-full items-center pr-4 pl-1 text-white focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(K.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e,K=(0,I.useIsMobile)(),$=(0,U.usePathname)(),W=(0,R.useCanonicalBasePath)(),[V,Y]=(0,a.useState)(!1),{href:q}=(0,H.useAppInstallLink)("my-plans","my-plans"),Q=(0,k.useTrackInstallPromptClick)("my-plans"),J=(e=(0,S.useTrackEvent)(),(0,a.useCallback)(()=>{e("myPlansDriver")},[e])),Z=(0,N.useTrackModuleClick)(),ee=(0,B.useIsSamsungPartner)(),et=(0,b.useAtomValue)(y.pageIdAtom),ea=(0,E.useTranslations)("SidebarNavigation"),{user:ei}=(0,T.useUser)(),{isUserPremium:el}=ei,es=(0,F.useSubscriptionsEnabled)(),en=(0,D.usePremiumSource)(),{location:er,isLoading:eo}=(0,l.useLocation)(),ec=(0,b.useAtomValue)(v.pageLocaleAtom),ed=(0,b.useAtomValue)(j.newsHubEnabledAtom),eu=(0,C.useVideoNavUrl)(),{data:em}=(0,A.default)(["navigation/getQuickNav",ec],()=>(0,L.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),ep=(0,a.useMemo)(()=>{if(eo||!er)return[];let e=er.placeId||"",a=er.featureId,i=er.canonicalID,l=(0,_.buildLocationPageHref)({pageType:"today",locale:ec,canonicalID:i,featureId:a,placeId:e,canonicalBasePath:W,skipCanonical:ee}),g=(0,_.buildLocationPageHref)({pageType:"radar",locale:ec,canonicalID:i,featureId:a,placeId:e,canonicalBasePath:W,skipCanonical:ee}),b=W?(0,P.navTypeForSuffix)($.split("/").pop()):null,v="en-US"===ec?"/":`/${ec}`,y=$===v||"/"!==v&&$===`${v}/`||(W?"forecast"===b:$.includes("/weather/today/")||$.includes("/weather/hourbyhour/")||$.includes("/weather/tenday/")||$.includes("/weather/monthly/")||$.includes("/forecast/allergy/")||$.includes("/forecast/air-quality/")||$.includes("/forecast/cold-flu/")),j=W?"radar"===b:$.includes("/weather/radar/")||$.includes("/weather/maps/"),k=$.includes("/subscribe"),N="video"===et,S=$===w.URLS.news||$.startsWith(`${w.URLS.news}/`)||M.NEWS_PAGE_IDS.includes(et??""),A="en-US"===ec&&ed,C=em?.videoLinkLocaleInclude?.["en-US"],L=C?.override?`?${C?.adRef}`:"",U=eu?`${eu}${L}`:"",R="h-6 w-6 text-inherit";return[{name:ea("forecast"),href:l,icon:(0,t.jsx)(r.PartlyCloudyBold,{className:R}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:R}),isActive:y},...A?[{name:"News",href:w.URLS.news,icon:(0,t.jsx)(x.News,{className:R}),activeIcon:(0,t.jsx)(f.NewsFilled,{className:R}),isActive:S}]:eu?[{name:ea("video"),href:U,icon:(0,t.jsx)(c.VideoPlayerBold,{className:R}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:R}),isActive:N}]:[],..."en-US"!==ec||ee?[]:[{name:"My Plans",onClick:()=>{J(),Y(!0)},icon:(0,t.jsx)(p.CalendarBold,{className:R}),activeIcon:(0,t.jsx)(h.CalendarBoldFilled,{className:R}),isActive:!1}],{name:ea("radar"),href:g,icon:(0,t.jsx)(u.RadarBold,{className:R}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:R}),isActive:j},...es&&!el&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(s.Lightning,{className:R}),activeIcon:(0,t.jsx)(n.LightningFilled,{className:R}),isActive:k,onClick:()=>en({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[eo,er,ec,$,et,ed,eu,em,W,en,ee,J]);if(!K)return null;let eh="en-US"===ec&&!ee;return 0===ep.length?eh?(0,t.jsx)(X,{}):null:(0,t.jsxs)(t.Fragment,{children:[eh&&(0,t.jsx)(X,{}),(0,t.jsx)("nav",{className:"z-sticky fixed right-0 bottom-0 left-0 bg-white md:hidden","aria-label":"Mobile navigation","data-component":"localsuite-nav","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:ep.map(e=>{let a=(0,g.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),l=(0,g.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold");return e.href?(0,t.jsxs)(i.default,{href:e.href,className:a,"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",onClick:e.onClick,children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:l,children:e.name})]},e.name):(0,t.jsxs)("button",{type:"button",className:a,onClick:e.onClick,children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.icon}),(0,t.jsx)("span",{className:l,children:e.name})]},e.name)})})})}),(0,t.jsx)(z.InstallPromptSheet,{open:V,onOpenChange:Y,title:"My Plans",headline:"Weather Your Way",description:"Save your favorite locations and unlock custom forecasts tailored to your daily travel, plans and routines.",imageContent:(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsxs)(O.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(O.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(O.Card,{src:G.default.src,alt:"My Plans cards showing a saved commute activity and flight status",top:"26.2%",left:"23.5%",width:"53.3%"})]})}),getAppHref:q,onGetAppClick:()=>Z("my-plans-drawer/get-the-app","Get the app"),onCloseClick:()=>Z("my-plans-drawer/dismiss","dismiss"),learnMoreHref:"/download-app#my-plans",onLearnMoreClick:()=>Q("learn-more")})]})}],432124)},731672,e=>{"use strict";var t=e.i(546446),a=e.i(646341),i=e.i(671525),l=e.i(889753),s=e.i(45846),n=e.i(284007),r=e.i(756227),o=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(l.userPreferencesAtom),c=(0,r.useResetAuthState)(),{refresh:d}=(0,i.usePageNavigation)();return async()=>{try{return(0,o.regenerateMetricsSession)(),await s.upsxClient.auth.logout(),c(),e(n.RESET),(0,a.deleteCookie)("twc-user",{domain:".weather.com"}),d({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},129932,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":a,"aria-describedby":l,...s,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",clipRule:"evenodd"})]})),s=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:l,...e}));s.displayName="SkincareBold",e.s(["SkincareBold",0,s])},800177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":a,"aria-describedby":l,...s,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9",clipRule:"evenodd"})]})),s=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:l,...e}));s.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,s])},414338,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(730921),l=e.i(683903),s=e.i(877957),n=e.i(367810),r=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:h,isPremiumUser:x})=>{let f=(0,l.useTranslations)("PrivacyConsentModal"),g=(0,i.useLocale)(),b=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:g}),[v,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(!1),[k,N]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||x||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),a=localStorage.getItem("saleOfDataConflict");t?(w(!0),y(!0)):e&&a&&m===c.Regime.USA_CCPA&&(N(!0),y(!0))},[m,x,e]);let S=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await r.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},A=t=>{let a=window,i=window.top,l=a.DprSdk||i?.DprSdk;l?(l.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&S({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),j?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):k&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),y(!1)):console.error("Unable to fix conflict, missing DprSdk.")},C="",L="";if(j?(C="gpcConflictHeader",L="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(L+="_usa-ccpa")):k&&(C="saleOfDataConflictHeader",L="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(L+="_usa-ccpa")),L)return(0,t.jsx)(n.Dialog,{open:v,onOpenChange:y,children:(0,t.jsxs)(n.DialogContent,{className:`text-center ${"desktop"!==p?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===h?"wu-theme":""} `,onEscapeKeyDown:e=>{(k||j)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[C&&(0,t.jsx)(n.DialogHeader,{children:(0,t.jsx)(n.DialogTitle,{className:"text-xl font-semibold",children:f(C)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:f.rich(L,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:b,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(n.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(s.Button,{onClick:()=>{A(!0)},variant:"default",className:"w-full sm:w-auto",children:f("optInButtonText")}),(0,t.jsx)(s.Button,{onClick:()=>{A(!1)},variant:"secondary",className:"w-full sm:w-auto",children:f("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModalClient",0,m,"default",0,m])},778828,e=>{"use strict";var t=e.i(699173),a=e.i(632137),i=e.i(240058),l=e.i(592121),s=e.i(683903),n=e.i(546446),r=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,a.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 h=e.i(686557),x=e.i(64412),f=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:i}){let y=(0,s.useTranslations)("Header"),j=(0,u.useIsMobile)(),w=(0,l.useRef)(null),k=(0,f.usePreciseGeocode)(),{location:N}=(0,x.useLocation)(),{location:S}=(0,x.useLocation)("geolocation"),A=N?.name||N?.city||N?.displayName,C=(0,g.isSameLocation)(N,S),[L,U]=(0,n.useAtom)(p.locationPickerOpenAtom),R=(0,l.useCallback)(()=>{U(!L)},[U,L]);return(0,l.useEffect)(()=>{if(!L||j)return;let e=e=>{w.current&&!w.current.contains(e.target)&&U(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[L,j,U]),(0,l.useEffect)(()=>{if(!L)return;let e=e=>{"Escape"===e.key&&U(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[L,U]),(0,t.jsxs)("div",{ref:w,className:(0,a.cn)("relative max-md:mr-auto",i),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)(r.Button,{type:"button",variant:"ghostUI",onClick:R,"aria-expanded":L,"aria-haspopup":"dialog","aria-label":A??y("searchPlaceholderText"),"data-state":L?"open":"closed","data-testid":"location-picker-trigger",className:(0,a.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",b),children:[C&&k?(0,t.jsx)(c.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):C&&!k?(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:A||(0,t.jsx)(m,{animationStrings:["Location"]})}),(0,t.jsx)(d.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!L&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,t.jsx)("div",{className:(0,a.cn)(!j&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(h.Search,{locale:e,open:L,onOpenChange:U})})]})}var y=e.i(559421),j=e.i(528600),w=e.i(731672),k=e.i(792461),N=e.i(190344),S=e.i(296990),A=e.i(674885),C=e.i(336726),L=e.i(961123),U=e.i(357508);e.i(609717);var R=e.i(950771);e.i(647872);var P=e.i(928083),I=e.i(598513),E=e.i(993269),_=e.i(859827),M=e.i(449172),B=e.i(316810);let T=({url:e,action:l,name:s,isNew:n,isExternal:r,isInGroup:o,onClick:c,sourceModule:d,sourceElement:u,modulePosition:m})=>{if(!e&&!l)return null;let p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[s,n&&(0,t.jsx)(B.default,{})]}),r&&(0,t.jsx)(M.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),h=(0,a.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)(i.default,{href:e,className:h,target:r?"_blank":void 0,onClick:c,sourceModule:d,sourceElement:u,"data-module-key":m,children:p}):(0,t.jsx)("button",{onClick:l,className:(0,a.cn)(h,"cursor-pointer"),children:p})},s)},F=({isExpanded:e,toggleCategory:i,name:l,links:s,isNew:n})=>(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:i,"aria-expanded":!!e,"aria-label":`Toggle ${l} category`,className:(0,a.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:l}),n&&(0,t.jsx)(B.default,{})]}),(0,t.jsx)("span",{"aria-hidden":"true",children:e?(0,t.jsx)(E.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(_.Plus,{size:"md",className:"text-black"})})]})}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:s.map(e=>(0,t.jsx)(T,{...e,isInGroup:!0},e.name))})]},l);var D=e.i(611540),H=e.i(304116),z=e.i(269153);let O=[{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"}],G={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},K=(0,l.forwardRef)((e,i)=>{let[o,c]=(0,n.useAtom)(p.settingsMenuOpenAtom),m=(0,n.useAtomValue)(A.isImperialUnitsAtom),h=(0,L.useParams)(),f=(h?.locale||"en-US").split("-")[1],{location:g}=(0,x.useLocation)(),b=(0,y.useCanonicalBasePath)(),{user:{isUserLoggedIn:v}}=(0,j.useUser)(),E=(0,w.useUserLogout)(),_=(0,k.useRefMemo)(E),M=g?.placeId||"",B=g?.featureId,T=g?.canonicalID,K=(0,z.useIsSamsungPartner)(),$=(0,n.useAtomValue)(R.pageLocaleAtom),W=(0,n.useAtomValue)(P.activityHubMenuEnabledAtom),V=(0,u.useIsMobile)(),Y=(0,I.useSendInteractionEvent)(),q=(0,s.useTranslations)("SidebarNavigation"),Q=(0,s.useTranslations)("ActivityHubDriver"),X=(0,s.useTranslations)("UserRegistration"),J=(0,N.useVideoNavUrl)(),[Z,ee]=(0,l.useState)({}),et=(0,l.useCallback)(e=>(0,H.buildLocationPageHref)({pageType:e,locale:$,canonicalBasePath:b,canonicalID:T,featureId:B,placeId:M,skipCanonical:K}),[$,b,T,B,M,K]),ea=(0,l.useMemo)(()=>[{name:q("weatherForecasts"),links:[{name:q("today"),url:et("today")},{name:q("hourly"),url:et("hourbyhour")},{name:q("tenday"),url:et("tenday")}]},{name:q("radarAndMaps"),links:[{name:q("interactiveRadarMap"),url:`${(0,D.interpolateUrl)(D.URLS.interactiveMap,{locale:$,locId:M})}?animation=true`},..."en-US"===$?[{name:"US Forecast",url:D.URLS.usForecast},{name:"US Satellite & Radar",url:D.URLS.usSatAndRadar},{name:"World Satellite",url:D.URLS.worldSatellite},{name:"US Severe Alerts",url:D.URLS.usSevereAlerts},{name:"US Health",url:D.URLS.usHealth}]:[]]},..."en-US"===$?[{name:"News",links:[{name:q("topStories"),url:D.URLS.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:D.URLS.spaceSkywatching},...J?[{name:q("video"),url:J}]:[]]}]:J?[{name:q("video"),links:[{name:q("topStories"),url:J}]}]:[],..."en-US"===$&&W&&V?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:O.map(({titleKey:e,urlKey:t},a)=>{let i=G[e],l=String(a);return{name:Q(e),url:(0,D.interpolateUrl)(D.URLS[t],{locale:$,locId:M}),onClick:()=>Y({interactionType:"click",interactionElement:i,moduleId:"hamburger-menu",modulePosition:l,destinationPageId:i},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:i,modulePosition:l}})}]:[],{name:q("productAccount"),links:[..."en-US"===$?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:X("manageAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSettings,{locale:$})},{name:X("logOut"),action:_.current}]:[{name:X("createAnAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSignup,{locale:$})},{name:X("logIn"),url:(0,D.interpolateUrl)(D.URLS.memberLogin,{locale:$})}]]},{name:q("lifestyle"),links:[..."en-US"===$?[{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:D.URLS.homeGarden},{name:q("travelAndOutdoors"),url:D.URLS.travel},{name:q("petsAndAnimals"),url:D.URLS.pets},{name:"Health",url:"/health"}]:[],{name:q("allergyTracker"),url:et("allergy")},{name:q("airQualityIndex"),url:et("air-quality")},{name:q("coldAndFluTracker"),url:et("cold-flu")},..."en-US"===$?[{name:q("skinHealth"),url:D.URLS.skinHealth}]:[]]}],[v,_,M,$,et,J,W,V,Y]);return(0,t.jsxs)("nav",{ref:i,className:(0,a.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)(r.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)(S.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:f}),(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)(C.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(U.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:ea.map(e=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:(0,t.jsx)(F,{isExpanded:Z[e.name],toggleCategory:()=>{var t;e.analyticsElement&&!Z[e.name]&&Y({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),t=e.name,ee(e=>({...e,[t]:!e[t]}))},...e})},e.name))})]})});K.displayName="Navigation";var $=e.i(226602),W=e.i(747961);let V=(0,l.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":a,"aria-describedby":l,...s,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Hamburger"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})),Y=l.default.forwardRef((e,a)=>(0,t.jsx)(W.BaseIcon,{ref:a,icon:V,...e}));function q(){let[e,a]=(0,n.useAtom)(p.menuOpenAtom),i=(0,l.useRef)(null),s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,l.useEffect)(()=>{function t(t){e&&i.current&&s.current&&!i.current.contains(t.target)&&!s.current.contains(t.target)&&a(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{ref:i,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:()=>a(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)($.Close,{}):(0,t.jsx)(Y,{})}),e&&(0,t.jsx)(K,{ref:s})]})}Y.displayName="Hamburger";var Q=e.i(368847),X=e.i(809058),J=e.i(837879),Z=e.i(730921),ee=e.i(864723),et=e.i(537989);let ea=()=>{let e=(0,n.useAtomValue)(et.pageIdAtom);return(0,l.useCallback)(t=>{let a=`${e}_${t}`;(0,ee.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};var ei=e.i(683199);function el(){let{user:e,userProfile:a}=(0,j.useUser)(),n=(0,w.useUserLogout)(),{isUserLoggedIn:o,isUserPremium:c}=e,[d,u]=(0,l.useState)(!1),m=(0,J.useSubscriptionsEnabled)(),p=(0,s.useTranslations)("UserRegistration"),h=(0,Z.useLocale)(),x=ea(),f=(0,ei.usePremiumSource)(),g="flex size-8 shrink-0 items-center justify-center rounded-full border-2 border-current text-sm leading-none font-bold text-inherit";return(0,t.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:o?(0,t.jsxs)(X.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:d,onOpenChange:u,children:[(0,t.jsx)(X.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":d,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(X.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(i.default,{href:(0,D.interpolateUrl)(D.URLS.memberSettings,{locale:h}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:g,children:a?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(Q.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(Q.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)(Q.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(Q.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(i.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{x("user_flyout_go_premium"),f({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,t.jsx)(r.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(r.Button,{variant:"link",onClick:n,"data-testid":"header-profile-signout",children:p("signOut")})})]})})]}):(0,t.jsx)(i.default,{href:(0,D.interpolateUrl)(D.URLS.memberLogin,{locale:h}),sourceModule:"header",sourceElement:"sign-in",children:(0,t.jsx)(r.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 es=e.i(995113);function en(){let{user:e}=(0,j.useUser)(),{isUserPremium:l}=e,s=(0,J.useSubscriptionsEnabled)(),n=ea(),r=(0,ei.usePremiumSource)();return l||!s?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)(i.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,a.cn)("group relative inline-flex h-10 items-center justify-center gap-1 overflow-hidden rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>{n("header_go_premium"),r({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)(es.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 er=e.i(458645);e.s(["default",0,function({locale:e,subnav:l,hideHeaderOnDesktop:s,hideLocationPicker:r,hideGoPremiumButton:o}){let c,d=(0,u.useIsMobile)(),m=(c=(0,u.useIsMobile)(),(0,L.usePathname)().includes("/subscribe")&&!c||s&&!d),h=(0,n.useAtomValue)(p.menuOpenAtom),x=(0,n.useAtomValue)(p.locationPickerOpenAtom),f=(0,D.interpolateUrl)(D.URLS.home,{locale:e});return m?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:(0,a.cn)("relative top-0 w-full md:sticky",h||x?"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)(q,{})}),(0,t.jsx)("div",{className:(0,a.cn)("flex items-center md:hidden",r&&"max-md:mr-auto"),children:(0,t.jsx)(i.default,{href:f,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(er.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!r&&(0,t.jsx)(v,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:l}),!o&&(0,t.jsx)(en,{}),(0,t.jsx)(el,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",h||x?"hidden":"block"),children:l})]})}],778828)},556441,e=>{"use strict";var t=e.i(699173),a=e.i(961123),i=e.i(240058),l=e.i(877957),s=e.i(368847),n=e.i(132084),r=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,a.useSearchParams)(),m=e.get("par")||e.get("partner"),p=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:x}=(0,r.useUser)(),{isUserPremium:f}=x,g=(0,u.usePremiumSource)();return m===n.Partner.TIKTOK&&p&&h&&!f?(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)(s.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(s.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)(l.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(i.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>g({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])}]);