1import{m as w,j as s,L as f}from"./app-Di5kNy7c.js";import{L as e,I as l}from"./label-Q6O7zRFp.js";import{B as x}from"./button-BIKabNeA.js";import{I as o}from"./input-30O-B-j3.js";import{A as j,L as h}from"./loader-circle-D0PXVRJo.js";/* empty css */import"./createLucideIcon-BMjWB5Lg.js";import"./index-BpHuziCA.js";import"./app-logo-icon-DT3sugFR.js";function F({nom:m,courriel:p,urlActivation:c}){const{data:t,setData:a,post:d,processing:i,errors:n}=w({password:"",password_confirmation:""}),u=r=>{r.preventDefault(),d(c,{onFinish:()=>{a("password",""),a("password_confirmation","")}})};return s.jsxs(j,{title:`Bonjour ${m}`,description:"Créez votre accès au panneau central du SGA. Il ne manque qu'un mot de passe.",children:[s.jsx(f,{title:"Créez votre accès : panneau central SGA"}),s.jsx("form",{onSubmit:u,children:s.jsxs("div",{className:"grid gap-6",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(e,{htmlFor:"courriel",children:"Votre courriel"}),s.jsx(o,{id:"courriel",type:"text",value:p,readOnly:!0,className:"mt-1 block w-full"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(e,{htmlFor:"password",children:"Choisissez votre mot de passe"}),s.jsx(o,{id:"password",type:"password",autoComplete:"new-password",value:t.password,className:"mt-1 block w-full",autoFocus:!0,onChange:r=>a("password",r.target.value)}),s.jsx(l,{message:n.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(e,{htmlFor:"password_confirmation",children:"Confirmez-le"}),s.jsx(o,{id:"password_confirmation",type:"password",autoComplete:"new-password",value:t.password_confirmation,className:"mt-1 block w-full",onChange:r=>a("password_confirmation",r.target.value)}),s.jsx(l,{message:n.password_confirmation})]}),s.jsxs(x,{type:"submit",className:"w-full",disabled:i,children:[i&&s.jsx(h,{className:"h-4 w-4 animate-spin"}),"Créer mon accès"]})]})})]})}export{F as default};
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.