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