",{class:s.videoWrapper}),o=e.children("."+s.playButton);let a,r;n.append(i),e.append(n),-1!==t.indexOf("vimeo.com")?(a="vimeo",r=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(a="youtube",r=elementorFrontend.utils.youtube);const l=r.getVideoIDFromURL(t);r.onApiReady((e=>{"youtube"===a?this.prepareYTVideo(e,l,n,i,o):"vimeo"===a&&this.prepareVimeoVideo(e,t,n,i,o)})),o.addClass(s.playing).removeClass(s.hidden)},prepareYTVideo:function(e,t,s,n,i){const o=this.getSettings("classes"),a=jQuery("
");let r=e.PlayerState.PLAYING;n.append(a),window.chrome&&(r=e.PlayerState.UNSTARTED),s.addClass("elementor-loading "+o.invisible),this.player=new e.Player(a[0],{videoId:t,events:{onReady:()=>{i.addClass(o.hidden),s.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===r&&s.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function(e,t,s,n,i){const o=this.getSettings("classes"),a={url:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(n,a),this.player.ready().then((()=>{i.addClass(o.hidden),s.removeClass(o.invisible)}))},setEntranceAnimation:function(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");const t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow:function(e,t){const s=jQuery(this.getSettings("selectors.links")).filter(((t,s)=>{const n=jQuery(s);return e===s.dataset.elementorLightboxSlideshow&&!n.parent(".swiper-slide-duplicate").length&&!n.parents(".slick-cloned").length})),n=[];let i=0;s.each((function(){const e=this.dataset.elementorLightboxVideo;let o=this.dataset.elementorLightboxIndex;void 0===o&&(o=s.index(this)),(t===this.href||e&&t===e)&&(i=o);const a={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription,hash:this.getAttribute("e-action-hash")};e&&(a.video=e),n.push(a)})),n.sort(((e,t)=>e.index-t.index)),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:n,swiper:{initialSlide:+i}}})},onSlideChange:function(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:e=>{"use strict";!function(){var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},s=e.exports,n=function(){for(var e,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=s.length,o={};n{e.O(0,[819,354],(()=>{return t=1210,e(e.s=t);var t}));e.O()}]);;