import{r as e,z as t}from"./vendor-s2rfM_Vj.js";import{D as o,L as s,B as a}from"./t-r-vendor-gn7FMrPE.js";const l="_draw-dialog_1cvfk_1",r=({visible:r,handleVisible:i,iframe:n})=>{const[c,d]=e.useState(!0),[h,m]=e.useState(!1);return t.jsxs(o,{className:l,style:{padding:0,overflow:"auto",backgroundColor:"var(--theme-black7)",backdropFilter:"blur(5px)",height:h?"100vh":"fit-content"},width:h?"100vw":"85vw",visible:r,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:[t.jsx(s,{loading:c,size:"large",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),t.jsx("iframe",{title:"draw",src:n,style:{opacity:.9},width:"100%",height:h?"100%":"640px",loading:"lazy",onLoad:()=>d(!1)}),t.jsx(a,{style:{position:"absolute",right:"20px",bottom:"20px"},onClick:()=>{m(!h)},ghost:!0,variant:"text",shape:"square",icon:t.jsx("i",{className:"ovo fullscreen",style:{fontSize:24}})})]})};export{r as default};
