Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/app/components/HideSidebarButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react","../contexts/StoreContext","../thunks/switchSidebarPanel"],(function(e,t,a){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const t=(0,c.useDispatch)(),a=(0,c.useSelector)((e=>e.sidebar.hidden)),r=(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(n.ClayButtonWithIcon,{className:"btn btn-secondary","data-title-set-as-html":!0,displayType:"secondary",onClick:()=>t((0,d.default)({hidden:!a})),small:!0,symbol:a?"hidden":"view",title:l.ReactDOMServer.renderToString(r),type:"button"},Liferay.Language.get("preview"))};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=i();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("../contexts/StoreContext"),d=(r=a("../thunks/switchSidebarPanel"))&&r.__esModule?r:{default:r};function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}const e=e=>o.default.createElement(o.default.Fragment,null,o.default.createElement("div",null,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