1import{_ as te,a as se,b as ne}from"./C0REap2D.js";import{_ as N}from"./DVfXnlvr.js";import{_ as oe}from"./Dw6RtYSO.js";import{_ as ie}from"./Dtn9FR0J.js";import{S as ae,e as O,f as Q,g as re,o as P,c as E,r as S,C as le,B as ce,A as ue,D as de,b as g,a as n,n as B,t as V,i as z,u as m,F as fe,w as _,d as k,a5 as me,V as pe,k as y,x as U,aE as ve}from"./DZccuZni.js";import{_ as J}from"./DlAUqK2U.js";import{t as ye,s as H}from"./B53lK-l_.js";import{u as xe}from"./Dps7zSvZ.js";import"./BQHNewu7.js";import"./44NoomrI.js";import"./NFgULUoW.js";const ge=ae("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),C=30,he=O({__name:"AntigravityParticles",setup(K){const c=S(null);let u=null,d=0,p=0,x=1,h=[];const o={x:-9999,y:-9999,targetX:-9999,targetY:-9999,radius:280,active:!1},f=["#2ECC71","#56CCF2","#4285F4","#9B59B6","#FBBC05"];function I(){if(h=[],d===0||p===0)return;const a=Math.ceil(d/C)+2,s=Math.ceil(p/C)+2,l=(d-(a-1)*C)/2,i=(p-(s-1)*C)/2;for(let t=0;t<s;t++)for(let e=0;e<a;e++){const r=l+e*C,w=i+t*C,L=f[(e+t)%f.length];h.push({originX:r,originY:w,x:r,y:w,vx:0,vy:0,radius:1.4,color:L,intensity:0})}}function A(){const a=c.value;if(!a||!a.parentElement)return;const s=a.parentElement.getBoundingClientRect();d=s.width,p=s.height,x=window.devicePixelRatio||1,a.width=d*x,a.height=p*x;const l=a.getContext("2d");l&&l.scale(x,x),I()}function v(a){const s=c.value;if(!s)return;const l=s.getBoundingClientRect();o.targetX=a.clientX-l.left,o.targetY=a.clientY-l.top,o.active=!0}function b(){o.active=!1,o.targetX=-9999,o.targetY=-9999}let M=0;function R(){const a=c.value;if(!a)return;const s=a.getContext("2d");if(!s)return;M+=.025,o.active?(o.x+=(o.targetX-o.x)*.18,o.y+=(o.targetY-o.y)*.18):(o.x=-9999,o.y=-9999),s.clearRect(0,0,d,p);const l=.055,i=.86;for(let t=0;t<h.length;t++){const e=h[t],r=Math.sin(M+e.originY*.015)*.7,w=Math.cos(M*.8+e.originX*.015)*.7,L=e.originX+r,W=e.originY+w;if(o.active){const X=e.x-o.x,j=e.y-o.y,$=Math.hypot(X,j);if($<o.radius&&$>0){const q=$/o.radius,T=Math.pow(1-q,1.5)*4.8,D=Math.atan2(j,X);e.vx+=Math.cos(D)*T,e.vy+=Math.sin(D)*T;const G=Math.pow(1-q,1.2);G>e.intensity&&(e.intensity=G)}}const Z=L-e.x,ee=W-e.y;e.vx+=Z*l,e.vy+=ee*l,e.vx*=i,e.vy*=i,e.x+=e.vx,e.y+=e.vy,e.intensity*=.95;const Y=1.2+e.intensity*1.8,F=.08+e.intensity*.82;s.beginPath(),s.arc(e.x,e.y,Y,0,Math.PI*2),e.intensity>.08?(s.fillStyle=e.color,s.globalAlpha=F,s.fill(),e.intensity>.35&&(s.beginPath(),s.arc(e.x,e.y,Y*2.2,0,Math.PI*2),s.fillStyle=e.color,s.globalAlpha=e.intensity*.22,s.fill())):(s.fillStyle="#94a3b8",s.globalAlpha=F,s.fill())}s.globalAlpha=1,u=requestAnimationFrame(R)}return Q(()=>{A(),window.addEventListener("resize",A),window.addEventListener("mousemove",v),document.addEventListener("mouseleave",b),u=requestAnimationFrame(R)}),re(()=>{u!==null&&cancelAnimationFrame(u),window.removeEventListener("resize",A),window.removeEventListener("mousemove",v),document.removeEventListener("mouseleave",b)}),(a,s)=>(P(),E("canvas",{class:"antigravityCanvas absolute inset-0 w-full h-full pointer-events-none",ref_key:"canvasRef",ref:c},null,512))}}),be=J(he,[["__scopeId","data-v-da968400"]]),we={class:"paymentContainer flex flex-col p-3 items-center justify-center min-h-screen relative overflow-hidden"},_e={class:"paymentContent flex flex-col gap-4 items-center flex-1 overflow-hidden w-full items-center justify-center"},ke={class:"flex flex-col gap-2 items-center justify-center pt-6"},Ce={class:"stepProgress flex flex-row items-center gap-2 px-3 py-1 rounded-full border border-border bg-surface/80 backdrop-blur-md shadow-xs"},Pe={class:"text-3xl font-bold tracking-tight text-center"},Ae={class:"text-sm opacity-60 text-center"},Me={class:"flex flex-col gap-1 items-center justify-center flex-1 w-full overflow-hidden"},Se={class:"flex flex-row gap-3 w-full mt-2"},Re=O({__name:"payment",setup(K){const c=le(),u=ce(),d=ue(),p=S("Rendom Lab"),x=S("Rendom lab"),h=S("Rendom lab"),o=S(!1),f=y(()=>d.path.includes("/finalize")),I=y(()=>b.value&&f.value?"Complete Your Subscription":"Get more done with Meomni Plus"),A=y(()=>b.value?f.value?"Review your order and select a payment method":"Select the plan that best fits your workflow":"Sign in to choose your subscription plan");xe({title:p,meta:[{name:"description",content:x},{name:"darkreader",content:h}]});const v=y(()=>{const i=d.query.userid;return typeof i=="string"&&i.trim()?i.trim():u.user?.uid||""}),b=y(()=>u.isAuthenticated&&u.user?.uid?!0:v.value?.length===28||v.value?.length===36),M=y(()=>c.plusActive),R=y(()=>c.plans);function a(){const i=d.fullPath;U(`/auth/login?redirect=${encodeURIComponent(i)}`)}function s(){U("/auth/register")}const l=y(()=>{try{const i={...ye};return Object.entries(R.value).map(([r,w])=>({planId:r,...w})).filter(r=>r.version===4&&r.trial).forEach(r=>{H(i,`${r.tier}.billing.${r.interval}.price`,r.price),H(i,`${r.tier}.billing.${r.interval}.${r.provider}`,r.planId)}),i}catch(i){return console.log("tierList error",i),{}}});return ve("tierList",l),Q(async()=>
1{try{o.value=!0,u.initialized||await u.init(),await Promise.all([c.loadPlans(),v.value?c.loadPlusStatus(v.value):Promise.resolve()])}catch(i){console.error("Error loading defaults",i)}finally{o.value=!1}}),de(()=>v.value,async i=>{if(i)try{await c.loadPlusStatus(i)}catch(t){console.error("Failed to load plus status for user:",t)}}),(i,t)=>(P(),E("div",we,[g(be),n("div",_e,[n("div",ke,[n("div",Ce,[n("div",{class:B(["flex flex-row items-center gap-1 text-xs font-semibold",f.value?"opacity-50":"text-primary opacity-100"])},[n("span",{class:B(["size-4 rounded-full flex items-center justify-center text-xs",f.value?"bg-muted text-muted-foreground":"bg-primary text-primary-foreground font-bold"])},"1",2),t[0]||(t[0]=n("span",null,"Choose Plan",-1))],2),t[2]||(t[2]=n("span",{class:"text-xs opacity-30"},"â",-1)),n("div",{class:B(["flex flex-row items-center gap-1 text-xs font-semibold",f.value?"text-primary opacity-100":"opacity-50"])},[n("span",{class:B(["size-4 rounded-full flex items-center justify-center text-xs",f.value?"bg-primary text-primary-foreground font-bold":"bg-muted text-muted-foreground"])},"2",2),t[1]||(t[1]=n("span",null,"Payment",-1))],2)]),n("div",Pe,V(I.value),1),n("div",Ae,V(A.value),1)]),n("div",Me,[o.value?(P(),z(m(ie),{key:0,class:"size-8 text-primary"})):(P(),E(fe,{key:1},[b.value?M.value?(P(),z(m(ne),{key:1,class:"max-w-lg border-emerald-400/30 bg-emerald-500/10 backdrop-blur-md text-emerald-50"},{default:_(()=>[g(m(me),{class:"size-4"}),n("div",null,[g(m(te),null,{default:_(()=>[...t[9]||(t[9]=[k("Your account has Plus activated! ð",-1)])]),_:1}),g(m(se),null,{default:_(()=>[...t[10]||(t[10]=[k("Thank you for your support! ð¥°",-1)])]),_:1})])]),_:1})):pe(i.$slots,"default",{key:2},void 0,!0):(P(),z(m(oe),{key:0,class:"max-w-lg w-full border-border bg-surface/90 backdrop-blur-xl shadow-xl p-6 flex flex-col gap-4 text-center items-center"},{default:_(()=>[t[5]||(t[5]=n("div",{class:"size-12 rounded-full bg-primary"},null,-1)),t[6]||(t[6]=k('<10 class="flex items-center justify-center text-primary mb-1">',-1)),g(m(ge),{class:"size-6"}),t[7]||(t[7]=n("div",{class:"flex flex-col gap-1 items-center"},[n("div",{class:"text-xl font-bold"},"Sign in to continue"),n("div",{class:"text-sm text-muted-foreground"},"To view subscription plans and activate Plus, please sign in to your Rendom account or create one.")],-1)),n("div",Se,[g(m(N),{class:"flex-1",onClick:a},{default:_(()=>[...t[3]||(t[3]=[k("Sign In",-1)])]),_:1}),g(m(N),{class:"flex-1",variant:"outline",onClick:s},{default:_(()=>[...t[4]||(t[4]=[k("Create Account",-1)])]),_:1})]),t[8]||(t[8]=n("div",{class:"text-xs opacity-50 mt-2"},[k("Need help or have questions? Contact us at "),n("a",{class:"underline",href:"mailto:[email protected]"},"[email protected]")],-1))]),_:1}))],64))])]),t[11]||(t[11]=n("div",{class:"footer mt-5 bottom-0"},[n("div",{class:"center items-center justify-center flex flex-row gap-2 flex-wrap pb-5 px-6 text-center"},[n("div",{class:"text-sm opacity-60"},"If you have any questions or issues please message us at "),n("div",{class:"text-sm opacity-100"},"[email protected]")])],-1))]))}}),Te=J(Re,[["__scopeId","data-v-3ae7fb6b"]]);export{Te 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.