1console.debug("STM_INIT: global.js (priority:1)"),addEventListener("load",e=>{function t(){const e=new RegExp("category-([0-9]+)-([a-zA-Z0-9]+)").exec(document.body.className);return e?[e[1],e[2]]:["",""]}if(console.debug("STM_INIT: Init Fired global.onload"),"object"==typeof ajaxCart){var a=ajaxCart.add;ajaxCart.add=function(e,c,o,i,n,d){a.apply(this,arguments),void 0===n&&(n=1);var s={id_product:e.toString(),id_combination:c?c.toString():null,quantity:n,currency:stm_currency,event_id:stmanager.id_guest+"-"+e.toString(),event_name:"AddToCart"};try{if(o){s.content_category="product",[s.category_id,s.category]=t();var g=document.body.querySelector(".primary_block");g&&(s.price=seigitagmanager.parsePrice(g.querySelector("#our_price_display").innerText.match("[\\d\\'\\.\\,\\s]+")[0]),s.name=g.querySelector("h1").innerText)}else{var u=i.closest(seigitagmanager_selector_container);s.name=u.querySelector(seigitagmanager_selector_name).innerText,s.price=seigitagmanager.parsePrice(u.querySelector(seigitagmanager_selector_price).innerText.match("[\\d\\'\\.\\,\\s]+")[0]),[s.category_id,s.category]=t(),s.category_id?s.content_category="category":(s.content_category="index",s.category="")}r(s),seigitagmanager.execute("add_to_cart",s)}catch(e){console.log(e)}}}else"object"==typeof prestashop&&prestashop.on("updateCart",function(e){var t=e.resp,a=!1;void 0!==t.cart&&(t.cart.products.forEach(e=>{e.id==t.id_product&&(a={id_product:t.id_product.toString(),id_combination:t.id_product_attribute.toString(),quantity:e.quantity,currency:stm_currency,event_id:stmanager.id_guest+"-"+t.id_product.toString(),event_name:"AddToCart",price:e.price_wt,content_category:prestashop.page.page_name,category:e.category,name:e.name})}
1),a&&(r(a),seigitagmanager.execute("add_to_cart",a)))});function r(e){stmanager.cart_products.forEach(t=>{e.id_product==t.id_product&&(e.id_combination,t.id_product_attribute)})}}),document.addEventListener("click",function(e){let t=document.querySelector("#chex #basic .chex-button");t&&t.classList.add("stm-basic"),(t=document.querySelector("#chex #shipping .chex-button"))&&t.classList.add("stm-shipping"),(t=document.querySelector("#chex #confirmation .chex-button"))&&t.classList.add("stm-confirmation"),e.target.matches(".stm-basic")&&seigitagmanager.execute("add_shipping_info"),e.target.matches(".stm-shipping")&&seigitagmanager.execute("add_payment_info"),e.target.matches(".stm-confirmation")});
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.