import{c as n,f as r}from"./index-EwE51S_X.js";const e="/admin/OAuthLogin/";function i(t,o){return n({url:e+"loginAgent",method:"get",params:{code:t,state:o}},{loading:!0})}function u(){return n({url:e+"oauthList",method:"get"})}function a(){return n({url:e+"bindList",method:"get"})}function g(t){return n({url:e+"unbind",method:"post",data:t},{showSuccessMessage:!0})}const c=()=>{const t=navigator.userAgent.toLowerCase();return!!/micromessenger/.test(t)},l=(t,o="login")=>{window.location.href=r()+`/admin/OAuthLogin/wxindex?server=1&name=${t}&type=${o}`};export{l as a,a as b,c as i,i as l,u as o,g as u};