(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[294],{KP15:function(e,n,r){"use strict";r.r(n);var t=r("JPst"),a=r.n(t),i=r("w+rI"),l=a()(!1);l.i(i.a),l.push([e.i,"/*! purgecss start ignore */\n.noUi-handle{\n  background:#fff;\n  border-radius:100%\n}\n.noUi-handle::before,.noUi-handle::after{\n  display:none\n}\n.noUi-vertical{\n  width:10px\n}\n.noUi-horizontal{\n  height:10px;\n  padding:0 10px\n}\n.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{\n  width:20px;\n  height:20px;\n  top:4px;\n  transform:translateX(50%) translateY(-50%);\n  box-shadow:0 1px 3px rgba(0,0,0,.2);\n  border:1px solid var(--tb-w-color-gray-200)\n}\n.noUi-horizontal .noUi-handle{\n  right:0\n}\n.noUi-target{\n  border:0;\n  background:var(--tb-w-color-gray-300)\n}\n.noUi-connect{\n  background:var(--tb-w-color-primary-500)\n}\n\n/*! purgecss end ignore */\n.tb-w-single-value-slider-container{\n  display:flex;\n  align-items:center;\n  justify-content:space-between\n}\n.tb-w-single-value-slider{\n  padding:0\n}\n.tb-w-single-value-slider-value{\n  display:flex;\n  border:1px solid var(--tb-w-color-gray-200);\n  padding:.75rem;\n  width:50%;\n  line-height:1;\n  background:#fff;\n  color:var(--tb-w-color-gray-800);\n  border-radius:.125rem;\n  transition:border-color .2s\n}\n.tb-w-single-value-slider-value:focus{\n  outline:none;\n  border-color:var(--tb-w-color-primary-500)\n}",""]),n.default=l},LV4Q:function(e,n,r){"use strict";r.r(n);var t=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("div",{staticClass:"px-2 mt-4"},[r("div",{ref:e.refName,staticClass:"tb-w-single-value-slider"})]),e._v(" "),r("div",{staticClass:"tb-w-single-value-slider-container mt-4"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.sliderValue,expression:"sliderValue"}],staticClass:"tb-w-single-value-slider-value",attrs:{type:"number",min:e.rangeMin,max:e.rangeMax},domProps:{value:e.sliderValue},on:{change:e.updateSlider,input:function(n){n.target.composing||(e.sliderValue=n.target.value)}}})])])};t._withStripped=!0;var a=r("cBxt"),i=r("9/5/"),l=r.n(i),s={name:"TbWSingleValueSlider",props:{refName:{type:String,default:"rangeSlider"},rangeMin:{type:Number,default:0},rangeMax:{type:Number,required:!0},step:{type:Number,default:1},value:{type:Number,required:!0},reset:{type:Boolean,default:!1}},data:()=>({sliderValue:null}),created(){this.watchSliderValue()},mounted(){this.sliderValue=this.value,a.a.create(this.$refs[this.refName],{start:this.sliderValue,step:this.step,range:{min:this.rangeMin,max:this.rangeMax},connect:"lower",format:{to:e=>parseInt(parseFloat(e).toFixed(0),10),from:e=>parseInt(parseFloat(e).toFixed(0),10)}}),this.$refs[this.refName].noUiSlider.on("update",e=>{this.sliderValue=parseInt(e[0],10)})},methods:{updateSlider(){this.$refs[this.refName].noUiSlider.set(this.sliderValue)},resetRangeSlider(){this.sliderValue=this.value,this.updateSlider()},watchSliderValue(){this.$watch("sliderValue",l()(e=>{this.$emit("input",parseInt(e,10))},200))}},watch:{value:{deep:!0,handler(e){this.sliderValue=e,this.updateSlider()}},reset:{deep:!0,handler(){this.resetRangeSlider()}}}},o=(r("lf6U"),r("KHd+")),d=Object(o.a)(s,t,[],!1,null,null,null);n.default=d.exports},dUpV:function(e,n,r){var t=r("LboF"),a=r("KP15");"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var i={insert:"head",singleton:!1};t(a,i);e.exports=a.locals||{}},lf6U:function(e,n,r){"use strict";r("dUpV")}}]);