import e from"@babel/runtime/helpers/defineProperty";import r from"react-dom";import t from"react-dom/server";import o from"react";import*as a from"@krakenjs/zoid/dist/zoid.frameworks";import{ServerStyleSheets as i}from"@material-ui/core/styles";import n from"../AppHeader/AppHeader.js";import p from"../../LoadingIndicator/Loader.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";var l="data-corva-app-iframe",s=a.create({tag:"dc-isolated-app-zoid-component",url:new URL("DevCenterIsolatedAppPage.html",window.location.origin).href,dimensions:{width:"100%",height:"100%"},prerenderTemplate:function(e){var r=e.doc,o=e.props,a=new i,l=t.renderToStaticMarkup(a.collect(m("div",{style:{padding:12,color:"white",fontFamily:"Roboto, sans-serif"},children:[d(n,{app:o.app}),d("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:d(p,{})})]}))),s=r.createElement("html"),c=r.createElement("head");c.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />';var f=r.createElement("style");f.innerHTML=a.toString(),c.appendChild(f);var h=r.createElement("body");return h.style.margin=0,h.innerHTML=l,s.appendChild(c),s.appendChild(h),s},attributes:{iframe:e({},"data-corva-app-iframe",!0)}}).driver("react",{React:o,ReactDOM:r});export{l as APP_IFRAME_ATTRIBUTE,s as DevCenterAppZoidComponent};
