(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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:i=10,sort:l="-publishdate"}){let s={q:Object.keys(t).reduce((e,a)=>{let r=t[a];return r instanceof Array?[...e,...r.map(e=>n(a,e))]:[...e,n(a,r)]},[]).join(";"),pg:`${a},${i}`,format:"json",sort:l},o=(0,r.queryStringToSearchParams)(s).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:n=10,sort:i="-publishdate"}){let l={q:t,pg:`${a},${n}`,format:"json",sort:i},s=(0,r.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},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 r=e.r(678651);function n(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 r=e.r(414655),n=e.r(678651),i=e.r(718043);a.getQuickNav=async()=>{let e=(0,n.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(t)}},10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},731672,e=>{"use strict";var t=e.i(546446),a=e.i(530102),r=e.i(671525),n=e.i(889753),i=e.i(45846),l=e.i(284007),s=e.i(756227),o=e.i(318849),c=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(n.userPreferencesAtom),d=(0,s.useResetAuthState)(),{refresh:u}=(0,r.usePageNavigation)();return async()=>{try{return(0,c.regenerateMetricsSession)(),await i.upsxClient.auth.logout(),d(),e(l.RESET),(0,a.deleteCookie)("twc-user",{domain:".weather.com"}),(0,o.disableSwrPersist)(),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},104777,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var n in r)Object.defineProperty(a,n,{enumerable:!0,get:r[n]});let i=e.r(836549),l=e.r(560716),s=e.r(544383)},129932,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},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":n,...i,children:[r?(0,t.jsx)("desc",{id:n,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"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="SkincareBold",e.s(["SkincareBold",0,i])},800177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},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":n,...i,children:[r?(0,t.jsx)("desc",{id:n,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"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,i])},179777,e=>{"use strict";var t=e.i(546584),a=e.i(592121),r=e.i(961123);function n(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,a.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let a=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let a=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${a}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=a,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),n()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${a}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});a&&(r.current=a.setRoute)}},[e.route]),null}function s(e){let n=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,a=(0,r.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!a||!n)return a;let l=a;try{let e=Object.entries(n);for(let[t,a]of e)if(!Array.isArray(a)){let e=i(a);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,a]of e)if(Array.isArray(a)){let e=i(a.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return a}})();return a.default.createElement(l,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return a.default.createElement(a.Suspense,{fallback:null},a.default.createElement(s,{...e}))}])},665078,e=>{"use strict";var t,a=e.i(546584),r={scriptHostname:("u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof a.default?"dpl_8HKQK9irDyWBmzcQPV6j5FMwbJ9f":void 0},n=e.i(592121),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:a}){return(0,n.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let a=document.createElement("script");for(let[n,i]of(a.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,a.setAttribute("data-explicit-opt-in","true"),e.nonce&&a.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))i&&a.setAttribute(n,i);(document.head||document.documentElement).appendChild(a)}}({nonce:a}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],665078)},867775,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(730921),n=e.i(683903),i=e.i(877957),l=e.i(367810),s=e.i(901351),o=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(611540);let m=({isUserLoggedIn:e,regime:m,deviceClass:h,experience:p,isPremiumUser:f})=>{let x=(0,n.useTranslations)("PrivacyConsentModal"),g=(0,r.useLocale)(),v=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:g}),[b,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(!1),[S,C]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||f||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),a=localStorage.getItem("saleOfDataConflict");t?(j(!0),w(!0)):e&&a&&(C(!0),w(!0))},[m,f,e]);let k=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},N=t=>{let a=window,r=window.top,n=a.DprSdk||r?.DprSdk;n?(n.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&k({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):S&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},A="",R="";if(y?(A="gpcConflictHeader",R="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(R+="_usa-ccpa")):S&&(A="saleOfDataConflictHeader",R="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(R+="_usa-ccpa")),R)return(0,t.jsx)(l.Dialog,{open:b,onOpenChange:w,children:(0,t.jsxs)(l.DialogContent,{className:`text-center ${"desktop"!==h?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===p?"wu-theme":""} `,onEscapeKeyDown:e=>{(S||y)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[A&&(0,t.jsx)(l.DialogHeader,{children:(0,t.jsx)(l.DialogTitle,{className:"text-xl font-semibold",children:x(A)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:x.rich(R,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:v,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(l.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(i.Button,{onClick:()=>{N(!0)},variant:"default",className:"w-full sm:w-auto",children:x("optInButtonText")}),(0,t.jsx)(i.Button,{onClick:()=>{N(!1)},variant:"secondary",className:"w-full sm:w-auto",children:x("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,m,"default",0,m])},520362,e=>{"use strict";var t=e.i(699173),a=e.i(592121);let r=e=>{let{apiRoute:t,depth:r,refresh:n,serverURL:i}=e,l=(0,a.useRef)(!1),s=(0,a.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof n?n():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[n,i]);return(0,a.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),l.current||(l.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:i}),n()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[i,s,r,t,n]),null};var n=e.i(961123);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),l={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let a=(0,n.useRouter)();return(0,t.jsx)(r,{...e,refresh:a.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,a.useRef)(null),t=(0,a.useRef)(null),r=(0,a.useRef)(null),n=(0,a.useRef)(null),s=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{if("u"{let a=t.current,n=e.current;if(!a||!n)return;if(!a.isConnected){t.current=null,n.style.opacity="0",r.current?.disconnect();return}let i=a.getBoundingClientRect();n.style.top=`${i.top+window.scrollY}px`,n.style.left=`${i.left+window.scrollX}px`,n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.opacity="1"},[]),d=(0,a.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),u=(0,a.useCallback)(()=>{t.current&&null===n.current&&(n.current=requestAnimationFrame(()=>{n.current=null,c()}))},[c]),m=(0,a.useCallback)(e=>{if(e===s.current)return;let a=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!a)return void i.debug("No element found for block ID",{blockId:e});let n=(e=>{let t=e,a=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?m(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==n.current&&cancelAnimationFrame(n.current),r.current?.disconnect(),e.current?.remove()}},[m,d,u]),null},"LivePreviewListener",0,s],520362)},677997,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},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":n,...i,children:[r?(0,t.jsx)("desc",{id:n,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",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"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="Lightning",e.s(["Lightning",0,i])},460581,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(240058),n=e.i(64412),i=e.i(677997),l=e.i(995113),s=e.i(702957),o=e.i(489408),c=e.i(113016),d=e.i(312401),u=e.i(807215),m=e.i(876329),h=e.i(632137),p=e.i(546446),f=e.i(827049),x=e.i(537989),g=e.i(381477),v=e.i(190344),b=e.i(427977),w=e.i(961123),y=e.i(559421),j=e.i(388706),S=e.i(498076),C=e.i(683903),k=e.i(304116),N=e.i(528600),A=e.i(837879);e.s(["default",0,function(){let e=(0,S.useIsMobile)(),R=(0,w.usePathname)(),L=(0,y.useCanonicalBasePath)(),U=(0,p.useAtomValue)(x.pageIdAtom),E=(0,C.useTranslations)("SidebarNavigation"),{user:_}=(0,N.useUser)(),{isUserPremium:P}=_,I=(0,A.useSubscriptionsEnabled)(),{location:B,isLoading:O}=(0,n.useLocation)(),$=(0,p.useAtomValue)(f.pageLocaleAtom),T=(0,v.useVideoNavUrl)(),{data:M}=(0,g.default)(["navigation/getQuickNav",$],()=>(0,b.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),z=(0,a.useMemo)(()=>{if(O||!B)return[];let e=B.placeId||"",a=B.featureId,r=B.canonicalID,n=(0,k.buildLocationPageHref)({pageType:"today",locale:$,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:L}),h=(0,k.buildLocationPageHref)({pageType:"radar",locale:$,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:L}),p=L?R.split("/").pop():null,f=L?j.CANONICAL_PAGE_TYPES.includes(p):R.includes("/weather/today/")||R.includes("/weather/hourbyhour/")||R.includes("/weather/tenday/")||R.includes("/weather/monthly/")||R.includes("/forecast/allergy/")||R.includes("/forecast/air-quality/")||R.includes("/forecast/cold-flu/"),x=R.includes("/weather/radar/")||R.includes("/weather/maps/"),g=R.includes("/subscribe"),v="video"===U,b=M?.videoLinkLocaleInclude?.["en-US"],w=b?.override?`?${b?.adRef}`:"",y=T?`${T}${w}`:"",S="h-6 w-6 text-inherit";return[{name:E("forecast"),href:n,icon:(0,t.jsx)(s.PartlyCloudyBold,{className:S}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:S}),isActive:f},...T?[{name:E("video"),href:y,icon:(0,t.jsx)(c.VideoPlayerBold,{className:S}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:S}),isActive:v}]:[],{name:E("radar"),href:h,icon:(0,t.jsx)(u.RadarBold,{className:S}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:S}),isActive:x},...I&&!P&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(i.Lightning,{className:S}),activeIcon:(0,t.jsx)(l.LightningFilled,{className:S}),isActive:g}]||[]]},[O,B,$,R,U,T,M,L]);return e&&0!==z.length?(0,t.jsx)("nav",{className:"fixed right-0 bottom-0 left-0 z-110 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:z.map(e=>(0,t.jsxs)(r.default,{href:e.href,className:(0,h.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}),"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:(0,h.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold"),children:e.name})]},e.name))})})}):null}])},778828,e=>{"use strict";var t=e.i(699173),a=e.i(632137),r=e.i(240058),n=e.i(592121),i=e.i(683903),l=e.i(546446),s=e.i(877957),o=e.i(809058),c=e.i(616448),d=e.i(526456),u=e.i(527207),m=e.i(226602),h=e.i(498076);let p=({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 f=e.i(436066);e.i(24959);var x=e.i(686557),g=e.i(64412),v=e.i(262453),b=e.i(214008);let w="LOCATION_PICKER_POPUP_CLOSED",y="light",j={light:"bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500",dark:"bg-white text-gray-900 hover:bg-[#E6E6E6] active:bg-[#CCCCCC] focus-visible:ring-2 focus-visible:ring-blue-500"},S={light:"bg-gray-900 text-white",dark:"bg-white text-gray-900"},C={light:"fill-gray-900",dark:"fill-white"},k={light:"text-gray-300",dark:"text-[#5C5C5C]"},N={light:"bg-white/12 text-white hover:bg-white/20",dark:"bg-black/8 text-gray-900 hover:bg-black/14"};function A({locale:e,className:r}){let R=(0,i.useTranslations)("Header"),L=(0,h.useIsMobile)(),U=(0,n.useRef)(null),E=(0,v.usePreciseGeocode)(),{location:_}=(0,g.useLocation)(),{location:P}=(0,g.useLocation)("geolocation"),I=_?.name||_?.city||_?.displayName,B=(0,b.isSameLocation)(_,P),[O,$]=(0,l.useAtom)(f.locationPickerOpenAtom),[T,M]=(0,n.useState)(!1);(0,n.useEffect)(()=>{try{"true"!==localStorage.getItem(w)&&M(!0)}catch{}},[]);let z=(0,n.useCallback)(()=>{M(!1);try{localStorage.setItem(w,"true")}catch{}},[]),D=(0,n.useCallback)(()=>{T&&z(),$(!O)},[T,z,$,O]);(0,n.useEffect)(()=>{if(!O||L)return;let e=e=>{U.current&&!U.current.contains(e.target)&&$(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[O,L,$]),(0,n.useEffect)(()=>{if(!O)return;let e=e=>{"Escape"===e.key&&$(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[O,$]);let F=T&&!O;return(0,t.jsxs)("div",{ref:U,className:(0,a.cn)("relative max-md:mr-auto",r),children:[(0,t.jsxs)(o.Popover,{open:F,children:[(0,t.jsx)(o.PopoverAnchor,{asChild:!0,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:D,"aria-expanded":O,"aria-haspopup":"dialog","aria-label":I??R("searchPlaceholderText"),"data-state":O?"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",j[y]),children:[B&&E?(0,t.jsx)(d.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):B&&!E?(0,t.jsx)(c.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:I||(0,t.jsx)(p,{animationStrings:["Location"]})}),(0,t.jsx)(u.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!O&&"rotate-180"),"aria-hidden":"true",title:""})]})})}),(0,t.jsx)(o.PopoverContent,{side:"bottom",align:"start",sideOffset:12,"data-component":"location-picker-onboarding",className:(0,a.cn)("w-[320px] origin-top rounded-3xl border-none p-4 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)]",S[y]),arrowClassName:C[y],onOpenAutoFocus:e=>e.preventDefault(),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-base leading-tight font-bold",children:"✨ Switching locations is easier with the new location selector."}),(0,t.jsx)("p",{className:(0,a.cn)("text-sm leading-tight font-medium",k[y]),children:"Search for new locations or choose from a list of your saved locations and recent searches."})]}),(0,t.jsx)("button",{type:"button",onClick:z,"aria-label":"Dismiss",className:(0,a.cn)("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-2xl transition-colors",N[y]),"data-testid":"location-picker-popup-close",children:(0,t.jsx)(m.Close,{className:"size-4 text-inherit","aria-hidden":"true",title:""})})]})})]}),(0,t.jsx)("div",{className:(0,a.cn)(!L&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(x.Search,{locale:e,open:O,onOpenChange:$})})]})}var R=e.i(559421),L=e.i(528600),U=e.i(731672),E=e.i(792461),_=e.i(190344),P=e.i(296990),I=e.i(674885),B=e.i(336726),O=e.i(961123),$=e.i(357508),T=e.i(827049),M=e.i(449172),z=e.i(316810);let D=({url:e,action:n,name:i,isNew:l,isExternal:s,isInGroup:o})=>{if(!e&&!n)return null;let c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[i,l&&(0,t.jsx)(z.default,{})]}),s&&(0,t.jsx)(M.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),d=(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:d,target:s?"_blank":void 0,children:c}):(0,t.jsx)("button",{onClick:n,className:(0,a.cn)(d,"cursor-pointer"),children:c})},i)};var F=e.i(993269),H=e.i(859827);let V=({isExpanded:e,toggleCategory:r,name:n,links:i})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsxs)("div",{className:(0,a.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:r,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,t.jsx)("h2",{className:(0,a.cn)("text-gray-900 md:font-bold"),children:n}),(0,t.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,t.jsx)(F.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(H.Plus,{size:"md",className:"text-black"})})]}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:i.map(e=>(0,t.jsx)(D,{...e,isInGroup:!0},e.name))})]},n);var q=e.i(611540);let Q=(0,n.forwardRef)((e,r)=>{let[o,c]=(0,l.useAtom)(f.settingsMenuOpenAtom),d=(0,l.useAtomValue)(I.isImperialUnitsAtom),m=(0,O.useParams)(),h=(m?.locale||"en-US").split("-")[1],{location:p}=(0,g.useLocation)(),x=(0,R.useCanonicalBasePath)(),{user:{isUserLoggedIn:v}}=(0,L.useUser)(),b=(0,U.useUserLogout)(),w=(0,E.useRefMemo)(b),y=p?.placeId||"",j=(0,l.useAtomValue)(T.pageLocaleAtom),S=(0,i.useTranslations)("SidebarNavigation"),C=(0,i.useTranslations)("UserRegistration"),k=(0,_.useVideoNavUrl)(),[N,A]=(0,n.useState)({}),M=(0,n.useMemo)(()=>[{name:S("weatherForecasts"),links:[{name:S("today"),url:x?`${x}/today`:(0,q.interpolateUrl)(q.URLS.today,{locale:j,locId:y})},{name:S("hourly"),url:x?`${x}/hourbyhour`:(0,q.interpolateUrl)(q.URLS.hourly,{locale:j,locId:y})},{name:S("tenday"),url:x?`${x}/tenday`:(0,q.interpolateUrl)(q.URLS.tenday,{locale:j,locId:y})}]},{name:S("radarAndMaps"),links:[{name:S("interactiveRadarMap"),url:`${(0,q.interpolateUrl)(q.URLS.interactiveMap,{locale:j,locId:y})}?animation=true`},..."en-US"===j?[{name:"US Forecast",url:q.URLS.usForecast},{name:"US Satellite & Radar",url:q.URLS.usSatAndRadar},{name:"World Satellite",url:q.URLS.worldSatellite},{name:"US Severe Alerts",url:q.URLS.usSevereAlerts},{name:"US Health",url:q.URLS.usHealth}]:[]]},..."en-US"===j?[{name:S("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:S("hurricaneCentral"),url:"/storms/hurricane-central"},{name:S("tornadoCentral"),url:"/storms/tornado-central"},{name:S("safetyAndPrep"),url:"/safety/index"},{name:S("spaceAndSkywatching"),url:q.URLS.spaceSkywatching},...k?[{name:S("video"),url:k}]:[]]}]:k?[{name:S("video"),links:[{name:S("topStories"),url:k}]}]:[],{name:S("productAccount"),links:[..."en-US"===j?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:C("manageAccount"),url:(0,q.interpolateUrl)(q.URLS.memberSettings,{locale:j})},{name:C("logOut"),action:w.current}]:[{name:C("createAnAccount"),url:(0,q.interpolateUrl)(q.URLS.memberSignup,{locale:j})},{name:C("logIn"),url:(0,q.interpolateUrl)(q.URLS.memberLogin,{locale:j})}]]},{name:S("lifestyle"),links:[..."en-US"===j?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:S("recipes"),url:"/home-garden/recipes"},{name:S("homeAndGarden"),url:q.URLS.homeGarden},{name:S("travelAndOutdoors"),url:q.URLS.travel},{name:S("petsAndAnimals"),url:q.URLS.pets},{name:"Health",url:"/health"}]:[],{name:S("allergyTracker"),url:(0,q.interpolateUrl)(q.URLS.allergy,{locale:j,locId:y})},{name:S("airQualityIndex"),url:(0,q.interpolateUrl)(q.URLS.airQuality,{locale:j,locId:y})},{name:S("coldAndFluTracker"),url:(0,q.interpolateUrl)(q.URLS.coldFlu,{locale:j,locId:y})},..."en-US"===j?[{name:S("skinHealth"),url:q.URLS.skinHealth}]:[]]},..."en-US"===j?[{name:"Explore",url:"/explore"}]:[]],[v,w,y,k,x,j]);return(0,t.jsxs)("nav",{ref:r,className:(0,a.cn)("md:h-unset absolute top-full right-0 left-0 z-110 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,t.jsxs)(s.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":o,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>c(e=>!e),children:[(0,t.jsx)(P.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:h}),(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:d?"°F":"°C"}),o?(0,t.jsx)(u.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(B.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)($.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:M.map((e,a)=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,t.jsx)(V,{isExpanded:N[e.name],toggleCategory:()=>{var t;return t=e.name,void A(e=>({...e,[t]:!e[t]}))},...e}):(0,t.jsx)(D,{...e})},a))})]})});Q.displayName="Navigation";var G=e.i(747961);let K=(0,n.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},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":n,...i,children:[r?(0,t.jsx)("desc",{id:n,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"})]})),W=n.default.forwardRef((e,a)=>(0,t.jsx)(G.BaseIcon,{ref:a,icon:K,...e}));function Y(){let[e,a]=(0,l.useAtom)(f.menuOpenAtom),r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,n.useEffect)(()=>{function t(t){e&&r.current&&i.current&&!r.current.contains(t.target)&&!i.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)(m.Close,{}):(0,t.jsx)(W,{})}),e&&(0,t.jsx)(Q,{ref:i})]})}W.displayName="Hamburger";var X=e.i(368847),J=e.i(837879),Z=e.i(730921),ee=e.i(858040),et=e.i(537989);let ea=()=>{let e=(0,l.useAtomValue)(et.pageIdAtom);return(0,n.useCallback)(t=>{let a=`${e}_${t}`;(0,ee.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};function er(){let{user:e,userProfile:a}=(0,L.useUser)(),l=(0,U.useUserLogout)(),{isUserLoggedIn:c,isUserPremium:d}=e,[u,m]=(0,n.useState)(!1),h=(0,J.useSubscriptionsEnabled)(),p=(0,i.useTranslations)("UserRegistration"),f=(0,Z.useLocale)(),x=ea(),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:c?(0,t.jsxs)(o.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:u,onOpenChange:m,children:[(0,t.jsx)(o.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":u,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(o.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,q.interpolateUrl)(q.URLS.memberSettings,{locale:f}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:g,children:a?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(X.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(X.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:p("manageAccount")})]})]})}),!d&&h&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(X.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(X.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:()=>x("user_flyout_go_premium"),children:(0,t.jsx)(s.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(s.Button,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:p("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,q.interpolateUrl)(q.URLS.memberLogin,{locale:f}),children:(0,t.jsx)(s.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:p("logIn")})})})}var en=e.i(995113);function ei(){let{user:e}=(0,L.useUser)(),{isUserPremium:n}=e,i=(0,J.useSubscriptionsEnabled)(),l=ea();return n||!i?null:(0,t.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,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"),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 el=e.i(458645);e.i(647872);var es=e.i(523579);e.s(["default",0,function({locale:e,subnav:n,hideHeaderOnDesktop:i,hideLocationPicker:s,hideGoPremiumButton:o}){let c,d=(0,h.useIsMobile)(),u=(c=(0,h.useIsMobile)(),(0,O.usePathname)().includes("/subscribe")&&!c||i&&!d),m=(0,l.useAtomValue)(es.retroWeatherAtom),p=(0,l.useAtomValue)(f.menuOpenAtom),x=(0,l.useAtomValue)(f.locationPickerOpenAtom),g=m?"/retro":(0,q.interpolateUrl)(q.URLS.home,{locale:e});return u?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:"z-sticky relative top-0 w-full md: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)(Y,{})}),(0,t.jsx)("div",{className:"flex items-center md:hidden",children:(0,t.jsx)(r.default,{href:g,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(el.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),!s&&(0,t.jsx)(A,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:n}),!o&&(0,t.jsx)(ei,{}),(0,t.jsx)(er,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",p||x?"hidden":"block"),children:n})]})}],778828)},556441,e=>{"use strict";var t=e.i(699173),a=e.i(961123),r=e.i(240058),n=e.i(877957),i=e.i(368847),l=e.i(132084),s=e.i(528600),o=e.i(837879),c=e.i(498076),d=e.i(37429);e.s(["default",0,()=>{let e=(0,a.useSearchParams)(),u=e.get("par")||e.get("partner"),m=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:p}=(0,s.useUser)(),{isUserPremium:f}=p;return u===l.Partner.TIKTOK&&m&&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)(i.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(i.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(n.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",children:"Claim Now"})})]})]}):null}])}]);