Liferay.Loader.define("@liferay/template-web@1.0.53/js/modal/openTemplateModal",["module","exports","require","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dom","./TemplateModal"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function openTemplateModal({addTemplateEntryURL:t,itemTypes:a,namespace:d}){dispose();const l=document.createElement("div");l.id=e,document.body.appendChild(l),(0,n.render)(o.default.createElement(r.default,{addTemplateEntryURL:t,itemTypes:a,namespace:d,onModalClose:dispose}),{},l)};var n=a("@liferay/frontend-js-react-web"),o=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),d=_interopRequireDefault(a("liferay!frontend-js-react-web$react-dom")),r=_interopRequireDefault(a("./TemplateModal"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e="templateModal";function dispose(){const t=document.getElementById(e);t&&(d.default.unmountComponentAtNode(t),document.body.removeChild(t))}}}));
//# sourceMappingURL=openTemplateModal.js.map