import{C as o}from"./index-DXOgmK03.js";import{_ as n,e as p,z as V,w as u,b as a,U as f,V as s,f as m,D as c,K as _,G as v}from"./index-DaawSADr.js";import"./vuedraggable.umd-CMHGwbFC.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BCkODPS0.js";import"./sort-Dnf7GxuH.js";import"./VTable-Cai5aYBf.js";const h={props:{modelValue:{type:Object,default:()=>o.defaultFilter("string"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(l){this.$emit("update:modelValue",l)}},_valid:{get(){return this.valid},set(l){this.$emit("update:valid",l)}}},data(){return{rules:{match:[l=>this.validateRegex(l)]}}},methods:{validateRegex(l){let e;try{e=!!new RegExp(l)}catch(d){e=d.message}return e}}};function x(l,e,d,g,i,t){return V(),p(v,null,{default:u(()=>[a(f,{modelValue:t._valid,"onUpdate:modelValue":e[2]||(e[2]=r=>t._valid=r)},{default:u(()=>[a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(c,{label:"Search",hint:"Supports regular expressions",modelValue:t._value.match,"onUpdate:modelValue":e[0]||(e[0]=r=>t._value.match=r),rules:i.rules.match,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(_,{modelValue:t._value.values,"onUpdate:modelValue":e[1]||(e[1]=r=>t._value.values=r),items:d.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const U=n(h,[["render",x]]);export{U as default};
