1"use strict";(globalThis.webpackChunkNorden_Commerce=globalThis.webpackChunkNorden_Commerce||[]).push([[6348],{2404(t,e,o){o.d(e,{comparisonInit:()=>r});var a=o(6700);class i{constructor(t){t=t||{},this.container=t.container,this.timeout=null,this.handleRowHighlight=this.handleRowHighlight.bind(this),this.comparisonAjaxRemoveUrl=Hatraco.comparisonAjaxRemoveUrl}init(){const t=this.container.querySelectorAll("[data-comparison-row]");document.querySelectorAll("[data-comparison-remove]").forEach(t=>{t.addEventListener("click",this.handleRemove)});for(let e of t)e.addEventListener("touchstart",this.handleRowHighlight),e.addEventListener("touchmove",this.handleRowHighlight)}handleRemove=t=>{t.preventDefault(),(0,a.Fp)(this.comparisonAjaxRemoveUrl,{method:"POST",data:{slug:t.currentTarget.dataset.productSlug,comparison_type:t.currentTarget.dataset.comparisonType}}).then(t=>window.location.reload()).catch(t=>console.log(t))};handleRowHighlight(t){const e=t.currentTarget,o=this.container.querySelector('[data-comparison-row="active"]');o&&o!==e&&o.setAttribute("data-comparison-row",""),clearTimeout(this.timeout),e.matches('[data-comparison-row="active"]')?this.timeout=setTimeout(()=>{"touchmove"!==t.type&&e.setAttribute("data-comparison-row","")},200):e.setAttribute("data-comparison-row","active")}}const r=()=>{const t=document.querySelector("[data-comparison]");t&&new i({container:t}).init()}}}]);
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.