PATH:
home
/
letacommog
/
marcel-perinet
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.1.1 - 31-01-2021 */ (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[791],{5363:(e,t,i)=>{"use strict";var n=i(7971);i(7394)(t,"__esModule",{value:!0}),t.default=void 0,i(8081),i(3777),i(4208),i(1954);var a=n(i(1959)),o=n(i(9041)),r=n(i(6700)),l=n(i(4263)),s=n(i(7371)),u=n(i(8537)),d=function(e){(0,s.default)(Video,e);var t=(0,u.default)(Video);function Video(){return(0,a.default)(this,Video),t.apply(this,arguments)}return(0,o.default)(Video,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{imageOverlay:".elementor-custom-embed-image-overlay",video:".elementor-video",videoIframe:".elementor-video-iframe"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors");return{$imageOverlay:this.$element.find(e.imageOverlay),$video:this.$element.find(e.video),$videoIframe:this.$element.find(e.videoIframe)}}},{key:"getLightBox",value:function getLightBox(){return elementorFrontend.utils.lightbox}},{key:"handleVideo",value:function handleVideo(){this.getElementSettings("lightbox")||(this.elements.$imageOverlay.remove(),this.playVideo())}},{key:"playVideo",value:function playVideo(){if(this.elements.$video.length)this.youtubePlayer?this.youtubePlayer.playVideo():this.elements.$video[0].play();else{var e=this.elements.$videoIframe,t=e.data("lazy-load");t&&e.attr("src",t);var i=e[0].src.replace("&autoplay=0","");if(e[0].src=i+"&autoplay=1",e[0].src.includes("vimeo.com")){var n=e[0].src,a=/#t=[^&]*/.exec(n);e[0].src=n.slice(0,a.index)+n.slice(a.index+a[0].length)+a[0]}}}},{key:"animateVideo",value:function animateVideo(){this.getLightBox().setEntranceAnimation(this.getCurrentDeviceSetting("lightbox_content_animation"))}},{key:"handleAspectRatio",value:function handleAspectRatio(){this.getLightBox().setVideoAspectRatio(this.getElementSettings("aspect_ratio"))}},{key:"prepareYTVideo",value:function prepareYTVideo(e,t){var i=this,n=this.getElementSettings(),a={videoId:this.videoID,events:{onReady:function onReady(){n.mute&&i.youtubePlayer.mute(),(n.autoplay||t)&&i.youtubePlayer.playVideo()},onStateChange:function onStateChange(t){t.data===e.PlayerState.ENDED&&n.loop&&i.youtubePlayer.seekTo(n.start||0)}},playerVars:{controls:n.controls?1:0,rel:n.rel?1:0,playsinline:n.play_on_mobile?1:0,modestbranding:n.modestbranding?1:0,autoplay:n.autoplay?1:0,start:n.start,end:n.end}};n.yt_privacy&&(a.host="https://www.youtube-nocookie.com",a.playerVars.origin=window.location.hostname),this.youtubePlayer=new e.Player(this.elements.$video[0],a)}},{key:"bindEvents",value:function bindEvents(){this.elements.$imageOverlay.on("click",this.handleVideo.bind(this))}},{key:"onInit",value:function onInit(){var e=this;(0,r.default)((0,l.default)(Video.prototype),"onInit",this).call(this);var t=this.getElementSettings();"youtube"===t.video_type&&(this.apiProvider=elementorFrontend.utils.youtube,this.videoID=this.apiProvider.getVideoIDFromURL(t.youtube_url),this.videoID&&this.apiProvider.onApiReady((function(t){return e.prepareYTVideo(t)})))}},{key:"onElementChange",value:function onElementChange(e){if(0!==e.indexOf("lightbox_content_animation")){var t=this.getElementSettings("lightbox");"lightbox"!==e||t?"aspect_ratio"===e&&t&&this.handleAspectRatio():this.getLightBox().getModal().hide()}else this.animateVideo()}}]),Video}(elementorModules.frontend.handlers.Base);t.default=d},4208:(e,t,i)=>{"use strict";var n=i(6365),a=i(6033),o=i(6078),r=i(3338),l=i(8492),s=i(2404),u=Math.max,d=Math.min,h=Math.floor,v=/\$([$&`']|\d\d?|<[^>]*>)/g,c=/\$([$&`']|\d\d?)/g;i(8897)("replace",2,(function(e,t,i,g){return[function replace(n,a){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o,a):i.call(String(o),n,a)},function(e,t){var a=g(i,e,this,t);if(a.done)return a.value;var h=n(e),v=String(this),c="function"==typeof t;c||(t=String(t));var f=h.global;if(f){var y=h.unicode;h.lastIndex=0}for(var m=[];;){var p=s(h,v);if(null===p)break;if(m.push(p),!f)break;""===String(p[0])&&(h.lastIndex=l(v,o(h.lastIndex),y))}for(var b,V="",k=0,S=0;S<m.length;S++){p=m[S];for(var x=String(p[0]),$=u(d(r(p.index),v.length),0),I=[],E=1;E<p.length;E++)I.push(void 0===(b=p[E])?b:String(b));var _=p.groups;if(c){var D=[x].concat(I,$,v);void 0!==_&&D.push(_);var P=String(t.apply(void 0,D))}else P=getSubstitution(x,v,$,I,_,t);$>=k&&(V+=v.slice(k,$)+P,k=$+x.length)}return V+v.slice(k)}];function getSubstitution(e,t,n,o,r,l){var s=n+e.length,u=o.length,d=c;return void 0!==r&&(r=a(r),d=v),i.call(l,d,(function(i,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":l=r[a.slice(1,-1)];break;default:var d=+a;if(0===d)return i;if(d>u){var v=h(d/10);return 0===v?i:v<=u?void 0===o[v-1]?a.charAt(1):o[v-1]+a.charAt(1):i}l=o[d-1]}return void 0===l?"":l}))}}))}}]);
[+]
..
[-] preloaded-elements-handlers.min.js
[edit]
[-] beta-tester.min.js
[edit]
[-] app-packages.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] admin.min.js
[edit]
[-] editor-document.min.js
[edit]
[-] editor-document.js
[edit]
[-] tabs.ad5db6c2e7715f4a853c.bundle.min.js
[edit]
[-] video.dce2e6c0483ecadec74b.bundle.js
[edit]
[-] toggle.f62080504158ea96ac4c.bundle.js
[edit]
[-] toggle.0a46fb67671fe53a2bb0.bundle.min.js
[edit]
[-] app-loader.js
[edit]
[-] preloaded-elements-handlers.js
[edit]
[-] counter.651270dd8ea8d31d348e.bundle.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] frontend.min.js
[edit]
[-] beta-tester.js
[edit]
[-] b652ef4fbfb3884eba25.bundle.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] common.js
[edit]
[-] tabs.e9db15b9aa8a58bcf375.bundle.js
[edit]
[-] accordion.959b6d3705116b2a55b1.bundle.min.js
[edit]
[-] admin.js
[edit]
[-] gutenberg.js
[edit]
[-] alert.f4e7a6df1283698dea78.bundle.min.js
[edit]
[-] new-template.min.js
[edit]
[-] common-modules.min.js
[edit]
[-] editor-modules.min.js
[edit]
[-] text-editor.aed713532404e88b2deb.bundle.min.js
[edit]
[-] progress.2f915ff369cd52d14d21.bundle.min.js
[edit]
[-] alert.170eb40d830a3ae2d4a2.bundle.js
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] app.min.js
[edit]
[-] common-modules.js
[edit]
[-] new-template.js
[edit]
[-] text-editor.00896c8bf19481643415.bundle.js
[edit]
[-] editor-modules.js
[edit]
[-] video.cadfb803f731eda62363.bundle.min.js
[edit]
[-] webpack.runtime.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] counter.99f87b466b69ef909f39.bundle.min.js
[edit]
[-] image-carousel.1b452908acbb55e3c0c3.bundle.js
[edit]
[-] editor.js
[edit]
[-] gutenberg.min.js
[edit]
[-] editor.min.js
[edit]
[-] progress.fdb2dcfacfca36a9033a.bundle.js
[edit]
[-] common.min.js
[edit]
[-] image-carousel.b8262c12a4b2954dac64.bundle.min.js
[edit]
[-] app-packages.min.js
[edit]
[-] frontend-modules.js
[edit]
[-] accordion.e9e0c47570d3bc2ea472.bundle.js
[edit]
[-] app.js
[edit]
[-] frontend.js
[edit]
[-] admin-feedback.js
[edit]
[-] app-loader.min.js
[edit]