3 lines
5.4 KiB
JavaScript
3 lines
5.4 KiB
JavaScript
module.exports=[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)},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)},67356,a=>{"use strict";var b=a.i(78352),c=a.i(28091),d=a.i(95121),e=a.i(79080);let f=(0,a.i(29892).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var g=a.i(79320);let h=({onSuccess:a,onRegister:h})=>{let[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(""),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)(!1),{login:q}=(0,d.useAuthContext)();async function r(b){b.preventDefault(),n(""),p(!0);try{await q(i,k),a()}catch(a){n(a.message||"Une erreur inattendue est survenue."),p(!1)}}return(0,b.jsx)("div",{className:"min-h-screen bg-slate-50 flex overflow-hidden font-sans text-slate-900 items-center justify-center p-4",children:(0,b.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden p-8 animate-in fade-in zoom-in duration-300",children:[(0,b.jsxs)("div",{className:"text-center mb-8",children:[(0,b.jsx)("h1",{className:"text-3xl font-black text-slate-900 mb-2",children:"Connexion"}),(0,b.jsx)("p",{className:"text-slate-500",children:"Bienvenue ! Connectez-vous à votre compte"})]}),m&&(0,b.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 text-red-600 text-sm font-medium rounded-xl flex items-center gap-2 animate-in shake duration-300",children:[(0,b.jsx)(f,{size:18}),m]}),(0,b.jsxs)("form",{onSubmit:r,className:"space-y-4",children:[(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",htmlFor:"email",children:"Email"}),(0,b.jsx)("input",{id:"email",type:"email",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"votre@email.com",value:i,onChange:a=>j(a.target.value),required:!0})]}),(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",htmlFor:"password",children:"Mot de passe"}),(0,b.jsx)("input",{id:"password",type:"password",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"••••••••",value:k,onChange:a=>l(a.target.value),required:!0})]}),(0,b.jsxs)("button",{type:"submit",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-6",disabled:o,children:[o?(0,b.jsx)(e.Loader2,{className:"animate-spin"}):"Se connecter"," ",(0,b.jsx)(g.ArrowRight,{size:18})]})]}),(0,b.jsxs)("div",{className:"mt-8 text-center text-sm text-slate-500",children:["Pas encore de compte ?"," ",(0,b.jsx)("button",{onClick:h,className:"font-bold text-blue-600 hover:text-blue-800 transition-colors ml-1",children:"Créer un compte"})]})]})})};var i=a.i(34896);function j(){let a=(0,i.useRouter)();return(0,b.jsx)(h,{onSuccess:()=>a.push("/dashboard"),onRegister:()=>a.push("/signup")})}a.s(["default",()=>j],67356)}];
|
|
|
|
//# sourceMappingURL=%5Broot-of-the-server%5D__d76143b2._.js.map
|