Submit
Path:
~
/
home
/
contenidosenred
/
public_html
/
OD
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
File Content:
toggle.5e8aae8d1c1e897e9b4e.bundle.js
/*! elementor - v3.4.6 - 19-10-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["toggle"],{ /***/ "../assets/dev/js/frontend/handlers/base-tabs.js": /*!*******************************************************!*\ !*** ../assets/dev/js/frontend/handlers/base-tabs.js ***! \*******************************************************/ /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; class baseTabs extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { tablist: '[role="tablist"]', tabTitle: '.elementor-tab-title', tabContent: '.elementor-tab-content' }, classes: { active: 'elementor-active' }, showTabFn: 'show', hideTabFn: 'hide', toggleSelf: true, hidePrevious: true, autoExpand: true, keyDirection: { ArrowLeft: elementorFrontendConfig.is_rtl ? 1 : -1, ArrowUp: -1, ArrowRight: elementorFrontendConfig.is_rtl ? -1 : 1, ArrowDown: 1 } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); return { $tabTitles: this.findElement(selectors.tabTitle), $tabContents: this.findElement(selectors.tabContent) }; } activateDefaultTab() { const settings = this.getSettings(); if (!settings.autoExpand || 'editor' === settings.autoExpand && !this.isEdit) { return; } const defaultActiveTab = this.getEditSettings('activeItemIndex') || 1, originalToggleMethods = { showTabFn: settings.showTabFn, hideTabFn: settings.hideTabFn }; // Toggle tabs without animation to avoid jumping this.setSettings({ showTabFn: 'show', hideTabFn: 'hide' }); this.changeActiveTab(defaultActiveTab); // Return back original toggle effects this.setSettings(originalToggleMethods); } handleKeyboardNavigation(event) { const tab = event.currentTarget, $tabList = jQuery(tab.closest(this.getSettings('selectors').tablist)), $tabs = $tabList.find(this.getSettings('selectors').tabTitle), isVertical = 'vertical' === $tabList.attr('aria-orientation'); switch (event.key) { case 'ArrowLeft': case 'ArrowRight': if (isVertical) { return; } break; case 'ArrowUp': case 'ArrowDown': if (!isVertical) { return; } event.preventDefault(); break; case 'Home': event.preventDefault(); $tabs.first().focus(); return; case 'End': event.preventDefault(); $tabs.last().focus(); return; default: return; } const tabIndex = tab.getAttribute('data-tab') - 1, direction = this.getSettings('keyDirection')[event.key], nextTab = $tabs[tabIndex + direction]; if (nextTab) { nextTab.focus(); } else if (-1 === tabIndex + direction) { $tabs.last().focus(); } else { $tabs.first().focus(); } } deactivateActiveTab(tabIndex) { const settings = this.getSettings(), activeClass = settings.classes.active, activeFilter = tabIndex ? '[data-tab="' + tabIndex + '"]' : '.' + activeClass, $activeTitle = this.elements.$tabTitles.filter(activeFilter), $activeContent = this.elements.$tabContents.filter(activeFilter); $activeTitle.add($activeContent).removeClass(activeClass); $activeTitle.attr({ tabindex: '-1', 'aria-selected': 'false', 'aria-expanded': 'false' }); $activeContent[settings.hideTabFn](); $activeContent.attr('hidden', 'hidden'); } activateTab(tabIndex) { const settings = this.getSettings(), activeClass = settings.classes.active, $requestedTitle = this.elements.$tabTitles.filter('[data-tab="' + tabIndex + '"]'), $requestedContent = this.elements.$tabContents.filter('[data-tab="' + tabIndex + '"]'), animationDuration = 'show' === settings.showTabFn ? 0 : 400; $requestedTitle.add($requestedContent).addClass(activeClass); $requestedTitle.attr({ tabindex: '0', 'aria-selected': 'true', 'aria-expanded': 'true' }); $requestedContent[settings.showTabFn](animationDuration, () => elementorFrontend.elements.$window.trigger('resize')); $requestedContent.removeAttr('hidden'); } isActiveTab(tabIndex) { return this.elements.$tabTitles.filter('[data-tab="' + tabIndex + '"]').hasClass(this.getSettings('classes.active')); } bindEvents() { this.elements.$tabTitles.on({ keydown: event => { // Support for old markup that includes an `<a>` tag in the tab if (jQuery(event.target).is('a') && `Enter` === event.key) { event.preventDefault(); } // We listen to keydowon event for these keys in order to prevent undesired page scrolling if (['End', 'Home', 'ArrowUp', 'ArrowDown'].includes(event.key)) { this.handleKeyboardNavigation(event); } }, keyup: event => { switch (event.key) { case 'ArrowLeft': case 'ArrowRight': this.handleKeyboardNavigation(event); break; case 'Enter': case 'Space': event.preventDefault(); this.changeActiveTab(event.currentTarget.getAttribute('data-tab')); break; } }, click: event => { event.preventDefault(); this.changeActiveTab(event.currentTarget.getAttribute('data-tab')); } }); } onInit(...args) { super.onInit(...args); this.activateDefaultTab(); } onEditSettingsChange(propertyName) { if ('activeItemIndex' === propertyName) { this.activateDefaultTab(); } } changeActiveTab(tabIndex) { const isActiveTab = this.isActiveTab(tabIndex), settings = this.getSettings(); if ((settings.toggleSelf || !isActiveTab) && settings.hidePrevious) { this.deactivateActiveTab(); } if (!settings.hidePrevious && isActiveTab) { this.deactivateActiveTab(tabIndex); } if (!isActiveTab) { this.activateTab(tabIndex); } } } exports.default = baseTabs; /***/ }), /***/ "../assets/dev/js/frontend/handlers/toggle.js": /*!****************************************************!*\ !*** ../assets/dev/js/frontend/handlers/toggle.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.default = void 0; var _baseTabs = _interopRequireDefault(__webpack_require__(/*! ./base-tabs */ "../assets/dev/js/frontend/handlers/base-tabs.js")); class Toggle extends _baseTabs.default { getDefaultSettings() { const defaultSettings = super.getDefaultSettings(); return { ...defaultSettings, showTabFn: 'slideDown', hideTabFn: 'slideUp', hidePrevious: false, autoExpand: 'editor' }; } } exports.default = Toggle; /***/ }) }]); //# sourceMappingURL=toggle.5e8aae8d1c1e897e9b4e.bundle.js.map
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
06ad222c8807f0a951da.bundle.js
279653 bytes
0644
accordion.5824c4bc9e26d54f2918.bundle.js
7463 bytes
0644
accordion.839112600fade8979d16.bundle.min.js
3690 bytes
0644
admin-feedback.js
30269 bytes
0644
admin-feedback.min.js
7903 bytes
0644
admin-top-bar.js
206966 bytes
0644
admin-top-bar.min.js
40374 bytes
0644
admin.js
234646 bytes
0644
admin.min.js
63104 bytes
0644
alert.124c2442b8a696597f9e.bundle.min.js
623 bytes
0644
alert.f04b9d16129bc8aa4cdc.bundle.js
1139 bytes
0644
app-loader.js
341651 bytes
0644
app-loader.min.js
85010 bytes
0644
app-packages.js
743124 bytes
0644
app-packages.min.js
196021 bytes
0644
app.js
707280 bytes
0644
app.min.js
180452 bytes
0644
beta-tester.js
108670 bytes
0644
beta-tester.min.js
26153 bytes
0644
common-modules.js
409289 bytes
0644
common-modules.min.js
103206 bytes
0644
common.js
659348 bytes
0644
common.min.js
174239 bytes
0644
counter.1bf6011c2ab9506880c2.bundle.min.js
911 bytes
0644
counter.b452600865ffc51a6ea0.bundle.js
1632 bytes
0644
d44a57c594ce7771dd50.bundle.min.js
61427 bytes
0644
editor-document.js
975225 bytes
0644
editor-document.min.js
280218 bytes
0644
editor-modules.js
281867 bytes
0644
editor-modules.min.js
73993 bytes
0644
editor.js
1669873 bytes
0644
editor.min.js
593852 bytes
0644
elementor-admin-bar.js
141097 bytes
0644
elementor-admin-bar.min.js
32240 bytes
0644
frontend-modules.js
34839 bytes
0644
frontend-modules.min.js
14002 bytes
0644
frontend.js
87820 bytes
0644
frontend.min.js
36657 bytes
0644
gutenberg.js
31583 bytes
0644
gutenberg.min.js
8849 bytes
0644
image-carousel.024943eec9daaabea9ff.bundle.js
5835 bytes
0644
image-carousel.f9dc73796adfb21bb945.bundle.min.js
2715 bytes
0644
kit-library.d3688acfaab28676a99c.bundle.js
178777 bytes
0644
kit-library.e61c291a7b6bbc946eeb.bundle.min.js
53678 bytes
0644
lightbox.543c64a356c981ed0346.bundle.min.js
18446 bytes
0644
lightbox.adc17e3be937246718ee.bundle.js
32886 bytes
0644
new-template.js
4659 bytes
0644
new-template.min.js
1864 bytes
0644
preloaded-modules.js
63351 bytes
0644
preloaded-modules.min.js
32273 bytes
0644
progress.4079971c3240c226b858.bundle.min.js
654 bytes
0644
progress.5306267e0436c8de4985.bundle.js
1237 bytes
0644
tabs.b7bd957161644e810d53.bundle.js
7390 bytes
0644
tabs.cd05b61e107cc58d1be9.bundle.min.js
3652 bytes
0644
text-editor.9efe2dca043f0f618897.bundle.min.js
1355 bytes
0644
text-editor.a8434931ecdcd5ff7589.bundle.js
2844 bytes
0644
text-path.15daa9710b97d5cf86b9.bundle.min.js
2780 bytes
0644
text-path.9b3ece1b692d34d012b5.bundle.js
6841 bytes
0644
toggle.1aca60f44e355cb43256.bundle.min.js
3717 bytes
0644
toggle.5e8aae8d1c1e897e9b4e.bundle.js
7494 bytes
0644
video.505da250f982d8f15187.bundle.min.js
3324 bytes
0644
video.509fb0e07b97e0f603d7.bundle.js
6634 bytes
0644
webpack.runtime.js
15213 bytes
0644
webpack.runtime.min.js
4879 bytes
0644
wp-audio.2332b719d144261993a3.bundle.min.js
348 bytes
0644
wp-audio.de344657de8b792ed9b0.bundle.js
777 bytes
0644
N4ST4R_ID | Naxtarrr