'),$("#MiniBasketPushClaim").after(`
XL coffee in your Shopping Bag brew exclusively on Vertuo Creatista, Lattissima, Next or Pop machines.
`),$("#MiniBasketPushAddProduct").empty(),$.each(i,function(e,i){napi.catalog().getProduct(i).then(function(e){let i='
![Store Locator | Nespresso Boutiques | Nespresso USA (1) Store Locator | Nespresso Boutiques | Nespresso USA (1)](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
';$("#MiniBasketPushAddProduct").append(i)})}),$("#MiniBasketPushClaim").on("click",function(){$("#MiniBasketPush").toggleClass("collapsed")})),clearInterval(t))},50),console.log("Mini Basket Push Added")):s?(document.querySelector("#MiniBasketPush").style.display="block",console.log("Mini Basket Show Hidden Push")):document.querySelector("#MiniBasketPush")&&(document.querySelector("#MiniBasketPush").style.display="none",console.log("Mini Basket Hide Push")),n()})};(()=>{let e=document.getElementById("main-container")||document.getElementById("main"),i=!1,n=function(e,n){for(let s of e)if("childList"===s.type){let o=document.querySelector("#ta-mini-basket__open");null!==o&&!i&&$("#ta-mini-basket__open").length>0&&($("#ta-mini-basket__open").on("click",function(){console.log("Mini Basket Clicked"),t()}),n.disconnect(),i=!0)}},s=new MutationObserver(n);s.observe(e,{attributes:!0,childList:!0,subtree:!0})})();let n=()=>{let e=document.querySelectorAll(".MiniBasketItem"),i=document.querySelector(".MiniBasketDropdown"),n=function(i,n){for(let s of i)"childList"===s.type&&window.napi.cart().read().then(i=>{e.length!==i.length&&(prevCartLength=i.length,t(),n.disconnect())})},s=new MutationObserver(n);s.observe(i,{attributes:!0,childList:!0,subtree:!0})};e=setInterval(function(){$("#MiniBasketPush").length>0&&$("#MiniBasketPush").remove(),clearInterval(e)},50)}();`; // Select the node that will be observed for mutations const targetNode = document.getElementById('top'); let triggered = false; // Options for the observer (which mutations to observe) const config = { attributes: true, childList: true, subtree: true }; // Callback function to execute when mutations are observed const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 for(const mutation of mutationsList) { if (mutation.type === 'childList') { if(document.querySelector('.Header__top-wrapper') !== null && !triggered) { document.querySelector('.Header__top-wrapper').insertAdjacentHTML('afterbegin', markup); if (secondLine.length < 1) { document.getElementById("bannerText").style.lineHeight = "30px"; }; observer.disconnect(); triggered = true; } } } }; // Create an observer instance linked to the callback function const observer = new MutationObserver(callback); // Start observing the target node for configured mutations observer.observe(targetNode, config); })();