Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/app/components/ManageAllowedFragmentButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/modal","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./ManageAllowedFragmentModal"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ManageAllowedFragmentButton=void 0;var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),n=r("@frontend-taglib-clay$clayui/modal"),o=r("@liferay/frontend-js-react-web"),l=(_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 n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),i=_interopRequireDefault(r("./ManageAllowedFragmentModal"));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}}const ManageAllowedFragmentButton=({item:e})=>{const t=(0,o.useIsMounted)(),[r,u]=(0,l.useState)(!1),{observer:d,onClose:f}=(0,n.useModal)({onClose:()=>{t()&&u(!1)}});return l.default.createElement(l.default.Fragment,null,r&&l.default.createElement(i.default,{item:e,observer:d,onClose:f}),l.default.createElement(a.default,{displayType:"secondary",onClick:()=>{u(!0)},size:"sm"},Liferay.Language.get("configure-allowed-fragments")))};t.ManageAllowedFragmentButton=ManageAllowedFragmentButton;var u=ManageAllowedFragmentButton;t.default=u}}));
//# sourceMappingURL=ManageAllowedFragmentButton.js.map