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