1import{g as c}from"./index-hdnIDsqN.js";function a(){c().then(n=>{n=n.filter(e=>!e.customization&&!e.is_additional),forEachDOMCollection(".js_product-card",e=>{if(!n.find(r=>r.product_id===parseInt(e.dataset.id)))return;const t=e.querySelector(".js_product-card__btn-buy");t&&(t.classList.remove("fm-btn_outline-primary"),t.classList.add("fm-btn_success"),t.textContent=t.dataset.textInCart,t.onclick=function(r){r.preventDefault(),location.assign(document.getElementById("js_head-cart").href)})})}).catch(handling_error)}export{a as catalog_check_in_cart};
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.