(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,871546,e=>{"use strict";var t=e.i(862494),s=e.i(778235);e.s(["default",0,function({candidate:e,failedMessage:a="Authentication failed. Please try again.",protectMessage:i="Remove your adblocker.",fetch:r,refresh:l,getCustomAccountInfo:n}){let[c,d]=(0,s.useState)(""),[o,f]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[x,p]=(0,s.useState)(!1),h=(0,s.useRef)([]);(0,s.useEffect)(()=>{e.id!==h.current[0]&&(h.current=[e.id],e.transactIDs&&h.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let g=(0,s.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&l()}).catch(()=>{d(a)})}catch{d(a)}},[r,a,l]),j=(0,s.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,s.useEffect)(()=>{typeof window>"u"||(j.admiral=j.admiral||function(...e){(j.admiral.q=j.admiral.q||[]).push(e)},j.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(d(i),f(!0)):p(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!n;j.admiral("after","visitor.latest",function(s){var a;if("account"===e.requirement)(t?n().registered:s.status.registered)||u||(d(i),f(!0));else if("benefits"===e.requirement){let s=[];if(t)s=n().benefits;else{let e=document.cookie.split(";");e&&(s=(null==(a=e.find(e=>e.startsWith("admbenefits=")))?void 0:a.split(","))??[])}if(s){let t=e.benefits??[];if(0==t.length)return void p(!0);let a=!1;for(let e of t)s.includes(e)&&(a=!0);a?p(!0):(d(i),f(!0))}else d(i),f(!0)}})}}))},[]),(0,s.useEffect)(()=>{x&&(p(!1),g())},[x,g]),(0,s.useEffect)(()=>{u||!o||(m(!0),j.admiral("targeting","force",{candidateIDs:h.current}))},[u,o,h,j]),(0,t.jsxs)("div",{children:[c||null," "]})}])},899507,e=>{"use strict";e.s(["isNil",0,function(e){return null==e}])},449928,760430,355200,e=>{"use strict";e.s(["isPrimitive",0,function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}],449928),e.s(["isTypedArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],760430),e.s(["isUnsafeProperty",0,function(e){return"__proto__"===e}],355200)},370220,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getEmailPreferencesStatusUrlConfig=function(){return{host:a,protocol:"https",pathname:"/api/v1/email-preferences/status"}},s.getEmailPreferencesSetUrlConfig=function(){return{host:a,protocol:"https",pathname:"/api/v1/email-preferences/set"}},s.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:a,protocol:"https",pathname:"/api/v1/email-preferences/change-email"}};let a="weather.com"},454307,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.setEmailPreferences=l,s.updateSubscription=n;let a=e.r(678651),i=e.r(414655),r=e.r(370220);async function l(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),s=(0,a.urlFrom)(t),l=JSON.stringify(function(e){let{subscriptions:t,email:s,mParticleId:a}=e,i={};return t&&(i.subscriptions=t),s&&(i.email=s),a&&(i.mParticleId=a),i}(e)),n=await fetch(s,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:l});return 200===n.status||400===n.status?await n.json():(0,i.handleFetchResponse)(n)}async function n(e,t,s){return l({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...s&&{attributes:s}}]})}},451086,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getEmailPreferencesStatus=l;let a=e.r(678651),i=e.r(414655),r=e.r(370220);async function l(){let e=(0,r.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),s=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,i.handleFetchResponse)(s)}},952582,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.DEFAULT_SUBSCRIPTIONS=s.ON_YOUR_RADAR_GROUP=s.MARKETING_EMAILS_GROUP=s.WEEKLY_BRIEF_GROUP=s.DAILY_NEWSLETTERS_GROUP=void 0,s.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",s.WEEKLY_BRIEF_GROUP="weekly-brief",s.MARKETING_EMAILS_GROUP="marketing-emails-1",s.ON_YOUR_RADAR_GROUP="on-your-radar",s.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:s.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:s.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:s.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:s.ON_YOUR_RADAR_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(546446),s=e.i(381477),a=e.i(899507),i=e.i(449928),r=e.i(760430);function l(e){if((0,i.isPrimitive)(e))return e;if(Array.isArray(e)||(0,r.isTypedArray)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),s=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new s(e);if(e instanceof RegExp){let t=new s(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new s(e.buffer.slice(0));if(e instanceof Error){let t=new s(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}return"u">typeof File&&e instanceof File?new s([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}var n=e.i(355200);function c(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 d(e,t,s){let a=Object.keys(t);for(let i=0;i"boolean"==typeof e?{isSubscribed:e}:e;e.s(["useEmailPreferences",0,(e=!1)=>{let[i,r]=(0,t.useAtom)(x),{user:n}=(0,p.useUser)(),u=(0,y.useSubscriptionsEnabled)()||e,m=n?.userID||null,j=n?.isUserLoggedIn||!1,b=(0,g.useCallback)(e=>{if(m){var t;let s,a;r({userId:m,expiry:Date.now()+9e5,subscriptions:(t=i?.subscriptions,s=t?.length?t:h.DEFAULT_SUBSCRIPTIONS,a={},e?(s?.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{let t=a[e.subscriptionGroupName]||{};a[e.subscriptionGroupName]=d(l(t),e,function e(t,s){if(Array.isArray(s))if(Array.isArray(t))return d(l(t),s,e);else return d([],s,e);if(c(s))if(c(t))return d(l(t),s,e);else return d({},s,e)})}),Object.values(a)):s)})}},[m,r,i?.subscriptions]),w=i&&i.userId===m&&i.expiry&&i.expiry>Date.now(),P=u&&m&&j&&!w,{isLoading:I}=(0,s.default)(P?`getEmailPreferencesStatus/${m}`:void 0,()=>v(()=>(0,f.getEmailPreferencesStatus)()),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{m&&e&&b(e.subscriptions)}}),_=(0,g.useCallback)(async(e,t)=>{if(!u)return{status:"error",error:"Subscription is not enabled!"};let s=j?void 0:t,a=await v(()=>(0,o.setEmailPreferences)({subscriptions:e,email:s}));return"success"===a.status&&b(e),a},[b,u,j,i?.subscriptions]),k=(0,g.useCallback)(async({newsletter:e,weekly:t,onYourRadar:s,marketing:i})=>{let r=[!(0,a.isNil)(e)&&{subscriptionGroupName:"daily-newsletters-1",...N(e)},!(0,a.isNil)(t)&&{subscriptionGroupName:"weekly-brief",...N(t)},!(0,a.isNil)(s)&&{subscriptionGroupName:"on-your-radar",...N(s)},!(0,a.isNil)(i)&&{subscriptionGroupName:"marketing-emails-1",...N(i)}].filter(Boolean);return await _(r)},[_]);return{emailSubscriptions:m&&i?i.subscriptions:null,updateEmailSubscriptions:k,updateEmailPreference:_,isLoadingPreferences:I}}],422825)},143851,e=>{"use strict";var t=e.i(546446),s=e.i(250261),a=e.i(45846),i=e.i(310847),r=e.i(776169),l=e.i(671525),n=e.i(778235),c=e.i(947118),d=e.i(491240),o=e.i(737801),f=e.i(521350),u=e.i(391174),m=e.i(358273);e.s(["useUserLogin",0,function(){let e,x,p,h,g,j=(0,t.useSetAtom)(i.userHasLoggedInBeforeAtom),y=(0,t.useAtomValue)(i.wxuLoginRedirectPageAtom),b=(0,t.useAtomValue)(i.wxuUserAnonymousIdAtom),v=(0,s.useGetCookie)(),{syncPreferencesFromUpsx:N,updatePreferences:w}=(0,r.usePreferences)(),{navigate:P}=(0,l.default)(),{login:I}=(e=(0,c.useIsInitialized)(),x=(0,n.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let s={userIdentities:{customerid:t.customerid,email:t.email,other:(0,d.truncateIdentityValue)(t.other)}};return window.mParticle?.Identity?.identify?.(s)},[e]),{identify:x,login:(0,n.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let s={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:(0,d.truncateIdentityValue)(t.other),other2:(0,d.truncateIdentityValue)(t.other2),other3:(0,d.truncateIdentityValue)(t.other3),other4:(0,d.truncateIdentityValue)(t.other4),twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(s)},[e]),logout:(0,n.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),_=(p=(0,c.useIsInitialized)(),h=(0,o.useEventAttributes)(),g=(0,n.useCallback)((e,t={})=>{let s={...h,...t};if(!p)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,s),console.debug(`MParticle: Event "${e}" tracked`,s)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}return g},[h,p])),k=async()=>{try{if(v("premium"))return null;return await a.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},S=()=>{(0,m.regenerateMetricsSession)();let e=new URLSearchParams(window.location.search).get("ref");P((e&&`https://${e}`)??y)},A=async(e,t=!0)=>{(0,u.invalidateUpsxCache)(),(0,f.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),j(!0),await N()||await w({}),k(),e?.userID&&(I({email:e.email,customerid:e.userID,other:b}),_("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),t&&S()};return{login:async(e,t)=>{try{let s=await a.upsxClient.auth.login({email:e,password:t});return s&&await A({email:s.email,userID:s.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:A,authRedirect:S}}],143851)},590238,e=>{"use strict";var t=e.i(537989),s=e.i(827049),a=e.i(695203),i=e.i(604323),r=e.i(797770),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[s.pageLocaleAtom,e.pageLocale],[a.deviceClassAtom,e.deviceClass],[i.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},703123,e=>{"use strict";let t=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(23084);var t=e.i(862494),s=e.i(778235),a=e.i(708050),i=e.i(546446),r=e.i(769441),l=e.i(671525),n=e.i(901351),c=e.i(310847),d=e.i(776169),o=e.i(422825),f=e.i(143851),u=e.i(703123),m=e.i(404893),x=e.i(367810),p=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:h=!0,isUserLoggedIn:g}){let j=(0,r.useTranslations)("GoogleLogin"),y=(0,i.useSetAtom)(m.googleLoginInitilizedAtom),{loginWithGoogle:b,error:v,clearError:N}=function(){let e=(0,r.useTranslations)("GoogleLogin"),[t,a]=(0,s.useState)(null),m=(0,i.useSetAtom)(c.userHasLoggedInBeforeAtom),x=(0,i.useAtomValue)(u.gsiEmailStatesAtom),{updateEmailSubscriptions:p}=(0,o.useEmailPreferences)(),{refresh:h}=(0,l.usePageNavigation)(),{syncPreferencesFromUpsx:g}=(0,d.usePreferences)(),{authSuccess:j,authRedirect:y}=(0,f.useUserLogin)();return{loginWithGoogle:(0,s.useCallback)(async t=>{let{credential:s}=t;a(null);try{let e=await n.upsxClient.auth.loginWithGoogle({google_id_token:s}),t=e?.isFirstLogin;await j({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:a,weekly:i,onYourRadar:r,marketing:l,alwaysSubscribe:c}=x||{};return(t||c)&&await p({newsletter:a,weekly:i,onYourRadar:r,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),y(),!0}catch(t){console.error("Failed to login with Google",t);try{let s=t?.data,i=s?.messageCode;if(!i)throw Error("No Error Message");switch(i){case 1e3:case 1026:case 1033:a({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:a({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){a({header:e("somethingWentWrong")})}return!1}},[m,g,h,j,y,p,x]),error:t,clearError:(0,s.useCallback)(()=>{a(null)},[])}}(),w=(0,p.useRefMemo)(b),P=(0,s.useRef)(null);v&&(P.current=v);let I=P.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.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=>{w.current?.(e)}}),y(!0)),e?.(),!g&&h&&t?.prompt()},id:"google-gsi-script"}),I&&(0,t.jsx)(x.Dialog,{open:!!v,onOpenChange:e=>!e&&N(),children:(0,t.jsx)(x.BasicDialog,{showCloseButton:!1,title:I.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I.body||""}}),primaryAction:{label:j("cancel"),onClick:N}})})]})}],874905)},499239,e=>{"use strict";var t=e.i(981030),s=e.i(284007);(0,t.atom)("auth");let a=(0,t.atom)(null);(0,t.atom)(null);let i=(0,t.atom)(!1),r=(0,t.atom)(null),l=(0,s.atomWithStorage)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),n=(0,t.atom)(""),c=(0,t.atom)(null),d=(0,s.atomWithStorage)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),o=(0,t.atom)("idle");e.s(["addressDataAtom",0,a,"billingPreviewDataAtom",0,c,"cartProductIdAtom",0,l,"checkoutValidationAtom",0,o,"eventChainIdAtom",0,d,"promoCodeAtom",0,r,"showSuccessDialogAtom",0,i,"tpccAtom",0,n])},491045,e=>{"use strict";var t=e.i(284007);let s=(0,t.createJSONStorage)(()=>sessionStorage),a=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,s);e.s(["purchaseSourceAttributionAtom",0,a])},241329,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getSubscriptionDataUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"api/v1/subs/catalog",query:{filter:"subscribe",experience:"wx"},fetchOptions:{credentials:"include"}}}},806227,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getSubscriptionData=l;let a=e.r(414655),i=e.r(678651),r=e.r(241329);async function l(){let e=(0,r.getSubscriptionDataUrlConfig)(),t=(0,i.urlFrom)(e),s=await fetch(t,{credentials:"include",headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,a.handleFetchResponse)(s)}},324560,816582,468913,e=>{"use strict";var t=e.i(778235),s=e.i(546446),a=e.i(499239),i=e.i(671525),r=e.i(491045),l=e.i(537989);let n=()=>{let{navigate:e}=(0,i.default)(),n=(0,s.useSetAtom)(a.cartProductIdAtom),c=(0,s.useSetAtom)(r.purchaseSourceAttributionAtom),d=(0,s.useAtomValue)(l.pageIdAtom);return(0,t.useCallback)(async(t,s)=>{n(t.id),s&&c({sourcePage:d||null,sourceModule:s.module,sourceElement:s.element,sourceUpsellPlacement:s.upsellPlacement??null}),e("/subscribe/checkout")},[n,c,d,e])};e.s(["useCheckout",0,n],324560);var c=e.i(862494),d=e.i(632137);let o=({className:e})=>(0,c.jsxs)("svg",{className:(0,d.cn)("shrink-0",e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,c.jsx)("circle",{cx:"10",cy:"10",r:"9",stroke:"#204794",strokeWidth:"2",fill:"none"}),(0,c.jsx)("path",{d:"M6 10.5L8.5 13L14 7.5",stroke:"#204794",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});e.s(["default",0,o],816582);var f=e.i(240058),u=e.i(877957),m=e.i(37429);let x=({className:e})=>(0,c.jsx)("div",{className:(0,d.cn)("border-border-muted inline-flex flex-1 flex-col items-start justify-center self-stretch border-t bg-white/5 py-1",e),children:(0,c.jsx)("div",{className:"inline-flex items-center justify-start self-stretch overflow-hidden px-3 py-2.5",children:(0,c.jsx)("svg",{className:"mx-auto h-5 w-5 flex-1 justify-start",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M4 10.5L8 14.5L16 6.5",stroke:"#1e3a8a",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),p=({className:e})=>(0,c.jsx)("div",{className:(0,d.cn)("border-border-muted inline-flex flex-1 flex-col items-start justify-center self-stretch border-t bg-white/5 py-1",e),children:(0,c.jsx)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden px-3 py-2.5",children:(0,c.jsx)("div",{className:"flex-1 justify-start"})})}),h=[{label:"No ads",basic:!1,standard:!0,premium:!0},{label:"Storm Radar™ iOS app",icon:"https://s.w-x.co/premium_perks_storm_radar_icon.png",basic:!1,standard:!1,premium:!0,isNewBadge:!0},{label:"Advanced map layers",basic:!1,standard:!1,premium:!0},{label:"Extended hourly forecast",basic:!1,standard:!1,premium:!0},{label:"More details for decisions",basic:!1,standard:!1,premium:!0},{label:"Access to new features",basic:!1,standard:!1,premium:!0}],g=[{label:"Get up to 4 months free",icon:"https://s.w-x.co/subscribe_page_perks_spotify_logo.png",basic:!1,standard:!1,premium:!0},{label:"45% off exclusive deal",icon:"https://s.w-x.co/subscribe_page_perks_outside%2B_logo.png",basic:!1,standard:!1,premium:!0},{label:"Enjoy 15% off experiences",icon:"https://s.w-x.co/subscribe_page_perks_viator_logo.png",basic:!1,standard:!1,premium:!0},{label:"Free trial + 30% off",icon:"https://s.w-x.co/subscribe_page_perks_18birdies_logo.png",basic:!1,standard:!1,premium:!0}];function j({row:e}){return(0,c.jsxs)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden bg-white",children:[(0,c.jsx)("div",{className:"border-border-muted inline-flex min-w-64 flex-1 flex-col items-start justify-center self-stretch border-t bg-white/0 py-1",children:(0,c.jsxs)("div",{className:"inline-flex items-center justify-start gap-3.5 self-stretch overflow-hidden py-2.5 pl-1",children:[(0,c.jsx)("div",{className:"flex w-12 shrink-0 justify-center",children:e.icon?(0,c.jsx)(m.default,{src:e.icon,alt:"",width:48,height:28,className:"h-7 w-12 object-contain",rounded:!1}):(0,c.jsx)("div",{className:"flex w-12 items-center justify-center gap-2.5",children:(0,c.jsx)(o,{className:"h-5 w-5"})})}),(0,c.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:e.isNewBadge?(0,c.jsxs)("div",{className:"justify-start self-stretch",children:[(0,c.jsx)("span",{className:"font-['Inter'] text-xs leading-3 font-bold text-[#FF4C00]",children:"NEW →"}),(0,c.jsxs)("span",{className:"font-['Inter'] text-xs leading-3 font-medium text-[#252422]",children:[" ","Storm Radar™ iOS app"]})]}):(0,c.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xs leading-3 font-medium text-[#252422]",children:e.label})})})]})}),e.basic?(0,c.jsx)(x,{}):(0,c.jsx)(p,{}),e.standard?(0,c.jsx)(x,{}):(0,c.jsx)(p,{}),e.premium?(0,c.jsx)(x,{className:"bg-[#CBDEF033]"}):(0,c.jsx)(p,{className:"bg-[#CBDEF033]"})]})}let y=[{heading:"Perks valued at up to $187",description:"Complimentary subscriptions, free trials, and special discounts from select partner brands."},{heading:"Relevant, weather-aware offers",description:"Benefits curated around real life - staying well, staying comfortable, and staying prepared no matter the forecast."},{heading:"Easy access",description:"Unlock your perks once you're a Premium subscriber - they're all included."},{heading:"Always evolving",description:"New brands and offers will be added over time, so there's always something fresh to discover."}];function b({valueItem:e}){return(0,c.jsxs)("div",{className:"inline-flex items-start justify-start gap-2.5 self-stretch overflow-hidden px-0.5",children:[(0,c.jsx)("div",{className:"flex w-4 items-center justify-center gap-2.5",children:(0,c.jsx)(o,{className:"h-4 flex-1"})}),(0,c.jsxs)("div",{className:"inline-flex flex-1 flex-col items-start justify-center",children:[(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Small","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-sm leading-4 font-bold text-[#252422]",children:e.heading})}),(0,c.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xs leading-3 font-medium text-[#676767]",children:e.description})})]})]})}e.s(["default",0,function({annualPremiumPlan:e,selectedPeriod:t,variant:s="subscribe"}){let a="premium-perks"===s,i=n();return(0,c.jsxs)("div",{className:"inline-flex flex-col items-center justify-start self-stretch px-7 py-14",style:{background:`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 1) 100%), url(${a?"https://s.w-x.co/subscribe-page-hero-section-background.jpg":"https://s.w-x.co/subscribe-page-yearly-plan-section-background.jpg"}) no-repeat center center / cover`},children:[(0,c.jsx)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-4 pb-10 max-md:hidden",children:(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Title",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Title",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"text-text-inverse justify-start self-stretch text-center font-['Inter'] text-3xl leading-9 font-medium text-white",children:"Get full access to Premium features from The Weather Channel"})}),(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Body",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,c.jsxs)("div",{className:"justify-start self-stretch text-center",children:[(0,c.jsx)("span",{className:"font-['Inter'] text-base leading-6 font-bold text-[#CBDEF0]",children:"Join the millions who trust us to stay informed & safe"}),(0,c.jsx)("sup",{className:"font-['Inter'] text-[10px] leading-6 font-medium text-[#CBDEF0]",children:"1"})]})})]}):(0,c.jsx)("div",{className:"text-text-inverse justify-start self-stretch text-center font-['Inter'] text-3xl leading-9 font-medium text-white",children:"Yearly Premium Plan includes:"})})}),(0,c.jsxs)("div",{className:"relative inline-flex w-full max-w-[1024px] flex-wrap content-center items-center justify-center gap-5 rounded-xl bg-white/90 px-7 py-6",children:[(0,c.jsxs)("div",{className:"inline-flex max-w-80 min-w-80 flex-1 flex-col items-start justify-start gap-0.5 px-5 py-6",children:[(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Title",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-3xl leading-9 font-bold text-[#204693]",children:a?"Try Premium FREE for 7 days":"Premium Plan"})}),(0,c.jsxs)("div",{className:"inline-flex items-start justify-start gap-3 self-stretch pt-3.5",children:[(0,c.jsxs)("div",{className:"flex items-start justify-start",children:[(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold text-[#252422]",children:"$"})}),(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Extra Large","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-4xl leading-10 font-semibold text-[#252422]",children:"2"})}),(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold text-[#252422]",children:".50"})})]}),(0,c.jsx)("div",{className:"flex flex-1 items-center justify-center gap-2.5 pt-1",children:(0,c.jsxs)("div",{className:"inline-flex flex-1 flex-col items-start justify-start gap-0.5",children:[(0,c.jsx)("div",{"data-bold":"No","data-size":"Small","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-sm leading-4 font-medium whitespace-nowrap text-[#676767]",children:"per month, billed $29.99 yearly"})}),(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Small","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-sm leading-4 font-bold text-[#204693]",children:"FREE 7-day trial!*"})})]})})]}),(0,c.jsxs)("div",{className:"inline-flex items-start justify-start gap-[5px]",children:[(0,c.jsx)("div",{"data-icon":"true","data-style":"Standard","data-type":"Breaking News",className:"flex h-6 items-center justify-center gap-2 rounded bg-[#FF4C00] p-2",children:(0,c.jsx)("div",{className:"flex items-center justify-center gap-2 pt-[0.50px]",children:(0,c.jsx)("div",{className:"text-text-inverse justify-center text-center font-['Inter'] text-xs leading-3 font-bold text-white",children:"Save 50%"})})}),(0,c.jsx)("div",{"data-icon":"true","data-style":"Standard","data-type":"Breaking News",className:"flex h-6 items-center justify-center gap-2 rounded bg-[#FF4C00] p-2",children:(0,c.jsx)("div",{className:"flex items-center justify-center gap-2 pt-[0.50px]",children:(0,c.jsxs)("div",{className:"justify-center text-center",children:[(0,c.jsx)("span",{className:"text-text-inverse font-['Inter'] text-xs leading-3 font-medium text-white",children:"Up to"}),(0,c.jsxs)("span",{className:"text-text-inverse font-['Inter'] text-xs leading-3 font-bold text-white",children:[" ","$187 Perks Value"]})]})})})]}),(0,c.jsx)("div",{className:"flex w-full max-w-64 flex-col items-start justify-start gap-5 pt-4",children:(0,c.jsx)(u.Button,{className:(0,d.cn)("flex min-h-12 flex-col items-center justify-center gap-1 self-stretch rounded-lg bg-[#204693] px-8 py-3 font-['Inter'] text-base leading-6 font-bold text-white",e?.disabled&&"!pointer-events-none !cursor-not-allowed !opacity-30"),onClick:()=>e&&i(e,{module:"comparison-table",element:"premium-annual"}),disabled:e?.disabled,children:"Try FREE for 7 days"})}),a?(0,c.jsx)(f.default,{href:"/subscribe",className:"mt-[20px] inline-flex h-8 items-center justify-center gap-2 rounded-lg bg-[#F2F2F2] px-3 py-2 font-['Inter'] text-sm leading-4 font-bold text-[#252422]",children:"See other plans"}):(0,c.jsx)("div",{className:"flex flex-col items-start justify-start gap-3 self-stretch pt-11",children:y.map(e=>(0,c.jsx)(b,{valueItem:e},e.heading))})]}),(0,c.jsx)("div",{className:"inline-flex min-w-96 flex-1 flex-col items-end justify-start gap-2.5 rounded-xl bg-white px-5 py-4 max-md:hidden",children:(0,c.jsxs)("div",{className:"flex flex-col items-center justify-start self-stretch overflow-hidden",children:[(0,c.jsxs)("div",{className:"inline-flex items-end justify-start self-stretch overflow-hidden bg-white/0",children:[(0,c.jsx)("div",{className:"inline-flex min-w-64 flex-1 flex-col items-start justify-end self-stretch bg-white",children:(0,c.jsx)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden px-3 py-[5px]",children:(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Body",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-lg leading-6 font-bold text-[#252422]",children:"WHAT YOU GET"})})})}),(0,c.jsx)("div",{className:"inline-flex flex-1 flex-col items-start justify-end self-stretch bg-white",children:(0,c.jsx)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden px-1 py-2.5",children:(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Caption",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-xs leading-3 font-bold text-[#252422]",children:"Basic"})})})}),(0,c.jsx)("div",{className:"inline-flex flex-1 flex-col items-start justify-end self-stretch bg-white",children:(0,c.jsx)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden px-1 py-2.5",children:(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Caption",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-xs leading-3 font-bold text-[#252422]",children:"Standard"})})})}),(0,c.jsx)("div",{className:"inline-flex flex-1 flex-col items-start justify-end self-stretch border-t border-l bg-[#CBDEF080]",children:(0,c.jsx)("div",{className:"inline-flex items-start justify-start self-stretch overflow-hidden px-1 py-2.5",children:(0,c.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Caption",className:"inline-flex flex-1 flex-col items-start justify-center gap-2",children:(0,c.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-xs leading-3 font-bold text-[#204693]",children:"Premium"})})})})]}),h.map(e=>(0,c.jsx)(j,{row:e},e.label)),g.map(e=>(0,c.jsx)(j,{row:e},e.label))]})}),(0,c.jsx)("div",{"data-icon":"true","data-style":"Standard","data-type":"New",className:"absolute top-[12px] right-[55px] flex h-6 items-center justify-center gap-2 rounded bg-[#204794] p-2 max-md:hidden",children:(0,c.jsx)("div",{className:"flex items-center justify-center gap-2 pt-[0.50px]",children:(0,c.jsx)("div",{className:"justify-center text-center font-['Inter'] text-[10px] leading-3 font-bold text-white",children:"MOST POPULAR"})})})]})]})}],468913)},462794,e=>{"use strict";var t=e.i(862494),s=e.i(240058),a=e.i(654623),i=e.i(611540);e.s(["default",0,function(){let e=(0,a.useLocale)();return(0,t.jsx)("div",{className:"inline-flex flex-col items-center justify-start gap-12 self-stretch bg-white px-7 py-14",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-1.5 px-2.5",children:[(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:[(0,t.jsx)("sup",{children:"1"}),"According to a Morning Consult 2025 survey of U.S. adults. Based on the average of the total monthly users for Jan-Dec '24 across The Weather Company digital properties and consumer products, according to internal, global data."]})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch font-['Inter'] text-xs",children:[(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:["*Premium Perks Eligibility: Premium Perks are available exclusively to subscribers who purchase a paid The Weather Channel Annual Premium subscription through"," "]}),(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D] underline",children:[" ",(0,t.jsx)(s.default,{href:(0,i.interpolateUrl)(i.URLS.home,{locale:e}),className:"underline",children:"Weather.com"})," "]}),(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:[" ","or the iOS app store and who have a registered"," "]}),(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D] underline",children:[" ",(0,t.jsx)(s.default,{href:(0,i.interpolateUrl)(i.URLS.home,{locale:e}),className:"underline",children:"Weather.com"})," "]}),(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:[" ","account with a valid email address. Premium Perks are not available during the free trial period. Existing Annual Premium subscribers will receive Premium Perks after their next paid renewal, provided they have a registered weather.com account with a valid email address. Premium Perks partners and offers are subject to change at any time. The Weather Channel reserves the right to add, modify or remove partner offers at its discretion. Premium Perks are not guaranteed for the duration of your subscription term. Available to U.S. subscribers only. Promo codes and redemption instructions are delivered by email. No account?"," "]}),(0,t.jsx)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D] underline",children:(0,t.jsx)(s.default,{href:(0,i.interpolateUrl)(i.URLS.memberSignup,{locale:e}),className:"underline",children:"Sign up here"})}),(0,t.jsx)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:"."})]})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch font-['Inter'] text-xs",children:[(0,t.jsxs)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:["Spotify Premium: Individual plan only. 4 month free offer available for new to Spotify Premium users only, offer ends August 18, 2027. 2 month free offer only redeemable by users whose Premium access ended over 30 days ago and who have not redeemed a Spotify welcome back offer in the last 24 months, offer subject to availability. $12.99/month after trial. Cancel anytime. 15 hours/month of Audiobooks available to Individual and Duo or Family Plan Managers only."," "]}),(0,t.jsx)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D] underline",children:(0,t.jsx)(s.default,{href:"https://www.spotify.com/legal/end-user-agreement/",className:"underline",children:"Terms & Conditions apply"})}),(0,t.jsx)("span",{className:"font-['Inter'] text-xs font-medium text-[#8D8D8D]",children:"."})]})})]})})}])},993862,e=>{"use strict";let t=e.i(401232).SWRConfig;e.s(["S",0,t])},527330,e=>{"use strict";var t=e.i(862494),s=e.i(778235),a=e.i(458645),i=e.i(240058),r=e.i(546446);e.i(647872);var l=e.i(678480),n=e.i(632137);let c=[{handlerArgument:"annual",caption:"Yearly"},{handlerArgument:"monthly",caption:"Monthly"}],d=({selectedPeriod:e,setSelectedPeriod:s})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex flex-col items-center justify-start gap-2.5 self-stretch",children:(0,t.jsx)("div",{role:"group","aria-label":"Billing period","data-selection":"On","data-state":"Rest",className:"outline-border-inverse inline-flex items-center justify-center rounded-lg bg-[#F2F2F2] p-0.5 outline outline-1 outline-white",children:c.map(a=>{let i=a.handlerArgument===e;return(0,t.jsx)("button",{type:"button","aria-pressed":i,className:(0,n.cn)("flex cursor-pointer items-center justify-start gap-1 rounded-md px-3 py-1.5 font-['Inter'] text-sm leading-4 font-medium transition-all duration-200 outline-none select-none",i?"bg-[#8D8D8D] text-white shadow-[0px_3px_8px_0px_rgba(0,0,0,0.12)]":"bg-transparent text-[#252422] shadow-none hover:text-[#8D8D8D]"),onClick:()=>s(a.handlerArgument),children:a.caption},a.handlerArgument)})})})});var o=e.i(671525),f=e.i(543512),u=e.i(654623),m=e.i(611540),x=e.i(877957),p=e.i(37429),h=e.i(528600),g=e.i(324560),j=e.i(816582);let y=function({offer:e,selectedPeriod:s,onSwitchToYearly:a}){let i=((e,s)=>{let{navigate:a}=(0,o.default)(),i=(0,g.useCheckout)(),{user:{isUserLoggedIn:r,subscriptionTier:l}}=(0,h.useUser)(),n=(0,u.useLocale)(),c=l===f.UserSubscriptionTiers.standard,d="annual"===s,x=e.plans.find(e=>e.type===s);if(!x)return null;switch(!0){case e.product.toLowerCase().includes("ad free"):return{isPremium:!1,productName:"Standard Plan",buttonCtaText:"Get started",textColorClass:"text-[#252422]",ctaButtonClass:"!bg-[#252422] !text-white border-[#252422] w-full",cardWrapperClass:"bg-white/95",reasonsToSubscribe:["NO ADS"],featuresHeader:"Standard Features",displayCurrentPlanText:!1,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold",children:"$"})}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Extra Large","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-4xl leading-10 font-semibold",children:d?"0":"1"})}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsxs)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold",children:[".",d?"84":"99"]})})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month",d&&`, billed ${x.displayPrice.currencySymbol}${x.displayPrice.total.toFixed(2)} yearly`]}),billingDescriptionClass:"text-[#676767]",priceDisplayAmount:d?"0.84":x.displayPrice.total.toFixed(2),selectedPlan:x,disableAction:x.disabled??!1,action:()=>{i(x,{module:"product-grid",element:`standard-${s}`})}};case e.product.toLowerCase().includes("premium"):return{isPremium:!0,productName:"Premium Plan",buttonCtaText:d?"Try FREE for 7 days*":"Subscribe without perks",textColorClass:"text-brand-300",ctaButtonClass:"text-white !bg-brand-300 border-brand-300",cardWrapperClass:"w-full bg-white",reasonsToSubscribe:[],displayCurrentPlanText:!1,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"mt-1 text-xl leading-none",children:"$"}),(0,t.jsx)("div",{className:"leading-none text-[34px]",children:d?"2.50":x.displayPrice.total.toFixed(2)})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month",d&&(0,t.jsx)("span",{className:"whitespace-nowrap",children:`, billed ${x.displayPrice.currencySymbol}${x.displayPrice.total.toFixed(2)} yearly`})]}),priceDisplayAmount:d?"2.50":x.displayPrice.total.toFixed(2),selectedPlan:x,afterCtaCaption:d?"*New subscribers only":"",disableAction:x.disabled??!1,action:()=>{i(x,{module:"product-grid",element:`premium-${s}`})}};default:return{isPremium:!1,productName:"Basic Plan",buttonCtaText:"Get started",textColorClass:"text-[#252422]",ctaButtonClass:"!bg-[#252422] !text-white border-[#252422] w-full",cardWrapperClass:"bg-white/95",reasonsToSubscribe:["Fewer ads"],featuresHeader:"Basic Features",displayCurrentPlanText:c,priceText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold",children:"$"})}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Extra Large","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-4xl leading-10 font-semibold",children:"0"})}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Title",className:"inline-flex flex-col items-start justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-2xl leading-7 font-semibold",children:".00"})})]}),billingDescription:(0,t.jsxs)(t.Fragment,{children:["per month,",(0,t.jsx)("br",{}),"ad-supported"]}),billingDescriptionClass:"text-[#676767]",priceDisplayAmount:x.displayPrice.total.toFixed(2),selectedPlan:x,disableAction:r,action:()=>a((0,m.interpolateUrl)(m.URLS.memberSignup,{locale:n}))}}})(e,s);if(!i)return null;let{displayCurrentPlanText:r,ctaButtonClass:l,action:c,productName:d,buttonCtaText:y,billingDescription:b,cardWrapperClass:v,disableAction:N,isPremium:w,selectedPlan:P,priceDisplayAmount:I}=i,_="annual"===s;if(w)return(0,t.jsxs)("div",{className:"relative inline-flex w-full flex-col items-stretch justify-start gap-4 self-stretch rounded-[24px] bg-white px-7 pt-6 pb-8",children:[_&&(0,t.jsx)("div",{className:"absolute top-[-15px] left-[150px] rounded bg-[#FF4C00] px-2.5 py-1 text-base leading-none font-bold text-white",children:"SAVE 50%"}),(0,t.jsx)("div",{className:"self-stretch font-['Inter'] text-[24px] leading-[1.1] font-semibold tracking-[-0.72px] text-[#204794]",children:"Premium Plan"}),(0,t.jsxs)("div",{className:"flex w-full items-center gap-[14px] pt-[4px]",children:[(0,t.jsx)("div",{className:"flex h-[37px] w-[78px] shrink-0 flex-col items-start justify-center pt-[4px]",children:(0,t.jsxs)("p",{className:"font-['Inter'] font-medium tracking-[-0.96px] text-[#252422]",children:[(0,t.jsx)("sup",{className:"top-[-0.45em] text-[20.64px] leading-[1.15]",children:"$"}),(0,t.jsx)("span",{className:"text-[32px] leading-[1.15]",children:_?"2.50":P.displayPrice.total.toFixed(2)})]})}),(0,t.jsxs)("div",{className:"min-w-px flex-1 self-center font-['Inter'] text-[14px] leading-[1.15] font-medium tracking-[-0.28px] text-[#676767]",children:["per month",_&&(0,t.jsx)("span",{className:"whitespace-nowrap",children:`, billed ${P.displayPrice.currencySymbol}${P.displayPrice.total.toFixed(2)} yearly*`})]})]}),(0,t.jsx)("button",{onClick:c,disabled:N,className:(0,n.cn)('flex min-h-12 cursor-pointer items-center justify-center self-stretch rounded-lg bg-[#204794] px-8 py-3 font-["Inter"] text-base font-bold text-white',N&&"!pointer-events-none !cursor-not-allowed !opacity-30"),children:_?"Try FREE for 7 days":y}),(0,t.jsx)("div",{className:"self-stretch border-b border-[#c5c4c9] pb-2 font-['Inter'] text-sm font-bold text-[#204794]",children:"Premium Features"}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2.5 self-stretch",children:[(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-3 self-stretch",children:[(0,t.jsx)(j.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"font-['Inter'] text-sm leading-4 font-bold text-[#252422]",children:"NO ADS"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-3 self-stretch",children:[(0,t.jsx)(j.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"font-['Inter'] text-sm leading-4 font-medium text-[#252422]",children:"Advanced radar & map layers"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-3 self-stretch",children:[(0,t.jsx)(j.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"font-['Inter'] text-sm leading-4 font-medium text-[#252422]",children:"Extended hourly forecast"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-3 self-stretch",children:[(0,t.jsx)(j.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"font-['Inter'] text-sm leading-4 font-medium text-[#252422]",children:"More details for decisions"})]})]}),!_&&(0,t.jsxs)("div",{className:"inline-flex flex-col items-start justify-start gap-2.5 self-stretch pt-[14px]",children:[(0,t.jsx)("div",{className:"self-stretch font-['Inter'] text-sm leading-4 font-bold text-[#252422]",children:"Or get 50% off plus Premium Perks and a FREE 7-day trial!"}),(0,t.jsx)(x.Button,{className:"flex h-8 min-h-8 w-full flex-col items-center justify-center gap-2 rounded-lg bg-[#f2f2f2] px-3 py-2 font-['Inter'] text-sm leading-4 font-bold text-[#252422] hover:bg-[#e5e5e5]",onClick:()=>a?.(),children:"Switch to yearly"})]}),_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"self-stretch border-b border-[#c5c4c9] pb-2 font-['Inter'] text-sm font-bold text-[#204794]",children:"Up to $187 in Premium Perks"}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-start gap-4 self-stretch",children:[(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-[14px] self-stretch px-[2px]",children:[(0,t.jsx)("div",{className:"flex h-[26px] w-[120px] shrink-0 items-center justify-start",children:(0,t.jsx)(p.default,{src:"https://s.w-x.co/subscribe_page_perks_spotify_logo.png",alt:"Spotify Premium",fill:!0,wrapperClassName:"aspect-[156/40] h-full w-auto",objectFit:"contain",rounded:!1,sizes:"101px"})}),(0,t.jsx)("div",{className:"font-['Inter'] text-sm leading-4 font-medium tracking-[-0.28px] text-[#252422]",children:"Up to 4 months free"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-[14px] self-stretch px-[2px]",children:[(0,t.jsx)("div",{className:"flex h-[26px] w-[120px] shrink-0 items-center justify-center",children:(0,t.jsx)(p.default,{src:"https://s.w-x.co/subscribe_page_perks_outside%2B_logo.png",alt:"Outside+",fill:!0,wrapperClassName:"aspect-[132/31] h-[20px] w-auto",objectFit:"contain",rounded:!1,sizes:"85px"})}),(0,t.jsx)("div",{className:"font-['Inter'] text-sm leading-4 font-medium tracking-[-0.28px] text-[#252422]",children:"45% off Outside+"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-[14px] self-stretch px-[2px]",children:[(0,t.jsx)("div",{className:"flex h-[26px] w-[120px] shrink-0 items-center justify-center pt-[4px] pb-[3px]",children:(0,t.jsx)(p.default,{src:"https://s.w-x.co/subscribe_page_perks_viator_logo.png",alt:"Viator",fill:!0,wrapperClassName:"aspect-[1000/252] h-full w-auto",objectFit:"cover",rounded:!1,sizes:"75px"})}),(0,t.jsx)("div",{className:"font-['Inter'] text-sm leading-4 font-medium tracking-[-0.28px] text-[#252422]",children:"15% off experiences"})]}),(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-[14px] self-stretch px-[2px]",children:[(0,t.jsx)(p.default,{src:"https://s.w-x.co/subscribe_page_perks_18birdies_logo.png",alt:"18Birdies",fill:!0,wrapperClassName:"h-[26px] w-[120px] shrink-0",objectFit:"fill",rounded:!1,sizes:"120px"}),(0,t.jsx)("div",{className:"font-['Inter'] text-sm leading-4 font-medium tracking-[-0.28px] text-[#252422]",children:"Free trial + 30% off"})]})]})]})]});let{reasonsToSubscribe:k,afterCtaCaption:S="",featuresHeader:A}=i;return(0,t.jsx)("div",{className:(0,n.cn)(v,"flex w-full flex-col self-start rounded-[24px] px-7 pt-6 pb-8"),children:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-[5px] pt-[5px]",children:[(0,t.jsx)("div",{className:"font-['Inter'] text-[24px] leading-[1.1] font-semibold tracking-[-0.72px] text-[#252422]",children:d}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-[12px] pt-[6px]",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-[16px]",children:[(0,t.jsxs)("div",{className:"flex w-full items-center gap-[14px] pt-[4px]",children:[(0,t.jsx)("div",{className:"flex h-[37px] w-[79px] shrink-0 flex-col items-start justify-center pt-[4px]",children:(0,t.jsxs)("p",{className:"font-['Inter'] font-medium tracking-[-0.96px] text-[#252422]",children:[(0,t.jsx)("sup",{className:"top-[-0.45em] text-[20.64px] leading-[1.15]",children:"$"}),(0,t.jsx)("span",{className:"text-[32px] leading-[1.15]",children:I})]})}),(0,t.jsx)("div",{className:"min-w-px flex-1 font-['Inter'] text-[14px] leading-[1.15] font-medium tracking-[-0.28px] text-[#676767]",children:b})]}),(0,t.jsxs)("div",{className:"w-full py-[10px]",children:[r?(0,t.jsx)("div",{className:"flex min-h-[48px] w-full items-center justify-center rounded-[8px] bg-white px-8 py-3 font-['Inter'] text-[16px] font-bold text-[#252422]",children:"Your current plan"}):(0,t.jsx)(x.Button,{className:(0,n.cn)('flex min-h-[48px] w-full items-center justify-center rounded-[8px] px-8 py-3 font-["Inter"] text-[16px] leading-[1.4] font-bold tracking-[-0.32px]',l,N&&"!pointer-events-none !cursor-not-allowed !opacity-30"),onClick:c,disabled:N,children:y}),S&&(0,t.jsx)("div",{className:"mt-2 text-sm text-[#676767]",children:S})]})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-[16px] px-[5px] pt-[12px]",children:[A&&(0,t.jsx)("div",{className:"w-full border-b border-[#c5c4c9] pb-[4px] font-['Inter'] text-[14px] leading-[1.15] font-bold text-[#676767]",children:A}),(0,t.jsx)("div",{className:"flex w-full flex-col gap-2.5",children:k?.map(e=>(0,t.jsxs)("div",{className:"inline-flex items-center gap-3 self-stretch",children:[(0,t.jsx)(j.default,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("div",{className:"font-['Inter'] text-[14px] leading-[1.15] font-bold text-[#252422]",children:e})]},e))})]})]})]})})},b={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}}]},v=function({offers:e,selectedPeriod:a,setSelectedPeriod:r}){let l=(0,s.useMemo)(()=>[b,...e],[e]),n=l.find(e=>e.product.toLowerCase().includes("premium")),c=l.filter(e=>!e.product.toLowerCase().includes("premium")).sort((e,t)=>{let s=e.product.toLowerCase().includes("ad free");return s===t.product.toLowerCase().includes("ad free")?0:s?-1:1});return(0,t.jsxs)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-3 px-5 pb-16",children:[(0,t.jsx)("div",{className:"flex w-full max-w-[960px] flex-col items-stretch justify-start gap-1.5 pb-2",children:(0,t.jsxs)("div",{className:"flex w-full items-stretch justify-center gap-2.5 max-md:flex-col max-md:items-center",children:[n&&(0,t.jsx)("div",{className:"flex w-[400px] shrink-0 max-md:w-full max-md:max-w-[400px]",children:(0,t.jsx)(y,{offer:n,selectedPeriod:a,onSwitchToYearly:()=>r("annual")})}),(0,t.jsx)("div",{className:"flex flex-1 gap-5 max-md:w-full max-md:flex-col max-md:items-center max-md:gap-2.5",children:c.map(e=>(0,t.jsx)("div",{className:"flex w-[270px] max-md:w-full max-md:max-w-[400px]",children:(0,t.jsx)(y,{offer:e,selectedPeriod:a})},`${e.product}_${e.slug}`))})]})}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-5",children:[(0,t.jsx)(d,{selectedPeriod:a,setSelectedPeriod:r}),"annual"===a&&(0,t.jsxs)("p",{className:"m-0 w-full text-center text-[10px] leading-[1.3] tracking-[0.2px] text-[#676767]",children:["*New subscribers only. Premium Perks begin after your free trial ends. Must have a registered"," ",(0,t.jsx)(i.default,{href:"/",className:"underline",children:"weather.com"})," ","account."]})]})]})},N=function({offers:e,selectedPeriod:a,setSelectedPeriod:r}){let l=(0,s.useMemo)(()=>[b,...e],[e]),n=l.find(e=>e.product.toLowerCase().includes("premium")),c=l.filter(e=>!e.product.toLowerCase().includes("premium")).sort((e,t)=>{let s=e.product.toLowerCase().includes("ad free");return s===t.product.toLowerCase().includes("ad free")?0:s?-1:1});return(0,t.jsxs)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-3 px-5 pb-16",children:[(0,t.jsx)("div",{className:"flex w-full max-w-[960px] flex-col items-stretch justify-start gap-1.5 pb-2",children:(0,t.jsxs)("div",{className:"flex w-full items-stretch justify-center gap-2.5 max-md:flex-col max-md:items-center",children:[n&&(0,t.jsx)("div",{className:"flex w-[400px] shrink-0 max-md:w-full max-md:max-w-[400px] md:order-2",children:(0,t.jsx)(y,{offer:n,selectedPeriod:a,onSwitchToYearly:()=>r("annual")})}),(0,t.jsx)("div",{className:"flex flex-1 gap-5 max-md:w-full max-md:flex-col max-md:items-center max-md:gap-2.5 md:order-1",children:c.map(e=>(0,t.jsx)("div",{className:"flex w-[270px] max-md:w-full max-md:max-w-[400px]",children:(0,t.jsx)(y,{offer:e,selectedPeriod:a})},`${e.product}_${e.slug}`))})]})}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-5",children:[(0,t.jsx)(d,{selectedPeriod:a,setSelectedPeriod:r}),"annual"===a&&(0,t.jsxs)("p",{className:"m-0 w-full text-center text-[10px] leading-[1.3] tracking-[0.2px] text-[#676767]",children:["*New subscribers only. Premium Perks begin after your free trial ends. Must have a registered"," ",(0,t.jsx)(i.default,{href:"/",className:"underline",children:"weather.com"})," ","account."]})]})]})},w=function(e){return"b"===(0,r.useAtomValue)(l.subsOfferLayoutVariantAtom)?(0,t.jsx)(N,{...e}):(0,t.jsx)(v,{...e})};var P=e.i(381477),I=e.i(806227);let _=function({annualPremiumPlan:e,monthlyPremiumPlan:s,selectedPeriod:a}){let i=(0,g.useCheckout)();return(0,t.jsxs)("div",{className:"from-background-elevated to-background-page inline-flex flex-col items-center justify-start gap-8 self-stretch bg-gradient-to-b px-7 pb-16",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-4 px-8",children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Title",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-3xl leading-9 font-medium text-[#204794]",children:"Get full access to Premium features"})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Body",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch text-center",children:[(0,t.jsx)("span",{className:"font-['Inter'] text-base leading-6 font-medium text-[#676767]",children:"Join the millions who trust The Weather Channel to stay informed & safe"}),(0,t.jsx)("sup",{className:"font-['Inter'] text-[10px] leading-6 font-medium text-[#676767]",children:"1"})]})})]}),(0,t.jsx)("div",{className:"inline-flex w-full max-w-[1024px] flex-wrap content-start items-start justify-start gap-4",children:[{title:"No ads",description:"Go ad-free with your subscription and see all the weather you need without interruptions.",logoUrl:"https://s.w-x.co/subscribe_page_no-ads_icon.png",caption:"Also included in Standard plan."},{title:"Advanced 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_advanced_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_extended_forecast_icon.png"},{title:"More details for decisions",description:"More details and data like 15-minute Detail on our Hourly Forecast and our Rain Severity Timeline.",logoUrl:"https://s.w-x.co/subscribe_page_more_details_icon.png"},{title:"Access to new features",description:"Be the first to experience new features when they roll out. Air Travel, Live Activities, and Radar Layers.",logoUrl:"https://s.w-x.co/subscribe_page_new_features_icon.png"},{title:"Storm Radar app",description:"Use your Weather.com login to access professional-grade, fully customizable radar with advanced controls like High-Res single-site radar.",logoUrl:"https://s.w-x.co/subscribe_page_big_storm_radar_icon.png",isNewBadge:!0,caption:"Available on iOS & macOS enabled devices only."}].map(({title:e,description:s,logoUrl:a,isNewBadge:i,caption:r})=>(0,t.jsxs)("div",{className:(0,n.cn)("inline-flex min-w-72 flex-1 flex-col items-start justify-start gap-2 rounded-md p-6",i&&"bg-slate-300/25"),children:[(0,t.jsx)("div",{className:"flex h-14 max-h-16 flex-col items-start justify-start gap-2.5 self-stretch pb-4",children:(0,t.jsx)(p.default,{src:a,alt:"",className:"h-10 w-auto",rounded:!1})}),(0,t.jsxs)("div",{"data-type":"Text + Description",className:"flex flex-col items-start justify-center gap-3 self-stretch",children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Small","data-type":"Title",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xl leading-6 font-semibold text-[#252422]",children:e})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:i?(0,t.jsxs)("div",{className:"justify-start self-stretch",children:[(0,t.jsxs)("span",{className:"font-['Inter'] text-base leading-6 font-bold text-[#252422]",children:["Now included with The Weather Channel Premium subscription."," "]}),(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-base leading-6 font-medium text-[#676767]",children:"Use your Weather.com login to access professional-grade, fully customizable radar with advanced controls like High-Res single-site radar."})]}):(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-base leading-6 font-medium text-[#676767]",children:s})})]}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Small","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xs leading-4 font-medium text-[#8D8D8D]",children:r})})]},e))}),"annual"===a&&e&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-start gap-6 self-stretch",children:[(0,t.jsx)(x.Button,{className:(0,n.cn)("flex min-h-12 flex-col items-center justify-center gap-1 rounded-lg bg-[#204693] px-8 py-3 font-['Inter'] text-base leading-6 font-bold text-white",e.disabled&&"!pointer-events-none !cursor-not-allowed !opacity-30"),onClick:()=>i(e,{module:"features-grid",element:"premium-annual"}),disabled:e.disabled,children:"Try Premium free for 7 days"}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch text-center",children:[(0,t.jsxs)("span",{className:"text-text-muted font-['Inter'] text-xs leading-3 font-medium",children:["Free for 7 days, then $29.99 per year after. New subscribers only. Premium Perks begin after your free trial ends. Must have a registered"," "]}),(0,t.jsx)("span",{className:"text-text-muted font-['Inter'] text-xs leading-3 font-medium underline",children:"Weather.com"}),(0,t.jsxs)("span",{className:"text-text-muted font-['Inter'] text-xs leading-3 font-medium",children:[" ","account."]})]})})]}),"monthly"===a&&s&&(0,t.jsx)("div",{className:"flex flex-col items-center justify-start gap-5 self-stretch",children:(0,t.jsxs)("div",{className:"inline-flex flex-wrap content-center items-center justify-center gap-5 self-stretch",children:[(0,t.jsx)(x.Button,{onClick:()=>i(s,{module:"features-grid",element:"premium-monthly"}),disabled:s.disabled,className:"inline-flex min-h-12 flex-col items-center justify-center gap-1 rounded-lg bg-[#204693] px-8 py-3",children:(0,t.jsx)("div",{className:"inline-flex items-center justify-start gap-2",children:(0,t.jsx)("div",{className:"justify-center font-['Inter'] text-base leading-6 font-bold text-white",children:"Subscribe without perks"})})}),e&&(0,t.jsxs)("div",{className:"flex min-w-80 items-center justify-center gap-5",children:[(0,t.jsx)("div",{className:"inline-flex flex-col items-start justify-center gap-2",children:(0,t.jsxs)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-sm leading-4 font-bold text-[#252422]",children:["Or get 50% off ",(0,t.jsx)("br",{}),"plus Premium Perks ",(0,t.jsx)("br",{}),"and a FREE 7-day trial!"]})}),(0,t.jsx)(x.Button,{onClick:()=>i(e,{module:"features-grid",element:"premium-annual-switch"}),disabled:e.disabled,className:(0,n.cn)("inline-flex min-h-12 flex-col items-center justify-center gap-1 rounded-lg bg-[#252422] px-4 py-3",e.disabled&&"!pointer-events-none !cursor-not-allowed !opacity-30"),children:(0,t.jsx)("div",{className:"inline-flex items-center justify-start gap-2",children:(0,t.jsx)("div",{className:"text-action-primary-foreground-default justify-center font-['Inter'] text-base leading-6 font-bold",children:"Switch to yearly"})})})]})]})})]})},k=[{brandName:"Spotify Premium",logoUrl:"https://s.w-x.co/subscribe_page_perks_spotify_logo.png",imageUrl:"https://s.w-x.co/subscribe_page_premium_perks_section_spotify_hero_image.jpg",headline:"Get up to 4 months free",description:"Unlock (up to) 4 months of Spotify Premium, on us. Enjoy ad-free music, offline backup, unlimited skips, and up to 15 hours of audiobooks listening every month.",detailsUrl:"/subscribe/premium-perks#spotify"},{brandName:"Outside+",logoUrl:"https://s.w-x.co/subscribe_page_perks_outside%2B_logo.png",imageUrl:"https://s.w-x.co/subscribe_page_premium_perks_section_outside%2B_hero_image.jpg",headline:"45% off a year of Outside+",description:"Get full access to award-winning storytelling, expert advice, live sports, plus mapping and activity apps for every pursuit",detailsUrl:"/subscribe/premium-perks#outside"},{brandName:"Viator",logoUrl:"https://s.w-x.co/subscribe_page_perks_viator_logo.png",imageUrl:"https://s.w-x.co/subscribe_page_premium_perks_section_viator_hero_image.png",headline:"Enjoy 15% off experiences",description:"Travel season is here so celebrate with 15% off incredible tours, activities and experiences. Explore the leading marketplace for travel experiences with 400,000+ experiences around the world.",detailsUrl:"/subscribe/premium-perks#viator",logoClassName:"px-3"},{brandName:"18Birdies",logoUrl:"https://s.w-x.co/subscribe_page_perks_18birdies_logo.png",imageUrl:"https://s.w-x.co/subscribe_page_premium_perks_section_18birdies_hero_image.png",headline:"Play better. Save 30%.",description:"Exclusive offer! Track your game, improve faster, and reach your scoring goals with the #1 golf app — 1 week free + 30% off annual.",detailsUrl:"/subscribe/premium-perks#18birdies",badge:"NEW FOR GOLF SEASON"}],S=function(){let e=(0,u.useLocale)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"bg-background-card-primary inline-flex flex-col items-center justify-start self-stretch px-7 pt-3.5 pb-16",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start gap-4 px-8 pb-9",children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Title",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-3xl leading-9 font-medium text-[#204693]",children:"Premium Perks from our partner brands, all included"})}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Large","data-type":"Body",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-lg leading-6 font-bold text-[#252422]",children:"Valued at up to $187"})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Small","data-type":"Body",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{"data-bold":"No","data-size":"Small","data-type":"Body",className:"flex flex-col items-center justify-center gap-2 self-stretch",children:(0,t.jsxs)("div",{className:"justify-start self-stretch text-center font-['Inter'] text-sm leading-[1.1] font-[500] text-[#676767]",children:[(0,t.jsxs)("span",{children:["Premium Perks are available exclusively to paid annual Premium subscribers with a registered Weather.com account. Perks are not available during the free trial period. Promo codes and redemption instructions are delivered by email, so a valid email address is required. No account?"," "]}),(0,t.jsx)(i.default,{href:(0,m.interpolateUrl)(m.URLS.memberSignup,{locale:e}),className:"underline",children:"Sign up here"}),(0,t.jsx)("span",{children:"."})]})})})]}),(0,t.jsx)("div",{className:"inline-flex w-full max-w-[1024px] flex-wrap content-start items-start justify-center gap-3 px-2.5",children:k.map(e=>(0,t.jsxs)("div",{className:"bg-background-elevated inline-flex min-w-40 flex-1 flex-col items-start justify-start gap-3 px-3.5 py-4",children:[(0,t.jsx)("div",{className:"flex max-h-10 min-h-10 w-28 flex-col items-start justify-center gap-2.5 overflow-hidden",children:(0,t.jsx)(p.default,{src:e.logoUrl,alt:e.brandName,className:(0,n.cn)("h-7 self-stretch",e.logoClassName),rounded:!1})}),(0,t.jsx)("div",{className:"flex h-24 max-h-24 min-h-24 flex-col items-start justify-start gap-2.5 self-stretch overflow-hidden rounded-tl-xl rounded-tr-xl",children:(0,t.jsx)(p.default,{src:e.imageUrl,alt:e.brandName,width:320,height:176,className:"h-44 self-stretch",rounded:!1})}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2.5 self-stretch pt-1",children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Medium","data-type":"Caption",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xs leading-3 font-bold text-[#676767]",children:e.brandName})}),e.badge&&(0,t.jsx)("div",{"data-icon":"true","data-style":"Standard","data-type":"New",className:"inline-flex h-6 items-center justify-center gap-2 rounded bg-[#204794] p-2",children:(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 pt-[0.50px]",children:(0,t.jsx)("div",{className:"justify-center text-center font-['Inter'] text-xs leading-3 font-bold text-white",children:e.badge})})}),(0,t.jsxs)("div",{"data-type":"Text + Description",className:"flex flex-col items-start justify-center gap-2.5 self-stretch",children:[(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Small","data-type":"Title",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-xl leading-6 font-semibold text-[#204693]",children:e.headline})}),(0,t.jsx)("div",{"data-bold":"No","data-size":"Medium","data-type":"Body",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)("div",{className:"justify-start self-stretch font-['Inter'] text-sm leading-5 font-medium text-[#252422]",children:e.description})})]}),(0,t.jsx)("div",{"data-bold":"Yes","data-size":"Small","data-type":"Caption",className:"flex flex-col items-start justify-center gap-2 self-stretch",children:(0,t.jsx)(i.default,{href:e.detailsUrl,className:"justify-start self-stretch font-['Inter'] text-[10px] leading-3 font-bold tracking-wide text-[#204693] uppercase",children:"SEE DETAILS"})})]})]},e.brandName))}),(0,t.jsx)("div",{className:"flex w-full max-w-[1024px] flex-col items-center justify-start px-2.5 pt-10",children:(0,t.jsx)(i.default,{href:"/subscribe/premium-perks",className:"inline-flex items-center justify-center rounded-lg bg-[#F2F2F2] px-8 py-4 text-center font-['Inter'] text-sm leading-4 font-bold whitespace-nowrap text-[#252422] md:text-base md:leading-5",children:"Learn more about Premium Perks"})})]})})};var A=e.i(468913),C=e.i(462794);e.s(["default",0,()=>{let[e,r]=(0,s.useState)("annual"),{user:{isUserLoggedIn:l}}=(0,h.useUser)(),n=(0,u.useLocale)(),{data:{data:c=[]}={}}=(0,P.default)("subs-data",I.getSubscriptionData,{revalidateOnFocus:!1,dedupingInterval:6e4}),d=c.find(e=>e.product.toLowerCase().includes("premium")),o=(d?.plans||[]).find(e=>"annual"===e.type),f=(d?.plans||[]).find(e=>"monthly"===e.type);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-start bg-white",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-start self-stretch overflow-hidden bg-cover bg-center bg-no-repeat",style:{backgroundImage:"linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #FFF 100%), url('https://s.w-x.co/subscribe-page-hero-section-background.jpg')",backgroundColor:"lightgray"},children:[(0,t.jsxs)("div",{className:"inline-flex items-center justify-between self-stretch px-7 py-0.5",children:[(0,t.jsx)("div",{className:"flex items-center justify-start gap-7 py-2.5",children:(0,t.jsx)("div",{"data-style":"Inverse","data-version":"Premium",className:"relative h-12 w-12 overflow-hidden",children:(0,t.jsx)(i.default,{href:(0,m.interpolateUrl)(m.URLS.home,{locale:n}),className:"absolute top-0 left-0 h-12 w-12 overflow-hidden",children:(0,t.jsx)(a.default,{className:"h-12 w-12 text-white"})})})}),!l&&(0,t.jsx)("div",{"data-hierarchy":"Outline","data-show-leading-icon":"false","data-show-support-text":"false","data-show-trailing-icon":"false","data-size":"Small","data-state":"Rest",className:"outline-border-inverse inline-flex h-8 min-h-8 flex-col items-center justify-center gap-1 rounded-lg px-3 py-2 outline outline-1 outline-offset-[-1px]",children:(0,t.jsx)("div",{className:"inline-flex items-center justify-start gap-2",children:(0,t.jsx)(i.default,{href:(0,m.interpolateUrl)(m.URLS.memberLogin,{locale:n}),className:"justify-center font-['Inter'] text-sm leading-4 font-bold text-white",children:"Sign In"})})})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-start gap-1 px-5 pb-10 max-md:pt-1 max-md:pb-5",children:[(0,t.jsx)("div",{className:"flex flex-col items-center justify-center self-stretch px-2.5 max-md:px-2",children:(0,t.jsx)("h1",{className:"self-stretch text-center font-['Inter'] text-[40px] leading-[1.15] font-semibold tracking-[-0.8px] text-white max-md:text-[24px] max-md:leading-[1.1] max-md:tracking-[-0.72px]",children:"No ads. Premium features. Plenty of perks."})}),(0,t.jsx)("div",{className:"flex w-full flex-col items-center pt-[8px] pb-5 max-md:px-[14px] max-md:pb-5",children:(0,t.jsx)("p",{className:"w-full text-center font-['Inter'] text-sm leading-[1.15] font-medium tracking-[-0.28px] text-white md:whitespace-nowrap",children:"Stay informed & safe with the yearly Premium Plan while enjoying valuable Perks from trusted brands."})})]}),(0,t.jsx)(w,{offers:c,selectedPeriod:e,setSelectedPeriod:r})]}),(0,t.jsx)(S,{}),(0,t.jsx)(_,{annualPremiumPlan:o,monthlyPremiumPlan:f,selectedPeriod:e}),(0,t.jsx)(A.default,{annualPremiumPlan:o,selectedPeriod:e}),(0,t.jsx)(C.default,{}),(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)}]);