(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")},718043,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},a.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},a.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},a.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:a}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${a}/${e}`}},a.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:a=0,limit:l=10,sort:n="-publishdate"}){let r={q:Object.keys(t).reduce((e,a)=>{let i=t[a];return i instanceof Array?[...e,...i.map(e=>s(a,e))]:[...e,s(a,i)]},[]).join(";"),pg:`${a},${l}`,format:"json",sort:n},o=(0,i.queryStringToSearchParams)(r).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},a.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:a=0,limit:s=10,sort:l="-publishdate"}){let n={q:t,pg:`${a},${s}`,format:"json",sort:l},r=(0,i.queryStringToSearchParams)(n).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${r}`}},a.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:a=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${a}`}},a.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let i=e.r(678651);function s(e,t){let a=`'${t.$in}'`;return t.$in instanceof Array&&(a=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${a})`}},427977,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getQuickNav=void 0;let i=e.r(414655),s=e.r(678651),l=e.r(718043);a.getQuickNav=async()=>{let e=(0,s.urlFrom)((0,l.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,i.handleFetchResponse)(t)}},677997,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:s,...l},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":s,...l,children:[i?(0,t.jsx)("desc",{id:s,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"})]})),l=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:s,...e}));l.displayName="Lightning",e.s(["Lightning",0,l])},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"},s={"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 l=(0,a.useSendInteractionEvent)();return(0,t.useCallback)(t=>{l({moduleId:i[e],interactionType:"click",interactionElement:s[e][t]},{flushImmediately:!0})},[l,e])}])},429745,e=>{"use strict";var t=e.i(699173),a=e.i(367810),i=e.i(226602),s=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:l,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:v="Close",onCloseClick:b})=>(0,t.jsx)(a.Dialog,{open:e,onOpenChange:l,children:(0,t.jsxs)(a.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,className:(0,s.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":v,onClick:b,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",s="weather.com",l=`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,s,"APPSFLYER_HOST",0,i,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,l,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,a,"PLAY_STORE_URL",0,n],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:l,currentUrl:n,allowAppsFlyer:r,deepLinkValue:o}){if(!r||!l||null===e)return"";let c="android"===e?t:a,d=encodeURIComponent(l.replace(/ /g,"_")),u=`${i}/${c}?pid=WWW&af_adset=${d}&c=${s}`;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),s=e.i(881282);e.s(["useAppInstallLink",0,function(e,l){let[n,r]=(0,t.useState)(null),[o,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(!1);(0,t.useEffect)(()=>{r((0,s.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:l}),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:s,width:l}){return(0,i.jsx)("img",{src:e,alt:t,className:"absolute rounded-xl",style:{top:a,left:s,width:l}})},"CompositeFrame",0,function({left:e,top:t,width:a,height:s,children:l}){return(0,i.jsx)("div",{className:"absolute",style:{left:e,top:t,width:a,height:s},children:l})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:a,color:s,cx:l,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:l,cy:n,rx:r,ry:o,fill:s})}),(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 s={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,s],328166)},432124,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(240058),s=e.i(64412),l=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),v=e.i(546446);e.i(609717);var b=e.i(950771),y=e.i(537989);e.i(647872);var j=e.i(494889),w=e.i(611540),S=e.i(738426),C=e.i(468104),k=e.i(18358),N=e.i(381477),A=e.i(190344),U=e.i(427977),L=e.i(961123),P=e.i(559421),R=e.i(388706),I=e.i(498076),E=e.i(683903),_=e.i(304116),M=e.i(379276),T=e.i(269153),B=e.i(528600),F=e.i(837879),D=e.i(683199),$=e.i(677691),H=e.i(429745),z=e.i(269186),O=e.i(328166),G=e.i(226602),K=e.i(697380),W=e.i(512134),V=e.i(521350),q=e.i(358273);let Q="wx-next/get-app-button:dismissed-session",Y=["/hourbyhour","/radar","/download-app"];function X(){let e=(0,I.useIsMobile)(),i=(0,L.usePathname)(),s=(0,v.useAtomValue)(K.fixedBottomAdHeightAtom),{isDismissed:l,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,q.getMetricsSession)()?.sessionId;return!!t&&t===e}(),dismiss:(0,a.useCallback)(()=>{let e=(0,q.getMetricsSession)()?.sessionId;if(e&&(0,V.isLocalStorageAvailable)())try{localStorage.setItem(Q,e)}catch{}i(!0)},[])}}(),{href:r}=(0,$.useAppInstallLink)("floating-button","floating-button"),o=(0,S.useTrackInstallPromptClick)("floating-button"),c=(0,C.useTrackModuleClick)();if(!e||l||Y.some(e=>i.includes(e)))return null;let d=`calc(3.5rem + ${s}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)(G.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e,G=(0,I.useIsMobile)(),K=(0,L.usePathname)(),W=(0,P.useCanonicalBasePath)(),[V,q]=(0,a.useState)(!1),{href:Q}=(0,$.useAppInstallLink)("my-plans","my-plans"),Y=(0,S.useTrackInstallPromptClick)("my-plans"),J=(e=(0,k.useTrackEvent)(),(0,a.useCallback)(()=>{e("myPlansDriver")},[e])),Z=(0,C.useTrackModuleClick)(),ee=(0,T.useIsSamsungPartner)(),et=(0,v.useAtomValue)(y.pageIdAtom),ea=(0,E.useTranslations)("SidebarNavigation"),{user:ei}=(0,B.useUser)(),{isUserPremium:es}=ei,el=(0,F.useSubscriptionsEnabled)(),en=(0,D.usePremiumSource)(),{location:er,isLoading:eo}=(0,s.useLocation)(),ec=(0,v.useAtomValue)(b.pageLocaleAtom),ed=(0,v.useAtomValue)(j.newsHubEnabledAtom),eu=(0,A.useVideoNavUrl)(),{data:em}=(0,N.default)(["navigation/getQuickNav",ec],()=>(0,U.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,s=(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}),v=W?(0,R.navTypeForSuffix)(K.split("/").pop()):null,b="en-US"===ec?"/":`/${ec}`,y=K===b||"/"!==b&&K===`${b}/`||(W?"forecast"===v:K.includes("/weather/today/")||K.includes("/weather/hourbyhour/")||K.includes("/weather/tenday/")||K.includes("/weather/monthly/")||K.includes("/forecast/allergy/")||K.includes("/forecast/air-quality/")||K.includes("/forecast/cold-flu/")),j=W?"radar"===v:K.includes("/weather/radar/")||K.includes("/weather/maps/"),S=K.includes("/subscribe"),C="video"===et,k=K===w.URLS.news||K.startsWith(`${w.URLS.news}/`)||M.NEWS_PAGE_IDS.includes(et??""),N="en-US"===ec&&ed,A=em?.videoLinkLocaleInclude?.["en-US"],U=A?.override?`?${A?.adRef}`:"",L=eu?`${eu}${U}`:"",P="h-6 w-6 text-inherit";return[{name:ea("forecast"),href:s,icon:(0,t.jsx)(r.PartlyCloudyBold,{className:P}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:P}),isActive:y},...N?[{name:"News",href:w.URLS.news,icon:(0,t.jsx)(x.News,{className:P}),activeIcon:(0,t.jsx)(f.NewsFilled,{className:P}),isActive:k}]:eu?[{name:ea("video"),href:L,icon:(0,t.jsx)(c.VideoPlayerBold,{className:P}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:P}),isActive:C}]:[],..."en-US"!==ec||ee?[]:[{name:"My Plans",onClick:()=>{J(),q(!0)},icon:(0,t.jsx)(p.CalendarBold,{className:P}),activeIcon:(0,t.jsx)(h.CalendarBoldFilled,{className:P}),isActive:!1}],{name:ea("radar"),href:g,icon:(0,t.jsx)(u.RadarBold,{className:P}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:P}),isActive:j},...el&&!es&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(l.Lightning,{className:P}),activeIcon:(0,t.jsx)(n.LightningFilled,{className:P}),isActive:S,onClick:()=>en({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[eo,er,ec,K,et,ed,eu,em,W,en,ee,J]);if(!G)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}),s=(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:s,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:s,children:e.name})]},e.name)})})})}),(0,t.jsx)(H.InstallPromptSheet,{open:V,onOpenChange:q,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)(z.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(z.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(z.Card,{src:O.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:()=>Y("learn-more")})]})}],432124)},731672,e=>{"use strict";var t=e.i(546446),a=e.i(646341),i=e.i(671525),s=e.i(889753),l=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)(s.userPreferencesAtom),c=(0,r.useResetAuthState)(),{refresh:d}=(0,i.usePageNavigation)();return async()=>{try{return(0,o.regenerateMetricsSession)(),await l.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 s=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:s,...l},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":s,...l,children:[i?(0,t.jsx)("desc",{id:s,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"})]})),l=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:s,...e}));l.displayName="SkincareBold",e.s(["SkincareBold",0,l])},800177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:s,...l},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":s,...l,children:[i?(0,t.jsx)("desc",{id:s,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"})]})),l=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:s,...e}));l.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,l])},414338,e=>{"use strict";var t=e.i(699173),a=e.i(592121),i=e.i(730921),s=e.i(683903),l=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,s.useTranslations)("PrivacyConsentModal"),g=(0,i.useLocale)(),v=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:g}),[b,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(!1),[S,C]=(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&&(C(!0),y(!0))},[m,x,e]);let k=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)}},N=t=>{let a=window,i=window.top,s=a.DprSdk||i?.DprSdk;s?(s.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&k({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),j?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):S&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),y(!1)):console.error("Unable to fix conflict, missing DprSdk.")},A="",U="";if(j?(A="gpcConflictHeader",U="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(U+="_usa-ccpa")):S&&(A="saleOfDataConflictHeader",U="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(U+="_usa-ccpa")),U)return(0,t.jsx)(n.Dialog,{open:b,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=>{(S||j)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[A&&(0,t.jsx)(n.DialogHeader,{children:(0,t.jsx)(n.DialogTitle,{className:"text-xl font-semibold",children:f(A)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:f.rich(U,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:v,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)(l.Button,{onClick:()=>{N(!0)},variant:"default",className:"w-full sm:w-auto",children:f("optInButtonText")}),(0,t.jsx)(l.Button,{onClick:()=>{N(!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),s=e.i(592121),l=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 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:i}){let y=(0,l.useTranslations)("Header"),j=(0,u.useIsMobile)(),w=(0,s.useRef)(null),S=(0,f.usePreciseGeocode)(),{location:C}=(0,x.useLocation)(),{location:k}=(0,x.useLocation)("geolocation"),N=C?.name||C?.city||C?.displayName,A=(0,g.isSameLocation)(C,k),[U,L]=(0,n.useAtom)(p.locationPickerOpenAtom),P=(0,s.useCallback)(()=>{L(!U)},[L,U]);return(0,s.useEffect)(()=>{if(!U||j)return;let e=e=>{w.current&&!w.current.contains(e.target)&&L(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[U,j,L]),(0,s.useEffect)(()=>{if(!U)return;let e=e=>{"Escape"===e.key&&L(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[U,L]),(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:P,"aria-expanded":U,"aria-haspopup":"dialog","aria-label":N??y("searchPlaceholderText"),"data-state":U?"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",v),children:[A&&S?(0,t.jsx)(c.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):A&&!S?(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:N||(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",!U&&"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:U,onOpenChange:L})})]})}var y=e.i(559421),j=e.i(528600),w=e.i(731672),S=e.i(792461),C=e.i(190344),k=e.i(296990),N=e.i(674885),A=e.i(336726),U=e.i(961123),L=e.i(357508);e.i(609717);var P=e.i(950771);e.i(647872);var R=e.i(928083),I=e.i(598513),E=e.i(993269),_=e.i(859827),M=e.i(449172),T=e.i(316810);let B=({url:e,action:s,name:l,isNew:n,isExternal:r,isInGroup:o,onClick:c,sourceModule:d,sourceElement:u,modulePosition:m})=>{if(!e&&!s)return null;let p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[l,n&&(0,t.jsx)(T.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:s,className:(0,a.cn)(h,"cursor-pointer"),children:p})},l)},F=({isExpanded:e,toggleCategory:i,name:s,links:l,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 ${s} 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:s}),n&&(0,t.jsx)(T.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:l.map(e=>(0,t.jsx)(B,{...e,isInGroup:!0},e.name))})]},s);var D=e.i(611540),$=e.i(304116),H=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"}],O={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},G=(0,s.forwardRef)((e,i)=>{let[o,c]=(0,n.useAtom)(p.settingsMenuOpenAtom),m=(0,n.useAtomValue)(N.isImperialUnitsAtom),h=(0,U.useParams)(),f=(h?.locale||"en-US").split("-")[1],{location:g}=(0,x.useLocation)(),v=(0,y.useCanonicalBasePath)(),{user:{isUserLoggedIn:b}}=(0,j.useUser)(),E=(0,w.useUserLogout)(),_=(0,S.useRefMemo)(E),M=g?.placeId||"",T=g?.featureId,B=g?.canonicalID,G=(0,H.useIsSamsungPartner)(),K=(0,n.useAtomValue)(P.pageLocaleAtom),W=(0,n.useAtomValue)(R.activityHubMenuEnabledAtom),V=(0,u.useIsMobile)(),q=(0,I.useSendInteractionEvent)(),Q=(0,l.useTranslations)("SidebarNavigation"),Y=(0,l.useTranslations)("ActivityHubDriver"),X=(0,l.useTranslations)("UserRegistration"),J=(0,C.useVideoNavUrl)(),[Z,ee]=(0,s.useState)({}),et=(0,s.useCallback)(e=>(0,$.buildLocationPageHref)({pageType:e,locale:K,canonicalBasePath:v,canonicalID:B,featureId:T,placeId:M,skipCanonical:G}),[K,v,B,T,M,G]),ea=(0,s.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:K,locId:M})}?animation=true`},..."en-US"===K?[{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"===K?[{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"===K&&W&&V?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:z.map(({titleKey:e,urlKey:t},a)=>{let i=O[e],s=String(a);return{name:Y(e),url:(0,D.interpolateUrl)(D.URLS[t],{locale:K,locId:M}),onClick:()=>q({interactionType:"click",interactionElement:i,moduleId:"hamburger-menu",modulePosition:s,destinationPageId:i},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:i,modulePosition:s}})}]:[],{name:Q("productAccount"),links:[..."en-US"===K?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...b?[{name:X("manageAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSettings,{locale:K})},{name:X("logOut"),action:_.current}]:[{name:X("createAnAccount"),url:(0,D.interpolateUrl)(D.URLS.memberSignup,{locale:K})},{name:X("logIn"),url:(0,D.interpolateUrl)(D.URLS.memberLogin,{locale:K})}]]},{name:Q("lifestyle"),links:[..."en-US"===K?[{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"===K?[{name:Q("skinHealth"),url:D.URLS.skinHealth}]:[]]}],[b,_,M,K,et,J,W,V,q]);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)(k.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)(A.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(L.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]&&q({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),t=e.name,ee(e=>({...e,[t]:!e[t]}))},...e})},e.name))})]})});G.displayName="Navigation";var K=e.i(226602),W=e.i(747961);let V=(0,s.forwardRef)(({title:e,titleId:a,desc:i,descId:s,...l},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":s,...l,children:[i?(0,t.jsx)("desc",{id:s,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"})]})),q=s.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,s.useRef)(null),l=(0,s.useRef)(null);return(0,s.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,s.useEffect)(()=>{function t(t){e&&i.current&&l.current&&!i.current.contains(t.target)&&!l.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)(K.Close,{}):(0,t.jsx)(q,{})}),e&&(0,t.jsx)(G,{ref:l})]})}q.displayName="Hamburger";var Y=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,s.useCallback)(t=>{let a=`${e}_${t}`;(0,ee.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};var ei=e.i(683199);function es(){let{user:e,userProfile:a}=(0,j.useUser)(),n=(0,w.useUserLogout)(),{isUserLoggedIn:o,isUserPremium:c}=e,[d,u]=(0,s.useState)(!1),m=(0,J.useSubscriptionsEnabled)(),p=(0,l.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)(Y.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(Y.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)(Y.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(Y.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 el=e.i(995113);function en(){let{user:e}=(0,j.useUser)(),{isUserPremium:s}=e,l=(0,J.useSubscriptionsEnabled)(),n=ea(),r=(0,ei.usePremiumSource)();return s||!l?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)(el.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:s,hideHeaderOnDesktop:l,hideLocationPicker:r,hideGoPremiumButton:o}){let c,d=(0,u.useIsMobile)(),m=(c=(0,u.useIsMobile)(),(0,U.usePathname)().includes("/subscribe")&&!c||l&&!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)(b,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:s}),!o&&(0,t.jsx)(en,{}),(0,t.jsx)(es,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",h||x?"hidden":"block"),children:s})]})}],778828)},556441,e=>{"use strict";var t=e.i(699173),a=e.i(961123),i=e.i(240058),s=e.i(877957),l=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)(l.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(l.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)(s.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}])}]);