",{class:s.videoWrapper}),o=e.children("."+s.playButton);let r,a;i.append(n),e.append(i),-1!==t.indexOf("vimeo.com")?(r="vimeo",a=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(r="youtube",a=elementorFrontend.utils.youtube);const l=a.getVideoIDFromURL(t);a.onApiReady((e=>{"youtube"===r?this.prepareYTVideo(e,l,i,n,o):"vimeo"===r&&this.prepareVimeoVideo(e,t,i,n,o)})),o.addClass(s.playing).removeClass(s.hidden)},prepareYTVideo(e,t,s,i,n){const o=this.getSettings("classes"),r=jQuery("
");let a=e.PlayerState.PLAYING;i.append(r),window.chrome&&(a=e.PlayerState.UNSTARTED),s.addClass("elementor-loading "+o.invisible),this.player=new e.Player(r[0],{videoId:t,events:{onReady:()=>{n.addClass(o.hidden),s.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===a&&s.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo(e,t,s,i,n){const o=this.getSettings("classes"),r={url:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(i,r),this.player.ready().then((()=>{n.addClass(o.hidden),s.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 s=jQuery(this.getSettings("selectors.links")).filter(((t,s)=>{const i=jQuery(s);return e===s.dataset.elementorLightboxSlideshow&&!i.parent(".swiper-slide-duplicate").length&&!i.parents(".slick-cloned").length})),i=[];let n=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)&&(n=o);const r={image:this.href,index:o,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:+n}}})},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:{},s=e.exports,i=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"]],i=0,n=s.length,o={};iBoolean(t[i.fullscreenElement])},element:{enumerable:!0,get:()=>t[i.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(t[i.fullscreenEnabled])}}),s?e.exports=o:window.screenfull=o):s?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},3231:(e,t,s)=>{var i=s(4040);e.exports=function _defineProperty(e,t,s){return(t=i(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e},e.exports.__esModule=!0,e.exports.default=e.exports},6027:(e,t,s)=>{var i=s(7501).default;e.exports=function _toPrimitive(e,t){if("object"!==i(e)||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!==i(n))return n;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,s)=>{var i=s(7501).default,n=s(6027);e.exports=function _toPropertyKey(e){var t=n(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}},e=>{e.O(0,[819,354],(()=>{return t=1210,e(e.s=t);var t}));e.O()}]);