1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="97ef9a04-8580-4fb2-a051-bb75c86b520a",e._sentryDebugIdIdentifier="sentry-dbid-97ef9a04-8580-4fb2-a051-bb75c86b520a")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[585],{7873:(e,t,s)=>{s.d(t,{A:()=>m,x:()=>u});var n=s(37876),a=s(14232),r=s(48267),i=s(36037),l=s(45476),o=s(29852),d=s(8345);let c=!1;function u(e,t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{pageViewed:n}=(0,i.A)(),{isClientInitialized:u}=(0,o.h)(),m=(0,r.RL)(),[p]=(0,d.A)(["ah_visitor_id"]),h=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{if(s||!c&&!u)return;let a=JSON.stringify({name:e,properties:t});if(h.current===a)return;h.current=a;let r=t;if(!c&&u){var i;let e=Object.entries(Object.fromEntries(Object.entries(null!=(i=null==m?void 0:m.allFlags())?i:{}).map(e=>{let[t,s]=e;return[(0,l.A)(t),s]}))).map(e=>{let[t,s]=e;return{flag:t,value:s}});r={...t||{},ldFlags:e},c=!0}p.ah_visitor_id&&(r={...r||{},visitor_id:p.ah_visitor_id}),n(e,r)},[s,u,e,n,t,m,p])}let m=function(e,t,s){return function(a){return u(t,s),(0,n.jsx)(e,{...a})}}},76374:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(37876),a=s(25927),r=s(84037),i=s(41418),l=s(98177);let o=e=>{let{stripePlanName:t,price:s,interval:o,endsAt:d,coupon:c,paymentMethod:u,refreshPaymentMethod:m}=e;return(0,n.jsxs)("div",{className:"space-y-5",children:[(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(i.A,{className:"h-16 w-16 sm:h-28 sm:w-28 text-primary-500"})}),(0,n.jsxs)("div",{className:"space-y-5",children:[(0,n.jsx)("h3",{className:"sm:heading-2xl","data-testid":"cancellation-offer-success-message",children:"Hooray! Youâve successfully claimed your offer."}),(0,n.jsx)("h3",{className:"sm:heading-2xl",children:"Plan Details"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"text-xs sm:text-lg",children:t}),(0,n.jsxs)("p",{children:["$",s," / ",o]}),(0,n.jsx)(l.A,{coupon:c,price:s,interval:o})]}),(0,n.jsxs)("p",{className:"text-xs",children:["Your point.me ",t," will ",(0,n.jsx)("br",{}),"renew on ",(0,a.v9)(d),"."]}),(0,n.jsx)("div",{children:u&&(0,n.jsx)(r.A,{paymentMethod:u,refreshPaymentMethod:m})})]})]})}},78442:(e,t,s)=>{s.d(t,{A:()=>a,N:()=>n});let n={amex:"#8B6FFE",default:"#8B6FFE"},a=n.default},84037:(e,t,s)=>{s.d(t,{A:()=>v});var n=s(37876),a=s(14232),r=s(4241),i=s(39742),l=s(68464),o=s(7747),d=s(58018),c=s(88643),u=s(78442),m=s(91703);let p={layout:"tabs"},{t:h}=(0,d.A)(c.A),x=e=>{let{onCancel:t,onSuccess:s}=e,r=(0,i.t2)(),d=(0,i.HH)(),[c,u]=(0,a.useState)(null),[x,f]=(0,a.useState)(!1),j=(0,m.Q$)(e=>e.env),v=(0,m.kH)(e=>e.user),y=async e=>{await l.W.put("/api/stripe/customers/default-payment-method",{setupIntent:e}).then(e=>{let{data:t}=e;"ERROR"===t.status&&u(t.notice||h("stripe_payment_method_error"))}).catch(e=>{var t,s;console.error("ERROR",e),u((null==(s=l.j.from(e))||null==(t=s.data)?void 0:t.notice)||h("stripe_payment_method_error"))}),await l.W.put("/api/stripe/subscriptions/current/subscription-default-payment-method",{setupIntent:e}).then(e=>{let{data:t}=e;if(f(!1),"ERROR"===t.status)return void u(t.notice||h("stripe_payment_method_error"));s()}).catch(e=>{var t,s;f(!1),console.error("ERROR",e),u((null==(s=l.j.from(e))||null==(t=s.data)?void 0:t.notice)||h("stripe_payment_method_error"))})},g=async e=>{e.preventDefault(),u(""),f(!0);let t=await r.confirmSetup({elements:d,confirmParams:{return_url:"".concat(j.domain).concat("/settings/plan")},redirect:"if_required"});if(t.error){var s;f(!1),u((null==t||null==(s=t.error)?void 0:s.message)||h("stripe_payment_method_error"))}else await y(t.setupIntent)};return v.email?(0,n.jsx)("div",{className:"pt-8 md:pt-0",children:r&&d&&(0,n.jsxs)("form",{onSubmit:g,className:"space-y-8",children:[(0,n.jsx)(i.He,{options:p}),(0,n.jsxs)("div",{className:"space-y-4",children:[c&&(0,n.jsx)("div",{className:"text-xs text-error-saturated",children:c}),(0,n.jsx)(o.$n,{type:"submit",state:x&&"disabled",fullWidth:!0,onClick:g,children:x?"Updating...":"Update Payment"}),(0,n.jsx)(o.$n,{fullWidth:!0,buttonStyle:"secondary",size:"small",onClick:t,children:"Cancel"})]})]})}
1):h("stripe_missing_customer_error")},f=(0,r.c)("pk_live_51JjqW5HU1yruTVu8Vw71ipfuKfTRKLTG0Uu5wGUYgc3Er4Lfhcuqgz3PRi0gopNuM5wZthzyPttqqJdoyjuGt06a00LdXM2ShI"),{t:j}=(0,d.A)(c.A),v=e=>{let{paymentMethod:t,usePopup:s=!1,refreshPaymentMethod:r,stacked:d=!1}=e,{card:c}=t||{},[m,p]=(0,a.useState)(!1),[h,v]=(0,a.useState)(""),[y,g]=(0,a.useState)(!1),[b,_]=(0,a.useState)(""),w=()=>{_(""),l.W.post("/api/stripe/setup-intent").then(e=>{let{data:t}=e;if("ERROR"===t.status)return void _(t.message||j("stripe_payment_method_error"));v(t.clientSecret),p(!0)}).catch(e=>{_(j("stripe_payment_method_error")),console.error("ERROR",e)})},N={clientSecret:h,appearance:{theme:"stripe",variables:{colorPrimary:u.A}},loader:"always"},R=()=>{r(),g(!0),p(!1)},A=s||!m,S=c?"Update":"Add payment method",k=c&&"".concat(c.brand.toUpperCase()," **** ").concat(c.last4);return(0,n.jsxs)("div",{children:[A&&!d&&(0,n.jsxs)("div",{className:"flex text-xs text-gray1 space-x-2",children:[c&&(0,n.jsxs)("span",{children:["Payment method: ",k]}),(0,n.jsx)("button",{type:"button","data-testid":"settingsPlanUpdate",className:"underline",onClick:w,children:S})]}),A&&d&&(0,n.jsxs)("div",{className:"space-y-0.5 text-xs text-black",children:[c&&(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("span",{className:"font-bold",children:"Payment method:"}),(0,n.jsx)("span",{children:k})]}),(0,n.jsx)("button",{type:"button","data-testid":"settingsPlanUpdate",className:"block underline",onClick:w,children:S})]}),y&&(0,n.jsx)("div",{className:"mt-2 text-success-saturated text-xs",children:"Default payment method successfully added!"}),b&&(0,n.jsx)("div",{className:"mt-2 text-error-saturated text-xs",children:b}),m&&h&&(0,n.jsxs)(i.S8,{stripe:f,options:N,children:[s&&(0,n.jsx)(o.zD,{onClose:()=>p(!1),title:"Update your payment information",clickOutsideToClose:!0,children:(0,n.jsx)(x,{onCancel:()=>p(!1),onSuccess:()=>R()})}),!s&&(0,n.jsx)("div",{className:"p-4 bg-gray6 w-full",children:(0,n.jsx)(x,{onSuccess:()=>R(),onCancel:()=>p(!1)})})]})]})}},92558:(e,t,s)=>{s.d(t,{A:()=>b,Z:()=>g});var n=s(37876),a=s(7747),r=s(15039),i=s.n(r),l=s(10553),o=s(77328),d=s.n(o),c=s(89099),u=s(14232),m=s(1471),p=s(10381),h=s(79780),x=s(91703),f=s(27506),j=s(71905);let v="point.me",y=e=>{var t,s;let{pageTitle:r,pageDescription:o,noPadding:y=!1,robots:g,children:b,vwoObject:_}=e,w=r?"".concat(r," | ").concat(v):v,N=(0,c.useRouter)(),{status:R}=(0,l.useSession)(),A=(0,x.Q$)(e=>e.env),S=(0,x.kH)(e=>e.user),{postVerificationFlow:k,setPostVerificationFlow:O}=(0,x._h)();(0,u.useEffect)(()=>{"loading"!==R&&(window.vwoLoggedin="authenticated"===R,window.vwoCobrand=(0,p.A)())},[R]);let E="authenticated"!==R||!(null==S||null==(t=S.me)?void 0:t.uuid)||!(null==k?void 0:k.checkOnboarding)||!N.isReady;return(0,u.useEffect)(()=>{var e;E||((null==S||null==(e=S.me)?void 0:e.showOnboarding)?N.push(h.qh):O({...k||{},checkOnboarding:!1}))},[E,null==S||null==(s=S.me)?void 0:s.showOnboarding,N,O,k]),(0,n.jsxs)("div",{className:"min-h-dvh flex flex-col",children:[(0,n.jsxs)(d(),{children:[(0,n.jsx)("title",{children:w},"title"),(0,n.jsx)("meta",{property:"og:title",content:w},"og_title"),(0,n.jsx)("meta",{name:"description",content:o},"description"),(0,n.jsx)("meta",{property:"og:description",content:o},"og_description"),g&&(0,n.jsx)("meta",{name:"robots",content:g},"robots"),(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n window.vwoLoggedin = ".concat(JSON.stringify(null==_?void 0:_.loggedIn),";\n window.vwoCobrand = ").concat(JSON.stringify(null==_?void 0:_.cobrand),";\n ")}})]}),(0,n.jsx)(m.A,{}),(0,n.jsx)(j.A,{}),(0,n.jsxs)("main",{className:i()("h-full flex-grow flex flex-col",{"pt-16 sm:pt-20":!y}),children:[A.maintenanceBanner&&(0,n.jsx)(a.yI,{message:A.maintenanceBanner}),b]}),(0,n.jsx)(f.A,{})]})},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s=>(0,n.jsx)(y,{pageTitle:t.pageTitle||"",pageDescription:t.pageDescription||"",noPadding:t.noPadding||!1,robots:t.robots,...s,children:(0,n.jsx)(e,{...s})})};y.displayName="BasePage";let b=y},98177:(e,t,s)=>{s.d(t,{A:()=>l});var n=s(37876),a=s(59727),r=s.n(a),i=s(61280);let l=e=>{let{coupon:t,price:s,interval:a}=e;if(!t)return null;let l=t.amount_off?t.amount_off:s*t.percent_off,o=s-l/100,d=(null==t?void 0:t.duration)==="once"?"one time offer":(null==t?void 0:t.duration)==="forever"?"for the lifetime of your subscription":"for ".concat(t.duration_in_months-1," ").concat(r()("month",t.duration_in_months-1));return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"text-success-saturated",children:["- ",(0,i.A)(l)," / ",a," (",d,")"]}),(0,n.jsx)("div",{className:"text-xs sm:text-xs text-gray3 italic pt-2",children:(0,n.jsx)("p",{children:"* Your discount will be applied at your next billing period."})})]}),(0,n.jsx)("div",{className:"border-t border-t-gray3"}),(0,n.jsxs)("h5",{children:["Total: $",o.toFixed(2)," / ",a]})]})}}}]); 2//# sourceMappingURL=585-c886b18365a67c1f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.