1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[55020],{20:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s});let{PluginBaseClass:l}=window;class s extends l{init(){this._initDecorator()}_initDecorator(){let e=document.querySelector(this.options.listingPluginSelector);if(!e)return;let t=window.PluginManager.getPluginInstanceFromElement(e,"Listing");if(!t)return;let i=t.constructor,l=i.prototype.getLabelTemplate;i.prototype.getLabelTemplate=function(e){return this._urlFilterParams.bikeModels&&this._urlFilterParams.bikeModels.includes(e.id)?'\n <span class="'.concat(this.options.activeFilterLabelClass,'">\n ').concat(this.getLabelPreviewTemplate(e),'\n <span aria-hidden="true">').concat(e.label,"</span>\n </span>\n "):l.call(this,e)},i.prototype._buildLabels=function(){let e="",t=!1;if(this._registry.forEach(i=>{let l=i.getLabels();l.length&&l.forEach(i=>{this._urlFilterParams.bikeModels&&this._urlFilterParams.bikeModels.includes(i.id)||(t=!0),e+=this.getLabelTemplate(i)})}),this.activeFilterContainer.innerHTML=e,e.length){let e=this.activeFilterContainer.querySelectorAll(".".concat(this.options.activeFilterLabelRemoveClass));e&&e.length>0&&this._registerLabelEvents(e),t&&this.createResetAllButton()}},i.prototype.resetAllFilter=function(){this._registry.forEach(e=>{e.getValues().bikeModels&&this._urlFilterParams.bikeModels||e.resetAll()}),this._buildRequest(),this._buildLabels()},t._urlFilterParams.bikeModels&&t._buildLabels();let s=t._urlFilterParams.bikemodels,r=t._urlFilterParams.bikemanufacturers;(s||r)&&(t.options.params||(t.options.params={}),s&&(t.options.params.bikemodels=s),r&&(t.options.params.bikemanufacturers=r))}}s.options={listingPluginSelector:"[data-listing]"}}}]);
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.