Build 555975stable
Module 176095
700 characters · in c3ade72e57cd6e6c.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>u});var l=n(17928),a=n(228366);let r={},i=new Set;class s extends l.Ay.Store{static displayName="WalletBalanceStore";getBalance(e){return r[e]??null}getIsFetching(e){return i.has(e)}}let u=new s(a.h,{BILLING_WALLET_BALANCE_FETCH_START:function(e){(i=new Set(i)).add(e.paymentSourceId)},BILLING_WALLET_BALANCE_FETCH_SUCCESS:function(e){(i=new Set(i)).delete(e.paymentSourceId),r={...r,[e.paymentSourceId]:{currency:e.currency,amount:e.amount}}},BILLING_WALLET_BALANCE_FETCH_FAIL:function(e){(i=new Set(i)).delete(e.paymentSourceId)},WALLET_BALANCE_UPDATE:function(e){r={...r,[e.paymentSourceId]:{currency:e.currency,amount:e.balance}}},LOGOUT:function(){r={},i=new Set}})}