import{L as s,W as o}from"./index-CIAVq8iD-1776148658686.js";const n=async r=>{try{return await o("/admin/task/query",r)}catch(e){throw console.error("Failed to fetch task list:",e),console.error("error:"+e.response.errorMsg),e}},a=async r=>{try{return await o("/bd/team/overview",r)}catch(e){throw console.error("Failed to get team overview:",e),console.error("error:"+e.response.errorMsg),e}},c=async r=>{try{return await o("/bd/team/member/detail",r)}catch(e){throw console.error("Failed to get team member detail:",e),console.error("error:"+e.response.errorMsg),e}},i=async r=>{try{return await o("/bd/team/summary",r)}catch(e){throw console.error("Failed to get team summary:",e),console.error("error:"+e.response.errorMsg),e}},l=async r=>{try{return await o("/bd/team/permission/check",r)}catch(e){throw console.error("Failed to check team permission:",e),console.error("error:"+e.response.errorMsg),e}},p=async r=>{try{return await o("/team/bd/invite-bdleader",r)}catch(e){throw console.error("Failed to invite user to be BDLeader:",e),console.error("error:"+e.response.errorMsg),e}},m=async()=>{try{return await s("/team/bd/invite-bdleader-message-own")}catch(r){throw console.error("Failed to fetch my invited BDLeaders:",r),console.error("error:"+r.response.errorMsg),r}},d=async r=>{try{return await o(`/team/bd/invite-bdleader-cancel/${r}`)}catch(e){throw console.error("Failed to cancel BDLeader invitation:",e),console.error("error:"+e.response.errorMsg),e}},h=async r=>{try{return await o("/team/bd/invite-recharge-agent",r)}catch(e){throw console.error("Failed to invite user to be RechargeAgency:",e),console.error("error:"+e.response.errorMsg),e}},g=async()=>{try{return await s("/team/bd/invite-recharge-agent-message-own")}catch(r){throw console.error("Failed to fetch my invited RechargeAgencies:",r),console.error("error:"+r.response.errorMsg),r}},y=async r=>{try{return await o(`/team/bd/invite-recharge-agent-cancel/${r}`)}catch(e){throw console.error("Failed to cancel RechargeAgency invitation:",e),console.error("error:"+e.response.errorMsg),e}};export{n as a,i as b,l as c,a as d,c as e,d as f,g,h,p as i,y as j,m};
