import{u as d,cV as o,aA as c,b_ as u,j as s,C as r,di as m,e as x,dj as p,ak as f}from"./bundle.CHKSNOJF.js";function h(){const[i]=d(),l=o(),{task:e}=l,t=c(),a=u(),n=()=>{f(["tasks"])};return s.jsx(r,{title:i("documents"),children:s.jsxs("div",{className:"flex flex-col items-center w-full px-6 py-2",children:[s.jsx("div",{className:"w-full lg:w-2/3",children:s.jsx(m,{widgetOnly:!0,endpoint:x("/api/v1/tasks/:id/upload",{id:e?.id}),onSuccess:n,disableUpload:!t("edit_task")&&!a(e)})}),s.jsx("div",{className:"w-full lg:w-2/3",children:s.jsx(p,{documents:e?.documents||[],onDocumentDelete:n,disableEditableOptions:!a(e,!0)&&!t("edit_task")})})]})})}export{h as default};
