Liferay.Loader.define("@liferay/template-web@1.0.53/js/ddm_template_editor/components/Button",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Button=function Button({label:e,onClick:t=noop,tooltip:r}){const[i,u]=(0,l.useState)(!1);return l.default.createElement(n.default,{borderless:!0,className:"ddm_template_editor__App-sidebar-button font-weight-semi-bold my-1 py-0 text-left text-truncate w-100",displayType:"unstyled",key:e,onClick:t,size:"sm"},e,l.default.createElement(o.default,{alignPosition:"left",disableScroll:!0,header:e,onShowChange:u,show:i,trigger:l.default.createElement(a.default,{className:"preview-icon",onBlur:()=>u(!1),onFocus:()=>u(!0),onMouseLeave:()=>u(!1),onMouseOver:()=>u(!0),symbol:"info-circle-open",tabIndex:"0"})},l.default.createElement("div",{dangerouslySetInnerHTML:{__html:r}})))};var n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),o=_interopRequireDefault(r("@frontend-taglib-clay$clayui/popover")),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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));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 noop=()=>{}}}));
//# sourceMappingURL=Button.js.map