PageSourceSearch

https://85lr.com/assets/ResellerFinance-C0qu70dM.js

js 85lr.com collected 2026-10-02 00:46:38 UTC 6,081 bytes, 1 lines download raw bytes

1import{_ as R,m as w}from"./index-Cg07ssxE.js";import{_ as O}from"./ResellerDonut.vue_vue_type_script_setup_true_lang-DPcDd107.js";import{_ as Y}from"./ResellerHint.vue_vue_type_script_setup_true_lang-CPEXJDOq.js";import{_ as S}from"./ResellerMetricCard.vue_vue_type_script_setup_true_lang-yaG4aZbk.js";import{_ as $}from"./ResellerPageState.vue_vue_type_script_setup_true_lang-sGlESnp1.js";import{y as D,_ as o,a7 as t,H as v,a9 as k,W as N,a8 as d,Y as I,f as i,S as n,C as Z,G as q,$ as s,U as m,u as e,T as h,aa as T,a6 as J}from"./vendor-vue-i18n-tQhtYk3n.js";import{_ as K}from"./ResellerSectionHeader.vue_vue_type_script_setup_true_lang-tkO6yrjA.js";import{_ as Q}from"./ResellerStatusBadge.vue_vue_type_script_setup_true_lang-D8StzQg3.js";import{u as X,p as ee,g as le}from"./resellerFinance-CtgbJl9h.js";import{i as V,j as U,k as F,l as ae}from"./reseller--vGQaj3Y.js";import{f,e as te}from"./resellerConsole-XzTy4XV4.js";import{B as z}from"./banknote-7wnswstp.js";import{W as ne}from"./wallet-Bx-VRlZK.js";import{B as se}from"./badge-check-DLht300j.js";import{U as re}from"./upload-DXGwbLA8.js";import"./VisuallyHidden-Bg47ezdA.js";import"./inbox-CyZyYJT1.js";import"./index-D_4e7g9X.js";const oe={class:"space-y-2"},ce={class:"flex h-2.5 w-full overflow-hidden rounded-full bg-muted"},ie={key:0,class:"flex flex-wrap gap-x-4 gap-y-1 text-xs"},ue={class:"text-muted-foreground"},me={class:"font-mono text-foreground"},de=D({__name:"ResellerProgressBar",props:{segments:{},showLegend:{type:Boolean,default:!0}},setup(C){const l=C,b=i(()=>l.segments.reduce((u,r)=>u+(r.value>0?r.value:0),0)),g=i(()=>l.segments.map(u=>({...u,pct:b.value>0?Math.max(u.value,0)/b.value*100:0})));return(u,r)=>(n(),o("div",oe,[t("div",ce,[(n(!0),o(v,null,k(g.value,(c,p)=>(n(),o("div",{key:p,class:"h-full transition-all",style:N({width:`${c.pct}%`,background:c.color})},null,4))),128))]),C.showLegend?(n(),o("ul",ie,[(n(!0),o(v,null,k(g.value,(c,p)=>(n(),o("li",{key:p,class:"flex items-center gap-1.5"},[t("span",{class:"h-2 w-2 rounded-sm",style:N({background:c.color})},null,4),t("span",ue,d(c.label),1),t("span",me,d(c.display??c.value),1)]))),128))])):I("",!0)]))}}),_e={class:"space-y-5"},pe={class:"grid grid-cols-1 gap-4 sm:grid-cols-3"},fe={class:"mb-4 text-sm font-bold text-foreground"},ve={class:"grid grid-cols-1 gap-4 sm:grid-cols-2"},be={class:"flex items-start justify-between gap-3"},ge={class:"font-mono text-sm font-bold text-foreground"},he={class:"mt-2 text-xs text-muted-foreground"},Ce={class:"mt-1 font-mono text-lg font-black text-foreground"},ye={class:"flex items-center gap-1.5"},xe={class:"mt-4"},He=D({__name:"ResellerFinance",setup(C){const{t:l}=Z(),{dashboardLoading:b,balanceLoading:g,dashboard:u,balances:r,loadDashboard:c,loadBalances:p}=X(),y=i(()=>r.value.length?r.value:u.value?.balances||[]),x=i(()=>ee(y.value)),W=i(()=>x.value?f(x.value.available_amount,x.value.currency):"-"),H=i(()=>y.value.length>1?l("personalCenter.reseller.moreCurrencies",{count:y.value.length-1}):""),E=i(()=>le(u.value?.profile)),M=i(()=>l(`personalCenter.reseller.${E.value.namespace}.${E.value.key}`)),L=i(()=>r.value.map((a,A)=>({value:Number(a.available_amount)||0,color:te(A),label:a.currency})).filter(a=>a.value>0)),P=a=>[{value:Number(a.available_amount)||0,color:"#10b981",label:l("personalCenter.reseller.availableAmount"),display:f(a.available_amount)},{value:Number(a.locked_amount)||0,color:"#f59e0b",label:l("personalCenter.reseller.lockedAmount"),display:f(a.locked_amount)},{value:Number(a.negative_amount)||0,color:"#ef4444",label:l("personalCenter.reseller.negativeAmount"),display:f(a.negative_amount)}],j=a=>a===V?l("personalCenter.reseller.balanceStatus.normal"):a===U?l("personalCenter.reseller.balanceStatus.negativeBalance"):a===F?l("personalCenter.reseller.balanceStatus.frozenReview"):a===ae?l("personalCenter.reseller.balanceStatus.disabled"):a||"-",G=a=>a===V?"success":a===U||a===F?"warning":"neutral";return q(()=>{Promise.all([c(),p()])}),(a,A)=>{const B=J("RouterLink");return n(),o("div",_e,[s(K,{title:e(l)("resellerConsole.finance.title"),description:e(l)("resellerConsole.finance.description")},{actions:m(()=>[s(e(w),{"as-child":"",size:"sm"},{default:m(()=>[s(B,{to:"/reseller/withdraws"},{default:m(()=>[s(e(re),{class:"h-4 w-4"}
1),T(" "+d(e(l)("resellerConsole.nav.withdraws")),1)]),_:1})]),_:1})]),_:1},8,["title","description"]),e(b)||e(g)?(n(),h($,{key:0,loading:"",title:e(l)("resellerConsole.common.loading")},null,8,["title"])):(n(),o(v,{key:1},[t("div",pe,[s(S,{label:e(l)("personalCenter.reseller.primaryAvailable"),value:W.value,hint:H.value,icon:e(z),tone:"success"},null,8,["label","value","hint","icon"]),s(S,{label:e(l)("personalCenter.reseller.currencyCount"),value:e(r).length,icon:e(ne),tone:"info"},null,8,["label","value","icon"]),s(S,{label:e(l)("personalCenter.reseller.settlementStatus"),value:M.value,icon:e(se),tone:"accent"},null,8,["label","value","icon"])]),e(r).length===0?(n(),h($,{key:0,title:e(l)("personalCenter.reseller.balanceEmpty"),icon:e(z)},{default:m(()=>[s(e(w),{"as-child":""},{default:m(()=>[s(B,{to:"/reseller/products"},{default:m(()=>[T(d(e(l)("resellerConsole.nav.products")),1)]),_:1})]),_:1})]),_:1},8,["title","icon"])):(n(),o(v,{key:1},[L.value.length?(n(),h(e(R),{key:0,class:"p-5"},{default:m(()=>[t("h3",fe,d(e(l)("resellerConsole.finance.distribution")),1),s(O,{segments:L.value,"center-value":e(r).length,"center-label":e(l)("personalCenter.reseller.currencyCount")},null,8,["segments","center-value","center-label"])]),_:1})):I("",!0),t("div",ve,[(n(!0),o(v,null,k(e(r),_=>(n(),h(e(R),{key:_.id,class:"p-4 sm:p-5"},{default:m(()=>[t("div",be,[t("div",null,[t("div",ge,d(_.currency),1),t("div",he,d(e(l)("personalCenter.reseller.availableAmount")),1),t("div",Ce,d(e(f)(_.available_amount,_.currency)),1)]),t("div",ye,[s(Q,{label:j(_.status),tone:G(_.status)},null,8,["label","tone"]),s(Y,{text:e(l)("resellerConsole.finance.settlementHint")},null,8,["text"])])]),t("div",xe,[s(de,{segments:P(_)},null,8,["segments"])])]),_:2},1024))),128))])],64))],64))])}}});export{He 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.