(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let a=(0,e.i(56420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,a],77071)},95187,(e,a,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i={callServer:function(){return t.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return r.findSourceMapURL}};for(var n in i)Object.defineProperty(l,n,{enumerable:!0,get:i[n]});let t=e.r(32120),r=e.r(92245),s=e.r(35326)},2865,e=>{"use strict";var a=e.i(43476),l=e.i(71645),i=e.i(77071),n=e.i(38286),t=e.i(19367),r=e.i(95187);let s=(0,r.createServerReference)("40821e050208f93d4c1e9f84163f735d59a7d432e6",r.callServer,void 0,r.findSourceMapURL,"createCandidate");function u({values:e}){return(0,a.jsxs)("div",{className:"space-y-3 rounded-lg border border-ink-700 bg-ink-900 p-4",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wider text-ink-400",children:"Scoring candidat (0–100) — score moyen automatique"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:[(0,a.jsx)(n.Field,{label:"Engagement",children:(0,a.jsx)(n.Input,{name:"engagement",type:"number",min:0,max:100,defaultValue:e?.engagement??""})}),(0,a.jsx)(n.Field,{label:"Régularité",children:(0,a.jsx)(n.Input,{name:"regularity",type:"number",min:0,max:100,defaultValue:e?.regularity??""})}),(0,a.jsx)(n.Field,{label:"Qualité d'audience",children:(0,a.jsx)(n.Input,{name:"audienceQuality",type:"number",min:0,max:100,defaultValue:e?.audienceQuality??""})}),(0,a.jsx)(n.Field,{label:"Potentiel LIVE",children:(0,a.jsx)(n.Input,{name:"livePotential",type:"number",min:0,max:100,defaultValue:e?.livePotential??""})}),(0,a.jsx)(n.Field,{label:"Professionnalisme",children:(0,a.jsx)(n.Input,{name:"professionalism",type:"number",min:0,max:100,defaultValue:e?.professionalism??""})}),(0,a.jsx)(n.Field,{label:"Image RM PROD",children:(0,a.jsx)(n.Input,{name:"imageCompatibility",type:"number",min:0,max:100,defaultValue:e?.imageCompatibility??""})}),(0,a.jsx)(n.Field,{label:"Potentiel commercial",children:(0,a.jsx)(n.Input,{name:"commercialPotential",type:"number",min:0,max:100,defaultValue:e?.commercialPotential??""})})]})]})}function d({candidate:e}){return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsx)(n.Field,{label:"Prénom",required:!0,children:(0,a.jsx)(n.Input,{name:"firstName",defaultValue:e?.firstName,required:!0})}),(0,a.jsx)(n.Field,{label:"Nom",required:!0,children:(0,a.jsx)(n.Input,{name:"lastName",defaultValue:e?.lastName,required:!0})}),(0,a.jsx)(n.Field,{label:"Pseudonyme",children:(0,a.jsx)(n.Input,{name:"pseudo",defaultValue:e?.pseudo??""})}),(0,a.jsx)(n.Field,{label:"Email",children:(0,a.jsx)(n.Input,{name:"email",type:"email",defaultValue:e?.email??""})}),(0,a.jsx)(n.Field,{label:"Téléphone",children:(0,a.jsx)(n.Input,{name:"phone",defaultValue:e?.phone??""})}),(0,a.jsx)(n.Field,{label:"Source de recrutement",children:(0,a.jsx)(n.Input,{name:"source",placeholder:"DM, casting, TikTok…",defaultValue:e?.source??""})})]}),(0,a.jsx)(u,{values:e?{engagement:e.engagement,regularity:e.regularity,audienceQuality:e.audienceQuality,livePotential:e.livePotential,professionalism:e.professionalism,imageCompatibility:e.imageCompatibility,commercialPotential:e.commercialPotential}:void 0}),(0,a.jsx)(n.Field,{label:"Notes",children:(0,a.jsx)(n.Textarea,{name:"notes",defaultValue:e?.notes??""})})]})}e.s(["NewCandidateButton",0,function({secondary:e,label:r}){let[u,c]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Button,{variant:e?"secondary":"primary",onClick:()=>c(!0),children:[(0,a.jsx)(i.Plus,{className:"h-4 w-4"})," ",r??"Nouvelle candidature"]}),(0,a.jsx)(t.Modal,{open:u,onClose:()=>c(!1),title:"Nouvelle candidature",wide:!0,children:(0,a.jsxs)("form",{action:s,className:"space-y-4",children:[(0,a.jsx)(d,{}),(0,a.jsxs)("div",{className:"flex justify-end gap-2 border-t border-ink-700 pt-4",children:[(0,a.jsx)(n.Button,{type:"button",variant:"ghost",onClick:()=>c(!1),children:"Annuler"}),(0,a.jsx)(n.Button,{type:"submit",children:"Créer la candidature"})]})]})})]})}],2865)}]);