import{u as y}from"./use-response-handle.e6cae34f.js";import{B as a,z as g,C as v,E as T,D as h,v as A}from"./index.d8ce26ef.js";function R(s){const e=a({}),i=y(),o=a(null),c=a(!1),u=g().emit,p=()=>A(o).$el.getBoundingClientRect().y;async function l(){const{api:t,prop:r,value:n}=s,{code:f,message:d,data:m}=await t({[r]:Array.isArray(n)?n[0]:n});i({code:f,message:d,handler:()=>e.value=m})}return v(()=>l()),T(()=>e.value,()=>setTimeout(()=>{const t={top:p()-134,title:s.title};h(()=>u("map-offset-top",t))},100)),{defaultRef:o,hidden:c,data:e}}const S={api:{type:Function},prop:{type:String},value:{type:[String,Array]},title:{type:String}};export{S as d,R as u};
