PageSourceSearch

https://www.aiyabeauty.es/cdn/shop/t/3/assets/custom-cart-login-override.js?v=161195093886232970361759061697

js aiyabeauty.es collected 2026-10-04 07:51:37 UTC 1,561 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const CONTAINER=".ll__cart-ho4ed3",DRAWER=".drawer--container";function getLocale(){return window.Shopify&&Shopify.locale||(document.documentElement.getAttribute("lang")||"").trim()}function getRegionCountry(){try{if(window.Shopify?.country)return Shopify.country;if(window.Shopify?.market?.iso_code)return Shopify.market.iso_code}catch{}const html=document.documentElement;return html.getAttribute("data-country")||html.getAttribute("data-default-country")||""}function rewriteCartLoginLinks(root=document){const locale=getLocale(),regionCountry=getRegionCountry(),loginUrl=new URL("/customer_authentication/login",window.location.origin);loginUrl.searchParams.set("return_to","/cart"),locale&&loginUrl.searchParams.set("locale",locale),regionCountry&&loginUrl.searchParams.set("region_country",regionCountry),root.querySelectorAll(`${CONTAINER} a[href]`).forEach(a=>{a.dataset.loginRewritten!=="true"&&(a.href=loginUrl.toString(),a.dataset.loginRewritten="true",a.addEventListener("click",function(e){e.preventDefault(),window.location.assign(loginUrl.toString())}))})}rewriteCartLoginLinks();const drawerEl=document.querySelector(DRAWER);drawerEl&&new MutationObserver(()=>rewriteCartLoginLinks(drawerEl)).observe(drawerEl,{childList:!0,subtree:!0}),["shopify:section:load","cart:open","cart:refresh","cart:updated"].forEach(evt=>document.addEventListener(evt,()=>rewriteCartLoginLinks()))});
2//# sourceMappingURL=/cdn/shop/t/3/assets/custom-cart-login-override.js.map?v=161195093886232970361759061697

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.