(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let r=(0,e.i(56420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,r],77071)},95187,(e,r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l={callServer:function(){return t.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var n in l)Object.defineProperty(i,n,{enumerable:!0,get:l[n]});let t=e.r(32120),a=e.r(92245),s=e.r(35326)},6366,e=>{"use strict";var r=e.i(43476),i=e.i(71645),l=e.i(77071),n=e.i(38286),t=e.i(19367),a=e.i(95187);let s=(0,a.createServerReference)("409f956cae1cf472851e2f206abb7be7100da4067a",a.callServer,void 0,a.findSourceMapURL,"createUser");e.s(["NewUserButton",0,function(){let[e,a]=(0,i.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.Button,{onClick:()=>a(!0),children:[(0,r.jsx)(l.Plus,{className:"h-4 w-4"})," Nouvel utilisateur"]}),(0,r.jsx)(t.Modal,{open:e,onClose:()=>a(!1),title:"Nouvel utilisateur",children:(0,r.jsxs)("form",{action:s,className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(n.Field,{label:"Prénom",required:!0,children:(0,r.jsx)(n.Input,{name:"firstName",required:!0})}),(0,r.jsx)(n.Field,{label:"Nom",required:!0,children:(0,r.jsx)(n.Input,{name:"lastName",required:!0})})]}),(0,r.jsx)(n.Field,{label:"Email",required:!0,children:(0,r.jsx)(n.Input,{name:"email",type:"email",required:!0})}),(0,r.jsx)(n.Field,{label:"Mot de passe",required:!0,hint:"6 caractères minimum",children:(0,r.jsx)(n.Input,{name:"password",type:"password",required:!0})}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(n.Field,{label:"Rôle",children:(0,r.jsxs)(n.Select,{name:"role",defaultValue:"TALENT_MANAGER",children:[(0,r.jsx)("option",{value:"DIRECTION",children:"Direction"}),(0,r.jsx)("option",{value:"TALENT_MANAGER",children:"Talent Manager"}),(0,r.jsx)("option",{value:"RECRUTEMENT",children:"Recrutement"}),(0,r.jsx)("option",{value:"PARTENARIATS",children:"Partenariats"}),(0,r.jsx)("option",{value:"PRODUCTION",children:"Production"}),(0,r.jsx)("option",{value:"FINANCE_JURIDIQUE",children:"Finance / Juridique"}),(0,r.jsx)("option",{value:"CREATOR",children:"Créateur"})]})}),(0,r.jsx)(n.Field,{label:"Département",children:(0,r.jsxs)(n.Select,{name:"department",defaultValue:"",children:[(0,r.jsx)("option",{value:"",children:"— Aucun —"}),(0,r.jsx)("option",{value:"DIRECTION",children:"Direction"}),(0,r.jsx)("option",{value:"TALENTS",children:"Talents"}),(0,r.jsx)("option",{value:"RECRUTEMENT",children:"Recrutement"}),(0,r.jsx)("option",{value:"PARTENARIATS",children:"Partenariats"}),(0,r.jsx)("option",{value:"PRODUCTION",children:"Production"}),(0,r.jsx)("option",{value:"FINANCE",children:"Finance"})]})}),(0,r.jsx)(n.Field,{label:"Poste",children:(0,r.jsx)(n.Input,{name:"position"})}),(0,r.jsx)(n.Field,{label:"Téléphone",children:(0,r.jsx)(n.Input,{name:"phone"})})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-2 border-t border-ink-700 pt-4",children:[(0,r.jsx)(n.Button,{type:"button",variant:"ghost",onClick:()=>a(!1),children:"Annuler"}),(0,r.jsx)(n.Button,{type:"submit",children:"Créer"})]})]})})]})}],6366)}]);