(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var l in n)Object.defineProperty(t,l,{enumerable:!0,get:n[l]});let a=e.r(32120),i=e.r(92245),o=e.r(35326)},31157,e=>{"use strict";var r=e.i(43476),t=e.i(71645);let n=(0,e.i(56420).default)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]);var l=e.i(38286),a=e.i(19367),i=e.i(95187);let o=(0,i.createServerReference)("40b2950202e96952279cbe14b3859f30bd930a8ee2",i.callServer,void 0,i.findSourceMapURL,"generateReport");e.s(["GenerateReportButton",0,function({period:e}){let[i,c]=(0,t.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Button,{onClick:()=>c(!0),children:[(0,r.jsx)(n,{className:"h-4 w-4"})," Générer un rapport"]}),(0,r.jsx)(a.Modal,{open:i,onClose:()=>c(!1),title:"Générer un rapport",children:(0,r.jsxs)("form",{action:o,className:"space-y-4",children:[(0,r.jsx)(l.Field,{label:"Type",children:(0,r.jsxs)(l.Select,{name:"type",defaultValue:"RAPPORT",children:[(0,r.jsx)("option",{value:"RAPPORT",children:"Rapport général"}),(0,r.jsx)("option",{value:"CA",children:"Rapport CA"}),(0,r.jsx)("option",{value:"LIVE",children:"Rapport LIVE"}),(0,r.jsx)("option",{value:"RECRUTEMENT",children:"Rapport recrutement"}),(0,r.jsx)("option",{value:"PRODUCTION",children:"Rapport production"})]})}),(0,r.jsx)(l.Field,{label:"Période",children:(0,r.jsx)(l.Input,{name:"period",type:"month",defaultValue:e})}),(0,r.jsx)(l.Field,{label:"Intitulé (optionnel)",children:(0,r.jsx)(l.Input,{name:"title",placeholder:"Laissez vide pour un titre automatique"})}),(0,r.jsxs)("div",{className:"flex justify-end gap-2 border-t border-ink-700 pt-4",children:[(0,r.jsx)(l.Button,{type:"button",variant:"ghost",onClick:()=>c(!1),children:"Annuler"}),(0,r.jsx)(l.Button,{type:"submit",children:"Générer"})]})]})})]})}],31157)}]);