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)},91029,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)("40821e050208f93d4c1e9f84163f735d59a7d432e6",g.callServer,void 0,g.findSourceMapURL,"createCandidate");function i({values:a}){return(0,b.jsxs)("div",{className:"space-y-3 rounded-lg border border-ink-700 bg-ink-900 p-4",children:[(0,b.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wider text-ink-400",children:"Scoring candidat (0–100) — score moyen automatique"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:[(0,b.jsx)(e.Field,{label:"Engagement",children:(0,b.jsx)(e.Input,{name:"engagement",type:"number",min:0,max:100,defaultValue:a?.engagement??""})}),(0,b.jsx)(e.Field,{label:"Régularité",children:(0,b.jsx)(e.Input,{name:"regularity",type:"number",min:0,max:100,defaultValue:a?.regularity??""})}),(0,b.jsx)(e.Field,{label:"Qualité d'audience",children:(0,b.jsx)(e.Input,{name:"audienceQuality",type:"number",min:0,max:100,defaultValue:a?.audienceQuality??""})}),(0,b.jsx)(e.Field,{label:"Potentiel LIVE",children:(0,b.jsx)(e.Input,{name:"livePotential",type:"number",min:0,max:100,defaultValue:a?.livePotential??""})}),(0,b.jsx)(e.Field,{label:"Professionnalisme",children:(0,b.jsx)(e.Input,{name:"professionalism",type:"number",min:0,max:100,defaultValue:a?.professionalism??""})}),(0,b.jsx)(e.Field,{label:"Image RM PROD",children:(0,b.jsx)(e.Input,{name:"imageCompatibility",type:"number",min:0,max:100,defaultValue:a?.imageCompatibility??""})}),(0,b.jsx)(e.Field,{label:"Potentiel commercial",children:(0,b.jsx)(e.Input,{name:"commercialPotential",type:"number",min:0,max:100,defaultValue:a?.commercialPotential??""})})]})]})}function j({candidate:a}){return(0,b.jsxs)("div",{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",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",children:(0,b.jsx)(e.Input,{name:"pseudo",defaultValue:a?.pseudo??""})}),(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:"Source de recrutement",children:(0,b.jsx)(e.Input,{name:"source",placeholder:"DM, casting, TikTok…",defaultValue:a?.source??""})})]}),(0,b.jsx)(i,{values:a?{engagement:a.engagement,regularity:a.regularity,audienceQuality:a.audienceQuality,livePotential:a.livePotential,professionalism:a.professionalism,imageCompatibility:a.imageCompatibility,commercialPotential:a.commercialPotential}:void 0}),(0,b.jsx)(e.Field,{label:"Notes",children:(0,b.jsx)(e.Textarea,{name:"notes",defaultValue:a?.notes??""})})]})}a.s(["NewCandidateButton",0,function({secondary:a,label:g}){let[i,k]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(e.Button,{variant:a?"secondary":"primary",onClick:()=>k(!0),children:[(0,b.jsx)(d.Plus,{className:"h-4 w-4"})," ",g??"Nouvelle candidature"]}),(0,b.jsx)(f.Modal,{open:i,onClose:()=>k(!1),title:"Nouvelle candidature",wide:!0,children:(0,b.jsxs)("form",{action:h,className:"space-y-4",children:[(0,b.jsx)(j,{}),(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:()=>k(!1),children:"Annuler"}),(0,b.jsx)(e.Button,{type:"submit",children:"Créer la candidature"})]})]})})]})}],91029)}];

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