1import{d as V,s as d,c as $,v as w,i as r,g as i,V as B,t as n,j as m,X as p,z as f,a3 as C,f as u}from"./DxogxW0M.js";import{u as F}from"./CRts_PV8.js";const I={class:"RangeSlider"},D={class:"Information"},S={class:"b-small"},z=["data-position"],N=["id","data-width","aria-label","step","min","max"],E=V({__name:"RangeSlider",props:{aria_label:{},uid:{},label:{default:""},min:{default:0},max:{default:100},step:{default:1},value:{default:0},unit:{default:"%"},is_dark:{type:Boolean},label_position:{default:"right"},return_type:{default:"percent"},formId:{}},emits:["change"],setup(c,{emit:v}){const b=v,a=c,g=a.value,t=d(a.value||a.min),l=$(()=>((t.value-a.min)*100/(a.max-a.min)).toFixed(0)),y=d(null);function _(){b("change",a.return_type=="percent"?l:t.value)}const{set:k}=F(a.formId);w(t,()=>{k(`${a.label}:${a.uid}`,`${t.value} ${a.unit}`)});function h(){t.value=g}return(e,s)=>(u(),r("div",I,[i("div",D,[i("label",S,n(e.label),1),i("div",{"data-position":e.label_position},[e.return_type=="percent"?(u(),r("span",{key:0,class:p({"!text-grey-100":e.is_dark})},n(f(l))+"%",3)):m("",!0),e.return_type=="value"?(u(),r("span",{key:1,class:p({"!text-grey-100":e.is_dark})},n(t.value)+n(e.unit),3)):m("",!0)],8,z)]),B(i("input",{type:"range",id:e.uid,"data-width":f(l),"aria-label":e.aria_label||void 0,step:e.step,min:e.min,max:e.max,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),ref_key:"slider",ref:y,onInput:s[1]||(s[1]=o=>_()),onDblclick:s[2]||(s[2]=o=>h()),class:"focus-visible:ring-primary-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"},null,40,N),[[C,t.value]])]))}});export{E as _};
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.