PageSourceSearch

https://app.omagic.ai/_next/static/chunks/0rm95sg87kzda.js?dpl=26-40-5-808

js omagic.ai collected 2026-10-03 21:47:21 UTC 40,153 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91724,3356,11106,60655,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(97319),l=e.i(28952),n=e.i(32822),s=e.i(6675),r=e.i(44496);let o=["1 video - from 15 credits.","Prices exclude applicable taxes. Final amount is calculated at checkout based on your billing address."],c=["Subscription monthly video credits do not roll over from month to month.","Upgrade, switch and cancel plan any time."],d=["A lifetime plan is a one-time payment. Its monthly video credits do not roll over from month to month.","Buying a lifetime plan cancels your current subscription.","Move up to a higher lifetime plan by paying the difference while lifetime plans are on sale."];function m(){let e,a,l,n,s,r=(0,t.c)(5);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)("div",{className:"flex justify-between items-start",children:[(0,i.jsxs)("div",{className:"flex items-center gap-dimension-50",children:[(0,i.jsx)("div",{className:"h-6 w-6 bg-white-200 rounded animate-pulse"}),(0,i.jsx)("div",{className:"h-8 w-16 bg-white-200 rounded animate-pulse"})]}),(0,i.jsx)("div",{className:"h-6 w-16 bg-white-200 rounded-lg animate-pulse"})]}),a=(0,i.jsx)("div",{className:"h-5 w-32 bg-white-200 rounded animate-pulse"}),r[0]=e,r[1]=a):(e=r[0],a=r[1]),r[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("div",{className:"w-8 h-8 bg-white-200 rounded-lg animate-pulse"}),(0,i.jsx)("div",{className:"w-16 h-8 bg-white-200 rounded-lg animate-pulse"}),(0,i.jsx)("div",{className:"w-8 h-8 bg-white-200 rounded-lg animate-pulse"})]}),r[2]=l):l=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)("div",{className:"h-4 w-10 bg-white-200 rounded animate-pulse"}),r[3]=n):n=r[3],r[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsxs)("div",{className:"rounded-xl content-dark-bg-tertiary flex flex-col gap-6 p-dimension-150 lg:p-dimension-200 flex-1",children:[(0,i.jsxs)("div",{className:"gap-dimension-200 flex flex-col",children:[e,a,l,(0,i.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t border-neutral-700",children:[n,(0,i.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,i.jsx)("div",{className:"h-5 w-24 bg-white-200 rounded animate-pulse"}),(0,i.jsx)("div",{className:"h-4 w-16 bg-white-200 rounded animate-pulse"})]})]})]}),(0,i.jsx)("div",{className:"h-10 w-full bg-white-200 rounded-xl animate-pulse"})]}),r[4]=s):s=r[4],s}function u(){let e,a,l=(0,t.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"pt-dimension-400 sm:pt-0 pb-dimension-300 sm:pb-0",children:(0,i.jsx)("div",{className:"h-7 w-40 bg-white-200 rounded animate-pulse"})}),l[0]=e):e=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsxs)("div",{className:"flex flex-col gap-0 sm:gap-dimension-200 lg:gap-dimension-300 sm:px-0 pb-dimension-600 sm:pb-0",children:[e,(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-dimension-200",children:[(0,i.jsx)(m,{}),(0,i.jsx)(m,{}),(0,i.jsx)(m,{})]})]}),l[1]=a):a=l[1],a}function p(e,t){return(0,i.jsx)("li",{children:(0,i.jsx)(l.Paragraph,{tag:"p2",weight:"regular",className:"text-white-500 mb-1",children:e})},t)}e.s(["default",0,()=>{let e,l,c,d,m,g,h=(0,t.c)(21),{creditPackages:f,discounts:x,metadata:y,checkout:b,loading:w,error:v}=(0,s.useCreditPackages)();return h[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"pt-dimension-400 sm:pt-0 pb-dimension-300 sm:pb-0",children:(0,i.jsx)(a.Heading,{tag:"h3",weight:"medium",className:"text-default-primary",children:"Credit Packages"})}),h[0]=e):e=h[0],h[1]!==w?(l=w&&(0,i.jsx)(u,{}),h[1]=w,h[2]=l):l=h[2],h[3]!==v?(c=v&&(0,i.jsx)("div",{className:"text-center py-8",children:(0,i.jsxs)("p",{className:"text-red-500",children:["Failed to load credit packages: ",v]})}),h[3]=v,h[4]=c):c=h[4],h[5]!==b||h[6]!==f||h[7]!==x||h[8]!==v||h[9]!==w||h[10]!==y?(d=!w&&!v&&(0,i.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-dimension-200",children:f.map((e,t)=>
1{let a=(0,r.getCreditCardProps)(e,b??void 0,y);return(0,i.jsx)(n.CreditTopUpCard,{...a,metadata:y,discountPercent:x[t]},e.id)})}),h[5]=b,h[6]=f,h[7]=x,h[8]=v,h[9]=w,h[10]=y,h[11]=d):d=h[11],h[12]!==f||h[13]!==v||h[14]!==w?(m=!w&&!v&&f.length>0&&(0,i.jsx)("div",{className:"pt-dimension-200 sm:pt-0 px-dimension-400 sm:px-dimension-600",children:(0,i.jsx)("ul",{className:"list-disc text-white-500 ",children:o.map(p)})}),h[12]=f,h[13]=v,h[14]=w,h[15]=m):m=h[15],h[16]!==l||h[17]!==c||h[18]!==d||h[19]!==m?(g=(0,i.jsxs)("div",{className:"flex flex-col gap-0 sm:gap-dimension-200 lg:gap-dimension-300 sm:px-0 pb-dimension-600 sm:pb-0",children:[e,l,c,d,m]}),h[16]=l,h[17]=c,h[18]=d,h[19]=m,h[20]=g):g=h[20],g}],91724);var g=e.i(35911),h=e.i(94237),f=e.i(7284);let x=(0,h.cva)("text-brand-300 cursor-pointer",{variants:{size:{L:"px-4 py-2",M:"px-3 py-1",S:"px-2 py-0.5"}},defaultVariants:{size:"L"}});function y(e){let a,n,s,r,o,c,d,m,u,p=(0,t.c)(22);if(p[0]!==e?({className:a,size:o,selected:r,tabs:c,onSelect:n,...s}=e,p[0]=e,p[1]=a,p[2]=n,p[3]=s,p[4]=r,p[5]=o,p[6]=c):(a=p[1],n=p[2],s=p[3],r=p[4],o=p[5],c=p[6]),p[7]!==a?(d=(0,f.default)("bg-neutral-800 rounded-full flex w-fit",a),p[7]=a,p[8]=d):d=p[8],p[9]!==n||p[10]!==r||p[11]!==o||p[12]!==c){let e;p[14]!==n||p[15]!==r||p[16]!==o?(e=(e,t)=>(0,i.jsx)("button",{type:"button","aria-pressed":r===t,onClick:()=>n(t),className:(0,f.default)(x({size:o}),r===t?"text-text-default-primary hover:text-text-default-primary bg-brand-400 rounded-full":"hover:text-brand-100"),children:(0,i.jsx)(l.Paragraph,{tag:"L"===o?"p2":"M"===o?"p3":"p4",weight:"medium",children:e})},t),p[14]=n,p[15]=r,p[16]=o,p[17]=e):e=p[17],m=c.map(e),p[9]=n,p[10]=r,p[11]=o,p[12]=c,p[13]=m}else m=p[13];return p[18]!==s||p[19]!==d||p[20]!==m?(u=(0,i.jsx)("div",{"data-slot":"segmentedControl",className:d,...s,children:m}),p[18]=s,p[19]=d,p[20]=m,p[21]=u):u=p[21],u}var b=e.i(28338),w=e.i(14670);function v(e){let a,l,n,s,r,o,c,d,m,u=(0,t.c)(13),{isAccent:p}=e,g=void 0!==p&&p,h=`flex flex-col gap-dimension-200 lg:gap-dimension-300 py-dimension-300 lg:py-dimension-400 px-dimension-200 lg:px-dimension-300 rounded-3xl ${g?"bg-brand-500":"bg-neutral-1000"}`;return u[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"h-6 w-20 bg-white-200 rounded animate-pulse"}),u[0]=a):a=u[0],u[1]!==g?(l=g&&(0,i.jsx)("div",{className:"h-6 w-24 bg-white-200 rounded-full animate-pulse"}),u[1]=g,u[2]=l):l=u[2],u[3]!==l?(n=(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[a,l]}),u[3]=l,u[4]=n):n=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)("div",{className:"h-10 w-24 bg-white-200 rounded animate-pulse"}),(0,i.jsx)("div",{className:"h-8 w-10 bg-white-200 rounded animate-pulse"})]}),(0,i.jsx)("div",{className:"h-4 w-28 bg-white-200 rounded animate-pulse"})]}),u[5]=s):s=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsxs)("div",{className:"flex flex-col gap-dimension-100",children:[(0,i.jsx)("div",{className:"h-5 w-36 bg-white-200 rounded animate-pulse"}),(0,i.jsx)("div",{className:"h-px w-full bg-white-200 rounded"})]}),o=(0,i.jsx)("div",{className:"h-10 w-full bg-white-200 rounded-xl animate-pulse"}),c=(0,i.jsx)("div",{className:"h-4 w-40 bg-white-200 rounded animate-pulse"}),u[6]=r,u[7]=o,u[8]=c):(r=u[6],o=u[7],c=u[8]),u[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsx)("div",{className:"flex flex-col gap-dimension-100",children:Array.from({length:5}).map(j)}),u[9]=d):d=u[9],u[10]!==h||u[11]!==n?(m=(0,i.jsxs)("div",{className:h,children:[n,s,r,o,c,d]}),u[10]=h,u[11]=n,u[12]=m):m=u[12],m}function j(e,t){return(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("div",{className:"h-4 w-4 bg-white-200 rounded animate-pulse shrink-0"}),(0,i.jsx)("div",{className:"h-4 bg-white-200 rounded animate-pulse",style:{width:`${60+13*t%30}%`}})]},t)}function P(){let e,a,l=(0,t.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)("div",{className:"flex sm:items-center sm:justify-between flex-col sm:flex-row gap-dimension-150 sm:gap-0 pt-dimension-400 sm:pt-0 pb-dimension-300 sm:pb-0",children:[(0,i.jsx)("div",{className:"h-7 w-24 bg-white-200 rounded animate-pulse"}),(0,i.jsx)("div",{className:"h-10 w-56 bg-white-200 rounded-full animate-pulse"})]}),l[0]=e):e=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"flex flex-col gap-0 sm:gap-dimension-400 lg:gap-dimension-500",children:(0,i.jsxs)("div",{className:"flex flex-col gap-0 sm:gap-dimension-200 lg:gap-dimension-300",children:[e,(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-dimension-300",children:[(0,i.jsx)(v,{}),(0,i.jsx)(v,{isAccent:!0}),(0,i.jsx)(v,{})]})]})}),l[1]=a):a=l[1],a}var N=e.i(86514),A=e.i(62613);
1function S(e){let i,a,l,n,s,r,o,c,d=(0,t.c)(38);e:{let t;if(!e?.plans?.length){let e;d[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],d[0]=e):e=d[0],i=e;break e}d[1]!==e?(t=e.plans.filter(i=>"recurring"===(0,A.getBillingType)(i)&&(0,A.isPlanOnSale)(i,e)),d[1]=e,d[2]=t):t=d[2],i=t}let m=i;i:{let i,t;if(!e||!m.length){let e;d[3]===Symbol.for("react.memo_cache_sentinel")?(e=[],d[3]=e):e=d[3],a=e;break i}d[4]!==e.features?(i=e.features||[],d[4]=e.features,d[5]=i):i=d[5];let l=i;if(!Array.isArray(l)){let e;d[6]===Symbol.for("react.memo_cache_sentinel")?(e=[],d[6]=e):e=d[6],a=e;break i}if(d[7]!==l||d[8]!==e.metadata?.currency||d[9]!==m){let i;d[11]!==l||d[12]!==e.metadata?.currency?(i=i=>{let t=(i.included_features||[]).map(e=>l.find(i=>i.id===e)).filter(B).sort(O),a=i.price_yearly,n=a&&a>0?Math.round((1-a/12/i.price_monthly)*100):0;return{id:i.id,name:i.name,priceMonthly:i.price_monthly,priceYearly:i.price_yearly||void 0,currency:e.metadata?.currency||"USD",features:t,isPopular:i.is_popular,isDefault:i.is_default,yearlyDiscount:Math.max(0,n)}},d[11]=l,d[12]=e.metadata?.currency,d[13]=i):i=d[13],t=m.map(i).sort(D),d[7]=l,d[8]=e.metadata?.currency,d[9]=m,d[10]=t}else t=d[10];a=t}let u=a;t:{let e;if(!u.length){let e;d[14]===Symbol.for("react.memo_cache_sentinel")?(e={totalPlans:0,priceRange:{min:0,max:0},currency:"USD",avgYearlyDiscount:0},d[14]=e):e=d[14],l=e;break t}if(d[15]!==u){let i,t=u.map(k),a=u.filter(L).map(E),l=u.length,n=Math.min(...t),s=Math.max(...t);d[17]!==n||d[18]!==s?(i={min:n,max:s},d[17]=n,d[18]=s,d[19]=i):i=d[19],e={totalPlans:l,priceRange:i,currency:u[0]?.currency||"USD",avgYearlyDiscount:a.length?Math.round(a.reduce(C,0)/a.length):0},d[15]=u,d[16]=e}else e=d[16];l=e}let p=l;d[20]!==e?(n=(0,A.groupPlansForSale)(e).filter(T),d[20]=e,d[21]=n):n=d[21];let g=n;d[22]!==m?(s=(0,A.getBiggestAnnualDiscount)(m),d[22]=m,d[23]=s):s=d[23];let h=s,f=!u.length,x=e?.checkout;d[24]!==e?.plans?(r=i=>e?.plans.find(e=>e.id===i),d[24]=e?.plans,d[25]=r):r=d[25];let y=r;d[26]!==e?(o=(i,t)=>(0,A.getCheckoutEntry)(e,i,t),d[26]=e,d[27]=o):o=d[27];let b=o;return d[28]!==h||d[29]!==u||d[30]!==g||d[31]!==e||d[32]!==p||d[33]!==b||d[34]!==f||d[35]!==x||d[36]!==y?(c={plans:u,groups:g,biggestAnnualDiscount:h,summary:p,isEmpty:f,raw:e,checkout:x,getPlanById:y,getPaddleCheckoutEntry:b,resolvePeriodEnum:_},d[28]=h,d[29]=u,d[30]=g,d[31]=e,d[32]=p,d[33]=b,d[34]=f,d[35]=x,d[36]=y,d[37]=c):c=d[37],c}function _(e){return e?N.PeriodEnum.YEAR:N.PeriodEnum.MONTH}function T(e){return"recurring"===e.billingType}function C(e,i){return e+i}function E(e){return e.yearlyDiscount}function L(e){return e.yearlyDiscount>0}function k(e){return e.priceMonthly}function D(e,i){return e.priceMonthly-i.priceMonthly}function O(e,i){return e.order-i.order}function B(e){return!!e}e.s(["usePricingPlansTable",0,S],3356),e.i(13442);var I=e.i(96280);e.i(86637);var M=e.i(82798),R=e.i(87448),U=e.i(52088),V=e.i(93850),F=e.i(95093),G=e.i(63514),Y=e.i(96396),$=e.i(3829);let H=e=>{let a,n,s,r,o,c=(0,t.c)(12),{sales:d,className:m}=e;c[0]!==d?(a=(0,$.getLifetimeSalesNotice)(d),c[0]=d,c[1]=a):a=c[1];let u=a;return u?(c[2]!==m?(n=(0,U.cn)("flex flex-col sm:flex-row sm:items-center sm:justify-between gap-dimension-100 sm:gap-dimension-200 rounded-xl border px-dimension-300 py-dimension-200 bg-brand-500/15 border-brand-500/30",m),c[2]=m,c[3]=n):n=c[3],c[4]!==u.title?(s=(0,i.jsx)(l.Paragraph,{tag:"p2",weight:"medium",className:"text-default-primary",children:u.title}),c[4]=u.title,c[5]=s):s=c[5],c[6]!==u.badge?(r=u.badge&&(0,i.jsx)("span",{className:"self-start sm:self-auto whitespace-nowrap rounded-full border border-brand-500/30 bg-brand-500/15 px-2 py-0.5 text-sm font-medium text-brand-200",children:u.badge}),c[6]=u.badge,c[7]=r):r=c[7],c[8]!==n||c[9]!==s||c[10]!==r?(o=(0,i.jsxs)("div",{role:"note","aria-label":"Lifetime sales",className:n,children:[s,r]}),c[8]=n,c[9]=s,c[10]=r,c[11]=o):o=c[11],o):null};function z(){return Date.now()}function K(e){return e.plans}function W(e,t){return(0,i.jsx)("li",{children:(0,i.jsx)(l.Paragraph,{tag:"p2",weight:"regular",className:"text-white-500 mb-1",children:e})},t)}e.s(["LifetimeSalesNotice",0,H],11106),e.s(["default",0,e=>
1{let l,n,s,r,m,u,p,h,x,v,j,_,T,C,E,L,k,D=(0,t.c)(47),{initialPeriod:O,onPeriodChange:B}=e,[q,J]=(0,g.useState)(void 0===O?null:O),[Q,X]=(0,g.useState)(1921);D[0]===Symbol.for("react.memo_cache_sentinel")?(l={},D[0]=l):l=D[0];let[Z,ee]=(0,g.useState)(l),[ei]=(0,g.useState)(z),{data:et,loading:ea}=(0,R.usePricingPlans)(),el=(0,w.useAtomValue)(M.isAuthenticatedAtom),en=(0,w.useAtomValue)(I.planInfoAtom),es=(0,w.useAtomValue)(I.planSubscriptionAtom),er=(0,w.useAtomValue)(V.showDiscountAtom),eo=(0,w.useAtomValue)(V.discountPercentAtom),ec=S(et);D[1]!==et?(n=(0,A.groupPlansForSale)(et),D[1]=et,D[2]=n):n=D[2];let ed=n,em=el&&(0,G.isLifetimeSubscription)(es),eu=(0,$.getLifetimeSalesState)(et?.metadata.lifetime_sales,ei),ep=(0,$.isLifetimeTabShown)({lifetimeOnSale:(0,A.hasLifetimePlanOnSale)(et),sales:eu}),eg=(0,A.resolvePricingPeriod)(q,{lifetimeOnSale:ep,ownsLifetime:em}),eh=(0,A.getPricingPeriods)(ep),ef=eg===N.PeriodEnum.YEAR,ex=eg===N.PeriodEnum.LIFETIME;D[3]!==ex?(s=e=>e.billingType===(ex?"lifetime":"recurring"),D[3]=ex,D[4]=s):s=D[4];let ey=ed.filter(s),eb=ex?(0,Y.getLifetimeRefundDays)(ey.flatMap(K)):null,ew=em&&et?.plans.find(e=>e.id===en?.id)||null;D[5]!==ed||D[6]!==en?(r=()=>{ed.length>0&&ee(e=>{let i={...e};for(let e of ed)if(!(e.groupKey in i)){let t=en?e.plans.find(e=>e.id===en.id):null;i[e.groupKey]=t?t.id:e.defaultPlanId}return i})},m=[ed,en],D[5]=ed,D[6]=en,D[7]=r,D[8]=m):(r=D[7],m=D[8]),(0,g.useEffect)(r,m),D[9]===Symbol.for("react.memo_cache_sentinel")?(u=(e,i)=>{ee(t=>({...t,[e]:Number(i)}))},D[9]=u):u=D[9];let ev=u;D[10]!==B?(p=e=>{J(e),window.history.replaceState(null,"",(0,N.buildPricingPeriodUrl)(window.location.href,e)),B?.(e)},D[10]=B,D[11]=p):p=D[11];let ej=p,eP=!ea&&!!et&&null!=q&&q!==eg;if((0,g.useEffect)(()=>{eP&&window.history.replaceState(null,"",(0,N.buildPricingPeriodUrl)(window.location.href,eg))},[eP,eg]),D[12]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{{X(window.innerWidth);let e=()=>X(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},h=[],D[12]=h,D[13]=x):(h=D[12],x=D[13]),(0,g.useEffect)(x,h),ea){let e;return D[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(P,{}),D[14]=e):e=D[14],e}if(!et)return null;let eN=!ef;D[15]!==eN?(v=(0,f.default)({"text-gradient-text":eN}),D[15]=eN,D[16]=v):v=D[16],D[17]!==ec.biggestAnnualDiscount||D[18]!==v?(j=(0,i.jsxs)("span",{className:v,children:["Yearly (-",ec.biggestAnnualDiscount,"% off)"]},"yearly"),D[17]=ec.biggestAnnualDiscount,D[18]=v,D[19]=j):j=D[19];
1let eA={[N.PeriodEnum.MONTH]:"Monthly",[N.PeriodEnum.YEAR]:j,[N.PeriodEnum.LIFETIME]:"Lifetime"},eS=et?.metadata.currency||"USD";D[20]!==eS||D[21]!==ec?(_=e=>(0,A.resolvePlanPrice)(e,N.PeriodEnum.LIFETIME,ec.getPaddleCheckoutEntry(e.id,N.PeriodEnum.LIFETIME)?.currency||eS),D[20]=eS,D[21]=ec,D[22]=_):_=D[22];let e_=_,eT=e=>{if(ex){let{price:i,currency:t}=e_(e);return null!=i?(0,U.formatCurrency)(i,t,!Number.isInteger(i)):void 0}let i=ec.getPaddleCheckoutEntry(e.id,eg),t=e.price?.monthly?.price??e.price_monthly,a=i?.price??e.price?.yearly?.price??e.price_yearly??(null!=t?12*t:void 0),l=ef?null!=a?a/12:void 0:i?.price??t;er&&null!=l&&(l=(0,F.applyDiscount)(l,eo));let n=i?.currency??et?.metadata.currency??"USD";return null!=l?`${(0,U.formatCurrency)(l,n,ef||er)}/mo`:void 0};D[23]===Symbol.for("react.memo_cache_sentinel")?(T=(0,i.jsx)(a.Heading,{tag:"h3",weight:"medium",className:"text-default-primary",children:"Pricing"}),D[23]=T):T=D[23];let eC=eh.indexOf(eg),eE=eh.map(e=>eA[e]),eL=Q<1921?"M":"L";return D[24]!==ej||D[25]!==eh?(C=e=>{ej(eh[e])},D[24]=ej,D[25]=eh,D[26]=C):C=D[26],D[27]!==eC||D[28]!==eE||D[29]!==eL||D[30]!==C?(E=(0,i.jsxs)("div",{className:"flex sm:items-center sm:justify-between flex-col sm:flex-row gap-dimension-150 sm:gap-0 pt-dimension-400 sm:pt-0 pb-dimension-300 sm:pb-0",children:[T,(0,i.jsx)(y,{selected:eC,tabs:eE,size:eL,onSelect:C})]}),D[27]=eC,D[28]=eE,D[29]=eL,D[30]=C,D[31]=E):E=D[31],D[32]!==ex||D[33]!==eu?(L=ex&&(0,i.jsx)(H,{sales:eu,className:"mb-dimension-200 sm:mb-0"}),D[32]=ex,D[33]=eu,D[34]=L):L=D[34],D[35]!==en||D[36]!==eT||D[37]!==e_||D[38]!==ex||D[39]!==eS||D[40]!==ew||D[41]!==eg||D[42]!==ec||D[43]!==Z||D[44]!==et?.features||D[45]!==et?.metadata?(k=e=>{let t=Z[e.groupKey]??e.defaultPlanId,a=e.plans.find(e=>e.id===t)||e.plans[0],l=a.included_features.map(e=>et?.features.find(i=>i.id===e)?.title).filter(Boolean),n=ec.getPaddleCheckoutEntry(a.id,eg),s=ex?e_(a):null,r={id:a.id,name:e.displayName,monthlyPrice:a.price?.monthly?.price||a.price_monthly,yearlyPrice:a.price?.yearly?.price||a.price_yearly||(a.price?.monthly?.price||a.price_monthly?12*(a.price?.monthly?.price||a.price_monthly):void 0),lifetimePrice:s?.price,credits:0,features:l,isPopular:e.isPopular,isAccent:e.isPopular},o=e.isGrouped?e.plans.map(e=>({value:String(e.id),label:`${e.credits_monthly} credits/mo`,secondaryLabel:eT(e),isPopular:e.is_popular})):void 0;return(0,i.jsx)(b.PricingCard,{period:eg,plan:r,creditsMonthly:a.credits_monthly,currentPlan:en??void 0,apiPlan:a,checkoutEntry:n||void 0,currency:s?.currency||n?.currency||eS,taxIncluded:et?.metadata.tax_included,groupOptions:o,onGroupOptionChange:i=>ev(e.groupKey,i),ownedLifetimePlan:ew},e.groupKey)},D[35]=en,D[36]=eT,D[37]=e_,D[38]=ex,D[39]=eS,D[40]=ew,D[41]=eg,D[42]=ec,D[43]=Z,D[44]=et?.features,D[45]=et?.metadata,D[46]=k):k=D[46],(0,i.jsxs)("div",{className:"flex flex-col gap-0 sm:gap-dimension-400 lg:gap-dimension-500",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-0 sm:gap-dimension-200 lg:gap-dimension-300",children:[E,L,(0,i.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-dimension-300",children:ey.map(k)})]}),(0,i.jsx)("div",{className:"pt-dimension-200 sm:pt-0 px-dimension-400 sm:px-dimension-600",children:(0,i.jsx)("ul",{className:"list-disc text-white-500 ",children:[...ex?null!=eb&&eb>0?[...d,`Refunds within ${eb} ${1===eb?"day":"days"} of purchase through support; the credits you used are deducted.`]:d:c,...o].map(W)})})]})}],60655)},72422,60041,74638,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(97319),l=e.i(22682),n=e.i(28952);e.i(45748);var s=e.i(48854),r=e.i(39620),o=e.i(62312),c=e.i(14670);e.i(13442);var d=e.i(96280),m=e.i(25032);e.i(90574);var u=e.i(64145);e.s(["CREDITS_TOPUP_VISIBILITY_THRESHOLD",0,100],60041);let p=e=>{let a,s,r,o=(0,t.c)(10),{onClick:p,className:g,variant:h,size:f,alwaysVisible:x}=e,y=void 0===f?"sm":f,b=(0,m.useSetAtom)(u.openModalAtom),w=(0,c.useAtomValue)(d.isDefaultPlanAtom),v=(0,c.useAtomValue)(d.creditsAtom);if(!(void 0!==x&&x)&&v>=100)return null;o[0]!==w||o[1]!==p||o[2]!==b?(a=()=>{b(w?"upgrade-plan":"credit-packages"),p?.()},o[0]=w,o[1]=p,o[2]=b,o[3]=a):a=o[3];let j=a;return o[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"medium",className:"text-default-primary",children:"Get more credits"}),o[4]=s):s=o[4],o[5]!==g||o[6]!==j||o[7]!==y||o[8]!==h?(r=(0,i.jsx)(l.Button,{onClick:j,variant:h,size:y,className:g,children:s}),o[5]=g,o[6]=j,o[7]=y,o[8]=h,o[9]=r):r=o[9],r};e.s(["GetCreditsButton",0,p],74638);var g=e.i(35911),h=e.i(3829),f=e.i(62613),x=e.i(87448);function y(){return Date.now()}var b=e.i(63514);e.s(["default",0,()=>{let e,m,u,w,v,j,P,N,A,S,_,T,C,E,L,k,D,O,B,I,M,R,U,V=(0,t.c)(58),F=(0,c.useAtomValue)(d.planSubscriptionAtom);
1V[0]!==F?(e=(0,b.isLifetimeSubscription)(F),V[0]=F,V[1]=e):e=V[1];let G=e;V[2]!==G?(m={load:G},V[2]=G,V[3]=m):m=V[3];let Y=(e=>{let i,a=(0,t.c)(3),{load:l}=e,{data:n}=(0,x.usePricingPlans)(l),[s]=(0,g.useState)(y);return a[0]!==n||a[1]!==s?(i=!!n&&(0,h.isLifetimeTabShown)({lifetimeOnSale:(0,f.hasLifetimePlanOnSale)(n),sales:(0,h.getLifetimeSalesState)(n.metadata.lifetime_sales,s)}),a[0]=n,a[1]=s,a[2]=i):i=a[2],i})(m);V[4]!==Y?(u={lifetimeTabShown:Y},V[4]=Y,V[5]=u):u=V[5];let{currentPlan:$,priceLabel:H,formattedExpiryDate:z,expiryLabel:K,expiryDateFormatted:W,planAction:q,creditsText:J,creditsRefillText:Q}=(0,r.useProfileBilling)(u),X=(0,o.useRouter)(),Z=(0,c.useAtomValue)(d.isDefaultPlanAtom),ee=(0,c.useAtomValue)(d.isExternalSubscriptionAtom),ei=(0,c.useAtomValue)(d.subscriptionChannelLabelAtom);return V[6]===Symbol.for("react.memo_cache_sentinel")?(w=(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(a.Heading,{tag:"h4",weight:"semi",className:"text-default-primary hidden sm:block",children:"Subscription"}),!1]}),V[6]=w):w=V[6],V[7]!==ei||V[8]!==ee?(v=ee&&(0,i.jsxs)("div",{className:"bg-blue-500/10 border border-blue-500/30 p-4 rounded-xl flex flex-col gap-2",children:[(0,i.jsxs)(n.Paragraph,{tag:"p2",weight:"medium",className:"text-blue-400",children:["Managed via ",ei]}),(0,i.jsxs)(n.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary",children:["Your subscription is managed via ",ei,". To change your plan, use ",ei,"."]})]}),V[7]=ei,V[8]=ee,V[9]=v):v=V[9],V[10]!==H?(j=(0,i.jsx)(n.Paragraph,{tag:"p1",weight:"regular",className:"text-default-secondary",children:H}),V[10]=H,V[11]=j):j=V[11],V[12]!==$?(P=(0,i.jsx)(a.Heading,{tag:"h3",weight:"semi",className:"text-default-primary",children:$}),V[12]=$,V[13]=P):P=V[13],V[14]!==j||V[15]!==P?(N=(0,i.jsxs)("div",{className:"flex flex-col gap-1 sm:gap-2",children:[j,P]}),V[14]=j,V[15]=P,V[16]=N):N=V[16],V[17]!==K?(A=(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"regular",className:"text-default-tertiary",children:K}),V[17]=K,V[18]=A):A=V[18],V[19]!==W?(S=(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"regular",className:"text-default-tertiary",children:W}),V[19]=W,V[20]=S):S=V[20],V[21]!==S||V[22]!==A?(_=(0,i.jsxs)("div",{className:"flex flex-col sm:hidden",children:[A,S]}),V[21]=S,V[22]=A,V[23]=_):_=V[23],V[24]!==q||V[25]!==X?(T=q&&(0,i.jsx)(l.Button,{variant:"outlined",size:"sm",className:"hidden sm:flex",onClick:()=>{X.push(q.href)},children:(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"medium",className:"text-default-primary",children:q.label})}),V[24]=q,V[25]=X,V[26]=T):T=V[26],V[27]!==_||V[28]!==T||V[29]!==N?(C=(0,i.jsxs)("div",{className:"flex items-start justify-between gap-dimension-100 sm:gap-6",children:[N,_,T]}),V[27]=_,V[28]=T,V[29]=N,V[30]=C):C=V[30],V[31]!==z?(E=(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"regular",className:"text-default-tertiary hidden sm:block",children:z}),V[31]=z,V[32]=E):E=V[32],V[33]!==q||V[34]!==X?(L=q&&(0,i.jsx)(l.Button,{variant:"outlined",size:"sm",className:"w-full sm:hidden",onClick:()=>{X.push(q.href)},children:(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"medium",className:"text-default-primary",children:q.label})}),V[33]=q,V[34]=X,V[35]=L):L=V[35],V[36]!==C||V[37]!==E||V[38]!==L?(k=(0,i.jsxs)("div",{className:"bg-neutral-1000 p-4 rounded-xl flex flex-col gap-dimension-200 sm:gap-2",children:[C,E,L]}),V[36]=C,V[37]=E,V[38]=L,V[39]=k):k=V[39],V[40]!==J?(D=(0,i.jsx)(n.Paragraph,{tag:"p1",weight:"semi",className:"text-white-1000",children:J}),V[40]=J,V[41]=D):D=V[41],V[42]!==Q?(O=Q&&(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"regular",className:"text-default-tertiary",children:Q}),V[42]=Q,V[43]=O):O=V[43],V[44]!==D||V[45]!==O?(B=(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[D,O]}),V[44]=D,V[45]=O,V[46]=B):B=V[46],V[47]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)(p,{variant:"outlined"}),V[47]=I):I=V[47],V[48]!==B?(M=(0,i.jsxs)("div",{className:"bg-neutral-1000 p-4 rounded-xl gap-6 flex items-center justify-between",children:[B,I]}),V[48]=B,V[49]=M):M=V[49],V[50]!==Z||V[51]!==ee?(R=Z&&!ee&&(0,i.jsx)(s.default,{heading:"Upgrade to Pro",subheading:"Get more high-performing content generated",buttonText:"Upgrade"}),V[50]=Z,V[51]=ee,V[52]=R):R=V[52],V[53]!==k||V[54]!==M||V[55]!==R||V[56]!==v?(U=(0,i.jsxs)("div",{className:"flex-1 flex flex-col gap-dimension-200 lg:gap-dimension-300",children:[w,(0,i.jsxs)("div",{className:"flex flex-col gap-dimension-150 lg:gap-dimension-200",children:[v,k,M,R]})]}),V[53]=k,V[54]=M,V[55]=R,V[56]=v,V[57]=U):U=V[57],U}],72422)},48854,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(22682),l=e.i(97319),n=e.i(28952),s=e.i(62312),r=e.i(14670);e.i(86637);var o=e.i(82798);e.i(16455);var c=e.i(74385);function d(e){return setTimeout(e,200)}function m(e){return setTimeout(e,200)}e.s(["default",0,e=>{let u,p,g,h,f,x,y,b=(0,t.c)(21),{heading:w,subheading:v,buttonText:j,buttonOnClick:P,buttonClickProcessed:N}=e,A=void 0===j?"Upgrade":j,S=(0,s.useRouter)(),_=(0,r.useAtomValue)(o.isAuthenticatedAtom),{redirectToLogin:T}=(0,c.useAuthReturn)();b[0]!==N||b[1]!==P||b[2]!==_||b[3]!==T||b[4]!==S?(u=async()=>{P?.(),_?(N?.(),await new Promise(d),S.push("/pricing")):(N?.(),await new Promise(m),T())},b[0]=N,b[1]=P,b[2]=_,b[3]=T,b[4]=S,b[5]=u):u=b[5];let C=u;return b[6]!==w?(p=(0,i.jsx)(l.Heading,{tag:"h6",weight:"medium",className:"text-text-default-primary",children:w}),b[6]=w,b[7]=p):p=b[7],b[8]!==v?(g=(0,i.jsx)(n.Paragraph,{tag:"p4",weight:"regular",className:"text-text-default-secondary",children:v}),b[8]=v,b[9]=g):g=b[9],b[10]!==p||b[11]!==g?(h=(0,i.jsxs)("div",{className:"flex flex-col gap-0.5",children:[p,g]}),b[10]=p,b[11]=g,b[12]=h):h=b[12],b[13]!==A?(f=(0,i.jsx)(n.Paragraph,{tag:"p3",weight:"medium",className:"text-text-inverted-primary",children:A}),b[13]=A,b[14]=f):f=b[14],b[15]!==C||b[16]!==f?(x=(0,i.jsx)(a.Button,{variant:"white",size:"sm",onClick:C,children:f}),b[15]=C,b[16]=f,b[17]=x):x=b[17],b[18]!==h||b[19]!==x?(y=(0,i.jsxs)("div",{className:"bg-gradient-to-r from-[#191919] via-[#8941FF] to-[#00FFC1] p-dimension-200 sm:p-dimension-300 rounded-xl gap-dimension-200 flex sm:flex-row flex-col sm:items-center justify-between",children:[h,x]}),b[18]=h,b[19]=x,b[20]=y):y=b[20],y}])},69906,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(13434),l=e.i(28952),n=e.i(35911),s=e.i(62312),r=e.i(87448),o=e.i(9804),c=e.i(12178),d=e.i(86514);e.i(49890);var m=e.i(91043);function u(e){console.error("Failed to cancel subscription:",e)}function p(e){return e.is_default}e.s(["default",0,e=>{let g,h,f,x,y,b,w=(0,t.c)(19),{isVisible:v,onClose:j}
1=e,P=(0,s.useRouter)(),[N,A]=(0,n.useState)(!1),{data:S}=(0,r.usePricingPlans)(),[,_]=(0,o.useAtom)(c.changeSubscriptionActionAtom);w[0]===Symbol.for("react.memo_cache_sentinel")?(g={onSuccess:()=>{A(!0)},onError:u},w[0]=g):g=w[0];let T=(0,m.useApiRequest)(_,g);w[1]!==T||w[2]!==S?.plans?(h=async()=>{let e=S?.plans?.find(p);e?await T.execute({plan:e.id,period:d.PeriodEnum.MONTH}):console.error("Free plan not found")},w[1]=T,w[2]=S?.plans,w[3]=h):h=w[3];let C=h;w[4]!==j?(f=()=>{j?.()},w[4]=j,w[5]=f):f=w[5];let E=f;w[6]!==j||w[7]!==P?(x=()=>{A(!1),j?.(),P.push("/account")},w[6]=j,w[7]=P,w[8]=x):x=w[8];let L=x;if(N){let e;return w[9]!==L||w[10]!==v?(e=(0,i.jsx)(a.Modal,{isVisible:v,onClose:L,heading:"Your Subscription is cancelled",subheading:"Current subscription remains active until the next billing cycle and will be downgraded after",primaryButtonOnClick:L,primaryButtonText:"Got it",className:"sm:max-w-[451px]"}),w[9]=L,w[10]=v,w[11]=e):e=w[11],e}return w[12]===Symbol.for("react.memo_cache_sentinel")?(y=(0,i.jsx)(l.Paragraph,{tag:"p3",weight:"regular",className:"text-center text-text-default-secondary",children:"You will keep using your current plan until the end of your billing cycle. Then, we will switch you to a free plan."}),w[12]=y):y=w[12],w[13]!==T.isLoading||w[14]!==C||w[15]!==E||w[16]!==v||w[17]!==j?(b=(0,i.jsx)(a.Modal,{isVisible:v,onClose:j,variant:"input",heading:"Are you sure you want to cancel the plan?",primaryButtonOnClick:E,primaryButtonText:"Keep Subscription",primaryButtonDisabled:T.isLoading,secondaryButtonText:"Cancel Plan",secondaryButtonOnClick:C,secondaryButtonDisabled:T.isLoading,className:"sm:max-w-[392px]",children:y}),w[13]=T.isLoading,w[14]=C,w[15]=E,w[16]=v,w[17]=j,w[18]=b):b=w[18],b}])},78948,83024,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(13434);e.i(28338);var l=e.i(32822);e.s([],83024);var n=e.i(48854),s=e.i(6675),r=e.i(44496),o=e.i(93098),c=e.i(14670);e.i(13442);var d=e.i(96280);e.s(["default",0,e=>{let m,u,p,g,h,f=(0,t.c)(24),{isVisible:x,onClose:y,heading:b,subheading:w}=e,{creditPackages:v,discounts:j,metadata:P,checkout:N,loading:A,error:S}=(0,s.useCreditPackages)(),_=(0,c.useAtomValue)(d.isDefaultPlanAtom);return f[0]!==A?(m=A&&(0,i.jsx)("div",{className:"flex justify-center items-center py-8",children:(0,i.jsx)(o.default,{size:"lg"})}),f[0]=A,f[1]=m):m=f[1],f[2]!==S?(u=S&&(0,i.jsx)("div",{className:"text-center py-8",children:(0,i.jsxs)("p",{className:"text-red-500",children:["Failed to load credit packages: ",S]})}),f[2]=S,f[3]=u):u=f[3],f[4]!==N||f[5]!==v||f[6]!==j||f[7]!==S||f[8]!==A||f[9]!==P||f[10]!==y?(p=!A&&!S&&(0,i.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-dimension-200",children:v.map((e,t)=>{let a=(0,r.getCreditCardProps)(e,N??void 0,P);return(0,i.jsx)(l.CreditTopUpCard,{...a,metadata:P,onClose:y,discountPercent:j[t]},e.id)})}),f[4]=N,f[5]=v,f[6]=j,f[7]=S,f[8]=A,f[9]=P,f[10]=y,f[11]=p):p=f[11],f[12]!==y||f[13]!==_?(g=_&&(0,i.jsx)(n.default,{heading:"Upgrade to Pro",subheading:"Get more high-performing content generated",buttonText:"Upgrade",buttonClickProcessed:y}),f[12]=y,f[13]=_,f[14]=g):g=f[14],f[15]!==b||f[16]!==x||f[17]!==y||f[18]!==w||f[19]!==m||f[20]!==u||f[21]!==p||f[22]!==g?(h=(0,i.jsxs)(a.Modal,{isVisible:x,onClose:y,heading:b,subheading:w,className:"lg:max-w-[920px] md:max-w-[720px]",showCloseButton:!0,children:[m,u,p,g]}),f[15]=b,f[16]=x,f[17]=y,f[18]=w,f[19]=m,f[20]=u,f[21]=p,f[22]=g,f[23]=h):h=f[23],h}],78948)},82555,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(13434),l=e.i(45748),n=e.i(62312),s=e.i(97319),r=e.i(28952),o=e.i(5203);e.s(["default",0,e=>{let c,d,m,u,p,g,h,f=(0,t.c)(19),{isVisible:x,onClose:y,title:b,note:w,showPolicy:v,link:j}=e,P=void 0===b?"Payment Successful":b,N=void 0===w?"Your payment has been processed successfully.":w,A=void 0===v||v,S=void 0===j?"/":j,_=(0,n.useRouter)();f[0]!==S||f[1]!==y||f[2]!==_?(c=()=>{y?.(),_.push(S)},f[0]=S,f[1]=y,f[2]=_,f[3]=c):c=f[3];let T=c;return f[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsx)(l.default,{src:"/assets/icons/payment-success.svg",alt:"Payment success",width:32,height:32}),f[4]=d):d=f[4],f[5]!==P?(m=(0,i.jsx)(s.Heading,{tag:"h5",weight:"semi",className:"mt-dimension-400",children:P}),f[5]=P,f[6]=m):m=f[6],f[7]!==N?(u=(0,i.jsx)(r.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary mt-2",children:N}),f[7]=N,f[8]=u):u=f[8],f[9]!==A?(p=A&&(0,i.jsx)(r.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary mt-6",children:(0,i.jsx)(o.default,{})}),f[9]=A,f[10]=p):p=f[10],f[11]!==m||f[12]!==u||f[13]!==p?(g=(0,i.jsxs)("div",{className:"flex flex-col items-center text-center",children:[d,m,u,p]}),f[11]=m,f[12]=u,f[13]=p,f[14]=g):g=f[14],f[15]!==T||f[16]!==x||f[17]!==g?(h=(0,i.jsx)(a.Modal,{isVisible:x,onClose:void 0,variant:"default",className:"max-w-[451px]",primaryButtonText:"Got It",primaryButtonOnClick:T,showCloseButton:!1,children:g}),f[15]=T,f[16]=x,f[17]=g,f[18]=h):h=f[18],h}])},44049,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(13434),l=e.i(62312),n=e.i(97319),s=e.i(28952);
1e.s(["default",0,e=>{let r,o,c,d=(0,t.c)(8),{isVisible:m,onClose:u,returnUrl:p}=e,g=void 0===p?"/":p,h=(0,l.useRouter)();d[0]!==u||d[1]!==g||d[2]!==h?(r=()=>{u?.(),h.push(g)},d[0]=u,d[1]=g,d[2]=h,d[3]=r):r=d[3];let f=r;return d[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,i.jsx)(n.Heading,{tag:"h5",weight:"semi",children:"Payment failed"}),(0,i.jsx)(s.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary mt-2",children:"Something went wrong, please try again."})]}),d[4]=o):o=d[4],d[5]!==f||d[6]!==m?(c=(0,i.jsx)(a.Modal,{isVisible:m,onClose:void 0,variant:"default",className:"max-w-[451px]",primaryButtonText:"Try Again",primaryButtonOnClick:f,showCloseButton:!1,children:o}),d[5]=f,d[6]=m,d[7]=c):c=d[7],c}])},82481,e=>{"use strict";var i=e.i(69512),t=e.i(4107),a=e.i(13434),l=e.i(45748),n=e.i(16544),s=e.i(62312),r=e.i(97319),o=e.i(28952),c=e.i(5203);e.s(["default",0,e=>{let d,m,u,p,g,h,f=(0,t.c)(11),{isVisible:x,onClose:y,returnUrl:b}=e,w=void 0===b?"/":b,v=(0,s.useRouter)();f[0]!==y||f[1]!==w||f[2]!==v?(d=()=>{y?.(),v.push(`${w}`)},f[0]=y,f[1]=w,f[2]=v,f[3]=d):d=f[3];let j=d;return f[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,i.jsx)(l.default,{src:"/assets/icons/payment-success.svg",alt:`${n.SITE_NAME} logo`,width:32,height:32}),u=(0,i.jsx)(r.Heading,{tag:"h5",weight:"semi",className:"mt-dimension-400",children:"Thank you for your subscription"}),p=(0,i.jsx)(o.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary mt-2",children:"A payment will appear on your statement."}),f[4]=m,f[5]=u,f[6]=p):(m=f[4],u=f[5],p=f[6]),f[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,i.jsxs)("div",{className:"flex flex-col items-center text-center",children:[m,u,p,(0,i.jsx)(o.Paragraph,{tag:"p3",weight:"regular",className:"text-default-secondary mt-6",children:(0,i.jsx)(c.default,{})})]}),f[7]=g):g=f[7],f[8]!==j||f[9]!==x?(h=(0,i.jsx)(a.Modal,{isVisible:x,onClose:void 0,variant:"default",className:"max-w-[451px]",primaryButtonText:"Got It",primaryButtonOnClick:j,showCloseButton:!1,children:g}),f[8]=j,f[9]=x,f[10]=h):h=f[10],h}])},87448,e=>{"use strict";var i=e.i(4107),t=e.i(25032);e.i(49890);var a=e.i(37031),l=e.i(12178);e.s(["usePricingPlans",0,function(e){let n,s=(0,i.c)(2),r=(0,t.useSetAtom)(l.getPlansPricingTableActionAtom);s[0]!==r?(n=()=>r(),s[0]=r,s[1]=n):n=s[1];let o=n;return(0,a.useApiDataCached)(o,l.plansPricingTableAtoms,void 0===e||e)}])},3829,e=>{"use strict";let i=e=>{if(!e)return null;let i=Date.parse(e);return Number.isNaN(i)?null:i},t=(e,i)=>Math.max(0,Math.ceil((e-i)/864e5)),a=e=>null==e||e<=0?null:1===e?"Last day":`${e} days left`;e.s(["formatDaysLeft",0,a,"getDaysLeft",0,(e,a=Date.now())=>{let l=i(e);return null==l?null:t(l,a)},"getLifetimeSalesNotice",0,e=>{let i;if(!e.isOpen)return null;let t=a(e.daysLeft);return null==e.limit&&null==t?null:{title:null!=e.limit?`Limited offer: only ${i=e.limit,`${new Intl.NumberFormat("en-US").format(i)} lifetime ${1===i?"plan":"plans"}`}`:"Limited offer",badge:t}},"getLifetimeSalesState",0,(e,a=Date.now())=>{if(!e)return{isOpen:!0,soldOut:!1,ended:!1,limit:null,remaining:null,daysLeft:null};let l=i(e.ends_at),n=e.sold_out,s=null!=l&&a>=l||!e.is_open&&!n,r=null;return null!=l&&(r=s?0:t(l,a)),{isOpen:!n&&!s,soldOut:n,ended:s,limit:e.limit,remaining:e.remaining,daysLeft:r}},"isLifetimeTabShown",0,({lifetimeOnSale:e,sales:i})=>e&&i.isOpen])},12178,e=>{"use strict";var i=e.i(70415);e.i(66563);var t=e.i(80314);e.i(49890);var a=e.i(37031);let l=(0,a.createCachedApiAtoms)(),n=(0,a.createCachedApiAtoms)(),s=(0,a.createCachedApiAtoms)(),r=(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/payments/",method:"GET"})),o=(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/plans-pricing-table/",method:"GET"})),c=(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/products-pricing-table/",method:"GET"})),d=(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/unlock-pricing-table/",method:"GET"})),m=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/change-subscription/",method:"POST",data:a})),u=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/change-subscription-preview/",method:"POST",data:a})),p=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/lifetime/checkout/",method:"POST",data:a})),g=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:`/api/billing/transaction-status/${a}/`,method:"GET",silentForbidden:!0})),h=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/unlock-video/",method:"POST",data:a})),f=(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/paddle/create-customer-session/",method:"POST",data:{}})),x=(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:`/api/billing/paddle/session-info/${a}/`,method:"GET"}));(0,i.atom)(null,async(e,i)=>await (0,t.makeApiCall)(e,i,{endpoint:"/api/billing/stripe/create-customer-session/",method:"POST",data:{}})),(0,i.atom)(null,async(e,i,a)=>await (0,t.makeApiCall)(e,i,{endpoint:`/api/billing/stripe/session-info/${a}/`,method:"GET"})),e.s(["changeSubscriptionActionAtom",0,m,"changeSubscriptionPreviewActionAtom",0,u,"createLifetimeCheckoutActionAtom",0,p,"createPaddleCustomerSessionActionAtom",0,f,"creditPackagesAtoms",0,n,"getPaddleSessionInfoActionAtom",0,x,"getPaymentsActionAtom",0,r,"getPlansPricingTableActionAtom",0,o,"getProductsPricingTableActionAtom",0,c,"getTransactionStatusActionAtom",0,g,"getUnlockPricingTableActionAtom",0,d,"plansPricingTableAtoms",0,l,"unlockPricingTableAtoms",0,s,"unlockVideoActionAtom",0,h])},63033,e=>{"use strict";var i,t,a,l,n=((i={}).PADDLE="paddle",i.STRIPE="stripe",i),s=((t={}
1).PENDING="pending",t.PAID="paid",t.CANCELED="canceled",t.PAST_DUE="past_due",t.REFUNDED="refunded",t);(a={}).ALIPAY="Alipay",a.APPLE_PAY="ApplePay",a.BANCONTACT="Bancontact",a.CARD="Card",a.GOOGLE_PAY="GooglePay",a.IDEAL="Ideal",a.OFFLINE="Offline",a.PAYPAL="Paypal",a.UNKNOWN="Unknown",a.WIRE_TRANSFER="WireTransfer";var r=((l={}).DRAFT="draft",l.PAID="paid",l.CANCELED="canceled",l);e.s(["PaymentProviderEnum",()=>n,"PaymentStatusEnum",()=>s,"ResultEnum",()=>r])},39620,e=>{"use strict";var i=e.i(4107),t=e.i(35911),a=e.i(14670),l=e.i(96280),n=e.i(78728);function s(){return Date.now()}e.s(["useProfileBilling",0,e=>{let r,o,c=(0,i.c)(19),{lifetimeTabShown:d}=void 0===e?{}:e,m=(0,a.useAtomValue)(l.billingInfoAtom),[u]=(0,t.useState)(s),p=(0,n.buildProfileBillingView)(m,{lifetimeTabShown:void 0!==d&&d}),g=m?.subscription?.amount||0,h=m?.subscription?.end_date||null,f=m?.credits||0,x=m?.subscription?.next_credit_date||null,y=!!m?.subscription&&g>0;c[0]!==h||c[1]!==u?(r=!!h&&new Date(h).getTime()-u<6048e5,c[0]=h,c[1]=u,c[2]=r):r=c[2];let b=r,w=!p.isLifetime&&g>0?p.priceLabel:"";return c[3]!==m||c[4]!==y||c[5]!==b||c[6]!==x||c[7]!==f||c[8]!==w||c[9]!==p.creditsRefillText||c[10]!==p.creditsText||c[11]!==p.isLifetime||c[12]!==p.planAction||c[13]!==p.planName||c[14]!==p.priceLabel||c[15]!==p.renewalDate||c[16]!==p.renewalLabel||c[17]!==p.renewalText?(o={currentPlan:p.planName,formattedPrice:w,priceLabel:p.priceLabel,isLifetime:p.isLifetime,formattedExpiryDate:p.renewalText,expiryLabel:p.renewalLabel,expiryDateFormatted:p.renewalDate,planAction:p.planAction,remainingCredits:f,creditsText:p.creditsText,nextCreditDate:x,creditsRefillText:p.creditsRefillText,hasActivePlan:y,isExpiringSoon:b,rawBillingInfo:m},c[3]=m,c[4]=y,c[5]=b,c[6]=x,c[7]=f,c[8]=w,c[9]=p.creditsRefillText,c[10]=p.creditsText,c[11]=p.isLifetime,c[12]=p.planAction,c[13]=p.planName,c[14]=p.priceLabel,c[15]=p.renewalDate,c[16]=p.renewalLabel,c[17]=p.renewalText,c[18]=o):o=c[18],o}])}]);

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.