PageSourceSearch

https://plantavis.de/theme/82984738ef313e6e4d958c96d90afbb5/js/zen…m-horizon.zen-block-prices.plugin.da6376.js

js plantavis.de collected 2026-10-09 02:51:39 UTC 1,322 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzenitPlatformHorizon=self.webpackChunkzenitPlatformHorizon||[]).push([[86373],{6373(t,e,i){i.r(e),i.d(e,{default:()=>s});class s extends window.PluginBaseClass{static #t=this.options={parentContainerSelector:".product-detail-buy, .quickview-minimal-product",quantitySelectSelector:".product-detail-form-container .js-quantity-selector",blockPricesRowSelector:".product-block-prices-row",blockPricesQuantitySelector:".product-block-prices-quantity",activeClass:"js-highlighted"};init(){let t=this.options,e=this.el.closest(t.parentContainerSelector);this._quantitySelect=e?.querySelector(t.quantitySelectSelector),this._blockPricesRows=this.el.querySelectorAll(t.blockPricesRowSelector),this._quantitySelect&&0!==this._blockPricesRows.length&&(this._onChangeQuantity(),this._registerEvents())}_registerEvents(){this._quantitySelect.addEventListener("change",this._onChangeQuantity.bind(this))}_onChangeQuantity(){let t=this.options,e=parseFloat(this._quantitySelect.value),i=null;this._blockPricesRows.forEach(e=>{e.classList.remove(t.activeClass)}),this._blockPricesRows.forEach((s,o)=>{let c=s.querySelector(t.blockPricesQuantitySelector),l=c?parseFloat(c.textContent):0,r=o===this._blockPricesRows.length-1;r||!(e<=l)||i||(i=s),r&&e>=l&&!i&&(i=s)}),i&&i.classList.add(t.activeClass)}}}}]);

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.