import{C as o}from"./index-O_Ofu6Ug.js";import{_ as f,e as p,z as V,w as m,b as a,U as _,V as s,f as i,D as d,K as v,G as b}from"./index-DwzE-W2i.js";import"./vuedraggable.umd-Df3l8PgK.js";import"./colors-DoZdCu1D.js";import"./VDataTable-D8DZXD9Y.js";import"./sort-C8HQTCiq.js";import"./VTable-Cxuwit5L.js";const x={props:{modelValue:{type:Object,default:()=>o.defaultFilter("number"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},_valid:{get(){return this.valid},set(e){this.$emit("update:valid",e)}},values:{get(){const e=this.items.find(l=>typeof l=="string");return e?this._value.values?.map(l=>l===void 0?e:l)??[]:this._value.values??[]},set(e){this._value.values=e}}},data(){return{rules:{min:[e=>!e||e>=0||"Minimum should not be negative",e=>!e||!this._value.max||e<=this._value.max||"Minimum should not be above maximum"],max:[e=>!e||e>=0||"Maximum should not be negative",e=>!e||!this._value.min||e>=this._value.min||"Maximum should not be below minimum"]}}}};function h(e,l,n,c,r,u){return V(),p(b,null,{default:m(()=>[a(_,{modelValue:u._valid,"onUpdate:modelValue":l[3]||(l[3]=t=>u._valid=t)},{default:m(()=>[a(s,null,{default:m(()=>[a(i,null,{default:m(()=>[a(d,{type:"number",label:"Min",modelValue:u._value.min,"onUpdate:modelValue":l[0]||(l[0]=t=>u._value.min=t),rules:r.rules.min,clearable:""},null,8,["modelValue","rules"])]),_:1}),a(i,null,{default:m(()=>[a(d,{type:"number",label:"Max",modelValue:u._value.max,"onUpdate:modelValue":l[1]||(l[1]=t=>u._value.max=t),rules:r.rules.max,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(s,null,{default:m(()=>[a(i,null,{default:m(()=>[a(v,{modelValue:u.values,"onUpdate:modelValue":l[2]||(l[2]=t=>u.values=t),items:n.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=f(x,[["render",h]]);export{q as default};
