Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/components/ShortcutModal",["module","exports","require","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react"],(function(e,t,a){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onCloseModal:t}){const{observer:a}=(0,l.useModal)({onClose:()=>t()});return o.default.createElement(l.default,{containerProps:{className:"cadmin"},observer:a,size:"md"},o.default.createElement(l.default.Header,null,Liferay.Language.get("keyboard-shortcuts")),o.default.createElement(l.default.Body,null,o.default.createElement("p",{className:"sheet-subtitle text-secondary"},Liferay.Language.get("fragments")),o.default.createElement(c,{description:Liferay.Language.get("move-fragment-up"),keyCombinations:["↑"]}),o.default.createElement(c,{description:Liferay.Language.get("move-fragment-down"),keyCombinations:["↓"]}),o.default.createElement(c,{description:Liferay.Language.get("duplicate-fragment"),keyCombinations:[e,"D"]}),o.default.createElement(c,{description:Liferay.Language.get("delete-fragment"),keyCombinations:["⌫"]}),o.default.createElement(c,{description:Liferay.Language.get("save-composition-for-containers-and-grids"),keyCombinations:[e,"S"]}),o.default.createElement("p",{className:"sheet-subtitle text-secondary"},Liferay.Language.get("selection")),o.default.createElement(c,{description:Liferay.Language.get("select-parent"),keyCombinations:["⇧","Enter"]}),o.default.createElement("p",{className:"sheet-subtitle text-secondary"},Liferay.Language.get("view")),o.default.createElement(c,{description:Liferay.Language.get("toggle-sidebars"),keyCombinations:[e,"⇧","."]})))};var n,l=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("@frontend-taglib-clay$clayui/modal")),o=(r=a("liferay!frontend-js-react-web$react"))&&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=(null===(n=Liferay.Browser)||void 0===n?void 0:n.isMac())?"⌘":"Ctrl";function c({description:e,keyCombinations:t}){return o.default.createElement("div",{className:"align-items-center d-flex mb-3"},o.default.createElement("div",{className:"page-editor__shorcut-modal__shorcut text-right"},o.default.createElement("kbd",{className:"c-kbd text-secondary"},t.map(((e,a)=>o.default.createElement(o.default.Fragment,{key:a},o.default.createElement("kbd",{className:"c-kbd"},e),a<t.length-1?o.default.createElement("span",{className:"c-kbd-separator"},"+"):null))))),o.default.createElement("p",{className:"mb-0 ml-3 page-editor__shorcut-modal__shorcut-description text-3 text-weight-semi-bold"},e))}}}));
//# sourceMappingURL=ShortcutModal.js.map