import{T as n,_ as u,d as s,o as i,e as d}from"./index.cf09daef.js";import{u as r}from"./category.9b5d25c1.js";const m={props:{modelValue:{},hint:String,useInput:Boolean,useFilter:Boolean},emits:["update:model-value"],methods:{...n(r,["get"]),onChange(e){this.$emit("update:model-value",e)},onNewValue(e,t){console.log(e),t({name:e},"add-unique")}}};function c(e,t,o,p,h,l){const a=s("base-select");return i(),d(a,{dense:"",outlined:"","map-options":"","use-input":!o.useFilter,"use-filter":o.useFilter,hint:o.hint,"input-debounce":"500",debounce:"500","option-label":"name","option-value":"id",class:"category-select","hide-no-option":"",placeholder:o.modelValue?"":"e.g. Shirts","model-value":o.modelValue,"onUpdate:modelValue":l.onChange,"filter-method":e.get,onNewValue:l.onNewValue},null,8,["use-input","use-filter","hint","placeholder","model-value","onUpdate:modelValue","filter-method","onNewValue"])}var g=u(m,[["render",c]]);export{g as C};
