1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44026,e=>{"use strict";let t=(0,e.i(78445).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],44026)},78445,e=>{"use strict";var t=e.i(59760);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:n="",children:d,iconNode:c,...o},x)=>(0,t.createElement)("svg",{ref:x,...r,width:l,height:l,stroke:e,strokeWidth:a?24*Number(i)/Number(l):i,className:s("lucide",n),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(o)&&{"aria-hidden":"true"},...o},[...c.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(d)?d:[d]])),a=(e,r)=>{let a=(0,t.forwardRef)(({className:a,...n},d)=>(0,t.createElement)(i,{ref:d,iconNode:r,className:s(`lucide-${l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...n}));return a.displayName=l(e),a};e.s(["default",()=>a],78445)},12856,(e,t,s)=>{t.exports=e.r(96479)},11690,e=>{"use strict";let t=(0,e.i(78445).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],11690)},19809,e=>{"use strict";let t=(0,e.i(78445).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>t],19809)},35809,e=>{"use strict";let t=(0,e.i(78445).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],35809)},24911,e=>{"use strict";var t=e.i(30064),s=e.i(59760);let l=(0,e.i(78445).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);var r=e.i(19809),i=e.i(35809),a=e.i(11690),n=e.i(44026);let d=({onComplete:e,onCancel:d})=>{let[c,o]=(0,s.useState)(!1);return(0,t.jsx)("div",{className:"min-h-screen bg-[#eef2ff] flex items-center justify-center p-8",children:(0,t.jsxs)("div",{className:"bg-white rounded-3xl shadow-2xl flex flex-col md:flex-row max-w-4xl w-full overflow-hidden animate-in fade-in slide-in-from-bottom-10 duration-500",children:[(0,t.jsxs)("div",{className:"w-full md:w-1/3 bg-slate-900 text-white p-8",children:[(0,t.jsxs)("h3",{className:"text-xl font-bold mb-8 flex items-center gap-2",children:[(0,t.jsx)(i.Lock,{size:18,className:"text-blue-400"})," Commande"]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,t.jsx)("span",{children:"Auteur Pro"}),(0,t.jsx)("span",{children:"12.00€"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,t.jsx)("span",{children:"TVA (20%)"}),(0,t.jsx)("span",{children:"2.40€"})]}),(0,t.jsx)("div",{className:"h-px bg-slate-800 my-4"}),(0,t.jsxs)("div",{className:"flex justify-between text-xl font-black",children:[(0,t.jsx)("span",{children:"Total"}),(0,t.jsx)("span",{className:"text-blue-400",children:"14.40€"})]})]})]}),(0,t.jsxs)("div",{className:"flex-1 p-8 md:p-12",children:[(0,t.jsx)("h2",{className:"text-2xl font-black text-slate-900 mb-8 text-center",children:"Paiement Sécurisé"}),(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault(),o(!0),setTimeout(()=>{e()},2e3)},className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs font-black text-slate-500 uppercase tracking-widest mb-2",children:"Numéro de carte"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",placeholder:"4242 4242 4242 4242",className:"w-full bg-[#eef2ff] border border-indigo-100 p-4 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-bold"}),(0,t.jsx)(l,{className:"absolute right-4 top-4 text-slate-400"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,t.jsx)("input",{type:"text",placeholder:"MM / YY",className:"w-full bg-[#eef2ff] border border-indigo-100 p-4 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-bold"}),(0,t.jsx)("input",{type:"text",placeholder:"CVC",className:"w-full bg-[#eef2ff] border border-indigo-100 p-4 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-bold"})]}),(0,t.jsx)("button",{disabled:c,className:"w-full bg-blue-600 text-white py-5 rounded-2xl font-black text-lg hover:bg-blue-700 transition-all shadow-xl shadow-blue-200 flex items-center justify-center gap-3",children:c?(0,t.jsx)(n.Loader2,{className:"animate-spin"}):(0,t.jsxs)(t.Fragment,{children:["Confirmer le paiement ",(0,t.jsx)(a.ArrowRight,{size:20})]})}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 text-[10px] text-slate-400 font-bold uppercase",children:[(0,t.jsx)(r.Shield,{size:12})," Traitement chiffré SSL 256-bits"]})]})]})]})})};var c=e.i(12856);function o(){let e=(0,c.useRouter)();return(0,t.jsx)(d,{onComplete:()=>e.push("/dashboard"),onCancel:()=>e.push("/pricing")})}e.s(["default",()=>o],24911)}]); |