",{class:`${i.videoWrapper} elementor-video-${this.getRatioType(n)}`,style:"--video-aspect-ratio: "+n}),l=e.children("."+i.playButton);let a,r;s.append(o),e.append(s),-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 d=r.getVideoIDFromURL(t);r.onApiReady((e=>{"youtube"===a?this.prepareYTVideo(e,d,s,o,l):"vimeo"===a&&this.prepareVimeoVideo(e,t,s,o,l)})),l.addClass(i.playing).removeClass(i.hidden)},prepareYTVideo(e,t,i,n,s){const o=this.getSettings("classes"),l=jQuery("
");let a=e.PlayerState.PLAYING;n.append(l),window.chrome&&(a=e.PlayerState.UNSTARTED),i.addClass("elementor-loading "+o.invisible),this.player=new e.Player(l[0],{videoId:t,events:{onReady:()=>{s.addClass(o.hidden),i.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===a&&i.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo(e,t,i,n,s){const o=this.getSettings("classes"),l={url:t,autoplay:!0,transparent:!1,playsinline:!1,cc_load_policy:!1};this.player=new e.Player(n,l),this.player.ready().then((()=>{s.addClass(o.hidden),i.removeClass(o.invisible)}))},setEntranceAnimation(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(e,t){const i=jQuery(this.getSettings("selectors.links")).filter(((t,i)=>{const n=jQuery(i);return e===i.dataset.elementorLightboxSlideshow&&!n.parent(".swiper-slide-duplicate").length&&!n.parents(".slick-cloned").length})),n=[];let s=0;i.each((function(){const e=this.dataset.elementorLightboxVideo;let o=this.dataset.elementorLightboxIndex;void 0===o&&(o=i.index(this)),(t===this.href||e&&t===e)&&(s=o);const l={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription,hash:this.getAttribute("data-e-action-hash")};e&&(l.video=e),n.push(l)})),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:+s}}})},onSlideChange(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},7954:e=>{!function(){var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},i=e.exports,n=function(){for(var e,i=[["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,s=i.length,o={};nBoolean(t[n.fullscreenElement])},element:{enumerable:!0,get:()=>t[n.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(t[n.fullscreenEnabled])}}),i?e.exports=o:window.screenfull=o):i?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);