PATH:
home
/
letacommog
/
gdiags.fr
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.2.1 - 21-03-2021 */ (self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["nav-menu"],{ /***/ "../modules/nav-menu/assets/js/frontend/handlers/nav-menu.js": /*!*******************************************************************!*\ !*** ../modules/nav-menu/assets/js/frontend/handlers/nav-menu.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; __webpack_require__(/*! core-js/modules/es6.array.find */ "../node_modules/core-js/modules/es6.array.find.js"); var _default = elementorModules.frontend.handlers.Base.extend({ stretchElement: null, getDefaultSettings: function getDefaultSettings() { return { selectors: { menu: '.elementor-nav-menu', anchorLink: '.elementor-nav-menu--main .elementor-item-anchor', dropdownMenu: '.elementor-nav-menu__container.elementor-nav-menu--dropdown', menuToggle: '.elementor-menu-toggle' } }; }, getDefaultElements: function getDefaultElements() { var selectors = this.getSettings('selectors'), elements = {}; elements.$menu = this.$element.find(selectors.menu); elements.$anchorLink = this.$element.find(selectors.anchorLink); elements.$dropdownMenu = this.$element.find(selectors.dropdownMenu); elements.$dropdownMenuFinalItems = elements.$dropdownMenu.find('.menu-item:not(.menu-item-has-children) > a'); elements.$menuToggle = this.$element.find(selectors.menuToggle); return elements; }, bindEvents: function bindEvents() { if (!this.elements.$menu.length) { return; } this.elements.$menuToggle.on('click', this.toggleMenu.bind(this)); if (this.getElementSettings('full_width')) { this.elements.$dropdownMenuFinalItems.on('click', this.toggleMenu.bind(this, false)); } elementorFrontend.addListenerOnce(this.$element.data('model-cid'), 'resize', this.stretchMenu); }, initStretchElement: function initStretchElement() { this.stretchElement = new elementorModules.frontend.tools.StretchElement({ element: this.elements.$dropdownMenu }); }, toggleMenu: function toggleMenu(show) { var isDropdownVisible = this.elements.$menuToggle.hasClass('elementor-active'); if ('boolean' !== typeof show) { show = !isDropdownVisible; } this.elements.$menuToggle.attr('aria-expanded', show); this.elements.$dropdownMenu.attr('aria-hidden', !show); this.elements.$menuToggle.toggleClass('elementor-active', show); if (show && this.getElementSettings('full_width')) { this.stretchElement.stretch(); } }, followMenuAnchors: function followMenuAnchors() { var self = this; self.elements.$anchorLink.each(function () { if (location.pathname === this.pathname && '' !== this.hash) { self.followMenuAnchor(jQuery(this)); } }); }, followMenuAnchor: function followMenuAnchor($element) { var anchorSelector = $element[0].hash; var offset = -300, $anchor; try { // `decodeURIComponent` for UTF8 characters in the hash. $anchor = jQuery(decodeURIComponent(anchorSelector)); } catch (e) { return; } if (!$anchor.length) { return; } if (!$anchor.hasClass('elementor-menu-anchor')) { var halfViewport = jQuery(window).height() / 2; offset = -$anchor.outerHeight() + halfViewport; } elementorFrontend.waypoint($anchor, function (direction) { if ('down' === direction) { $element.addClass('elementor-item-active'); } else { $element.removeClass('elementor-item-active'); } }, { offset: '50%', triggerOnce: false }); elementorFrontend.waypoint($anchor, function (direction) { if ('down' === direction) { $element.removeClass('elementor-item-active'); } else { $element.addClass('elementor-item-active'); } }, { offset: offset, triggerOnce: false }); }, stretchMenu: function stretchMenu() { if (this.getElementSettings('full_width')) { this.stretchElement.stretch(); this.elements.$dropdownMenu.css('top', this.elements.$menuToggle.outerHeight()); } else { this.stretchElement.reset(); } }, onInit: function onInit() { elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments); if (!this.elements.$menu.length) { return; } this.elements.$menu.smartmenus({ subIndicatorsText: '<i class="fa"></i>', subIndicatorsPos: 'append', subMenusMaxWidth: '1000px' }); this.initStretchElement(); this.stretchMenu(); if (!elementorFrontend.isEditMode()) { this.followMenuAnchors(); } }, onElementChange: function onElementChange(propertyName) { if ('full_width' === propertyName) { this.stretchMenu(); } } }); exports.default = _default; /***/ }) }]); //# sourceMappingURL=nav-menu.dc9954b5562a6a182c99.bundle.js.map
[+]
..
[-] paypal-button.9ac8fdd1db8d93856f8c.bundle.js
[edit]
[-] admin.min.js
[edit]
[-] code-highlight.06d7a5e9fbe8f2efe321.bundle.min.js
[edit]
[-] nav-menu.dc9954b5562a6a182c99.bundle.js
[edit]
[-] search-form.69e3551a94b182780302.bundle.min.js
[edit]
[-] animated-headline.ffa916792bcf2c45e7a9.bundle.min.js
[edit]
[-] lottie.742f4469ba922d17ef1d.bundle.js
[edit]
[-] slides.ea0f13fa2ea9e84a1f96.bundle.min.js
[edit]
[-] table-of-contents.03f9760fade302bfc0c0.bundle.min.js
[edit]
[-] nav-menu.6da75281e733e539a9ad.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] media-carousel.4c0492dde4e7dcd5cc9d.bundle.js
[edit]
[-] frontend.js
[edit]
[-] code-highlight.9f87a4e2747cd21130f2.bundle.js
[edit]
[-] archive-posts.b062a48bde002bd8c754.bundle.min.js
[edit]
[-] form.847b51cf479577c6dc6f.bundle.min.js
[edit]
[-] media-carousel.8ee12224819ea050cc42.bundle.min.js
[edit]
[-] editor.min.js
[edit]
[-] share-buttons.1bf001f1c2ad8e7e3a5a.bundle.js
[edit]
[-] popup.578217b3d93e8efb2299.bundle.js
[edit]
[-] archive-posts.ad6245c6d6e01e236d1a.bundle.js
[edit]
[-] woocommerce-menu-cart.a0ca3c5b1b1fbd100eae.bundle.min.js
[edit]
[-] screenshot.min.js
[edit]
[-] jszip.vendor.a954fe8948bbfe21cab3.bundle.js
[edit]
[-] jszip.vendor.9ec53381c344ee903f3e.bundle.min.js
[edit]
[-] carousel.e80b3f4e4b78fd24fdd4.bundle.min.js
[edit]
[-] carousel.bb4c8274de83e045027f.bundle.js
[edit]
[-] preloaded-elements-handlers.min.js
[edit]
[-] portfolio.c54e5852cc449fe5168e.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] screenshot.js
[edit]
[-] gallery.4c2c83a64e2161749262.bundle.min.js
[edit]
[-] share-buttons.c2d8b4d6b9df24794248.bundle.min.js
[edit]
[-] app.min.js
[edit]
[-] countdown.4c25b87e5f1c19d92d7f.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] social.3d098e67c2733abd1e00.bundle.js
[edit]
[-] slides.a4197378419486376c60.bundle.js
[edit]
[-] app.js
[edit]
[-] table-of-contents.c73a15dc06cc2ea59a06.bundle.js
[edit]
[-] gallery.d7dd275ca3eddcfb9d65.bundle.js
[edit]
[-] lottie.5d87915e3481174579d5.bundle.min.js
[edit]
[-] preview.js
[edit]
[-] popup.502330d9929af9beeefd.bundle.min.js
[edit]
[-] preloaded-elements-handlers.js
[edit]
[-] custom-code.js
[edit]
[-] posts.8f785f458ba247e45862.bundle.min.js
[edit]
[-] jszip.vendor.9ec53381c344ee903f3e.bundle.min.js.LICENSE.txt
[edit]
[-] form.890758b5f6f66d5a2727.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] admin.js
[edit]
[-] editor.js
[edit]
[-] countdown.fdb92c684b8e3ab88c82.bundle.js
[edit]
[-] paypal-button.ce9726107b3eb7048751.bundle.min.js
[edit]
[-] animated-headline.e95c45b7d46e0a612b7d.bundle.js
[edit]
[-] portfolio.89b8364078e0e54495a6.bundle.js
[edit]
[-] qunit-tests.min.js
[edit]
[-] posts.d74d398bbd5332eec332.bundle.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] search-form.d3512be4aee1d4294a3f.bundle.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] custom-code.min.js
[edit]
[-] social.5de12fdcabc2a791f24f.bundle.min.js
[edit]
[-] elements-handlers.js
[edit]
[-] woocommerce-menu-cart.3c822317e2d150bd7400.bundle.js
[edit]
[-] qunit-tests.js
[edit]
[-] f7edf46ee23c04733c35.bundle.js
[edit]