1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2290,952],{9822:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cloud-points",function(){return t(4041)}])},952:function(e,s,t){"use strict";t.r(s),t.d(s,{supabase:function(){return o}});var n=t(1289);let o=(0,n.createClientComponentClient)()},4041:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return m},default:function(){return x}});var n=t(1527),o=t(4777),i=t(3460),r=t(959),l=t(15),a=t(952),c=t(3294),u=t.n(c),d=t(348),h=t.n(d);let p=[{id:"250000_points",title:"Enconvo Cloud Points 450,000",price:"$10.00 USD",points:"450,000",lookupKey:"250000_points"},{id:"1500000_points",title:"Enconvo Cloud Points 2,250,000",price:"$50.00 USD",points:"2,250,000",lookupKey:"1500000_points"},{id:"3000000_points",title:"Enconvo Cloud Points 4,500,000",price:"$100.00 USD",points:"4,500,000",lookupKey:"3000000_points"}];var m=!0;function x(){let{t:e,locale:s}=(0,i.Q)(),t=(0,l.useRouter)(),[c,d]=(0,r.useState)(null),[m,x]=(0,r.useState)(!0),[g,b]=(0,r.useState)(!1),[f,y]=(0,r.useState)(null);(0,r.useEffect)(()=>{a.supabase.auth.getSession().then(e=>{let{data:{session:s}}=e;if(!s){t.push("/login");return}d(s.user),x(!1)})},[t]);let j=async e=>{let{data:{session:t}}=await a.supabase.auth.getSession();b(!0);try{let n=await fetch("/api/subscription/checkout_sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lookupKey:e,locale:s,email:t.user.email})});if(console.log("response.status",n.status),200===n.status){let e=await n.json();e.url&&(window.location.href=e.url)}else{let e=await n.json();console.error("Payment error:",e),alert("Failed to create checkout session. Please try again.")}}catch(e){console.error("Error creating checkout session:",e),alert("Failed to create checkout session. Please try again.")}finally{b(!1)}};return m?(0,n.jsx)("div",{children:e("Loading...")}):(0,n.jsxs)("div",{className:"min-h-screen bg-gray-900 text-white",children:[(0,n.jsx)(h(),{children:(0,n.jsx)("title",{children:e("Enconvo Cloud Points")})}),(0,n.jsxs)("div",{className:"mx-auto max-w-4xl px-4 py-8",children:[(0,n.jsxs)("button",{onClick:()=>t.back(),className:"mb-8 flex items-center text-gray-400 hover:text-white",children:[(0,n.jsx)("svg",{className:"mr-2 h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),e("Back to Account")]}),(0,n.jsx)("h1",{className:"mb-4 text-3xl font-bold",children:e("Enconvo Cloud Points")}),(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("p",{className:"mb-4 text-gray-300",children:e("Enconvo Cloud points can be used for services like LLM, TTS, Speech-to-Text, Image generation, and more.")}),(0,n.jsx)("p",{className:"mt-2 text-gray-300",children:(0,n.jsx)(o.N,{source:"{p0} Points never expire until they're used.",values:{p0:(0,n.jsx)("span",{className:"text-blue-400",children:"*"})}})})]}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:p.map(s=>(0,n.jsxs)("div",{className:`rounded-lg border p-6 transition-all ${f===s.id?"border-blue-500 bg-gray-800":"border-gray-700 bg-gray-800 hover:border-gray-500"}`,onClick:()=>y(s.id),children:[(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsx)(u(),{src:"https://file.enconvo.com/circle_logo.png",alt:e("Enconvo Logo"),width:48,height:48,className:"rounded-full"})}),(0,n.jsxs)("h3",{className:"mb-2 text-xl font-semibold",children:[s.points," ",e(" Points")]}),(0,n.jsx)("p",{className:"mb-4 text-gray-300",children:s.price}),(0,n.jsx)("button",{onClick:()=>j(s.lookupKey),disabled:g,className:"w-full rounded-md bg-blue-600 px-4 py-2 font-medium text-white transition-colors hover:bg-blue-700 disabled:opacity-50",children:g&&f===s.id?(0,n.jsxs)("span",{className:"flex items-center justify-center",children:[(0,n.jsxs)("svg",{className:"-ml-1 mr-2 h-4 w-4 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e("Processing...")]}):e("Purchase")})]},s.id))})]})]})}}},function(e){e.O(0,[1289,3294,9774,2888,179],function(){return e(e.s=9822)}),_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.