",{class:`${n.videoWrapper} elementor-video-${this.getRatioType(i)}`,style:"--video-aspect-ratio: "+i}),r=e.children("."+n.playButton);let l,a;o.append(s),e.append(o),-1!==t.indexOf("vimeo.com")?(l="vimeo",a=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(l="youtube",a=elementorFrontend.utils.youtube);const d=a.getVideoIDFromURL(t);a.onApiReady((e=>{"youtube"===l?this.prepareYTVideo(e,d,o,s,r):"vimeo"===l&&this.prepareVimeoVideo(e,t,o,s,r)})),r.addClass(n.playing).removeClass(n.hidden)},prepareYTVideo(e,t,n,i,o){const s=this.getSettings("classes"),r=jQuery("
");let l=e.PlayerState.PLAYING;i.append(r),window.chrome&&(l=e.PlayerState.UNSTARTED),n.addClass("elementor-loading "+s.invisible),this.player=new e.Player(r[0],{videoId:t,events:{onReady:()=>{o.addClass(s.hidden),n.removeClass(s.invisible),this.player.playVideo()},onStateChange:e=>{e.data===l&&n.removeClass("elementor-loading "+s.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo(e,t,n,i,o){const s=this.getSettings("classes"),r={url:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(i,r),this.player.ready().then((()=>{o.addClass(s.hidden),n.removeClass(s.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 n=jQuery(this.getSettings("selectors.links")).filter(((t,n)=>{const i=jQuery(n);return e===n.dataset.elementorLightboxSlideshow&&!i.parent(".swiper-slide-duplicate").length&&!i.parents(".slick-cloned").length})),i=[];let o=0;n.each((function(){const e=this.dataset.elementorLightboxVideo;let s=this.dataset.elementorLightboxIndex;void 0===s&&(s=n.index(this)),(t===this.href||e&&t===e)&&(o=s);const r={image:this.href,index:s,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription,hash:this.getAttribute("data-e-action-hash")};e&&(r.video=e),i.push(r)})),i.sort(((e,t)=>e.index-t.index)),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:i,swiper:{initialSlide:+o}}})},onSlideChange(){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:{},n=e.exports,i=function(){for(var e,n=[["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"]],i=0,o=n.length,s={};iBoolean(t[i.fullscreenElement])},element:{enumerable:!0,get:()=>t[i.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(t[i.fullscreenEnabled])}}),n?e.exports=s:window.screenfull=s):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},3231:(e,t,n)=>{var i=n(4040);e.exports=function _defineProperty(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},6027:(e,t,n)=>{var i=n(7501).default;e.exports=function toPrimitive(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4040:(e,t,n)=>{var i=n(7501).default,o=n(6027);e.exports=function toPropertyKey(e){var t=o(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports}}]);