import{C as n}from"./index-BS9jO9ks.js";import{n as i}from"./index-Ms_1iFoB.js";import"./vuedraggable.umd-BPF4oUW7.js";const s={props:{value:{type:Object,default:()=>n.defaultFilter("string"),required:!0},items:{type:Array,default:()=>[],required:!0}},computed:{values:{get(){var e;const a=this.items.find(l=>typeof l=="string");return a?((e=this.value.values)==null?void 0:e.map(l=>l===void 0?a:l))??[]:this.value.values??[]},set(a){this.value.values=a}}},data(){return{valid:!1,rules:{min:[a=>!a||a>=0||"Minimum should not be negative",a=>!a||!this.value.max||a<=this.value.max||"Minimum should not be above maximum"],max:[a=>!a||a>=0||"Maximum should not be negative",a=>!a||!this.value.min||a>=this.value.min||"Maximum should not be below minimum"]}}},methods:{change(){this.$emit("change",this.value,this.valid)}}};var u=function(){var e=this,l=e._self._c;return l("v-card-text",[l("v-form",{model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[l("v-row",[l("v-col",[l("v-text-field",{attrs:{type:"number",label:"Min",rules:e.rules.min,clearable:""},on:{change:e.change},model:{value:e.value.min,callback:function(t){e.$set(e.value,"min",t)},expression:"value.min"}})],1),l("v-col",[l("v-text-field",{attrs:{type:"number",label:"Max",rules:e.rules.max,clearable:""},on:{change:e.change},model:{value:e.value.max,callback:function(t){e.$set(e.value,"max",t)},expression:"value.max"}})],1)],1),l("v-row",[l("v-col",[l("v-select",{attrs:{items:e.items,label:"Values",clearable:"",chips:"",deletableChips:"",dense:"",multiple:""},on:{change:e.change},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}})],1)],1)],1)],1)},r=[],m=i(s,u,r,!1,null,null);const d=m.exports;export{d as default};
