1(()=>{"use strict";class e{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var r of e.entries())t(r[1],r[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(r=>{t(e[r],r)});throw Error(`The element type ${typeof e} is not iterable!`)}}let t=window.PluginBaseClass;class r extends t{static #e=this.options={returnDetailItemSelector:".return-detail-item-product",quantitySelectSelector:".quantity-select",reasonSelectSelector:".reason-select",returnReasonRequired:!0};init(){this._detailItems=this.el.querySelectorAll(this.options.returnDetailItemSelector),this._registerEvents()}_registerEvents(){this._addQuantityChangeEvents()}_addQuantityChangeEvents(){let t="change";e.iterate(this._detailItems,e=>{let r=e.querySelector(this.options.quantitySelectSelector);r.removeEventListener(t,this._onChangeQuantitySelect),r.addEventListener(t,this._onChangeQuantitySelect.bind(this))})}_onChangeQuantitySelect(e){let t=e.target,r=t.closest(this.options.returnDetailItemSelector).querySelector(this.options.reasonSelectSelector);r.removeAttribute("disabled"),0===parseInt(t.value)&&r.setAttribute("disabled","disabled")}}window.PluginManager.register("DreiscReturnRequest",r,'[data-dreisc-return-request="true"]')})();
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.