import{ref as e,shallowRef as t,watchEffect as n}from"vue";function r(r){let i=t(!1),a=e({});return n(()=>{if(!r.value){i.value=!1,a.value={};return}let e={matchInputWidth:!0,limit:50};r.value&&typeof r.value==`object`&&(e={...e,...r.value}),e.limit<=0&&delete e.limit,i.value=!0,a.value=e}),{showSearch:i,searchConfig:a}}export{r as default};