| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/app.copyrightchain.it/html_bak_20260421_180119/assets/ |
Upload File : |
import{j as e,h,Z as p,k as b,r as g,m as f}from"./index-Cr5nrdaF.js";const k=({lang:a,user:r,onPurchase:n,clientToken:c})=>{const o=async l=>{try{if(!c){alert(a==="it"?"Devi effettuare il login cliente prima di acquistare ABO Coin.":"You must login before purchasing ABO Coins.");return}const s=await fetch("https://app.copyrightchain.it/api/ai/billing/stripe/checkout",{method:"POST",headers:{"Content-Type":"application/json","X-CCP-Token":c},body:JSON.stringify({abo_amount:l})}),t=await s.json();if(!s.ok||!(t!=null&&t.ok)||!(t!=null&&t.checkout_url))throw new Error((t==null?void 0:t.error)||"stripe_checkout_error");window.location.href=t.checkout_url}catch(s){alert(`Errore Stripe checkout: ${(s==null?void 0:s.message)||"unknown_error"}`)}};return e.jsxs("div",{className:"space-y-12 animate-in fade-in duration-500 max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("h2",{className:"text-5xl font-black text-slate-900 tracking-tight uppercase",children:"ABO WALLET"}),e.jsx("p",{className:"text-slate-500 font-medium text-lg",children:"Acquista ABO Coin per sbloccare tutti i servizi legali di CopyrightChain."}),e.jsx("div",{className:"flex items-center justify-center gap-2",children:e.jsxs("div",{className:"bg-yellow-50 text-yellow-700 px-6 py-2 rounded-full border border-yellow-100 font-black text-xs uppercase tracking-widest flex items-center gap-2 shadow-sm",children:[e.jsx(h,{size:14})," 1 ABO Coin = €4,90"]})})]}),e.jsx("div",{className:"max-w-xl mx-auto",children:e.jsx(j,{baseAmount:1,unitPrice:4.9,title:"ABO Coin",onBuy:l=>o(l),icon:e.jsx(p,{size:32}),color:"bg-blue-50 text-blue-600",desc:a==="it"?"Acquisto singolo ABO Coin. Dopo il pagamento Stripe i coin verranno accreditati automaticamente nel wallet.":"Single ABO Coin purchase. After Stripe payment the coins will be credited automatically to your wallet."})}),e.jsxs("div",{className:"bg-white p-12 rounded-[3.5rem] border border-slate-100 shadow-sm",children:[e.jsxs("h3",{className:"text-xl font-black text-slate-900 uppercase tracking-tight mb-8 flex items-center gap-3",children:[e.jsx(b,{size:24,className:"text-blue-600"})," Spending List (Costi Servizi)"]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-6",children:[e.jsx(i,{label:"Certificazione Base",cost:"1 ABO",desc:"Hash + Data Certa"}),e.jsx(i,{label:"Certificazione Blockchain",cost:"2 ABO",desc:"Ancoraggio Bitcoin immutabile"}),e.jsx(i,{label:"Generazione Licenza d'uso",cost:"2 ABO",desc:"Atto legale di concessione diritti"}),e.jsx(i,{label:"Atto Legale / Diffida AI",cost:"3 ABO",desc:"Cease & Desist generata dall'AI"}),e.jsx(i,{label:"Scansione IP Monitor",cost:"2 ABO",desc:"Monitoraggio web per violazioni"}),e.jsx(i,{label:"AI Legal Advisor (PRO)",cost:"1 ABO",desc:"Sessione di consulenza avanzata"})]})]})]})},j=({baseAmount:a,unitPrice:r,title:n,onBuy:c,icon:o,color:l,desc:s})=>{const[t,x]=g.useState(1),m=(r*t).toFixed(2),u=a*t;return e.jsxs("div",{className:"bg-white p-10 rounded-[3rem] border border-slate-100 shadow-xl transition-all flex flex-col items-center text-center relative group",children:[e.jsx("div",{className:`w-20 h-20 ${l} rounded-[2rem] flex items-center justify-center mb-8 shadow-sm group-hover:scale-110 transition-transform`,children:o}),e.jsx("h3",{className:"text-2xl font-black text-slate-900 uppercase tracking-tight leading-none mb-2",children:n}),e.jsx("div",{className:"flex items-baseline gap-1 mb-4",children:e.jsxs("span",{className:"text-4xl font-black text-slate-900 tracking-tighter",children:["€",m]})}),e.jsx("p",{className:"text-xs text-slate-400 font-medium mb-8 px-4",children:s}),e.jsxs("div",{className:"w-full bg-slate-50 rounded-2xl p-4 mb-8 flex items-center justify-between border border-slate-100",children:[e.jsx("button",{onClick:()=>x(d=>Math.max(1,d-1)),className:"w-10 h-10 bg-white rounded-xl flex items-center justify-center text-slate-400 hover:text-blue-600 hover:shadow-md transition-all border border-slate-100",children:"-"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[9px] font-black text-slate-400 uppercase tracking-widest leading-none",children:"Quantità"}),e.jsx("span",{className:"text-xl font-black text-slate-900",children:t})]}),e.jsx("button",{onClick:()=>x(d=>d+1),className:"w-10 h-10 bg-white rounded-xl flex items-center justify-center text-slate-400 hover:text-blue-600 hover:shadow-md transition-all border border-slate-100",children:"+"})]}),e.jsxs("div",{className:"w-full space-y-3 mt-auto",children:[e.jsxs("div",{className:"flex justify-between items-center px-2",children:[e.jsx("span",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest",children:"Riceverai"}),e.jsxs("span",{className:"text-sm font-black text-blue-600",children:[u," ABO COINS"]})]}),e.jsxs("button",{onClick:()=>c(u),className:"w-full py-5 bg-slate-900 text-white rounded-2xl font-black uppercase tracking-widest text-[10px] flex items-center justify-center gap-3 shadow-xl transition-all hover:bg-blue-600 hover:-translate-y-1 active:scale-95",children:["Paga €",m," ",e.jsx(f,{size:16})]})]})]})},i=({label:a,cost:r,desc:n})=>e.jsxs("div",{className:"flex justify-between items-center py-4 border-b border-slate-50 last:border-none",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-black text-slate-800 uppercase tracking-tight leading-none",children:a}),e.jsx("p",{className:"text-[10px] text-slate-400 font-bold uppercase mt-1",children:n})]}),e.jsx("div",{className:"bg-blue-50 text-blue-700 px-4 py-1.5 rounded-xl text-xs font-black uppercase tracking-widest border border-blue-100",children:r})]});export{k as default};