import{u as n}from"./useInterface.bd4f041a.js";import{av as e}from"./index-90c12cc1.js";const{toast:o,loading:t,hideLoading:r}=n(),i=()=>{let n={corpId:"",accountLink:""};return{getServiceData:async function(){try{t(),n=await e()}finally{r()}},openService:async function(){return Reflect.ownKeys(n).length<=0?o({title:"暂无客服~",icon:"error"}):n.corpId&&n.accountLink?function(n){return window.location.href=n.accountLink,Promise.resolve(!0)}(n):o({title:"暂无客服~",icon:"error"})}}};export{i as u};
