PageSourceSearch

https://nutristar.in/cdn/shop/t/2/assets/search-form.aio.min.js?v=163191742104230453251763647885

js nutristar.in collected 2026-10-02 15:29:26 UTC 2,555 bytes, 5 lines download raw bytes

1/*
2Generated time: November 20, 2025 14:11
3This file was created by the app developer. Feel free to contact the original developer with any questions. It was minified (compressed) by AVADA. AVADA do NOT own this script.
4*/
5if(!customElements.get("search-form")){class a extends HTMLElement{constructor(){super(),this.input=this.querySelector(".js-search-input"),this.productTypeSelect=this.querySelector(".js-search-product-types"),this.productTypeInput=document.getElementById("product_type_input"),this.resetBtn=this.querySelector(".js-search-reset"),this.addListeners(),this.init()}addListeners(){this.input.addEventListener("input",debounce(this.handleInput.bind(this))),this.productTypeSelect&&this.productTypeSelect.addEventListener("change",this.handleProductTypeChange.bind(this)),this.resetBtn.addEventListener("click",this.handleReset.bind(this))}init(){!this.input.dataset.placeholderTwo&&!this.input.dataset.placeholderThree||"true"!==this.input.dataset.placeholderPromptsMob&&!theme.mediaMatches.md||this.typeInPlaceholders()}typeInPlaceholders(){let a=this.input.dataset.typingSpeed||100,t=this.input.dataset.deletingSpeed||60,e=this.input.dataset.delayAfterDeleting||500;var s=this.input.dataset.delayBeforeFirstDelete||2e3;let i=this.input.dataset.delayAfterWordTyped||2400,h=[],n=(this.input.placeholder&&h.push(this.input.placeholder),this.input.dataset.placeholderTwo&&h.push(this.input.dataset.placeholderTwo),this.input.dataset.placeholderThree&&h.push(this.input.dataset.placeholderThree),async h=>{await new Promise(t=>{let e=this.input.getAttribute("placeholder"),s=3<=e.length&&h.startsWith(e)?h.replace(e,""):h,i=setInterval(()=>{e=this.input.getAttribute("placeholder"),this.input.setAttribute("placeholder",e+s.charAt(0)),1===s.length?(t(),clearInterval(i)):s=s.substring(1)},a)})}),r=async h=>{await new Promise(e=>{let s=this.input.getAttribute("placeholder"),i=setInterval(()=>{var t=s.substring(0,s.length-1);this.input.setAttribute("placeholder",t),(0===(s=t).length||3<=s.length&&h.startsWith(s))&&(e(),clearInterval(i))},t)})},l=0,d=()=>{l=(l+1)%h.length;let t=h[l];r.call(this,t).then(()=>{setTimeout(()=>{n.call(this,t).then(()=>{setTimeout(d.bind(this),i)})},e)})};setTimeout(d.bind(this),s)}handleInput(){0<this.input.value.length?this.input.classList.add("search__input--dirty"):this.input.classList.remove("search__input--dirty")}handleProductTypeChange(t){this.productTypeInput.value=t.detail.selectedValue}handleReset(){this.input.classList.remove("search__input--dirty")}}customElements.define("search-form",a)}

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.