1class ScriptCouponList extends Script { 2 constructor(params) { 3 super(params) 4 this.packageParams = this.utilts.htmlDecode(params.packageParams) 5 if (this.packageParams) this.packageParams = JSON.parse(this.packageParams) 6 this.$unit = document.querySelector(`#${this.attrId}`) 7 if (!this.$unit) return 8 this.$main = this.$unit.querySelector('.unit-coupon-list') 9 this.$main.innerHTML = '' 10 this.coupon = null; 11 } 12 13 async init() { 14 await new Load('/assets/plugins/coupon-list.js') 15 const couponList = new PluginCouponList(this.attrId, this.packageParams) 16 this.coupon = await couponList.init() 17 this.$main.innerHTML = '' 18 this.$main.append(this.coupon.$baseNode) 19 this.coupon.renderSvg() 20 } 21}
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.