1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[1229],{12857:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var a=s(21464);const c='[data-module="SearchInput"]';class r{static setup(e=c){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new r(e),e.dataset.moduleInitialized="true"})}constructor(e){this.element=e,this.searchClearIcon=this.element.querySelector(".nx-search-input-clear__icon"),this.searchInput=this.element.querySelector(".nx-search-input__text"),this.init()}init(){this.searchInput.addEventListener("input",e=>{this.checkEmpty()}),this.searchClearIcon.addEventListener("click",e=>{this.clearInput()}),this.setValueToInput(),this.searchInput.value&&this.searchClearIcon.classList.add("nx-search-input-clear__icon--show"),this.element.closest(".nx-layer")&&setTimeout(()=>(0,a.T5)(this.searchInput),0)}checkEmpty(){this.searchInput.value?this.searchClearIcon.classList.add("nx-search-input-clear__icon--show"):(this.searchClearIcon.classList.remove("nx-search-input-clear__icon--show"),(0,a.T5)(this.searchInput))}clearInput(){this.searchInput.value="",this.checkEmpty()}setValueToInput(){var e=window.location.href,t=this.searchInput.getAttribute("name");this.searchInput.value=this.getParameterByName(t,e)}getParameterByName(e,t){e=e.replace(/[\[\]]/g,"\\$&");var s=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null}}r.setup(c)}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/SearchInput.b66bcb28.js.f6cd34e4.map
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.