(function() { class WmseUtils { static isHomePage() { if (window.hasOwnProperty('ShopifyAnalytics') && window.ShopifyAnalytics.hasOwnProperty('meta') && window.ShopifyAnalytics.meta.hasOwnProperty('page') && window.ShopifyAnalytics.meta.page.hasOwnProperty('pageType') && window.ShopifyAnalytics.meta.page.pageType !== undefined) { return ShopifyAnalytics.meta.page.pageType === 'home'; } const pathname = window.location.pathname; const langCodePattern = /^\/[a-z]{2}(\/)?$/; return pathname === '/' || pathname === '' || langCodePattern.test(pathname); } } console.group( '%cFX: 3D Seasonal Effects by Effective Apps', 'background: linear-gradient(90deg, #E9312A 0%, #2E8BEF 50%, #FF9800 100%); color: #ffffff; font-weight: 700; font-size: 14px; padding: 4px 8px; border-radius: 6px;' ); console.log( `%c🎃 Beautiful 3D falling effects for every holiday (Halloween, Christmas, BFCM, Valentine's Day & more)
🎉 Celebrate all seasons with festive animations and decorations
⏰ Effects Scheduler to auto-activate for your holiday calendar
🎯 Display the effects store-wide or on specific pages only.

Learn more at https://apps.shopify.com/f867e0a9a37ac00da519924c26249216?utm_source=browser-console&utm_medium=console&utm_campaign=wmse (Need help? Contact us at support@effectify.io)`, 'font-size: 14px;' ); console.groupEnd(); if (window.WMSE_SCRIPT_INJECTED !== undefined) { return; } window.WMSE_SCRIPT_INJECTED = true; function GenericImageEffect(numberOfImages=30) {
    var falling = true;
    TweenLite.set("#eaAppsContainer",{perspective:600});
    var container = document.getElementById("eaAppsContainer"),	w = window.innerWidth , h = window.innerHeight;
    for (i=0; i < numberOfImages; i++){
         var Div = document.createElement('span');
         TweenLite.set(Div,{attr:{class:'ea-dot'},x:R(0,w),y:R(-200,-150),z:R(-200,200)});
         container.appendChild(Div);
         bindAnimation(Div, h);
    }
}

function bindAnimation(elm, h) {
    TweenMax.to(elm,R(6,15),{y:h+100,ease:Linear.easeNone,repeat:-1,delay:-15});
    TweenMax.to(elm,R(4,8),{x:'+=100',rotationZ:R(0,180),repeat:-1,yoyo:true,ease:Sine.easeInOut});
    TweenMax.to(elm,R(2,8),{rotationX:R(0,0),rotationY:R(0,0),repeat:-1,yoyo:true,ease:Sine.easeInOut,delay:-5});
};

function R(min,max) {return min+Math.random()*(max-min)};

function main() {
    let initialDisplay = "block";
    if ('2' === '3') {
        if (!WmseUtils.isHomePage())
            initialDisplay = "none";
    }
    else if ('3' === '3' && 'https://dexter-et-mango.fr/products/coffret-de-noel-1'.split(",").every(url => new URL(url).pathname !== window.location.pathname)) {
        initialDisplay = "none";
    }

    jQuery('body').prepend('<div style="display: ' + initialDisplay + '; position: fixed;z-index: 9999;left: 0;right: 0;bottom: 0;pointer-events: none;" id="eaAppsContainer"></div>');
    loadScript('https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js', 'sha512-IQLehpLoVS4fNzl7IfH8Iowfm5+RiMGtHykgZJl9AWMgqx0AmJ6cRWcB+GaGVtIsnC4voMfm8f2vwtY+6oPjpQ==', function() {
        jQuery('head').prepend('<style>#eaAppsContainer {width:100%; height:100%; }.ea-dot{width:40px; height:40px; position:absolute; background: url(https://cdn.shopify.com/s/files/1/0395/1797/8787/t/6/assets/Star_Decorative.png); background-size: 100% 100%;}</style>');
        GenericImageEffect(parseInt('12'));
        let effectTimeout = parseInt('0');
        if (effectTimeout > 0) {
            setTimeout(function() {
                document.getElementById('eaAppsContainer').remove();
            }, effectTimeout * 1000);
        }
    });
}

function loadScript(url, integrity, success){
     var script = document.createElement('script');
     script.src = url;
     script.integrity = integrity;
     script.crossOrigin = 'anonymous';
     var head = document.getElementsByTagName('head')[0],
     done = false;
     head.appendChild(script);
     // Attach handlers for all browsers
    script.onload = script.onreadystatechange = function() {
        if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
             done = true;
             success();
             script.onload = script.onreadystatechange = null;
             head.removeChild(script);
        }
    };
}

if (typeof jQuery == 'undefined'){
    loadScript('https://cdnjs.cloudflare.com/ajax/libs/jquery/4.0.0/jquery.min.js', 'sha512-8LENNbXmzI/Gbj+OwXmqR6V4QaUAw0/porPzy1+dQoJqC0JPHedWoe0DDOTL2uHA5XXJyIsPtiMHH86pVlay6A==', main);
} else {
    main();
}function WMSE_getShopifyThemeName() { try { if (window.WMSE_THEME_NAME_OVERRIDE !== undefined) { return window.WMSE_THEME_NAME_OVERRIDE; } else if (window.BOOMR !== undefined && window.BOOMR.themeName !== undefined && window.BOOMR.themeName.length > 0) { return window.BOOMR.themeName.toLowerCase(); } else if (window.Shopify !== undefined && window.Shopify.theme !== undefined && window.Shopify.theme !== null && window.Shopify.theme.schema_name !== undefined && window.Shopify.theme.schema_name !== null && window.Shopify.theme.schema_name.length > 0) { return window.Shopify.theme.schema_name.toLowerCase(); } else if (window.Shopify !== undefined && window.Shopify.theme !== undefined && window.Shopify.theme !== null && window.Shopify.theme.name !== undefined && window.Shopify.theme.name !== null && window.Shopify.theme.name.length > 0){ return Shopify.theme.name.toLowerCase(); } else { return ""; } } catch (err) { return ""; } } function getLsWithExpiry(key){const itemStr=localStorage.getItem(key);if (!itemStr){return null;}const item=JSON.parse(itemStr);const now=new Date();if (now.getTime() > item.expiry){localStorage.removeItem(key);return null;}return item.value.toString();}function setLsWithExpiry(key, value, ttl){value=value.toString();const now=new Date();const item={value: value,expiry: now.getTime() + ttl,};localStorage.setItem(key, JSON.stringify(item));} function verifyjQuery(e){if("undefined"==typeof jQuery){var t=document.createElement("script");t.src="https://cdnjs.cloudflare.com/ajax/libs/jquery/4.0.0/jquery.min.js";t.integrity="sha512-8LENNbXmzI/Gbj+OwXmqR6V4QaUAw0/porPzy1+dQoJqC0JPHedWoe0DDOTL2uHA5XXJyIsPtiMHH86pVlay6A==";t.crossOrigin="anonymous";var a=document.getElementsByTagName("head")[0],n=!1;a.appendChild(t),t.onload=t.onreadystatechange=function(){n||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(n=!0,e(),t.onload=t.onreadystatechange=null,a.removeChild(t))}}else e()} verifyjQuery(function() { function addCssToDocument(css){ var style = document.createElement('style'); style.innerText = css; document.head.appendChild(style); } addCssToDocument('[effective-apps-decoration="true"] { zoom: 0.4; } @media all and (max-width: 600px) { [effective-apps-decoration="true"] { zoom: 0.6 !important; } }');   if (['ella', 'wayan', 'halo', 'bonnita'].includes(WMSE_getShopifyThemeName())) { addCssToDocument('*:empty { display: unset; }'); } if (['halo'].includes(WMSE_getShopifyThemeName())) { addCssToDocument('.background-overlay{display:none!important;}'); } if (['horizon'].includes(WMSE_getShopifyThemeName())) { addCssToDocument('.ea-apps-web-left{width:unset!important;}'); } if (['shapes', 'flex', 'lumia', 'publisher'].includes(WMSE_getShopifyThemeName())) { addCssToDocument('html, body { width: unset !important; height: unset !important; }'); } }); }());