3 lines
9.4 KiB
JavaScript
3 lines
9.4 KiB
JavaScript
module.exports=[79080,a=>{"use strict";let b=(0,a.i(29892).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],79080)},79320,a=>{"use strict";let b=(0,a.i(29892).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["ArrowRight",()=>b],79320)},82772,a=>{"use strict";let b=(0,a.i(29892).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);a.s(["User",()=>b],82772)},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},97442,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.AppRouterContext},42481,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.HooksClientContext},70676,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.ServerInsertedHtml},29892,a=>{"use strict";var b=a.i(28091);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={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 f=(0,b.forwardRef)(({color:a="currentColor",size:d=24,strokeWidth:f=2,absoluteStrokeWidth:g,className:h="",children:i,iconNode:j,...k},l)=>(0,b.createElement)("svg",{ref:l,...e,width:d,height:d,stroke:a,strokeWidth:g?24*Number(f)/Number(d):f,className:c("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(i)?i:[i]])),g=(a,e)=>{let g=(0,b.forwardRef)(({className:g,...h},i)=>(0,b.createElement)(f,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,g),...h}));return g.displayName=d(a),g};a.s(["default",()=>g],29892)},73258,a=>{"use strict";let b=(0,a.i(29892).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);a.s(["BookOpen",()=>b],73258)},66181,a=>{"use strict";let b=(0,a.i(29892).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"}]]);a.s(["Lock",()=>b],66181)},41440,a=>{"use strict";var b=a.i(78352),c=a.i(28091),d=a.i(29892);let e=(0,d.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var f=a.i(66181),g=a.i(82772),h=a.i(79320),i=a.i(79080),j=a.i(73258);let k=(0,d.default)("shield-check",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var l=a.i(95121);let m=({onBack:a,onSuccess:d,initialMode:m="signin"})=>{let[n,o]=(0,c.useState)(m),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)({name:"",email:"",password:""}),[t,u]=(0,c.useState)(""),{user:v,login:w,signup:x}=(0,l.useAuthContext)();(0,c.useEffect)(()=>{v&&d()},[v,d]);let y=async()=>{let a={email:"streaper2@gmail.com",password:"Kency1313"};s({name:"Admin Plume",...a}),q(!0),u("");try{await w(a.email,a.password)}catch(a){u(a?.message||"Erreur de connexion au service.")}finally{q(!1)}},z=async a=>{a.preventDefault(),u(""),q(!0);try{"signup"===n?await x(r.email,r.password,r.name):await w(r.email,r.password)}catch(a){u(a?.message||"Une erreur technique est survenue.")}finally{q(!1)}};return(0,b.jsxs)("div",{className:"min-h-screen bg-slate-50 flex overflow-hidden font-sans text-slate-900",children:[(0,b.jsxs)("div",{className:"hidden lg:flex w-1/2 bg-slate-900 relative p-12 flex-col justify-between overflow-hidden",children:[(0,b.jsxs)("div",{className:"absolute top-0 right-0 w-full h-full opacity-20 pointer-events-none",children:[(0,b.jsx)("div",{className:"absolute top-10 right-10 w-64 h-64 bg-blue-500 rounded-full blur-[120px]"}),(0,b.jsx)("div",{className:"absolute bottom-10 left-10 w-96 h-96 bg-indigo-500 rounded-full blur-[150px]"})]}),(0,b.jsxs)("div",{className:"relative z-10 flex items-center gap-2 text-white text-2xl font-black",children:[(0,b.jsx)(j.BookOpen,{className:"text-blue-500"})," PlumeIA"]}),(0,b.jsxs)("div",{className:"relative z-10 max-w-lg",children:[(0,b.jsxs)("h2",{className:"text-5xl font-black text-white leading-tight mb-6",children:["L'endroit où vos ",(0,b.jsx)("span",{className:"text-blue-400",children:"histoires"})," prennent vie."]}),(0,b.jsx)("p",{className:"text-slate-400 text-lg leading-relaxed",children:"Rejoignez une communauté d'auteurs qui utilisent l'IA pour briser la page blanche."})]}),(0,b.jsx)("div",{className:"relative z-10 text-slate-500 text-sm",children:"© 2024 PlumeIA Ecosystem."})]}),(0,b.jsx)("div",{className:"w-full lg:w-1/2 flex items-center justify-center p-8 bg-white overflow-y-auto",children:(0,b.jsxs)("div",{className:"w-full max-w-md animate-in fade-in slide-in-from-right-10 duration-500 py-8",children:[(0,b.jsxs)("div",{className:"text-center mb-10",children:[(0,b.jsx)("h1",{className:"text-3xl font-black text-slate-900 mb-2",children:"signin"===n?"Content de vous revoir":"signup"===n?"Commencer l'aventure":"Récupération"}),(0,b.jsx)("p",{className:"text-slate-500",children:"signin"===n?"Entrez vos identifiants pour continuer.":"Créez votre compte gratuit en quelques secondes."})]}),t&&(0,b.jsx)("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 text-red-600 text-sm font-medium rounded-xl animate-in shake duration-300",children:t}),(0,b.jsxs)("form",{onSubmit:z,className:"space-y-4",children:["signup"===n&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",children:"Nom complet"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(g.User,{className:"absolute left-4 top-3.5 text-slate-400",size:18}),(0,b.jsx)("input",{type:"text",required:!0,value:r.name,onChange:a=>s({...r,name:a.target.value}),placeholder:"Marc Dupré",className:"w-full pl-12 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium"})]})]}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",children:"Email"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(e,{className:"absolute left-4 top-3.5 text-slate-400",size:18}),(0,b.jsx)("input",{type:"email",required:!0,value:r.email,onChange:a=>s({...r,email:a.target.value}),placeholder:"votre@email.com",className:"w-full pl-12 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium"})]})]}),"forgot"!==n&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",children:"Mot de passe"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(f.Lock,{className:"absolute left-4 top-3.5 text-slate-400",size:18}),(0,b.jsx)("input",{type:"password",required:!0,value:r.password,onChange:a=>s({...r,password:a.target.value}),placeholder:"••••••••",className:"w-full pl-12 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium"})]})]}),(0,b.jsx)("button",{type:"submit",disabled:p,className:"w-full bg-slate-900 text-white py-4 rounded-xl font-bold flex items-center justify-center gap-2 hover:bg-blue-600 transition-all shadow-xl disabled:opacity-50 mt-4",children:p?(0,b.jsx)(i.Loader2,{className:"animate-spin"}):(0,b.jsxs)(b.Fragment,{children:["signin"===n?"Se connecter":"signup"===n?"Créer mon compte":"Envoyer"," ",(0,b.jsx)(h.ArrowRight,{size:18})]})})]}),"signin"===n&&(0,b.jsxs)("button",{onClick:y,className:"w-full mt-4 bg-amber-50 border border-amber-200 text-amber-800 py-3 rounded-xl font-bold flex items-center justify-center gap-2 hover:bg-amber-100 transition-all",children:[(0,b.jsx)(k,{size:18})," Connexion démo (Admin)"]}),(0,b.jsx)("div",{className:"mt-10 text-center",children:(0,b.jsxs)("p",{className:"text-sm text-slate-500",children:["signin"===n?"Pas de compte ?":"Déjà membre ?",(0,b.jsx)("button",{onClick:()=>o("signin"===n?"signup":"signin"),className:"ml-2 font-bold text-blue-600",children:"signin"===n?"S'inscrire":"Se connecter"})]})}),(0,b.jsx)("button",{onClick:a,className:"mt-8 text-xs text-slate-300 w-full text-center hover:text-slate-500 transition-colors",children:"← Revenir au site"})]})})]})};var n=a.i(34896);function o(){let a=(0,n.useRouter)();return(0,b.jsx)(m,{onBack:()=>a.push("/"),onSuccess:()=>a.push("/dashboard"),initialMode:"signup"})}a.s(["default",()=>o],41440)}];
|
|
|
|
//# sourceMappingURL=%5Broot-of-the-server%5D__47b901a8._.js.map
|