(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i wait ) { if ( timeout ) { clearTimeout( timeout ); timeout = null; } previous = now; result = func.apply( context, args ); if ( ! timeout ) { context = args = null; } } else if ( ! timeout ) { timeout = setTimeout( later, remaining ); } return result; }; }; }; window.elementorFrontend = new ElementorFrontend(); } )( jQuery ); jQuery( function() { if ( ! elementorFrontend.isEditMode() ) { elementorFrontend.init(); } } ); },{"elementor-frontend/elements-handler":1,"elementor-frontend/handlers/accordion":3,"elementor-frontend/handlers/alert":4,"elementor-frontend/handlers/counter":5,"elementor-frontend/handlers/global":6,"elementor-frontend/handlers/image-carousel":7,"elementor-frontend/handlers/instagram":8,"elementor-frontend/handlers/lottie":9,"elementor-frontend/handlers/prestashop-blog":10,"elementor-frontend/handlers/prestashop-brands":11,"elementor-frontend/handlers/prestashop-contactform":12,"elementor-frontend/handlers/prestashop-productlist":13,"elementor-frontend/handlers/prestashop-productlisttabs":14,"elementor-frontend/handlers/prestashop-search":15,"elementor-frontend/handlers/progress":16,"elementor-frontend/handlers/section":17,"elementor-frontend/handlers/tabs":18,"elementor-frontend/handlers/testimonial":19,"elementor-frontend/handlers/toggle":20,"elementor-frontend/handlers/video":21,"elementor-frontend/utils":22}],3:[function(require,module,exports){ var activateSection = function( sectionIndex, $accordionTitles ) { var $activeTitle = $accordionTitles.filter( '.active' ), $requestedTitle = $accordionTitles.filter( '[data-section="' + sectionIndex + '"]' ), isRequestedActive = $requestedTitle.hasClass( 'active' ); $activeTitle .removeClass( 'active' ) .next() .slideUp(); if ( ! isRequestedActive ) { $requestedTitle .addClass( 'active' ) .next() .slideDown(); } }; module.exports = function( $ ) { var $this = $( this ), $accordionDiv = $this.find( '.elementor-accordion' ), defaultActiveSection = $accordionDiv.data( 'active-section' ), activeFirst = $accordionDiv.data( 'active-first' ), $accordionTitles = $this.find( '.elementor-accordion-title' ); if ( ! defaultActiveSection ) { defaultActiveSection = 1; } if(activeFirst){ activateSection( defaultActiveSection, $accordionTitles ); } $accordionTitles.on( 'click', function() { activateSection( this.dataset.section, $accordionTitles ); } ); }; },{}],4:[function(require,module,exports){ module.exports = function( $ ) { $( this ).find( '.elementor-alert-dismiss' ).on( 'click', function() { $( this ).parent().fadeOut(); } ); }; },{}],5:[function(require,module,exports){ module.exports = function( $ ) { var $number = $( this ).find( '.elementor-counter-number' ); $number.waypoint( function() { $number.numerator( { duration: $number.data( 'duration' ) } ); }, { offset: '90%' } ); }; },{}],6:[function(require,module,exports){ module.exports = function() { if ( elementorFrontend.isEditMode() ) { return; } var $element = this, animation = $element.data( 'animation' ); if ( ! animation ) { return; } $element.addClass( 'elementor-invisible' ).removeClass( animation ); $element.waypoint( function() { $element.removeClass( 'elementor-invisible' ).addClass( animation ); }, { offset: '90%' } ); }; },{}],7:[function(require,module,exports){ module.exports = function( $ ) { var $carousel = $( this ).find( '.elementor-image-carousel' ); if ( ! $carousel.length ) { return; } var savedOptions = $carousel.data( 'slider_options' ), swiperOptions = { touchEventsTarget: 'container', loop: savedOptions.loop, speed: savedOptions.speed, watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: savedOptions.autoplaySpeed, disableOnInteraction: savedOptions.disableOnInteraction, }; } if(savedOptions.lazy){ swiperOptions.lazy = { loadPrevNext: true, } } if(savedOptions.fade){ swiperOptions.effect = 'fade'; swiperOptions.fadeEffect = { crossFade: true }; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay && savedOptions.disableOnInteraction){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; },{}],8:[function(require,module,exports){ module.exports = function( $ ) { const $self = $( this ); const $instagramWrapper = $self.find( '.elementor-instagram' ); const $carousel = $self.find( '.elementor-instagram-carousel' ); if ( ! $instagramWrapper.length ) { return; } const options = $instagramWrapper.data( 'options' ); const init = function() { if(options.api_type == 'token'){ initTokenConnection(); } else{ initNoTokenConnection(); } }; const initTokenConnection = function() { if (elementorFrontendConfig.instagramToken == ''){ return; } let html = "
"; html += ''; html += '{{caption}}'; html += ''; html += "
"; const optionsPlugin = { 'target': $instagramWrapper[0], 'accessToken': elementorFrontendConfig.instagramToken, 'template': html, /* 'transform': function(item) { item.model.image = item.link + 'media/?size=' + options.image_size_token; return item; }, */ 'limit': parseInt(options.limit_token), 'after': function(){ if ( ! $carousel.length ) { return; } initSwiper(); } }; const feed = new Instafeed(optionsPlugin); feed.run(); }; const initNoTokenConnection = function() { let limit = 12; let username; let tag; if(options.feed_type == 'user'){ if (options.user == '' ) { return; } limit = options.limit_user; username = options.user; } else{ if (options.tag == '' ) { return; } limit = options.limit_tag; tag = options.tag; } const optionsPlugin = { 'username': username, 'host': "https://www.instagram.com/", 'tag': tag, 'display_profile': false, 'display_biography': false, 'container': $instagramWrapper, 'cache_time': 380, 'image_class': options.class, 'styling': true, 'items': limit, 'image_size': options.image_size, 'callback': function(data){ if ( ! $carousel.length ) { return; } initSwiper(); } }; $.instagramFeed(optionsPlugin); }; const initSwiper = function() { const savedOptions = $carousel.data( 'slider_options' ), swiperOptions = { touchEventsTarget: 'container', loop: savedOptions.loop, watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: savedOptions.autoplaySpeed, disableOnInteraction: savedOptions.disableOnInteraction, }; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $self.find('.elementor-swiper-button-next').first()[0], prevEl: $self.find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay && savedOptions.disableOnInteraction){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; init(); }; },{}],9:[function(require,module,exports){ module.exports = function( $ ) { var $lottiePlayer = $( this ).find( '.lottie-animation' ); var offset = $lottiePlayer.data('offset') / 100; var container = null; if ($lottiePlayer.data('container') == 'body'){ container = 'body'; } if (elementorFrontendConfig.isEditMode) { if($lottiePlayer.data('play') == 'scroll'){ window.frames[0].frameElement.contentWindow.lottieInteractivyBackofficeRun(offset, $lottiePlayer[0], container); } } else{ if($lottiePlayer.data('play') == 'scroll'){ document.addEventListener("lottieLoaded", function(e) { LottieInteractivity.create({ mode:'scroll', player: $lottiePlayer[0], container: container, actions: [ { visibility:[offset,1], type: 'seek', frames: [0, '100%'] } ] }); }); } } }; },{}],10:[function(require,module,exports){ module.exports = function( $ ) { var $carousel = $( this ).find( '.elementor-blog-carousel' ); if ( ! $carousel.length ) { return; } var savedOptions = $carousel.data('slider_options'), swiperOptions = { touchEventsTarget: 'container', watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, lazy : { loadPrevNext: true, checkInView: true, }, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: savedOptions.autoplaySpeed, disableOnInteraction: savedOptions.disableOnInteraction, }; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $( this ).find('.elementor-swiper-button-next').first()[0], prevEl: $( this ).find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay && savedOptions.disableOnInteraction){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; },{}],11:[function(require,module,exports){ module.exports = function ($) { var $carousel = $(this).find('.elementor-brands-carousel'); if (!$carousel.length) { return; } var savedOptions = $carousel.data('slider_options'), swiperOptions = { touchEventsTarget: 'container', watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, lazy : { loadPrevNext: true, checkInView: true, }, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, slidesPerColumn: savedOptions.itemsPerColumn, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, slidesPerColumn: savedOptions.itemsPerColumn, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, slidesPerColumn: savedOptions.itemsPerColumn, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: 4500 }; } if(savedOptions.itemsPerColumn > 1){ swiperOptions.slidesPerColumnFill = 'row'; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $( this ).find('.elementor-swiper-button-next').first()[0], prevEl: $( this ).find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay && savedOptions.disableOnInteraction){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; },{}],12:[function(require,module,exports){ module.exports = function ($) { var $this = $(this); var $contactFormWrapper = $this.find('.elementor-contactform-wrapper'); if (!$contactFormWrapper.length) { return; } $.ajax({ url: elementorFrontendConfig.ajax_csfr_token_url, processData: false, contentType: false, type: 'POST', success: function(resp){ $contactFormWrapper.find('.js-csfr-token').replaceWith($(resp.preview)); } }); $contactFormWrapper.on("submit", ".js-elementor-contact-form", function (e) { e.preventDefault(); var formData = new FormData($(this)[0]); $.ajax({ url: $(this).attr('action'), data: formData, processData: false, contentType: false, type: 'POST', success: function(resp){ $contactFormWrapper.find('.js-elementor-contact-norifcation-wrapper').replaceWith($(resp.preview).find('.js-elementor-contact-norifcation-wrapper')); } }); }); }; },{}],13:[function(require,module,exports){ module.exports = function ($) { var $carousel = $(this).find('.elementor-products-carousel'); if (elementorFrontendConfig.isEditMode) { $(this).find('img[data-src]').each(function() { $(this).attr('src', $(this).data('src')); }); } if (!$carousel.length) { return; } var savedOptions = $carousel.data('slider_options'), swiperOptions = { touchEventsTarget: 'container', watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, lazy : { checkInView: true, loadedClass: 'loaded' }, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, slidesPerColumn: savedOptions.itemsPerColumn, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, slidesPerColumn: savedOptions.itemsPerColumn, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, slidesPerColumn: savedOptions.itemsPerColumn, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: 4500, disableOnInteraction: true, }; } if(savedOptions.itemsPerColumn > 1){ swiperOptions.slidesPerColumnFill = 'row'; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $( this ).find('.elementor-swiper-button-next').first()[0], prevEl: $( this ).find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; },{}],14:[function(require,module,exports){ module.exports = function ($) { var $carousels = $(this).find('.elementor-products-carousel'); if (elementorFrontendConfig.isEditMode) { $(this).find('img[data-src]').each(function() { $(this).attr('src', $(this).data('src')); }); } if (!$carousels.length) { return; } $carousels.each(function() { let $carousel = $(this); var savedOptions = $carousel.data('slider_options'), swiperOptions = { touchEventsTarget: 'container', watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, lazy : { checkInView: true, loadedClass: 'loaded' }, slidesPerView: savedOptions.slidesToShowMobile, slidesPerGroup: savedOptions.slidesToShowMobile, slidesPerColumn: savedOptions.itemsPerColumn, breakpoints: { 768: { slidesPerView: savedOptions.slidesToShowTablet, slidesPerGroup: savedOptions.slidesToShowTablet, slidesPerColumn: savedOptions.itemsPerColumn, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, slidesPerColumn: savedOptions.itemsPerColumn, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: 4500, disableOnInteraction: true, }; } if(savedOptions.itemsPerColumn > 1){ swiperOptions.slidesPerColumnFill = 'row'; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $carousel.parent().find('.elementor-swiper-button-next').first()[0], prevEl: $carousel.parent().find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }); }; },{}],15:[function(require,module,exports){ module.exports = function( $ ) { var $searchWidget = $( this ).find( '.search-widget-autocomplete' ); if ( ! $searchWidget.length ) { return; } if (elementorFrontendConfig.isEditMode) { return; } let $searchBox = $searchWidget.find('input[type=text]'); let searchURL = $searchWidget.attr('data-search-controller-url'); var initAutocomplete = prestashop.blocksearch.initAutocomplete || function ($searchWidget, $searchBox, searchURL) {}; initAutocomplete($searchWidget, $searchBox, searchURL); }; },{}],16:[function(require,module,exports){ module.exports = function( $ ) { var $progressbar = $( this ).find( '.elementor-progress-bar' ); $progressbar.waypoint( function() { $progressbar.css( 'width', $progressbar.data( 'max' ) + '%' ) }, { offset: '90%' } ); }; },{}],17:[function(require,module,exports){ var BackgroundVideo = function( $, $backgroundVideoContainer ) { var player, elements = {}, isYTVideo = false; var calcVideosSize = function() { var containerWidth = $backgroundVideoContainer.outerWidth(), containerHeight = $backgroundVideoContainer.outerHeight(), aspectRatioSetting = '16:9', //TEMP aspectRatioArray = aspectRatioSetting.split( ':' ), aspectRatio = aspectRatioArray[ 0 ] / aspectRatioArray[ 1 ], ratioWidth = containerWidth / aspectRatio, ratioHeight = containerHeight * aspectRatio, isWidthFixed = containerWidth / containerHeight > aspectRatio; return { width: isWidthFixed ? containerWidth : ratioHeight, height: isWidthFixed ? ratioWidth : containerHeight }; }; var changeVideoSize = function() { var $video = isYTVideo ? $( player.getIframe() ) : elements.$backgroundVideo, size = calcVideosSize(); $video.width( size.width ).height( size.height ); }; var prepareYTVideo = function( YT, videoID ) { player = new YT.Player( elements.$backgroundVideo[ 0 ], { videoId: videoID, events: { onReady: function() { player.mute(); changeVideoSize(); player.playVideo(); }, onStateChange: function( event ) { if ( event.data === YT.PlayerState.ENDED ) { player.seekTo( 0 ); } } }, playerVars: { controls: 0, autoplay: 1, mute: 1, showinfo: 0 } } ); $( elementorFrontend.getScopeWindow() ).on( 'resize', changeVideoSize ); }; var initElements = function() { elements.$backgroundVideo = $backgroundVideoContainer.children( '.elementor-background-video' ); }; var run = function() { var videoID = elements.$backgroundVideo.data( 'video-id' ); if ( videoID ) { isYTVideo = true; elementorFrontend.utils.onYoutubeApiReady( function( YT ) { setTimeout( function() { prepareYTVideo( YT, videoID ); }, 1 ); } ); } else { elements.$backgroundVideo.one( 'canplay', changeVideoSize ); } }; var init = function() { initElements(); run(); }; init(); }; module.exports = function( $ ) { //new StretchedSection( $, this ); var $backgroundVideoContainer = this.find( '.elementor-background-video-container' ); if ( $backgroundVideoContainer ) { new BackgroundVideo( $, $backgroundVideoContainer ); } }; },{}],18:[function(require,module,exports){ module.exports = function( $ ) { var $this = $( this ), defaultActiveTab = $this.find( '.elementor-tabs' ).data( 'active-tab' ), $tabsTitles = $this.find( '.elementor-tab-title' ), $tabs = $this.find( '.elementor-tab-content' ), $active, $content; if ( ! defaultActiveTab ) { defaultActiveTab = 1; } var activateTab = function( tabIndex ) { if ( $active ) { $active.removeClass( 'active' ); $content.removeClass( 'active' ); } $active = $tabsTitles.filter( '[data-tab="' + tabIndex + '"]' ); $active.addClass( 'active' ); $content = $tabs.filter( '[data-tab="' + tabIndex + '"]' ); $content.addClass( 'active' ); }; activateTab( defaultActiveTab ); $tabsTitles.on( 'click', function() { activateTab( this.dataset.tab ); } ); }; },{}],19:[function(require,module,exports){ module.exports = function( $ ) { var $carousel = $( this ).find( '.elementor-testimonial-carousel' ); if ( ! $carousel.length ) { return; } var savedOptions = $carousel.data( 'slider_options' ), tabletSlides = 1 === savedOptions.slidesToShow ? 1 : 2, swiperOptions = { touchEventsTarget: 'container', loop: savedOptions.loop, speed: savedOptions.speed, watchOverflow: true, watchSlidesProgress: true, watchSlidesVisibility: true, slidesPerView: 1, slidesPerGroup: 1, breakpoints: { 768: { slidesPerView: tabletSlides, slidesPerGroup: tabletSlides, }, 992: { slidesPerView: savedOptions.slidesToShow, slidesPerGroup: savedOptions.slidesToShow, } } }; if(savedOptions.autoplay){ swiperOptions.autoplay = { delay: savedOptions.autoplaySpeed, disableOnInteraction: savedOptions.disableOnInteraction, }; } if(savedOptions.fade){ swiperOptions.effect = 'fade'; swiperOptions.fadeEffect = { crossFade: true }; } if(savedOptions.dots){ swiperOptions.pagination = { el: '.swiper-pagination', clickable: true, }; } if(savedOptions.arrows){ swiperOptions.navigation = { nextEl: $( this ).find('.elementor-swiper-button-next').first()[0], prevEl: $( this ).find('.elementor-swiper-button-prev').first()[0], }; } var swiperInstance = new Swiper($carousel[0], swiperOptions); if(savedOptions.autoplay && savedOptions.disableOnInteraction){ $carousel.mouseenter(function() { swiperInstance.autoplay.stop(); }); $carousel.mouseleave(function() { swiperInstance.autoplay.start(); }); } }; },{}],20:[function(require,module,exports){ module.exports = function( $ ) { var $toggleTitles = $( this ).find( '.elementor-toggle-title' ); $toggleTitles.on( 'click', function() { var $active = $( this ), $content = $active.next(); if ( $active.hasClass( 'active' ) ) { $active.removeClass( 'active' ); $content.slideUp(); } else { $active.addClass( 'active' ); $content.slideDown(); } } ); }; },{}],21:[function(require,module,exports){ module.exports = function( $ ) { var $this = $( this ), $imageOverlay = $this.find( '.elementor-custom-embed-image-overlay' ), $videoModalBtn = $this.find( '.elementor-video-open-modal' ).first(), $videoModal = $this.find( '.elementor-video-modal' ).first(), $video = $this.find( '.elementor-video' ).first(), $videoFrame = $this.find( 'iframe' ); if ( $imageOverlay.length ) { $imageOverlay.on( 'click', function() { $imageOverlay.remove(); if ( $video.length ) { $video[ 0 ].play(); return; } var newSourceUrl = $videoFrame[0].src; // Remove old autoplay if exists newSourceUrl = newSourceUrl.replace( 'autoplay=0', 'autoplay=1' ); $videoFrame[0].src = newSourceUrl; } ); } if ( ! $videoModalBtn.length ) { return; } $videoModalBtn.on( 'click', function() { if ( $video.length ) { $video[ 0 ].play(); return; } var newSourceUrl = $videoFrame[0].src; // Remove old autoplay if exists newSourceUrl = newSourceUrl.replace( 'autoplay=0', 'autoplay=1' ); $videoFrame[0].src = newSourceUrl; } ); $videoModal.on('hide.bs.modal', function () { if ( $video.length ) { $video[ 0 ].pause(); return; } var newSourceUrl = $videoFrame[0].src; // Remove old autoplay if exists newSourceUrl = newSourceUrl.replace( 'autoplay=1', 'autoplay=0' ); $videoFrame[0].src = newSourceUrl; }); }; },{}],22:[function(require,module,exports){ var Utils; Utils = function( $ ) { var self = this; var isYTInserted = false; this.onYoutubeApiReady = function( callback ) { if ( ! isYTInserted ) { insertYTApi(); } if ( window.YT && YT.loaded ) { callback( YT ); } else { // If not ready check again by timeout.. setTimeout( function() { self.onYoutubeApiReady( callback ); }, 350 ); } }; var insertYTApi = function() { isYTInserted = true; $( 'script:first' ).before( $( '