Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/plugins/create-layout-page-template-entry-modal/components/CreateLayoutPageTemplateEntryButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/modal","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react","./CreateLayoutPageTemplateEntryModal"],(function(e,t,a){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CreateLayoutPageTemplateEntryButton=void 0;var n=a("@frontend-taglib-clay$clayui/button"),o=a("@frontend-taglib-clay$clayui/modal"),l=a("@liferay/frontend-js-react-web"),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),c=(r=a("./CreateLayoutPageTemplateEntryModal"))&&r.__esModule?r:{default:r};function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}const e=()=>{const e=(0,l.useIsMounted)(),[t,a]=(0,u.useState)(!1),r=(0,u.useCallback)((()=>{e()&&a(!1)}),[e]),{observer:y}=(0,o.useModal)({onClose:r});return u.default.createElement(u.default.Fragment,null,u.default.createElement(n.ClayButtonWithIcon,{className:"btn btn-secondary",displayType:"secondary",onClick:()=>a(!0),small:!0,symbol:"page-template",title:Liferay.Language.get("create-page-template"),type:"button"},Liferay.Language.get("create-page-template")),t&&u.default.createElement(c.default,{observer:y,onClose:r}))};t.CreateLayoutPageTemplateEntryButton=e;var f=e;t.default=f}}));
//# sourceMappingURL=CreateLayoutPageTemplateEntryButton.js.map