var e=Object.defineProperty,r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(r,t,a)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;import{b5 as i}from"./index-ip5gDR6L.js";function n(e){const n=((e,i)=>{for(var n in i||(i={}))t.call(i,n)&&o(e,n,i[n]);if(r)for(var n of r(i))a.call(i,n)&&o(e,n,i[n]);return e})({page:1,page_size:20},e||{});return i.get({url:"app/guilds",params:n})}function s(e){return r=this,t=null,a=function*(){const{guildId:r,page:t=1,pageSize:a=20}=e,o=yield i.get({url:`admin/guilds/${r}/members`,params:{page:t,page_size:a}});return{records:o.list.map(e=>({id:e.id,userId:e.user_id,role:e.role,startTime:e.start_time})),total:o.total,current:o.page,size:o.page_size}},new Promise((e,o)=>{var i=e=>{try{s(a.next(e))}catch(r){o(r)}},n=e=>{try{s(a.throw(e))}catch(r){o(r)}},s=r=>r.done?e(r.value):Promise.resolve(r.value).then(i,n);s((a=a.apply(r,t)).next())});var r,t,a}export{s as a,n as f};
