PageSourceSearch

https://www.donic.com/theme/6c5c29f8457876740d5a008f7c3d7da0/js/ze…en-quantity-input-packunit.plugin.3797a7.js

js donic.com collected 2026-10-02 16:38:10 UTC 936 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzenitPlatformGravity=self.webpackChunkzenitPlatformGravity||[]).push([[21058],{1058(t,e,i){i.r(e),i.d(e,{default:()=>n});class n extends window.PluginBaseClass{static #t=this.options={inputSelector:".js-quantity-selector",packUnitSelector:".input-group-text",packUnit:"",packUnitPlural:""};init(){let t=this.options;this._input=this.el.querySelector(t.inputSelector),this._input&&this._registerEvents()}_registerEvents(){let t=this.options;t.packUnit&&t.packUnitPlural&&this._input.addEventListener("change",this.updatePackUnit.bind(this))}updatePackUnit(){if(this._isNativeUnitLabelActive())return;let t=this.options,e=this.el.querySelector(t.packUnitSelector);e&&(this._input.value>1?e.innerText=t.packUnitPlural:e.innerText=t.packUnit)}_isNativeUnitLabelActive(){let t=window.PluginManager.getPluginInstanceFromElement(this.el,"QuantitySelector");return!!t&&"function"==typeof t._updateUnitLabel}}}}]);

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.