Liferay.Loader.define("@liferay/template-web@1.0.51/js/ddm_template_editor/components/App",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./AppContext","./ClosableAlert","./Editor","./Sidebar","./panelIds","./App.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function App({editorAutocompleteData:e={variables:{}},mode:t="text/plain",portletNamespace:r,propertiesViewURL:s,script:c="",showCacheableWarning:u=!1,showPropertiesPanel:f=!1,templateVariableGroups:m=[]}){const[b,_]=(0,i.useState)(f?d.PANEL_IDS.properties:d.PANEL_IDS.elements);return i.default.createElement(n.AppContextProvider,{portletNamespace:r,propertiesViewURL:s,templateVariableGroups:m},i.default.createElement("div",{className:"ddm_template_editor__App"},i.default.createElement("div",{className:(0,a.default)("ddm_template_editor__App-content",{"ddm_template_editor__App-content--sidebar-open":b})},i.default.createElement(l.ClosableAlert,{id:"".concat(r,"-cacheableWarningMessage"),message:Liferay.Language.get("this-template-is-marked-as-cacheable.-avoid-using-code-that-uses-request-handling,-the-cms-query-api,-taglibs,-or-other-dynamic-features.-uncheck-the-cacheable-property-if-dynamic-behavior-is-needed"),visible:u}),i.default.createElement(o.Editor,{autocompleteData:e,initialScript:c,mode:t})),i.default.createElement(p.default,{selectedSidebarPanelId:b,setSelectedSidebarPanelId:_})))};var a=_interopRequireDefault(r("liferay!frontend-js-react-web$classnames")),i=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=a?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(r,i,n):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),n=r("./AppContext"),l=r("./ClosableAlert"),o=r("./Editor"),p=_interopRequireDefault(r("./Sidebar")),d=r("./panelIds");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}r("./App.scss")}}));
//# sourceMappingURL=App.js.map