1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9238],{9304:(e,t,i)=>{i.d(t,{Z:()=>l});var s=i(9568),o=i(4049);class l extends s.Z{_init(){super._init(),this._validateMethods();let e=o.Z.querySelector(document,this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(e,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let e=o.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"\''))}}l.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"}},9238:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var s=i(4049),o=i(9304),l=i(1857),n=i.n(l);class h extends o.Z{init(){this.checkbox=s.Z.querySelector(this.el,this.options.checkboxSelector),this._altText=s.Z.querySelector(this.el,this.options.altTextSelector,!1),this._registerEvents()}_registerEvents(){this.checkbox.addEventListener("change",this._onChangeCheckbox.bind(this))}reset(e){e===this.options.name&&(this.checkbox.checked=!1)}resetAll(){this.checkbox.checked=!1}getValues(){let e={};return e[this.options.name]=this.checkbox.checked?"1":"",this._updateAltText(),e}_updateAltText(){this._altText&&(this._altText.textContent=this.checkbox.checked?this.options.snippets.altTextActive:this.options.snippets.altText)}getLabels(){let e=[];return this.checkbox.checked?e.push({label:this.options.displayName,id:this.options.name}):e=[],e}setValuesFromUrl(e){let t=!1;return Object.keys(e).forEach(i=>{i===this.options.name&&e[i]&&(this.checkbox.checked=1,t=!0)}),this._updateAltText(),t}refreshDisabledState(e){let t=e[this.options.name];t.max&&t.max>0?this.enableFilter():this.disableFilter()}enableFilter(){this.el.classList.remove("disabled"),this.el.removeAttribute("title"),this.checkbox.removeAttribute("disabled")}disableFilter(){this.el.classList.add("disabled"),this.el.setAttribute("title",this.options.snippets.disabledFilterText),this.checkbox.disabled=!0}_onChangeCheckbox(){this.listing.changeListing()}}h.options=n()(o.Z.options,{checkboxSelector:".filter-boolean-input",altTextSelector:".filter-boolean-alt-text",activeClass:"is-active",snippets:{disabledFilterText:"Filter not active",altText:"",altTextActive:""}})}}]);
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.