PATH:
home
/
centosnipponia
/
public_html
/
test
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.7.7 - 20-09-2022 */ "use strict"; (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["video"],{ /***/ "../assets/dev/js/frontend/handlers/video.js": /*!***************************************************!*\ !*** ../assets/dev/js/frontend/handlers/video.js ***! \***************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; __webpack_require__(/*! core-js/modules/es.array.includes.js */ "../node_modules/core-js/modules/es.array.includes.js"); class Video extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { imageOverlay: '.elementor-custom-embed-image-overlay', video: '.elementor-video', videoIframe: '.elementor-video-iframe', playIcon: '.elementor-custom-embed-play' } }; } 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), $playIcon: this.$element.find(selectors.playIcon) }; } 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)); this.elements.$playIcon.on('keydown', event => { const playKeys = [13, // Enter key. 32 // Space bar key. ]; if (playKeys.includes(event.keyCode)) { this.handleVideo(); } }); } 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.633bc52e4366283f5941.bundle.js.map
[+]
..
[-] 74ba26d583b37ca107c9.bundle.min.js
[edit]
[-] accordion.342cf6dd66b8f56ed3e2.bundle.js
[edit]
[-] accordion.be7db2e47c14ed1141fb.bundle.min.js
[edit]
[-] admin-feedback.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] admin.js
[edit]
[-] admin.min.js
[edit]
[-] admin-modules.js
[edit]
[-] admin-modules.min.js
[edit]
[-] admin-top-bar.js
[edit]
[-] admin-top-bar.min.js
[edit]
[-] alert.cbc2a0fee74ee3ed0419.bundle.min.js
[edit]
[-] alert.e48284fab1c1d836b7a9.bundle.js
[edit]
[-] app.js
[edit]
[-] app-loader.js
[edit]
[-] app-loader.min.js
[edit]
[-] app.min.js
[edit]
[-] app.min.js.LICENSE.txt
[edit]
[-] app-packages.js
[edit]
[-] app-packages.min.js
[edit]
[-] beta-tester.js
[edit]
[-] beta-tester.min.js
[edit]
[-] common.js
[edit]
[-] common.min.js
[edit]
[-] common.min.js.LICENSE.txt
[edit]
[-] common-modules.js
[edit]
[-] common-modules.min.js
[edit]
[-] container.0d946aa461a67ecc166a.bundle.min.js
[edit]
[-] container.a98d5868735d029bae47.bundle.js
[edit]
[-] container-converter.js
[edit]
[-] container-converter.min.js
[edit]
[-] counter.02cef29c589e742d4c8c.bundle.min.js
[edit]
[-] counter.e846c2e2fcca06b5908b.bundle.js
[edit]
[-] dev-tools.js
[edit]
[-] dev-tools.min.js
[edit]
[-] edef531b0a4575e08dcf.bundle.js
[edit]
[-] editor-document.js
[edit]
[-] editor-document.min.js
[edit]
[-] editor.js
[edit]
[-] editor.min.js
[edit]
[-] editor.min.js.LICENSE.txt
[edit]
[-] editor-modules.js
[edit]
[-] editor-modules.min.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] frontend.js
[edit]
[-] frontend.min.js
[edit]
[-] frontend-modules.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] gutenberg.js
[edit]
[-] gutenberg.min.js
[edit]
[-] image-carousel.6fe677529cc17d56624d.bundle.js
[edit]
[-] image-carousel.e02695895b33b77d89de.bundle.min.js
[edit]
[-] kit-library.a755800571a4c2914f57.bundle.min.js
[edit]
[-] kit-library.c5429de58e642ebfda4d.bundle.js
[edit]
[-] lightbox.2d166d71ba2a6a9e66fd.bundle.min.js
[edit]
[-] lightbox.9b08bd862235e434184e.bundle.js
[edit]
[-] new-template.js
[edit]
[-] new-template.min.js
[edit]
[-] onboarding.20750adf57c00716064b.bundle.js
[edit]
[-] onboarding.9368fda220b666e6643a.bundle.min.js
[edit]
[-] preloaded-modules.js
[edit]
[-] preloaded-modules.min.js
[edit]
[-] progress.ca55d33bb06cee4e6f02.bundle.min.js
[edit]
[-] progress.d9ed4339cb1bcc2aeb1c.bundle.js
[edit]
[-] tabs.2327c8f9bd0a558456b9.bundle.min.js
[edit]
[-] tabs.785afd5b771f1061821b.bundle.js
[edit]
[-] text-editor.2c35aafbe5bf0e127950.bundle.min.js
[edit]
[-] text-editor.99c79ecbd600142e0f90.bundle.js
[edit]
[-] text-path.8da48d7e728e0777ffff.bundle.js
[edit]
[-] text-path.b1be1b4899a9ff20217b.bundle.min.js
[edit]
[-] toggle.2ddb14677716fc476a4a.bundle.js
[edit]
[-] toggle.933918840481dcc64242.bundle.min.js
[edit]
[-] video.633bc52e4366283f5941.bundle.js
[edit]
[-] video.fab0f05f6306583e8ff8.bundle.min.js
[edit]
[-] web-cli.js
[edit]
[-] web-cli.min.js
[edit]
[-] web-cli.min.js.LICENSE.txt
[edit]
[-] webpack.runtime.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] wp-audio.75f0ced143febb8cd31a.bundle.min.js
[edit]
[-] wp-audio.d0fd65867cf98c8b6b3d.bundle.js
[edit]
[-] .htaccess.disabled
[edit]