/*! elementor - v3.2.4 - 26-05-2021 */ (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[181],{2937:(e,t,a)=>{e.exports=a(7841)},3774:(e,t,a)=>{e.exports=a(5966)},5315:(e,t,a)=>{e.exports=a(9406)},8042:(e,t,a)=>{var n=a(7394);e.exports=function _defineProperty(e,t,a){return t in e?n(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},4899:(e,t,a)=>{var n=a(7394),i=a(2937),r=a(3774),s=a(3587),o=a(5315),l=a(3452),u=a(8042);function ownKeys(e,t){var a=l(e);if(o){var n=o(e);t&&(n=n.filter((function(t){return s(e,t).enumerable}))),a.push.apply(a,n)}return a}e.exports=function _objectSpread2(e){for(var t=1;t{a(6344);var n=a(7252).Object;e.exports=function defineProperties(e,t){return n.defineProperties(e,t)}},5966:(e,t,a)=>{a(2109),e.exports=a(7252).Object.getOwnPropertyDescriptors},9406:(e,t,a)=>{a(5638),e.exports=a(7252).Object.getOwnPropertySymbols},2270:(e,t,a)=>{"use strict";var n=a(109),i=a(7923);e.exports=function(e,t,a){t in e?n.f(e,t,i(0,a)):e[t]=a}},3767:(e,t,a)=>{var n=a(3765),i=a(4529),r=a(3451),s=a(3227).Reflect;e.exports=s&&s.ownKeys||function ownKeys(e){var t=n.f(r(e)),a=i.f;return a?t.concat(a(e)):t}},6344:(e,t,a)=>{var n=a(2570);n(n.S+n.F*!a(3752),"Object",{defineProperties:a(5548)})},2109:(e,t,a)=>{var n=a(2570),i=a(3767),r=a(394),s=a(3282),o=a(2270);n(n.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(e){for(var t,a,n=r(e),l=s.f,u=i(n),c={},d=0;u.length>d;)void 0!==(a=l(n,t=u[d++]))&&o(c,t,a);return c}})},9728:(e,t,a)=>{"use strict";var n=a(7971);a(7394)(t,"__esModule",{value:!0}),t.default=void 0,a(8081),a(3777),a(1954);var i=n(a(1959)),r=n(a(9041)),s=n(a(6700)),o=n(a(4263)),l=n(a(7371)),u=n(a(8537)),c=function(e){(0,l.default)(baseTabs,e);var t=(0,u.default)(baseTabs);function baseTabs(){return(0,i.default)(this,baseTabs),t.apply(this,arguments)}return(0,r.default)(baseTabs,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{tablist:'[role="tablist"]',tabTitle:".elementor-tab-title",tabContent:".elementor-tab-content"},classes:{active:"elementor-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0,keyDirection:{ArrowLeft:elementorFrontendConfig.is_rtl?1:-1,ArrowUp:-1,ArrowRight:elementorFrontendConfig.is_rtl?-1:1,ArrowDown:1}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}}},{key:"activateDefaultTab",value:function activateDefaultTab(){var e=this.getSettings();if(e.autoExpand&&("editor"!==e.autoExpand||this.isEdit)){var t=this.getEditSettings("activeItemIndex")||1,a={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(t),this.setSettings(a)}}},{key:"handleKeyboardNavigation",value:function handleKeyboardNavigation(e){var t=e.currentTarget,a=jQuery(t.closest(this.getSettings("selectors").tablist)),n=a.find(this.getSettings("selectors").tabTitle),i="vertical"===a.attr("aria-orientation");switch(e.key){case"ArrowLeft":case"ArrowRight":if(i)return;break;case"ArrowUp":case"ArrowDown":if(!i)return;e.preventDefault();break;case"Home":return e.preventDefault(),void n.first().focus();case"End":return e.preventDefault(),void n.last().focus();default:return}var r=t.getAttribute("data-tab")-1,s=this.getSettings("keyDirection")[e.key],o=n[r+s];o?o.focus():-1===r+s?n.last().focus():n.first().focus()}},{key:"deactivateActiveTab",value:function deactivateActiveTab(e){var t=this.getSettings(),a=t.classes.active,n=e?'[data-tab="'+e+'"]':"."+a,i=this.elements.$tabTitles.filter(n),r=this.elements.$tabContents.filter(n);i.add(r).removeClass(a),i.attr({tabindex:"-1","aria-selected":"false","aria-expanded":"false"}),r[t.hideTabFn](),r.attr("hidden","hidden")}},{key:"activateTab",value:function activateTab(e){var t=this.getSettings(),a=t.classes.active,n=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),i=this.elements.$tabContents.filter('[data-tab="'+e+'"]'),r="show"===t.showTabFn?0:400;n.add(i).addClass(a),n.attr({tabindex:"0","aria-selected":"true","aria-expanded":"true"}),i[t.showTabFn](r,(function(){return elementorFrontend.elements.$window.trigger("resize")})),i.removeAttr("hidden")}},{key:"isActiveTab",value:function isActiveTab(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))}},{key:"bindEvents",value:function bindEvents(){var e=this;this.elements.$tabTitles.on({keydown:function keydown(t){jQuery(t.target).is("a")&&"Enter"===t.key&&t.preventDefault(),["End","Home","ArrowUp","ArrowDown"].includes(t.key)&&e.handleKeyboardNavigation(t)},keyup:function keyup(t){switch(t.key){case"ArrowLeft":case"ArrowRight":e.handleKeyboardNavigation(t);break;case"Enter":case"Space":t.preventDefault(),e.changeActiveTab(t.currentTarget.getAttribute("data-tab"))}},click:function click(t){t.preventDefault(),e.changeActiveTab(t.currentTarget.getAttribute("data-tab"))}})}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,a=new Array(t),n=0;n{"use strict";var n=a(7971);a(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a(4899)),r=n(a(1959)),s=n(a(9041)),o=n(a(6700)),l=n(a(4263)),u=n(a(7371)),c=n(a(8537)),d=function(e){(0,u.default)(Toggle,e);var t=(0,c.default)(Toggle);function Toggle(){return(0,r.default)(this,Toggle),t.apply(this,arguments)}return(0,s.default)(Toggle,[{key:"getDefaultSettings",value:function getDefaultSettings(){var e=(0,o.default)((0,l.default)(Toggle.prototype),"getDefaultSettings",this).call(this);return(0,i.default)((0,i.default)({},e),{},{showTabFn:"slideDown",hideTabFn:"slideUp",hidePrevious:!1,autoExpand:"editor"})}}]),Toggle}(n(a(9728)).default);t.default=d}}]);/*! elementor - v3.4.3 - 30-08-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/*! @elementor/editor-v1-adapters */ /*! @elementor/store */ /*! react */ /*!**************************!*\ !*** external ["React"] ***! \**************************/ /*!****************************************!*\ !*** external ["elementorV2","store"] ***! \****************************************/ /*!***************************************************!*\ !*** external ["elementorV2","editorV1Adapters"] ***! \***************************************************/ /*!*****************************************************************!*\ !*** ./node_modules/@elementor/editor-documents/dist/index.mjs ***! \*****************************************************************/