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,aJ as h}from"./vendor-ux-DfSgTRg5.js";import g from"./index-YLno1Cst.js";import"./vendor-utils-drLlzTVq.js";import"./vendor-hooks-cYMUGE4V.js";import"./lottie-web-4koyQiv_.js";import"./index-BHa1_Bjz.js";import"./vendor-arcblock-CPCSE54a.js";import"./confirm-DTx9f3Ke.js";import"./index-DBs9Ljax.js";import"./session-Cm8j8XeZ.js";import"./did-address-DqhneWXa.js";import"./empty-spinner-BYDonf35.js";import"./bundle-avatar-DVOaAXid.js";import"./shorten-label-C4py9TLA.js";import"./list-header-Cl3jykCe.js";import"./click-to-copy-B2HIKJMV.js";import"./question-mark-circle.svg-CByEVDhb.js";import"./useSetState-L-f8mSga.js";import"./engine-BzngvK61.js";import"./api-C_w0YD2j.js";import"./vendor-mui-x-CQc01l4r.js";import"./react-beautiful-dnd.esm-89LKdt03.js";import"./raf-schd.esm-XXBRsnmf.js";import"./wait-connect-Be1Dmt0P.js";import"./get-safe-url-CqAaHb9L.js";import"./item-B3LlwO_A.js";import"./delete-confirm-HiRqbh9-.js";import"./index-Bxd7kK_i.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};
