1class a { 2 constructor() { 3 this.init() 4 } 5 updateRemoveButtonState() { 6 const e = document.querySelector(".favorites__form-head-button.-remove"), 7 t = document.querySelectorAll(".favorites__item .checkbox input:checked"); 8 e.disabled = t.length === 0 9 } 10 init() { 11 document.querySelectorAll(".favorites__item .checkbox input").forEach(t => { 12 t.addEventListener("change", () => this.updateRemoveButtonState()) 13 }), this.updateRemoveButtonState() 14 } 15} 16class d { 17 constructor() { 18 this.init() 19 } 20 init() { 21 const e = document.querySelector("[data-purchase-price]"); 22 document.querySelectorAll('[name="price-reduction"]').forEach(n => { 23 n.addEventListener("change", () => { 24 const i = n.dataset.purchase === "specific-price"; 25 if (e.disabled = !i, !i) { 26 e.value = ""; 27 const o = e.closest(".form"); 28 o.classList.remove("-is-input-error"); 29 const r = o.querySelector(".form__error-inner"); 30 r && r.remove() 31 } 32 }) 33 }) 34 } 35} 36class c { 37 constructor() { 38 this.removeHandler = null, this.priceReductionHandler = null 39 } 40 init() { 41 this.removeHandler = new a, this.priceReductionHandler = new d 42 } 43 static initialize() { 44 const e = new c; 45 return e.init(), e 46 } 47} 48document.addEventListener("DOMContentLoaded", () => c.initialize());
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.