1import{g as N,s as B,a as P,l as S,n as V}from"./DVmxrtf3.js";import{u as j}from"./CGBuh1Ul.js";import{k as F,c as K,r as q,ar as A,l,$ as p,a7 as u,a6 as t,B as R,a1 as y,F as h,a4 as x,a5 as m,u as i,a2 as _}from"./IE-DFLPS.js";import{_ as $}from"./CMWFWWz8.js";import"./BgpTT1PJ.js";import"./CfBUSXl0.js";import"./BAh2vYHp.js";import"./Bms2PG6L.js";import"./fMvrVQZ-.js";import"./CsAd631W.js";import"./BbN7I0i_.js";import"./1C7Of8dt.js";import"./BsKKaSph.js";import"./Dosx5dR8.js";import"./CbwskAKm.js";import"./DxAUB3Qo.js";import"./B2J-aTbe.js";import"./DsZtcIuq.js";import"./BdlZ3u1p.js";import"./B7L20Qj8.js";import"./BJJ1XIJc.js";import"./B8uzE354.js";import"./D0Yi4hXc.js";const z={class:"flex gap-2 flex-col sm:flex sm:flex-row sm:justify-between lg:w-[80%] mb-4 md:mt-8"},D={class:"text-nowrap"},E={class:"text-nowrap"},H=F({__name:"income",async setup(O){var c;let n,d;j({title:"Thu nháºp",description:"Thu nháºp cá»§a tôi"});const f=[{title:"Tháng",dataIndex:"month_data"},{title:"Membership",dataIndex:"money_member"},{title:"Khóa há»c",dataIndex:"money_course"},{title:"Tá»ng cá»ng",dataIndex:"total_money"}],g=N(),{community:b}=B(g),v=K(1),w=q({"filter[community_id]":(c=b.value)==null?void 0:c._id,page:v}),{data:r}=([n,d]=A(()=>P("/api/v1/payment-monthly-community/my-income",{headers:S(),query:w,default:()=>({data:[],meta:{page:1,take:10,itemCount:0,pageCount:0,hasPreviousPage:!1,hasNextPage:!1}})},"$pkiIl40abz")),n=await n,d(),n),I=l(()=>{var a;return((a=r.value)==null?void 0:a.data)||[]}),C=l(()=>{var a;return((a=r.value)==null?void 0:a.waiting_process)||0}),T=l(()=>{var a;return((a=r.value)==null?void 0:a.available)||0});return(a,e)=>{const k=$;return p(),u("div",null,[e[4]||(e[4]=t("h3",{class:"mb-6 text-xl font-bold"}," Thu nháºp ",-1)),R(k,{columns:f,"data-source":i(I),scroll:{x:400}},{bodyCell:y(({column:o,text:M,record:s})=>[o.dataIndex==="money_member"||o.dataIndex==="money_course"||o.dataIndex==="total_money"?(p(),u(h,{key:0},[x(m(i(V)(M).format())+"Ä ",1)],64)):_("",!0),o.dataIndex==="month_data"?(p(),u(h,{key:1},[x(m((s.month<10?"0"+s.month:s.month)+" - "+s.year),1)],64)):_("",!0)]),emptyText:y(()=>e[0]||(e[0]=[t("div",{class:"flex justify-center items-center h-32"},[t("span",null,"Không có dữ liá»u")],-1)])),_:1},8,["data-source"]),t("div",z,[e[3]||(e[3]=t("div",{class:"text-nowrap"},[t("span",null,"30 ngà y gần nhất:"),t("b",null," 0 Ä")],-1)),t("div",D,[e[1]||(e[1]=t("span",null,"Chá» xá» lý: ",-1)),t("b",null,m(i(C))+" Ä",1)]),t("div",E,[e[2]||(e[2]=t("span",null,"Khả dụng: ",-1)),t("b",null,m(i(T))+" Ä",1)])]),e[5]||(e[5]=t("p",null,"Thu nháºp cá»§a bạn sẽ ÄÆ°á»£c thanh toán từ 15 - 21 hà ng tháng (giá trá» thanh toán > 500.000 Ä/1 lần)",-1))])}}}),yt=Object.assign(H,{__name:"CommunityAffiliateIncome"});export{yt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.