PageSourceSearch

https://wiha.com/theme/d526f1b6dff22d973abb0afcbfa55c26/js/storefr…storefront.listing-sorting.plugin.1f69f2.js

js wiha.com collected 2026-09-24 10:10:58 UTC 1,711 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38640],{9304:(e,t,i)=>{i.d(t,{Z:()=>r});var s=i(9568),n=i(4049);class r extends s.Z{_init(){super._init(),this._validateMethods();let e=n.Z.querySelector(document,this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(e,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let e=n.Z.querySelector(this.el,this.options.dropdownSelector,!1);e&&e.addEventListener("click",e=>{e.stopPropagation()})}_validateMethods(){if("function"!=typeof this.getValues)throw Error("[".concat(this._pluginName,'] Needs the method "getValues"\''));if("function"!=typeof this.getLabels)throw Error("[".concat(this._pluginName,'] Needs the method "getLabels"\''));if("function"!=typeof this.reset)throw Error("[".concat(this._pluginName,'] Needs the method "reset"\''));if("function"!=typeof this.resetAll)throw Error("[".concat(this._pluginName,'] Needs the method "resetAll"\''))}}r.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"}},8640:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o});var s=i(9304),n=i(1857),r=i.n(n);class o extends s.Z{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[]}}o.options=r()(s.Z.options,{sorting:null})}}]);

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.