PageSourceSearch

https://ulex.de/theme/dfcfd75fb09aabd0225c221ffdd1ba66/js/zenit-pl…rm-gravity.zen-open-filter.plugin.ff1988.js

js ulex.de collected 2026-10-02 23:12:09 UTC 2,574 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzenitPlatformGravity=self.webpackChunkzenitPlatformGravity||[]).push([[35404],{5404(e,t,i){i.r(t),i.d(t,{default:()=>l});class l 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 i=new MutationObserver(e);i.observe(t,{subtree:!1,attributes:!0,attributeFilter:["disabled"]}),this._filterObservers.push(i)}))}_toggleFilterPanel(){let e=this.el.querySelectorAll(this.options.filterPanelItemSelector),t=0,i=parseInt(this.options.elements,10),l=Number.isFinite(i),s=!!this.el.closest(".offcanvas-filter");e.forEach(e=>{if(!l||t<i){let t=e.querySelector(this.options.filterToggleSelector),i=e.querySelector(this.options.filterDropdownSelector);if(!t||!i)return;let l=t.classList.contains("disabled")||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled");s||this.options.disableEmptyFilter&&this.options.hideEmptyFilter&&l?(t.setAttribute("aria-expanded","false"),i.classList.remove("show")):(t.setAttribute("aria-expanded","true"),i.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 i=e.classList.contains("filter-multi-select")?e:null;if(!i)return;let l=window.PluginManager.getPluginInstancesFromElement(i),s=l.get("FilterMultiSelect")||l.get("FilterPropertySelect");if(!s)return;let r=s.options.checkboxSelector||".filter-multi-select-checkbox";i.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.