Build 545032stable
Module 176095
700 characters · in 24d56dac75a5c006.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>u});var r=n(17928),a=n(228366);let l={},i=new Set;class s extends r.Ay.Store{static displayName="WalletBalanceStore";getBalance(e){return l[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),l={...l,[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){l={...l,[e.paymentSourceId]:{currency:e.currency,amount:e.balance}}},LOGOUT:function(){l={},i=new Set}})}