PageSourceSearch

https://www.koreanbook.de/theme/d10457424ff115bca293f19e9db7de94/j…storefront.listing-sorting.plugin.7b07b5.js

js koreanbook.de collected 2026-10-02 11:24:56 UTC 1,873 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[98158],{3701(e,t,i){i.d(t,{A:()=>r});var s=i(4335);class r 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._setReady(),this._preventDropdownClose()}_setReady(){this.el.removeAttribute("aria-busy"),this.el.querySelectorAll("[data-filter-loading]").forEach(e=>{e.removeAttribute("disabled"),e.removeAttribute("data-filter-loading")})}_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),r=i(4156),n=i.n(r);class o extends s.A{static #e=this.options=n()(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.