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)},92436,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)("40d73376dac54d57db943f0c572163db6b69d41e2e",g.callServer,void 0,g.findSourceMapURL,"createCoachingSession"),i=(0,g.createServerReference)("40a45ed048e9edc240ca8196a81e57aa179cd2b3b3",g.callServer,void 0,g.findSourceMapURL,"createTraining");a.s(["NewCoachingButton",0,function({creators:a,coaches:g}){let[i,j]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(e.Button,{onClick:()=>j(!0),children:[(0,b.jsx)(d.Plus,{className:"h-4 w-4"})," Nouvelle session"]}),(0,b.jsx)(f.Modal,{open:i,onClose:()=>j(!1),title:"Nouvelle session de coaching",wide:!0,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:"Créateur",required:!0,children:(0,b.jsxs)(e.Select,{name:"creatorId",defaultValue:"",required:!0,children:[(0,b.jsx)("option",{value:"",children:"— Choisir —"}),a.map(a=>(0,b.jsx)("option",{value:a.id,children:a.label},a.id))]})}),(0,b.jsx)(e.Field,{label:"Coach",children:(0,b.jsxs)(e.Select,{name:"coachId",defaultValue:"",children:[(0,b.jsx)("option",{value:"",children:"— Choisir —"}),g.map(a=>(0,b.jsx)("option",{value:a.id,children:a.label},a.id))]})}),(0,b.jsx)(e.Field,{label:"Date",required:!0,children:(0,b.jsx)(e.Input,{name:"date",type:"date",defaultValue:new Date().toISOString().slice(0,10)})}),(0,b.jsx)(e.Field,{label:"Prochain objectif",children:(0,b.jsx)(e.Input,{name:"nextObjective",placeholder:"Ex : 20 h de LIVE ce mois"})})]}),(0,b.jsx)(e.Field,{label:"Compte rendu",children:(0,b.jsx)(e.Textarea,{name:"report"})}),(0,b.jsx)(e.Field,{label:"Recommandations",children:(0,b.jsx)(e.Textarea,{name:"recommendations"})}),(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:()=>j(!1),children:"Annuler"}),(0,b.jsx)(e.Button,{type:"submit",children:"Enregistrer"})]})]})})]})},"NewTrainingButton",0,function({creators:a}){let[g,h]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(e.Button,{onClick:()=>h(!0),children:[(0,b.jsx)(d.Plus,{className:"h-4 w-4"})," Nouvelle formation"]}),(0,b.jsx)(f.Modal,{open:g,onClose:()=>h(!1),title:"Nouvelle formation",children:(0,b.jsxs)("form",{action:i,className:"space-y-4",children:[(0,b.jsx)(e.Field,{label:"Intitulé",required:!0,children:(0,b.jsx)(e.Input,{name:"title",placeholder:"Ex : Maîtriser les battles",required:!0})}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,b.jsx)(e.Field,{label:"Créateur",children:(0,b.jsxs)(e.Select,{name:"creatorId",defaultValue:"",children:[(0,b.jsx)("option",{value:"",children:"— Tous (collectif) —"}),a.map(a=>(0,b.jsx)("option",{value:a.id,children:a.label},a.id))]})}),(0,b.jsx)(e.Field,{label:"Date",children:(0,b.jsx)(e.Input,{name:"date",type:"date"})})]}),(0,b.jsx)(e.Field,{label:"Notes",children:(0,b.jsx)(e.Textarea,{name:"notes"})}),(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:()=>h(!1),children:"Annuler"}),(0,b.jsx)(e.Button,{type:"submit",children:"Créer"})]})]})})]})}],92436)}];

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