import{_ as I,k as L,I as S,o as N,c as l,l as C,q as d,b as t,F as x,x as w,v as _,S as b,a2 as j,r,j as a,n as A,t as s,G as M,m as T}from"./index-CIAVq8iD-1776148658686.js";import{h as D}from"./imageHandler-DstQGL3Z-1776148658686.js";import{u as G}from"./identity-TzakE_vG-1776148658686.js";import{G as Y}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{G as z}from"./GradientBorder-CfwSeIMB-1776148658686.js";const O={class:"fullPage"},H={style:{padding:"0 16px 16px",display:"flex","flex-direction":"column",gap:"12px"}},U={key:0,style:{display:"flex","align-items":"center","justify-content":"space-between"}},V=["onClick"],q={style:{padding:"12px"}},P={key:0,style:{display:"flex","flex-direction":"column",gap:"4px"}},W={style:{display:"flex","justify-content":"space-between","align-items":"center"}},X={style:{"font-weight":"600"}},$={style:{"font-weight":"600"}},J={style:{display:"flex","justify-content":"space-between","align-items":"center"}},K={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"500"}},Q={key:1,style:{display:"flex","flex-direction":"column",gap:"4px"}},Z={style:{"font-weight":"700"}},ee={style:{display:"flex","justify-content":"space-between","align-items":"center",gap:"4px"}},te={style:{flex:"1","min-width":"0",display:"flex"}},se={style:{display:"flex","justify-content":"center","align-items":"center"}},ie=["src"],ne={style:{"min-width":"0",width:"calc(100% - 10vw)",display:"flex","flex-direction":"column","justify-content":"space-between"}},oe={style:{"font-weight":"600","font-size":"0.9em",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},ae={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"500","font-size":"0.9em"}},le={style:{"font-weight":"600","font-size":"0.9em"}},de={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"500","font-size":"0.9em"}},ce={key:2,style:{display:"flex","justify-content":"space-between","align-items":"center",gap:"4px"}},re={style:{display:"flex","flex-direction":"column"}},ue={style:{"font-weight":"600"}},_e={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"500"}},ye={style:{"font-weight":"600"}},pe={__name:"incomeDetails",setup(fe){const{t:i,locale:v}=L();v.value&&S(v.value);const y=G(),h=r([]),g=r([]),p=r([]),m=b(()=>[{label:i("bd"),value:"bd"},{label:i("bd_leader"),value:"bd_leader"}]),f=r(0),k=r("background: #FFCA80;color: #FFF;"),R=n=>{f.value=n},E=b(()=>{switch(y.identity){case"ADMIN":return h.value;case"BD_LEADER":return m.value[f.value].value=="bd"?p.value:g.value;case"BD":return p.value}}),F=n=>{switch(n){case"Under review":return i("pending");case"Approved":return i("success");case"Rejection":return i("rejection");default:return n}},u=async n=>{const o=await j(n);console.log("已邀请列表:",o),o.status&&o.body&&(n==="ADMIN_SALARY"?h.value=o.body||[]:n==="BD_LEADER_SALARY"?g.value=o.body||[]:n==="BD_SALARY"&&(p.value=o.body||[]))},B=()=>{switch(y.identity){case"ADMIN":u("ADMIN_SALARY");break;case"BD_LEADER":u("BD_LEADER_SALARY"),u("BD_SALARY");break;case"BD":u("BD_SALARY");break}};return N(()=>{B()}),(n,o)=>(a(),l("div",O,[C(Y,{showLanguageList:!0,title:d(i)("details"),style:{width:"100%"},color:"black"},null,8,["title"]),t("div",H,[d(y).identity=="BD_LEADER"?(a(),l("div",U,[(a(!0),l(x,null,w(m.value,(e,c)=>(a(),l("div",{key:c,style:A([{width:"45%","border-radius":"999px","font-weight":"700",padding:"10px 0","font-size":"1.1em","text-align":"center"},f.value===c?k.value:""]),onClick:ve=>R(c)},s(e.label),13,V))),128))])):_("",!0),(a(!0),l(x,null,w(E.value,e=>(a(),M(z,{key:e.id,style:{}},{default:T(()=>[t("div",q,[e.type==="CASH_OUT"?(a(),l("div",P,[t("div",W,[t("div",X,s(d(i)("cash_out")),1),t("div",$,s(e.amountText),1)]),t("div",J,[t("div",K,s(e.timeText),1),t("div",{style:A([{"font-weight":"510","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"},{backgroundImage:e.status==="Under review"?"linear-gradient(248deg, #FFE675 5.66%, #FFC53D 42.49%)":e.status==="Approved"?"linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)":"linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)"}])},s(F(e.status)),5)])])):_("",!0),e.type==="TRANSFER"?(a(),l("div",Q,[t("div",Z,s(d(i)("transfer")),1),t("div",ee,[t("div",te,[t("div",se,[t("img",{src:e.userInfo?.avatar||"",alt:"",onError:o[0]||(o[0]=(...c)=>d(D)&&d(D)(...c)),style:{width:"10vw","border-radius":"50%",display:"block","aspect-ratio":"1/1","object-fit":"cover"}},null,40,ie)]),t("div",ne,[t("div",oe,s(e.userInfo?.userNickname),1),t("div",ae,s(d(i)("user_id_prefix"))+" "+s(e.userInfo?.account),1)])]),t("div",le,s(d(i)("plus_coins",{amount:e.amount})),1)]),t("div",de,s(e.timeText),1)])):_("",!0),e.type==="EXCHANGE"||e.type==="ADMIN_INCOME"||e.type==="BD_INCOME"||e.type==="BD_LEADER_INCOME"?(a(),l("div",ce,[t("div",re,[t("div",ue,s(e.typeText),1),t("div",_e,s(e.timeText),1)]),t("div",ye,s(e.amountText),1)])):_("",!0)])]),_:2},1024))),128))])]))}},be=I(pe,[["__scopeId","data-v-66d4ed6e"]]);export{be as default};
