1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[15676],{676(t,e,o){o.r(e),o.d(e,{default:()=>i});class i extends window.PluginBaseClass{static #t=this.options={checkoutButton:"begin-checkout-btn",confirmButton:"confirmFormSubmit",voucherCodeField:"addPromotionOffcanvasCartInput",addVoucherCodeButton:"btn-promo"};init(){this._registerEvents()}_registerEvents(){if(this._checkoutButton=document.getElementsByClassName(this.options.checkoutButton),this._confirmButton=document.getElementById(this.options.confirmButton),this._addVoucherCodeButton=document.getElementsByClassName(this.options.addVoucherCodeButton),this._checkoutButton)for(let t of this._checkoutButton)t.addEventListener("click",this._addVoucherCode.bind(this));this._confirmButton&&this._confirmButton.addEventListener("click",this._addVoucherCode.bind(this))}_addVoucherCode(t){this._voucherCodeField=document.getElementById(this.options.voucherCodeField),this._voucherCodeField.value&&(t.preventDefault(),this._addVoucherCodeButton[0].click())}}}}]);
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.