PageSourceSearch

https://dashboard.thspian.com/static/js/1752.84fde12d.chunk.js

js thspian.com collected 2026-10-02 00:57:28 UTC 24,353 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkthspian_web||=[]).push([[1752],{21844(e,n,t){t.d(n,{N:()=>h,O:()=>u});var s=t(65043),i=t(96446),r=t(77224),o=t(88911),l=t(22379),a=t(14166),d=t(70579);const c=(0,l.gy)(l.vM,l.OU,a.Ib,{width:"100%",maxWidth:"100%",minWidth:0,overflowX:"hidden",minHeight:"100vh",py:{xs:2,sm:3,md:4},pb:{xs:8,sm:10,lg:12},boxSizing:"border-box"}),x={width:"100%",maxWidth:"100%",mx:"auto",minWidth:0,px:{xs:2,sm:3,lg:4},boxSizing:"border-box"};function u(e){let{children:n}=e;return(0,s.useEffect)(()=>{(0,l.i0)()},[]),(0,d.jsx)(i.A,{sx:c,children:(0,d.jsx)(r.A,{disableGutters:!0,maxWidth:!1,sx:x,children:(0,d.jsx)(o.A,{spacing:{xs:3,sm:4},sx:{width:"100%",maxWidth:"100%",minWidth:0},children:n})})})}function h(e){let{children:n}=e;return(0,d.jsx)(i.A,{sx:(0,l.gy)(c,{display:"flex",alignItems:"center",justifyContent:"center"}),children:n})}},19238(e,n,t){t.d(n,{K:()=>g});var s=t(65043),i=t(96446),r=t(86150),o=t(50108),l=t(87734),a=t(90168),d=t(13839),c=t(52185),x=t(6026),u=t(26335),h=t(98893),f=t(14166),m=t(70579);const p={fill:f.JI,fontSize:11,fontFamily:f.YA},b={fill:f.Es,fontSize:11,fontFamily:f.YA};function g(e){let{series:n,height:t=256}=e;const g=(0,s.useMemo)(()=>[...null!=n?n:[]].sort((e,n)=>new Date(e.date).getTime()-new Date(n.date).getTime()).map(e=>{var n,t;return{date:new Date(e.date).toLocaleDateString("en-US",{month:"short",day:"numeric"}),signups:null!==(n=e.signups)&&void 0!==n?n:0,earningsUsd:(null!==(t=e.earnings_cents)&&void 0!==t?t:0)/100}}),[n]);return g.length?(0,m.jsx)(i.A,{sx:{width:"100%",height:t},children:(0,m.jsx)(o.u,{width:"100%",height:"100%",children:(0,m.jsxs)(u.X,{data:g,margin:{top:8,right:8,left:0,bottom:0},children:[(0,m.jsx)("defs",{children:(0,m.jsxs)("linearGradient",{id:"loyaltyGrowthFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,m.jsx)("stop",{offset:"0%",stopColor:f.Y5,stopOpacity:.35}),(0,m.jsx)("stop",{offset:"100%",stopColor:f.Y5,stopOpacity:0})]})}),(0,m.jsx)(l.d,{stroke:f.k2,strokeDasharray:"4 4",vertical:!1}),(0,m.jsx)(c.W,{dataKey:"date",tick:p,axisLine:!1,tickLine:!1}),(0,m.jsx)(x.h,{yAxisId:"signups",tick:p,axisLine:!1,tickLine:!1,width:32}),(0,m.jsx)(x.h,{yAxisId:"earnings",orientation:"right",tick:b,axisLine:!1,tickLine:!1,width:48,tickFormatter:e=>`$${e}`}),(0,m.jsx)(r.m,{contentStyle:{background:"#131313",border:"1px solid rgba(255,201,101,0.15)",borderRadius:12,color:"#fff",fontFamily:f.YA,fontSize:13},formatter:(e,n)=>"earningsUsd"===n?[(0,h.i)(100*e),"Earnings"]:[e,"Signups"]}),(0,m.jsx)(d.G,{yAxisId:"signups",type:"monotone",dataKey:"signups",stroke:f.Y5,fill:"url(#loyaltyGrowthFill)",strokeWidth:3}),(0,m.jsx)(a.N,{yAxisId:"earnings",type:"monotone",dataKey:"earningsUsd",stroke:f.Es,strokeWidth:2,dot:!1})]})})}):(0,m.jsx)(i.A,{sx:{height:t,display:"flex",alignItems:"center",justifyContent:"center",color:f.JI,fontSize:14,fontFamily:f.YA},children:"No growth data yet"})}},43020(e,n,t){t.d(n,{c:()=>p});var s=t(96446),i=t(85865),r=t(60587),o=t(28076),l=t(10039),a=t(17392),d=t(98082),c=t(91707),x=t(98893),u=t(14166),h=t(70579);function f(e){let{member:n}=e;const t=(0,x.e6)(n.status),r="signed_up"===n.status,o=t?u.Es:r?u.Xx:u.JI;return(0,h.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,h.jsx)(s.A,{sx:{width:8,height:8,borderRadius:"50%",bgcolor:o,boxSh
1adow:t?"0 0 8px rgba(0,253,193,0.4)":void 0,animation:r?"pulse 2s infinite":void 0}}),(0,h.jsx)(i.A,{sx:{color:o,fontWeight:700,fontSize:14},children:(0,x._g)(n.status)})]})}function m(e){let{member:n}=e;const t=n.user;return(0,h.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,h.jsx)(r.A,{src:t.profile_photo,sx:{width:40,height:40,border:"1px solid rgba(72,72,71,0.2)",opacity:"signed_up"===n.status?.6:1},children:(t.name||t.username||"?").charAt(0)}),(0,h.jsxs)(s.A,{children:[(0,h.jsx)(i.A,{sx:{...u.eL,color:"#fff"},children:t.name||"Member"}),(0,h.jsxs)(i.A,{sx:{...u.H7,fontSize:12},children:["@",t.username]})]})]})}function p(e){let{member:n,variant:t="table",onClick:r}=e;return"list"===t?(0,h.jsxs)(s.A,{onClick:r,sx:{bgcolor:u.Ko,"&:hover":{bgcolor:u.Re},p:2,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:r?"pointer":"default",transition:"background-color 0.2s"},children:[(0,h.jsx)(m,{member:n}),(0,h.jsxs)(s.A,{sx:{display:{xs:"none",md:"block"},textAlign:"center"},children:[(0,h.jsx)(i.A,{sx:{...u.Zm,fontSize:10},children:"MEMBER SINCE"}),(0,h.jsx)(i.A,{sx:{fontSize:14},children:(0,x.nC)(n.join_date)})]}),(0,h.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,h.jsx)(s.A,{sx:{px:2,py:.5,borderRadius:"999px",border:(0,x.e6)(n.status)?"1px solid rgba(255,201,101,0.2)":"1px solid rgba(72,72,71,0.3)",bgcolor:(0,x.e6)(n.status)?"rgba(255,201,101,0.1)":u.k2},children:(0,h.jsx)(i.A,{sx:{fontSize:10,fontWeight:900,letterSpacing:1,color:(0,x.e6)(n.status)?u.Y5:u.JI},children:(0,x.e6)(n.status)?"ACTIVE":"PENDING"})}),r?(0,h.jsx)(c.A,{sx:{color:u.JI}}):null]})]}):(0,h.jsxs)(o.A,{hover:!0,onClick:r,sx:{cursor:r?"pointer":"default","&:hover":{bgcolor:"rgba(38,38,38,0.2)"}},children:[(0,h.jsx)(l.A,{sx:{borderColor:u.Re,py:2,px:{xs:2,md:4}},children:(0,h.jsx)(m,{member:n})}),(0,h.jsx)(l.A,{sx:{borderColor:u.Re,color:u.JI},children:(0,x.nC)(n.join_date)}),(0,h.jsx)(l.A,{sx:{borderColor:u.Re},children:n.tier?(0,h.jsx)(s.A,{sx:{display:"inline-block",px:1.5,py:.5,borderRadius:"999px",bgcolor:"rgba(255,201,101,0.15)",fontSize:10,fontWeight:800,color:u.Y5},children:n.tier.toUpperCase()}):"—"}),(0,h.jsx)(l.A,{sx:{borderColor:u.Re},children:(0,h.jsx)(f,{member:n})}),(0,h.jsx)(l.A,{align:"right",sx:{borderColor:u.Re},children:(0,h.jsx)(a.A,{size:"small",sx:{color:u.JI},children:(0,h.jsx)(d.A,{fontSize:"small"})})})]})}},21752(e,n,t){t.d(n,{BuzzBridgeRewardsDashboardPage:()=>V});var s=t.cw(function(e,n){var t=o();n.A=void 0;var s=t(i()),l=r();n.A=(0,s.default)((0,l.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m7.48 7.16-5.01-.43-2-4.71c3.21.19 5.91 2.27 7.01 5.14m-5.07 6.26L12 13.98l-2.39 1.44.63-2.72-2.11-1.83 2.78-.24L12 8.06l1.09 2.56 2.78.24-2.11 1.83zm-2.86-11.4-2 4.72-5.02.43c1.1-2.88 3.8-4.97 7.02-5.15M4 12c0-.64.08-1.26.23-1.86l3.79 3.28-1.11 4.75C5.13 16.7 4 14.48 4 12m3.84 6.82L12 16.31l4.16 2.5c-1.22.75-2.64 1.19-4.17 1.19-1.52 0-2.94-.44-4.15-1.18m9.25-.65-1.11-4.75 3.79-3.28c.14.59.23 1.22.23 1.86 0 2.48-1.14 4.7-2.91 6.17"}),"StarsOutlined")}),i=()=>t(40039),r=()=>t(70579),o=()=>
1t(1654),l=t(65043),a=t(81637),d=t(96446),c=t(17392),x=t(85865),u=t(11906),h=t(71806),f=t(84882),m=t(28076),p=t(10039),b=t(73460),g=t(69120),A=t(84458);r();var j=t(14230),y=t(78030),_=t(6502),v=t(586),w=t(83706),S=t(1833),k=t(44200),I=t(42887),C=t(19877),z=t(80213),R=t(83462),W=t(97629),Y=t(69371),E=t(18163),N=t(84770),T=t(41954),M=t(79641),D=t(33438),O=t(82212),L=t(70141),U=t(2404),B=t(98893),F=t(23128),H=t(14166);function J(e){const n={fontSize:18,color:H.Y5};switch(e){case"nuban":return(0,r().jsx)(Y.A,{sx:n});case"mobile_money":return(0,r().jsx)(E.A,{sx:n});case"paypal":return(0,r().jsx)(N.A,{sx:n});case"swift":return(0,r().jsx)(T.A,{sx:n});default:return(0,r().jsx)(M.A,{sx:n})}}function Z(e){var n,t,s,i,r,o,l,a,d,c,x,u,h,f,m;switch(e.external_account_type){case"nuban":return`${null!==(n=null===(t=e.bank_details)||void 0===t?void 0:t.bank_name)&&void 0!==n?n:"Bank"} · ****${String(null!==(s=null===(i=e.bank_details)||void 0===i?void 0:i.account_number)&&void 0!==s?s:"").slice(-4)}`;case"mobile_money":return`${null!==(r=null===(o=e.mobile_money_details)||void 0===o?void 0:o.mobile_money_name)&&void 0!==r?r:"Mobile Money"} · ${null!==(l=null===(a=e.mobile_money_details)||void 0===a?void 0:a.phone_number)&&void 0!==l?l:""}`;case"paypal":return`PayPal · ${null!==(d=null===(c=e.paypal_details)||void 0===c?void 0:c.email)&&void 0!==d?d:""}`;case"ach":return`ACH · ****${String(null!==(x=null===(u=e.bank_details)||void 0===u?void 0:u.account_number)&&void 0!==x?x:"").slice(-4)}`;case"bank_account":return`Wire · ****${String(null!==(h=null===(f=e.bank_details)||void 0===f?void 0:f.account_number)&&void 0!==h?h:"").slice(-4)}`;default:return null!==(m=e.name)&&void 0!==m?m:"Account"}}function $(e){var n,t;return String(null!==(n=null!==(t=e._id)&&void 0!==t?t:e.id)&&void 0!==n?n:"")}function P(e){var n,t,s,i;let{open:o,onClose:h}=e;const f=(0,v.wA)(),m=(0,w.fi)(),p=(0,v.d4)(k.Hv),b=(0,v.d4)(k.v5),g=(0,v.d4)(k.w5),A=(0,v.d4)(k.cs),{userExternalAccounts:j,gettingUserExternalAccounts:y}=(0,v.d4)(e=>e.account),[_,z]=(0,l.useState)(0),[Y,E]=(0,l.useState)("0"),[N,T]=(0,l.useState)(""),[M,P]=(0,l.useState)("request"),G=(0,F.f4)(null==p?void 0:p.cash_wallet),q=G/100,K=null!==(n=null==p||null===(t=p.config)||void 0===t?void 0:t.min_withdrawal_usd_cents)&&void 0!==n?n:4e3,V=K/100,X=null!==(s=null==p||null===(i=p.cash_wallet)||void 0===i?void 0:i.pending_withdrawal_cents)&&void 0!==s?s:0;(0,l.useEffect)(()=>{o&&(f((0,U.nG)()),m((0,S.mb)()),P("request"),T(""))},[o,f,m]),(0,l.useEffect)(()=>{if(!o||null==j||!j.length)return;if(N&&j.some(e=>$(e)===N))return;const e=j.find(e=>e.is_primary),n=$(null!=e?e:j[0]);n&&T(n)},[o,j,N]),(0,l.useEffect)(()=>{if(!o||b)return;const e=Math.min(q,V);z(e>0?e:0),E(String(e>0?e:0))},[o,b,q,V]);const Q=_>=V&&_<=q&&!!N&&!g&&G>=K,ee=(0,l.useRef)(!1);(0,l.useEffect)(()=>{!ee.current||g||A||h(),ee.current=g},[g,A,h]);const ne=(0,l.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.withdrawals)&&void 0!==e?e:[]},[null==p?void 0:p.withdrawals]),te=function(e){var n,t;if(!e)return null;if("string"==typeof e)return e;const s=null!==(n=null==e?void 0:e.message)&&void 0!==n?n:null==e||null===(t=e.data)||void 0===t?void 0:t.message;return"string"==typeof s?s:"Could not submit withdrawal request"}(A);return(0,r().jsxs)(R.A,{open:o,onClose:h,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{bgcolor:H.Ko,borderRadius:"24px",border:"1px solid rgba(255,201,101,0.12)",backgroundImage:"none"}},children:[(0,r().jsxs)(d.A,{sx:{px:3,pt:3,pb:0,fontFamily:H.YA},children:[(0,r().jsxs)(d.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[(0,r().jsx)(x.A,{sx:{fontFamily:H.O,fontWeight:800,fontSize:20,color:"#fff"},children:"Withdraw referral earnings"}),(0,r().jsx)(c.A,{onClick:h,size:"small",sx:{color:H.JI},children:(0,r().jsx)(D.A,{fontSize:"small"})})]}),(0,r().jsx)(d.A,{sx:{display:"flex",borderBottom:"1px solid rgba(255,255,255,0.08)"},children:["request","history"].map(e=>(0,r().jsx)(d.A,{onClick:()=>P(e),sx:{flex:1,textAlign:"center",pb:1.25,cursor:"pointer",borderBottom:M===e?`2px solid ${H.Y5}
1`:"2px solid transparent",mb:"-1px"},children:(0,r().jsx)(x.A,{sx:{fontSize:13,fontFamily:H.O,fontWeight:M===e?800:600,color:M===e?H.Y5:H.JI},children:"request"===e?"Request withdrawal":"History"})},e))})]}),"request"===M?(0,r().jsxs)(d.A,{sx:{px:3,py:3,display:"flex",flexDirection:"column",gap:2.5,fontFamily:H.YA},children:[(0,r().jsxs)(d.A,{sx:{bgcolor:H.k2,borderRadius:"16px",p:2.5,border:"1px solid rgba(72,72,71,0.35)"},children:[(0,r().jsxs)(d.A,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,r().jsx)(O.A,{sx:{color:H.Y5}}),(0,r().jsxs)(d.A,{sx:{flex:1},children:[(0,r().jsx)(x.A,{sx:{fontSize:10,letterSpacing:"0.12em",color:H.JI,fontWeight:700},children:"AVAILABLE TO WITHDRAW"}),b?(0,r().jsx)(a.A,{size:20,sx:{color:H.Y5,mt:1}}):(0,r().jsx)(x.A,{sx:{fontFamily:H.O,fontWeight:900,fontSize:24,color:"#fff"},children:(0,B.i)(G)})]})]}),X>0?(0,r().jsxs)(x.A,{sx:{fontSize:12,color:H.JI,mt:1},children:[(0,B.i)(X)," pending review"]}):null,(0,r().jsxs)(x.A,{sx:{fontSize:12,color:H.JI,mt:1},children:["Minimum withdrawal: ",(0,B.i)(K)]})]}),(0,r().jsxs)(d.A,{sx:{bgcolor:H.k2,borderRadius:"16px",p:2.5,border:"1px solid rgba(72,72,71,0.35)"},children:[(0,r().jsx)(x.A,{sx:{fontSize:10,letterSpacing:"0.12em",color:H.JI,fontWeight:700,mb:1},children:"WITHDRAWAL AMOUNT"}),(0,r().jsxs)(d.A,{sx:{display:"flex",alignItems:"baseline",gap:.5,mb:2},children:[(0,r().jsx)(x.A,{sx:{fontFamily:H.O,fontSize:28,fontWeight:900,color:H.Y5},children:"$"}),(0,r().jsx)(d.A,{component:"input",type:"text",inputMode:"decimal",value:Y,onChange:e=>{const n=e.target.value;if(""!==n&&!/^\d*\.?\d*$/.test(n))return;E(n);const t=Number(n);""===n||Number.isNaN(t)||z(Math.min(Math.max(t,0),q))},onBlur:()=>{const e=Number(Y);if(""!==Y&&!Number.isNaN(e)){const n=Math.min(Math.max(e,0),q);z(n),E(String(n))}},sx:{background:"none",border:"none",outline:"none",fontFamily:H.O,fontSize:36,fontWeight:900,color:H.Y5,width:"100%",minWidth:0}})]}),(0,r().jsx)(W.Ay,{value:_,onChange:(e,n)=>{z(n),E(String(n))},min:V,max:Math.max(q,V),step:1,disabled:q<V||b,sx:{color:H.Y5,"& .MuiSlider-thumb":{bgcolor:H.Y5}}})]}),(0,r().jsxs)(d.A,{children:[(0,r().jsx)(x.A,{sx:{fontSize:10,letterSpacing:"0.12em",color:H.JI,fontWeight:700,mb:1.5},children:"PAYOUT TO"}),y?(0,r().jsx)(d.A,{sx:{display:"flex",justifyContent:"center",py:2},children:(0,r().jsx)(a.A,{size:24,sx:{color:H.Y5}})}):null!=j&&j.length?(0,r().jsx)(d.A,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:j.map(e=>{const n=$(e);if(!n)return null;const t=N===n;return(0,r().jsxs)(d.A,{role:"radio","aria-checked":t,onClick:()=>T(n),sx:{display:"flex",alignItems:"center",gap:2,p:2,borderRadius:"16px",cursor:"pointer",bgcolor:t?"rgba(255,201,101,0.08)":H.k2,border:"1px solid "+(t?"rgba(255,201,101,0.35)":"rgba(72,72,71,0.35)")},children:[(0,r().jsx)(d.A,{sx:{width:36,height:36,borderRadius:"12px",bgcolor:"rgba(255,201,101,0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:J(e.external_account_type)}),(0,r().jsxs)(d.A,{sx:{flex:1,minWidth:0},children:[(0,r().jsx)(x.A,{sx:{fontFamily:H.O,fontWeight:700,fontSize:13,color:"#fff"},noWrap:!0,children:e.name||Z(e)}),(0,r().jsxs)(x.A,{sx:{fontSize:11,color:H.JI},noWrap:!0,children:[Z(e),e.account_currency?` · ${e.account_currency}`:""]})]}),(0,r().jsx)(d.A,{sx:{width:18,height:18,borderRadius:"50%",flexShrink:0,border:`2px solid ${t?H.Y5:"rgba(255,255,255,0.25)"}`,bgcolor:t?H.Y5:"transparent",boxShadow:t?"inset 0 0 0 3px #1a1a1a":"none"}})]},n)})}):(0,r().jsxs)(d.A,{sx:{textAlign:"center",p:2.5,border:"1px dashed rgba(255,201,101,0.25)",borderRadius:"16px"},children:[(0,r().jsx)(x.A,{sx:{color:H.JI,fontSize:13,mb:1.5},children:"Link a payout account first"}),(0,r().jsx)(u.A,{onClick:()=>f((0,I.o)({routes:C.bw.ACCOUNT_EXTERNAL_ACCOUNT,skipAuthentication:!1})),startIcon:(0,r().jsx)(L.A,{}),sx:{color:H.Y5,border:"1px solid rgba(255,201,101,0.35)",borderRadius:"999px",textTransform:"none",fontFamily:H.O,fontWeight:700},children:"Add account"})]})]}),te?(0,r().jsx)(x.A,{sx:{fontSize:13,color:"#ff7351"},children:te}):null,(0,r().jsx)(u.A,{fullWidth:!0,disabled:!Q,onClick:()=>{const e=null==j?void 0:j.find(e=>$(e)===N);if(!e)return;const n=(0,F.ZM)(e,Math.round(100*_));m((0,S.X6)(n))},sx:{py:1.75,borderRadius:"999px",fontFamily:H.O,fontWeight:800,textTransform:"none",background:Q?`linear-gradient(135deg, ${H.Y5} 0%, #feb700 100%)`:"rgba(255,255,255,0.06)",color:Q?"#392700":H.JI},children:g?(0,r().jsx)(a.A,{size:22,sx:{color:"#392700"}}):"Submit withdrawal request"}),(0,r().jsx)(x.A,{sx:{fontSize:12,color:H.JI,textAlign:"center"},children:"Requests are reviewed manually by admin before payout."})]}):(0,r().jsx)(d.A,{sx:{px:3,py:3,maxHeight:"50vh",overflowY:"auto"},children:b?(0,r().jsx)(d.A,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,r().jsx)(a.A,{sx:{color:H.Y5}})}):0===ne.length?(0,r().jsx)(x.A,{sx:{color:H.JI,textAlign:"center",py:4},children:"No withdrawal requests yet"}):(0,r().jsx)(d.A,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:ne.map(e=>(0,r().jsxs)(d.A,{sx:{p:2,borderRadius:"16px",bgcolor:H.k2,border:"1px solid rgba(72,72,71,
10.35)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,r().jsxs)(d.A,{children:[(0,r().jsx)(x.A,{sx:{fontFamily:H.O,fontWeight:800,color:"#fff"},children:(0,B.i)(e.amount_cents)}),(0,r().jsx)(x.A,{sx:{fontSize:11,color:H.JI},children:new Date(e.created_at).toLocaleDateString()})]}),(0,r().jsx)(x.A,{sx:{fontSize:12,fontWeight:700,color:"paid"===e.status?H.Es:H.Y5},children:(0,F.yZ)(e.status)})]},e.id))})})]})}var G=t(19238),q=t(43020),K=t(21844);function V(){var e,n,t,i,o,R,W,Y,E,N;const T=(0,v.wA)(),M=(0,w.fi)(),D=(0,v.d4)(k.cu),O=(0,v.d4)(k.cr),[L,U]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{M((0,S.p0)())},[M]),O&&!D)return(0,r().jsx)(K.N,{children:(0,r().jsx)(a.A,{sx:{color:H.Y5}})});const J=null==D?void 0:D.cash_wallet,Z=null==D?void 0:D.loyalty_points,$=null==D?void 0:D.network_health,V=(0,F.f4)(J),X=V>=(null!==(e=null==D||null===(n=D.config)||void 0===n?void 0:n.min_withdrawal_usd_cents)&&void 0!==e?e:4e3);return(0,r().jsxs)(K.O,{children:[(0,r().jsxs)(d.A,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,r().jsx)(c.A,{onClick:()=>T((0,I.o)({routes:(0,z.Zi)(z.vI.BUZZBRIDGE),skipAuthentication:!1})),sx:{color:H.Y5},"aria-label":"Back to BuzzBridge dashboard",children:(0,r().jsx)(g.A,{})}),(0,r().jsx)(x.A,{sx:{...H.nS,fontSize:28,color:H.Y5},children:"Rewards"})]}),(0,r().jsxs)(d.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:3},children:[(0,r().jsxs)(d.A,{sx:{...H.sb,p:4,position:"relative",overflow:"hidden"},children:[(0,r().jsxs)(d.A,{sx:{display:"flex",justifyContent:"space-between",mb:3},children:[(0,r().jsx)(x.A,{sx:H.Zm,children:"AVAILABLE FUNDS"}),(0,r().jsx)(A.A,{sx:{color:H.Y5}})]}),(0,r().jsx)(x.A,{sx:{...H.TY,fontSize:{xs:36,md:48},color:"#fff"},children:(0,B.i)(V)}),(null!==(t=null==J?void 0:J.pending_withdrawal_cents)&&void 0!==t?t:0)>0?(0,r().jsxs)(x.A,{sx:{...H.H7,mt:.5},children:[(0,B.i)(null==J?void 0:J.pending_withdrawal_cents)," pending review"]}):null,null!=(null==J?void 0:J.month_over_month_growth_percent)?(0,r().jsxs)(x.A,{sx:{...H.H7,mt:1},children:[(0,r().jsxs)(d.A,{component:"span",sx:{color:H.Es,fontWeight:700},children:["+",J.month_over_month_growth_percent,"%"]})," ",(0,r().jsx)(d.A,{component:"span",sx:{color:H.JI},children:"from last month"})]}):null,(0,r().jsx)(u.A,{onClick:()=>U(!0),disabled:!X,sx:{...H.At,mt:2,fontSize:11,py:1.25,opacity:X?1:.5},children:"Withdraw cash"})]}),(0,r().jsxs)(d.A,{sx:{...H.sb,p:4},children:[(0,r().jsxs)(d.A,{sx:{display:"flex",justifyContent:"space-between",mb:3},children:[(0,r().jsx)(x.A,{sx:H.Zm,children:"LOYALTY POINTS"}),(0,r().jsx)(s().A,{sx:{color:H.Y5}})]}),(0,r().jsxs)(d.A,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,r().jsx)(x.A,{sx:{...H.TY,fontSize:{xs:36,md:48},color:H.Y5},children:(0,B.zY)(null==Z?void 0:Z.balance)}),(0,r().jsx)(x.A,{sx:{...H.H7,fontWeight:700},children:"pts"})]})]})]}),(0,r().jsxs)(d.A,{sx:{...H.sb,bgcolor:H.Ag,p:4,display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"space-between",gap:3},children:[(0,r().jsxs)(d.A,{sx:{display:"flex",gap:2,alignItems:"center"},children:[(0,r().jsx)(d.A,{sx:{width:48,height:48,borderRadius:"50%",bgcolor:"rgba(255,201,101,0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r().jsx)(j.A,{sx:{color:H.Y5}})}),(0,r().jsxs)(d.A,{children:[(0,r().jsx)(x.A,{sx:{...H.Bw,color:"#fff"},children:"Redeem your hard-earned rewards"}),(0,r().jsx)(x.A,{sx:H.H7,children:"Convert points to gift cards and premium perks."})]})]}),(0,r().jsx)(u.A,{onClick:()=>T((0,I.o)({routes:C.bw.BUZZ_BRIDGE_REWARDS_REDEEM,skipAuthentication:!1})),sx:H.At,children:"Redeem points"})]}),(0,r().jsxs)(d.A,{children:[(0,r().jsxs)(d.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"end",mb:2,px:1},children:[(0,r().jsxs)(d.A,{children:[(0,r().jsx)(x.A,{sx:{...H.Bw,fontSize:24,color:"#fff"},children:"Recent referrals"}),(0,r().jsx)(x.A,{sx:H.H7,children:"Real-time status of your network growth."})]}),(0,r().jsx)(u.A,{onClick:()=>T((0,I.o)({routes:C.bw.BUZZ_BRIDGE_REWARDS_NETWORK,skipAuthentication:!1})),endIcon:(0,r().jsx)(_.A,{}),sx:{color:H.Y5,fontWeight:700,textTransform:"none"},children:"View network"})]}),(0,r().jsx)(d.A,{sx:{...H.sb,overflow:"hidden"},children:(0,r().jsxs)(h.A,{children:[(0,r().jsx)(f.A,{children:(0,r().jsx)(m.A,{sx:{bgcolor:"rgba(38,38,38,0.3)"},children:["User profile","Join date","Tier","Status",""].map(e=>(0,r().jsx)(p.A,{sx:{border:0,py:2,px:{xs:2,md:4},...H.Zm},children:e.toUpperCase()},e))})}),(0,r().jsx)(b.A,{children:(null!==(i=null==D?void 0:D.recent_referrals)&&void 0!==i?i:[]).map(e=>(0,r().jsx)(q.c,{member:e,onClick:()=>{const n=C.bw.BUZZ_BRIDGE_REWARDS_MEMBER.replace(":referralId",e.referral_id);T((0,I.o)({routes:n,skipAuthentication:!1}))}},e.referral_id))})]})})]}),(0,r().jsxs)(d.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"2fr 1fr"},gap:3},children:[(0,r().jsxs)(d.A,{sx:{...H.sb,p:4},children:[(0,r().jsx)(x.A,{sx:{...H.Bw,fontSize:18,mb:1},children:"Rewards forecast"}),(0,r().jsx)(x.A,{sx:{...H.H7,mb:3,maxWidth:420},children:(null==D||null===(o=D.growth_forecast)||void 0===o?void 0:o.message)||"Based on your current referral trajectory."}),(0,r().jsx)(G.K,{series:null!==(R=null==D||null===(W=D.growth_forecast)||void 0===W?void 0:W.series)&&void 0!==R?R:[],height:140})]}),(0,r().jsxs)(d.A,{sx:{...H.sb,p:4,textAlign:"center",position:"relative"}
1,children:[(0,r().jsx)(y.A,{sx:{fontSize:48,color:H.Es,mb:1}}),(0,r().jsxs)(x.A,{sx:{...H.TY,fontSize:36},children:[null!==(Y=null==$?void 0:$.score_percent)&&void 0!==Y?Y:0,"%"]}),(0,r().jsx)(x.A,{sx:H.Zm,children:"NETWORK HEALTH"}),(0,r().jsxs)(x.A,{sx:{...H.H7,fontSize:12,mt:1},children:[null!==(E=null==$?void 0:$.active_count)&&void 0!==E?E:0," active of ",null!==(N=null==$?void 0:$.total)&&void 0!==N?N:0]})]})]}),(0,r().jsx)(P,{open:L,onClose:()=>U(!1)})]})}},98893(e,n,t){t.d(n,{Zp:()=>r,_g:()=>a,e6:()=>d,i:()=>i,nC:()=>l,zY:()=>o});const s=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function i(e){return null!=e&&Number.isFinite(e)?s.format(e/100):"$0.00"}function r(e){return null!=e&&Number.isFinite(e)?s.format(e):"$0.00"}function o(e){return null!=e&&Number.isFinite(e)?new Intl.NumberFormat("en-US").format(e):"0"}function l(e){if(!e)return"—";const n=new Date(e);return Number.isNaN(n.getTime())?"—":n.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function a(e){switch(e){case"signed_up":return"Pending";case"subscribed":case"active_creator":return"Verified";case"purchased":return"Purchased";default:return"Unknown"}}function d(e){return"subscribed"===e||"active_creator"===e||"purchased"===e}t.d(n,["r9",0,["MON","TUE","WED","THU","FRI","SAT","SUN"]])},23128(e,n,t){function s(e){var n,t;const s=null!==(n=null==e?void 0:e.balance_cents)&&void 0!==n?n:0,i=null!==(t=null==e?void 0:e.pending_withdrawal_cents)&&void 0!==t?t:0;return Math.max(0,s-i)}function i(e,n){var t,s;const i="paypal"===e.external_account_type?"paypal":"bank_transfer",r={external_account_id:null!==(t=e._id)&&void 0!==t?t:e.id,account_type:e.external_account_type,account_currency:e.account_currency,account_name:e.name};return"paypal"===e.external_account_type&&null!==(s=e.paypal_details)&&void 0!==s&&s.email&&(r.paypal_email=e.paypal_details.email),e.bank_details&&(r.bank_name=e.bank_details.bank_name,r.account_number=e.bank_details.account_number,r.routing_number=e.bank_details.routing_number,r.bank_code=e.bank_details.bank_code,r.swift_code=e.bank_details.swift_code,r.account_holder_name=e.bank_details.account_holder_name),e.mobile_money_details&&(r.phone_number=e.mobile_money_details.phone_number,r.mobile_money_name=e.mobile_money_details.mobile_money_name,r.mobile_money_code=e.mobile_money_details.mobile_money_code),{amount_cents:n,payout_method:i,payout_details:r}}function r(e){switch(e){case"paid":return"Paid";case"approved":return"Approved";case"rejected":return"Rejected";default:return"Pending"}}t.d(n,{ZM:()=>i,f4:()=>s,yZ:()=>r})},14230(e,n,t){var s=t(1654);n.A=void 0;var i=s(t(40039)),r=t(70579);n.A=(0,i.default)((0,r.jsx)("path",{d:"M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m11 15H4v-2h16zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20z"}),"RedeemOutlined")}}]);
2//# sourceMappingURL=1752.84fde12d.chunk.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.