Submit
Path:
~
/
home
/
contenidosenred
/
www
/
ondemand
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
File Content:
image-carousel.024943eec9daaabea9ff.bundle.js
/*! elementor - v3.4.6 - 19-10-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["image-carousel"],{ /***/ "../assets/dev/js/frontend/handlers/image-carousel.js": /*!************************************************************!*\ !*** ../assets/dev/js/frontend/handlers/image-carousel.js ***! \************************************************************/ /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; class ImageCarousel extends elementorModules.frontend.handlers.SwiperBase { getDefaultSettings() { return { selectors: { carousel: '.elementor-image-carousel-wrapper', slideContent: '.swiper-slide' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); const elements = { $swiperContainer: this.$element.find(selectors.carousel) }; elements.$slides = elements.$swiperContainer.find(selectors.slideContent); return elements; } getSwiperSettings() { const elementSettings = this.getElementSettings(), slidesToShow = +elementSettings.slides_to_show || 3, isSingleSlide = 1 === slidesToShow, elementorBreakpoints = elementorFrontend.config.responsive.activeBreakpoints, defaultSlidesToShowMap = { mobile: 1, tablet: isSingleSlide ? 1 : 2 }; const swiperOptions = { slidesPerView: slidesToShow, loop: 'yes' === elementSettings.infinite, speed: elementSettings.speed, handleElementorBreakpoints: true }; swiperOptions.breakpoints = {}; let lastBreakpointSlidesToShowValue = slidesToShow; Object.keys(elementorBreakpoints).reverse().forEach(breakpointName => { // Tablet has a specific default `slides_to_show`. const defaultSlidesToShow = defaultSlidesToShowMap[breakpointName] ? defaultSlidesToShowMap[breakpointName] : lastBreakpointSlidesToShowValue; swiperOptions.breakpoints[elementorBreakpoints[breakpointName].value] = { slidesPerView: +elementSettings['slides_to_show_' + breakpointName] || defaultSlidesToShow, slidesPerGroup: +elementSettings['slides_to_scroll_' + breakpointName] || 1 }; lastBreakpointSlidesToShowValue = +elementSettings['slides_to_show_' + breakpointName] || defaultSlidesToShow; }); if ('yes' === elementSettings.autoplay) { swiperOptions.autoplay = { delay: elementSettings.autoplay_speed, disableOnInteraction: 'yes' === elementSettings.pause_on_interaction }; } if (isSingleSlide) { swiperOptions.effect = elementSettings.effect; if ('fade' === elementSettings.effect) { swiperOptions.fadeEffect = { crossFade: true }; } } else { swiperOptions.slidesPerGroup = +elementSettings.slides_to_scroll || 1; } if (elementSettings.image_spacing_custom) { swiperOptions.spaceBetween = elementSettings.image_spacing_custom.size; } const showArrows = 'arrows' === elementSettings.navigation || 'both' === elementSettings.navigation, showDots = 'dots' === elementSettings.navigation || 'both' === elementSettings.navigation; if (showArrows) { swiperOptions.navigation = { prevEl: '.elementor-swiper-button-prev', nextEl: '.elementor-swiper-button-next' }; } if (showDots) { swiperOptions.pagination = { el: '.swiper-pagination', type: 'bullets', clickable: true }; } return swiperOptions; } async onInit(...args) { super.onInit(...args); const elementSettings = this.getElementSettings(); if (!this.elements.$swiperContainer.length || 2 > this.elements.$slides.length) { return; } const Swiper = elementorFrontend.utils.swiper; this.swiper = await new Swiper(this.elements.$swiperContainer, this.getSwiperSettings()); // Expose the swiper instance in the frontend this.elements.$swiperContainer.data('swiper', this.swiper); if ('yes' === elementSettings.pause_on_hover) { this.togglePauseOnHover(true); } } updateSwiperOption(propertyName) { const elementSettings = this.getElementSettings(), newSettingValue = elementSettings[propertyName], params = this.swiper.params; // Handle special cases where the value to update is not the value that the Swiper library accepts. switch (propertyName) { case 'image_spacing_custom': params.spaceBetween = newSettingValue.size || 0; break; case 'autoplay_speed': params.autoplay.delay = newSettingValue; break; case 'speed': params.speed = newSettingValue; break; } this.swiper.update(); } getChangeableProperties() { return { pause_on_hover: 'pauseOnHover', autoplay_speed: 'delay', speed: 'speed', image_spacing_custom: 'spaceBetween' }; } onElementChange(propertyName) { const changeableProperties = this.getChangeableProperties(); if (changeableProperties[propertyName]) { // 'pause_on_hover' is implemented by the handler with event listeners, not the Swiper library. if ('pause_on_hover' === propertyName) { const newSettingValue = this.getElementSettings('pause_on_hover'); this.togglePauseOnHover('yes' === newSettingValue); } else { this.updateSwiperOption(propertyName); } } } onEditSettingsChange(propertyName) { if ('activeItemIndex' === propertyName) { this.swiper.slideToLoop(this.getEditSettings('activeItemIndex') - 1); } } } exports.default = ImageCarousel; /***/ }) }]); //# sourceMappingURL=image-carousel.024943eec9daaabea9ff.bundle.js.map
Edit
Rename
Chmod
Delete
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