PATH:
home
/
letacommog
/
perinet-sommellerie
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.1.3 - 03-03-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 o=n(i(1959)),a=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,o.default)(this,Video),t.apply(this,arguments)}return(0,a.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(){var e=this;this.apiProvider.onApiReady((function(t){e.getElementSettings("lightbox")||(e.elements.$imageOverlay.remove(),e.prepareYTVideo(t,!0))}))}},{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,o=/#t=[^&]*/.exec(n);e[0].src=n.slice(0,o.index)+n.slice(o.index+o[0].length)+o[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(),o={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&&(o.host="https://www.youtube-nocookie.com",o.origin=window.location.hostname),this.youtubePlayer=new e.Player(this.elements.$video[0],o)}},{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();if("youtube"===t.video_type&&(this.apiProvider=elementorFrontend.utils.youtube,this.videoID=this.apiProvider.getVideoIDFromURL(t.youtube_url),this.videoID&&(!t.show_image_overlay||!t.image_overlay.url)))return t.lazy_load?(this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:function callback(t){t.isInViewport&&(e.intersectionObserver.unobserve(e.elements.$video.parent()[0]),e.apiProvider.onApiReady((function(t){return e.prepareYTVideo(t)})))}}),void this.intersectionObserver.observe(this.elements.$video.parent()[0])):void(elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading?this.apiProvider.onApiReady((function(t){return e.prepareYTVideo(t)})):setTimeout((function(){e.apiProvider.onApiReady((function(t){return e.prepareYTVideo(t)}))}),0))}},{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),o=i(6033),a=i(6078),r=i(3338),l=i(8492),s=i(2404),u=Math.max,d=Math.min,v=Math.floor,c=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;i(8897)("replace",2,(function(e,t,i,g){return[function replace(n,o){var a=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,a,o):i.call(String(a),n,o)},function(e,t){var o=g(i,e,this,t);if(o.done)return o.value;var v=n(e),c=String(this),h="function"==typeof t;h||(t=String(t));var f=v.global;if(f){var m=v.unicode;v.lastIndex=0}for(var p=[];;){var y=s(v,c);if(null===y)break;if(p.push(y),!f)break;""===String(y[0])&&(v.lastIndex=l(c,a(v.lastIndex),m))}for(var b,V="",k=0,S=0;S<p.length;S++){y=p[S];for(var x=String(y[0]),$=u(d(r(y.index),c.length),0),_=[],I=1;I<y.length;I++)_.push(void 0===(b=y[I])?b:String(b));var E=y.groups;if(h){var P=[x].concat(_,$,c);void 0!==E&&P.push(E);var A=String(t.apply(void 0,P))}else A=getSubstitution(x,c,$,_,E,t);$>=k&&(V+=c.slice(k,$)+A,k=$+x.length)}return V+c.slice(k)}];function getSubstitution(e,t,n,a,r,l){var s=n+e.length,u=a.length,d=h;return void 0!==r&&(r=o(r),d=c),i.call(l,d,(function(i,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":l=r[o.slice(1,-1)];break;default:var d=+o;if(0===d)return i;if(d>u){var c=v(d/10);return 0===c?i:c<=u?void 0===a[c-1]?o.charAt(1):a[c-1]+o.charAt(1):i}l=a[d-1]}return void 0===l?"":l}))}}))}}]);
[+]
..
[-] counter.651270dd8ea8d31d348e.bundle.js
[edit]
[-] image-carousel.b8262c12a4b2954dac64.bundle.min.js
[edit]
[-] counter.99f87b466b69ef909f39.bundle.min.js
[edit]
[-] app-loader.min.js
[edit]
[-] admin-feedback.js
[edit]
[-] video.4867cd778fc28aa3d2f9.bundle.js
[edit]
[-] text-editor.00896c8bf19481643415.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] 186b2d7ee7ced8771b23.bundle.js
[edit]
[-] app.min.js
[edit]
[-] common.min.js
[edit]
[-] toggle.b64b2f116c93ef441684.bundle.min.js
[edit]
[-] preloaded-elements-handlers.js
[edit]
[-] tabs.3cbd8fbb28141b6e445d.bundle.min.js
[edit]
[-] preloaded-elements-handlers.min.js
[edit]
[-] beta-tester.min.js
[edit]
[-] tabs.e9db15b9aa8a58bcf375.bundle.js
[edit]
[-] editor.js
[edit]
[-] new-template.js
[edit]
[-] new-template.min.js
[edit]
[-] editor-modules.js
[edit]
[-] editor-document.js
[edit]
[-] alert.f4e7a6df1283698dea78.bundle.min.js
[edit]
[-] common-modules.js
[edit]
[-] text-editor.aed713532404e88b2deb.bundle.min.js
[edit]
[-] common.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] beta-tester.js
[edit]
[-] alert.170eb40d830a3ae2d4a2.bundle.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] admin.min.js
[edit]
[-] progress.2f915ff369cd52d14d21.bundle.min.js
[edit]
[-] app-loader.js
[edit]
[-] editor-document.min.js
[edit]
[-] common-modules.min.js
[edit]
[-] image-carousel.1b452908acbb55e3c0c3.bundle.js
[edit]
[-] editor-modules.min.js
[edit]
[-] webpack.runtime.js
[edit]
[-] app-packages.min.js
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] gutenberg.js
[edit]
[-] frontend-modules.js
[edit]
[-] app.js
[edit]
[-] frontend.min.js
[edit]
[-] accordion.8676521a2e6ad8c65c84.bundle.min.js
[edit]
[-] accordion.e9e0c47570d3bc2ea472.bundle.js
[edit]
[-] frontend.js
[edit]
[-] gutenberg.min.js
[edit]
[-] progress.fdb2dcfacfca36a9033a.bundle.js
[edit]
[-] video.857532146b3808241d1e.bundle.min.js
[edit]
[-] app-packages.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] toggle.f62080504158ea96ac4c.bundle.js
[edit]
[-] admin.js
[edit]