import{J as n,j as i,ak as l}from"./vendor-mui-core-CnXrAOs3.js";import{j as d,r as c}from"./vendor-react-Dvs43sk9.js";import{V as u,b as h}from"./vendor-ux-IiQnod3w.js";import g from"./index-BQF4zMs8.js";import"./vendor-utils-cJEl_UEd.js";import"./vendor-hooks-CjESGRlR.js";import"./lottie-web-4koyQiv_.js";import"./index-sNHCLgAE.js";import"./vendor-arcblock-CuFtPveO.js";import"./confirm-CR8be0u2.js";import"./index-DBs9Ljax.js";import"./session-BAD0lxQk.js";import"./did-address-QgOhyegQ.js";import"./empty-spinner-DYOzicuy.js";import"./bundle-avatar-CTtvmGO1.js";import"./shorten-label-RqvHqcC3.js";import"./list-header-BE2kzda_.js";import"./click-to-copy-BOJgIYli.js";import"./question-mark-circle.svg-B4stD6SS.js";import"./useSetState-DFuQZPPV.js";import"./engine-DPn0LHHl.js";import"./api-Btn0Tp3W.js";import"./vendor-mui-x-bJ5idfMH.js";import"./react-beautiful-dnd.esm-Ci2FESra.js";import"./raf-schd.esm-CHNehTG3.js";import"./wait-connect-DiO80nu-.js";import"./get-safe-url-DpalOXcM.js";import"./item-BnTXSpRf.js";import"./delete-confirm-DhJd_sYk.js";import"./index-FpxO_1p7.js";import"./index-De-Vgsb6.js";import"./index-D5TNmV3K.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};
