Module 176095

700 characters · in 5f2e95181c21f381.js
Dependencies
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>u});var r=n(17928),a=n(228366);let s={},i=new Set;class l extends r.Ay.Store{static displayName="WalletBalanceStore";getBalance(e){return s[e]??null}getIsFetching(e){return i.has(e)}}let u=new l(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),s={...s,[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){s={...s,[e.paymentSourceId]:{currency:e.currency,amount:e.balance}}},LOGOUT:function(){s={},i=new Set}})}