import{j as e}from"./vendor-mui-69397583.js";import{r as t}from"./vendor-react-ece1c85f.js";import{R as d,p as h,q as f,r as x}from"./vendor-devex-33a39e11.js";import"./index-c62ac197.js";import{A as l}from"./AdaptableCard-df7695d6.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";const g=new d({endpointUrl:"https://js.devexpress.com/Demos/Mvc/api/file-manager-file-system-images"}),k=()=>{t.useState(!1),t.useState(!1),t.useState(!1);const[m,a]=t.useState("Widescreen"),[n,s]=t.useState(!1),[o,i]=t.useState({}),p=t.useCallback(r=>{s(!0),i({name:r.file.name,url:r.file.dataItem.url})},[s,i]),u=t.useCallback(()=>{s(!1)},[s]),c=t.useCallback(r=>{a(r.component.option("currentPath"))},[a]);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:e.jsx("div",{className:"lg:flex items-center justify-between",children:e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Documents"})})}),e.jsx(l,{className:"m-6 h-full py-4 px-6 bg-transparent",bodyClass:"h-full",children:e.jsxs(l,{className:"p-4",children:[e.jsx(h,{currentPath:m,fileSystemProvider:g,onSelectedFileOpened:p,onCurrentDirectoryChanged:c,height:950,children:e.jsx(f,{create:!0,copy:!0,move:!0,delete:!0,rename:!0,upload:!0,download:!0})}),e.jsx(x,{maxHeight:600,hideOnOutsideClick:!0,showCloseButton:!0,title:o.name,visible:n,onHiding:u,className:"photo-popup-content",children:e.jsx("img",{src:o.url,className:"photo-popup-image"})})]})})]})};export{k as default};
