import{u}from"./SiifIconBC3-DYQKLzWx.js";import{P as r}from"./index-CA0zsXLm.js";import{i as n}from"./ComboboxViewport-BTgSbq3W.js";import{d as s,o as i,c as p,a as m,b as f,m as c,e as d}from"./app-DZcRemIr.js";var C=s({__name:"ComboboxCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const a=t;u();const e=n();function l(){var o;e.filterSearch.value="",e.inputElement.value&&(e.inputElement.value.value="",e.inputElement.value.focus()),(o=e.resetModelValueOnClear)!=null&&o.value&&(e.modelValue.value=e.multiple.value?[]:null)}return(o,v)=>(i(),p(d(r),c({type:o.as==="button"?"button":void 0},a,{tabindex:"-1",onClick:l}),{default:m(()=>[f(o.$slots,"default")]),_:3},16,["type"]))}}),y=C;export{y as C};
