import{J as n,j as i,ak as l}from"./vendor-mui-core-DnR6WYuU.js";import{m as d,r as c}from"./vendor-react-CTtPmzVP.js";import{V as u,aK as h}from"./vendor-ux-DTEmWsko.js";import g from"./index-BbN6pA05.js";import"./vendor-utils-CxWN1dT3.js";import"./vendor-hooks-qxhUUbW5.js";import"./lottie-web-4koyQiv_.js";import"./index-BZxsCCR_.js";import"./vendor-arcblock-CIBaEWEy.js";import"./confirm-CkoSEAQA.js";import"./index-DBs9Ljax.js";import"./session-DwQKgNVz.js";import"./did-address-CQO2MAbB.js";import"./empty-spinner-BYDonf35.js";import"./bundle-avatar-BcFO2tQG.js";import"./shorten-label-C4py9TLA.js";import"./list-header-Cl3jykCe.js";import"./click-to-copy-Y_g1bzK1.js";import"./question-mark-circle.svg-CByEVDhb.js";import"./useSetState-L-f8mSga.js";import"./engine-D3NlocNz.js";import"./api-FQQlzPOP.js";import"./vendor-mui-x-CQc01l4r.js";import"./react-beautiful-dnd.esm-BS_uB_lS.js";import"./raf-schd.esm-XXBRsnmf.js";import"./wait-connect-CBmpE7OF.js";import"./get-safe-url-D4mirsKD.js";import"./item-Sc9nk8VE.js";import"./delete-confirm-CRZxojEX.js";import"./index-VFqVu6RK.js";import"./index-B0Q9wWG1.js";import"./index-CRAuhYSg.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(),m=n(t=>t.breakpoints.down("md")),a=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:m?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(l,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:e})}):e}export{T as default};
