"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),l=require("lodash"),c=require("@vueform/slider");require("@vueform/slider/themes/default.css");const u={class:"zerov-widget-slider"},b=s.defineComponent({name:"zv-interaction-slider"}),O=s.defineComponent({...b,props:{basicOption:{},useEvents:{}},emits:["on-change"],setup(n,{emit:t}){s.useCssVars(i=>({"2d030a40":i.basicOption.css.sliderBg,"65515f18":i.basicOption.css.sliderConnectBg,ce4f56aa:i.basicOption.css.sliderHeight+"px","2a384a40":i.basicOption.css.sliderRadius+"px","49ece248":i.basicOption.css.sliderHandleBg,"1b937e4a":i.basicOption.css.sliderHandleWidth+"px",bd36b0ba:i.basicOption.css.sliderHandleHeight+"px","191fa450":i.basicOption.css.sliderHandleRadius+"px",a4c0c9cc:i.basicOption.css.sliderHandleRingWidth+"px","7823a3b0":i.basicOption.css.sliderHandleRingColor,"10d74d95":i.basicOption.css.sliderTooltipFontSize+"px","2da020fe":i.basicOption.css.sliderTooltipFontWeight+"px","4f957566":i.basicOption.css.sliderTooltipBg,"5f3ef95b":i.basicOption.css.sliderTooltipColor,"019425b3":i.basicOption.css.sliderTooltipRadius+"px","98e20748":i.basicOption.css.sliderTooltipPy+"px","4badcf7d":i.basicOption.css.sliderTooltipPx+"px",d65c76aa:i.basicOption.css.sliderTooltipArrowSize+"px","5247e2f0":i.basicOption.css.sliderTooltipDistance+"px"}));const p=t,e=s.ref(20),o=n;e.value=o.basicOption.slider.defaultValue||0,s.watch(()=>l.cloneDeep(o.basicOption),(i,a)=>{l.isEqual(i,a)||(e.value=o.basicOption.slider.defaultValue||0)},{deep:!0});const d=i=>{p("on-change",i,e.value),window.SHJParseEvent(o.useEvents,"on-change",{data:e.value,event:i})};return(i,a)=>(s.openBlock(),s.createElementBlock("div",u,[s.createVNode(s.unref(c),{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r),class:"slider",min:i.basicOption.slider.min,max:i.basicOption.slider.max,step:i.basicOption.slider.step,tooltips:i.basicOption.slider.tooltips,"show-tooltip":i.basicOption.slider.showTooltip,"tooltip-position":i.basicOption.slider.tooltipPosition,onUpdate:d},null,8,["modelValue","min","max","step","tooltips","show-tooltip","tooltip-position"])]))}});exports.default=O;
