PageSourceSearch

https://www.trishayearwood.com/cdn/shop/t/6/assets/price-slider.js?v=149316320893372340521757377856

js trishayearwood.com collected 2026-09-24 20:33:05 UTC 2,079 bytes, 2 lines download raw bytes

1import noUiSlider from"./nouislider.min.mjs";class PriceSlider extends HTMLElement{constructor(){super(),this.init()}init(){const priceSlider=this.querySelector(".f-price__slider"),inputFrom=this.querySelector(".f-price__input--from"),inputTo=this.querySelector(".f-price__input--to"),rangeMin=parseInt(priceSlider.dataset.min),rangeMax=parseInt(priceSlider.dataset.max),step=parseInt(priceSlider.dataset.step),currency=priceSlider.dataset.currency,applyButton=document.querySelector(".btn-checkout.wt-cart__cta"),facetForm=document.querySelector("facet-filters-form > form"),isSliderInCollapsible=this.closest(".f-price-slider "),isRtl=document.documentElement.getAttribute("dir")==="rtl";if(noUiSlider.create(priceSlider,{start:[inputFrom.value||0,inputTo.value||0],connect:!0,step,tooltips:[!0,!0],range:{min:rangeMin,max:rangeMax},direction:isRtl?"rtl":"ltr",format:wNumb({decimals:0,thousand:"",prefix:""})}),isSliderInCollapsible){const uiHandlers=priceSlider.querySelectorAll(".noUi-handle");setTabindex(uiHandlers,"-1")}const debouncedUpdate=debounce((values,handle)=>{let value=values[handle];handle?(inputTo.value=value,inputTo.setAttribute("value",value),inputTo.dispatchEvent(new Event("change"))):(inputFrom.value=value,inputFrom.setAttribute("value",value),inputFrom.dispatchEvent(new Event("change"))),facetForm.dispatchEvent(new Event("input"))},300);priceSlider.noUiSlider.on("change",function(values,handle){debouncedUpdate(values,handle)}),inputFrom.addEventListener("change",function(){priceSlider.noUiSlider.set([this.value,null])}),inputTo.addEventListener("change",function(){priceSlider.noUiSlider.set([null,this.value])}),applyButton.addEventListener("click",()=>{inputTo.dispatchEvent(new Event("change")),inputFrom.dispatchEvent(new Event("change"))})}debounce(func,wait){let timeout;return function(...args){const context=this;clearTimeout(timeout),timeout=setTimeout(()=>func.apply(context,args),wait)}}}customElements.define("price-slider",PriceSlider);
2//# sourceMappingURL=/cdn/shop/t/6/assets/price-slider.js.map?v=149316320893372340521757377856

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.