(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,10993,e=>{e.q("/_next/static/immutable/media/focusLogo.3_ax6r2sm72u_.svg")},834005,e=>{e.q("/_next/static/immutable/media/dlpg-you.3sxuqxz06ois7.png")},432124,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(240058),l=e.i(64412),n=e.i(677997),s=e.i(995113),r=e.i(702957),o=e.i(489408),c=e.i(113016),u=e.i(312401),d=e.i(807215),m=e.i(876329),p=e.i(160937),h=e.i(64344),g=e.i(51398),f=e.i(240027),x=e.i(632137),b=e.i(546446);e.i(609717);var v=e.i(950771),w=e.i(537989);e.i(647872);var y=e.i(494889),k=e.i(611540),C=e.i(738426),j=e.i(468104),A=e.i(18358),S=e.i(381477),I=e.i(190344),N=e.i(427977),P=e.i(725287),_=e.i(559421),L=e.i(388706),E=e.i(498076),T=e.i(581014),R=e.i(304116),F=e.i(379276),D=e.i(269153),U=e.i(528600),B=e.i(837879),M=e.i(683199),z=e.i(677691),$=e.i(429745),G=e.i(269186),H=e.i(328166),O=e.i(226602),W=e.i(697380),V=e.i(512134),Y=e.i(521350),K=e.i(358273);let q="wx-next/get-app-button:dismissed-session",Q=["/hourbyhour","/radar","/download-app"];function J(){let e=(0,E.useIsMobile)(),a=(0,P.usePathname)(),l=(0,b.useAtomValue)(W.fixedBottomAdHeightAtom),{isDismissed:n,dismiss:s}=function(){let e=(0,V.useIsClient)(),[t,a]=(0,i.useState)(!1);return{isDismissed:!e||t||function(){let e=function(){if(!(0,Y.isLocalStorageAvailable)())return null;try{return localStorage.getItem(q)}catch{return null}}();if(!e)return!1;let t=(0,K.getMetricsSession)()?.sessionId;return!!t&&t===e}(),dismiss:(0,i.useCallback)(()=>{let e=(0,K.getMetricsSession)()?.sessionId;if(e&&(0,Y.isLocalStorageAvailable)())try{localStorage.setItem(q,e)}catch{}a(!0)},[])}}(),{href:r}=(0,z.useAppInstallLink)("floating-button","floating-button"),o=(0,C.useTrackInstallPromptClick)("floating-button"),c=(0,j.useTrackModuleClick)();if(!e||n||Q.some(e=>a.includes(e)))return null;let u=`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:u},"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"),s()},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)(O.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e,O=(0,E.useIsMobile)(),W=(0,P.usePathname)(),V=(0,_.useCanonicalBasePath)(),[Y,K]=(0,i.useState)(!1),{href:q}=(0,z.useAppInstallLink)("my-plans","my-plans"),Q=(0,C.useTrackInstallPromptClick)("my-plans"),X=(e=(0,A.useTrackEvent)(),(0,i.useCallback)(()=>{e("myPlansDriver")},[e])),Z=(0,j.useTrackModuleClick)(),ee=(0,D.useIsSamsungPartner)(),et=(0,b.useAtomValue)(w.pageIdAtom),ei=(0,T.useTranslations)("SidebarNavigation"),{user:ea}=(0,U.useUser)(),{isUserPremium:el}=ea,en=(0,B.useSubscriptionsEnabled)(),es=(0,M.usePremiumSource)(),{location:er,isLoading:eo}=(0,l.useLocation)(),ec=(0,b.useAtomValue)(v.pageLocaleAtom),eu=(0,b.useAtomValue)(y.newsHubEnabledAtom),ed=(0,I.useVideoNavUrl)(),{data:em}=(0,S.default)(["navigation/getQuickNav",ec],()=>(0,N.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),ep=(0,i.useMemo)(()=>{if(eo||!er)return[];let e=er.placeId||"",i=er.featureId,a=er.canonicalID,l=(0,R.buildLocationPageHref)({pageType:"today",locale:ec,canonicalID:a,featureId:i,placeId:e,canonicalBasePath:V,skipCanonical:ee}),x=(0,R.buildLocationPageHref)({pageType:"radar",locale:ec,canonicalID:a,featureId:i,placeId:e,canonicalBasePath:V,skipCanonical:ee}),b=V?(0,L.navTypeForSuffix)(W.split("/").pop()):null,v="en-US"===ec?"/":`/${ec}`,w=W===v||"/"!==v&&W===`${v}/`||(V?"forecast"===b:W.includes("/weather/today/")||W.includes("/weather/hourbyhour/")||W.includes("/weather/tenday/")||W.includes("/weather/monthly/")||W.includes("/forecast/allergy/")||W.includes("/forecast/air-quality/")||W.includes("/forecast/cold-flu/")),y=V?"radar"===b:W.includes("/weather/radar/")||W.includes("/weather/maps/"),C=W.includes("/subscribe"),j="video"===et,A=W===k.URLS.news||W.startsWith(`${k.URLS.news}/`)||F.NEWS_PAGE_IDS.includes(et??""),S="en-US"===ec&&eu,I=em?.videoLinkLocaleInclude?.["en-US"],N=I?.override?`?${I?.adRef}`:"",P=ed?`${ed}${N}`:"",_="h-6 w-6 text-inherit";return[{name:ei("forecast"),href:l,icon:(0,t.jsx)(r.PartlyCloudyBold,{className:_}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:_}),isActive:w},...S?[{name:"News",href:k.URLS.news,icon:(0,t.jsx)(g.News,{className:_}),activeIcon:(0,t.jsx)(f.NewsFilled,{className:_}),isActive:A}]:ed?[{name:ei("video"),href:P,icon:(0,t.jsx)(c.VideoPlayerBold,{className:_}),activeIcon:(0,t.jsx)(u.VideoPlayerBoldFilled,{className:_}),isActive:j}]:[],..."en-US"!==ec||ee?[]:[{name:"My Plans",onClick:()=>{X(),K(!0)},icon:(0,t.jsx)(p.CalendarBold,{className:_}),activeIcon:(0,t.jsx)(h.CalendarBoldFilled,{className:_}),isActive:!1}],{name:ei("radar"),href:x,icon:(0,t.jsx)(d.RadarBold,{className:_}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:_}),isActive:y},...en&&!el&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(n.Lightning,{className:_}),activeIcon:(0,t.jsx)(s.LightningFilled,{className:_}),isActive:C,onClick:()=>es({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[eo,er,ec,W,et,eu,ed,em,V,es,ee,X]);if(!O)return null;let eh="en-US"===ec&&!ee;return 0===ep.length?eh?(0,t.jsx)(J,{}):null:(0,t.jsxs)(t.Fragment,{children:[eh&&(0,t.jsx)(J,{}),(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 i=(0,x.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,x.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold");return e.href?(0,t.jsxs)(a.default,{href:e.href,className:i,"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:i,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)($.InstallPromptSheet,{open:Y,onOpenChange:K,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)(G.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(G.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(G.Card,{src:H.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)},556441,e=>{"use strict";var t=e.i(902875),i=e.i(725287),a=e.i(240058),l=e.i(877957),n=e.i(368847),s=e.i(132084),r=e.i(528600),o=e.i(837879),c=e.i(498076),u=e.i(37429),d=e.i(683199);e.s(["default",0,()=>{let e=(0,i.useSearchParams)(),m=e.get("par")||e.get("partner"),p=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:g}=(0,r.useUser)(),{isUserPremium:f}=g,x=(0,d.usePremiumSource)();return m===s.Partner.TIKTOK&&p&&h&&!f?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(u.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)(n.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(n.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)(a.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}])},329017,e=>{"use strict";e.i(288906);var t=e.i(247865),i=e.i(725287),a=e.i(546446),l=e.i(540768),n=e.i(682142),s=e.i(782937),r=e.i(695881),o=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),m=e.i(695203),p=e.i(158662),h=e.i(358273),g=e.i(122124),f=e.i(777638),x=e.i(727365),b=e.i(896363),v=e.i(924776),w=e.i(409628),y=e.i(605781);let k=(0,r.createLogger)("useTrackInteraction"),C=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),j=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]);e.s(["useTrackInteraction",0,()=>{let e=(0,a.useAtomValue)(d.pageIdAtom),r=(0,a.useAtomValue)(u.pageLocaleAtom),A=(0,a.useAtomValue)(m.deviceClassAtom),S=(0,a.useAtomValue)(p.experimentJoinListAtom),I=(0,i.usePathname)(),{location:N}=(0,c.useLocation)(),P=(0,v.useIsHightouchReady)(),_=(0,t.useCallback)(t=>{let i=(0,n.getCICookie)(),a=i?.["TWC-GeoIP-Country"]??(0,l.getCookie)("twc-location-country"),o=i?.["TWC-GeoIP-Region"]??(0,l.getCookie)("twc-location-region"),c=i?.["TWC-Privacy"]??(0,l.getCookie)("twc-privacy"),u=window.DprSdk?.getGdprConsentOptInsString()??"",d=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,p=u?.includes("functional-technology")??!1,v=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,y=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,k=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),P=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),_=navigator?.cookieEnabled??!1,L=(0,l.getCookie)("partner")||"",E=(0,s.getPartnerByPattern)(L)??L,T=(0,h.getMetricsSession)(),R=T?.sessionId||"",F=new Date(T?.sessionStartTime||0).toISOString(),D=new Date,U=D.getHours(),B=w.WEEK_DAYS[D.getDay()]??"",M=e&&["article","video"].includes(e)?I?.split("/").slice(0,-1).join("/")??"":(0,g.getAnonymizedPath)(I??""),z=(0,x.normalizeWlocType)(N?.type),$=N?.featureSource??null;return{moduleId:t.moduleId??"",moduleTitle:t.moduleTitle??null,modulePosition:t.modulePosition,interactionType:t.interactionType??"",interactionElement:t.interactionElement??null,lockedContent:t.lockedContent??"false",destinationPageId:t.destinationPageId??null,upsellCampaign:t.upsellCampaign??null,upsellCreative:t.upsellCreative??null,upsellPlacement:t.upsellPlacement,pageId:e??"",url:M,referrer:document.referrer,locale:r,deviceClass:A,partner:E,sessionId:R,sessionStartTime:F,siteMode:"normal",dayOfWeek:B,hourOfDay:U,regime:c??"",cookiesEnabled:_,gpcSignalOptOut:m,functionalTechnologies:p,geographicallyRelevantAds:v,interestBasedAds:y,priv:u,privProducts:d,saleOfDataAuthorization:k,sensitiveDataAuthorization:P,campaign:(0,f.getCampaign)(),experimentJoinList:S,weatherMode:"normal",physicalCountry:a??"",physicalState:o??"",wlocCity:N?.city??null,wlocCountry:N?.countryCode??null,wlocState:N?.adminDistrictCode??null,wlocDMA:N?.dmaCd??null,wlocId:N?.placeId??null,wlocFeatureId:N?.featureId??null,wlocFeatureSource:null!=$&&j.has($)?$:void 0,wlocTags:N?.tags?.length?(0,b.parseArrayToString)(N.tags):null,wlocType:null!==z&&C.has(z)?z:void 0,samsungVersion:(0,f.getSamsungVersion)(),appVersion:"b682c5f24f2ac7b20ec60447f1080b282765d1be".slice(0,10)}},[e,r,A,S,I,N]);return(0,t.useCallback)(e=>{if(o.default){if(!P)return void k.warn('Hightouch: Event "interaction" skipped - SDK not ready');try{(0,y.trackInteraction)(_(e)),k.info('Hightouch: Event "interaction" tracked')}catch(e){k.error('Hightouch: Event "interaction" failed',{error:e})}}},[P,_])}])},468104,269186,328166,e=>{"use strict";var t=e.i(247865),i=e.i(598513);e.s(["useTrackModuleClick",0,function(){let e=(0,i.useSendInteractionEvent)();return(0,t.useCallback)((t,i)=>{e({moduleId:t,interactionType:"click",interactionElement:i},{flushImmediately:!0})},[e])}],468104);var a=e.i(902875);e.s(["Card",0,function({src:e,alt:t,top:i,left:l,width:n}){return(0,a.jsx)("img",{src:e,alt:t,className:"absolute rounded-xl",style:{top:i,left:l,width:n}})},"CompositeFrame",0,function({left:e,top:t,width:i,height:l,children:n}){return(0,a.jsx)("div",{className:"absolute",style:{left:e,top:t,width:i,height:l},children:n})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:i,color:l,cx:n,cy:s,rx:r,ry:o}){let c=(0,t.useId)();return(0,a.jsxs)("svg",{"aria-hidden":"true",className:"absolute inset-0 size-full",viewBox:`0 0 ${e} ${i}`,preserveAspectRatio:"none",children:[(0,a.jsx)("g",{opacity:.32,filter:`url(#${c})`,children:(0,a.jsx)("ellipse",{cx:n,cy:s,rx:r,ry:o,fill:l})}),(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:c,x:"0",y:"0",width:e,height:i,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,a.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,a.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,a.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)},598513,e=>{"use strict";var t=e.i(947118),i=e.i(737801),a=e.i(329017),l=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",n=(0,t.useIsInitialized)(),s=(0,i.useEventAttributes)(),r=(0,a.useTrackInteraction)();return(0,l.useCallback)((t,i={})=>{r(t);let a={...s,...t};if(!n)return void console.warn("MParticle is not initialized");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,a),i.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,a)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[s,n,r])}])},677997,738426,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(747961);let l=(0,i.forwardRef)(({title:e,titleId:i,desc:a,descId:l,...n},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":i,"aria-describedby":l,...n,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"lightning"}):e?(0,t.jsx)("title",{id:i,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"})]})),n=i.default.forwardRef((e,i)=>(0,t.jsx)(a.BaseIcon,{ref:i,icon:l,...e}));n.displayName="Lightning",e.s(["Lightning",0,n],677997);var s=e.i(598513),r=e.i(990033);let o={"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"},c={"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 t=(0,s.useSendInteractionEvent)(),a=(0,i.useCallback)((e,t)=>{let i=window.AF;i&&i("pba","event",{eventType:"EVENT",eventName:e,eventValue:{...t,af_customer_event_id:(0,r.v4)()}})},[]);return(0,i.useCallback)(i=>{t({moduleId:o[e],interactionType:"click",interactionElement:c[e][i]},{flushImmediately:!0}),a("web_to_app_install_click",{module:o[e],cta_type:i})},[t,a,e])}],738426)},429745,e=>{"use strict";var t=e.i(902875),i=e.i(62544),a=e.i(226602),l=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:n,title:s,headline:r,description:o,imageUrl:c,imageAlt:u="",imageContent:d,getAppHref:m,getAppLabel:p="Get the app",onGetAppClick:h,learnMoreHref:g,learnMoreLabel:f="Learn more",onLearnMoreClick:x,closeLabel:b="Close",onCloseClick:v,dismissLabel:w,onDismissClick:y})=>(0,t.jsx)(i.Dialog,{open:e,onOpenChange:n,children:(0,t.jsxs)(i.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget.focus()},className:(0,l.cn)("flex flex-col gap-6 overflow-y-auto border-0 border-b border-black/10 bg-white px-8 py-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)(i.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)(a.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),s?(0,t.jsx)(i.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:s}):(0,t.jsx)(i.DialogTitle,{className:"sr-only",children:r}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[d||(c?(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsx)("img",{src:c,alt:u,className:"size-full rounded-lg object-cover"})}):null),(0,t.jsxs)("div",{className:"flex flex-col gap-2 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 items-center gap-4",children:[(0,t.jsx)("a",{href:m,onClick:h,className:"flex h-12 w-40 items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:p}),g&&(0,t.jsx)("a",{href:g,onClick:x,className:"flex h-12 w-full max-w-60 items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:f}),!g&&w&&(0,t.jsx)(i.DialogClose,{onClick:y,className:"flex h-12 w-full max-w-60 cursor-pointer items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:w})]})]})})])},235577,e=>{"use strict";var t=e.i(902875),i=e.i(523084),a=e.i(47524),l=e.i(632137),n=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:s,hidden:r,size:o="default",variant:c="light",className:u}){let d="sm"===o,m=(0,l.cn)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(n.Button,{type:"button",onClick:s,"aria-hidden":"true",tabIndex:-1,className:(0,l.cn)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",r&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",r&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",r&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(i.ChevronLeft,{className:m}):(0,t.jsx)(a.ChevronRight,{className:m})})}])},457492,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(632137),l=e.i(546446),n=e.i(663333),s=e.i(235577),r=e.i(315730),o=e.i(240058);let c=(0,a.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:i,index:l,link:n}=e,s=i===l,r=(0,a.cn)(c,{"bg-gray-100 text-blue-500":s});if(e.onSelect){let{onSelect:i}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>i(l,n),className:(0,a.cn)("cursor-pointer",r),"aria-current":s?"page":void 0,children:n.label})}let{basePath:u,mpa:d}=e,m=n.href??("/"===n.slug?u||"/":`${u}/${n.slug}`);return(0,t.jsx)(o.default,{href:m,mpa:d,className:r,"aria-current":s?"page":void 0,sourceModule:"subnavigation",children:n.label})},d=(0,i.memo)(e=>{let{links:i,activeIndex:o,className:c,constrained:d=!0}=e,m=(0,l.useAtomValue)(n.deviceClassAtom),{ref:p,showLeft:h,showRight:g,scrollLeft:f,scrollRight:x}=(0,r.useHorizontalScroll)({enabled:"mobile"!==m&&"tablet"!==m,scrollAmount:200,contentKey:i});return(0,t.jsxs)("div",{className:(0,a.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",d&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,a.cn)("pointer-events-none absolute top-0 -left-25 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":h}),"aria-hidden":"true"}),(0,t.jsx)(s.ScrollButton,{hidden:!h,onClick:f,direction:"left"}),(0,t.jsx)("div",{ref:p,className:(0,a.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:i.map((i,a)=>e.onSelect?(0,t.jsx)(u,{link:i,index:a,activeIndex:o,onSelect:e.onSelect},`${i.label}_${i.slug}`):(0,t.jsx)(u,{link:i,index:a,activeIndex:o,basePath:e.basePath,mpa:e.mpa},`${i.label}_${i.slug}`))}),(0,t.jsx)("div",{className:(0,a.cn)("pointer-events-none absolute top-0 -right-25 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":g}),"aria-hidden":"true"}),(0,t.jsx)(s.ScrollButton,{hidden:!g,onClick:x,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,i)=>e.label===t.links[i]?.label&&e.slug===t.links[i]?.slug&&e.href===t.links[i]?.href));d.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,d],457492)},315730,e=>{"use strict";var t=e.i(147732),i=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:a=200,contentKey:l}={}){let n=(0,i.useRef)(null),s=(0,i.useRef)(null),r=(0,i.useRef)(!1),[o,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),m=(0,i.useCallback)(()=>{let t=n.current;if(!t||!e){c(!1),d(!1);return}let{scrollLeft:i,scrollWidth:a,clientWidth:l}=t,s=Math.abs(i),o=s>2,u=s+l(0,t.debounce)(m,150),[m]),h=(0,i.useCallback)(()=>{null===s.current&&(s.current=requestAnimationFrame(()=>{m(),s.current=null}))},[m]);(0,i.useEffect)(()=>{let t=n.current;return t&&(r.current="rtl"===getComputedStyle(t).direction),m(),e&&(t?.addEventListener("scroll",h),window.addEventListener("resize",p)),()=>{null!==s.current&&cancelAnimationFrame(s.current),s.current=null,t?.removeEventListener("scroll",h),p.cancel(),window.removeEventListener("resize",p)}},[e,m,h,p,l]);let g=(0,i.useCallback)(()=>n.current?.scrollBy({left:-a,behavior:"smooth"}),[a]),f=(0,i.useCallback)(()=>n.current?.scrollBy({left:a,behavior:"smooth"}),[a]);return{ref:n,showLeft:o,showRight:u,scrollLeft:g,scrollRight:f}}])},726812,16730,e=>{"use strict";let t="com.weather.Weather",i="id295646461",a="https://app.appsflyer.com",l="weather.com",n=`https://apps.apple.com/us/app/the-weather-channel/${i}`,s=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,l,"APPSFLYER_HOST",0,a,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,n,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,i,"PLAY_STORE_URL",0,s],726812);var r=e.i(288906);e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:n,currentUrl:s,allowAppsFlyer:o,deepLinkValue:c}){if(!o||!n||null===e)return"";let u="android"===e?t:i,d=r.default.env.NEXT_PUBLIC_APPSFLYER_ONELINK_URL,m=d||`${a}/${u}`,p=encodeURIComponent(n.replace(/ /g,"_")),h=`${m}?pid=WWW&af_adset=${p}&c=${l}`;return c&&(h+=`&deep_link_value=${encodeURIComponent(c)}`),!d&&"ios"===e&&s&&(h+=`&af_ios_fallback=${encodeURIComponent(s)}`),h}],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(247865),i=e.i(726812),a=e.i(16730),l=e.i(881282),n=e.i(546446),s=e.i(402525),r=e.i(216809);e.s(["useAppInstallLink",0,function(e,o){let[c,u]=(0,t.useState)(null),[d,m]=(0,t.useState)(null),p=(0,n.useAtomValue)(s.smartScriptClickUrlAtom),h=(0,r.useAppsFlyerConsent)();(0,t.useEffect)(()=>{u((0,l.getPlatform)(navigator.userAgent)),m(window.location.href)},[]);let g=(0,a.getAppsFlyerLink)({platform:c,trackAdset:e,currentUrl:d,allowAppsFlyer:h,deepLinkValue:o}),f="android"===c?i.PLAY_STORE_URL:i.APP_STORE_URL,x=p?(0,s.withCtaAttribution)(p,{trackAdset:e,deepLinkValue:o}):"";return{href:(h&&null!==c?x||g:"")||f,platform:c}}])}]);