import{D as e,L as n,M as s,aD as t,aE as a,aF as i,aG as o,aH as r,aI as u,aJ as c,aK as f,a8 as l,aL as m,ai as P}from"./index-d76b1e7a.js";const g=()=>({toast:function(n){return new Promise(((s,t)=>{e({icon:"none",mask:!1,...n,success:()=>s(!0),fail:e=>t(e)})}))},loading:function(e){return new Promise(((s,t)=>{n({icon:"none",mask:!0,...e,success:()=>s(!0),fail:e=>t(e)})}))},hideLoading:function(){s()},setNavTitle:function(e){return new Promise(((n,s)=>{t({title:e,success:()=>n(!0),fail:e=>s(e)})}))},setNavBgColor:function(e,n=500){return new Promise(((s,t)=>{0===n?a({...e,success:()=>s(!0),fail:e=>t(e)}):setTimeout((()=>{a({...e,success:()=>s(!0),fail:e=>t(e)})}),n)}))},scrollTo:function(e){return new Promise(((n,s)=>{i({...e,success:()=>n(!0),fail:e=>s(e)})}))},pageResize:function(e){o(e)},unPageResize:function(e){r(e)},startPullDownRefresh:function(){return new Promise(((e,n)=>{u({success:()=>e(!0),fail:e=>n(e)})}))},stopPullDownRefresh:function(){c()},createSelectorQuery:function(){return f()},createObserver:function(e,n){return l(e,n)},createMediaObserver:function(e){return m(e)},createAnimation:function(e){return P(e)},getMenuButtonInfo:function(){return uni.getMenuButtonBoundingClientRect()}});export{g as u};
