import{L as o,W as s}from"./index-CIAVq8iD-1776148658686.js";const n=async()=>{try{return await o("/team/bd/invite-message-own")}catch(r){throw console.error("Failed to fetch get my agency:",r),console.error("error:"+r.response.errorMsg),r}},c=async r=>{try{return await s("/team/bd/invite-agent",r)}catch(e){throw console.error("Failed to invite to be agency:",e),console.error("error:"+e.response.errorMsg),e}},a=async r=>{try{return await s(`/team/bd/invite-agent-cancel/${r}`)}catch(e){throw console.error("Failed to cancel invite:",e),console.error("error:"+e.response.errorMsg),e}},i=async r=>{try{return await o(`/team/bd/member-bill/list?type=${r}`)}catch(e){throw console.error("Failed to fetch BD member bill list:",e),console.error("error:"+e.response.errorMsg),e}},p=async()=>{try{return await o("/team/bd/history")}catch(r){throw console.error("Failed to fetch BD history:",r),console.error("error:"+r.response.errorMsg),r}},l=async r=>{try{return await o(`/team/bd/history/more?billBelong=${r}`)}catch(e){throw console.error("Failed to fetch BD history more:",e),console.error("error:"+e.response.errorMsg),e}},y=async()=>{try{return await o("/sys/bd/own-permission")}catch(r){throw console.error("Failed to fetch has send gifts permission:",r),console.error("error:"+r.response.errorMsg),r}},h=async()=>{try{return await o("/sys/bd/list-permission")}catch(r){throw console.error("Failed to fetch send gifts permission list:",r),console.error("error:"+r.response.errorMsg),r}},d=async r=>{try{return await o(`/sys/bd/props?propsType=${r.propsType}&currencyType=${r.currencyType}`)}catch(e){throw console.error("Failed to fetch admin center list:",e),console.error("error:"+e.response.errorMsg),e}},g=async r=>{try{return await s("/sys/bd/send",r)}catch(e){throw console.error("Failed to fetch give props:",e),console.error("error:"+e.response.errorMsg),e}};export{i as a,p as b,h as c,d,g as e,c as f,l as g,y as h,n as i,a as j};
