import{C as n}from"./index-058acbdf.js";import{n as i}from"./index-009d300e.js";import"./vuedraggable.umd-b2447fd7.js";const u={props:{value:{type:Object,default:()=>n.defaultFilter("string"),required:!0},items:{type:Array,default:()=>[],required:!0}},computed:{values:{get(){var e;const l=this.items.find(a=>typeof a=="string");return l?((e=this.value.values)==null?void 0:e.map(a=>a===void 0?l:a))??[]:this.value.values??[]},set(l){this.value.values=l}}},data(){return{valid:!1,rules:{min:[l=>!l||l>=0||"Minimum should not be negative",l=>!l||!this.value.max||l<=this.value.max||"Minimum should not be above maximum"],max:[l=>!l||l>=0||"Maximum should not be negative",l=>!l||!this.value.min||l>=this.value.min||"Maximum should not be below minimum"]}}},methods:{change(){this.$emit("change",this.value,this.valid)}}};var s=function(){var e=this,a=e._self._c;return a("v-card-text",[a("v-form",{model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[a("v-row",[a("v-col",[a("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),a("v-col",[a("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),a("v-row",[a("v-col",[a("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(u,s,r,!1,null,null,null,null);const d=m.exports;export{d as default};
