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