(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{19984:(e,s,t)=>{"use strict";var a=t(28704);t.o(a,"useParams")&&t.d(s,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},26685:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>x});var a=t(4208),r=t(19984),n=t(91356),l=t(61554),c=t(69640),i=t(49039),u=t(81887),m=t(29731);let o=(0,t(58113).cn)("w-full gap-4 border-0 bg-transparent px-4 py-6 shadow-none","sm:gap-5 sm:bg-card sm:dark:bg-mail-surface-elevated sm:px-8 sm:py-8","sm:text-card-foreground sm:dark:text-mail-text sm:shadow-none");function d(){let e=(0,r.useSearchParams)(),s=e.get("error"),t=e.get("returnTo")??"/mail/inbox",n=`/api/auth/login?returnTo=${encodeURIComponent(t)}`,d=(0,i.z0)();return(0,u.B8)()?(0,a.jsx)(m.t,{returnTo:t}):(0,a.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center px-4",children:(0,a.jsx)("div",{className:"ultimail-login-card-frame mx-auto w-full max-w-sm",children:(0,a.jsxs)(c.Zp,{className:o,children:[(0,a.jsxs)(c.aR,{className:"gap-4 px-0 text-center sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 py-4",children:[(0,a.jsx)("img",{src:"/ultisuite-mark.svg",alt:"",width:72,height:72,draggable:!1,className:"h-16 w-16 select-none","aria-hidden":!0}),(0,a.jsxs)("span",{className:"text-2xl font-bold tracking-tight",children:["Ulti",(0,a.jsx)("span",{className:"text-[#4285F4]",children:"Suite"})]})]}),(0,a.jsx)(c.BT,{children:"Connecte-toi avec ton compte Ulti (Authentik) pour acc\xe9der \xe0 ta suite : mail, drive, contacts et IA."}),s?(0,a.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:decodeURIComponent(s)}):null]}),(0,a.jsx)(c.Wu,{className:"flex justify-center px-0 sm:px-0",children:(0,a.jsx)(l.$,{asChild:!0,size:"lg",className:"w-full sm:w-auto",children:(0,a.jsx)("a",{href:n,children:"Se connecter"})})}),(0,a.jsx)(c.wL,{className:"px-0 sm:px-0",children:(0,a.jsxs)("p",{className:"w-full text-center text-sm text-muted-foreground",children:["Pas encore de compte ?"," ",(0,a.jsx)("a",{className:"font-medium text-primary underline",href:d,children:"Cr\xe9er un compte"})]})})]})})})}function x(){return(0,a.jsx)(n.Suspense,{fallback:null,children:(0,a.jsx)(d,{})})}},36109:(e,s,t)=>{Promise.resolve().then(t.bind(t,26685))}},e=>{e.O(0,[1909,563,9731,1614,1506,7358],()=>e(e.s=36109)),_N_E=e.O()}]);