PageSourceSearch

https://platform.lebureau.tech/assets/login-DFj2oNFv.js

js lebureau.tech collected 2026-10-02 02:08:30 UTC 3,438 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3b2f54b88d18ccd4da844326859492a7bf098cf6`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`aae0bea3-eb52-420c-aadb-ecfe3cc732ae`,e._sentryDebugIdIdentifier=`sentry-dbid-aae0bea3-eb52-420c-aadb-ecfe3cc732ae`)}catch{}})();import{I as e,P as t,r as n,s as r}from"./link-u7waM7YH.js";import{t as i}from"./useForm-DNJbboO4.js";import{B as a,H as o,_ as s,g as c,v as l}from"./index-CcWFAZFt.js";import{o as u,r as d}from"./brand-Ccxx18Uh.js";import{t as f}from"./button-DNdmdMhi.js";import{a as p,i as m,n as h,o as g,r as _,t as v}from"./card-CxCuKHfM.js";import{r as y,t as b}from"./auth-client-CmX0QNfS.js";import{t as x}from"./input-BHQhI5bN.js";import{t as S}from"./label-FxJnWeEv.js";var C=e(t()),w=r();function T(){let e=o(),t=n(),{redirect:r,email:T}=c.useSearch(),[E]=(0,C.useState)(a({select:e=>e.location.searchStr})),[D,O]=(0,C.useState)(null),k=y(`/signup`),A=r?.startsWith(`/accept-invitation/`)??!1,j=i({defaultValues:{email:T??``,password:``},onSubmit:async({value:n})=>{O(null);let i=await b.signIn.email({email:n.email,password:n.password});if(i.error){O(i.error.message||`Identifiants invalides`);return}let a=l(i.data)??s(E);if(a){window.location.href=a;return}r?t.history.push(r):await e({to:`/dashboard`})}});return(0,w.jsxs)(`main`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col items-center justify-center gap-8 p-6`,children:[(0,w.jsx)(u,{}),(0,w.jsxs)(v,{className:`w-full`,children:[(0,w.jsxs)(p,{children:[(0,w.jsx)(d,{className:`mb-1`,children:A?`Invitation`:`Plateforme`}),(0,w.jsx)(g,{className:`text-xl`,children:`Se connecter`}),(0,w.jsx)(_,{children:A?`Vous avez déjà un compte avec cette adresse : connectez-vous pour rejoindre l'organisation.`:`Accédez à vos organisations et à vos bureaux.`})]}),(0,w.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),j.handleSubmit()},children:[(0,w.jsxs)(h,{className:`space-y-4`,children:[(0,w.jsx)(j.Field,{name:`email`,children:e=>(0,w.jsxs)(`div`,{className:`space-y-2`,children:[(0,w.jsx)(S,{htmlFor:`email`,children:`E-mail`}),(0,w.jsx)(x,{id:`email`,type:`email`,autoComplete:`email`,value:e.state.value,onChange:t=>e.handleChange(t.target.value),onBlur:e.handleBlur,required:!0})]})}),(0,w.jsx)(j.Field,{name:`password`,children:e=>(0,w.jsxs)(`div`,{className:`space-y-2`,children:[(0,w.jsx)(S,{htmlFor:`password`,children:`Mot de passe`}),(0,w.jsx)(x,{id:`password`,type:`password`,autoComplete:`current-password`,value:e.state.value,onChange:t=>e.handleChange(t.target.value),onBlur:e.handleBlur,required:!0})]})}),D&&(0,w.jsx)(`p`,{className:`text-destructive text-sm`,children:D})]}),(0,w.jsxs)(m,{className:`flex flex-col items-stretch gap-3`,children:[(0,w.jsx)(j.Subscribe,{selector:e=>e.isSubmitting,children:e=>(0,w.jsx)(f,{type:`submit`,disabled:e,children:e?`Connexion…`:`Se connecter`})}),(0,w.jsxs)(`p`,{className:`text-muted-foreground text-center text-sm`,children:[`Pas de compte ?`,` `,(0,w.jsx)(`a`,{...k,className:`text-violet hover:text-violet-deep underline underline-offset-4`,children:`Créer mon bureau`})]})]})]})]}),(0,w.jsx)(`p`,{className:`text-ink-muted font-mono text-[13px]`,children:(0,w.jsx)(`a`,{href:`https://www.lebureau.tech`,className:`hover:text-ink`,children:`www.lebureau.tech`})})]})}export{T as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.