PageSourceSearch

https://spaun.com/theme/5dc639414329ce3a51232f4e86af7e83/js/storefront/listing-sorting.plugin.5c3ede.js

js spaun.com collected 2026-09-25 07:48:33 UTC 1,718 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["listing-sorting.plugin"],{9304:(t,e,i)=>{i.d(e,{Z:()=>r});var s=i(9568),n=i(4049);class r extends s.Z{static #t=this.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"};_init(){super._init(),this._validateMethods();let t=n.Z.querySelector(document,this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(t,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let t=n.Z.querySelector(this.el,this.options.dropdownSelector,!1);t&&t.addEventListener("click",t=>{t.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"'`)}}},8640:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});var s=i(9304),n=i(1857),r=i.n(n);class o extends s.Z{static #t=this.options=r()(s.Z.options,{sorting:null});init(){this.select=this.el.querySelector("select"),this._registerEvents()}_registerEvents(){this.select.addEventListener("change",this.onChangeSorting.bind(this))}onChangeSorting(t){this.options.sorting=t.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.