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-KtPBvlG0.js";import g from"./index-DzDWMabe.js";import"./vendor-utils-BqKQizRf.js";import"./vendor-hooks-DpqqC65c.js";import"./lottie-web-4koyQiv_.js";import"./index-DGg3AL9l.js";import"./vendor-arcblock-DRfhQ9Yl.js";import"./confirm-Dul9DyCY.js";import"./index-DBs9Ljax.js";import"./session-Bavobyzn.js";import"./did-address-DpdRECuJ.js";import"./empty-spinner-BYDonf35.js";import"./bundle-avatar-BSv_e0lp.js";import"./shorten-label-C4py9TLA.js";import"./list-header-Cl3jykCe.js";import"./click-to-copy-03_3P1nz.js";import"./question-mark-circle.svg-CByEVDhb.js";import"./useSetState-L-f8mSga.js";import"./engine-BaNtB6sW.js";import"./api-2a4FTO9k.js";import"./vendor-mui-x-CQc01l4r.js";import"./react-beautiful-dnd.esm-By1RE6ef.js";import"./raf-schd.esm-XXBRsnmf.js";import"./wait-connect-BwtwczC4.js";import"./get-safe-url-CqIO9371.js";import"./item-D8-oGTEp.js";import"./delete-confirm-BT4RGlre.js";import"./index-Ck7gs4Oo.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};
