X7ROOT File Manager
Current Path:
/home/digixlto/public_html/wp-content/plugins/elementor/assets/js
home
/
digixlto
/
public_html
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
📁
..
📄
0bc573f40b9959c6c2b7.bundle.min.js
(21.7 KB)
📄
197583acd246fea0e25d.bundle.js
(10.96 KB)
📄
3d410a099008411bb011.bundle.js
(61.89 KB)
📄
45f1ae567e48fe3da9b0.bundle.min.js
(226 B)
📄
6a19e86dd8c1f9165dbe.bundle.js
(43.85 KB)
📄
8277989eebcfba278cb0.bundle.min.js
(35.96 KB)
📄
9f88a0d716a691c2448a.bundle.min.js
(12.62 KB)
📄
accordion.8b0db5058afeb74622f5.bundle.min.js
(3.65 KB)
📄
accordion.b9a0ab19c7c872c405d7.bundle.js
(7.74 KB)
📄
admin-feedback.js
(4.46 KB)
📄
admin-feedback.min.js
(1.87 KB)
📄
admin-feedback.strings.js
(1.43 KB)
📄
admin-modules.js
(39.01 KB)
📄
admin-modules.min.js
(15.37 KB)
📄
admin-modules.min.js.LICENSE.txt
(163 B)
📄
admin-modules.strings.js
(1.43 KB)
📄
admin-notifications.js
(74.3 KB)
📄
admin-notifications.min.js
(14.24 KB)
📄
admin-notifications.strings.js
(100 B)
📄
admin-top-bar.js
(67.71 KB)
📄
admin-top-bar.min.js
(11.86 KB)
📄
admin-top-bar.strings.js
(320 B)
📄
admin.js
(116.61 KB)
📄
admin.min.js
(52.6 KB)
📄
admin.min.js.LICENSE.txt
(163 B)
📄
admin.strings.js
(1.43 KB)
📄
ai-admin.js
(1.89 MB)
📄
ai-admin.min.js
(595.55 KB)
📄
ai-admin.min.js.LICENSE.txt
(525 B)
📄
ai-admin.strings.js
(0 B)
📄
ai-gutenberg.js
(2.02 MB)
📄
ai-gutenberg.min.js
(624.06 KB)
📄
ai-gutenberg.min.js.LICENSE.txt
(686 B)
📄
ai-gutenberg.strings.js
(191 B)
📄
ai-layout.js
(491.64 KB)
📄
ai-layout.min.js
(184.84 KB)
📄
ai-layout.min.js.LICENSE.txt
(163 B)
📄
ai-layout.strings.js
(21.27 KB)
📄
ai-media-library.js
(2 MB)
📄
ai-media-library.min.js
(618.82 KB)
📄
ai-media-library.min.js.LICENSE.txt
(686 B)
📄
ai-media-library.strings.js
(138 B)
📄
ai-unify-product-images.js
(2 MB)
📄
ai-unify-product-images.min.js
(616.09 KB)
📄
ai-unify-product-images.min.js.LICENSE.txt
(686 B)
📄
ai-unify-product-images.strings.js
(45 B)
📄
ai.js
(2.06 MB)
📄
ai.min.js
(642.28 KB)
📄
ai.min.js.LICENSE.txt
(686 B)
📄
ai.strings.js
(21.27 KB)
📄
alert.42cc1d522ef5c60bf874.bundle.min.js
(618 B)
📄
alert.fd509aa768e7b35a8e32.bundle.js
(1.37 KB)
📄
announcements-app.js
(114.21 KB)
📄
announcements-app.min.js
(33.98 KB)
📄
announcements-app.min.js.LICENSE.txt
(163 B)
📄
announcements-app.strings.js
(35 B)
📄
app-loader.js
(255.1 KB)
📄
app-loader.min.js
(88.12 KB)
📄
app-loader.strings.js
(45.18 KB)
📄
app-packages.js
(356.9 KB)
📄
app-packages.min.js
(121.22 KB)
📄
app-packages.min.js.LICENSE.txt
(163 B)
📄
app-packages.strings.js
(45.18 KB)
📄
app.js
(1.34 MB)
📄
app.min.js
(502 KB)
📄
app.min.js.LICENSE.txt
(163 B)
📄
app.strings.js
(45.18 KB)
📄
atomic-widgets-editor.js
(133.15 KB)
📄
atomic-widgets-editor.min.js
(51.62 KB)
📄
atomic-widgets-editor.strings.js
(260 B)
📄
b2e8e6071c9bc14c04e4.bundle.js
(41.47 KB)
📄
b96d70044d0d67c2df19.bundle.min.js
(22.87 KB)
📄
beta-tester.js
(20.92 KB)
📄
beta-tester.min.js
(8.62 KB)
📄
beta-tester.strings.js
(69 B)
📄
c13d205fa26f8af1ce7c.bundle.js
(111.43 KB)
📄
checklist.js
(159.36 KB)
📄
checklist.min.js
(49.76 KB)
📄
checklist.min.js.LICENSE.txt
(163 B)
📄
checklist.strings.js
(551 B)
📄
cloud-library-screenshot.js
(86.91 KB)
📄
cloud-library-screenshot.min.js
(32.2 KB)
📄
cloud-library-screenshot.min.js.LICENSE.txt
(163 B)
📄
cloud-library-screenshot.strings.js
(0 B)
📄
common-modules.js
(399.66 KB)
📄
common-modules.min.js
(154.07 KB)
📄
common-modules.strings.js
(431 B)
📄
common.js
(1.25 MB)
📄
common.min.js
(506.36 KB)
📄
common.min.js.LICENSE.txt
(163 B)
📄
common.strings.js
(431 B)
📄
contact-buttons.086261d3e9c4d8037686.bundle.js
(14.5 KB)
📄
contact-buttons.e98d0220ce8c38404e7e.bundle.min.js
(8.46 KB)
📄
container-converter.js
(50.75 KB)
📄
container-converter.min.js
(17.85 KB)
📄
container-converter.strings.js
(208 B)
📄
container-editor-handlers.48e4e3303dfb31ec6cf5.bundle.js
(17.87 KB)
📄
container-editor-handlers.d0dce3d8a908f0ef65fe.bundle.min.js
(9.36 KB)
📄
counter.12335f45aaa79d244f24.bundle.min.js
(906 B)
📄
counter.7310c276bc7865a3d438.bundle.js
(1.85 KB)
📄
d52aa05c75af56327744.bundle.js
(14.14 KB)
📄
d67ddd6f08b08392c42f.bundle.js
(14.7 KB)
📄
daecdcc50702fd1d72f1.bundle.js
(24.92 KB)
📄
daedc6797eaad5c82711.bundle.min.js
(3.96 KB)
📄
dev-tools.js
(23.26 KB)
📄
dev-tools.min.js
(7.4 KB)
📄
dev-tools.strings.js
(0 B)
📄
e-home-screen.js
(244.06 KB)
📄
e-home-screen.min.js
(84.21 KB)
📄
e-home-screen.strings.js
(519 B)
📄
e-react-promotions.js
(121.61 KB)
📄
e-react-promotions.min.js
(38.71 KB)
📄
e-react-promotions.strings.js
(25 B)
📄
e-wc-product-editor.js
(104.48 KB)
📄
e-wc-product-editor.min.js
(16.74 KB)
📄
e-wc-product-editor.min.js.LICENSE.txt
(160 B)
📄
e-wc-product-editor.strings.js
(41 B)
📄
e1cb4d726bb59646c677.bundle.min.js
(5.27 KB)
📄
e459c6c89c0c0899c850.bundle.js
(89.84 KB)
📄
e883e6638ef93bfd3204.bundle.js
(1.13 KB)
📄
editor-document.js
(69.9 KB)
📄
editor-document.min.js
(25.24 KB)
📄
editor-document.strings.js
(17.09 KB)
📄
editor-environment-v2.js
(600 B)
📄
editor-environment-v2.min.js
(206 B)
📄
editor-environment-v2.strings.js
(0 B)
📄
editor-interactions.js
(25.63 KB)
📄
editor-interactions.min.js
(9.51 KB)
📄
editor-interactions.strings.js
(0 B)
📄
editor-loader-v1.js
(332 B)
📄
editor-loader-v1.min.js
(48 B)
📄
editor-loader-v1.strings.js
(0 B)
📄
editor-loader-v2.js
(821 B)
📄
editor-loader-v2.min.js
(400 B)
📄
editor-loader-v2.strings.js
(0 B)
📄
editor-modules.js
(118.09 KB)
📄
editor-modules.min.js
(48.35 KB)
📄
editor-modules.min.js.LICENSE.txt
(163 B)
📄
editor-modules.strings.js
(17.09 KB)
📄
editor-notifications.js
(84.57 KB)
📄
editor-notifications.min.js
(17.97 KB)
📄
editor-notifications.strings.js
(100 B)
📄
editor-one-admin.js
(635 B)
📄
editor-one-admin.min.js
(275 B)
📄
editor-one-admin.strings.js
(0 B)
📄
editor-one-menu.js
(28.05 KB)
📄
editor-one-menu.min.js
(11.96 KB)
📄
editor-one-menu.strings.js
(0 B)
📄
editor-one-sidebar-navigation.js
(217.75 KB)
📄
editor-one-sidebar-navigation.min.js
(44.94 KB)
📄
editor-one-sidebar-navigation.min.js.LICENSE.txt
(160 B)
📄
editor-one-sidebar-navigation.strings.js
(0 B)
📄
editor-v4-opt-in-alphachip.js
(58.41 KB)
📄
editor-v4-opt-in-alphachip.min.js
(8.31 KB)
📄
editor-v4-opt-in-alphachip.strings.js
(258 B)
📄
editor-v4-opt-in.js
(168.65 KB)
📄
editor-v4-opt-in.min.js
(52.98 KB)
📄
editor-v4-opt-in.min.js.LICENSE.txt
(352 B)
📄
editor-v4-opt-in.strings.js
(2.68 KB)
📄
editor-v4-welcome-opt-in.js
(58.61 KB)
📄
editor-v4-welcome-opt-in.min.js
(8.82 KB)
📄
editor-v4-welcome-opt-in.strings.js
(526 B)
📄
editor.js
(2.84 MB)
📄
editor.min.js
(1.2 MB)
📄
editor.min.js.LICENSE.txt
(352 B)
📄
editor.strings.js
(1.78 KB)
📄
ef2100ac3eda1a957819.bundle.min.js
(4.93 KB)
📄
element-manager-admin.js
(277.77 KB)
📄
element-manager-admin.min.js
(79.1 KB)
📄
element-manager-admin.min.js.LICENSE.txt
(324 B)
📄
element-manager-admin.strings.js
(3.93 KB)
📄
elementor-admin-bar.js
(18.17 KB)
📄
elementor-admin-bar.min.js
(7.14 KB)
📄
elementor-admin-bar.strings.js
(0 B)
📄
floating-bars.740d06d17cea5cebdb61.bundle.min.js
(7.69 KB)
📄
floating-bars.a6e6a043444b62f64f82.bundle.js
(14.64 KB)
📄
floating-elements-modal.js
(34.51 KB)
📄
floating-elements-modal.min.js
(14.67 KB)
📄
floating-elements-modal.strings.js
(43 B)
📄
frontend-modules.js
(258.53 KB)
📄
frontend-modules.min.js
(83.76 KB)
📄
frontend.js
(94.65 KB)
📄
frontend.min.js
(31.13 KB)
📄
gutenberg.js
(7.43 KB)
📄
gutenberg.min.js
(3.95 KB)
📄
gutenberg.strings.js
(1.43 KB)
📄
image-carousel.6167d20b95b33386757b.bundle.min.js
(408 B)
📄
image-carousel.8b25f3674c29b829a867.bundle.js
(905 B)
📄
import-export-admin.js
(14.95 KB)
📄
import-export-admin.min.js
(6.38 KB)
📄
import-export-admin.strings.js
(12.25 KB)
📄
import-export-customization-admin.js
(71.43 KB)
📄
import-export-customization-admin.min.js
(33.44 KB)
📄
import-export-customization-admin.min.js.LICENSE.txt
(163 B)
📄
import-export-customization-admin.strings.js
(11.89 KB)
📄
interactions.js
(14.54 KB)
📄
interactions.min.js
(5.06 KB)
📄
interactions.strings.js
(0 B)
📄
kit-elements-defaults-editor.js
(85.1 KB)
📄
kit-elements-defaults-editor.min.js
(31.95 KB)
📄
kit-elements-defaults-editor.min.js.LICENSE.txt
(163 B)
📄
kit-elements-defaults-editor.strings.js
(687 B)
📄
kit-library.397173c676aee5395d68.bundle.min.js
(169.44 KB)
📄
kit-library.ab2ea8474ed4764e95c7.bundle.js
(356.63 KB)
📄
lightbox.a1f44406e887981f48c7.bundle.js
(48.59 KB)
📄
lightbox.d1799e507b570f6b0496.bundle.min.js
(28.15 KB)
📄
media-hints.js
(11.66 KB)
📄
media-hints.min.js
(5.98 KB)
📄
media-hints.strings.js
(0 B)
📄
nested-accordion.10705241212f7b6c432b.bundle.min.js
(9.51 KB)
📄
nested-accordion.cb37a0fa563959afdb4c.bundle.js
(18.59 KB)
📄
nested-accordion.js
(28.93 KB)
📄
nested-accordion.min.js
(10.6 KB)
📄
nested-accordion.min.js.LICENSE.txt
(163 B)
📄
nested-accordion.strings.js
(0 B)
📄
nested-elements.js
(20.18 KB)
📄
nested-elements.min.js
(6.25 KB)
📄
nested-elements.strings.js
(150 B)
📄
nested-tabs.7a338e6d7e060c473993.bundle.js
(20.66 KB)
📄
nested-tabs.a2401356d329f179475e.bundle.min.js
(11.09 KB)
📄
nested-tabs.js
(28.89 KB)
📄
nested-tabs.min.js
(10.6 KB)
📄
nested-tabs.min.js.LICENSE.txt
(163 B)
📄
nested-tabs.strings.js
(0 B)
📄
nested-title-keyboard-handler.0c2b498e3e0695a1dc19.bundle.js
(7.73 KB)
📄
nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js
(4.22 KB)
📄
new-template.js
(15.59 KB)
📄
new-template.min.js
(6.83 KB)
📄
new-template.strings.js
(34 B)
📄
notes.js
(23.56 KB)
📄
notes.min.js
(8.86 KB)
📄
notes.strings.js
(276 B)
📄
onboarding.8bbe239db42fe0d8d99f.bundle.js
(259.52 KB)
📄
onboarding.dde61701039fc2dad1e9.bundle.min.js
(128.4 KB)
📁
packages
📄
pro-free-trial-popup.js
(57.95 KB)
📄
pro-free-trial-popup.min.js
(8.29 KB)
📄
pro-free-trial-popup.strings.js
(0 B)
📄
pro-install-events.js
(3.05 KB)
📄
pro-install-events.min.js
(1.71 KB)
📄
pro-install-events.strings.js
(0 B)
📄
progress.0ea083b809812c0e3aa1.bundle.min.js
(789 B)
📄
progress.b1057ba870016558bce1.bundle.js
(1.89 KB)
📄
responsive-bar.js
(24.79 KB)
📄
responsive-bar.min.js
(11.28 KB)
📄
responsive-bar.strings.js
(76 B)
📄
section-editor-handlers.53ffedef32043348b99b.bundle.min.js
(1.7 KB)
📄
section-editor-handlers.d65899d232b5339510d7.bundle.js
(3.38 KB)
📄
section-frontend-handlers.c3950c6b190ca134bc8d.bundle.js
(1007 B)
📄
section-frontend-handlers.d85ab872da118940910d.bundle.min.js
(449 B)
📄
shared-editor-handlers.2bd41204c7f5b9ac048f.bundle.js
(2.51 KB)
📄
shared-editor-handlers.a182e3f9ce3b8b1e4b74.bundle.min.js
(1.32 KB)
📄
shared-frontend-handlers.03caa53373b56d3bab67.bundle.min.js
(8.28 KB)
📄
shared-frontend-handlers.3b079824c37a5fe2bdaa.bundle.js
(15.85 KB)
📄
styleguide-app-initiator.js
(36.54 KB)
📄
styleguide-app-initiator.min.js
(13.03 KB)
📄
styleguide-app-initiator.min.js.LICENSE.txt
(163 B)
📄
styleguide-app-initiator.strings.js
(372 B)
📄
styleguide-app.04340244193733d78622.bundle.min.js
(25.6 KB)
📄
styleguide-app.36ecabae74d9b87fc5a8.bundle.js
(66.25 KB)
📄
styleguide.js
(96.64 KB)
📄
styleguide.min.js
(43.88 KB)
📄
styleguide.strings.js
(372 B)
📄
tabs-handler.js
(106.12 KB)
📄
tabs-handler.min.js
(20.12 KB)
📄
tabs-preview-handler.js
(104.9 KB)
📄
tabs-preview-handler.min.js
(19.41 KB)
📄
tabs.18344b05d8d1ea0702bc.bundle.min.js
(3.61 KB)
📄
tabs.40498fa771d612162c53.bundle.js
(7.67 KB)
📄
text-editor.0c9960167105139d27c9.bundle.js
(3 KB)
📄
text-editor.45609661e409413f1cef.bundle.min.js
(1.32 KB)
📄
text-path.b5766aff4e92f7f6c661.bundle.min.js
(26.53 KB)
📄
text-path.b5766aff4e92f7f6c661.bundle.min.js.LICENSE.txt
(188 B)
📄
text-path.eb787fc2b296f56e6e5f.bundle.js
(71.04 KB)
📄
toggle.2a177a3ef4785d3dfbc5.bundle.min.js
(3.68 KB)
📄
toggle.b75e66d2aca6f6ee742e.bundle.js
(7.77 KB)
📄
video.6e96510afa701d1f2ebc.bundle.js
(6.33 KB)
📄
video.86d44e46e43d0807e708.bundle.min.js
(3.15 KB)
📄
web-cli.js
(484.41 KB)
📄
web-cli.min.js
(166.42 KB)
📄
web-cli.min.js.LICENSE.txt
(163 B)
📄
web-cli.strings.js
(0 B)
📄
webpack.runtime.js
(16.21 KB)
📄
webpack.runtime.min.js
(5.54 KB)
📄
wp-audio.0ba9114964acf4c37ca2.bundle.js
(757 B)
📄
wp-audio.c9624cb6e5dc9de86abd.bundle.min.js
(326 B)
📄
youtube-handler.js
(4.69 KB)
📄
youtube-handler.min.js
(1.82 KB)
Editing: editor-one-menu.js
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js": /*!****************************************************************************************!*\ !*** ../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js ***! \****************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FlyoutInteractionHandler = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); var FlyoutInteractionHandler = exports.FlyoutInteractionHandler = /*#__PURE__*/function () { function FlyoutInteractionHandler() { (0, _classCallCheck2.default)(this, FlyoutInteractionHandler); this.activeMenu = null; this.activeParent = null; this.closeTimeout = null; this.lastMousePos = null; this.exitPoint = null; this.mouseMoveHandler = null; } return (0, _createClass2.default)(FlyoutInteractionHandler, [{ key: "handle", value: function handle() { this.setupFlyoutMenus(); this.setupMobileSupport(); } }, { key: "setupFlyoutMenus", value: function setupFlyoutMenus() { var _this = this; var menuItems = document.querySelectorAll('#adminmenu li.elementor-has-flyout'); menuItems.forEach(function (parentLi) { var flyoutMenu = parentLi.querySelector('.elementor-submenu-flyout'); if (!flyoutMenu) { return; } _this.attachHoverEvents(parentLi, flyoutMenu); _this.attachFocusEvents(parentLi, flyoutMenu); _this.attachKeyboardEvents(parentLi, flyoutMenu); }); } }, { key: "attachHoverEvents", value: function attachHoverEvents(parentLi, flyoutMenu) { var _this2 = this; parentLi.addEventListener('mouseenter', function () { // If moving to a new parent that is NOT part of the current active tree if (_this2.activeMenu && !_this2.activeMenu.contains(parentLi) && _this2.activeMenu !== flyoutMenu) { // If we are moving to a sibling or unrelated menu, close the current one immediately // UNLESS we are in the safe zone triangle of the parent if (!_this2.isCursorInSafeZone()) { _this2.hideFlyout(_this2.activeMenu); } } _this2.clearCloseTimeout(); _this2.showFlyout(parentLi, flyoutMenu); }); parentLi.addEventListener('mouseleave', function (event) { _this2.exitPoint = { x: event.clientX, y: event.clientY }; _this2.scheduleClose(parentLi, flyoutMenu); }); flyoutMenu.addEventListener('mouseenter', function () { _this2.clearCloseTimeout(); _this2.stopMouseTracking(); }); flyoutMenu.addEventListener('mouseleave', function (event) { _this2.exitPoint = { x: event.clientX, y: event.clientY }; _this2.scheduleClose(parentLi, flyoutMenu); }); } }, { key: "attachFocusEvents", value: function attachFocusEvents(parentLi, flyoutMenu) { var _this3 = this; var parentLink = parentLi.querySelector(':scope > a'); if (parentLink) { parentLink.addEventListener('focus', function () { _this3.showFlyout(parentLi, flyoutMenu); }); } flyoutMenu.addEventListener('focusout', function (event) { if (!parentLi.contains(event.relatedTarget)) { _this3.hideFlyout(flyoutMenu); } }); } }, { key: "attachKeyboardEvents", value: function attachKeyboardEvents(parentLi, flyoutMenu) { var _this4 = this; parentLi.addEventListener('keydown', function (event) { _this4.handleKeyNavigation(event, parentLi, flyoutMenu); }); } }, { key: "showFlyout", value: function showFlyout(parentLi, flyoutMenu) { if (this.activeMenu && this.activeMenu !== flyoutMenu) { this.hideFlyout(this.activeMenu); } this.exitPoint = null; this.positionFlyout(parentLi, flyoutMenu); flyoutMenu.classList.add('elementor-submenu-flyout-visible'); this.activeMenu = flyoutMenu; this.activeParent = parentLi; } }, { key: "hideFlyout", value: function hideFlyout(flyoutMenu) { flyoutMenu.classList.remove('elementor-submenu-flyout-visible'); if (this.activeMenu === flyoutMenu) { this.activeMenu = null; this.activeParent = null; this.exitPoint = null; this.stopMouseTracking(); } } }, { key: "scheduleClose", value: function scheduleClose(parentLi, flyoutMenu) { var _this5 = this; this.clearCloseTimeout(); this.startMouseTracking(parentLi, flyoutMenu); this.closeTimeout = setTimeout(function () { _this5.checkAndClose(flyoutMenu); }, 300); } }, { key: "checkAndClose", value: function checkAndClose(flyoutMenu) { var _this6 = this; if (!this.activeMenu) { return; } if (!this.isCursorInSafeZone()) { this.hideFlyout(flyoutMenu); } else { this.closeTimeout = setTimeout(function () { _this6.checkAndClose(flyoutMenu); }, 300); } } }, { key: "clearCloseTimeout", value: function clearCloseTimeout() { if (this.closeTimeout) { clearTimeout(this.closeTimeout); this.closeTimeout = null; } } }, { key: "startMouseTracking", value: function startMouseTracking() { var _this7 = this; this.stopMouseTracking(); this.mouseMoveHandler = function (event) { _this7.lastMousePos = { x: event.clientX, y: event.clientY }; }; document.addEventListener('mousemove', this.mouseMoveHandler); } }, { key: "stopMouseTracking", value: function stopMouseTracking() { if (this.mouseMoveHandler) { document.removeEventListener('mousemove', this.mouseMoveHandler); this.mouseMoveHandler = null; } this.lastMousePos = null; } }, { key: "isCursorInSafeZone", value: function isCursorInSafeZone() { if (!this.lastMousePos || !this.activeMenu || !this.activeParent) { return false; } var cursor = this.lastMousePos; var parentRect = this.activeParent.getBoundingClientRect(); if (this.isPointInRect(cursor, parentRect)) { return true; } var flyoutRect = this.activeMenu.getBoundingClientRect(); if (this.isPointInRect(cursor, flyoutRect)) { return true; } return this.isPointInTriangle(cursor, parentRect, flyoutRect); } }, { key: "isPointInRect", value: function isPointInRect(point, rect) { return point.x >= rect.left && point.x <= rect.right && point.y >= rect.top && point.y <= rect.bottom; } }, { key: "isPointInTriangle", value: function isPointInTriangle(cursor, parentRect, flyoutRect) { var exitX = this.exitPoint ? this.exitPoint.x : parentRect.right; var distParent = Math.abs(exitX - parentRect.right); var distFlyout = Math.abs(exitX - flyoutRect.left); var triangleApex, baseTop, baseBottom; // Determine direction: Moving towards Flyout (default) or towards Parent (backwards) if (distParent < distFlyout) { // Moving towards Flyout triangleApex = this.exitPoint || { x: parentRect.right, y: parentRect.top + parentRect.height / 2 }; baseTop = { x: flyoutRect.left, y: flyoutRect.top - 100 }; baseBottom = { x: flyoutRect.left, y: flyoutRect.bottom + 100 }; } else { // Moving towards Parent triangleApex = this.exitPoint || { x: flyoutRect.left, y: flyoutRect.top + flyoutRect.height / 2 }; baseTop = { x: parentRect.right, y: parentRect.top - 100 }; baseBottom = { x: parentRect.right, y: parentRect.bottom + 100 }; } return this.pointInTriangle(cursor, triangleApex, baseTop, baseBottom); } }, { key: "pointInTriangle", value: function pointInTriangle(p, v1, v2, v3) { var sign = function sign(p1, p2, p3) { return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y); }; var d1 = sign(p, v1, v2); var d2 = sign(p, v2, v3); var d3 = sign(p, v3, v1); var hasNeg = 0 > d1 || 0 > d2 || 0 > d3; var hasPos = 0 < d1 || 0 < d2 || 0 < d3; return !(hasNeg && hasPos); } }, { key: "positionFlyout", value: function positionFlyout(parentLi, flyoutMenu) { var windowHeight = window.innerHeight; var flyoutHeight = flyoutMenu.offsetHeight; var parentRect = parentLi.getBoundingClientRect(); var relativeTop = parentRect.top; if (relativeTop + flyoutHeight > windowHeight) { var newTop = windowHeight - flyoutHeight - relativeTop; if (newTop < -relativeTop) { newTop = -relativeTop + 10; } flyoutMenu.style.top = newTop + 'px'; } else { delete flyoutMenu.style.top; } } }, { key: "handleKeyNavigation", value: function handleKeyNavigation(event, parentLi, flyoutMenu) { var allLinks = flyoutMenu.querySelectorAll('a'); var focusedLink = flyoutMenu.querySelector('a:focus'); var currentIndex = Array.from(allLinks).indexOf(focusedLink); var isVisible = flyoutMenu.classList.contains('elementor-submenu-flyout-visible'); switch (event.key) { case 'ArrowRight': if (!isVisible) { var _allLinks$; event.preventDefault(); this.showFlyout(parentLi, flyoutMenu); (_allLinks$ = allLinks[0]) === null || _allLinks$ === void 0 || _allLinks$.focus(); } break; case 'ArrowLeft': if (isVisible) { var _parentLi$querySelect; event.preventDefault(); this.hideFlyout(flyoutMenu); (_parentLi$querySelect = parentLi.querySelector(':scope > a')) === null || _parentLi$querySelect === void 0 || _parentLi$querySelect.focus(); } break; case 'ArrowDown': if (isVisible && currentIndex >= 0) { var _allLinks$nextIndex; event.preventDefault(); var nextIndex = (currentIndex + 1) % allLinks.length; (_allLinks$nextIndex = allLinks[nextIndex]) === null || _allLinks$nextIndex === void 0 || _allLinks$nextIndex.focus(); } break; case 'ArrowUp': if (isVisible && currentIndex >= 0) { var _allLinks$prevIndex; event.preventDefault(); var prevIndex = (currentIndex - 1 + allLinks.length) % allLinks.length; (_allLinks$prevIndex = allLinks[prevIndex]) === null || _allLinks$prevIndex === void 0 || _allLinks$prevIndex.focus(); } break; case 'Escape': if (isVisible) { var _parentLi$querySelect2; event.preventDefault(); this.hideFlyout(flyoutMenu); (_parentLi$querySelect2 = parentLi.querySelector(':scope > a')) === null || _parentLi$querySelect2 === void 0 || _parentLi$querySelect2.focus(); } break; } } }, { key: "setupMobileSupport", value: function setupMobileSupport() { var _this8 = this; if (window.innerWidth > 782) { return; } var menuLinks = document.querySelectorAll('#adminmenu li.elementor-has-flyout > a'); menuLinks.forEach(function (link) { link.addEventListener('click', function (event) { _this8.handleMobileClick(event, link); }); }); document.addEventListener('click', function (event) { _this8.handleDocumentClick(event); }); } }, { key: "handleMobileClick", value: function handleMobileClick(event, link) { var parentLi = link.parentElement; var flyoutMenu = parentLi.querySelector('.elementor-submenu-flyout'); if (!flyoutMenu) { return; } if (parentLi.classList.contains('elementor-flyout-open')) { return; } event.preventDefault(); document.querySelectorAll('#adminmenu li.elementor-has-flyout').forEach(function (item) { item.classList.remove('elementor-flyout-open'); }); parentLi.classList.add('elementor-flyout-open'); } }, { key: "handleDocumentClick", value: function handleDocumentClick(event) { if (!event.target.closest('#adminmenu li.elementor-has-flyout')) { document.querySelectorAll('#adminmenu li.elementor-has-flyout').forEach(function (item) { item.classList.remove('elementor-flyout-open'); }); } } }]); }(); /***/ }), /***/ "../modules/editor-one/assets/js/admin-menu/classes/flyout-menu-renderer.js": /*!**********************************************************************************!*\ !*** ../modules/editor-one/assets/js/admin-menu/classes/flyout-menu-renderer.js ***! \**********************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FlyoutMenuRenderer = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); var FlyoutMenuRenderer = exports.FlyoutMenuRenderer = /*#__PURE__*/function () { function FlyoutMenuRenderer(config) { (0, _classCallCheck2.default)(this, FlyoutMenuRenderer); this.config = config; } return (0, _createClass2.default)(FlyoutMenuRenderer, [{ key: "render", value: function render() { var editorFlyout = this.config.editorFlyout; if (!editorFlyout || !editorFlyout.items || !editorFlyout.items.length) { return false; } var editorLi = this.findEditorMenuItem(); if (!editorLi) { return false; } editorLi.classList.add('elementor-has-flyout'); var editorFlyoutUl = document.createElement('ul'); editorFlyoutUl.className = 'elementor-submenu-flyout elementor-level-3'; editorFlyout.items.forEach(function (item) { var li = document.createElement('li'); li.setAttribute('data-group-id', item.group_id || ''); var a = document.createElement('a'); a.href = item.url; a.textContent = item.label; li.appendChild(a); editorFlyoutUl.appendChild(li); }); editorLi.appendChild(editorFlyoutUl); return true; } }, { key: "findEditorMenuItem", value: function findEditorMenuItem() { var elementorMenu = document.querySelector('#adminmenu a[href="admin.php?page=elementor"]'); if (!elementorMenu) { elementorMenu = document.querySelector('#adminmenu .toplevel_page_elementor'); } if (!elementorMenu) { return null; } var menuItem = elementorMenu.closest('li.menu-top'); if (!menuItem) { return null; } var submenu = menuItem.querySelector('.wp-submenu'); if (!submenu) { return null; } var editorItem = submenu.querySelector('a[href*="elementor-editor"]'); if (!editorItem) { return null; } return editorItem.closest('li'); } }]); }(); /***/ }), /***/ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js": /*!**********************************************************************************!*\ !*** ../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js ***! \**********************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SidebarMenuHandler = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); var SidebarMenuHandler = exports.SidebarMenuHandler = /*#__PURE__*/function () { function SidebarMenuHandler() { (0, _classCallCheck2.default)(this, SidebarMenuHandler); this.elementorMenu = document.querySelector('#toplevel_page_elementor'); } return (0, _createClass2.default)(SidebarMenuHandler, [{ key: "handle", value: function handle() { if (!this.elementorMenu) { return; } this.deactivateOtherMenus(); this.activateElementorMenu(); this.highlightSubmenu(); } }, { key: "deactivateOtherMenus", value: function deactivateOtherMenus() { var _this = this; document.querySelectorAll('#adminmenu li.wp-has-current-submenu').forEach(function (item) { if (item !== _this.elementorMenu) { item.classList.remove('wp-has-current-submenu', 'wp-menu-open', 'selected'); item.classList.add('wp-not-current-submenu'); var link = item.querySelector(':scope > a'); if (link) { link.classList.remove('wp-has-current-submenu', 'wp-menu-open', 'current'); } } }); } }, { key: "activateElementorMenu", value: function activateElementorMenu() { this.elementorMenu.classList.remove('wp-not-current-submenu'); this.elementorMenu.classList.add('wp-has-current-submenu', 'wp-menu-open', 'selected'); var elementorLink = this.elementorMenu.querySelector(':scope > a.menu-top'); if (elementorLink) { elementorLink.classList.add('wp-has-current-submenu', 'wp-menu-open'); } } }, { key: "highlightSubmenu", value: function highlightSubmenu() { var currentUrl = new URL(window.location.href); var searchParams = currentUrl.searchParams; var page = searchParams.get('page'); var targetSlug = 'elementor-editor'; if ('elementor' === page) { targetSlug = 'elementor-editor'; } else if ('e-form-submissions' === page) { targetSlug = 'e-form-submissions'; } else if ('elementor-theme-builder' === page) { targetSlug = 'elementor-theme-builder'; } var submenuItems = this.elementorMenu.querySelectorAll('.wp-submenu li'); submenuItems.forEach(function (item) { var link = item.querySelector('a'); if (!link) { return; } item.classList.remove('current'); link.classList.remove('current'); link.setAttribute('aria-current', ''); var linkUrl = new URL(link.href, window.location.origin); var linkPage = linkUrl.searchParams.get('page'); if (linkPage === targetSlug) { item.classList.add('current'); link.classList.add('current'); link.setAttribute('aria-current', 'page'); } }); } }]); }(); /***/ }), /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": /*!****************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! \****************************************************************/ /***/ ((module) => { function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/createClass.js": /*!*************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! \*************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); } } function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!***********************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \***********************************************************************/ /***/ ((module) => { function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": /*!*************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! \*************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); function toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": /*!***************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! \***************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); function toPropertyKey(t) { var i = toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/typeof.js": /*!********************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! \********************************************************/ /***/ ((module) => { function _typeof(o) { "@babel/helpers - typeof"; return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); } module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. (() => { "use strict"; /*!*********************************************************!*\ !*** ../modules/editor-one/assets/js/admin-menu/app.js ***! \*********************************************************/ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); var _flyoutMenuRenderer = __webpack_require__(/*! ./classes/flyout-menu-renderer */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-menu-renderer.js"); var _sidebarMenuHandler = __webpack_require__(/*! ./classes/sidebar-menu-handler */ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js"); var _flyoutInteractionHandler = __webpack_require__(/*! ./classes/flyout-interaction-handler */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js"); var EditorOneMenu = /*#__PURE__*/function () { function EditorOneMenu() { (0, _classCallCheck2.default)(this, EditorOneMenu); // eslint-disable-next-line no-undef this.config = editorOneMenuConfig || {}; } return (0, _createClass2.default)(EditorOneMenu, [{ key: "init", value: function init() { if (this.isSidebarNavigationActive()) { new _sidebarMenuHandler.SidebarMenuHandler().handle(); return; } this.buildFlyoutMenus(); } }, { key: "isSidebarNavigationActive", value: function isSidebarNavigationActive() { return document.body.classList.contains('e-has-sidebar-navigation'); } }, { key: "buildFlyoutMenus", value: function buildFlyoutMenus() { var renderer = new _flyoutMenuRenderer.FlyoutMenuRenderer(this.config); if (renderer.render()) { new _flyoutInteractionHandler.FlyoutInteractionHandler().handle(); } } }]); }(); var initEditorOneMenu = function initEditorOneMenu() { var editorOneMenu = new EditorOneMenu(); editorOneMenu.init(); }; if ('loading' === document.readyState) { document.addEventListener('DOMContentLoaded', initEditorOneMenu); } else { initEditorOneMenu(); } })(); /******/ })() ; //# sourceMappingURL=editor-one-menu.js.map
Upload File
Create Folder