Dropzone.autoDiscover=!1;var previewTemplate,dropzone,dropzonePreviewNode=document.querySelector("#dropzone-preview-list");dropzonePreviewNode.id="",dropzonePreviewNode&&(previewTemplate=dropzonePreviewNode.parentNode.innerHTML,dropzonePreviewNode.parentNode.removeChild(dropzonePreviewNode),dropzone=new Dropzone(".dropzone",{url:"https://httpbin.org/post",method:"post",previewTemplate:previewTemplate,previewsContainer:"#dropzone-preview"}));const slider=document.getElementById("product-price-range");if(slider){noUiSlider.create(slider,{start:[5,200],step:1,margin:0,connect:!0,behaviour:"tap-drag",range:{min:0,max:500},format:wNumb({decimals:0,prefix:"$ "})});const a=document.getElementById("minCost"),b=document.getElementById("maxCost");slider.noUiSlider.on("update",function(e,t){t?b.value=e[t]:a.value=e[t]}),a.addEventListener("change",function(){slider.noUiSlider.set([null,this.value])}),b.addEventListener("change",function(){slider.noUiSlider.set([null,this.value])})}var starRatingmessage,messageDataService={rate:function(e){return{then:function(e){setTimeout(function(){e(5*Math.random())},1e3)}}}};document.querySelector("#rater-message")&&(starRatingmessage=raterJs({isBusyText:"Rating in progress. Please wait...",starSize:22,element:document.querySelector("#rater-message"),rateCallback:function(e,t){starRatingmessage.setRating(e),messageDataService.rate().then(function(e){starRatingmessage.setRating(e),t()})}}));