// source --> https://www.pepiniere-lavandinpaysage.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=10.7.0 
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});
// source --> https://www.pepiniere-lavandinpaysage.com/wp-content/themes/ecomus/assets/js/plugins/jquery.countdown.js?ver=1.0 
/**
 * jQuery Tabs plugin 1.0.0
 *
 * @author Drfuri
 */
(function ($) {
    $.fn.ecomus_countdown = function () {
        return this.each(function () {
            var $this = $(this),
                diff = $this.data('expire'),
                icon = $this.data('icon');

            var updateClock = function (distance) {
                var days = Math.floor(distance / (60 * 60 * 24));
                var hours = Math.floor((distance % (60 * 60 * 24)) / (60 * 60));
                var minutes = Math.floor((distance % (60 * 60)) / (60));
                var seconds = Math.floor(distance % 60);
                var texts = $this.data('text');
                var icons = icon ? icon : '';
                var daySimple = texts.day ? texts.day : texts.days;
                var hourSimple = texts.hour ? texts.hour : texts.hours;
                var minuteSimple = texts.minute ? texts.minute : texts.minutes;
                var secondSimple = texts.second ? texts.second : texts.seconds;

                $this.html(
                    icons +
                    '<span class="days timer"><span class="digits">' + days + '</span><span class="text">' + (days == 1 ? daySimple : texts.days) + '</span><span class="divider">:</span></span>' +
                    '<span class="hours timer"><span class="digits">' + (hours < 10 ? '0' : '') + hours + '</span><span class="text">' + (hours == 1 ? hourSimple : texts.hours) + '</span><span class="divider">:</span></span>' +
                    '<span class="minutes timer"><span class="digits">' + (minutes < 10 ? '0' : '') + minutes + '</span><span class="text">' + (minutes == 1 ? minuteSimple : texts.minutes) + '</span><span class="divider">:</span></span>' +
                    '<span class="seconds timer"><span class="digits">' + (seconds < 10 ? '0' : '') + seconds + '</span><span class="text">' + (seconds == 1 ? secondSimple : texts.seconds) + '</span></span>'
                );
            };

            updateClock(diff);

            var countdown = setInterval(function () {
                diff = diff - 1;
                var new_diff = diff < 0 ? 0 : diff;
                updateClock(new_diff);

                if (diff < 0) {
                    clearInterval(countdown);
                }
            }, 1000);
        });
    };

    /* Init tabs */
    $(function () {
        $('.ecomus-countdown').ecomus_countdown();

        $(document.body).on('ecomus_countdown', function (e, $el) {
            $el.ecomus_countdown();
        });
    });
})(jQuery);
// source --> https://www.pepiniere-lavandinpaysage.com/wp-content/themes/ecomus/assets/js/plugins/drift.min.js?ver=6.9.4 
(function(__wpcc){__wpcc.d=__wpcc.d||{};__wpcc.d.scope={};__wpcc.d.createTemplateTagFirstArg=function(a){return a.raw=a};__wpcc.d.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};__wpcc.d.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};__wpcc.d.global=__wpcc.d.getGlobal(this);var g;
"undefined"===typeof g&&(g=function(){});g.p="";}).call(this || window, (window.__wpcc = window.__wpcc || {}));

(function(__wpcc){var r=function(a){return h?a instanceof HTMLElement:a&&"object"===typeof a&&null!==a&&1===a.nodeType&&"string"===typeof a.nodeName},t=function(a,b){b.forEach(function(c){a.classList.add(c)})},u=function(a,b){b.forEach(function(c){a.classList.remove(c)})},x=function(){throw Error("Missing parameter");},y=function(a){this.isShowing=!1;var b=void 0===a.namespace?null:a.namespace,c=void 0===a.zoomFactor?x():a.zoomFactor;a=void 0===a.containerEl?x():a.containerEl;this.settings={namespace:b,zoomFactor:c,
containerEl:a};this.openClasses=this._buildClasses("open");this._buildElement()},z=function(a){a=void 0===a?{}:a;this._show=this._show.bind(this);this._hide=this._hide.bind(this);this._handleEntry=this._handleEntry.bind(this);this._handleMovement=this._handleMovement.bind(this);var b=void 0===a.el?x():a.el,c=void 0===a.zoomPane?x():a.zoomPane,e=void 0===a.sourceAttribute?x():a.sourceAttribute,f=void 0===a.handleTouch?x():a.handleTouch,q=void 0===a.onShow?null:a.onShow,k=void 0===a.onHide?null:a.onHide,
v=void 0===a.hoverDelay?0:a.hoverDelay,w=void 0===a.touchDelay?0:a.touchDelay,l=void 0===a.hoverBoundingBox?x():a.hoverBoundingBox,m=void 0===a.touchBoundingBox?x():a.touchBoundingBox,n=void 0===a.namespace?null:a.namespace,p=void 0===a.zoomFactor?x():a.zoomFactor,B=void 0===a.boundingBoxContainer?x():a.boundingBoxContainer;this.settings={el:b,zoomPane:c,sourceAttribute:e,handleTouch:f,onShow:q,onHide:k,hoverDelay:v,touchDelay:w,hoverBoundingBox:l,touchBoundingBox:m,namespace:n,zoomFactor:p,boundingBoxContainer:B,
passive:void 0===a.passive?!1:a.passive};if(this.settings.hoverBoundingBox||this.settings.touchBoundingBox)this.boundingBox=new y({namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,containerEl:this.settings.boundingBoxContainer});this.enabled=!0;this._bindEvents()},A=function(a){a=void 0===a?{}:a;this.HAS_ANIMATION=!1;if("undefined"!==typeof document){var b=document.createElement("div").style;this.HAS_ANIMATION="animation"in b||"webkitAnimation"in b}this._completeShow=this._completeShow.bind(this);
this._completeHide=this._completeHide.bind(this);this._handleLoad=this._handleLoad.bind(this);this.isShowing=!1;b=void 0===a.container?null:a.container;var c=void 0===a.zoomFactor?x():a.zoomFactor,e=void 0===a.inline?x():a.inline,f=void 0===a.namespace?null:a.namespace,q=void 0===a.showWhitespaceAtEdges?x():a.showWhitespaceAtEdges,k=void 0===a.containInline?x():a.containInline;this.settings={container:b,zoomFactor:c,inline:e,namespace:f,showWhitespaceAtEdges:q,containInline:k,inlineOffsetX:void 0===
a.inlineOffsetX?0:a.inlineOffsetX,inlineOffsetY:void 0===a.inlineOffsetY?0:a.inlineOffsetY,inlineContainer:void 0===a.inlineContainer?document.body:a.inlineContainer};this.openClasses=this._buildClasses("open");this.openingClasses=this._buildClasses("opening");this.closingClasses=this._buildClasses("closing");this.inlineClasses=this._buildClasses("inline");this.loadingClasses=this._buildClasses("loading");this._buildElement()},C=function(a,b){b=void 0===b?{}:b;this.VERSION="1.5.0";this.triggerEl=
a;this.destroy=this.destroy.bind(this);if(!r(this.triggerEl))throw new TypeError("`new Drift` requires a DOM element as its first argument.");a=b.namespace||null;var c=b.showWhitespaceAtEdges||!1,e=b.containInline||!1,f=b.inlineOffsetX||0,q=b.inlineOffsetY||0,k=b.inlineContainer||document.body,v=b.sourceAttribute||"data-zoom",w=b.zoomFactor||3,l=void 0===b.paneContainer?document.body:b.paneContainer,m=b.inlinePane||375,n="handleTouch"in b?!!b.handleTouch:!0,p=b.onShow||null,B=b.onHide||null,D="injectBaseStyles"in
b?!!b.injectBaseStyles:!0,E=b.hoverDelay||0,F=b.touchDelay||0,G=b.hoverBoundingBox||!1,H=b.touchBoundingBox||!1,I=b.boundingBoxContainer||document.body;b=b.passive||!1;if(!0!==m&&!r(l))throw new TypeError("`paneContainer` must be a DOM element when `inlinePane !== true`");if(!r(k))throw new TypeError("`inlineContainer` must be a DOM element");this.settings={namespace:a,showWhitespaceAtEdges:c,containInline:e,inlineOffsetX:f,inlineOffsetY:q,inlineContainer:k,sourceAttribute:v,zoomFactor:w,paneContainer:l,
inlinePane:m,handleTouch:n,onShow:p,onHide:B,injectBaseStyles:D,hoverDelay:E,touchDelay:F,hoverBoundingBox:G,touchBoundingBox:H,boundingBoxContainer:I,passive:b};this.settings.injectBaseStyles&&!document.querySelector(".drift-base-styles")&&(b=document.createElement("style"),b.type="text/css",b.classList.add("drift-base-styles"),b.appendChild(document.createTextNode(".drift-bounding-box,.drift-zoom-pane{position:absolute;pointer-events:none}@keyframes noop{0%{zoom:1}}@-webkit-keyframes noop{0%{zoom:1}}.drift-zoom-pane.drift-open{display:block}.drift-zoom-pane.drift-closing,.drift-zoom-pane.drift-opening{animation:noop 1ms;-webkit-animation:noop 1ms}.drift-zoom-pane{overflow:hidden;width:100%;height:100%;top:0;left:0}.drift-zoom-pane-loader{display:none}.drift-zoom-pane img{position:absolute;display:block;max-width:none;max-height:none}")),
a=document.head,a.insertBefore(b,a.firstChild));this._buildZoomPane();this._buildTrigger()},h="object"===typeof HTMLElement;y.prototype._buildClasses=function(a){var b=["drift-"+a],c=this.settings.namespace;c&&b.push(c+"-"+a);return b};y.prototype._buildElement=function(){this.el=document.createElement("div");t(this.el,this._buildClasses("bounding-box"))};y.prototype.show=function(a,b){this.isShowing=!0;this.settings.containerEl.appendChild(this.el);var c=this.el.style;c.width=Math.round(a/this.settings.zoomFactor)+"px";c.height=Math.round(b/this.settings.zoomFactor)+"px";t(this.el,this.openClasses)};
y.prototype.hide=function(){this.isShowing&&this.settings.containerEl.removeChild(this.el);this.isShowing=!1;u(this.el,this.openClasses)};
y.prototype.setPosition=function(a,b,c){var e=window.pageXOffset,f=window.pageYOffset;a=c.left+a*c.width-this.el.clientWidth/2+e;b=c.top+b*c.height-this.el.clientHeight/2+f;a<c.left+e?a=c.left+e:a+this.el.clientWidth>c.left+c.width+e&&(a=c.left+c.width-this.el.clientWidth+e);b<c.top+f?b=c.top+f:b+this.el.clientHeight>c.top+c.height+f&&(b=c.top+c.height-this.el.clientHeight+f);this.el.style.left=a+"px";this.el.style.top=b+"px"};z.prototype._preventDefault=function(a){a.preventDefault()};z.prototype._preventDefaultAllowTouchScroll=function(a){this.settings.touchDelay&&this._isTouchEvent(a)&&!this.isShowing||a.preventDefault()};z.prototype._isTouchEvent=function(a){return!!a.touches};
z.prototype._bindEvents=function(){this.settings.el.addEventListener("mouseenter",this._handleEntry);this.settings.el.addEventListener("mouseleave",this._hide);this.settings.el.addEventListener("mousemove",this._handleMovement);var a={passive:this.settings.passive};this.settings.handleTouch?(this.settings.el.addEventListener("touchstart",this._handleEntry,a),this.settings.el.addEventListener("touchend",this._hide),this.settings.el.addEventListener("touchmove",this._handleMovement,a)):(this.settings.el.addEventListener("touchstart",
this._preventDefault,a),this.settings.el.addEventListener("touchend",this._preventDefault),this.settings.el.addEventListener("touchmove",this._preventDefault,a))};
z.prototype._unbindEvents=function(){this.settings.el.removeEventListener("mouseenter",this._handleEntry);this.settings.el.removeEventListener("mouseleave",this._hide);this.settings.el.removeEventListener("mousemove",this._handleMovement);this.settings.handleTouch?(this.settings.el.removeEventListener("touchstart",this._handleEntry),this.settings.el.removeEventListener("touchend",this._hide),this.settings.el.removeEventListener("touchmove",this._handleMovement)):(this.settings.el.removeEventListener("touchstart",
this._preventDefault),this.settings.el.removeEventListener("touchend",this._preventDefault),this.settings.el.removeEventListener("touchmove",this._preventDefault))};z.prototype._handleEntry=function(a){this._preventDefaultAllowTouchScroll(a);this._lastMovement=a;"mouseenter"==a.type&&this.settings.hoverDelay?this.entryTimeout=setTimeout(this._show,this.settings.hoverDelay):this.settings.touchDelay?this.entryTimeout=setTimeout(this._show,this.settings.touchDelay):this._show()};
z.prototype._show=function(){if(this.enabled){var a=this.settings.onShow;a&&"function"===typeof a&&a();this.settings.zoomPane.show(this.settings.el.getAttribute(this.settings.sourceAttribute),this.settings.el.clientWidth,this.settings.el.clientHeight);this._lastMovement&&((a=this._lastMovement.touches)&&this.settings.touchBoundingBox||!a&&this.settings.hoverBoundingBox)&&this.boundingBox.show(this.settings.zoomPane.el.clientWidth,this.settings.zoomPane.el.clientHeight);this._handleMovement()}};
z.prototype._hide=function(a){a&&this._preventDefaultAllowTouchScroll(a);this._lastMovement=null;this.entryTimeout&&clearTimeout(this.entryTimeout);this.boundingBox&&this.boundingBox.hide();(a=this.settings.onHide)&&"function"===typeof a&&a();this.settings.zoomPane.hide()};
z.prototype._handleMovement=function(a){if(a)this._preventDefaultAllowTouchScroll(a),this._lastMovement=a;else if(this._lastMovement)a=this._lastMovement;else return;if(a.touches){a=a.touches[0];var b=a.clientX;var c=a.clientY}else b=a.clientX,c=a.clientY;a=this.settings.el.getBoundingClientRect();b=(b-a.left)/this.settings.el.clientWidth;c=(c-a.top)/this.settings.el.clientHeight;this.boundingBox&&this.boundingBox.setPosition(b,c,a);this.settings.zoomPane.setPosition(b,c,a)};
__wpcc.d.global.Object.defineProperties(z.prototype,{isShowing:{configurable:!0,enumerable:!0,get:function(){return this.settings.zoomPane.isShowing}}});A.prototype._buildClasses=function(a){var b=["drift-"+a],c=this.settings.namespace;c&&b.push(c+"-"+a);return b};A.prototype._buildElement=function(){this.el=document.createElement("div");t(this.el,this._buildClasses("zoom-pane"));var a=document.createElement("div");t(a,this._buildClasses("zoom-pane-loader"));this.el.appendChild(a);this.imgEl=document.createElement("img");this.el.appendChild(this.imgEl)};A.prototype._setImageURL=function(a){this.imgEl.setAttribute("src",a)};
A.prototype._setImageSize=function(a,b){this.imgEl.style.width=a*this.settings.zoomFactor+"px";this.imgEl.style.height=b*this.settings.zoomFactor+"px"};
A.prototype.setPosition=function(a,b,c){var e=this.imgEl.offsetWidth,f=this.imgEl.offsetHeight,q=this.el.offsetWidth,k=this.el.offsetHeight,v=q/2-e*a,w=k/2-f*b,l=q-e,m=k-f,n=0<l,p=0<m;f=n?l/2:0;e=p?m/2:0;l=n?l/2:l;m=p?m/2:m;this.el.parentElement===this.settings.inlineContainer&&(p=window.pageXOffset,n=window.pageYOffset,a=c.left+a*c.width-q/2+this.settings.inlineOffsetX+p,b=c.top+b*c.height-k/2+this.settings.inlineOffsetY+n,this.settings.containInline&&(a<c.left+p?a=c.left+p:a+q>c.left+c.width+p&&
(a=c.left+c.width-q+p),b<c.top+n?b=c.top+n:b+k>c.top+c.height+n&&(b=c.top+c.height-k+n)),this.el.style.left=a+"px",this.el.style.top=b+"px");this.settings.showWhitespaceAtEdges||(v>f?v=f:v<l&&(v=l),w>e?w=e:w<m&&(w=m));this.imgEl.style.transform="translate("+v+"px, "+w+"px)";this.imgEl.style.webkitTransform="translate("+v+"px, "+w+"px)"};
A.prototype._removeListenersAndResetClasses=function(){this.el.removeEventListener("animationend",this._completeShow);this.el.removeEventListener("animationend",this._completeHide);this.el.removeEventListener("webkitAnimationEnd",this._completeShow);this.el.removeEventListener("webkitAnimationEnd",this._completeHide);u(this.el,this.openClasses);u(this.el,this.closingClasses)};
A.prototype.show=function(a,b,c){this._removeListenersAndResetClasses();this.isShowing=!0;t(this.el,this.openClasses);this.imgEl.getAttribute("src")!=a&&(t(this.el,this.loadingClasses),this.imgEl.addEventListener("load",this._handleLoad),this._setImageURL(a));this._setImageSize(b,c);this._isInline?this._showInline():this._showInContainer();this.HAS_ANIMATION&&(this.el.addEventListener("animationend",this._completeShow),this.el.addEventListener("webkitAnimationEnd",this._completeShow),t(this.el,this.openingClasses))};
A.prototype._showInline=function(){this.settings.inlineContainer.appendChild(this.el);t(this.el,this.inlineClasses)};A.prototype._showInContainer=function(){this.settings.container.appendChild(this.el)};
A.prototype.hide=function(){this._removeListenersAndResetClasses();this.isShowing=!1;this.HAS_ANIMATION?(this.el.addEventListener("animationend",this._completeHide),this.el.addEventListener("webkitAnimationEnd",this._completeHide),t(this.el,this.closingClasses)):(u(this.el,this.openClasses),u(this.el,this.inlineClasses))};
A.prototype._completeShow=function(){this.el.removeEventListener("animationend",this._completeShow);this.el.removeEventListener("webkitAnimationEnd",this._completeShow);u(this.el,this.openingClasses)};
A.prototype._completeHide=function(){this.el.removeEventListener("animationend",this._completeHide);this.el.removeEventListener("webkitAnimationEnd",this._completeHide);u(this.el,this.openClasses);u(this.el,this.closingClasses);u(this.el,this.inlineClasses);this.el.style.left="";this.el.style.top="";this.el.parentElement===this.settings.container?this.settings.container.removeChild(this.el):this.el.parentElement===this.settings.inlineContainer&&this.settings.inlineContainer.removeChild(this.el)};
A.prototype._handleLoad=function(){this.imgEl.removeEventListener("load",this._handleLoad);u(this.el,this.loadingClasses)};__wpcc.d.global.Object.defineProperties(A.prototype,{_isInline:{configurable:!0,enumerable:!0,get:function(){var a=this.settings.inline;return!0===a||"number"===typeof a&&window.innerWidth<=a}}});C.prototype._buildZoomPane=function(){this.zoomPane=new A({container:this.settings.paneContainer,zoomFactor:this.settings.zoomFactor,showWhitespaceAtEdges:this.settings.showWhitespaceAtEdges,containInline:this.settings.containInline,inline:this.settings.inlinePane,namespace:this.settings.namespace,inlineOffsetX:this.settings.inlineOffsetX,inlineOffsetY:this.settings.inlineOffsetY,inlineContainer:this.settings.inlineContainer})};
C.prototype._buildTrigger=function(){this.trigger=new z({el:this.triggerEl,zoomPane:this.zoomPane,handleTouch:this.settings.handleTouch,onShow:this.settings.onShow,onHide:this.settings.onHide,sourceAttribute:this.settings.sourceAttribute,hoverDelay:this.settings.hoverDelay,touchDelay:this.settings.touchDelay,hoverBoundingBox:this.settings.hoverBoundingBox,touchBoundingBox:this.settings.touchBoundingBox,namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,boundingBoxContainer:this.settings.boundingBoxContainer,
passive:this.settings.passive})};C.prototype.setZoomImageURL=function(a){this.zoomPane._setImageURL(a)};C.prototype.disable=function(){this.trigger.enabled=!1};C.prototype.enable=function(){this.trigger.enabled=!0};C.prototype.destroy=function(){this.trigger._hide();this.trigger._unbindEvents()};
__wpcc.d.global.Object.defineProperties(C.prototype,{isShowing:{configurable:!0,enumerable:!0,get:function(){return this.zoomPane.isShowing}},zoomFactor:{configurable:!0,enumerable:!0,get:function(){return this.settings.zoomFactor},set:function(a){this.settings.zoomFactor=a;this.zoomPane.settings.zoomFactor=a;this.trigger.settings.zoomFactor=a;this.boundingBox.settings.zoomFactor=a}}});Object.defineProperty(C.prototype,"isShowing",{get:function(){return this.isShowing}});
Object.defineProperty(C.prototype,"zoomFactor",{get:function(){return this.zoomFactor},set:function(a){this.zoomFactor=a}});C.prototype.setZoomImageURL=C.prototype.setZoomImageURL;C.prototype.disable=C.prototype.disable;C.prototype.enable=C.prototype.enable;C.prototype.destroy=C.prototype.destroy;window.Drift=C;}).call(this || window, (window.__wpcc = window.__wpcc || {}));
// source --> https://www.pepiniere-lavandinpaysage.com/wp-content/themes/ecomus/assets/js/woocommerce/single-product.min.js?ver=20250107 
(function(w){"use strict";var f=f||{};f.init=function(){f.$body=w(document.body),f.$window=w(window),f.$header=w("#site-header");this.singleProductGallery();this.productImageZoom();f.$body.on("ecomus_product_gallery_zoom",function(){f.productImageZoom()});this.productLightBox();this.ecomusMore();this.productTabsDropdown();this.upsellsProductCarousel();this.relatedProductCarousel()};f.productGallery=function(o,t=w(".woocommerce-product-gallery")){if(typeof Swiper==="undefined"){return}var r=w(window);var i=null;var s=null;function n(e,t){if(e.length<1){return}return new Swiper(e.get(0),t)}function e(e){e.enable()}function a(e){if(e){e.disable()}}function c(e){var t={loop:false,autoplay:false,speed:800,spaceBetween:30,watchOverflow:true,autoHeight:true,navigation:{nextEl:e.find(".swiper-button-next").get(0),prevEl:e.find(".swiper-button-prev").get(0)},on:{init:function(){setTimeout(function(){e.css("opacity",1)},100);f.$body.trigger("ecomus_product_gallery_init")},slideChange:function(){if(this.slides[this.realIndex].getAttribute("data-zoom_status")=="false"){this.$el.parent().addClass("swiper-item-current-extra")}else{if(this.$el.parent().hasClass("swiper-item-current-extra")){this.$el.parent().removeClass("swiper-item-current-extra")}}},slideChangeTransitionEnd:function(){f.$body.trigger("ecomus_product_gallery_slideChangeTransitionEnd")}}};if(s){t.thumbs={swiper:s}}return t}function l(){var e=t.find(".woocommerce-product-gallery__wrapper");e.addClass("woocommerce-product-gallery__slider swiper");e.wrapInner('<div class="swiper-wrapper"></div>');e.find(".swiper-wrapper").after('<span class="ecomus-svg-icon em-button-light ecomus-swiper-button swiper-button swiper-button-prev"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 11L0 5.5L5.5 0L6.47625 0.97625L1.9525 5.5L6.47625 10.0238L5.5 11Z" fill="currentColor"/></svg></span>');e.find(".swiper-wrapper").after('<span class="ecomus-svg-icon em-button-light ecomus-swiper-button swiper-button swiper-button-next"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 11L7 5.5L1.5 0L0.52375 0.97625L5.0475 5.5L0.52375 10.0238L1.5 11Z" fill="currentColor"/></svg></span>');e.find(".woocommerce-product-gallery__image").addClass("swiper-slide");return n(e,c(e))}function u(t){var e={spaceBetween:10,watchOverflow:true,watchSlidesProgress:true,autoHeight:true,on:{beforeInit:function(){var e=1;t.find(".swiper-slide").each(function(){w(this).parent().find(".swiper-slide:nth-child("+e+")").css("--animation-delay",e*3/10+"s");e++})},init:function(){setTimeout(function(){t.css("opacity",1)},100);f.$body.trigger("ecomus_product_thumbnails_init")}}};if(o){e.breakpoints={0:{direction:"horizontal",slidesPerView:5},1200:{direction:"vertical",slidesPerView:"auto"}}}else{e.direction="horizontal";e.slidesPerView=5}return e}function d(){var e=t.find(".ecomus-product-gallery-thumbnails");e.addClass("swiper");e.wrapInner('<div class="woocommerce-product-thumbnail__nav swiper-wrapper"></div>');e.find(".woocommerce-product-gallery__image").addClass("swiper-slide");return n(e,u(e))}function p(){if(r.width()<1200){e(s);e(i)}else{a(s);a(i)}}function m(){t.imagesLoaded(function(){var e=t.find(".ecomus-product-gallery-thumbnails");e.appendTo(t);s=d();i=l();if(typeof ecomusData.product_gallery_slider!=="undefined"&&!ecomusData.product_gallery_slider){t.addClass("woocommerce-product-gallery--reponsive");p();r.on("resize",function(){p()})}})}m()};f.singleProductGallery=function(){var e=w("div.product .woocommerce-product-gallery");if(!e.length){return}if(e.hasClass("woocommerce-product-gallery--vertical")){w(".woocommerce-product-gallery").on("product_thumbnails_slider_vertical wc-product-gallery-after-init",function(){f.productGallery(true)})}else{f.productGallery(false);w(".woocommerce-product-gallery").on("product_thumbnails_slider_horizontal",function(){f.productGallery(false)})}};f.productImageZoom=function(){if(typeof Drift==="undefined"){return}var e=w(".product-gallery-summary");if(!e){return}if(ecomusData.product_image_zoom=="none"){return}var t=e.find(".entry-summary"),o=e.find(".woocommerce-product-gallery__wrapper");if(ecomusData.product_image_zoom=="bounding"){var r=w('<div class="ecomus-product-zoom-wrapper" />');t.prepend(r)}var i={containInline:true};if(ecomusData.product_image_zoom=="bounding"){i.paneContainer=r.get(0);i.hoverBoundingBox=true;i.zoomFactor=2}if(ecomusData.product_image_zoom=="inner"){i.zoomFactor=3}if(ecomusData.product_image_zoom=="magnifier"){i.zoomFactor=2;i.inlinePane=true}o.find(".woocommerce-product-gallery__image").each(function(){var e=w(this),t=e.find("img"),o=e.find("a").attr("href");if(e.hasClass("ecomus-product-video")||e.data("zoom_status")==false){return}if(ecomusData.product_image_zoom=="inner"){i.paneContainer=e.get(0)}t.attr("data-zoom",o);new Drift(t.get(0),i)});w(".single-product div.product .product-gallery-summary .variations_form").on("show_variation hide_variation",function(){var e=w(this).closest(".product-gallery-summary"),t=e.find(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image").eq(0),o=t.find("a").attr("href"),r=t.find("img");r.attr("data-zoom",o)});f.$window.on("resize",function(){if(f.$window.width()<1200){if(!w(".single-product div.product .woocommerce-product-gallery").hasClass("woocommerce-product-gallery--has-zoom")){return}var e=false;w(".woocommerce-product-gallery--has-zoom .woocommerce-product-gallery__image").on("touchstart",function(){e=true});w(".woocommerce-product-gallery--has-zoom .woocommerce-product-gallery__image").on("touchmove",function(){e=false});w(".woocommerce-product-gallery--has-zoom .woocommerce-product-gallery__image").on("touchend",function(){if(e){w(this).addClass("zoom-enable")}else{w(this).removeClass("zoom-enable")}})}})};f.ecomusMore=function(){var e=w(document).find(".short-description__content");e.each(function(){if(jQuery(this)[0].scrollHeight>jQuery(this)[0].clientHeight){jQuery(this).siblings(".short-description__more").removeClass("hidden")}});w(document.body).on("click",".short-description__more",function(e){e.preventDefault();var t=w(this).data("settings"),o=t.more,r=t.less;if(w(this).hasClass("less")){w(this).removeClass("less");w(this).text(o);w(this).siblings(".short-description__content").removeAttr("style")}else{w(this).addClass("less");w(this).text(r);w(this).siblings(".short-description__content").css("-webkit-line-clamp","inherit")}})};f.productLightBox=function(){var e=w(".woocommerce-product-gallery");w(".woocommerce-product-gallery__image").on("click","a",function(e){return false});if(!e){return}if(!ecomusData.product_image_lightbox){return}t();f.$body.on("ecomus_product_gallery_lightbox",function(){t()});w(document).on("click",".ecomus-button--product-lightbox",function(e){e.preventDefault();var t=w(".pswp")[0],o=n(w(this).siblings(".woocommerce-product-gallery__wrapper").find(".woocommerce-product-gallery__image")),r=w(this).siblings(".woocommerce-product-gallery__wrapper").find(".swiper-slide-active");var i=w.extend({index:w(r).index(),addCaptionHTMLFn:function(e,t){if(!e.title){t.children[0].textContent="";return false}t.children[0].textContent=e.title;return true}},wc_single_product_params.photoswipe_options);var s=new PhotoSwipe(t,PhotoSwipeUI_Default,o,i);s.init()});function t(){w(".woocommerce-product-gallery__image").on("click","a",function(e){return false});e.append('<a href="#" class="ecomus-button--product-lightbox em-flex em-flex-align-center em-flex-center"><span class="ecomus-svg-icon ecomus-svg-icon--fullscreen"><svg width="24" height="24" aria-hidden="true" role="img" focusable="false" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.672 17.0111L17.672 12.0526L16.4091 12.0526L16.4091 15.4846L11.5285 10.604L10.6352 11.4972L15.5158 16.3778L12.082 16.3796L12.082 17.6425L17.0405 17.6425C17.3878 17.6407 17.6701 17.3584 17.672 17.0111ZM2.48608 16.3778L5.91808 16.3778L5.91808 17.6407L0.961377 17.6425C0.78679 17.6425 0.628951 17.5701 0.515665 17.4568C0.40053 17.3417 0.329985 17.1856 0.329948 17.0111L0.329912 12.0525H1.59277V15.4845L6.47335 10.6039L7.36662 11.4972L2.48604 16.3778L2.48608 16.3778ZM15.514 1.56337H12.082L12.0819 0.300476L17.0405 0.300512C17.1234 0.300625 17.2054 0.317088 17.2819 0.348957C17.3584 0.380826 17.4278 0.427474 17.4862 0.486229C17.6032 0.603249 17.6719 0.764822 17.6719 0.931941L17.6701 5.88864L16.4072 5.88864L16.4072 2.45664L11.5267 7.33722L10.6334 6.44395L15.514 1.56337ZM6.47523 7.33722L7.3685 6.44395L2.48608 1.56152L5.91993 1.56337L5.91808 0.298663L0.961377 0.300512C0.878435 0.300435 0.796292 0.316715 0.719649 0.34842C0.643005 0.380126 0.573367 0.426633 0.514718 0.485282C0.456069 0.543931 0.409562 0.613569 0.377857 0.690212C0.346151 0.766856 0.329871 0.848999 0.329948 0.931941L0.328062 5.88868L1.59277 5.89053L1.59281 2.45479L6.47523 7.33722Z"></path></svg></span></a>')}function n(e){var l=[];if(e.length>0){e.each(function(e,t){var o=w(t).find("img");if(w(t).hasClass("ecomus-product-video")){var r=w(t).find(".ecomus-video-wrapper").html();if(r.length){var i={html:'<div class="pswp__video">'+r+"</div>"};l.push(i)}}else if(o.length){var s=o.attr("data-large_image"),n=o.attr("data-large_image_width"),a=o.attr("data-large_image_height"),c=o.attr("alt"),i={alt:c,src:s,w:n,h:a,title:o.attr("data-caption")?o.attr("data-caption"):o.attr("title")};l.push(i)}})}return l}};f.productTabsDropdown=function(){var e=w(".woocommerce-tabs--dropdown");if(!e){return}if(ecomusData.product_tabs_layout!=="accordion"){return}e.on("click",".woocommerce-tabs-title",function(){if(w(this).hasClass("active")){if(w(this).closest(".woocommerce-tabs--dropdown").hasClass("wc-tabs-first--opened")){w(this).closest(".woocommerce-tabs--dropdown").removeClass("wc-tabs-first--opened")}w(this).removeClass("active");w(this).siblings(".woocommerce-tabs-content").slideUp(200)}else{w(this).addClass("active");w(this).siblings(".woocommerce-tabs-content").slideDown(200)}});w("a.woocommerce-review-link").on("click",function(){w("#tab-reviews .woocommerce-tabs-title:not(.active)").trigger("click")});w(document).ready(function(){if(window.location.href.indexOf("#reviews")>-1){w("#tab-reviews .woocommerce-tabs-title:not(.active)").trigger("click")}})};f.upsellsProductCarousel=function(){var e=ecomusData.upsells_products_columns;f.productsCarousel(w(".products.upsells"),e)};f.relatedProductCarousel=function(){var e=ecomusData.related_products_columns;f.productsCarousel(w(".products.related"),e)};f.productsCarousel=function(s,e){if(!s.length){return}var t=s.find("ul.products");t.wrap('<div class="products-carousel swiper ecomus-carousel--elementor" data-spacing="30"></div>');t.after('<div class="swiper-pagination swiper-pagination-bullet--small"></div>');t.addClass("swiper-wrapper");t.find("li.product").addClass("swiper-slide");if(ecomusData.product_card_hover=="slider"){t.parent().after('<span class="ecomus-svg-icon swiper-button-outline-dark ecomus-swiper-button swiper-button swiper-button-prev"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 11L0 5.5L5.5 0L6.47625 0.97625L1.9525 5.5L6.47625 10.0238L5.5 11Z" fill="currentColor"/></svg></span>');t.parent().after('<span class="ecomus-svg-icon swiper-button-outline-dark ecomus-swiper-button swiper-button swiper-button-next"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 11L7 5.5L1.5 0L0.52375 0.97625L5.0475 5.5L0.52375 10.0238L1.5 11Z" fill="currentColor"/></svg></span>')}else{t.after('<span class="ecomus-svg-icon swiper-button-light ecomus-swiper-button swiper-button swiper-button-prev"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 11L0 5.5L5.5 0L6.47625 0.97625L1.9525 5.5L6.47625 10.0238L5.5 11Z" fill="currentColor"/></svg></span>');t.after('<span class="ecomus-svg-icon swiper-button-light ecomus-swiper-button swiper-button swiper-button-next"><svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 11L7 5.5L1.5 0L0.52375 0.97625L5.0475 5.5L0.52375 10.0238L1.5 11Z" fill="currentColor"/></svg></span>')}var o=t.closest(".products-carousel"),n=t.find(".product-thumbnail");var r={loop:false,autoplay:false,speed:800,watchSlidesVisibility:true,watchOverflow:true,navigation:{nextEl:s.find(".ecomus-swiper-button.swiper-button-next").get(0),prevEl:s.find(".ecomus-swiper-button.swiper-button-prev").get(0)},pagination:{el:o.find(".swiper-pagination").get(0),type:"bullets",clickable:true},on:{init:function(){this.$el.css("opacity",1)},beforeInit:function(){var i=this;if(n.length>0){n.imagesLoaded(function(){var e=n.outerHeight(),t=s.find("h2").first(),o=e/2;if(ecomusData.product_card_hover==="slider"){s.addClass("em-product-hover--slider");if(t.length){var r=t.outerHeight();o=o+r}}else{o=e/2+15}w(i.navigation.$nextEl).css({"--em-arrow-top":o+"px"});w(i.navigation.$prevEl).css({"--em-arrow-top":o+"px"})})}},resize:function(){var i=this;if(n.length>0){n.imagesLoaded(function(){var e=n.outerHeight(),t=s.find("h2").first(),o=e/2;if(ecomusData.product_card_hover==="slider"){s.addClass("product-hover--slider");if(t.length){var r=t.outerHeight();o=o+r}}else{o=e/2+15}w(i.navigation.$nextEl).css({"--em-arrow-top":o+"px"});w(i.navigation.$prevEl).css({"--em-arrow-top":o+"px"})})}}},spaceBetween:o.data("spacing"),breakpoints:{300:{slidesPerView:e.mobile,slidesPerGroup:2,spaceBetween:15},768:{slidesPerView:e.tablet,spaceBetween:o.data("spacing")},1200:{slidesPerView:e.desktop}}};new Swiper(o.get(0),r)};f.init()})(jQuery);