PageSourceSearch

https://whiteandgreenhome.com/cdn/shop/t/29/assets/checkout-popup.js?v=9889257331090154931741734377

js whiteandgreenhome.com collected 2026-10-04 13:34:01 UTC 3,897 bytes, 12 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){var popupConfig={popupText:"Please note that all orders of \xA3135 or more are subject to duties and customs charges. These will be calculated and paid for at checkout. There will be no further paperwork nor fees upon delivery.",textSize:"16px",popupTitle:"Important Information for UK Mainland Customers",titleSize:"h3",buttonText:"Continue",iconImageUrl:"//whiteandgreenhome.com/cdn/shop/files/white-green-logo-svg_46887b1c-edad-43d4-ba69-9d6a89eec539.png?v=1738463585",popupIcon:"info",popupEnabled:!0,buttonColor:"#687973",buttonTextSize:"14px"};if(popupConfig.popupEnabled){let esMercadoUK2=function(){return Shopify.currency.active==="GBP"?!0:(Shopify.checkout?Shopify.checkout.shipping_address.country_code:"")==="GB"},intentarReemplazo2=function(){if(reemplazoRealizado=!1,!esUK)return;const textoConfiguradoRichText="<p>Taxes included. Discounts, shipping, and customs calculated at checkout.</p>",smallElements=document.querySelectorAll("small.tax-note.caption-large.rte"),productTaxElements=document.querySelectorAll(".product__tax.caption.rte");productTaxElements.length>0&&productTaxElements.forEach(function(productTaxElement){productTaxElement&&textoConfiguradoRichText&&(console.log("Reemplazando texto en el elemento .product__tax.caption.rte"),productTaxElement.innerHTML=textoConfiguradoRichText)}),smallElements.forEach(function(smallElement){smallElement&&textoConfiguradoRichText&&(console.log("Reemplazando texto en el elemento .taxes-discounts small.tax-note.caption-large.rte"),smallElement.innerHTML=textoConfiguradoRichText)}),(smallElements.length>0||productTaxElements.length>0)&&(reemplazoRealizado=!0,console.log("Reemplazo de texto realizado"))},injectPopupStyles2=function(){const style=document.createElement("style");style.innerHTML=`
2        .swal2-title {
3          font-size: ${popupConfig.titleSize};
4        }
5        .swal2-html-container {
6          font-size: ${popupConfig.textSize};
7        }
8        .swal2-confirm {
9          font-size: ${popupConfig.buttonTextSize} !important;
10        }
11      `,document.head.appendChild(style)},mostrarPopUp2=function(){injectPopupStyles2();let popupText=popupConfig.popupText;popupText.length>400&&(popupText=popupText.substring(0,400)+"..."),popupText=popupText.replace(/\n/g,"<br>");let icon=popupConfig.popupIcon;popupConfig.iconImageUrl&&popupConfig.iconImageUrl!==""&&(icon=popupConfig.iconImageUrl),Swal.fire({title:popupConfig.popupTitle,html:popupText,imageUrl:popupConfig.iconImageUrl||null,icon:popupConfig.iconImageUrl?void 0:popupConfig.popupIcon,imageWidth:100,imageHeight:100,confirmButtonText:popupConfig.buttonText,confirmButtonColor:popupConfig.buttonColor,preConfirm:()=>new Promise(resolve=>{setTimeout(()=>{window.location.href="/checkout",resolve()},2e3)})})},asignarEventoCheckout2=function(){const checkoutButton=document.querySelector('button[name="checkout"]');checkoutButton&&!checkoutButton.dataset.popupAssigned&&(checkoutButton.dataset.popupAssigned="true",checkoutButton.addEventListener("click",function(event){esUK&&(event.preventDefault(),mostrarPopUp2())}))},manejarPaginaCarrito2=function(){window.location.pathname==="/cart"&&asignarEventoCheckout2()},observarMiniCart2=function(){const miniCart=document.getElementById("mini-cart");if(!miniCart)return;new MutationObserver(()=>{asignarEventoCheckout2()}).observe(miniCart,{childList:!0,subtree:!0})};var esMercadoUK=esMercadoUK2,intentarReemplazo=intentarReemplazo2,injectPopupStyles=injectPopupStyles2,mostrarPopUp=mostrarPopUp2,asignarEventoCheckout=asignarEventoCheckout2,manejarPaginaCarrito=manejarPaginaCarrito2,observarMiniCart=observarMiniCart2;const esUK=esMercadoUK2();let reemplazoRealizado=!1;intentarReemplazo2(),observarMiniCart2(),manejarPaginaCarrito2()}});
12//# sourceMappingURL=/cdn/shop/t/29/assets/checkout-popup.js.map?v=9889257331090154931741734377

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.