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