1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52624],{2624(e,t,l){l.r(t),l.d(t,{default:()=>i});class i extends window.PluginBaseClass{static #e=this.options={elements:null,filterPanelItemSelector:".filter-panel-item",filterToggleSelector:".filter-panel-item-toggle",filterDropdownSelector:".filter-panel-item-dropdown",disableEmptyFilter:null,hideEmptyFilter:null};init(){this.el.querySelectorAll(this.options.filterPanelItemSelector).length&&(this._toggleFilterPanel(),this.options.disableEmptyFilter&&this._registerEvents())}_registerEvents(){this._observeFilterState()}_observeFilterState(){this._scheduled=!1;let e=()=>{this._scheduled||(this._scheduled=!0,requestAnimationFrame(()=>{this._scheduled=!1,this.options.hideEmptyFilter?this._toggleFilterPanel():this._disableInactiveFilterOptions()}))},t=this.el.querySelectorAll(this.options.filterToggleSelector);t.length&&(this._filterObservers?.length&&this._filterObservers.forEach(e=>e.disconnect()),this._filterObservers=[],t.forEach(t=>{let l=new MutationObserver(e);l.observe(t,{subtree:!1,attributes:!0,attributeFilter:["disabled"]}),this._filterObservers.push(l)}))}_toggleFilterPanel(){let e=this.el.querySelectorAll(this.options.filterPanelItemSelector),t=0;e.forEach(e=>{let l=this.options.elements;if(""===l||t<parseInt(l,10)){let t=e.querySelector(this.options.filterToggleSelector),l=e.querySelector(this.options.filterDropdownSelector);if(!t||!l)return;let i=t.classList.contains("disabled")||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled");this.options.disableEmptyFilter&&this.options.hideEmptyFilter&&i?(t.setAttribute("aria-expanded","false"),l.classList.remove("show")):(t.setAttribute("aria-expanded","true"),l.classList.add("show"))}t++}),this.$emitter.publish("onOpenFilterPanel")}_disableInactiveFilterOptions(){let e=this.el.querySelectorAll(this.options.filterPanelItemSelector);e?.length&&e.forEach(e=>{let t=e.querySelector(this.options.filterToggleSelector);if(!t||!(t.classList.contains("disabled")||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")))return;let l=e.classList.contains("filter-multi-select")?e:null;if(!l)return;let i=window.PluginManager.getPluginInstancesFromElement(l),s=i.get("FilterMultiSelect")||i.get("FilterPropertySelect");if(!s)return;let r=s.options.checkboxSelector||".filter-multi-select-checkbox";l.querySelectorAll(r).forEach(e=>{e.checked||"function"!=typeof s.disableOption||s.disableOption(e)})})}}}}]);
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.