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

//# sourceMappingURL=_0mca956._.js.map