1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[53553],{857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l(Array.isArray(t)?[]:{},t,e):t}function r(t,e,i){return t.concat(e).map(function(t){return s(t,i)})}function o(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function n(t,e){try{return e in t}catch(t){return!1}}function l(t,i,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=s;var c,h,d=Array.isArray(i);return d!==Array.isArray(t)?s(i,a):d?a.arrayMerge(t,i,a):(h={},(c=a).isMergeableObject(t)&&o(t).forEach(function(e){h[e]=s(t[e],c)}),o(i).forEach(function(e){(!n(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(n(t,e)&&c.isMergeableObject(i[e])?h[e]=(function(t,e){if(!e.customMerge)return l;var i=e.customMerge(t);return"function"==typeof i?i:l})(e,c)(t[e],i[e],c):h[e]=s(i[e],c))}),h)}l.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return l(t,i,e)},{})},t.exports=l},553:(t,e,i)=>{i.r(e),i.d(e,{default:()=>a});var s=i(49),r=i(857),o=i.n(r),n=i(266),l=i(400);class a extends l.Z{_onChangeFilter(t){this.checked=t.target.checked;let e=s.Z.querySelectorAll(document,'[id^="'+t.target.id+'"]');e.length>1&&n.Z.iterate(e,e=>{if(this.checked)e.checked=!0,e.setAttribute("checked",!0);else{let i=s.Z.querySelector(document,'button[data-id="'+t.target.id+'"]',!1);i&&i.dispatchEvent(new Event("click")),e.checked=!1,e.removeAttribute("checked")}}),setTimeout(()=>{this.updateCountInLabels()},100),this.listing.changeListing(!0,{p:1})}updateCountInLabels(){if(this.el.dataset.name){let t=s.Z.querySelectorAll(document,".filter-multi-select-count.count-"+this.el.dataset.name);if(t)for(let e=0;e<t.length;e++)0!==e&&(t[e].innerText=""!==t[0].innerText?t[0].innerText:"")}}refreshDisabledState(t){super.refreshDisabledState(t);let e=t[this.options.name];e&&e.entities&&!(e.entities.length<1)&&this._updateTermCount(e.entities,e.entities.map(t=>t.id))}_updateTermCount(t,e){let i=s.Z.querySelectorAll(this.el,this.options.termCountSelector,!1);i.length&&n.Z.iterate(i,i=>{let s=i.dataset.termCountId;s&&(e.includes(s)?this.refreshTermCount(t,s,i):this.hideTermCount(i))})}refreshTermCount(t,e,i){n.Z.iterate(t,t=>{t.id===e&&t.extensions&&t.extensions.aggregationDocCount&&(i.innerText=this.options.termCountLabelBefore+t.extensions.aggregationDocCount.docCount+this.options.termCountLabelAfter)}),i.classList.remove(this.options.hiddenClass)}hideTermCount(t){t.classList.add(this.options.hiddenClass)}reset(t){let e=s.Z.querySelectorAll(document,'[id="'.concat(t,'"]'),!1);e.length>0&&e.forEach(t=>{t.checked=!1,t.removeAttribute("checked")}),setTimeout(()=>{this.updateCountInLabels()},100)}resetAll(){this.selection.filter=[];let t=s.Z.querySelectorAll(document,"".concat(this.options.checkboxSelector,":checked"),!1);t&&n.Z.iterate(t,t=>{t.checked=!1,t.removeAttribute("checked")}),setTimeout(()=>{this.updateCountInLabels()},100)}setValuesFromUrl(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1,i=t[this.options.name],r=i?i.split("|"):[],o=this.selection.filter(t=>!r.includes(t)),n=r.filter(t=>!this.selection.includes(t));return(o.length>0||n.length>0)&&(e=!0),n.forEach(t=>{let e=s.Z.querySelector(this.el,'[id="'.concat(t,'"]'),!1);if(e){e.checked=!0,this.selection.push(e.id);let t=s.Z.querySelectorAll(document,'[value="'.concat(e.id,'"]'));t.length>1&&t.forEach(t=>{t.checked=!0,t.setAttribute("checked",!0)})}}),o.forEach(t=>{this.reset(t),this.selection=this.selection.filter(e=>e!==t)}),this._updateCount(),setTimeout(()=>{this.updateCountInLabels()},100),e}_disableInactiveFilterOptions(t){let e=s.Z.querySelectorAll(this.el,this.options.checkboxSelector);n.Z.iterate(e,e=>{!0!==e.checked&&(t.includes(e.id)?this.enableOption(e):this.disableOption(e))})}_updateCount(){this.el.classList.contains("badge-layout")?(this.counter.textContent=this.selection.length?"".concat(this.selection.length):"",this._updateAriaLabel()):super._updateCount()}disableOption(t){let e=t.closest(this.options.listItemSelector);e&&(e.classList.add("disabled"),e.setAttribute("title",this.options.snippets.disabledFilterText)),t.disabled=!0;let i=s.Z.querySelectorAll(document,'input[value="'+t.getAttribute("id")+'"]',!1);i.length>
10&&i.forEach(t=>{let e=t.closest(this.options.listItemSelector);e&&(e.classList.add("disabled"),e.setAttribute("title",this.options.snippets.disabledFilterText)),t.disabled=!0})}enableOption(t){let e=t.closest(this.options.listItemSelector);e&&(e.removeAttribute("title"),e.classList.remove("disabled")),t.disabled=!1;let i=s.Z.querySelectorAll(document,'input[value="'+t.getAttribute("id")+'"]',!1);i.length>0&&i.forEach(t=>{let e=t.closest(this.options.listItemSelector);e&&(e.removeAttribute("title"),e.classList.remove("disabled")),t.disabled=!1})}disableFilter(){let t=s.Z.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.add("disabled"),t.setAttribute("disabled","disabled"),t.setAttribute("title",this.options.snippets.disabledFilterText);let e=s.Z.querySelectorAll(document,".filter-multi-select.filter-multi-select-"+this.options.name+".filter-prop-id-"+this.options.propId,!1);e.length>0&&e.forEach(t=>{let e=s.Z.querySelector(t,this.options.mainFilterButtonSelector);"btnShowItems"!==e.getAttribute("id")&&(e.classList.add("disabled"),e.setAttribute("disabled","disabled"),e.setAttribute("title",this.options.snippets.disabledFilterText))})}enableFilter(){let t=s.Z.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.remove("disabled"),t.removeAttribute("disabled"),t.removeAttribute("title");let e=s.Z.querySelectorAll(document,".filter-multi-select.filter-multi-select-"+this.options.name+".filter-prop-id-"+this.options.propId,!1);e.length>0&&e.forEach(t=>{let e=s.Z.querySelector(t,this.options.mainFilterButtonSelector);"btnShowItems"!==e.getAttribute("id")&&(e.classList.remove("disabled"),e.removeAttribute("disabled"),e.removeAttribute("title"))})}}a.options=o()(l.Z.options,{termCountSelector:".acris-filter-count-select-list",hiddenClass:"acris-filter-d-none",termCountLabelBefore:"(",termCountLabelAfter:")",propId:""})},49:(t,e,i)=>{i.d(e,{Z:()=>r});var s=i(140);class r{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!r.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===r.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=e.replace(/^data(|-)/,""),n=s.Z.toLowerCamelCase(o,"-");if(!r.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let l=t.dataset[n];if(void 0===l){if(i)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return l}return s.Z.parsePrimitive(l)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(i&&!1===s)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return s}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(e);if(0===s.length&&(s=!1),i&&!1===s)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not
1([tabindex^="-"]):not([disabled])\n ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},830:(t,e,i)=>{i.d(e,{Z:()=>s});class s{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,r=t.split("."),o=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=o;o=function(i){s.unsubscribe(t),e(i)}}return this.el.addEventListener(r[0],o),this.listeners.push({splitEventName:r,opts:i,cb:o}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}},266:(t,e,i)=>{i.d(e,{Z:()=>s});class s{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var i of t.entries())e(i[1],i[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(i=>{e(t[i],i)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}},140:(t,e,i)=>{i.d(e,{Z:()=>s});class s{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=s.toUpperCamelCase(t,e);return s.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>s.ucFirst(t.toLowerCase())).join(""):s.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},568:(t,e,i)=>{i.d(e,{Z:()=>a});var s=i(857),r=i.n(s),o=i(49),n=i(140),l=i(830);class a{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=n.Z.toDashCase(this._pluginName),i=o.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),s=o.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),l=[this.constructor.options,this.options,t];i&&l.push(window.PluginConfigManager.get(this._pluginName,i));try{s&&l.push(JSON.parse(s))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return r().all(l.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},i=!1){if(!o.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new l.Z(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}},304:(t,e,i)=>{i.d(e,{Z:()=>o});var s=i(568),r=i(49);class o extends s.Z{_init(){super._init(),this._validateMethods();let t=r.Z.querySelector(document,this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(t,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let t=r.Z.querySelector(this.el,this.options.dropdownSelector,!1);t&&t.addEventListener("click",t=>{t.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"\''))}}o.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"}},400:(t,e,i)=>{i.d(e,{Z:()=>a});var s=i(49),r=i(266),o=i(304),n=i(857),l=i.n(n);class a extends o.Z{init(){this.selection=[],this.counter=s.Z.querySelector(this.el,this.options.countSelector),this.mainFilterButton=s.Z.querySelector(this.el,this.options.mainFilterButtonSelector,!1),this._registerEvents()}_registerEvents(){let t=s.Z.querySelectorAll(this.el,this.options.checkboxSelector);r.Z.iterate(t,t=>{t.addEventListener("change",this._onChangeFilter.bind(this))})}getValues(){let t=s.Z.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1),e=[];t?r.Z.iterate(t,t=>{e.push(t.id)}):e=[],this.selection=e,this._updateCount();let i={};return i[this.options.name]=e,i}getLabels(){let t=s.Z.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1),e=[];return t?r.Z.iterate(t,t=>{e.push({label:t.dataset.label,id:t.id})}):e=[],e}setValuesFromUrl(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1,i=t[this.options.name],r=i?i.split("|"):[],o=this.selection.filter(t=>!r.includes(t)),n=r.filter(t=>!this.selection.includes(t));return(o.length>0||n.length>
10)&&(e=!0),n.forEach(t=>{let e=s.Z.querySelector(this.el,'[id="'.concat(t,'"]'),!1);e&&(e.checked=!0,this.selection.push(e.id))}),o.forEach(t=>{this.reset(t),this.selection=this.selection.filter(e=>e!==t)}),this._updateCount(),e}_onChangeFilter(){this.listing.changeListing(!0,{p:1})}reset(t){let e=s.Z.querySelector(this.el,'[id="'.concat(t,'"]'),!1);e&&(e.checked=!1)}resetAll(){this.selection.filter=[];let t=s.Z.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1);t&&r.Z.iterate(t,t=>{t.checked=!1})}refreshDisabledState(t){let e=t[this.options.name];if(!e.entities||e.entities.length<1){this.disableFilter();return}this.enableFilter(),this._disableInactiveFilterOptions(e.entities.map(t=>t.id))}_disableInactiveFilterOptions(t){let e=s.Z.querySelectorAll(this.el,this.options.checkboxSelector);r.Z.iterate(e,e=>{!0!==e.checked&&(t.includes(e.id)?this.enableOption(e):this.disableOption(e))})}disableOption(t){let e=t.closest(this.options.listItemSelector);e.classList.add("disabled"),e.setAttribute("title",this.options.snippets.disabledFilterText),t.disabled=!0}enableOption(t){let e=t.closest(this.options.listItemSelector);e.removeAttribute("title"),e.classList.remove("disabled"),t.disabled=!1}enableAllOptions(){let t=s.Z.querySelectorAll(this.el,this.options.checkboxSelector);r.Z.iterate(t,t=>{this.enableOption(t)})}disableFilter(){let t=s.Z.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.add("disabled"),t.setAttribute("disabled","disabled"),t.setAttribute("title",this.options.snippets.disabledFilterText)}enableFilter(){let t=s.Z.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.remove("disabled"),t.removeAttribute("disabled"),t.removeAttribute("title")}_updateCount(){this.counter.textContent=this.selection.length?"(".concat(this.selection.length,")"):"",this._updateAriaLabel()}_updateAriaLabel(){if(this.options.snippets.ariaLabel){if(0===this.selection.length){this.mainFilterButton.setAttribute("aria-label",this.options.snippets.ariaLabel);return}this.mainFilterButton.setAttribute("aria-label","".concat(this.options.snippets.ariaLabel," (").concat(this.options.snippets.ariaLabelCount.replace("%count%",this.selection.length.toString()),")"))}}}a.options=l()(o.Z.options,{checkboxSelector:".filter-multi-select-checkbox",countSelector:".filter-multi-select-count",listItemSelector:".filter-multi-select-list-item",snippets:{disabledFilterText:"Filter not active",ariaLabel:"",ariaLabelCount:""},mainFilterButtonSelector:".filter-panel-item-toggle"})}}]);
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.