import{L as n,j as i,al as l}from"./vendor-mui-core-CDEc-eG6.js";import{m as d,r as c}from"./vendor-react-DX7tU9aY.js";import{aa as u,b1 as h}from"./vendor-ux-PO0jFgJf.js";import g from"./index-DwaBdfGv.js";import"./vendor-utils-_C9URqjS.js";import"./vendor-hooks-Ca2cSNuD.js";import"./index-CgSpL7jz.js";import"./vendor-arcblock-BVQTtbN-.js";import"./confirm-DhDNorbd.js";import"./index-DBs9Ljax.js";import"./session-BEf_KK-i.js";import"./did-address-BNKX5oDP.js";import"./empty-spinner-2fS4Uw6Z.js";import"./bundle-avatar-CQ5BcuIS.js";import"./shorten-label-CEQFm35C.js";import"./list-header-BKicL0iB.js";import"./click-to-copy-BmatCVrP.js";import"./question-mark-circle.svg-B0bcUgC5.js";import"./useSetState-CUbypYGT.js";import"./engine-BmJsBu5Z.js";import"./api-Bo6lutcq.js";import"./vendor-mui-x-Bk3pxGrO.js";import"./react-beautiful-dnd.esm-C9wbL7D6.js";import"./raf-schd.esm-BZ-2sjAE.js";import"./wait-connect-2CirehkG.js";import"./get-safe-url-uxJSMQTF.js";import"./item-Cno3GsuG.js";import"./delete-confirm-C0N4quT9.js";import"./index-BObu-fIz.js";import"./index-B0cxyMBd.js";import"./purify.es-HRjpPm7y.js";import"./index-BUN3g9UB.js";const r=new URL(window.location.href),s=r.searchParams.get("mode")==="dialog",w=s?"":r.searchParams.get("padding")||"";function T(){const{t:p}=u(),{componentDid:o}=d(),a=n(t=>t.breakpoints.down("md")),m=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const e=i.jsx(g,{padding:w,initUrl:r});return s?i.jsx(h,{className:"studio-dialog",title:p("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:a?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:m,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(l,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:e})}):e}export{T as default};
