PageSourceSearch

https://www.formblitz.de/theme/4bec893ce46d9d52ce82d4ed03a31ab0/js…storefront.listing-sorting.plugin.a854a1.js

js formblitz.de collected 2026-09-28 06:10:01 UTC 1,672 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[98158],{3701(e,t,i){i.d(t,{A:()=>n});var s=i(4335);class n extends s.A{static #e=this.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"};_init(){super._init(),this._validateMethods();let e=document.querySelector(this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(e,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let e=this.el.querySelector(this.options.dropdownSelector);e&&e.addEventListener("click",e=>{e.stopPropagation()})}_validateMethods(){if("function"!=typeof this.getValues)throw Error(`[${this._pluginName}] Needs the method "getValues"'`);if("function"!=typeof this.getLabels)throw Error(`[${this._pluginName}] Needs the method "getLabels"'`);if("function"!=typeof this.reset)throw Error(`[${this._pluginName}] Needs the method "reset"'`);if("function"!=typeof this.resetAll)throw Error(`[${this._pluginName}] Needs the method "resetAll"'`)}}},8158(e,t,i){i.r(t),i.d(t,{default:()=>o});var s=i(3701),n=i(4156),r=i.n(n);class o extends s.A{static #e=this.options=r()(s.A.options,{sorting:null});init(){this.select=this.el.querySelector("select"),this._registerEvents()}_registerEvents(){this.select.addEventListener("change",this.onChangeSorting.bind(this))}onChangeSorting(e){this.options.sorting=e.target.value,this.listing.changeListing()}reset(){}resetAll(){}getValues(){return null===this.options.sorting?{}:{order:this.options.sorting}}afterContentChange(){this.listing.deregisterFilter(this)}getLabels(){return[]}}}}]);

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.