PageSourceSearch

https://www.peter-kaiser.com/theme/46a0afbb5e8e89da54dc51e5011bd7a…/shop-theme.order-cart-voucher.0fbe65.js

js peter-kaiser.com collected 2026-10-10 02:34:26 UTC 1,033 bytes, 1 lines download raw bytes

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.