(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,778828,e=>{"use strict";var t=e.i(902875),a=e.i(632137),r=e.i(240058),i=e.i(247865),n=e.i(581014),l=e.i(546446),s=e.i(877957),o=e.i(616448),d=e.i(526456),c=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 h=e.i(436066);e.i(24959);var x=e.i(686557),p=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:r}){let y=(0,n.useTranslations)("Header"),j=(0,u.useIsMobile)(),w=(0,i.useRef)(null),k=(0,f.usePreciseGeocode)(),{location:S}=(0,p.useLocation)(),{location:N}=(0,p.useLocation)("geolocation"),C=S?.name||S?.city||S?.displayName,U=(0,g.isSameLocation)(S,N),[R,A]=(0,l.useAtom)(h.locationPickerOpenAtom),L=(0,i.useCallback)(()=>{A(!R)},[A,R]);return(0,i.useEffect)(()=>{if(!R||j)return;let e=e=>{w.current&&!w.current.contains(e.target)&&A(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[R,j,A]),(0,i.useEffect)(()=>{if(!R)return;let e=e=>{"Escape"===e.key&&A(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[R,A]),(0,t.jsxs)("div",{ref:w,className:(0,a.cn)("relative max-md:mr-auto",r),children:[(0,t.jsx)("div",{className:"rounded-4xl bg-white md:p-1 md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(s.Button,{type:"button",variant:"ghostUI",onClick:L,"aria-expanded":R,"aria-haspopup":"dialog","aria-label":C??y("searchPlaceholderText"),"data-state":R?"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:[U&&k?(0,t.jsx)(d.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):U&&!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:C||(0,t.jsx)(m,{animationStrings:["Location"]})}),(0,t.jsx)(c.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!R&&"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)(x.Search,{locale:e,open:R,onOpenChange:A})})]})}var y=e.i(559421),j=e.i(528600),w=e.i(731672),k=e.i(792461),S=e.i(190344),N=e.i(296990),C=e.i(674885),U=e.i(336726),R=e.i(725287),A=e.i(357508),L=e.i(942400);e.i(647872);var _=e.i(928083),M=e.i(598513),B=e.i(993269),E=e.i(859827),z=e.i(449172),I=e.i(316810);let P=({url:e,action:i,name:n,isNew:l,isExternal:s,isInGroup:o,onClick:d,sourceModule:c,sourceElement:u,modulePosition:m})=>{if(!e&&!i)return null;let h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[n,l&&(0,t.jsx)(I.default,{})]}),s&&(0,t.jsx)(z.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),x=(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)(r.default,{href:e,className:x,target:s?"_blank":void 0,onClick:d,sourceModule:c,sourceElement:u,"data-module-key":m,children:h}):(0,t.jsx)("button",{onClick:i,className:(0,a.cn)(x,"cursor-pointer"),children:h})},n)},H=({isExpanded:e,toggleCategory:r,name:i,links:n,isNew:l})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsx)("h2",{className:"contents",children:(0,t.jsxs)("button",{type:"button",onClick:r,"aria-expanded":!!e,"aria-label":`Toggle ${i} 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:i}),l&&(0,t.jsx)(I.default,{})]}),(0,t.jsx)("span",{"aria-hidden":"true",children:e?(0,t.jsx)(B.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(E.Plus,{size:"md",className:"text-black"})})]})}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:n.map(e=>(0,t.jsx)(P,{sourceModule:"header-nav",sourceElement:e.name,...e,isInGroup:!0},e.name))})]},i);var T=e.i(611540),F=e.i(304116),K=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"}],$={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},V=(0,i.forwardRef)((e,r)=>{let[o,d]=(0,l.useAtom)(h.settingsMenuOpenAtom),m=(0,l.useAtomValue)(C.isImperialUnitsAtom),x=(0,R.useParams)(),f=(x?.locale||"en-US").split("-")[1],{location:g}=(0,p.useLocation)(),b=(0,y.useCanonicalBasePath)(),{user:{isUserLoggedIn:v}}=(0,j.useUser)(),B=(0,w.useUserLogout)(),E=(0,k.useRefMemo)(B),z=g?.placeId||"",I=g?.featureId,P=g?.canonicalID,V=(0,K.useIsSamsungPartner)(),G=(0,L.usePageLocale)(),D=(0,l.useAtomValue)(_.activityHubMenuEnabledAtom),q=(0,u.useIsMobile)(),Q=(0,M.useSendInteractionEvent)(),W=(0,n.useTranslations)("SidebarNavigation"),Y=(0,n.useTranslations)("ActivityHubDriver"),J=(0,n.useTranslations)("UserRegistration"),X=(0,S.useVideoNavUrl)(),[Z,ee]=(0,i.useState)({}),et=(0,i.useCallback)(e=>(0,F.buildLocationPageHref)({pageType:e,locale:G,canonicalBasePath:b,canonicalID:P,featureId:I,placeId:z,skipCanonical:V}),[G,b,P,I,z,V]),ea=(0,i.useMemo)(()=>[{name:W("weatherForecasts"),links:[{name:W("today"),url:et("today")},{name:W("hourly"),url:et("hourbyhour")},{name:W("tenday"),url:et("tenday")}]},{name:W("radarAndMaps"),links:[{name:W("interactiveRadarMap"),url:`${(0,T.interpolateUrl)(T.URLS.interactiveMap,{locale:G,locId:z})}?animation=true`},..."en-US"===G?[{name:"US Forecast",url:T.URLS.usForecast},{name:"US Satellite & Radar",url:T.URLS.usSatAndRadar},{name:"World Satellite",url:T.URLS.worldSatellite},{name:"US Severe Alerts",url:T.URLS.usSevereAlerts},{name:"US Health",url:T.URLS.usHealth}]:[]]},..."en-US"===G?[{name:"News",links:[{name:W("topStories"),url:T.URLS.news},{name:W("hurricaneCentral"),url:"/storms/hurricane-central"},{name:W("tornadoCentral"),url:"/storms/tornado-central"},{name:W("safetyAndPrep"),url:"/safety/index"},{name:W("spaceAndSkywatching"),url:T.URLS.spaceSkywatching},...X?[{name:W("video"),url:X}]:[]]}]:X?[{name:W("video"),links:[{name:W("topStories"),url:X}]}]:[],..."en-US"===G&&D&&q?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:O.map(({titleKey:e,urlKey:t},a)=>{let r=$[e],i=String(a);return{name:Y(e),url:(0,T.interpolateUrl)(T.URLS[t],{locale:G,locId:z}),onClick:()=>Q({interactionType:"click",interactionElement:r,moduleId:"hamburger-menu",modulePosition:i,destinationPageId:r},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:r,modulePosition:i}})}]:[],{name:W("productAccount"),links:[..."en-US"===G?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:J("manageAccount"),url:(0,T.interpolateUrl)(T.URLS.memberSettings,{locale:G})},{name:J("logOut"),action:E.current}]:[{name:J("createAnAccount"),url:(0,T.interpolateUrl)(T.URLS.memberSignup,{locale:G})},{name:J("logIn"),url:(0,T.interpolateUrl)(T.URLS.memberLogin,{locale:G})}]]},{name:W("lifestyle"),links:[..."en-US"===G?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:W("recipes"),url:"/home-garden/recipes"},{name:W("homeAndGarden"),url:T.URLS.homeGarden},{name:W("travelAndOutdoors"),url:T.URLS.travel},{name:W("petsAndAnimals"),url:T.URLS.pets},{name:"Health",url:"/health"}]:[],{name:W("allergyTracker"),url:et("allergy")},{name:W("airQualityIndex"),url:et("air-quality")},{name:W("coldAndFluTracker"),url:et("cold-flu")},..."en-US"===G?[{name:W("skinHealth"),url:T.URLS.skinHealth}]:[]]}],[v,E,z,G,et,X,D,q,Q]);return(0,t.jsxs)("nav",{ref:r,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)(s.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":o,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>d(e=>!e),children:[(0,t.jsx)(N.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)(c.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(U.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(A.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)(H,{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))})]})});V.displayName="Navigation";var G=e.i(710746),D=e.i(747961);let q=(0,i.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):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=i.default.forwardRef((e,a)=>(0,t.jsx)(D.BaseIcon,{ref:a,icon:q,...e}));function W(){let[e,a]=(0,l.useAtom)(h.menuOpenAtom),r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,i.useEffect)(()=>{function t(t){e&&r.current&&n.current&&!r.current.contains(t.target)&&!n.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)(s.Button,{ref:r,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>a(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(G.Close,{}):(0,t.jsx)(Q,{})}),e&&(0,t.jsx)(V,{ref:n})]})}Q.displayName="Hamburger";var Y=e.i(368847),J=e.i(809058),X=e.i(837879),Z=e.i(730921),ee=e.i(540768),et=e.i(537989);let ea=()=>{let e=(0,l.useAtomValue)(et.pageIdAtom);return(0,i.useCallback)(t=>{let a=`${e}_${t}`;(0,ee.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};var er=e.i(683199);function ei(){let{user:e,userProfile:a}=(0,j.useUser)(),l=(0,w.useUserLogout)(),{isUserLoggedIn:o,isUserPremium:d}=e,[c,u]=(0,i.useState)(!1),m=(0,X.useSubscriptionsEnabled)(),h=(0,n.useTranslations)("UserRegistration"),x=(0,Z.useLocale)(),p=ea(),f=(0,er.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)(J.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:u,children:[(0,t.jsx)(J.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":c,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(J.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{href:(0,T.interpolateUrl)(T.URLS.memberSettings,{locale:x}),"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:h("manageAccount")})]})]})}),!d&&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)(r.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{p("user_flyout_go_premium"),f({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,t.jsx)(s.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(s.Button,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:h("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,T.interpolateUrl)(T.URLS.memberLogin,{locale:x}),sourceModule:"header",sourceElement:"sign-in",children:(0,t.jsx)(s.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:h("logIn")})})})}var en=e.i(995113);function el(){let{user:e}=(0,j.useUser)(),{isUserPremium:i}=e,n=(0,X.useSubscriptionsEnabled)(),l=ea(),s=(0,er.usePremiumSource)();return i||!n?null:(0,t.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,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:()=>{l("header_go_premium"),s({sourceModule:"top-menu",sourceElement:"get-premium"})},children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(en.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,t.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var es=e.i(521231);e.s(["default",0,function({locale:e,subnav:i,hideHeaderOnDesktop:n,hideLocationPicker:s,hideGoPremiumButton:o}){let d,c=(0,u.useIsMobile)(),m=(d=(0,u.useIsMobile)(),(0,R.usePathname)().includes("/subscribe")&&!d||n&&!c),x=(0,l.useAtomValue)(h.menuOpenAtom),p=(0,l.useAtomValue)(h.locationPickerOpenAtom),f=(0,T.interpolateUrl)(T.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",x||p?"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)(W,{})}),(0,t.jsx)("div",{className:(0,a.cn)("flex items-center md:hidden",s&&"max-md:mr-auto"),children:(0,t.jsx)(r.default,{href:f,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(es.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!s&&(0,t.jsx)(v,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:i}),!o&&(0,t.jsx)(el,{}),(0,t.jsx)(ei,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",x||p?"hidden":"block"),children:i})]})}],778828)},316810,e=>{"use strict";var t=e.i(902875),a=e.i(632137);e.s(["default",0,({className:e})=>(0,t.jsx)("span",{className:(0,a.cn)("text-xxs bg-brand-200 ml-2 inline-flex h-[19px] items-center justify-center rounded-md border-2 border-white px-[3px] py-1 font-bold text-white",e),children:"New"})])},556441,e=>{"use strict";var t=e.i(902875),a=e.i(725287),r=e.i(240058),i=e.i(877957),n=e.i(368847),l=e.i(132084),s=e.i(528600),o=e.i(837879),d=e.i(498076),c=e.i(37429),u=e.i(683199);e.s(["default",0,()=>{let e=(0,a.useSearchParams)(),m=e.get("par")||e.get("partner"),h=(0,d.useIsMobile)(),x=(0,o.useSubscriptionsEnabled)(),{user:p}=(0,s.useUser)(),{isUserPremium:f}=p,g=(0,u.usePremiumSource)();return m===l.Partner.TIKTOK&&h&&x&&!f?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(c.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)(i.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(r.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>g({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])},683199,e=>{"use strict";var t=e.i(247865),a=e.i(546446),r=e.i(128541),i=e.i(537989);e.s(["usePremiumSource",0,()=>{let e=(0,a.useSetAtom)(r.purchaseSourceAttributionAtom),n=(0,a.useAtomValue)(i.pageIdAtom);return(0,t.useCallback)(({sourceModule:t,sourceElement:a,sourceUpsellPlacement:r})=>{e({sourcePage:n||null,sourceModule:t,sourceElement:a,sourceUpsellPlacement:r??null})},[e,n])}])},97506,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getContentQueryMedia=n;let r=e.r(426606),i=e.r(16689);async function n({queryId:e,channel:t,territory:a,language:l="en-US",startIndex:s=0,limit:o,relatedSeed:d}){let c=new URLSearchParams({channel:t,language:l});a&&c.set("territory",a),d&&(c.set("seedId",d.id),c.set("seedCollection",d.collection)),s>0&&c.set("startIndex",String(s)),void 0!==o&&c.set("limit",String(o));let u=`https://${(0,i.getCmsBaseUrl)()}/api/payload/v1/media/query/${encodeURIComponent(e)}?${c.toString()}`,m=await (0,r.fetchJsonWithoutCredentials)(u);return Array.isArray(m)?m:[]}},956667,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Video Player"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M7.265 5.978a.5.5 0 0 0-.765.424v3.196a.5.5 0 0 0 .765.424l2.557-1.598a.5.5 0 0 0 0-.848z"}),(0,t.jsx)("path",{d:"M14 3H2c-.552 0-1 .449-1 1v8c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V4c0-.551-.448-1-1-1m0 8.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 .5.5z"})]})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:i,...e}));n.displayName="VideoPlayer",e.s(["VideoPlayer",0,n])},957174,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Book"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,t.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:i,...e}));n.displayName="Book",e.s(["Book",0,n])},129932,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):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"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:i,...e}));n.displayName="SkincareBold",e.s(["SkincareBold",0,n])},800177,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):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"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:i,...e}));n.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,n])},995113,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:i,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...n,children:[r?(0,t.jsx)("desc",{id:i,children:r}):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",d:"M5.748 14.435a.43.43 0 0 0 .203.195.4.4 0 0 0 .164.037.4.4 0 0 0 .188-.057.43.43 0 0 0 .145-.142l5.47-7.69a.47.47 0 0 0 .046-.453.44.44 0 0 0-.156-.185.4.4 0 0 0-.223-.068H9.587l.727-3.52a.49.49 0 0 0-.084-.384.4.4 0 0 0-.146-.124A.4.4 0 0 0 9.902 2H5.694a.4.4 0 0 0-.268.094.46.46 0 0 0-.152.254L4.01 8.23a.49.49 0 0 0 .083.39q.062.082.151.126a.4.4 0 0 0 .187.04h2.032L5.7 14.147c-.014.1.003.201.049.289"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:i,...e}));n.displayName="LightningFilled",e.s(["LightningFilled",0,n])},235577,e=>{"use strict";var t=e.i(902875),a=e.i(523084),r=e.i(47524),i=e.i(632137),n=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:l,hidden:s,size:o="default",variant:d="light",className:c}){let u="sm"===o,m=(0,i.cn)("text-current",u?"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:l,"aria-hidden":"true",tabIndex:-1,className:(0,i.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"===d?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===d?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===d?"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",u?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",s&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",s&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",s&&"pointer-events-none opacity-0",c),children:"left"===e?(0,t.jsx)(a.ChevronLeft,{className:m}):(0,t.jsx)(r.ChevronRight,{className:m})})}])},457492,e=>{"use strict";var t=e.i(902875),a=e.i(247865),r=e.i(632137),i=e.i(546446),n=e.i(663333),l=e.i(235577),s=e.i(315730),o=e.i(240058);let d=(0,r.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"),c=e=>{let{activeIndex:a,index:i,link:n}=e,l=a===i,s=(0,r.cn)(d,{"bg-gray-100 text-blue-500":l});if(e.onSelect){let{onSelect:a}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>a(i,n),className:(0,r.cn)("cursor-pointer",s),"aria-current":l?"page":void 0,children:n.label})}let{basePath:c,mpa:u}=e,m=n.href??("/"===n.slug?c||"/":`${c}/${n.slug}`);return(0,t.jsx)(o.default,{href:m,mpa:u,className:s,"aria-current":l?"page":void 0,sourceModule:"subnavigation",children:n.label})},u=(0,a.memo)(e=>{let{links:a,activeIndex:o,className:d,constrained:u=!0}=e,m=(0,i.useAtomValue)(n.deviceClassAtom),{ref:h,showLeft:x,showRight:p,scrollLeft:f,scrollRight:g}=(0,s.useHorizontalScroll)({enabled:"mobile"!==m&&"tablet"!==m,scrollAmount:200,contentKey:a});return(0,t.jsxs)("div",{className:(0,r.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]",u&&"md:mr-auto md:max-w-[min(958px,100%)]",d),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,r.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":x}),"aria-hidden":"true"}),(0,t.jsx)(l.ScrollButton,{hidden:!x,onClick:f,direction:"left"}),(0,t.jsx)("div",{ref:h,className:(0,r.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:a.map((a,r)=>e.onSelect?(0,t.jsx)(c,{link:a,index:r,activeIndex:o,onSelect:e.onSelect},`${a.label}_${a.slug}`):(0,t.jsx)(c,{link:a,index:r,activeIndex:o,basePath:e.basePath,mpa:e.mpa},`${a.label}_${a.slug}`))}),(0,t.jsx)("div",{className:(0,r.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":p}),"aria-hidden":"true"}),(0,t.jsx)(l.ScrollButton,{hidden:!p,onClick:g,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,a)=>e.label===t.links[a]?.label&&e.slug===t.links[a]?.slug&&e.href===t.links[a]?.href));u.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,u],457492)},315730,e=>{"use strict";var t=e.i(147732),a=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:r=200,contentKey:i}={}){let n=(0,a.useRef)(null),l=(0,a.useRef)(null),s=(0,a.useRef)(!1),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>{let t=n.current;if(!t||!e){d(!1),u(!1);return}let{scrollLeft:a,scrollWidth:r,clientWidth:i}=t,l=Math.abs(a),o=l>2,c=l+i(0,t.debounce)(m,150),[m]),x=(0,a.useCallback)(()=>{null===l.current&&(l.current=requestAnimationFrame(()=>{m(),l.current=null}))},[m]);(0,a.useEffect)(()=>{let t=n.current;return t&&(s.current="rtl"===getComputedStyle(t).direction),m(),e&&(t?.addEventListener("scroll",x),window.addEventListener("resize",h)),()=>{null!==l.current&&cancelAnimationFrame(l.current),l.current=null,t?.removeEventListener("scroll",x),h.cancel(),window.removeEventListener("resize",h)}},[e,m,x,h,i]);let p=(0,a.useCallback)(()=>n.current?.scrollBy({left:-r,behavior:"smooth"}),[r]),f=(0,a.useCallback)(()=>n.current?.scrollBy({left:r,behavior:"smooth"}),[r]);return{ref:n,showLeft:o,showRight:c,scrollLeft:p,scrollRight:f}}])}]);