import{r as e,j as t,M as r}from"./vendor--leCAzSo.js";import{aC as o}from"./index-DZuQva-j.js";import{v as s,w as a}from"./ca9c256b9-7brFE8T2.js";function n(e){switch(e){case"scheduled_trigger":return"scheduled";case"force_run_trigger":return"manual";case"fire_routine":return"api";case"github_webhook_trigger":return"webhook";default:return null}}const i=Object.freeze(Object.defineProperty({__proto__:null,CodeShareReportModal:function({isOpen:n,onClose:i,shareId:u,organizationUuid:d}){const[l,c]=e.useState(),[p,m]=e.useState(),[g,f]=e.useState(),[_,h]=e.useState(),[S,j]=e.useState(!1),{mutateAsync:O}=((e,t)=>a(`/api/organizations/${e}/code/shares/${t}/report`,"POST",{enabled:!!t&&!!e}))(d,u);return t.jsx(s,{modalSize:"md",isOpen:n,onClose:i,hasCloseButton:!0,title:t.jsx("span",{className:"font-claude-response font-medium",children:t.jsx(r,{defaultMessage:"Report session",id:"Nk3r7n0fmm"})}),children:t.jsx(o,{category:l,setCategory:c,notes:p,setNotes:m,reporterEmail:g,setReporterEmail:f,reporterName:_,setReporterName:h,optOutOfTraining:S,setOptOutOfTraining:j,onSubmit:async()=>{await O({notes:p,category:l,reporter_name:_,reporter_email:g,opt_out_of_training:S}),c(void 0),m(void 0),h(void 0),f(void 0),j(!1),i(!0)},onClose:()=>i(!1)})})}},Symbol.toStringTag,{value:"Module"}));export{i as C,n as s};
