import{w as c}from"./index.b35f53c6.js";import{l as f}from"./lodash.c9cf1bdb.js";import{a as d}from"./context.6c9ae94a.js";function x(e,a){const s=f.exports.debounce(r,300);let o=d();function r(u){return new Promise((m,i)=>{if(e.remote){let t=e.remote;t.data.search=u,o&&(t.data.data=o.submitData()),c(t).then(n=>{a.value=n.data,m(n.data)}).catch(()=>{i()})}else m(a.value)})}return{remoteOptionsDebounce:s,remoteOptions:r}}export{x as u};
