import{s as oe,n as N,d as f,p as re,i as U,b as a,a as c,c as g,f as k,g as W,j as C,e as _,l as I,m as ce,v as j,k as T,t as H,w as ee,x as te}from"../chunks/DVvjRtkd.js";import{e as q}from"../chunks/D6YF6ztN.js";import{S as he,i as de}from"../chunks/Ca9JqCu1.js";import{a as ue}from"../chunks/BSu-bEiK.js";function le(s,e,l){const t=s.slice();return t[3]=e[l],t}function se(s,e,l){const t=s.slice();return t[6]=e[l],t}function fe(s){let e,l='<span class="badge bg-gradient-to-r from-primary-600 to-purple-600 text-white px-4 py-2 text-sm font-bold">MOST POPULAR</span>';return{c(){e=_("div"),e.innerHTML=l,this.h()},l(t){e=g(t,"DIV",{class:!0,"data-svelte-h":!0}),W(e)!=="svelte-bl9lrc"&&(e.innerHTML=l),this.h()},h(){c(e,"class","absolute -top-4 left-1/2 transform -translate-x-1/2")},m(t,n){U(t,e,n)},d(t){t&&f(e)}}}function pe(s){let e,l=s[3].savings+"",t;return{c(){e=_("p"),t=H(l),this.h()},l(n){e=g(n,"P",{class:!0});var d=k(e);t=T(d,l),d.forEach(f),this.h()},h(){c(e,"class","text-green-600 font-semibold mb-6")},m(n,d){U(n,e,d),a(e,t)},p:N,d(n){n&&f(e)}}}function ae(s){let e,l,t,n,d,b=s[6]+"",w,u;return{c(){e=_("li"),l=te("svg"),t=te("path"),n=I(),d=_("span"),w=H(b),u=I(),this.h()},l(x){e=g(x,"LI",{class:!0});var p=k(e);l=ee(p,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0});var h=k(l);t=ee(h,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),k(t).forEach(f),h.forEach(f),n=C(p),d=g(p,"SPAN",{class:!0});var o=k(d);w=T(o,b),o.forEach(f),u=C(p),p.forEach(f),this.h()},h(){c(t,"stroke-linecap","round"),c(t,"stroke-linejoin","round"),c(t,"stroke-width","2"),c(t,"d","M5 13l4 4L19 7"),c(l,"class","h-6 w-6 text-green-500 mr-2 flex-shrink-0"),c(l,"fill","none"),c(l,"stroke","currentColor"),c(l,"viewBox","0 0 24 24"),c(d,"class","text-slate-700"),c(e,"class","flex items-start")},m(x,p){U(x,e,p),a(e,l),a(l,t),a(e,n),a(e,d),a(d,w),a(e,u)},p:N,d(x){x&&f(e)}}}function ie(s){let e,l,t,n,d=s[3].name+"",b,w,u,x,p=s[3].price+"",h,o,y,i,L=s[3].billing+"",S,O,Y,V,F,E,J="Get Started",G,Q,K,M=s[3].highlighted&&fe(),A=s[3].savings&&pe(s),D=q(s[3].features),m=[];for(let v=0;v<D.length;v+=1)m[v]=ae(se(s,D,v));function ne(){return s[2](s[3])}return{c(){e=_("div"),M&&M.c(),l=I(),t=_("div"),n=_("h3"),b=H(d),w=I(),u=_("div"),x=_("span"),h=H(p),o=I(),y=_("span"),i=H("/"),S=H(L),O=I(),A&&A.c(),Y=I(),V=_("ul");for(let v=0;v<m.length;v+=1)m[v].c();F=I(),E=_("button"),E.textContent=J,G=I(),this.h()},l(v){e=g(v,"DIV",{class:!0});var P=k(e);M&&M.l(P),l=C(P),t=g(P,"DIV",{class:!0});var r=k(t);n=g(r,"H3",{class:!0});var $=k(n);b=T($,d),$.forEach(f),w=C(r),u=g(r,"DIV",{class:!0});var B=k(u);x=g(B,"SPAN",{class:!0});var X=k(x);h=T(X,p),X.forEach(f),o=C(B),y=g(B,"SPAN",{class:!0});var R=k(y);i=T(R,"/"),S=T(R,L),R.forEach(f),B.forEach(f),O=C(r),A&&A.l(r),Y=C(r),V=g(r,"UL",{class:!0});var Z=k(V);for(let z=0;z<m.length;z+=1)m[z].l(Z);Z.forEach(f),F=C(r),E=g(r,"BUTTON",{class:!0,"data-svelte-h":!0}),W(E)!=="svelte-prxj2y"&&(E.textContent=J),r.forEach(f),G=C(P),P.forEach(f),this.h()},h(){c(n,"class","text-2xl font-bold text-slate-900 mb-2"),c(x,"class","text-5xl font-bold text-slate-900"),c(y,"class","text-slate-600 ml-2"),c(u,"class","flex items-baseline mb-4"),c(V,"class","space-y-3 mb-8"),c(E,"class","w-full btn-primary py-4 text-lg font-bold"),j(E,"bg-gradient-to-r",s[3].highlighted),j(E,"from-primary-600",s[3].highlighted),j(E,"to-purple-600",s[3].highlighted),c(t,"class","p-8"),c(e,"class","card relative"),j(e,"ring-4",s[3].highlighted),j(e,"ring-primary-500",s[3].highlighted)},m(v,P){U(v,e,P),M&&M.m(e,null),a(e,l),a(e,t),a(t,n),a(n,b),a(t,w),a(t,u),a(u,x),a(x,h),a(u,o),a(u,y),a(y,i),a(y,S),a(t,O),A&&A.m(t,null),a(t,Y),a(t,V);for(let r=0;r<m.length;r+=1)m[r]&&m[r].m(V,null);a(t,F),a(t,E),a(e,G),Q||(K=ce(E,"click",ne),Q=!0)},p(v,P){if(s=v,s[3].savings&&A.p(s,P),P&1){D=q(s[3].features);let r;for(r=0;r<D.length;r+=1){const $=se(s,D,r);m[r]?m[r].p($,P):(m[r]=ae($),m[r].c(),m[r].m(V,null))}for(;r<m.length;r+=1)m[r].d(1);m.length=D.length}},d(v){v&&f(e),M&&M.d(),A&&A.d(),re(m,v),Q=!1,K()}}}function me(s){let e,l,t,n='<h1 class="text-5xl font-bold text-slate-900 mb-4">Choose Your Plan</h1> <p class="text-xl text-slate-600">Get clean data 10x faster with Polars. 100% deterministic.</p>',d,b,w,u,x=`<h2 class="text-3xl font-bold text-slate-900 mb-6">Frequently Asked Questions</h2> <div class="space-y-6"><div><h3 class="text-lg font-semibold text-slate-900 mb-2">How do I get my license key?</h3> <p class="text-slate-600">After payment, you&#39;ll receive your license key instantly
                        via email. You&#39;ll also see it on the success page - make
                        sure to copy it!</p></div> <div><h3 class="text-lg font-semibold text-slate-900 mb-2">Can I use my license on multiple devices?</h3> <p class="text-slate-600">Yes! Each license can be activated on up to 3 devices
                        (laptop, desktop, etc.).</p></div> <div><h3 class="text-lg font-semibold text-slate-900 mb-2">What payment methods do you accept?</h3> <p class="text-slate-600">We accept all major credit cards via Stripe (Visa,
                        MasterCard, Amex, Discover).</p></div> <div><h3 class="text-lg font-semibold text-slate-900 mb-2">What&#39;s your refund policy?</h3> <p class="text-slate-600">All sales are final. We recommend testing the free
                        features before purchasing. If you have issues, contact
                        support and we&#39;ll help resolve them.</p></div></div>`,p=q(s[0]),h=[];for(let o=0;o<p.length;o+=1)h[o]=ie(le(s,p,o));return{c(){e=_("div"),l=_("div"),t=_("div"),t.innerHTML=n,d=I(),b=_("div");for(let o=0;o<h.length;o+=1)h[o].c();w=I(),u=_("div"),u.innerHTML=x,this.h()},l(o){e=g(o,"DIV",{class:!0});var y=k(e);l=g(y,"DIV",{class:!0});var i=k(l);t=g(i,"DIV",{class:!0,"data-svelte-h":!0}),W(t)!=="svelte-1ji3o2f"&&(t.innerHTML=n),d=C(i),b=g(i,"DIV",{class:!0});var L=k(b);for(let S=0;S<h.length;S+=1)h[S].l(L);L.forEach(f),w=C(i),u=g(i,"DIV",{class:!0,"data-svelte-h":!0}),W(u)!=="svelte-1tslvqx"&&(u.innerHTML=x),i.forEach(f),y.forEach(f),this.h()},h(){c(t,"class","text-center mb-12"),c(b,"class","grid grid-cols-1 md:grid-cols-3 gap-8 mb-16"),c(u,"class","card max-w-4xl mx-auto"),c(l,"class","max-w-7xl mx-auto px-6"),c(e,"class","min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 py-12")},m(o,y){U(o,e,y),a(e,l),a(l,t),a(l,d),a(l,b);for(let i=0;i<h.length;i+=1)h[i]&&h[i].m(b,null);a(l,w),a(l,u)},p(o,[y]){if(y&3){p=q(o[0]);let i;for(i=0;i<p.length;i+=1){const L=le(o,p,i);h[i]?h[i].p(L,y):(h[i]=ie(L),h[i].c(),h[i].m(b,null))}for(;i<h.length;i+=1)h[i].d(1);h.length=p.length}},i:N,o:N,d(o){o&&f(e),re(h,o)}}}function ve(s){const e=[{name:"Monthly",period:"monthly",price:"$49",billing:"per month",features:["Unlimited CSV files","10x faster with Polars","Schema reconciliation","Professional HTML reports","API access","Email support (24-48h)","Up to 3 devices"],highlighted:!1},{name:"Annual",period:"annual",price:"$499",billing:"per year",savings:"Save $89/year",features:["Everything in Monthly","2 months free","Priority email support","Access to beta features","Lifetime updates"],highlighted:!0},{name:"Lifetime",period:"lifetime",price:"$999",billing:"one-time",savings:"Best value!",features:["Everything in Annual","Pay once, use forever","All future updates","Priority support","Early access to new features"],highlighted:!1}];async function l(n){try{const d=window.location.origin,b=await ue.createCheckoutSession({tier:"pro",period:n,email:"",success_url:`${d}/checkout/success`,cancel_url:`${d}/checkout/cancel`});window.location.href=b.url}catch(d){console.error("Checkout error:",d),alert("Failed to create checkout session. Please try again.")}}return[e,l,n=>l(n.period)]}class ye extends he{constructor(e){super(),de(this,e,ve,me,oe,{})}}export{ye as component};
