{
  "version": 3,
  "sources": ["../../../src/store/selectors/accountSelectors.ts"],
  "sourcesContent": ["import { emptyAccount } from 'store/slices/account/emptyAccount';\nimport { StoreType } from 'store/store.types';\n\nconst privateAccountInfoSelector = ({ account }: StoreType) => account;\n\nexport const accountSelector = ({ account }: StoreType) =>\n  account.address && account.address in account.accounts\n    ? account.accounts[account.address]\n    : emptyAccount;\n\nexport const accountInfoSelector = (state: StoreType) => {\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  const { accounts, ...info } = privateAccountInfoSelector(state);\n  const account = accountSelector(state);\n\n  return { ...info, address: account.address, account };\n};\n\nexport const addressSelector = ({ account: { address } }: StoreType) => address;\n\nexport const websocketEventSelector = ({\n  account: { websocketEvent }\n}: StoreType) => websocketEvent;\n\nexport const accountNonceSelector = (store: StoreType) =>\n  accountSelector(store)?.nonce || 0;\n\nexport const isLoggedInSelector = (store: StoreType) => {\n  const address = addressSelector(store);\n  const account = accountSelector(store);\n  return Boolean(address && account?.address === address);\n};\n\nexport const ledgerAccountSelector = ({\n  account: { ledgerAccount }\n}: StoreType) => ledgerAccount;\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,EAAA,yBAAAC,EAAA,oBAAAC,EAAA,oBAAAC,EAAA,uBAAAC,EAAA,0BAAAC,EAAA,2BAAAC,IAAA,eAAAC,EAAAT,GAAA,IAAAU,EAA6B,6CAG7B,MAAMC,EAA6B,CAAC,CAAE,QAAAC,CAAQ,IAAiBA,EAElDR,EAAkB,CAAC,CAAE,QAAAQ,CAAQ,IACxCA,EAAQ,SAAWA,EAAQ,WAAWA,EAAQ,SAC1CA,EAAQ,SAASA,EAAQ,OAAO,EAChC,eAEOV,EAAuBW,GAAqB,CAEvD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAK,EAAIJ,EAA2BE,CAAK,EACxDD,EAAUR,EAAgBS,CAAK,EAErC,MAAO,CAAE,GAAGE,EAAM,QAASH,EAAQ,QAAS,QAAAA,CAAQ,CACtD,EAEaP,EAAkB,CAAC,CAAE,QAAS,CAAE,QAAAW,CAAQ,CAAE,IAAiBA,EAE3DR,EAAyB,CAAC,CACrC,QAAS,CAAE,eAAAS,CAAe,CAC5B,IAAiBA,EAEJd,EAAwBe,GACnCd,EAAgBc,CAAK,GAAG,OAAS,EAEtBZ,EAAsBY,GAAqB,CACtD,MAAMF,EAAUX,EAAgBa,CAAK,EAC/BN,EAAUR,EAAgBc,CAAK,EACrC,MAAO,GAAQF,GAAWJ,GAAS,UAAYI,EACjD,EAEaT,EAAwB,CAAC,CACpC,QAAS,CAAE,cAAAY,CAAc,CAC3B,IAAiBA",
  "names": ["accountSelectors_exports", "__export", "accountInfoSelector", "accountNonceSelector", "accountSelector", "addressSelector", "isLoggedInSelector", "ledgerAccountSelector", "websocketEventSelector", "__toCommonJS", "import_emptyAccount", "privateAccountInfoSelector", "account", "state", "accounts", "info", "address", "websocketEvent", "store", "ledgerAccount"]
}
