1import{a9 as G,n as oe,b as le,a6 as re,a as ie,ag as ne}from"./SbYkmE1x.js";import{u as A,B as S}from"./DF9x2XrL.js";import{u as ae,M as de}from"./APDIPVGl.js";import{m as T,z as p,v as c,W as l,a2 as L,Z as t,F as e,a5 as i,$ as B,a4 as E,aw as z,Y as I,aa as $,O as H,i as Q,a1 as O,P,T as ce,X as ue,t as pe,d as Y,ax as X,C as me,y as W,q as ge,l as fe}from"./DMq5DR5S.js";import{d as j,_ as q}from"./BqG0Yhwt.js";import{u as Z,S as xe}from"./BsIxl3_p.js";import{useToastStore as J}from"./81eoH7Ds.js";import{c as N,u as U,d as K}from"./0TnzUyuU.js";import{u as he}from"./BiM6gKGc.js";import{u as _e}from"./CHLfaVaD.js";import{p as ve}from"./vn8LdeuW.js";import{a as be,b as ke,T as ye}from"./TreFuf74.js";import{A as we}from"./BIRnKqD7.js";import{u as Me}from"./BFy_LQ67.js";import{ad as R}from"./CKBqaDtU.js";import{L as $e}from"./BTkVYUcZ.js";import{L as Se}from"./CI5p6wPz.js";import{d as Le}from"./BjI_Zsrm.js";import"./Ba3dERXx.js";import"./CkzC3kNm.js";import"./BSaF-ziG.js";import"./XOqPYRTW.js";try{let h=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new h.Error().stack;o&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[o]="aed48175-2bc5-44ed-8852-d98483f4275d",h._sentryDebugIdIdentifier="sentry-dbid-aed48175-2bc5-44ed-8852-d98483f4275d")}catch{}const Ce={class:"relative block w-full group"},Pe={key:0,class:"absolute -top-2.5 right-2 z-20 flex items-center rounded-lg overflow-hidden border border-gray-200 dark:border-white/10 bg-white dark:bg-black/40 backdrop-blur-sm shadow-sm dark:shadow-none"},Fe={class:"space-y-2"},Te={class:"flex items-start justify-between gap-3"},De={class:"flex-1 min-w-0"},Ee={class:"flex items-center gap-2"},Ie={key:1,class:"text-sm font-semibold text-gray-900 dark:text-white truncate"},Ae={key:2,class:"flex-shrink-0 px-1.5 py-0.5 rounded text-[9px] font-semibold bg-emerald-500/20 text-emerald-500"},Ne={class:"flex-shrink-0"},Be={key:0,class:"w-5 h-5 rounded-full border-2 border-gray-300 dark:border-gray-600 group-hover:border-sky-500 transition-colors"},He={key:1,class:"w-5 h-5 rounded-full bg-gradient-to-r from-[#0088cc] to-[#229ED9] flex items-center justify-center"},Ye={class:"flex items-baseline gap-2 flex-wrap"},je={class:"text-xs line-through text-gray-500"},Re={class:"text-lg font-bold text-gray-900 dark:text-white"},ze={class:"px-1.5 py-0.5 rounded text-[10px] font-bold bg-rose-500 text-white"},Oe={key:1,class:"text-lg font-bold text-gray-900 dark:text-white"},qe={key:0,class:"flex items-center gap-1.5 text-xs text-sky-600 dark:text-sky-400"},Ue=T({__name:"ModuleCard",props:{module:{},selected:{type:Boolean},userHas:{type:Boolean}},setup(h){const o=h,s=A(),m=J(),{t:n}=N(),_=j(),d=Z(),g=p(()=>d.value&&o.userHas),u=p(()=>d.value&&o.selected),f=p(()=>d.value&&(o.module.userHasModule??!1)),a=p(()=>d.value?o.module.userPurchasedPeriod:null),x=p({get:()=>s.getModulePeriod(o.module.id),set:C=>{s.setModulePeriod(o.module.id,C)}}),v=p(()=>s.currentDiscount(o.module.id,x.value)),w=p(()=>f.value&&a.value==="month"&&x.value===S.YEARLY),k=p(()=>f.value&&!y.value),F=p(()=>f.value&&s.hasRenewalPrice(o.module.id,x.value)),D=p(()=>F.value?s.getRenewalPrice(o.module.id,x.value):null),y=p(()=>{if(!d.value)return!1;const C=_.getSubscriptionType.value;return C&&["full_month","full_year"].includes(C)}),r=p(()=>y.value),b=U(),ee=()=>{!g.value||w.value||k.value?s.toggleModule(o.module.id,x.value):m.info(n("billing_calc.checkout_overview.purchased"),n("billing_calc.info.module_included_in_subscription"),"tc",4e3)},te=()=>{r.value||(x.value=S.MONTHLY)},se=()=>{r.value||(x.value=S.YEARLY)};return(C,M)=>{const V=G;return l(),c("div",Ce,[e(r)?L("",!0):(l(),c("div",Pe,[t("button",{class:B(["px-2.5 py-1 text-[10px] font-semibold transition",[e(x)===e(S).MONTHLY?"bg-gradient-to-r from-[#0088cc] to-[#229ED9] text-white":"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white"]]),onClick:te},i(C.$t("billing_calc.billing_period.monthly")),3),t("button",{class:B(["px-2.5 py-1 text-[10px] font-semibold transition",[e(x)===e(S).YEARLY?"bg-gradient-to-r from-[#0088cc] to-[#229ED9] text-white":"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white"]]),onClick:se}
1,i(C.$t("billing_calc.billing_period.yearly")),3)])),t("div",{class:B(["relative p-4 sm:p-5 rounded-xl border transition duration-200 bg-white dark:bg-white/[0.03] backdrop-blur-sm cursor-pointer overflow-hidden hover:bg-gray-50 dark:hover:bg-white/[0.06]",[e(u)&&(!e(g)||e(w)||e(k))?"border-sky-500/50 bg-sky-50 dark:bg-sky-500/10":"border-gray-200 dark:border-white/10 hover:border-sky-500/30",e(r)?"opacity-50 cursor-not-allowed":""]]),onClick:ee},[t("div",Fe,[t("div",Te,[t("div",De,[t("div",Ee,[o.module.slug?(l(),E(V,{key:0,to:e(b)(`/modules/${o.module.slug}`),class:"text-sm font-semibold text-gray-900 dark:text-white truncate hover:text-sky-600 dark:hover:text-sky-400 transition-colors",onClick:M[0]||(M[0]=z(()=>{},["stop"]))},{default:I(()=>[$(i(o.module.name),1)]),_:1},8,["to"])):(l(),c("span",Ie,i(o.module.name),1)),e(f)||e(r)?(l(),c("span",Ae,[M[2]||(M[2]=t("i",{class:"pi pi-check text-[8px] mr-0.5"},null,-1)),$(i(C.$t("billing_calc.checkout_overview.purchased")),1)])):L("",!0)])]),t("div",Ne,[e(u)?(l(),c("div",He,[...M[3]||(M[3]=[t("i",{class:"pi pi-check text-white text-[10px]"},null,-1)])])):(l(),c("div",Be))])]),t("div",Ye,[e(v)?(l(),c(H,{key:0},[t("span",je," $"+i(e(s).finalModulePrice(o.module,e(x),!1)),1),t("span",Re," $"+i(e(s).finalModulePrice(o.module,e(x))),1),t("span",ze," -"+i(e(v))+"% ",1)],64)):(l(),c("span",Oe," $"+i(e(s).finalModulePrice(o.module,e(x),!1)),1))]),e(F)&&e(D)?(l(),c("div",qe,[M[4]||(M[4]=t("i",{class:"pi pi-refresh text-[10px]"},null,-1)),t("span",null,[$(i(C.$t("modules.renewal.upgrade_price")||"ÐÑодлиÑÑ")+": ",1),t("strong",null,"$"+i(e(D)),1)])])):L("",!0),o.module.slug?(l(),E(V,{key:1,to:e(b)(`/modules/${o.module.slug}`),class:"inline-flex items-center gap-1.5 text-xs font-medium text-sky-400 hover:text-sky-300 transition-colors",onClick:M[1]||(M[1]=z(()=>{},["stop"]))},{default:I(()=>[$(i(C.$t("modules.learn_more")||"ÐодÑобнее")+" ",1),M[5]||(M[5]=t("i",{class:"pi pi-arrow-right text-[10px]"},null,-1))]),_:1},8,["to"])):L("",!0)])],2)])}}}),Ve=q(Ue,[["__scopeId","data-v-0f068b92"]]),We={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4 mx-2 sm:mx-0"},Ge=T({__name:"ModuleSelector",setup(h){const o=A(),s=j(),m=new Set(["manager-telegram-accounts","ggr"]),n=p(()=>o.allModules.filter(a=>!m.has(a.slug??"")&&a.isActive!==!1)),_=p(()=>o.isFullLicenseSelected?n.value.map(a=>a.id):o.getOnlyIds),d=a=>o.isFullLicenseSelected?!0:_.value.includes(a),g=a=>o.getModulePeriod(a),u=()=>{o.toggleFullLicense()},f=Q("setToggleFullLicenseFunction");return f&&f(u),(a,x)=>(l(),c("section",We,[(l(!0),c(H,null,O(e(n),v=>(l(),E(Ve,{key:v.id,module:v,selected:d(v.id),period:g(v.id),"user-has":v.userHasModule||["full_month","full_year"].includes(e(s).getSubscriptionType.value??"")},null,8,["module","selected","period","user-has"]))),128))]))}}),Qe={class:"relative min-w-0 p-6 sm:p-8 lg:p-10"},Xe={class:"mb-5 flex items-center gap-3 text-[10px] font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400"},Ze={key:0},Je={key:1},Ke={key:2},et={key:"full",class:"flex flex-wrap gap-2"},tt={class:"text-2xl font-semibold leading-tight tracking-tight text-slate-900 dark:text-white sm:text-[26px]"},st={class:"max-w-2xl text-[15px] leading-7 text-slate-600 dark:text-slate-300/80"},ot={key:"empty",class:"flex min-h-[140px] flex-col items-center justify-center gap-3 text-center"},lt={class:"text-sm text-slate-500 dark:text-slate-400"},rt=T({__name:"ModulesDescription",setup(h){const{t:o}=N(),s=A();return(m,n)=>{const _=K;return l(),c("div",Qe,[t("div",Xe,[n[0]||(n[0]=t("span",{class:"h-px w-6 bg-gradient-to-r from-sky-500 to-transparent dark:from-sky-400"},null,-1)),e(s).isFullLicenseSelected?(l(),c("span",Ze,i(e(o)("billing_calc.checkout_overview.all_includes")),1)):e(s).lastSelectedModule?(l(),c("span",Je,i(e(o)("checkout.selected_module")),1)):(l(),c("span",Ke,i(e(o)("checkout.selected_modules")),1))]),P(ce,{name:"mc-panel",mode:"out-in"},{default:I(()=>[e(s).isFullLicenseSelected?(l(),c("div",et,[(l(!0),c(H,null,O(e(s).withoutFullLicense,d=>(l(),E(_,{key:d.id,to:{path:`/telegram-combine-features/feature/${d.slug}`},class:"group inline-flex items-center gap-1.5 rounded-full border border-sky-500/20 bg-sky-500/[0.06] dark:border-sky-400/25 dark:bg-sky-400/[0.06] px-3 py-1.5 text-xs font-medium text-slate-700 dark:text-slate-200 transition duration-200 hover:border-sky-500/50 hover:bg-sky-500/10 hover:text-sky-600 dark:hover:border-sky-400/60 dark:hover:bg-sky-400/10 dark:hover:text-sky-300"},{default:I(()=>[n[1]||(n[1]=t("span",{class:"h-1 w-1 rounded-full bg-sky-500 dark:bg-sky-400"},null,-1)),$(" "+i(d.name),1)]),_:2},1032,["to"]))),128))])):e(s).lastSelectedModule!==null?(l(),c("div",{key:"single-"+e(s).lastSelectedModule.id,class:"flex flex-col gap-y-4"},[t("h3",tt,i(e(s).lastSelectedModule.name),1),t("p",st,i(e(s).lastSelectedModule.description),1),P(_,{to:{path:`/telegram-combine-features/feature/${e(s).lastSelectedModule.slug}`},class:"group mt-1 inline-flex w-fit items-center gap-2 text-sm font-medium text-sky-600 transition-colors duration-200 hover:text-sky-500 dark:text-sky-400 dark:hover:text-sky-300"},{default:I(()=>[$(i(e(o)("billing_calc.checkout_overview.more_about_module"))+" ",1),n[2]||(n[2]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",class:"transition-transform duration-200 group-hover:translate-x-0.5"},[t("path",{d:"M5 12h14M13 6l6 6-6 6"})],-1))]),_:1},8,["to"])])):(l(),c("div",ot,[n[3]||(n[3]=t("div",{class:"flex h-12 w-12 items-center justify-center rounded-full border border-slate-200 dark:border-slate-600"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-slate-400 dark:text-slate-500"},[t("path",{d:"M12 5v14M5 12h14"})])],-1)),t("p",lt,i(e(o)("billing_calc.checkout_overview.modules_not_selected")),1)]))]),_:1})])}}}),it=q(rt,[["__scopeId","data-v-46861ed9"]]),nt={key:0,class:"static border-t border-amber-200/60 bg-gradient-to-r from-[#FDC830] to-[#F37335] px-4 py-2 text-center text-sm font-semibold text-white"},at={class:"text-slate-900"},dt=T({__name:"OffersToSelectFullLicense",setup(h){const{t:o}=N(),s=A(),m=p(()=>{const g=s.selectedModules.filter(a=>a.id!==0);if(g.length===0)return S.MONTHLY;const u=g.filter(a=>a.period===S.YEARLY).length,f=g.length-u;return u>=f?S.YEARLY:S.MONTHLY}),n=p(()=>{const g=s.allModules.find(u=>u.id===0);return g?m.value===S.YEARLY?g.yearlyPrice??0:g.monthlyPrice??0:0}),_=p(()=>
1{if(s.isFullLicenseSelected)return{result:!1,savings:0};if(!n.value)return{result:!1,savings:0};const g=s.finalPrice;return{result:g>n.value,savings:g-n.value}}),d=p(()=>{if(s.isFullLicenseSelected)return{result:!1,difference:0};if(!n.value)return{result:!1,savings:0};const g=s.finalPrice,u=n.value,f=u*.5,a=u-g;return{result:g>=f&&a>0&&a<=115,difference:a}});return(g,u)=>ue(g.$slots,"content",{isBetterSelectFullLicense:e(_),fullLicenseIsSlightlyMoreExpensive:e(d)},()=>[e(d).result?(l(),c("div",nt,[t("span",at,i(e(o)("billing_calc.checkout_overview.full_license_only_x_more",{amount:e(d).difference.toFixed(2)})),1)])):L("",!0)])}}),ct={key:0,"aria-hidden":"true",class:"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b from-sky-400 via-sky-500 to-sky-600"},ut={class:"mb-6 flex flex-wrap items-start justify-between gap-4 pr-10"},pt={class:"flex min-w-0 flex-col gap-y-2.5"},mt={class:"inline-flex w-fit items-center gap-1.5 rounded-full border border-amber-400/40 bg-amber-400/10 dark:border-amber-400/30 dark:bg-amber-400/10 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] text-amber-700 dark:text-amber-300"},gt={class:"text-[22px] font-semibold leading-tight tracking-tight text-slate-900 dark:text-white sm:text-2xl"},ft={class:"flex items-baseline gap-1 whitespace-nowrap"},xt={class:"text-4xl font-bold tracking-tight text-slate-900 dark:text-white sm:text-[40px]"},ht={class:"text-sm font-medium text-slate-400 dark:text-slate-500"},_t={class:"grid min-w-0 grid-cols-1 gap-x-6 gap-y-3 sm:grid-cols-2"},vt={class:"min-w-0"},bt={class:"absolute right-5 top-5 sm:right-6 sm:top-6"},kt={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"white","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"},yt=T({__name:"FullLicense",setup(h){const{t:o}=N(),s=A(),m=Q("toggleFullLicense"),n=p(()=>Array.isArray(s.fullLicenseInfo?.features)?s.fullLicenseInfo.features:[]),_=p(()=>{const u=s.fullLicenseInfo?.price??0;return Math.floor(u)}),d=p(()=>((s.fullLicenseInfo?.price??0)%1).toFixed(2).slice(2)),g=()=>{m&&m()};return(u,f)=>(l(),c(H,null,[t("div",{class:B(["group relative cursor-pointer overflow-hidden p-6 transition duration-300 sm:p-8 lg:p-10",e(s).isFullLicenseSelected?"bg-sky-50/70 dark:bg-sky-500/[0.06]":"hover:bg-slate-50 dark:hover:bg-white/[0.02]"]),onClick:g},[e(s).isFullLicenseSelected?(l(),c("div",ct)):L("",!0),t("div",ut,[t("div",pt,[t("div",mt,[f[0]||(f[0]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{d:"M12 2l2.39 7.36H22l-6.19 4.5 2.36 7.36L12 16.72l-6.17 4.5 2.36-7.36L2 9.36h7.61L12 2z"})],-1)),$(" "+i(e(o)("checkout.recommended")),1)]),t("h3",gt,i(e(s).fullLicenseInfo.name),1)]),t("div",ft,[f[1]||(f[1]=t("span",{class:"text-xs font-semibold text-slate-500 dark:text-slate-400"},"$",-1)),t("span",xt,i(e(_)),1),t("span",ht," ."+i(e(d)),1)])]),t("ul",_t,[(l(!0),c(H,null,O(e(n),(a,x)=>(l(),c("li",{key:x,class:"flex min-w-0 items-start gap-2.5 text-sm leading-6 text-slate-600 dark:text-slate-300"},[f[2]||(f[2]=t("span",{class:"mt-[8px] h-1.5 w-1.5 shrink-0 rounded-full bg-sky-500 dark:bg-sky-400"},null,-1)),t("span",vt,i(a),1)]))),128))]),t("div",bt,[t("div",{class:B(["flex h-6 w-6 items-center justify-center rounded-full border-2 transition duration-300",e(s).isFullLicenseSelected?"border-sky-500 bg-sky-500 shadow-[0_0_0_4px_rgba(14,165,233,0.15)]":"border-slate-300 dark:border-slate-500 group-hover:border-sky-400"])},[e(s).isFullLicenseSelected?(l(),c("svg",kt,[...f[3]||(f[3]=[t("path",{d:"M5 12l5 5L20 7"},null,-1)])])):L("",!0)],2)])],2),P(dt)],64))}});function wt(h){const o=Number.isFinite(h)&&h>0?h:0,s=Math.round(o*100),m=Math.floor(s/100),n=(s%100).toString().padStart(2,"0");return{dollars:m,cents:n}}function Mt(h,o={}){const{duration:s=350}=o,m=be(),n=p(()=>m.value==="reduce"?0:s);return ke(pe(h),{duration:n,transition:ye.easeOutCubic})}const $t={class:"relative flex h-full w-full flex-col justify-center p-6 sm:p-8 lg:p-10 bg-slate-900 dark:bg-[#0f1821]"},St={key:0,class:"relative flex flex-col gap-y-6"},Lt={class:"flex flex-col gap-y-2"},Ct={class:"text-[10px] font-semibold uppercase tracking-[0.22em] text-slate-400"},Pt={class:"flex items-baseline gap-1.5"},Ft={class:"text-5xl font-bold tracking-tight text-white lg:text-[54px]"},Tt={class:"text-xl font-medium text-slate-400"},Dt={class:"relative z-10 flex items-center justify-center gap-2"},Et={key:2,class:"text-center text-[13px] leading-5 text-slate-400"},It={class:"font-medium text-sky-300"},At={key:1,class:"relative flex flex-col items-center justify-center gap-y-3 py-8 text-center"},Nt={class:"text-[10px] font-semibold uppercase tracking-[0.22em] text-slate-400"},Bt=T({__name:"CheckoutSummary",setup(h){const o=he(),s=_e(),{t:m,locale:n}=N(),_=j(),d=A(),g=p(()=>{const y=m("billing_calc.checkout_overview.modules_forms").split("|"),r=d.selectedModulesCount,b=[y[0]??"",y[1]??y[0]??"",y[2]??y[1]??""];return n.value==="ru"||n.value==="ua"||n.value==="uk"?ve(r,b):r===1?b[0]:b[1]}),u=p(()=>
1{if(d.isFullLicenseSelected){const y=d.selectedModules.find(r=>r.id===0)?.period??S.MONTHLY;return d.finalModulePrice(d.fullLicenseInfo,y,!0)}return d.finalPrices.priceWithDiscount}),f=Mt(u),a=p(()=>wt(f.value)),x=p(()=>a.value.dollars),v=p(()=>a.value.cents),w=U(),k=()=>{o.setRedirectTo(w("/modules/checkout")),s.scrollToTop()},F=async()=>{d.selectedModules.length>0&&u.value>0?await oe(w("/modules/checkout")):u.value<=0?console.warn("Cannot checkout with zero price â only free modules selected"):console.warn("No modules selected")},D=p(()=>d.selectedModules.length>0);return(y,r)=>{const b=K;return l(),c("div",$t,[r[5]||(r[5]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(56,189,248,0.08),transparent_60%)]"},null,-1)),e(D)?(l(),c("div",St,[t("div",Lt,[t("span",Ct,i(e(m)("billing_calc.checkout_overview.total")),1),t("div",Pt,[r[0]||(r[0]=t("span",{class:"text-sm font-semibold text-slate-400"},"$",-1)),t("span",Ft,i(e(x)),1),t("span",Tt," ."+i(e(v)),1)])]),e(_).check()?(l(),c("button",{key:0,class:"group relative w-full overflow-hidden rounded-xl bg-gradient-to-br from-emerald-400 via-emerald-500 to-green-600 px-6 py-3.5 text-base font-semibold text-white shadow-[0_8px_24px_-8px_rgba(16,185,129,0.5)] transition duration-300 hover:shadow-[0_12px_32px_-8px_rgba(16,185,129,0.7)] hover:brightness-110 active:scale-[0.98] cursor-pointer",onClick:F},[t("span",Dt,[$(i(e(m)("billing_calc.checkout_overview.buy"))+" ",1),r[1]||(r[1]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",class:"transition-transform duration-300 group-hover:translate-x-1"},[t("path",{d:"M5 12h14M13 6l6 6-6 6"})],-1))]),r[2]||(r[2]=t("span",{"aria-hidden":"true",class:"absolute inset-0 -translate-x-full bg-gradient-to-r from-transparent via-white/25 to-transparent transition-transform duration-700 group-hover:translate-x-full"},null,-1))])):(l(),E(b,{key:1,to:{name:"sign-in"},class:"group flex w-full items-center justify-center gap-2 rounded-xl border border-white/15 bg-white/5 px-6 py-3.5 text-base font-semibold text-white transition duration-300 hover:border-white/30 hover:bg-white/10",onClick:z(k,["prevent"])},{default:I(()=>[$(i(e(m)("auth.need_auth"))+" ",1),r[3]||(r[3]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",class:"transition-transform duration-200 group-hover:translate-x-0.5"},[t("path",{d:"M5 12h14M13 6l6 6-6 6"})],-1))]),_:1})),e(u)>0?(l(),c("p",Et,[$(i(e(m)("billing_calc.checkout_overview.total_summary",{selected_modules_count:e(d).selectedModulesCount,word:e(g)}))+" ",1),t("span",It,i(e(m)("billing_calc.checkout_overview.gift")),1)])):L("",!0)])):(l(),c("div",At,[t("span",Nt,i(e(m)("billing_calc.checkout_overview.total")),1),r[4]||(r[4]=t("div",{class:"flex items-baseline gap-1 opacity-40"},[t("span",{class:"text-sm font-semibold text-slate-400"},"$"),t("span",{class:"text-5xl font-bold tracking-tight text-white"},"0"),t("span",{class:"text-xl font-medium text-slate-400"},".00")],-1))]))])}}}),Ht={class:"relative mx-auto overflow-hidden rounded-3xl bg-white dark:bg-[#1a2531] border border-gray-200 dark:border-white/[0.06] shadow-[0_8px_40px_-16px_rgba(15,23,42,0.12)] dark:shadow-[0_1px_0_rgba(255,255,255,0.03)_inset,0_24px_60px_-24px_rgba(0,0,0,0.7)]"},Yt={class:"relative grid lg:grid-cols-[minmax(0,1fr)_minmax(300px,360px)]"},jt={class:"flex min-w-0 flex-col divide-y divide-gray-200 dark:divide-white/[0.05]"},Rt={class:"min-w-0 border-t border-gray-200 dark:border-white/[0.05] lg:border-l lg:border-t-0"},zt=T({__name:"CheckoutOverview",setup(h){return(o,s)=>(l(),c("div",Ht,[s[0]||(s[0]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute -top-32 -right-32 hidden h-64 w-64 rounded-full bg-sky-500/10 blur-3xl dark:block"},null,-1)),s[1]||(s[1]=t("div",{"aria-hidden":"true",class:"pointer-events-none absolute -bottom-24 -left-24 hidden h-56 w-56 rounded-full bg-sky-4
100/[0.04] blur-3xl dark:block"},null,-1)),t("div",Yt,[t("div",jt,[P(it),P(yt)]),t("div",Rt,[P(Bt)])])]))}}),Ot={key:1,class:"max-w-md mx-auto text-center py-16 px-4",role:"alert"},qt={class:"text-xl font-semibold text-gray-900 dark:text-white mb-2"},Ut={class:"text-gray-600 dark:text-gray-400 mb-6"},Vt=["disabled"],Wt={key:2,class:"max-w-[1500px] mx-auto space-y-5 sm:space-y-6"},Gt={class:"text-center"},Qt={class:"text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-2"},Xt={class:"text-gray-600 dark:text-gray-400 text-sm sm:text-base max-w-xl mx-auto mb-4"},Zt=T({__name:"ModuleCheckout",props:{module:{},heading:{}},async setup(h){let o,s;const m=h,{t:n}=N(),_=j(),d=Z(),g=p(()=>d.value?["full_year","full_month"].includes(_.getSubscriptionType.value??""):!1),u=A(),f=ae(),a=Y([]),x=Y(!0),v=Y(null),w=Me();async function k(){x.value=!0,v.value=null;try{if(f.modules.length)a.value=f.modules;else{const r=await de.getModules(!1);a.value=r.data?.value?.modules||[]}if(u.setAllModules(a.value),_.check())try{await w.init(),w.purchasedModules.length>0&&u.setAllModules(u.getAllModulesWithPurchased(w.purchasedModules)),await u.fetchRenewalPrices(),await u.fetchSubscriptionCredits()}catch(r){R(r,{tags:{area:"ModuleCheckout",step:"purchased_modules"}})}if(!a.value.length){const r=new Error("Modules list is empty after load");R(r,{tags:{area:"ModuleCheckout",step:"empty_result"}}),v.value=r}}catch(r){R(r,{tags:{area:"ModuleCheckout",step:"load_modules"}}),v.value=r instanceof Error?r:new Error(String(r))}finally{x.value=!1}}const F=le(),D=k();F.isHydrating&&([o,s]=X(()=>D),await o,s());const y=Y(null);return W("toggleFullLicense",()=>{y.value?.()}),W("setToggleFullLicenseFunction",r=>{y.value=r}),me(()=>a.value,()=>{if(!m.module)return;const r=a.value.find(b=>b.slug===m.module);r&&u.toggleModule(r.id)},{immediate:!0}),(r,b)=>e(x)?(l(),E(we,{key:0})):e(v)?(l(),c("div",Ot,[b[1]||(b[1]=t("div",{class:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-red-100 dark:bg-red-900/20 mb-4"},[t("i",{class:"pi pi-exclamation-triangle text-2xl text-red-500 dark:text-red-400"})],-1)),t("h2",qt,i(e(n)("billing_calc.errors.load_failed_title")),1),t("p",Ut,i(e(n)("billing_calc.errors.load_failed_text")),1),t("button",{type:"button",class:"inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl bg-sky-600 hover:bg-sky-700 text-white font-medium transition-colors",disabled:e(x),onClick:k},[b[0]||(b[0]=t("i",{class:"pi pi-refresh"},null,-1)),$(" "+i(e(n)("errors.try_again")),1)],8,Vt)])):(l(),c("main",Wt,[t("div",Gt,[t("h1",Qt,i(m.heading?.trim()||e(n)("billing_calc.title")),1),t("p",Xt,i(e(n)("billing_calc.subtitle")),1),P(xe,{selected:"modules"})]),e(a).length>0?(l(),E(Ge,{key:0})):L("",!0),e(a).length>0&&!e(g)?(l(),E(zt,{key:1})):L("",!0)]))}}),Jt={class:"relative flex flex-col mx-auto overflow-hidden bg-gray-50 dark:bg-[#17212b] pt-16 lg:pt-20"},Kt={class:"relative z-10 min-h-screen"},es={class:"max-w-[1600px] mx-auto px-3 sm:px-6 lg:px-8 py-8 sm:py-12 lg:py-16"},ts={class:"flex justify-center fade-in-up"},ss={class:"prices-limits-cta"},os={key:0,id:"seoArticle",class:"mx-auto mt-10 w-full max-w-5xl border-t border-slate-200/70 pt-8 dark:border-slate-700/50"},ls=T({__name:"index",async setup(h){let o,s;const{t:m}=N(),n=U(),{data:_}=([o,s]=X(()=>Se.getPage("prices")),o=await o,s(),o),d=p(()=>_.value),g=p(()=>d.value?.seoTitle?.trim()||m("meta.title.prices")),u=p(()=>d.value?.metaDescription?.trim()||m("billing_calc.subtitle")),f=p(()=>d.value?.headingTitle?.trim()||""),a=re(),x=ie(),v=p(()=>{const k=a.query?.module;return typeof k=="string"?k:null}),w=J();return ge(()=>{const k=a.query.error;k==="has_subscription"?(w.error(m("main_general.error"),m("billing_calc.errors.has_subscription"),"tc",5e3),x.replace({query:{}})):k==="module_purchased"&&(w.error(m("main_general.error"),m("billing_calc.errors.module_already_purchased"),"tc",5e3),x.replace({query:{}}))}),ne({title:()=>g.value,ogTitle:()=>g.value,description:()=>u.value,ogDescription:()=>u.value,twitterCard:"summary_large_image",twitterTitle:()=>g.value,twitterDescription:()=>u.value,robots:"index, follow"}),Le({props:{title:g.value,description:u.value}}),(k,F)=>{const D=G;return l(),c("div",Jt,[F[0]||(F[0]=fe('<div class="absolute inset-0 bg-gradient-to-b from-gray-50 via-white to-gray-50 dark:from-[#17212b] dark:via-[#17212b] dark:to-[#17212b] z-0" data-v-10af287a></div><div class="hidden lg:block absolute inset-0 z-[1] opacity-[0.03] dark:opacity-[0.03]" style="background-image:radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);background-size:40px 40px;" data-v-10af287a></div><div class="hidden lg:block absolute inset-0 z-[2] pointer-events-none overflow-hidden" data-v-10af287a><div class="absolute top-20 left-10 w-96 h-96 bg-gradient-to-br from-[#0088cc]/20 to-[#229ED9]/15 dark:from-[#0088cc]/25 dark:to-[#229ED9]/20 rounded-full blur-3xl animate-float-slow" data-v-10af287a></div><div class="absolute top-40 right-20 w-[32rem] h-[32rem] bg-gradient-to-br from-[#229ED9]/15 to-[#0088cc]/10 dark:from-[#229ED9]/20 dark:to-[#0088cc]/15 rounded-full blur-3xl animate-float-slower" data-v-10af287a></div></div>',3)),t("div",Kt,[t("div",es,[t("div",ts,[P(Zt,{module:e(v),heading:e(f)},null,8,["module","heading"])]),t("div",ss,[P(D,{to:e(n)("/limits"),class:"prices-limits-cta__link"},{default:I(()=>[$(i(e(m)("limits.cta_from_prices")),1)]),_:1},8,["to"])]),e(d)?.landingArticle?(l(),c("section",os,[P($e,{html:e(d).landingArticle},null,8,["html"])])):L("",!0)])])])}}}),Ls=q(ls,[["__scopeId","data-v-10af287a"]]);export{Ls as default};
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.