1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ff0fc120-5aab-4fa1-8660-7875794b725d",e._sentryDebugIdIdentifier="sentry-dbid-ff0fc120-5aab-4fa1-8660-7875794b725d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{16251:(e,t,r)=>{r.d(t,{A:()=>D});var n=r(37876),i=r(47457),o=r(75255),l=r(46955),a=r(80301),c=r(89954);let s=(0,a.R)(function(e,t){let r=(0,l.uo)(e),a=(0,i.e)();return(0,n.jsx)(c.B.div,{...r,width:"100%",ref:t,className:(0,o.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});s.displayName="TabPanels";let u=(0,a.R)(function(e,t){let r=(0,l.Jn)({...e,ref:t}),a=(0,i.e)();return(0,n.jsx)(c.B.div,{outline:"0",...r,className:(0,o.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});u.displayName="TabPanel";var d=r(75587),p=r(58724),m=r(78267),g=r(89033),f=r(89099),x=r(14232),h=r(59004),b=r(63707),y=r(26623),N=r(22837),C=r(14720),v=r(29777);function _(e){return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:v.T.primary.charcoal,xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.5C17.5228 21.5 22 17.0228 22 11.5C22 5.97715 17.5228 1.5 12 1.5C6.47715 1.5 2 5.97715 2 11.5C2 17.0228 6.47715 21.5 12 21.5ZM12 15.5C14.2091 15.5 16 13.7091 16 11.5C16 9.29086 14.2091 7.5 12 7.5C9.79086 7.5 8 9.29086 8 11.5C8 13.7091 9.79086 15.5 12 15.5Z",fill:"inherit"})})}function A(e){return(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:v.T.primary.off_white,xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("rect",{width:"24",height:"24"}),(0,n.jsx)("circle",{cx:"12",cy:"11.5",r:"10",stroke:v.T.primary.charcoal})]})}var j=r(8895),R=r(73449),w=r(21171),T=r(56425),E=r(82667),B=r(33813);function k({tabIndex:e,price:t,checked:r,isSinglePlan:i,choosePlan:o,sales:l,retentionDiscount:a}){let{validDiscount:c}=(0,T.TR)(),{locale:s}=(0,f.useRouter)(),v=`${t.commitment}_billing`,{t:D}=(0,g.Bd)("common",{keyPrefix:"billing"}),{t:S}=(0,g.Bd)("account",{keyPrefix:"account.membership.cancel_membership.discount_offer"}),$=(0,y.YH)({sales:l,price:t}),I=w.Fi[t.commitment],P=`${I}BannerText`,{totalPrice:M}=(0,y.jL)({price:t}),{totalPrice:U}=(0,y.jL)({price:t,sale:$||void 0}),{totalPrice:L,free:O,isDiscountApplied:Q}=(0,y.jL)({price:t,discount:c??void 0,retentionDiscount:a,sale:$||void 0}),{strikethroughTextNormal:G,strikethroughTextBold:q,planTextNormal:z,planTextBold:H}=(0,E.C)({price:t,totalPrice:L,rawPrice:M,free:O,billingKey:v,isDiscountApplied:Q,salePrice:U}),{showDiscountBadge:Y,discountBadgeText:J}=(0,x.useMemo)(()=>{let e=$?(0,j.jv)($.translations,s):{},r=e&&e[P],n=S("retention_discount_badge",{discountPercentage:a}),i=!!(a&&n),o=$&&r,l=t?.promoBadge;return{showDiscountBadge:(i||l||o)&&!c,discountBadgeText:i&&n||o&&r||l&&t?.promoBadge?.badgeText||""}},[P,s,t?.promoBadge,a,$,S,c]);return(0,n.jsx)(u,{tabIndex:e,id:t.id,display:"flex !important",borderWidth:1,borderColor:"primary.charcoal",backgroundColor:r?"secondary.pink":"primary.off_white",onClick:()=>{(0,b.$v)(t.id,H,L,t.currency,t.interval),o(t.id)},cursor:"pointer",p:6,position:"relative",children:(0,n.jsxs)(d.s,{gap:2.5,id:`plan-option-${t.commitment}`,children:[!t?.badge||c||t?.promoBadge||$?null:(0,n.jsx)(N.S3,{backgroundColor:"secondary.lime_green",py:1.5,px:3,borderRadius:"25px",top:"11px",right:"11px",useStyleOnly:!0,color:"primary.charcoal",position:"absolute",children:t.badge}),!i&&(r?(0,n.jsx)(_,{}):(0,n.jsx)(A,{})),(0,n.jsxs)(p.B,{gap:2.5,align:"flex-start",children:[(0,n.jsx)(N.H5,{type:"sans",color:"primary.charcoal",children:D(`${t.commitment}_billing.tab_title`).toUpperCase()}),(0,n.jsxs)(p.B,{spacing:2.5,align:"flex-start",children:[(0,n.jsx)(B.j,{planTextBold:H,planTextNormal:z,strikethroughTextBold:q,strikethroughTextNormal:G,priceCommitment:t.commitment||void 0}),(0,n.jsx)(C.Ub,{type:"serif",textAlign:"left",children:(0,j.uZ)(t.shortDe
1scription,"price",`${(0,h.Ac)(100*M,t.currency,s)}`)}),Y?(0,n.jsx)(m.a,{backgroundColor:"secondary.lime_green",py:1.5,px:2,borderRadius:"25px",color:"primary.charcoal",children:(0,n.jsx)(R.A,{id:`${t.commitment}_promo_badge`,type:"sans",display:"flex",flexWrap:"wrap",flexDir:"column",gap:4,content:J,color:"primary.charcoal",styles:{p:{fontSize:"12px",lineHeight:"120%",textTransform:"uppercase"},strong:{fontSize:"12px",lineHeight:"120%",textTransform:"uppercase"}}},"promo_badge")}):null]})]})]})},t.id)}function D({prices:e,activePriceId:t,handlePickBillingPlan:r,sales:o,retentionDiscounts:l}){let a=e.findIndex(e=>e.id===t);return -1===a?null:(0,n.jsx)(i.t,{defaultIndex:a,w:"full",variant:"unstyled",onChange:t=>r(e[t].id),children:(0,n.jsx)(s,{display:"flex",justifyContent:"center",flexDirection:"column",gap:4,children:e.length&&e.map((i,a)=>(0,n.jsx)(k,{tabIndex:a,price:i,checked:i.id===t,choosePlan:r,isSinglePlan:1===e.length,sales:o,retentionDiscount:i?.commitment&&l?.[i.commitment]},i.id))})})}},26623:(e,t,r)=>{r.d(t,{YH:()=>a,Sv:()=>c,jL:()=>s});var n=r(89553),i=r(69880),o=r(21171);let l=(e,t,r=n.oQQ.PERCENTAGE)=>{switch(r){case n.oQQ.AMOUNT:return Math.max(e-t,0);case n.oQQ.PERCENTAGE:default:return Math.max((100-t)/100*e,0)}},a=({sales:e,price:t})=>e?e.find(e=>{if(!t)return e.monthlyMembershipCoupon&&e.monthlyPercentageDiscount||e.annualMembershipCoupon&&e.annualPercentageDiscount;if(!t.commitment)return!1;let r=o.Fi[t.commitment],n=`${r}MembershipCoupon`,i=`${r}PercentageDiscount`;return!!e[n]&&!!e[i]}):null,c=(e,t)=>{if(!e.commitment||!t)return e.integerAmount;let r=o.Fi[e.commitment],n=`${r}MembershipCoupon`,i=`${r}PercentageDiscount`;if(!(t?.[n]&&t?.[i]))return e.integerAmount;let a=t[i];return l(e.integerAmount,a)},s=({discount:e,price:t,sale:r,retentionDiscount:o})=>{if(!t)return{totalPrice:0,free:!1};let a=t.integerAmount/100;if(r&&(a=c(t,r)/100),o){let e;return{totalPrice:Math.max(e=l(a,o,n.oQQ.PERCENTAGE),0),free:0===e,isDiscountApplied:!0}}let s=a;if(e&&e.discountType&&e.discountAmount&&(!e.appliesTo||e.appliesTo?.includes(t.product||""))){let{discountAmount:r}=e;e.currencyOptions&&(r=(0,i.mc)(e.currencyOptions,t.currency)),r&&(s=e.discountType===n.oQQ.AMOUNT?l(a,r/100,n.oQQ.AMOUNT):l(a,r,n.oQQ.PERCENTAGE))}return{totalPrice:s,free:0===s,isDiscountApplied:s!==a}}},33813:(e,t,r)=>{r.d(t,{j:()=>c});var n=r(37876),i=r(58724),o=r(2336),l=r(78267),a=r(22837);function c({planTextBold:e,planTextNormal:t,strikethroughTextBold:r,strikethroughTextNormal:s,priceCommitment:u}){return(0,n.jsxs)(i.B,{spacing:1,align:"flex-start",children:[(0,n.jsxs)(o.z,{spacing:1,children:[e&&(0,n.jsx)(a.S1,{textAlign:"start",id:`plan-price-title-${u}`,weight:"bold",children:e}),t&&(0,n.jsx)(a.S1,{textAlign:"start",id:`plan-price-subtitle-${u}`,children:t})]}),r||s?(0,n.jsxs)(o.z,{spacing:1,pos:"relative",opacity:.6,children:[(0,n.jsx)(l.a,{w:"full",pos:"absolute",top:"50%",left:"0",h:"1px",backgroundColor:"black"}),r&&(0,n.jsx)(a.S1,{textAlign:"start",id:`strikethrough-price-title-${u}`,weight:"bold",color:"black",children:r}),s&&(0,n.jsx)(a.S1,{textAlign:"start",id:`strikethrough-price-subtitle-${u}`,color:"black",children:s})]}):null]})}},37931:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(14232),i=r(65302);let o=(e,t)=>{let[r,o]=(0,n.useState)(t);return(0,n.useEffect)(()=>{try{let t=(0,i.z)(e);if(!t)return;t!==r&&o(t)}catch{console.warn(`Error reading localStorage key "${e}"`)}},[]),(0,n.useEffect)(()=>{try{localStorage.setItem(e,JSON.stringify(r))}catch(t){console.error(`Error saving to localStorage key "${e}"`,t)}},[e,r]),[r,o]}},48898:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(14232),i=r(21171),o=r(89553),l=r(47466),a=r(37931);function c(e,t,r){let[c,s]=(0,a.M)(l.KY,""),u=e=>{s(e),sessionStorage.setItem(l.KY,e)};return{sortedPrices:(0,n.useMemo)(()=>{let n,l,a=[o.Om0.ANNUAL_RECURRING,o.Om0.ANNUAL_RECURRING_TWELVE_MONTHLY_PAYMENTS].flatMap(r=>t.find(t=>t.commitment===r&&t.currency.toUpperCase()===e.value)||[]),s=a.map(e=>{var t,n,o;let l,a,c,s=null==(t=e).commitment?{description:"",shortDescription:"",title:"",subtitle:"",renewalDescription:"",billingDescription:"",buttonLabel:"",promoBadge:null}:(n=i.ZZ[t.commitment],o=t.lookupKey||void 0,l=r?.find(e=>o?o===e?.stripeLookupKey:e?.duration===n),a=l?.translations?.[0],c=l?.promoBadge?.translations?.[0],{description:a?.description||"",shortDe
1scription:a?.shortDescription||"",title:a?.title||"",subtitle:a?.subtitle||"",renewalDescription:a?.renewalDescription||"",billingDescription:a?.billingDescription||"",buttonLabel:a?.buttonLabel||"",badge:a?.badge||"",promoBadge:c?.promoCode&&c?.badgeText?{stripePromoCode:c.promoCode,badgeText:c?.badgeText}:null});return{...e,...s}});return n=t.find(e=>e.id===c),(l=a.find(e=>e.commitment===n?.commitment)||a[0])&&u(l.id),s},[e,t,c,r]),priceId:c,changePriceId:u}}},56425:(e,t,r)=>{r.d(t,{J6:()=>c,FL:()=>d,R1:()=>u,M7:()=>p,TR:()=>m});var n=r(37876),i=r(14232),o=r(89553),l=r(10601);let a=(0,i.createContext)({isVerifying:!1,couponError:null,validDiscount:null,setCouponInput:()=>null,couponInput:""});function c({prices:e,children:t}){let[r,s]=(0,i.useState)(""),{isVerifying:u,couponError:d,validDiscount:p}=(({couponInput:e,prices:t})=>{let[r]=(0,o.gvf)(),{getErrorMessage:n}=(0,l.o)(),[a,c]=(0,i.useState)(!1),[s,u]=(0,i.useState)(null),[d,p]=(0,i.useState)({valid:!1}),m=async e=>{if(!e){u(null),p(null),c(!1);return}let i=t.map(e=>e.product).filter(e=>!!e);try{let t=await r({variables:{couponCode:e.trim(),productIds:i}}),n=t?.data?.verifyCoupon?.valid;if(!t?.data||!n)throw Error("invalid_coupon");u(null),p(t.data.verifyCoupon)}catch(e){u(n(e)),p(null)}finally{c(!1)}};return(0,i.useEffect)(()=>{c(!0);let t=setTimeout(async()=>{m(e)},500*!!e?.length);return()=>{clearTimeout(t)}},[e]),{isVerifying:a,couponError:s,validDiscount:d}})({couponInput:r,prices:e});return(0,n.jsx)(a.Provider,{value:(0,i.useMemo)(()=>({isVerifying:u,couponError:d,validDiscount:p,setCouponInput:s,couponInput:r}),[u,d,p,s,r]),children:t})}var s=r(21171);function u(e){e?sessionStorage.setItem(s.BD,"true"):sessionStorage.removeItem(s.BD)}function d(){return!!sessionStorage.getItem(s.BD)}function p(){return!d()}let m=()=>(0,i.useContext)(a)},65302:(e,t,r)=>{r.d(t,{z:()=>n});function n(e){try{let t=localStorage.getItem(e);if(!t)return;return JSON.parse(t)}catch{console.warn(`Error reading localStorage key "${e}"`)}}},82667:(e,t,r)=>{r.d(t,{C:()=>c});var n=r(14232),i=r(89033),o=r(89099),l=r(89553),a=r(59004);let c=({price:e,totalPrice:t,salePrice:r,rawPrice:c,free:s,billingKey:u,isDiscountApplied:d})=>{let{t:p}=(0,i.Bd)("common",{keyPrefix:"billing"}),{locale:m}=(0,o.useRouter)(),{textNormal:g,textBold:f}=(0,n.useMemo)(()=>{if(c===t||!d)return{};let n=(0,a.Ac)(100*r,e.currency,m);if(e.commitment===l.Om0.ANNUAL_RECURRING)return{textBold:p(`${l.Om0.ANNUAL_RECURRING}_billing.frequency`,{price:n})};let i=p(`${u}.frequency`,{price:n});return{textBold:`${i} / `,textNormal:p(`${l.Om0.ANNUAL_RECURRING}_billing.frequency`,{price:(0,a.Ac)(12*r*100,e.currency,m)})}},[e,t,u,c,p,d,r,m]),{textNormal:x,textBold:h}=(0,n.useMemo)(()=>{if(s)return{textBold:p(`${u}.free`)};let r=(0,a.Ac)(100*t,e.currency,m);if(e.commitment===l.Om0.ANNUAL_RECURRING)return{textBold:p(`${l.Om0.ANNUAL_RECURRING}_billing.frequency`,{price:r})};let n=p(`${u}.frequency`,{price:r});return{textBold:`${n} / `,textNormal:p(`${l.Om0.ANNUAL_RECURRING}_billing.frequency`,{price:(0,a.Ac)(12*t*100,e.currency,m)})}},[e,t,u,p,s,m]);return{strikethroughTextNormal:g,strikethroughTextBold:f,planTextNormal:x,planTextBold:h}}}}]);
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.