import e from"@babel/runtime/helpers/defineProperty";import p from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as t}from"react";import i from"prop-types";import s from"classnames";import{AppInfo as a,AppInfoMaximized as o}from"./components/AppInfo.js";import n from"./styles.css.js";import{isNativeDetected as m}from"../../utils/mobileDetect.js";import{Size as d}from"../../constants/sizes.js";import{DevCenterIsolatedApp as c}from"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import{jsxs as l,jsx as f}from"react/jsx-runtime";var u=function(r){var i,u=r.app,C=r.coordinates,v=r.appId,b=r.appSize,h=r.appContainerClassName,A=r.currentUser,I=r.timestamp,g=t(!1),z=p(g,2),j=z[0],N=z[1];return l("div",{className:s(n.embeddedApp,h,(i={},e(i,n.embeddedAppMaximized,j),e(i,n.embeddedAppNative,m),i)),children:[!j&&f(a,{setMaximized:N}),f("div",{className:n.embeddedAppContent,children:f(c,{app:u,appId:v,onSettingsChange:function(){},onSettingChange:function(){},onAppRemove:function(){},coordinates:C,currentUser:A,timestamp:I})},j?d.XLARGE:b),j&&f(o,{setMaximized:N})]})};u.propTypes={appContainerClassName:i.string,appId:i.number,appSize:i.string,app:i.shape({coordinates:i.shape().isRequired}).isRequired,currentUser:i.shape().isRequired,coordinates:i.shape(),timestamp:i.string},u.defaultProps={appContainerClassName:void 0,appId:0,appSize:d.MEDIUM,coordinates:{},timestamp:void 0};var C=r(u);export{C as default};
//# sourceMappingURL=DevCenterEmbeddedApp.js.map
