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