PageSourceSearch

https://usercentrics.com/wp-content/themes/usercentrics/dist/compo…/js/search-page-form.js?ver=1790224964

js usercentrics.com collected 2026-09-24 07:01:44 UTC 1,161 bytes, 1 lines download raw bytes

1(()=>{class e{#e;#t;#n;#r;#i;constructor(e,t){this.#e=e,this.#i=t,this.#a(),this.#o(),this.#s()}#a(){this.#t=this.#e.querySelector(`input`),this.#n=this.#e.querySelector(`.uc-field__append`),this.#r=this.#e.querySelector(`.search-form__button a`)}#o(){this.#t.addEventListener(`input`,this.#s.bind(this)),this.#n.addEventListener(`click`,this.#c.bind(this)),this.#r.addEventListener(`click`,this.#u.bind(this)),this.#e.addEventListener(`keydown`,this.#l.bind(this))}#s(){this.#t.value.length===0?this.#n.style.display=`none`:this.#n.style.display=null}#c(){this.#t.value=``,this.#t.dispatchEvent(new Event(`input`))}#l(e){e.target instanceof HTMLInputElement&&(e.code===`Enter`||e.key===`Enter`)&&this.#u(e)}#u(t){t.preventDefault();let n=e.sanitizeSearchQuery(this.#t.value);if(!n){this.#t.value=n;return}gtmPush({event:`Header Search Requested`,Input:n,URL:location.pathname});let r=this.#i.search_page;location.assign(`${r}${encodeURIComponent(n)}/`)}static sanitizeSearchQuery(e){return e=e.trim(),e=e.replaceAll(/\/+/g,``),e}}onceDocumentReady(()=>{document.querySelectorAll(`.search-form`).forEach(t=>new e(t,window.search_form_settings[t.id]??{}))})})();

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.