Submit
Path:
~
/
home
/
contenidosenred
/
public_html
/
OD
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
File Content:
video.509fb0e07b97e0f603d7.bundle.js
/*! elementor - v3.4.6 - 19-10-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["video"],{ /***/ "../assets/dev/js/frontend/handlers/video.js": /*!***************************************************!*\ !*** ../assets/dev/js/frontend/handlers/video.js ***! \***************************************************/ /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; class Video extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { imageOverlay: '.elementor-custom-embed-image-overlay', video: '.elementor-video', videoIframe: '.elementor-video-iframe' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); return { $imageOverlay: this.$element.find(selectors.imageOverlay), $video: this.$element.find(selectors.video), $videoIframe: this.$element.find(selectors.videoIframe) }; } handleVideo() { if (this.getElementSettings('lightbox')) { return; } if ('youtube' === this.getElementSettings('video_type')) { this.apiProvider.onApiReady(apiObject => { this.elements.$imageOverlay.remove(); this.prepareYTVideo(apiObject, true); }); } else { this.elements.$imageOverlay.remove(); this.playVideo(); } } playVideo() { if (this.elements.$video.length) { // this.youtubePlayer exists only for YouTube videos, and its play function is different. if (this.youtubePlayer) { this.youtubePlayer.playVideo(); } else { this.elements.$video[0].play(); } return; } const $videoIframe = this.elements.$videoIframe, lazyLoad = $videoIframe.data('lazy-load'); if (lazyLoad) { $videoIframe.attr('src', lazyLoad); } $videoIframe[0].src = this.apiProvider.getAutoplayURL($videoIframe[0].src); } async animateVideo() { const lightbox = await elementorFrontend.utils.lightbox; lightbox.setEntranceAnimation(this.getCurrentDeviceSetting('lightbox_content_animation')); } async handleAspectRatio() { const lightbox = await elementorFrontend.utils.lightbox; lightbox.setVideoAspectRatio(this.getElementSettings('aspect_ratio')); } async hideLightbox() { const lightbox = await elementorFrontend.utils.lightbox; lightbox.getModal().hide(); } prepareYTVideo(YT, onOverlayClick) { const elementSettings = this.getElementSettings(), playerOptions = { videoId: this.videoID, events: { onReady: () => { if (elementSettings.mute) { this.youtubePlayer.mute(); } if (elementSettings.autoplay || onOverlayClick) { this.youtubePlayer.playVideo(); } }, onStateChange: event => { if (event.data === YT.PlayerState.ENDED && elementSettings.loop) { this.youtubePlayer.seekTo(elementSettings.start || 0); } } }, playerVars: { controls: elementSettings.controls ? 1 : 0, rel: elementSettings.rel ? 1 : 0, playsinline: elementSettings.play_on_mobile ? 1 : 0, modestbranding: elementSettings.modestbranding ? 1 : 0, autoplay: elementSettings.autoplay ? 1 : 0, start: elementSettings.start, end: elementSettings.end } }; // To handle CORS issues, when the default host is changed, the origin parameter has to be set. if (elementSettings.yt_privacy) { playerOptions.host = 'https://www.youtube-nocookie.com'; playerOptions.origin = window.location.hostname; } this.youtubePlayer = new YT.Player(this.elements.$video[0], playerOptions); } bindEvents() { this.elements.$imageOverlay.on('click', this.handleVideo.bind(this)); } onInit() { super.onInit(); const elementSettings = this.getElementSettings(); if (elementorFrontend.utils[elementSettings.video_type]) { this.apiProvider = elementorFrontend.utils[elementSettings.video_type]; } else { this.apiProvider = elementorFrontend.utils.baseVideoLoader; } if ('youtube' !== elementSettings.video_type) { // Currently the only API integration in the Video widget is for the YT API return; } this.videoID = this.apiProvider.getVideoIDFromURL(elementSettings.youtube_url); // If there is an image overlay, the YouTube video prep method will be triggered on click if (!this.videoID) { return; } // If the user is using an image overlay, loading the API happens on overlay click instead of on init. if (elementSettings.show_image_overlay && elementSettings.image_overlay.url) { return; } if (elementSettings.lazy_load) { this.intersectionObserver = elementorModules.utils.Scroll.scrollObserver({ callback: event => { if (event.isInViewport) { this.intersectionObserver.unobserve(this.elements.$video.parent()[0]); this.apiProvider.onApiReady(apiObject => this.prepareYTVideo(apiObject)); } } }); // We observe the parent, since the video container has a height of 0. this.intersectionObserver.observe(this.elements.$video.parent()[0]); return; } // When Optimized asset loading is set to off, the video type is set to 'Youtube', and 'Privacy Mode' is set // to 'On', there might be a conflict with other videos that are loaded WITHOUT privacy mode, such as a // video bBackground in a section. In these cases, to avoid the conflict, a timeout is added to postpone the // initialization of the Youtube API object. if (!elementorFrontend.config.experimentalFeatures['e_optimized_assets_loading']) { setTimeout(() => { this.apiProvider.onApiReady(apiObject => this.prepareYTVideo(apiObject)); }, 0); } else { this.apiProvider.onApiReady(apiObject => this.prepareYTVideo(apiObject)); } } onElementChange(propertyName) { if (0 === propertyName.indexOf('lightbox_content_animation')) { this.animateVideo(); return; } const isLightBoxEnabled = this.getElementSettings('lightbox'); if ('lightbox' === propertyName && !isLightBoxEnabled) { this.hideLightbox(); return; } if ('aspect_ratio' === propertyName && isLightBoxEnabled) { this.handleAspectRatio(); } } } exports.default = Video; /***/ }) }]); //# sourceMappingURL=video.509fb0e07b97e0f603d7.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