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)},8997,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)("40a752b6a8d7bd9f33920cc02b41e80002e5e4ebec",g.callServer,void 0,g.findSourceMapURL,"createCreator");function i({creator:a,managers:c,teams:d}){return(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",defaultValue:a?.firstName,required:!0})}),(0,b.jsx)(e.Field,{label:"Nom",required:!0,children:(0,b.jsx)(e.Input,{name:"lastName",defaultValue:a?.lastName,required:!0})}),(0,b.jsx)(e.Field,{label:"Pseudonyme",required:!0,children:(0,b.jsx)(e.Input,{name:"pseudo",defaultValue:a?.pseudo,required:!0})}),(0,b.jsx)(e.Field,{label:"Email",children:(0,b.jsx)(e.Input,{name:"email",type:"email",defaultValue:a?.email??""})}),(0,b.jsx)(e.Field,{label:"Téléphone",children:(0,b.jsx)(e.Input,{name:"phone",defaultValue:a?.phone??""})}),(0,b.jsx)(e.Field,{label:"Pays",children:(0,b.jsx)(e.Input,{name:"country",defaultValue:a?.country??""})}),(0,b.jsx)(e.Field,{label:"Langues",children:(0,b.jsx)(e.Input,{name:"languages",placeholder:"FR, EN…",defaultValue:a?.languages??""})}),(0,b.jsx)(e.Field,{label:"Date d'entrée",children:(0,b.jsx)(e.Input,{name:"entryDate",type:"date",defaultValue:a?.entryDate?a.entryDate.toISOString().slice(0,10):""})}),(0,b.jsx)(e.Field,{label:"Statut",required:!0,children:(0,b.jsxs)(e.Select,{name:"status",defaultValue:a?.status??"CANDIDAT",children:[(0,b.jsx)("option",{value:"CANDIDAT",children:"Candidat"}),(0,b.jsx)("option",{value:"INTEGRATION",children:"Intégration"}),(0,b.jsx)("option",{value:"ACTIF",children:"Actif"}),(0,b.jsx)("option",{value:"INACTIF",children:"Inactif"}),(0,b.jsx)("option",{value:"SUSPENDU",children:"Suspendu"}),(0,b.jsx)("option",{value:"SORTI",children:"Sorti"})]})}),(0,b.jsx)(e.Field,{label:"Manager attitré",children:(0,b.jsxs)(e.Select,{name:"managerId",defaultValue:a?.managerId??"AUCUN",children:[(0,b.jsx)("option",{value:"AUCUN",children:"— Aucun —"}),c.map(a=>(0,b.jsx)("option",{value:a.id,children:a.label},a.id))]})}),(0,b.jsx)(e.Field,{label:"Équipe",children:(0,b.jsxs)(e.Select,{name:"teamId",defaultValue:a?.teamId??"AUCUN",children:[(0,b.jsx)("option",{value:"AUCUN",children:"— Aucune —"}),d.map(a=>(0,b.jsx)("option",{value:a.id,children:a.label},a.id))]})}),(0,b.jsx)(e.Field,{label:"Score (sur 100)",hint:"Scoring candidat interne",children:(0,b.jsx)(e.Input,{name:"score",type:"number",min:0,max:100,defaultValue:a?.score??""})}),(0,b.jsx)("div",{className:"col-span-2",children:(0,b.jsx)(e.Field,{label:"Notes internes",children:(0,b.jsx)(e.Textarea,{name:"notes",defaultValue:a?.notes??""})})})]})}a.s(["NewCreatorButton",0,function({managers:a,teams:g,secondary:j,label:k}){let[l,m]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(e.Button,{variant:j?"secondary":"primary",onClick:()=>m(!0),children:[(0,b.jsx)(d.Plus,{className:"h-4 w-4"})," ",k??"Nouveau créateur"]}),(0,b.jsx)(f.Modal,{open:l,onClose:()=>m(!1),title:"Nouveau créateur",wide:!0,children:(0,b.jsxs)("form",{action:h,className:"space-y-4",children:[(0,b.jsx)(i,{managers:a,teams:g}),(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:()=>m(!1),children:"Annuler"}),(0,b.jsx)(e.Button,{type:"submit",children:"Créer le créateur"})]})]})})]})}],8997)}];

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