PageSourceSearch

https://050o.bet/releases/4.19.30/js/vipLevelProgress.f194fd53.js

js 050o.bet collected 2026-10-09 04:40:08 UTC 3,946 bytes, 2 lines download raw bytes

1import{x as e,r,j as s}from"./vendor.b083bec7.js";import{b5 as t,cw as l,b7 as a,cv as n}from"./main.2e07edfa.js";const i=e=>Number(e)||0,c=e=>{const r=Number(e);if(!Number.isNaN(r))return r;const s=String(e??"").match(/\d+/);return s?Number(s[0]):0},m=({label:e="",current:r=0,target:t=0,currencySymbol:l="",className:n="",showTarget:c=!0})=>{const m=`${l}${a(r)}`,o=`${l}${a(t)}`,d=i(r)>=i(t)?"text-[var(--new-vip-text-progress)]":"text-[var(--txt-7)]";return s.jsxs("div",{className:`flex flex-wrap items-center gap-x-[.08rem] gap-y-[.02rem] text-[.2rem] font-[500] leading-[.3rem] ${n}`,children:[s.jsx("div",{className:"whitespace-nowrap font-[400] text-[var(--new-vip-text-primary)]",children:e}),s.jsxs("div",{className:"flex items-center whitespace-nowrap",children:[s.jsx("div",{className:`${d} mr-[.08rem]`,children:m}),c?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-[var(--new-vip-text-progress)] mr-[.08rem]",children:"/"}),s.jsx("div",{className:"text-[var(--new-vip-text-highlight)]",children:o})]}):null]})]})},o=({percent:e})=>{const r=Math.max(0,Math.min(Number(e)||0,100)),t=`calc((100% - 0.28rem) * ${r/100} + 0.14rem)`;return s.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_.72rem] items-center gap-[.16rem]",children:[s.jsxs("div",{className:"relative h-[.16rem] rounded-full bg-[#A9B9D2]",children:[s.jsx("div",{className:"h-full rounded-full bg-[#22AD0B]",style:{width:t}}),s.jsxs("span",{className:"absolute top-1/2 flex size-[.28rem] -translate-x-1/2 -translate-y-1/2 items-center justify-center drop-shadow-[0_0_.086rem_rgba(94,233,73,0.8)]",style:{left:t},children:[s.jsx("span",{className:"absolute inset-0 rounded-full bg-[rgba(94,233,73,0.8)]"}),s.jsx("span",{className:"relative size-[.16rem] rounded-full bg-[#22AD0B]"})]})]}),s.jsxs("div",{className:"text-right text-[.24rem] font-[400] leading-[.36rem] text-[var(--new-vip-text-primary)]",children:[r.toFixed(2),"%"]})]})},d=({data:a,progressTextClassName:d="",progressTextShowTarget:x=!0})=>{var v;const{t:u}=e(),{currencySymbol:g}
1=t(),[p,h]=r.useState({style:null,wager:null,deposit:null,showTarget:null});r.useCallback((e,r)=>{h(s=>({...s,[e]:r}))},[]);const j=null==a?void 0:a.vipLevel,w=p.style??(null==(v=null==a?void 0:a.new_vip_mod)?void 0:v.progress_bar_style),N=(f=j,((null==(b=a)?void 0:b.list)||[]).find(e=>{var r;return c(null==(r=null==e?void 0:e.vip_level_config)?void 0:r.vip)==c(f)})||null);var b,f;const y=(null==N?void 0:N.vip_level_config)||{},_=i(null==y?void 0:y.total_wager),$=i(null==y?void 0:y.total_deposit),T=i(null==a?void 0:a.totalWager),S=i(null==a?void 0:a.totalDeposit),F=p.wager??_>0,D=p.deposit??$>0,M=F||D,A=F?_||1500:_,B=F?_>0?T:500:T,z=D?$||1e3:$,C=D?$>0?S:300:S,L=A>0?Math.min(n(B,A),100):0,k=z>0?Math.min(n(C,z),100):0,V=D?(n(C,z)+n(B,A))/2:n(B,A),W=p.showTarget??x,q=u("vip2.current_wager"),E=u("vip2.current_deposit");return s.jsxs("div",{className:"w-full",children:[false,s.jsxs("div",{className:"flex w-full items-center space-x-[.3rem]",children:[s.jsx(l,{vipLevel:j||0,className:"max-w-[1.9rem]"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-[var(--new-vip-text-secondary)] text-[.28rem] font-[400] leading-[.24rem]",children:u("vip2.current_level")}),1==w?s.jsxs(s.Fragment,{children:[F&&s.jsxs(s.Fragment,{children:[s.jsx(m,{label:q,current:B,target:A,currencySymbol:g,className:`mt-[.2rem] ${d}`,showTarget:W}),s.jsx(o,{percent:L})]}),D&&s.jsxs(s.Fragment,{children:[s.jsx(m,{label:E,current:C,target:z,currencySymbol:g,className:`mt-[.2rem] ${d}`,showTarget:W}),s.jsx(o,{percent:k})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(o,{percent:V}),M&&s.jsxs(s.Fragment,{children:[F&&s.jsx(m,{label:q,current:B,target:A,currencySymbol:g,className:`mt-[.2rem] ${d}`,showTarget:W}),D&&s.jsx(m,{label:E,current:C,target:z,currencySymbol:g,className:`mt-[.12rem] ${d}`,showTarget:W})]})]})]})]})]})};export{d as V};
2//# sourceMappingURL=vipLevelProgress.f194fd53.js.map

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.