",{class:`${n.videoWrapper} elementor-video-${this.getRatioType(i)}`,style:"--video-aspect-ratio: "+i}),r=e.children("."+n.playButton);let l,a;s.append(o),e.append(s),-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,s,o,r):"vimeo"===l&&this.prepareVimeoVideo(e,t,s,o,r)})),r.addClass(n.playing).removeClass(n.hidden)},prepareYTVideo(e,t,n,i,s){const o=this.getSettings("classes"),r=jQuery("
");let l=e.PlayerState.PLAYING;i.append(r),window.chrome&&(l=e.PlayerState.UNSTARTED),n.addClass("elementor-loading "+o.invisible),this.player=new e.Player(r[0],{videoId:t,events:{onReady:()=>{s.addClass(o.hidden),n.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===l&&n.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo(e,t,n,i,s){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((()=>{s.addClass(o.hidden),n.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 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 s=0;n.each((function(){const e=this.dataset.elementorLightboxVideo;let o=this.dataset.elementorLightboxIndex;void 0===o&&(o=n.index(this)),(t===this.href||e&&t===e)&&(s=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:+s}}})},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,s=n.length,o={};i
Boolean(t[i.fullscreenElement])},element:{enumerable:!0,get:()=>t[i.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(t[i.fullscreenEnabled])}}),n?e.exports=o:window.screenfull=o):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 s=n.call(e,t||"default");if("object"!=i(s))return s;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,s=n(6027);e.exports=function toPropertyKey(e){var t=s(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}}]);Home - usacarsvibz Skip to content