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,aU as h}from"./vendor-ux-DMZIE6wA.js";import g from"./index-CI3rRJqa.js";import"./vendor-utils-D5UG1a5Y.js";import"./vendor-hooks-BZ19vVZ7.js";import"./lottie-web-4koyQiv_.js";import"./index-DwyzCfdd.js";import"./vendor-arcblock-DkdOhPyM.js";import"./confirm-Bpit6U3-.js";import"./index-DBs9Ljax.js";import"./session-Des-0R_y.js";import"./did-address-uvYuZ4wv.js";import"./empty-spinner-BYDonf35.js";import"./bundle-avatar-B1jZNqcH.js";import"./shorten-label-C4py9TLA.js";import"./list-header-Cl3jykCe.js";import"./click-to-copy-CwdgHxjB.js";import"./question-mark-circle.svg-CByEVDhb.js";import"./useSetState-L-f8mSga.js";import"./engine-DWk3y4cO.js";import"./api-C75sLx9p.js";import"./vendor-mui-x-CQc01l4r.js";import"./react-beautiful-dnd.esm-zYw9dagY.js";import"./raf-schd.esm-XXBRsnmf.js";import"./wait-connect-D2wPrbE3.js";import"./get-safe-url-gaxZoVzJ.js";import"./item-DfQKizv4.js";import"./delete-confirm-L0HXJtqt.js";import"./index-D24LKXzO.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};
