import{j as n}from"./vendor-react-wBh_31cN.js";import{P as i}from"./PopupWithTitle-DxbkhXOh.js";import{F as a}from"./FileContent-BERXb-dA.js";const l=new Set(["pdf","xls","xlsx","html"]),m=o=>{var e,r;const t=((r=(e=o==null?void 0:o.attributes)==null?void 0:e.name)==null?void 0:r.toLowerCase())??"",s=t.lastIndexOf(".");return s<0?!1:l.has(t.slice(s+1))},x=({titleContent:o,selectedFile:t,isOpen:s,onClose:e})=>{const r=m(t);return n.jsx(i,{titleContent:o,isOpen:s,onClose:e,initiallyFullscreen:r,bodyOverflowHidden:r,children:t&&n.jsx(a,{file:t,editMode:!0})})};export{x as E};
