PageSourceSearch

https://colorin.ai/app/_next/static/chunks/pages/pricing-d2ac741b54101644.js

js colorin.ai collected 2026-10-05 11:57:57 UTC 31,764 bytes, 27 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9939],{83542:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing",function(){return s(87796)}])},32602:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return i},noSSR:function(){return n}});let a=s(38754);s(85893),s(67294);let r=a._(s(35491));function l(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let s=r.default,a={loading:e=>{let{error:t,isLoading:s,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let i=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?s({...a,loader:()=>null!=i?i().then(l):Promise.resolve(l(()=>null))}):(delete a.webpack,delete a.modules,n(s,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=s(38754)._(s(67294)).default.createContext(null)},35491:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let a=s(38754)._(s(67294)),r=s(1159),l=[],n=[],i=!1;function o(e){let t=e(),s={loading:!0,loaded:null,error:null};return s.promise=t.then(e=>(s.loading=!1,s.loaded=e,e)).catch(e=>{throw s.loading=!1,s.error=e,e}),s}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let s=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function o(){if(!l){let t=new c(e,s);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!i){let e=s.webpack?s.webpack():s.modules;e&&n.push(t=>{for(let s of e)if(t.includes(s))return o()})}function d(e,t){!function(){o();let e=a.default.useContext(r.LoadableContext);e&&Array.isArray(s.modules)&&s.modules.forEach(t=>{e(t)})}();let n=a.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),a.default.useMemo(()=>{var t;return n.loading||n.error?a.default.createElement(s.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:l.retry}):n.loaded?a.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return d.preload=()=>o(),d.displayName="LoadableComponent",a.default.forwardRef(d)}(o,e)}function p(e,t){let s=[];for(;e.length;){let a=e.pop();s.push(a(t))}return Promise.all(s).then(()=>{if(e.length)return p(e,t)})}d.preloadAll=()=>new Promise((e,t)=>
1{p(l).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let s=()=>(i=!0,t());p(n,e).then(s,s)})),window.__NEXT_PRELOADREADY=d.preloadReady;let u=d},38178:function(e,t,s){"use strict";s.d(t,{BB:function(){return n},cn:function(){return l},k5:function(){return c},mx:function(){return i},qY:function(){return r},ty:function(){return d},xk:function(){return o}});var a=s(52649);let r=async()=>{try{return a.Z.get("payment-plans/list")}catch(e){return console.log(e),{status:!1,message:e?.message}}},l=async e=>{try{return a.Z.post("payments/couponinfo",{code:e})}catch(e){return console.log(e),{status:!1,message:e?.message}}},n=async(e,t=null,s)=>{try{return a.Z.post("payments/change-plan/card/paid",{planID:e,cardID:t,couponCode:s})}catch(e){return console.log(e),{status:!1,message:e?.message}}},i=async(e,t=null,s)=>{try{return a.Z.post("payments/subscription/apple-pay",{planId:e,paymentMethodId:t,couponCode:s})}catch(e){return console.log(e),{status:!1,message:e?.message}}},o=async(e,t=null)=>{try{return a.Z.post("payments/extra-credits/apple-pay",{creditId:e,paymentMethodId:t})}catch(e){return console.log(e),{status:!1,message:e?.message}}},c=async(e,t=null,s)=>{try{return a.Z.post("payments/subscription/google-pay",{planId:e,paymentMethodId:t,couponCode:s})}catch(e){return console.log(e),{status:!1,message:e?.message}}},d=async e=>{try{return a.Z.post("payments/subscription/cash-app-pay",{planId:e})}catch(e){return console.log(e),{status:!1,message:e?.message}}}},30331:function(e,t,s){"use strict";s.d(t,{oW:function(){return o},H0:function(){return n},lP:function(){return p}});var a=s(98029),r=s(52649);async function l(e){let t={planId:e.planId,promotekitReferral:e.promotekitReferral,isYearly:e.isYearly},{data:s}=await r.Z.post("payments/create/checkout-session",t);return s}function n(){return(0,a.D)({mutationFn:e=>l(e),onError:e=>{console.error("Failed to get checkout session:",e)}})}async function i(e){let{data:t}=await r.Z.post("payments/create/checkout/extra-credits",{creditId:e});return t}function o(){return(0,a.D)({mutationFn:e=>i(e),onError:e=>{console.error("Failed to get checkout extra credits session:",e)}})}var c=s(78551),d=s(38178);function p(){return(0,c.a)({queryKey:["payment-plans"],queryFn:async()=>{let e=await (0,d.qY)();if(!e?.status)throw Error(e?.message||"Failed to fetch plans");return{plans:(e.data?.plans??[]).filter(e=>"free"!==e.type),primaryCard:e.data?.primaryCard??""}},staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1})}},87796:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return I},default:function(){return B}});var a=s(85893),r=s(94907),l=s(13005),n=s(9473),i=s(67294),o=s(53660),c=s(28860),d=s.n(c),p=s(38178),u=s(42746),x=s(59335);let m=e=>e%1==0?e.toString():e.toFixed(2);var h=({plans:e,currentPlanId:t,recommendedPlanId:s,onSelect:r,loadingPlanId:l,isYearly:i=!1})=>{let o=(0,u.useTranslations)("planSelection"),c=(0,u.useTranslations)("changePlan"),{profile:d}=(0,n.v9)(e=>e.users),p=d.language||"en",h="es"===p?"/mes":"/mo",f="es"===p?"cr\xe9ditos/mes":"credits/month";return(0,a.jsx)("div",{className:"grid w-full max-w-[1200px] mx-auto gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 items-stretch",children:e.map(e=>{let n=!!d?.subscription?.isYearly,u=t===e._id&&i===n,b=s===e._id,g=l===e._id,y=e[`name-${p}`]||e["name-en"],w=e[`description-${p}`]||e["description-en"],j=e[`items-${p}`]||e["items-en"]||[],N=e=>e.includes("No Included"),_=[...j.filter(e=>!N(e)),...j.filter(N)],v=Number(e.amount),k=+(.8*v).toFixed(2),S=+(12*v*.8).toFixed(2),C=(Number(e.credits)||0).toLocaleString("es"===p?"es-ES":"en-US"),E=Number(e.pages)||0,A=E.toLocaleString("es"===p?"es-ES":"en-US");return(0,a.jsxs)("div",{className:`relative flex flex-col rounded-[24px] bg-white w-full px-6 py-8
2              ${b?"border-2 border-[#7209AA]":"border-[1.5px] border-[#ECEAE7]"}
3              ${u?"bg-purpleOne/5":""}`,children:[b&&(0,a.jsx)("div",{className:"absolute -top-[14px] left-1/2 -translate-x-1/2 -rotate-[2.5deg] px-[14px] py-[6px] rounded-full bg-[#7DBD07] text-[#111111] text-[11px] font-[700] whitespace-nowrap z-10 shadow-[0_4px_12px_-4px_rgba(96,145,5,0.7)]",children:o("recommendedBadge")||"Most Popular"}),(0,a.jsx)("h3",{className:"text-[22px] font-[800] text-[#111111] text-center mb-2 leading-tight",children:y}),(0,a.jsx)("p",{className:"text-center text-[13px] text-[#888888] mb-[22px] min-h-[36px] overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:w}),(0,a.jsxs)("div",{className:"text-center mb-1.5",children:[(0,a.jsx)("span",{className:"text-[12px] font-[600] text-[#888888] align-top mr-[2px]",children:"USD"}),(0,a.jsx)("span",{className:"text-[38px] font-[800] text-[#111111] tracking-[-0.02em]",children:m(i?k:v)}),(0,a.jsx)("span",{className:"text-[13px] text-[#888888]",children:h})]}),(0,a.jsx)("p",{className:"text-center text-[12px] text-[#888888] mb-[10px]",children:i?c("billedAnnually",{amount:m(S)}):c("monthlyNote")}),i&&(0,a.jsx)("span",{className:"block mx-auto mb-[18px] w-fit bg-[#F0FBE8] text-[#4F7A04] text-[12px] font-[700] px-[14px] py-[4px] rounded-full",children:c("savePerYear",{amount:Math.round(12*v*.2)})}),(0,a.jsxs)("div",{className:"text-center mb-2 text-[14px] text-[#444444]",children:[(0,a.jsx)("span",{className:"text-[22px] font-[800] text-[#7209AA] mr-1",children:C}),f]}),E>0&&(0,a.jsx)("div",{className:"w-fit mx-auto mb-5 px-[13px] py-[6px] rounded-full bg-[#F4EFFE] text-[#18181B] text-[11px] text-center -rotate-[2.5deg] shadow-[0_2px_6px_-3px_rgba(114,9,170,0.3)]",children:c("pagesPill",{pages:A})}
3),(0,a.jsx)("div",{className:"mt-1 mb-3 pt-4 border-t border-[#ECEAE7] text-left text-[10.5px] font-[800] uppercase tracking-[0.08em] text-[#7209AA]",children:c("featuresLabel")}),(0,a.jsx)("ul",{className:"flex-1 mb-6 text-[13px] text-[#444444] leading-[1.5]",children:_.map((e,t)=>{let s=N(e);return(0,a.jsxs)("li",{className:`flex gap-2 items-start py-[6px] min-h-[40px] ${s?"text-[#999999]":""}`,children:[s?(0,a.jsx)("span",{"aria-hidden":"true",className:"text-[#999999] font-[700] text-[13px] shrink-0 mt-[2px]",children:"✕"}):(0,a.jsx)("span",{"aria-hidden":"true",className:"text-[#7209AA] font-[800] shrink-0 mt-[2px]",children:"✓"}),e.replace(" - No Included","")]},t)})}),u?(0,a.jsx)("button",{disabled:!0,"aria-disabled":"true",className:"w-full rounded-full bg-[#EFEFEF] text-[#888888] font-[700] text-[13px] px-5 py-2.5 cursor-default",children:o("currentPlanSmallInfo")||"Current Plan"}):(0,a.jsx)("button",{onClick:()=>r(e),disabled:g,"aria-label":`${o("btnSubscribe")} ${y}`,className:`w-full inline-flex items-center justify-center gap-2 rounded-full font-[700] whitespace-nowrap transition-colors
4                  ${b?"bg-[#8832D4] text-white px-9 py-4 text-[16px] shadow-[0_4px_16px_rgba(136,50,212,0.25)] hover:bg-[#7209AA] hover:shadow-[0_6px_22px_rgba(114,9,170,0.32)]":"bg-[#E9D5FF] text-[#7209AA] border-[1.5px] border-[#7209AA] px-5 py-2.5 text-[13px] hover:bg-[#D9BFF8]"}
5                  ${g?"opacity-70 cursor-wait":""}`,children:g?(0,a.jsx)(x.Spinner,{color:"purple",className:"h-4 w-4"}):o("btnSubscribe")})]},e._id)})})},f=s(89458);let b=[{id:1,credits:300,price:10.99},{id:2,credits:600,price:19.99},{id:3,credits:1300,price:39.99}],g=e=>Math.floor(e/3),y=e=>e>=1300?"extraCreditsDescription1300":e>=600?"extraCreditsDescription600":"extraCreditsDescription300",w=()=>(0,a.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4 shrink-0 text-[#7209AA] mt-[1px]",children:(0,a.jsx)("polyline",{points:"20 6 9 17 4 12"})});var j=({creditsOptions:e,loadingCreditId:t,isLoadingCredits:s,onSelect:r})=>{let l=(0,u.useTranslations)("billing");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center max-w-[760px] mx-auto mb-14 px-5 lg:px-0",children:[(0,a.jsx)("div",{className:"text-[14px] font-[600] uppercase tracking-[1px] text-[#7209AA] mb-3",children:l("credits")}),(0,a.jsxs)("h2",{className:"font-[700] leading-[1.1] tracking-[-0.015em] mb-4 text-[#111111]",style:{fontSize:"clamp(32px, 4vw, 48px)"},children:[(0,a.jsx)("span",{className:"text-[#7209AA]",children:l("creditsTitle")})," ",l("creditsTitleAccent")]}),(0,a.jsx)("p",{className:"text-[16px] text-[#444444] leading-[1.5]",children:l("creditsBody")})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 mx-auto max-w-[460px] lg:max-w-[1000px] pt-3 items-stretch",children:e.map(e=>{let n=s&&t===e.id,i=1300===e.credits,o=e.price.toFixed(2),c=y(e.credits);return(0,a.jsxs)("div",{className:`relative flex flex-col text-center rounded-[24px] bg-white w-full px-6 py-8
6                ${i?"border-2 border-[#7DBD07]":"border-[1.5px] border-[#ECEAE7]"}`,children:[i&&(0,a.jsx)("div",{className:"absolute -top-[14px] left-1/2 -translate-x-1/2 -rotate-[2.5deg] px-[14px] py-[5px] rounded-full bg-[#7DBD07] text-[#111111] text-[11px] font-[700] whitespace-nowrap z-10 shadow-[0_4px_12px_-4px_rgba(96,145,5,0.7)]",children:l("bestValue")}),(0,a.jsxs)("h3",{className:"text-[22px] font-[800] text-[#111111] mb-2 leading-tight",children:[(0,a.jsx)("span",{className:"text-[#7209AA]",children:e.credits})," ",l("credits")]}),(0,a.jsx)("p",{className:"text-[13px] text-[#444444] mb-5 min-h-[36px]",children:l(c)}),(0,a.jsxs)("div",{className:"text-[36px] font-[800] text-[#111111] mb-1 leading-none",children:[(0,a.jsx)("span",{className:"text-[13px] font-[600] text-[#888888] mr-1.5 align-middle",children:"USD"}),"$",o]}),(0,a.jsxs)("ul",{className:"flex-1 mb-6 text-[13px] text-[#444444] text-left",children:[(0,a.jsxs)("li",{className:"flex gap-2 items-start py-[6px]",children:[(0,a.jsx)(w,{}),l("creditsUpToPages",{pages:g(e.credits)})]}),(0,a.jsxs)("li",{className:"flex gap-2 items-start py-[6px]",children:[(0,a.jsx)(w,{}),l("creditsBestForSingle")]}),(0,a.jsxs)("li",{className:"flex gap-2 items-start py-[6px]",children:[(0,a.jsx)(w,{}),l("noSubscriptionRequired")]}),(0,a.jsxs)("li",{className:"flex gap-2 items-start py-[6px]",children:[(0,a.jsx)(w,{}),l("creditsDoNotExpire")]}),(0,a.jsxs)("li",{className:"flex gap-2 items-start py-[6px]",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"w-4 text-center font-[700] text-[13px] shrink-0",children:"✕"}),l("planFeaturesNotIncluded")]})]}),(0,a.jsxs)("button",{onClick:()=>r(e),disabled:n,className:`w-full inline-flex items-center justify-center gap-2 rounded-full font-[700] whitespace-nowrap transition-colors
7                  bg-[#E9D5FF] text-[#7209AA] border-[1.5px] border-[#7209AA] px-5 py-2.5 text-[13px] hover:bg-[#D9BFF8]
8                  ${n?"opacity-70 cursor-wait":""}`,children:[n&&(0,a.jsx)(x.Spinner,{color:"purple",className:"h-4 w-4"}),n?l("processing")||"Processing...":l("buyCredits")]})]},e.id)})})]})},N=s(11163),_=s(30331),v=s(63434),k=s(14341),S=s(48936),C=s(43360),E=s(18836);let A=d()(()=>Promise.all([s.e(9101),s.e(2050),s.e(866)]).then(s.bind(s,50866)),{loadableGenerated:{webpack:()=>[50866]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"w-full max-w-3xl mx-auto",children:(0,a.jsxs)("div",{className:"border border-gray-200 rounded-lg p-6 bg-white",children:[(0,a.jsx)("div",{className:"h-6 w-48 rounded bg-gray-200 animate-pulse mb-4"}),(0,a.jsx)("div",{className:"h-[1px] w-full bg-gray-200 my-3"}),(0,a.jsx)("div",{className:"h-12 w-full rounded bg-gray-100 animate-pulse mb-2"}),(0,a.jsx)("div",{className:"h-12 w-full rounded bg-gray-100 animate-pulse mb-2"}),(0,a.jsx)("div",{className:"h-12 w-full rounded bg-gray-100 animate-pulse mb-4"}),(0,a.jsx)("div",{className:"h-[1px] w-full bg-gray-200 my-3"}),(0,a.jsx)("div",{className:"h-40 w-full rounded bg-gray-50 animate-pulse"})]})})});var P=()=>{let e=(0,u.useTranslations)("changePlan"),t=(0,N.useRouter)().query,s=(0,f.W)(),r=(0,S.T)(),{profile:l}=(0,n.v9)(e=>e.users),{data:c,isPending:d}=(0,_.lP)(),m=c?.plans??[],g=c?.primaryCard??"",y=m.find(e=>e._id===l.plan?._id)?._id??"",w=!d,[P,F]=(0,i.useState)(null),[O,D]=(0,i.useState)(!1),[T,$]=(0,i.useState)(""),[I,B]=(0,i.useState)({}),[R,L]=(0,i.useState)(l?.subscription?.isYearly===void 0||!!l.subscription.isYearly),[,Y]=(0,i.useState)(!1),[Z,M]=(0,i.useState)(void 0),[W,z]=(0,i.useState)(!1),[q,V]=(0,i.useState)(!1),[,U]=(0,i.useState)(!1),H=(0,i.useRef)(null),{mutate:X}=(0,_.H0)(),{mutate:G}=(0,_.oW)();(0,i.useEffect)(()=>{s&&s.event.push("Visited Change Plan Section",{Date:new Date})},[s]),(0,i.useEffect)(()=>{T?.length===8&&P&&J(T)},[T,P]),(0,i.useEffect)(()=>
8{if(w&&m.length)try{let e=t?.plan||"",s=t?.coupon||"",a=t?.cycle||"",r=(0,E.bu)();r?.plan&&r?.cycle&&(e||(e=r.plan),a||(a=r.cycle),(0,E.eH)());let l="yearly"===a||"monthly"!==a&&void 0;if(void 0!==l&&L(l),e){let t=function(e,t){if(!t||!e?.length)return null;let s=e=>String(e??"").toLowerCase().replace(/[\s_\-]+/g,""),a=s(t),r=e.find(e=>e._id===t);if(r||(r=e.find(e=>s(e.type)===a))||(r=e.find(e=>s(e["name-en"])===a||s(e["name-es"])===a))||(r=e.find(e=>s(e["name-en"]).startsWith(a)||s(e["name-es"]).startsWith(a))))return r;for(let a of({essential:["starter","basic","standard"],pro:["professional","premium","proplan"],hobby:["lite","personal","beginner"],business:["enterprise","team","agency"]})[t.toLowerCase()]??[]){let t=s(a);if(r=e.find(e=>s(e["name-en"])===t||s(e["name-es"])===t||s(e.type)===t))return r}return null}(m,e);t&&(s&&$(s),Q(t,l))}}catch{}},[w,m,t]),(0,i.useEffect)(()=>{let e=requestAnimationFrame(()=>{H.current?.scrollIntoView({behavior:"smooth",block:"start"});try{window.scrollTo({top:0,behavior:"smooth"})}catch{}});return()=>cancelAnimationFrame(e)},[q]);let J=async e=>{try{let t=await (0,p.cn)(e);if(t.status&&P){let e=Number((P.amount*(t.data.percent_off/100)).toFixed(2));B({...t.data,amount_off:Number((P.amount-e).toFixed(2))})}else throw Error("Coupon not found")}catch(e){B({})}},K=(e,t)=>{try{let s=new URL(window.location.href);e?s.searchParams.set("plan",e):s.searchParams.delete("plan"),t?s.searchParams.set("coupon",t):s.searchParams.delete("coupon"),window.history.replaceState(null,"",s.toString())}catch{}},Q=async(t,a)=>{let n=a??R;s.event.push("Subscribe_Click",{email:l.email,Date:new Date});let i=window.promotekit_referral??null;s.event.push("Checkout_Promotekit_Attribution",{email:l.email,planId:t._id,hasReferral:!!i,referral:i??"none",sdkLoaded:void 0!==window.promotekit}),F(t),D(!0),Y(!0),M(t._id),X({planId:t._id,promotekitReferral:i,isYearly:n},{onSuccess:e=>{if(e){let s=!!l?.plan?.type&&"free"!==l.plan.type;(0,C.oe)((0,C.DP)(e),{productType:s?"upgrade":"subscription",plan:t["name-en"]||t.name||"",planId:t._id,price:t.amount,isYearly:n}),window.location.href=e}Y(!1),M(void 0)},onError:t=>{console.error("Error creating checkout session:",t),r((0,v.CF)({type:k.ToastType.ERROR,message:e("errorCreatingCheckoutSession")})),Y(!1),M(void 0)}})},ee=async t=>{s.event.push("Subscribe_Click",{email:l.email,Date:new Date}),z(!0),G(t.id,{onSuccess:e=>{if(e){let s=(0,C.OX)(e);(0,C.oe)(s,{productType:"credits",credits:t.credits,price:t.price}),window.location.href=e}z(!1)},onError:t=>{console.error("Error creating checkout extra credits:",t),r((0,v.CF)({type:k.ToastType.ERROR,message:e("errorCreatingCheckoutSession")})),z(!1)}})},et=async()=>{U(!1),V(!1),K(void 0,void 0)};return w?(0,a.jsx)("section",{ref:H,className:`flex flex-col items-center justify-center py-6 md:py-0 md:pt-24 md:pb-32 w-[95%] relative
9          ${q?"lg:w-full":"lg:w-auto"}
10        `,children:(0,a.jsxs)("div",{className:"w-full flex relative",children:[!q&&(0,a.jsxs)("div",{"aria-hidden":q,className:[q?"absolute inset-0":"relative","w-full transition-all duration-300 ease-out font-[Poppins,sans-serif]",q?"opacity-0 translate-y-2 pointer-events-none select-none":"opacity-100 translate-y-0"].join(" "),children:[(0,a.jsxs)("div",{className:"text-center max-w-[760px] mx-auto mb-14 pt-2",children:[(0,a.jsxs)("h1",{className:"font-[700] leading-[1.1] tracking-[-0.015em] mb-4 text-[#111111]",style:{fontSize:"clamp(32px, 4vw, 48px)"},children:[e("plansTitleBefore")," ",(0,a.jsx)("span",{className:"text-[#7209AA]",children:e("plansTitleAccent")})]}),(0,a.jsx)("p",{className:"text-[16px] text-[#444444] leading-[1.5]",children:e("plansBody")})]}),(0,a.jsx)("div",{className:"hidden w-full md:w-[90%] lg:w-[80%] mb-6 m-auto",children:(0,a.jsx)(x.Card,{className:"relative p-8 md:mb-0 border-solid border-[1px] border-black",children:(0,a.jsx)(x.CardBody,{className:"p-0",children:(0,a.jsxs)("div",{className:"font-[Inter,system-ui,sans-serif]",children:[(0,a.jsxs)("li",{className:"relative flex items-center gap-4",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text1")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text2")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text3")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text4")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text5")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text6")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text7")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text8")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text9")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text10")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text11")})]}),(0,a.jsxs)("li",{className:"relative flex items-center gap-4 mt-2",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 bg-white/20 p-1",children:(0,a.jsx)("img",{src:(0,o.w)("/images/icono_tokens-credits_black.png"),className:"absolute !w-[18px] !h-[17px] top-2 left-[-5px]",alt:"plan-icon"})}),(0,a.jsx)("p",{className:"font-mediu text-blackOne text-[16px] mt-1",children:e("text12")})]})]})})})}),(0,a.jsxs)("div",{className:`text-center ${R?"":"mb-[42px]"}`,children:[(0,a.jsxs)("div",{className:"relative inline-flex items-center bg-[#E4E4E4] rounded-full p-1 mb-[14px] w-fit text-[14px] font-[600]",role:"tablist",children:[(0,a.jsx)("button",{onClick:()=>L(!1),role:"tab","aria-selected":!R,className:`relative z-10 px-[22px] py-[10px] rounded-full text-[14px] font-[600] transition-all duration-200 ${R?"text-[#444444] hover:text-[#111111]":"bg-white text-[#111111] shadow-[0_2px_8px_rgba(0,0,0,0.06)]"}`,children:e("monthly")||"Monthly"}),(0,a.jsx)("button",{onClick:()=>L(!0),role:"tab","aria-selected":R,className:`relative z-10 px-[22px] py-[10px] rounded-full text-[14px] font-[600] transition-all duration-200 inline-flex items-center gap-2 ${R?"bg-white text-[#111111] shadow-[0_2px_8px_rgba(0,0,0,0.06)]":"text-[#444444] hover:text-[#111111]"}`,children:e("yearly")||"Yearly"})]}),R&&(0,a.jsx)("p",{className:"mb-[42px]",children:(0,a.jsx)("span",{className:"inline-block bg-[#7DBD07] text-[#111111] text-[15px] font-[700] px-5 py-[9px] rounded-full -rotate-[2.5deg] shadow-[0_4px_12px_-4px_rgba(96,145,5,0.65)]",children:e("yearlyBadge")||"20% off \xb7 2 months free"})})]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(h,{plans:m,currentPlanId:y,recommendedPlanId:m.find(e=>String(e.amount).startsWith("49"))?._id,onSelect:Q,loadingPlanId:Z,isYearly:R})}),(0,a.jsx)("div",{className:"w-full lg:mt-14",children:(0,a.jsx)(j,{creditsOptions:b,loadingCreditId:void 0,isLoadingCredits:W,onSelect:e=>ee(e)})}),(0,a.jsxs)("div",{className:"mt-10 text-center text-blackOne",children:[(0,a.jsxs)("span",{children:["*",e("infoFotter1")]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{children:["*",e("infoFotter2")]})]})]}),(0,a.jsx)("div",{"aria-hidden":!q,className:[q?"w-full flex relative z-10":"absolute inset-0 z-10","transition-all duration-300 ease-out",q?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-2 pointer-events-none select-none"].join(" "),children:P&&(0,a.jsx)(A,{handleClose:et,plan:P,couponCode:T,setCouponCode:$,couponInf:I,setCouponInf:B,getAmountWithCoupon:J,paymentMethodsPrimary:g,planSelection:!1,isChangePlan:O})})]})}):(0,a.jsx)("section",{className:"flex flex-col items-center justify-center py-28 md:py-0 md:pt-32 md:pb-32 w-[95%] lg:w-auto",children:(0,a.jsx)("div",{className:"w-full justify-center items-center p-10",children:(0,a.jsx)(x.Spinner,{className:"h-20 w-20 m-auto",color:"purple"})})})},F=s(4298),O=s.n(F),D=s(25675),T=s.n(D);let $=()=>(0,a.jsxs)("section",{className:"flex flex-col items-center justify-center py-6 md:py-0 md:pt-24 md:pb-32 w-[95%] lg:w-auto m-auto",children:[(0,a.jsx)("div",{className:"h-8 w-64 roun
10ded bg-gray-200 animate-pulse mb-4"}),(0,a.jsx)("div",{className:"h-5 w-80 rounded bg-gray-200 animate-pulse mb-10"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 w-full max-w-5xl",children:[0,1,2].map(e=>(0,a.jsxs)("div",{className:"h-[380px] rounded-xl border border-gray-200 bg-white p-6 flex flex-col gap-3",children:[(0,a.jsx)("div",{className:"h-6 w-24 rounded bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"h-10 w-32 rounded bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"h-4 w-full rounded bg-gray-200 animate-pulse mt-4"}),(0,a.jsx)("div",{className:"h-4 w-5/6 rounded bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"h-4 w-4/6 rounded bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"h-4 w-3/6 rounded bg-gray-200 animate-pulse"}),(0,a.jsx)("div",{className:"mt-auto h-11 w-full rounded-full bg-gray-200 animate-pulse"})]},e))})]});var I=!0,B=()=>{let e=(0,u.useTranslations)("changePlan"),{profile:t}=(0,n.v9)(e=>e.users);return(0,r.Z)(),(0,i.useEffect)(()=>{document.body.classList.remove("customBody")},[]),(0,a.jsx)(l.Z,{hideSidebar:!0,children:t.access_token?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{className:"hidden lg:flex items-center gap-2 z-[1000] absolute top-24 left-10 px-5 py-2.5 bg-white border border-gray-200 rounded-full shadow-sm hover:shadow-md transition-all text-gray-600 hover:text-purpleOne font-[700] text-sm cursor-pointer group",onClick:()=>window.location.href=(0,o.w)("/dashboard"),children:[(0,a.jsx)("div",{className:"relative w-3 h-3 opacity-60 group-hover:opacity-100 transition-opacity",children:(0,a.jsx)(T(),{src:(0,o.w)("/images/icon_back-left-arrowhead_black.svg"),layout:"fill",objectFit:"contain",alt:"back"})}),(0,a.jsx)("span",{className:"text-blackOne",children:e("backToHome")})]}),(0,a.jsx)(P,{}),(0,a.jsx)(O(),{id:"trackDeskBilling",strategy:"afterInteractive",children:`
11              (function () {
12                var cookie = document.cookie.match('(^|;)\\s*trakdesk_cid\\s*=\\s*([^;]+)');
13                if (Array.isArray(cookie)) {
14                    try {
15                        var trakdeskCid = JSON.parse(cookie.pop());
16                        var cid = trakdeskCid['cid'];
17                        document.querySelectorAll('a[href^="https://buy.stripe.com/"]').forEach(function (a) {
18                            var url = new URL(a.href);
19                            url.searchParams.set('client_reference_id', cid);
20                            a.href = url.href;
21                        });
22                    } catch (e) {
23                        console.log(e);
24                    }
25                }
26              })();
27            `})]}):(0,a.jsx)($,{})})}},43360:function(e,t,s){"use strict";s.d(t,{DP:function(){return n},DR:function(){return o},Eu:function(){return c},OX:function(){return r},gc:function(){return l},oe:function(){return i}});let a="checkoutCtx:",r=e=>{let t=e?.match(/cs_(?:test|live)_[A-Za-z0-9]+/);return t?t[0]:""},l="upgrade",n=e=>r(e)||l,i=(e,t)=>{if(e)try{localStorage.setItem(`${a}${e}`,JSON.stringify(t))}catch{}},o=e=>{if(!e)return null;try{let t=localStorage.getItem(`${a}${e}`);return t?JSON.parse(t):null}catch{return null}},c=e=>{if(e)try{localStorage.removeItem(`${a}${e}`)}catch{}}},28860:function(e,t,s){e.exports=s(32602)},4298:function(e,t,s){e.exports=s(23381)}},function(e){e.O(0,[277,5675,1664,6154,8788,8511,1966,3255,5178,82,1850,2888,9774,179],function(){return e(e.s=83542)}),_N_E=e.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.