(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,911083,e=>{"use strict";var t=e.i(297647),r=e.i(477716);function i({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:s,refresh:n,getCustomAccountInfo:o}){let[l,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),[m,p]=(0,r.useState)(!1),[f,x]=(0,r.useState)(!1),g=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==g.current[0]&&(g.current=[e.id],e.transactIDs&&g.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let b=(0,r.useCallback)(()=>{try{s("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(i)})}catch{c(i)}},[s,i,n]),h=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(h.admiral=h.admiral||function(...e){(h.admiral.q=h.admiral.q||[]).push(e)},h.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),u(!0)):x(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;h.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?o().registered:r.status.registered)||m||(c(a),u(!0));else if("benefits"===e.requirement){let r=[];if(t)r=o().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void x(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?x(!0):(c(a),u(!0))}else c(a),u(!0)}})}}))},[]),(0,r.useEffect)(()=>{f&&(x(!1),b())},[f,b]),(0,r.useEffect)(()=>{m||!d||(p(!0),h.admiral("targeting","force",{candidateIDs:g.current}))},[m,d,g,h]),(0,t.jsxs)("div",{children:[l||null," "]})}e.s(["default",()=>i])},899507,e=>{"use strict";function t(e){return null==e}e.s(["isNil",()=>t])},370220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatusUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/status"}},r.getEmailPreferencesSetUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/set"}},r.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/change-email"}};let i="weather.com"},454307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setEmailPreferences=n,r.updateSubscription=o;let i=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(e){let t=(0,s.getEmailPreferencesSetUrlConfig)(),r=(0,i.urlFrom)(t),n=JSON.stringify(function(e){let{subscriptions:t,email:r,mParticleId:i}=e,a={};return t&&(a.subscriptions=t),r&&(a.email=r),i&&(a.mParticleId=i),a}(e)),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:n});return 200===o.status||400===o.status?await o.json():(0,a.handleFetchResponse)(o)}async function o(e,t,r){return n({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...r&&{attributes:r}}]})}},451086,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatus=n;let i=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(){let e=(0,s.getEmailPreferencesStatusUrlConfig)(),t=(0,i.urlFrom)(e),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,a.handleFetchResponse)(r)}},952582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_SUBSCRIPTIONS=r.MARKETING_EMAILS_GROUP=r.WEEKLY_BRIEF_GROUP=r.DAILY_NEWSLETTERS_GROUP=void 0,r.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",r.WEEKLY_BRIEF_GROUP="weekly-brief",r.MARKETING_EMAILS_GROUP="marketing-emails-1",r.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:r.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:r.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(475566),r=e.i(381477),i=e.i(899507);function a(e){if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;if(Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t=new r(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}return"u">typeof File&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}function s(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,t,r){let i=Object.keys(t);for(let a=0;a{i[e.subscriptionGroupName]=e}),e.forEach(e=>{let t=i[e.subscriptionGroupName]||{};i[e.subscriptionGroupName]=n(a(t),e,function e(t,r){if(Array.isArray(r))if(Array.isArray(t))return n(a(t),r,e);else return n([],r,e);if(s(r))if(s(t))return n(a(t),r,e);else return n({},r,e)})}),Object.values(i)):r}let x=e=>"boolean"==typeof e?{isSubscribed:e}:e;e.s(["useEmailPreferences",0,()=>{let[e,a]=(0,t.useAtom)(c),{user:s}=(0,d.useUser)(),n=(0,p.useSubscriptionsEnabled)(),u=s?.userID||null,g=s?.isUserLoggedIn||!1,b=(0,m.useCallback)(t=>{u&&a({userId:u,expiry:Date.now()+9e5,subscriptions:f(t,e?.subscriptions)})},[u,a,e?.subscriptions]),h=e&&e.userId===u&&e.expiry&&e.expiry>Date.now(),y=!n||!u||!g||h;(0,r.default)(y?void 0:`getEmailPreferencesStatus/${u}`,()=>(0,l.getEmailPreferencesStatus)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{u&&e&&b(e.subscriptions)}});let w=(0,m.useCallback)(async(t,r)=>{let i=await (0,o.setEmailPreferences)({subscriptions:t,email:g?void 0:r});return"success"===i.status&&b(f(t,e?.subscriptions)),i},[b]),v=(0,m.useCallback)(async({newsletter:e,weekly:t,marketing:r})=>{if(!n)return{status:"error",error:"Subscription is not enabled!"};let a=[!(0,i.isNil)(e)&&{subscriptionGroupName:"daily-newsletters-1",...x(e)},!(0,i.isNil)(t)&&{subscriptionGroupName:"weekly-brief",...x(t)},!(0,i.isNil)(r)&&{subscriptionGroupName:"marketing-emails-1",...x(r)}].filter(Boolean);return await w(a)},[n,w]);return{emailSubscriptions:u&&e?e.subscriptions:null,updateEmailSubscriptions:v}}],422825)},143851,e=>{"use strict";var t=e.i(475566),r=e.i(391451),i=e.i(45846),a=e.i(310847),s=e.i(776169),n=e.i(671525),o=e.i(477716),l=e.i(947118),c=e.i(737801),d=e.i(521350);function u(){let e,u,m,p,f,x=(0,t.useSetAtom)(a.userHasLoggedInBeforeAtom),g=(0,t.useAtomValue)(a.wxuLoginRedirectPageAtom),b=(0,t.useAtomValue)(a.wxuUserAnonymousIdAtom),h=(0,r.useGetCookie)(),{syncPreferencesFromUpsx:y,updatePreferences:w}=(0,s.usePreferences)(),{navigate:v}=(0,n.default)(),{login:j}=(e=(0,l.useIsInitialized)(),u=(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,other:t.other}};return window.mParticle?.Identity?.identify?.(r)},[e]),{identify:u,login:(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:t.other,other2:t.other2,other3:t.other3,other4:t.other4,twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(r)},[e]),logout:(0,o.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),A=(m=(0,l.useIsInitialized)(),p=(0,c.useEventAttributes)(),f=(0,o.useCallback)((e,t={})=>{let r={...p,...t};if(!m)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,r),console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}return f},[p,m])),N=async()=>{try{if(h("premium"))return null;return await i.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},P=()=>{let e=new URLSearchParams(window.location.search).get("ref");v((e&&`https://${e}`)??g)},S=async(e,t=!0)=>{(0,d.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),x(!0),await y()||await w({}),N(),e?.userID&&(j({email:e.email,customerid:e.userID,other:b}),A("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),t&&P()};return{login:async(e,t)=>{try{let r=await i.upsxClient.auth.login({email:e,password:t});return r&&await S({email:r.email,userID:r.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:S,authRedirect:P}}e.s(["useUserLogin",()=>u],143851)},590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),i=e.i(695203),a=e.i(604323),s=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[s.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(694914);var t=e.i(297647),r=e.i(241722),i=e.i(477716),a=e.i(475566),s=e.i(352194),n=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),p=e.i(404893),f=e.i(367810),x=e.i(251392);function g({onLoad:e,prompt:g=!0,isUserLoggedIn:b}){let h=(0,s.useTranslations)("GoogleLogin"),y=(0,a.useSetAtom)(p.googleLoginInitilizedAtom),{loginWithGoogle:w,error:v,clearError:j}=function(){let e=(0,s.useTranslations)("GoogleLogin"),[t,r]=(0,i.useState)(null),p=(0,a.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,a.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:x}=(0,d.useEmailPreferences)(),{refresh:g}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:b}=(0,c.usePreferences)(),{authSuccess:h,authRedirect:y}=(0,u.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;r(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await h({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:r,weekly:a,marketing:s,alwaysSubscribe:n}=f||{};return(t||n)&&await x({newsletter:r,weekly:a,marketing:s}).catch(e=>{console.error("Failed to update email subscriptions",e)}),y(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,a=i?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:r({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:r({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){r({header:e("somethingWentWrong")})}return!1}},[p,b,g,h,y,x,f]),error:t,clearError:(0,i.useCallback)(()=>{r(null)},[])}}(),A=(0,x.useRefMemo)(w);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{A.current?.(e)}}),y(!0)),e?.(),!b&&g&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(f.Dialog,{open:!!v,onOpenChange:e=>!e&&j(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:v?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:v?.body||""}}),primaryAction:{label:h("cancel")}})})]})}e.s(["GoogleAuthScript",()=>g],874905)},499239,e=>{"use strict";var t=e.i(751931),r=e.i(233601);(0,t.atom)("auth");let i=(0,t.atom)(null);(0,t.atom)(null),(0,t.atom)(!1);let a=(0,t.atom)(null),s=(0,r.atomWithStorage)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),n=(0,t.atom)(""),o=(0,t.atom)(null),l=(0,r.atomWithStorage)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),c=(0,t.atom)("idle");e.s(["addressDataAtom",0,i,"billingPreviewDataAtom",0,o,"cartProductIdAtom",0,s,"checkoutValidationAtom",0,c,"eventChainIdAtom",0,l,"promoCodeAtom",0,a,"tpccAtom",0,n])},782847,e=>{"use strict";var t=e.i(477716),r=e.i(959194),i=e.i(947118),a=e.i(737801);e.s(["usePurchaseStart",0,e=>{let s=(0,i.useIsInitialized)(),n=(0,a.useEventAttributes)(),[o,l]=(0,t.useState)(!1),c=(0,t.useRef)(!1),d=(0,t.useMemo)(()=>{let t={...n,step:e.step??"start",accountCreated:e.accountCreated??!1,accountLogin:e.accountLogin??!1,completed:e.completed??!1,eventChainId:e.eventChainId,premiumProductId:e.premiumProductId??void 0,weatherMode:e.weatherMode??"normal",experimentJoinList:e.experimentJoinList??void 0,mParticleGranted:e.mParticleGranted??!0};return void 0===t.premiumProductId&&delete t.premiumProductId,void 0===t.experimentJoinList&&delete t.experimentJoinList,t},[n,e.step,e.accountCreated,e.accountLogin,e.completed,e.eventChainId,e.premiumProductId,e.weatherMode,e.experimentJoinList,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,r.areObjectValuesDefined)(d)&&!o&&l(!0)},[d,o]),(0,t.useCallback)(async()=>{if(s&&o&&!c.current)try{window.mParticle?.logEvent?.("purchase-start",window.mParticle?.EventType?.Other,d),c.current=!0,console.debug(`MParticle: Event "purchase-start" tracked - ${d.pageId}`)}catch(e){console.error('MParticle: Event "purchase-start" failed',e)}},[s,d,o])}])},241329,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getSubscriptionDataUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"api/v1/subs/catalog",query:{filter:"subscribe",experience:"wx"},fetchOptions:{credentials:"include"}}}},806227,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getSubscriptionData=n;let i=e.r(414655),a=e.r(678651),s=e.r(241329);async function n(){let e=(0,s.getSubscriptionDataUrlConfig)(),t=(0,a.urlFrom)(e),r=await fetch(t,{credentials:"include",headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,i.handleFetchResponse)(r)}},527330,e=>{"use strict";var t=e.i(297647),r=e.i(458645),i=e.i(240058),a=e.i(477716),s=e.i(632137);let n=[{handlerArgument:"annual",caption:"Yearly"},{handlerArgument:"monthly",caption:"Monthly"}],o=({selectedPeriod:e,setSelectedPeriod:r})=>(0,t.jsxs)("div",{className:"mt-4 mb-12 flex items-center justify-center gap-5 max-md:mx-auto max-md:mt-2 max-md:mb-8",children:[(0,t.jsx)("div",{className:"max-w:42.5 mx-auto flex items-center gap-2 p-1",children:n.map(i=>(0,t.jsxs)("button",{className:(0,s.cn)("relative m-0 min-w-20 cursor-pointer rounded-[18px] border border-[#ffffff00] px-2 py-[5px] text-center text-sm leading-[1.5] text-white transition-all duration-[0.2s] outline-none select-none",{"border-[#ffffff]":i.handlerArgument===e}),onClick:()=>r(i.handlerArgument),children:[i.caption,(0,t.jsx)("div",{className:(0,s.cn)("absolute top-0 left-0 h-full w-full rounded-[18px] border border-[#ffffff80] transition-all duration-[0.2s]",{"border-[#ffffff]":i.handlerArgument===e})})]},i.handlerArgument))}),(0,t.jsxs)("div",{className:"text-center text-sm font-normal text-white",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Save up to 50% "}),"on a yearly subscription"]})]});var l=e.i(671525),c=e.i(543512),d=e.i(498076),u=e.i(877957),m=e.i(528600),p=e.i(475566),f=e.i(499239);let x=()=>{let{navigate:e}=(0,l.default)(),t=(0,p.useSetAtom)(f.cartProductIdAtom);return async r=>{t(r.id),e("/subscribe/checkout")}};var g=e.i(782847);let b=function({offer:e,selectedPeriod:r}){let{displayCurrentPlanText:i,ctaButtonClass:a,action:n,selectedPlan:o,reasonsToSubscribe:b,priceText:h,productName:y,buttonCtaText:w,textColorClass:v,billingDescription:j,billingDescriptionClass:A,afterCtaCaption:N="",cardWrapperClass:P,disableAction:S}=((e,r)=>{let{navigate:i}=(0,l.default)(),a=x(),{user:{isUserLoggedIn:s,subscriptionTier:n}}=(0,m.useUser)(),o=(0,d.useIsMobile)(),u=n===c.UserSubscriptionTiers.standard,b="annual"===r,h=e.plans.find(e=>e.type===r),y=(0,p.useAtom)(f.eventChainIdAtom)[0],w=(0,g.usePurchaseStart)({step:"start",accountCreated:!1,accountLogin:!1,completed:!1,eventChainId:y||"",premiumProductId:h?.id}),v="leading-none text-[34px]",j='text-xl leading-tight"';switch(!0){case e.product.toLowerCase().includes("ad free"):return{productName:"Standard",buttonCtaText:"Get started",textColorClass:"text-brand-300",ctaButtonClass:"text-brand-300 !bg-transparent border-brand-300",cardWrapperClass:"w-[290px] bg-[#f2f2f2e6]",reasonsToSubscribe:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"font-bold",children:"NO ADS"}),(0,t.jsx)("li",{children:"Morning Brief newsletter"})]}),displayCurrentPlanText:!1,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:j,children:"$"}),(0,t.jsx)("div",{className:v,children:b?"0.84":h?.displayPrice?.total})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month",b&&(0,t.jsxs)(t.Fragment,{children:[",",(0,t.jsx)("br",{}),`billed ${h.displayPrice.currencySymbol}${h.displayPrice.total.toFixed(2)} yearly`]})]}),selectedPlan:h,disableAction:h.disabled,action:async()=>{await w(),a(h)}};case e.product.toLowerCase().includes("premium"):return{productName:"Premium",buttonCtaText:b?"Try free for 7 days*":"Get Started",textColorClass:"text-brand-300",ctaButtonClass:"text-white !bg-brand-300 border-brand-300",cardWrapperClass:"w-[405px] bg-white",reasonsToSubscribe:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"font-bold",children:"NO ADS"}),(0,t.jsx)("li",{children:"Morning Brief newsletter"}),(0,t.jsx)("li",{children:"72-Hour Future Radar"}),(0,t.jsx)("li",{children:"192-Hour-forecast"}),(0,t.jsx)("li",{children:"Extended 15-Minute Details"}),(0,t.jsxs)("li",{className:"font-bold",children:["Storm Radar Premium App"," ",(0,t.jsx)("span",{className:"text-[#FF4C02]",children:"➜ NOW INCLUDED!"})]})]}),displayCurrentPlanText:!1,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:j,children:"$"}),(0,t.jsx)("div",{className:v,children:b?"2.50":h?.displayPrice?.total})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month",b&&`, billed ${h.displayPrice.currencySymbol}${h.displayPrice.total.toFixed(2)} yearly`,b&&(0,t.jsxs)("div",{className:"font-semibold uppercase",children:["try",(0,t.jsx)("span",{className:"text-[#1EB955]",children:" free "}),"for 7 days!"]})]}),selectedPlan:h,afterCtaCaption:b?"*New subscribers only":"",disableAction:h.disabled,action:async()=>{await w(),a(h)}};default:return{productName:"Basic",buttonCtaText:"Get started with ads",textColorClass:"text-gray-900",ctaButtonClass:"text-slate-800 !bg-transparent border-gray-400",cardWrapperClass:"w-[290px] bg-[#f2f2f2e6]",reasonsToSubscribe:o?(0,t.jsx)("li",{children:"Morning Brief newsletter"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:"Sign in for fewer ads"}),(0,t.jsx)("li",{children:"Morning Brief newsletter"})]}),displayCurrentPlanText:u,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:j,children:"$"}),(0,t.jsx)("div",{className:v,children:"0"})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month,",(0,t.jsx)("br",{}),"ad-supported"]}),billingDescriptionClass:"text-gray-500",selectedPlan:h,disableAction:s,action:()=>i("/signup")}}})(e,r);return(0,t.jsxs)("div",{className:(0,s.cn)(P,"relative box-border flex min-h-[457px] flex-col rounded-[20px] p-7.5 max-md:min-h-auto max-md:w-full"),children:[o.label&&(0,t.jsx)("div",{className:(0,s.cn)("bg-brand-300 absolute top-0 right-6 translate-y-[-50%] rounded-lg px-2 py-[3px] text-[11px] leading-[13px] font-semibold tracking-[0.22px] text-white uppercase backdrop-blur-[10px]"),children:o.label}),(0,t.jsx)("div",{className:(0,s.cn)("text-[32px] leading-[1.4] font-bold max-md:text-xl",v),children:y}),(0,t.jsxs)("div",{className:(0,s.cn)("text-brand-300 flex min-h-10.5 items-start gap-2",A),children:[(0,t.jsx)("div",{className:"flex items-start justify-start gap-1 leading-[1.5] font-normal",children:h}),(0,t.jsx)("div",{className:"text-sm leading-[1.5] font-normal",children:j})]}),(0,t.jsx)("ul",{className:"mt-5.5 box-border block list-inside list-disc border-t border-[#00000033] px-2 pt-5.5 leading-[1.5] max-md:gap-1.5 max-md:text-sm",children:b}),i?(0,t.jsx)("div",{className:"absolute bottom-4 left-0 w-full text-center text-sm font-semibold text-[#999] uppercase",children:"Your current plan"}):(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)(u.Button,{className:(0,s.cn)("m-0 mt-5.5 box-border block h-14 w-full rounded-2xl border text-sm font-bold",a,S&&"!pointer-events-none !cursor-not-allowed !opacity-30"),onClick:n,disabled:S,children:w}),(0,t.jsx)("div",{className:"mt-5.5 h-[15px] text-center text-sm",children:N})]})]})},h={slug:"free-free-plan",product:"Free",position:0,plans:[{name:"Basic",termId:"standard",id:"free-plan",type:"monthly",displayPrice:{interval:"month",currencySymbol:"$",discountAmount:0,discountPercent:0,lineItems:[{productLineItemName:"Free Weather Service",price:0},{productLineItemName:"Morning Brief Newsletter",price:0}],price:0,total:0}},{name:"Basic",termId:"standard",id:"free-plan",type:"annual",displayPrice:{interval:"year",currencySymbol:"$",discountAmount:0,discountPercent:0,lineItems:[{productLineItemName:"Free Weather Service",price:0},{productLineItemName:"Morning Brief Newsletter",price:0}],price:0,total:0}}]},y=function({offers:e}){let r=(0,a.useMemo)(()=>[h,...e],[e]),[i,s]=(0,a.useState)("annual");return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center max-md:flex-col-reverse",children:[(0,t.jsx)("div",{className:"relative mx-auto mb-6 box-border flex w-full max-w-256.5 justify-center gap-5 max-md:flex-col-reverse max-md:items-center max-md:gap-2.5",children:r.map(e=>(0,t.jsx)(b,{offer:e,selectedPeriod:i},`${e.product}_${e.slug}`))}),(0,t.jsx)(o,{selectedPeriod:i,setSelectedPeriod:s})]})};var w=e.i(381477),v=e.i(806227),j=e.i(37429);let A=function({annualPremiumPlan:e}){let r=x();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center px-5 py-16 text-center text-white max-md:px-4 max-md:py-15",style:{background:"linear-gradient(90deg, #161f4d 0%, #1e2972 25%, #2e3ea7 75%, #5578b0 100%)"},children:[(0,t.jsx)("p",{className:"mt-8 mb-16 flex text-center text-[36px] font-bold text-white max-md:mb-10 max-md:text-2xl",children:"Get Full Access to Premium Features"}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-x-10 gap-y-15 max-md:block max-md:w-full lg:mx-auto lg:max-w-300",children:[{title:"No ads",description:"Just helpful weather insight. Get on with living your best life.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_no_ads_icon.png",caption:"Also included in Basic plan."},{title:"Premium map layers",description:"72-hour future radar, windstream, 30-mile lightning, and 48-hour future snowfall layers.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_premium_map_icon.png"},{title:"Extended hourly forecast",description:"Detailed, hour-by-hour forecast breakdown for the next 8 days.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_extended_forecast_icon.png"},{title:"Extended 15-minute details",description:"Go deeper into your forecast with more precision for better decisions.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_extended_details_icon.png"},{title:"Morning Brief newsletter",description:"Your local forecast, plus daily trivia, stunning photos, and our meteorologists' top picks. All in your inbox, every morning.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_morning_brief_icon.png",caption:"Also included in Core and Basic plans."},{title:"Storm Radar app",description:"Access to Storm Radar, the all-in-one high-resolution storm & hurricane tracker, including 6½ hours of global future radar and even more advanced map layers.",logoUrl:"https://s.w-x.co/subscribe_page_premium_features_storm_radar_app_icon.png",isNewBadge:!0,isLogoWide:!0}].map(({title:e,description:r,logoUrl:i,isLogoWide:a,isNewBadge:n,caption:o})=>(0,t.jsxs)("div",{className:(0,s.cn)("flex w-full flex-col items-center justify-start gap-2.5 max-md:mb-12 lg:max-w-[295px]",{"relative box-border rounded-[20px] bg-[#ffffff1a] p-4":n}),children:[n&&(0,t.jsx)("div",{className:"absolute top-4 right-4 rounded-2xl bg-[#FF4C02] px-3 py-1.5 text-center text-[11px] leading-none font-bold whitespace-nowrap text-white",children:"NOW INCLUDED!"}),(0,t.jsx)("div",{className:"flex w-full items-center justify-start",children:(0,t.jsx)(j.default,{src:i,alt:"",className:(0,s.cn)("m-0 block h-14.5 w-auto p-0 text-left",{"w-[91px]":a}),rounded:!1})}),(0,t.jsxs)("div",{className:"w-full text-left leading-[normal]",children:[(0,t.jsxs)("div",{className:"my-4 w-full text-[22px] font-extrabold not-italic max-md:my-2",children:[n&&(0,t.jsx)("span",{style:{color:"#FF4C02"},children:"NEW: "}),e]}),(0,t.jsx)("p",{className:"m-0 w-full text-base font-normal not-italic",children:r}),o&&(0,t.jsx)("p",{className:"mt-1 mb-3.5 text-sm font-medium text-[#AACBFF]",children:o})]})]},e))}),e&&(0,t.jsxs)("div",{className:"mt-16 text-center",children:[(0,t.jsx)(u.Button,{className:(0,s.cn)("box-border block h-14 w-full rounded-2xl border bg-white font-bold text-[#1E2972] hover:bg-[#EEEEEE]",e.disabled&&"!pointer-events-none !cursor-not-allowed !opacity-30"),onClick:()=>r(e),disabled:e.disabled,children:"Try Premium free for 7 days"}),(0,t.jsx)("span",{className:"mt-4 block text-xs text-white",children:"Free for 7 days, then $29.99 per year after. For new subscribers only."})]})]})};var N=e.i(747961);let P=(0,a.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:n,"aria-labelledby":r,"aria-describedby":a,...s,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"User Anonymous"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0m0 1.35C6.118 1.35 1.35 6.118 1.35 12c0 3.249 1.455 6.159 3.75 8.112V19.8l.005-.213A4.4 4.4 0 0 1 9.5 15.4l5.213.005A4.4 4.4 0 0 1 18.9 19.8l.001.312A10.63 10.63 0 0 0 22.65 12c0-5.882-4.768-10.65-10.65-10.65m0 3.8a4.3 4.3 0 1 1 0 8.6 4.3 4.3 0 0 1 0-8.6"})]})),S=a.default.forwardRef((e,r)=>(0,t.jsx)(N.BaseIcon,{ref:r,icon:P,...e}));S.displayName="UserAvatarFilledAlt",e.s(["default",0,()=>{let{user:{isUserLoggedIn:e}}=(0,m.useUser)(),{data:{data:a=[]}={}}=(0,w.default)("subs-data",v.getSubscriptionData,{revalidateOnFocus:!1,dedupingInterval:6e4}),s=a.find(e=>e.product.toLowerCase().includes("premium")),n=(s?.plans||[]).find(e=>"annual"===e.type);return(0,t.jsxs)("div",{className:"relative flex flex-col bg-white",children:[(0,t.jsxs)("div",{className:"relative flex max-w-screen flex-col items-center bg-white bg-cover bg-bottom-right bg-no-repeat bg-blend-multiply max-md:p-4",style:{backgroundImage:"linear-gradient(270deg, rgba(0, 112, 148, 0) 0%, rgba(17, 100, 162, 0.6) 48.08%, rgba(32, 71, 148, 0.6) 100%), url('https://s.w-x.co/subscribe_page_hero_background.jpg')"},children:[(0,t.jsx)(i.default,{href:"/",className:"absolute top-5.5 left-5.5 cursor-pointer bg-transparent max-md:hidden",children:(0,t.jsx)(r.default,{className:"h-12 w-12 text-white"})}),!e&&(0,t.jsxs)(i.default,{href:"/login",className:"absolute top-5.5 right-7.5 flex h-12 w-auto cursor-pointer items-center justify-center gap-2 rounded-lg border-1 border-blue-500 bg-gray-100 px-4 text-base font-bold whitespace-nowrap text-black no-underline max-md:hidden",children:[(0,t.jsx)(S,{className:"h-3.5 w-3.5"}),"Sign In for fewer ads"]}),(0,t.jsxs)("div",{className:"max-w-full px-5.5",children:[(0,t.jsxs)("div",{className:"mx-auto box-border w-full max-w-256.5 py-16 max-md:max-w-full max-md:py-4",children:[(0,t.jsxs)("div",{className:"mt-5.5 mb-7.5 block text-left text-[48px] leading-[1.1] font-extrabold tracking-[-0.5px] text-white max-md:m-0 max-md:p-0 max-md:text-[28px] max-md:font-black",children:["Upgrade for Premium",(0,t.jsx)("br",{}),"Forecasts, Ad-Free"]}),(0,t.jsx)("span",{className:"m-0 block text-left text-lg leading-[1.5] font-semibold text-white max-md:text-sm",children:"Join the millions who trust The Weather Channel to stay informed and safe."})]}),(0,t.jsx)(y,{offers:a})]})]}),(0,t.jsx)(A,{annualPremiumPlan:n}),(0,t.jsx)("div",{className:"relative overflow-hidden",children:(0,t.jsx)("img",{src:"https://arttrk.com/pixel/?ad_log=referer&action=content&pixid=30e4a728-4d82-494e-b110-fab662e0628f",width:"1",height:"1",className:"absolute top-100000"})})]})}],527330)},993862,e=>{"use strict";let t=e.i(401232).SWRConfig;e.s(["S",()=>t])}]);