Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/page_editor/app/components/HideSidebarButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react","../../common/hooks/useId","../contexts/StoreContext","../thunks/switchSidebarPanel"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function HideSidebarButton(){const e=(0,c.useDispatch)(),t=(0,d.useId)(),a=(0,c.useSelector)((e=>e.sidebar.hidden)),i=(0,l.useMemo)((()=>{var e;const t=(null===(e=Liferay.Browser)||void 0===e?void 0:e.isMac())?"⌘":"Ctrl";return getOpenMenuTooltip(t)}),[]);return l.default.createElement(l.default.Fragment,null,l.default.createElement(r.ClayButtonWithIcon,{"aria-labelledby":t,className:"btn btn-secondary","data-title":n.ReactDOMServer.renderToString(i),"data-title-set-as-html":!0,displayType:"secondary",onClick:()=>e((0,o.default)({hidden:!a})),size:"sm",symbol:a?"hidden":"view",type:"button"}),l.default.createElement("div",{className:"sr-only",id:t},i))};var r=a("@frontend-taglib-clay$clayui/button"),n=a("@liferay/frontend-js-react-web"),l=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 a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),d=a("../../common/hooks/useId"),c=a("../contexts/StoreContext"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("../thunks/switchSidebarPanel"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const getOpenMenuTooltip=e=>l.default.createElement(l.default.Fragment,null,l.default.createElement("span",{className:"d-block"},Liferay.Language.get("toggle-sidebars")),l.default.createElement("kbd",{className:"c-kbd c-kbd-dark mt-1"},l.default.createElement("kbd",{className:"c-kbd"},e),l.default.createElement("span",{className:"c-kbd-separator"},"+"),l.default.createElement("kbd",{className:"c-kbd"},"⇧"),l.default.createElement("span",{className:"c-kbd-separator"},"+"),l.default.createElement("kbd",{className:"c-kbd"},".")))}}));
//# sourceMappingURL=HideSidebarButton.js.map