import{jsxRuntimeExports as o}from"./vendor-react.js";import{Resizable as p}from"./vendor-common.js";import"./_commonjsHelpers.js";import"./spec-template-vendor.js";import"./vendor-antd.js";import"./preload-helper.js";import"./_commonjs-dynamic-modules.js";function j({mounted:i,visible:r,width:n,minWidth:t,maxWidth:e,iframeSrc:s,iframeRef:l,onLoad:a,onResize:f}){return i?o.jsx(p,{size:{width:Math.min(Math.max(n,t),e),height:"100%"},minWidth:t,maxWidth:e,enable:{left:!0,right:!1,top:!1,bottom:!1,topLeft:!1,topRight:!1,bottomLeft:!1,bottomRight:!1},onResize:(d,g,h)=>{const m=Math.min(Math.max(h.getBoundingClientRect().width,t),e);f(m)},style:{borderLeft:"1px solid hsl(var(--border-strong))",background:"hsl(var(--card))",display:r?"flex":"none",flexDirection:"column",height:"100vh",minHeight:0},children:o.jsx("iframe",{ref:l,src:s,title:"Axhub Genie",onLoad:a,style:{border:"none",width:"100%",height:"100%"}})}):null}export{j as default};
