import{r as e,z as o}from"./vendor-s2rfM_Vj.js";import{D as t,L as s,B as a}from"./t-r-vendor-gn7FMrPE.js";const r="_draw-dialog_1cvfk_1",l=({visible:l,handleVisible:i,iframe:n})=>{const[c,d]=e.useState(!0),[h,p]=e.useState(!1);return o.jsxs(t,{className:r,style:{padding:0,overflow:"auto",backgroundColor:"var(--theme-black7)",backdropFilter:"blur(5px)",height:h?"100vh":"fit-content"},width:h?"100vw":"85vw",visible:l,placement:"center",mode:"modal",onClose:()=>i(!1),preventScrollThrough:!0,showOverlay:!0,theme:"default",footer:!1,header:!1,closeBtn:!1,closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmOnEnter:!1,destroyOnClose:!0,children:[o.jsx(s,{loading:c,size:"large",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),o.jsx("iframe",{title:"draw",src:n,style:{opacity:.9},width:"100%",height:h?"100%":"640px",loading:"lazy",onLoad:()=>d(!1)}),o.jsx(a,{style:{position:"absolute",right:"20px",top:"60px",color:"var(--td-brand-color-5)"},onClick:()=>{p(!h)},ghost:!0,variant:"text",shape:"square",icon:o.jsx("i",{className:"ovo fullscreen",style:{fontSize:24}})})]})};export{l as default};
