module.exports=[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)},11108,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=(0,a.i(64831).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 e=a.i(58918),f=a.i(91645),g=a.i(5050);let h=(0,g.createServerReference)("40b2950202e96952279cbe14b3859f30bd930a8ee2",g.callServer,void 0,g.findSourceMapURL,"generateReport");a.s(["GenerateReportButton",0,function({period:a}){let[g,i]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(e.Button,{onClick:()=>i(!0),children:[(0,b.jsx)(d,{className:"h-4 w-4"})," Générer un rapport"]}),(0,b.jsx)(f.Modal,{open:g,onClose:()=>i(!1),title:"Générer un rapport",children:(0,b.jsxs)("form",{action:h,className:"space-y-4",children:[(0,b.jsx)(e.Field,{label:"Type",children:(0,b.jsxs)(e.Select,{name:"type",defaultValue:"RAPPORT",children:[(0,b.jsx)("option",{value:"RAPPORT",children:"Rapport général"}),(0,b.jsx)("option",{value:"CA",children:"Rapport CA"}),(0,b.jsx)("option",{value:"LIVE",children:"Rapport LIVE"}),(0,b.jsx)("option",{value:"RECRUTEMENT",children:"Rapport recrutement"}),(0,b.jsx)("option",{value:"PRODUCTION",children:"Rapport production"})]})}),(0,b.jsx)(e.Field,{label:"Période",children:(0,b.jsx)(e.Input,{name:"period",type:"month",defaultValue:a})}),(0,b.jsx)(e.Field,{label:"Intitulé (optionnel)",children:(0,b.jsx)(e.Input,{name:"title",placeholder:"Laissez vide pour un titre automatique"})}),(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:()=>i(!1),children:"Annuler"}),(0,b.jsx)(e.Button,{type:"submit",children:"Générer"})]})]})})]})}],11108)}];

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