| 1 |
/******/ (function() { // webpackBootstrap |
| 2 |
/******/ "use strict"; |
| 3 |
/******/ // The require scope |
| 4 |
/******/ var __webpack_require__ = {}; |
| 5 |
/******/ |
| 6 |
/************************************************************************/ |
| 7 |
/******/ /* webpack/runtime/make namespace object */ |
| 8 |
/******/ !function() { |
| 9 |
/******/ // define __esModule on exports |
| 10 |
/******/ __webpack_require__.r = function(exports) { |
| 11 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| 12 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 13 |
/******/ } |
| 14 |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 15 |
/******/ }; |
| 16 |
/******/ }(); |
| 17 |
/******/ |
| 18 |
/************************************************************************/ |
| 19 |
var __webpack_exports__ = {}; |
| 20 |
// ESM COMPAT FLAG |
| 21 |
__webpack_require__.r(__webpack_exports__); |
| 22 |
|
| 23 |
;// CONCATENATED MODULE: external "wp.i18n" |
| 24 |
var external_wp_i18n_namespaceObject = wp.i18n; |
| 25 |
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.icons" |
| 26 |
var external_UNSTABLE_elementorPackages_icons_namespaceObject = __UNSTABLE__elementorPackages.icons; |
| 27 |
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.topBar" |
| 28 |
var external_UNSTABLE_elementorPackages_topBar_namespaceObject = __UNSTABLE__elementorPackages.topBar; |
| 29 |
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.v1Adapters" |
| 30 |
var external_UNSTABLE_elementorPackages_v1Adapters_namespaceObject = __UNSTABLE__elementorPackages.v1Adapters; |
| 31 |
;// CONCATENATED MODULE: ./packages/help/src/hooks/use-keyboard-shortcuts-action-props.ts |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
function useKeyboardShortcutsActionProps() { |
| 36 |
return { |
| 37 |
icon: external_UNSTABLE_elementorPackages_icons_namespaceObject.KeyboardIcon, |
| 38 |
title: (0,external_wp_i18n_namespaceObject.__)('Keyboard Shortcuts', 'elementor'), |
| 39 |
onClick: () => (0,external_UNSTABLE_elementorPackages_v1Adapters_namespaceObject.runCommand)('shortcuts/open') |
| 40 |
}; |
| 41 |
} |
| 42 |
;// CONCATENATED MODULE: ./packages/help/src/init.ts |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
function init() { |
| 48 |
registerTopBarMenuItems(); |
| 49 |
} |
| 50 |
function registerTopBarMenuItems() { |
| 51 |
external_UNSTABLE_elementorPackages_topBar_namespaceObject.mainMenu.registerAction({ |
| 52 |
name: 'open-keyboard-shortcuts', |
| 53 |
group: 'default', |
| 54 |
priority: 40, |
| 55 |
// After user preferences. |
| 56 |
useProps: useKeyboardShortcutsActionProps |
| 57 |
}); |
| 58 |
external_UNSTABLE_elementorPackages_topBar_namespaceObject.utilitiesMenu.registerLink({ |
| 59 |
name: 'open-help-center', |
| 60 |
priority: 20, |
| 61 |
// After Finder. |
| 62 |
useProps: () => { |
| 63 |
return { |
| 64 |
title: (0,external_wp_i18n_namespaceObject.__)('Help', 'elementor'), |
| 65 |
href: 'https://go.elementor.com/editor-top-bar-learn/', |
| 66 |
icon: external_UNSTABLE_elementorPackages_icons_namespaceObject.HelpIcon, |
| 67 |
target: '_blank' |
| 68 |
}; |
| 69 |
} |
| 70 |
}); |
| 71 |
} |
| 72 |
;// CONCATENATED MODULE: ./packages/help/src/index.ts |
| 73 |
|
| 74 |
init(); |
| 75 |
(window.__UNSTABLE__elementorPackages = window.__UNSTABLE__elementorPackages || {}).help = __webpack_exports__; |
| 76 |
/******/ })() |
| 77 |
; |