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AA,EAAgBrK,QAAAA,CAAQ,EAG5C,CACL,GAAGkK,CAAW,CACdjI,KAAM,CAAE,GAAGiI,EAAYjI,IAAI,CAAEmC,MAAO8F,EAAYjI,IAAI,CAACmC,KAAK,CAACU,KAAK,GAAGxF,IAAI,CAACsK,CAAAA,EAAAA,EAAAA,CAAAA,EAAQ5J,GAAU,EAC1FqK,eAAAA,EACArK,QAAAA,CACF,EACC,CAAEkK,EAAaG,EAAgBrK,EAAS,CAE7C","sources":["webpack://_N_E/./lib/bigint/compareBns.ts","webpack://_N_E/./lib/hooks/useIsInitialLoading.tsx","webpack://_N_E/./lib/hooks/useLazyRenderedList.tsx","webpack://_N_E/./ui/address/AddressCsvExportLink.tsx","webpack://_N_E/./ui/shared/ListItemMobile/ListItemMobile.tsx","webpack://_N_E/./ui/shared/sort/ButtonDesktop.tsx","webpack://_N_E/./ui/shared/sort/ButtonMobile.tsx","webpack://_N_E/./ui/shared/sort/Option.tsx","webpack://_N_E/./ui/shared/sort/Sort.tsx","webpack://_N_E/./ui/shared/sort/getNextSortValue.ts","webpack://_N_E/./ui/shared/statusTag/TxStatus.tsx","webpack://_N_E/./ui/shared/tx/TxWatchListTags.tsx","webpack://_N_E/./ui/txs/TxType.tsx","webpack://_N_E/./ui/txs/noves/useDescribeTxs.tsx","webpack://_N_E/./ui/txs/TxsHeaderMobile.tsx","webpack://_N_E/./ui/txs/noves/utils.ts","webpack://_N_E/./ui/txs/TxTranslationType.tsx","webpack://_N_E/./ui/txs/TxsListItem.tsx","webpack://_N_E/./ui/txs/TxsList.tsx","webpack://_N_E/./ui/txs/TxsTableItem.tsx","webpack://_N_E/./ui/txs/TxsTable.tsx","webpack://_N_E/./ui/txs/TxsContent.tsx","webpack://_N_E/./ui/txs/sortTxs.ts","webpack://_N_E/./ui/txs/useTxsSort.tsx"],"sourcesContent":["import BigNumber from 'bignumber.js';\n\nexport default function compareBns(value1: string | number, value2: string | number) {\n const value1Bn = new BigNumber(value1);\n const value2Bn = new BigNumber(value2);\n if (value1Bn.isGreaterThan(value2Bn)) {\n return 1;\n }\n if (value1Bn.isLessThan(value2Bn)) {\n return -1;\n }\n return 0;\n}\n","import React from 'react';\n\nexport default function useIsInitialLoading(isLoading: boolean | undefined) {\n const [ isInitialLoading, setIsInitialLoading ] = React.useState(Boolean(isLoading));\n\n React.useEffect(() => {\n if (!isLoading) {\n setIsInitialLoading(false);\n }\n }, [ isLoading ]);\n\n return isInitialLoading;\n}\n","import _clamp from 'lodash/clamp';\nimport React from 'react';\nimport { useInView } from 'react-intersection-observer';\n\nconst STEP = 10;\nconst MIN_ITEMS_NUM = 50;\n\nexport default function useLazyRenderedList(list: Array, isEnabled: boolean, minItemsNum: number = MIN_ITEMS_NUM) {\n const [ renderedItemsNum, setRenderedItemsNum ] = React.useState(minItemsNum);\n const { ref, inView } = useInView({\n rootMargin: '200px',\n triggerOnce: false,\n skip: !isEnabled || list.length <= minItemsNum,\n });\n\n React.useEffect(() => {\n if (inView) {\n setRenderedItemsNum((prev) => _clamp(prev + STEP, 0, list.length));\n }\n }, [ inView, list.length ]);\n\n return { cutRef: ref, renderedItemsNum };\n}\n","import { chakra, Tooltip, Hide, Skeleton, Flex } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { CsvExportParams } from 'types/client/address';\n\nimport { route } from 'nextjs-routes';\n\nimport config from 'configs/app';\nimport useIsInitialLoading from 'lib/hooks/useIsInitialLoading';\nimport useIsMobile from 'lib/hooks/useIsMobile';\nimport IconSvg from 'ui/shared/IconSvg';\nimport LinkInternal from 'ui/shared/links/LinkInternal';\n\ninterface Props {\n address: string;\n params: CsvExportParams;\n className?: string;\n isLoading?: boolean;\n}\n\nconst AddressCsvExportLink = ({ className, address, params, isLoading }: Props) => {\n const isMobile = useIsMobile();\n const isInitialLoading = useIsInitialLoading(isLoading);\n\n if (!config.features.csvExport.isEnabled) {\n return null;\n }\n\n if (isInitialLoading) {\n return (\n \n \n \n \n \n \n );\n }\n\n return (\n \n \n \n Download CSV\n \n \n );\n};\n\nexport default React.memo(chakra(AddressCsvExportLink));\n","import { Flex, chakra } from '@chakra-ui/react';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\ninterface Props {\n children: React.ReactNode;\n className?: string;\n isAnimated?: boolean;\n}\n\nconst ListItemMobile = ({ children, className, isAnimated }: Props) => {\n return (\n \n { children }\n \n );\n};\n\nexport default chakra(ListItemMobile);\n","import {\n Box,\n useColorModeValue,\n Button,\n Skeleton,\n chakra,\n} from '@chakra-ui/react';\nimport React from 'react';\n\nimport IconSvg from 'ui/shared/IconSvg';\n\ntype ButtonProps = {\n isActive: boolean;\n onClick: () => void;\n isLoading?: boolean;\n children: React.ReactNode;\n className?: string;\n};\n\nconst ButtonDesktop = ({ children, isActive, onClick, isLoading, className }: ButtonProps, ref: React.ForwardedRef) => {\n const primaryColor = useColorModeValue('blackAlpha.800', 'whiteAlpha.800');\n const secondaryColor = useColorModeValue('blackAlpha.600', 'whiteAlpha.600');\n\n return (\n \n \n Sort by\n { children }\n \n \n \n );\n};\n\nexport default chakra(React.forwardRef(ButtonDesktop));\n","import { IconButton, chakra, Skeleton } from '@chakra-ui/react';\nimport React from 'react';\n\nimport IconSvg from 'ui/shared/IconSvg';\n\ntype Props = {\n onClick: () => void;\n isActive: boolean;\n className?: string;\n isLoading?: boolean;\n}\n\nconst ButtonMobile = ({ onClick, isActive, className, isLoading }: Props, ref: React.ForwardedRef) => {\n if (isLoading) {\n return ;\n }\n\n return (\n }\n aria-label=\"sort\"\n size=\"sm\"\n variant=\"outline\"\n colorScheme=\"gray\"\n minWidth=\"36px\"\n onClick={ onClick }\n isActive={ isActive }\n display=\"flex\"\n className={ className }\n />\n );\n};\n\nexport default chakra(React.forwardRef(ButtonMobile));\n","import {\n useRadio,\n Box,\n useColorModeValue,\n} from '@chakra-ui/react';\nimport type { useRadioGroup } from '@chakra-ui/react';\nimport React from 'react';\n\nimport IconSvg from 'ui/shared/IconSvg';\n\nexport interface TOption {\n id: Sort | undefined;\n title: string;\n}\n\ntype OptionProps = ReturnType['getRadioProps']>;\n\nconst Option = (props: OptionProps) => {\n const { getInputProps, getRadioProps } = useRadio(props);\n\n const input = getInputProps();\n const checkbox = getRadioProps();\n const bgColorHover = useColorModeValue('blue.50', 'whiteAlpha.100');\n\n return (\n \n \n \n { props.children }\n \n { props.isChecked && }\n \n );\n};\n\nexport default Option;\n","import {\n PopoverTrigger,\n PopoverContent,\n PopoverBody,\n useDisclosure,\n useRadioGroup,\n chakra,\n} from '@chakra-ui/react';\nimport React from 'react';\n\nimport useIsMobile from 'lib/hooks/useIsMobile';\nimport Popover from 'ui/shared/chakra/Popover';\n\nimport SortButtonDesktop from './ButtonDesktop';\nimport SortButtonMobile from './ButtonMobile';\nimport Option from './Option';\nimport type { TOption } from './Option';\n\ninterface Props {\n name: string;\n options: Array>;\n defaultValue?: Sort;\n isLoading?: boolean;\n onChange: (value: Sort | undefined) => void;\n}\n\nconst Sort = ({ name, options, isLoading, onChange, defaultValue }: Props) => {\n const isMobile = useIsMobile(false);\n const { isOpen, onToggle, onClose } = useDisclosure();\n\n const handleChange = (value: Sort) => {\n onChange(value);\n onClose();\n };\n\n const { value, getRootProps, getRadioProps } = useRadioGroup({\n name,\n defaultValue,\n onChange: handleChange,\n });\n\n const root = getRootProps();\n\n return (\n \n \n { isMobile ? (\n \n ) : (\n \n { options.find((option: TOption) => option.id === value || (!option.id && !value))?.title }\n \n ) }\n \n \n \n { options.map((option, index) => {\n const radio = getRadioProps({ value: option.id });\n return (\n \n );\n }) }\n \n \n \n );\n};\n\nexport default React.memo(chakra(Sort)) as typeof Sort;\n","export default function getNextSortValue(\n sortSequence: Record>, field: SortField,\n) {\n return (prevValue: Sort | undefined) => {\n const sequence = sortSequence[field];\n return getNextValueFromSequence(sequence, prevValue);\n };\n}\n\nexport function getNextValueFromSequence(sequence: Array, prevValue: T) {\n const curIndex = sequence.findIndex((val) => val === prevValue);\n const nextIndex = curIndex + 1 > sequence.length - 1 ? 0 : curIndex + 1;\n return sequence[nextIndex];\n}\n\n// asc desc undefined\ntype Order = 'asc' | 'desc' | undefined;\nconst sequence: Array = [ 'desc', 'asc', undefined ];\nexport const getNextOrderValue = (getNextValueFromSequence).bind(undefined, sequence);\n","import React from 'react';\n\nimport type { Transaction } from 'types/api/transaction';\n\nimport type { StatusTagType } from './StatusTag';\nimport StatusTag from './StatusTag';\n\nexport interface Props {\n status: Transaction['status'];\n errorText?: string | null;\n isLoading?: boolean;\n}\n\nconst TxStatus = ({ status, errorText, isLoading }: Props) => {\n if (status === undefined) {\n return null;\n }\n\n let text;\n let type: StatusTagType;\n\n switch (status) {\n case 'ok':\n text = 'Success';\n type = 'ok';\n break;\n case 'error':\n text = 'Failed';\n type = 'error';\n break;\n case null:\n text = 'Pending';\n type = 'pending';\n break;\n }\n\n return ;\n};\n\nexport default TxStatus;\n","import { Flex } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { Transaction } from 'types/api/transaction';\n\nimport Tag from 'ui/shared/chakra/Tag';\n\ninterface Props {\n tx: Transaction;\n isLoading?: boolean;\n}\n\nconst TxWatchListTags = ({ tx, isLoading }: Props) => {\n const tags = [\n ...(tx.from?.watchlist_names || []),\n ...(tx.to?.watchlist_names || []),\n ].filter(Boolean);\n\n if (tags.length === 0) {\n return null;\n }\n\n return (\n \n { tags.map((tag) => (\n \n { tag.display_name }\n \n )) }\n \n );\n};\n\nexport default React.memo(TxWatchListTags);\n","import React from 'react';\n\nimport type { TransactionType } from 'types/api/transaction';\n\nimport Tag from 'ui/shared/chakra/Tag';\n\nexport interface Props {\n types: Array;\n isLoading?: boolean;\n}\n\nconst TYPES_ORDER: Array = [\n 'blob_transaction',\n 'rootstock_remasc',\n 'rootstock_bridge',\n 'token_creation',\n 'contract_creation',\n 'token_transfer',\n 'contract_call',\n 'coin_transfer',\n];\n\nconst TxType = ({ types, isLoading }: Props) => {\n const typeToShow = types.sort((t1, t2) => TYPES_ORDER.indexOf(t1) - TYPES_ORDER.indexOf(t2))[0];\n\n let label;\n let colorScheme;\n\n switch (typeToShow) {\n case 'contract_call':\n label = 'Contract call';\n colorScheme = 'blue';\n break;\n case 'blob_transaction':\n label = 'Blob txn';\n colorScheme = 'yellow';\n break;\n case 'contract_creation':\n label = 'Contract creation';\n colorScheme = 'blue';\n break;\n case 'token_transfer':\n label = 'Token transfer';\n colorScheme = 'orange';\n break;\n case 'token_creation':\n label = 'Token creation';\n colorScheme = 'orange';\n break;\n case 'coin_transfer':\n label = 'Coin transfer';\n colorScheme = 'orange';\n break;\n case 'rootstock_remasc':\n label = 'REMASC';\n colorScheme = 'blue';\n break;\n case 'rootstock_bridge':\n label = 'Bridge';\n colorScheme = 'blue';\n break;\n default:\n label = 'Transaction';\n colorScheme = 'purple';\n\n }\n\n return (\n \n { label }\n \n );\n};\n\nexport default TxType;\n","import { useQuery } from '@tanstack/react-query';\nimport _chunk from 'lodash/chunk';\nimport _uniq from 'lodash/uniq';\nimport React from 'react';\n\nimport type { NovesDescribeTxsResponse } from 'types/api/noves';\nimport type { Transaction } from 'types/api/transaction';\n\nimport config from 'configs/app';\nimport useApiFetch from 'lib/api/useApiFetch';\n\nconst feature = config.features.txInterpretation;\n\nconst translateEnabled = feature.isEnabled && feature.provider === 'noves';\n\nexport default function useDescribeTxs(items: Array | undefined, viewAsAccountAddress: string | undefined, isPlaceholderData: boolean) {\n const apiFetch = useApiFetch();\n\n const txsHash = _uniq(items?.map(i => i.hash));\n const txChunks = _chunk(txsHash, 10);\n\n const queryKey = {\n viewAsAccountAddress,\n firstHash: txsHash[0] || '',\n lastHash: txsHash[txsHash.length - 1] || '',\n };\n\n const describeQuery = useQuery({\n queryKey: [ 'noves_describe_txs', queryKey ],\n queryFn: async() => {\n const queries = txChunks.map((hashes) => {\n if (hashes.length === 0) {\n return Promise.resolve([]);\n }\n\n return apiFetch('noves_describe_txs', {\n queryParams: {\n viewAsAccountAddress,\n hashes,\n },\n }) as Promise;\n });\n\n return Promise.all(queries);\n },\n select: (data) => {\n return data.flat();\n },\n enabled: translateEnabled && !isPlaceholderData,\n });\n\n const itemsWithTranslation = React.useMemo(() => items?.map(tx => {\n const queryData = describeQuery.data;\n const isLoading = describeQuery.isLoading;\n\n if (isLoading) {\n return {\n ...tx,\n translation: {\n isLoading,\n },\n };\n }\n\n if (!queryData || !translateEnabled) {\n return tx;\n }\n\n const query = queryData.find(data => data.txHash.toLowerCase() === tx.hash.toLowerCase());\n\n if (query) {\n return {\n ...tx,\n translation: {\n data: query,\n isLoading: false,\n },\n };\n }\n\n return tx;\n }), [ items, describeQuery ]);\n\n if (!translateEnabled || isPlaceholderData) {\n return items;\n }\n\n // return same \"items\" array of Transaction with a new \"translation\" field.\n return itemsWithTranslation;\n}\n","import { HStack, chakra } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { TransactionsSortingValue } from 'types/api/transaction';\nimport type { PaginationParams } from 'ui/shared/pagination/types';\n\n// import FilterInput from 'ui/shared/filters/FilterInput';\n\nimport ActionBar from 'ui/shared/ActionBar';\nimport Pagination from 'ui/shared/pagination/Pagination';\nimport Sort from 'ui/shared/sort/Sort';\n\nimport { SORT_OPTIONS } from './useTxsSort';\n\n// import TxsFilters from './TxsFilters';\n\ntype Props = {\n sorting: TransactionsSortingValue | undefined;\n setSorting: (val: TransactionsSortingValue | undefined) => void;\n paginationProps: PaginationParams;\n className?: string;\n showPagination?: boolean;\n filterComponent?: React.ReactNode;\n linkSlot?: React.ReactNode;\n}\n\nconst TxsHeaderMobile = ({ filterComponent, sorting, setSorting, paginationProps, className, showPagination = true, linkSlot }: Props) => {\n return (\n \n \n { filterComponent }\n \n { /* api is not implemented */ }\n { /* {} }\n maxW=\"360px\"\n size=\"xs\"\n placeholder=\"Search by addresses, hash, method...\"\n /> */ }\n { linkSlot }\n \n { showPagination && }\n \n );\n};\n\nexport default chakra(TxsHeaderMobile);\n","import capitalizeFirstLetter from 'lib/capitalizeFirstLetter';\n\nexport function camelCaseToSentence(camelCaseString: string | undefined) {\n if (!camelCaseString) {\n return '';\n }\n\n let sentence = camelCaseString.replace(/([a-z])([A-Z])/g, '$1 $2');\n sentence = sentence.replace(/([A-Z])([A-Z][a-z])/g, '$1 $2');\n sentence = capitalizeFirstLetter(sentence);\n\n return sentence;\n}\n","import React from 'react';\n\nimport type { TransactionType } from 'types/api/transaction';\n\nimport Tag from 'ui/shared/chakra/Tag';\n\nimport { camelCaseToSentence } from './noves/utils';\nimport TxType from './TxType';\n\nexport interface Props {\n types: Array;\n isLoading?: boolean;\n translatationType: string | undefined;\n}\n\nconst TxTranslationType = ({ types, isLoading, translatationType }: Props) => {\n\n const filteredTypes = [ 'unclassified' ];\n\n if (!translatationType || filteredTypes.includes(translatationType)) {\n return ;\n }\n\n return (\n \n { camelCaseToSentence(translatationType) }\n \n );\n\n};\n\nexport default TxTranslationType;\n","import {\n HStack,\n Flex,\n Skeleton,\n} from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { Transaction } from 'types/api/transaction';\n\nimport config from 'configs/app';\nimport getValueWithUnit from 'lib/getValueWithUnit';\nimport { space } from 'lib/html-entities';\nimport { currencyUnits } from 'lib/units';\nimport AddressFromTo from 'ui/shared/address/AddressFromTo';\nimport BlockEntity from 'ui/shared/entities/block/BlockEntity';\nimport TxEntity from 'ui/shared/entities/tx/TxEntity';\nimport ListItemMobile from 'ui/shared/ListItemMobile/ListItemMobile';\nimport TxStatus from 'ui/shared/statusTag/TxStatus';\nimport TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip';\nimport TxFee from 'ui/shared/tx/TxFee';\nimport TxWatchListTags from 'ui/shared/tx/TxWatchListTags';\nimport TxAdditionalInfo from 'ui/txs/TxAdditionalInfo';\nimport TxType from 'ui/txs/TxType';\n\nimport TxTranslationType from './TxTranslationType';\n\ntype Props = {\n tx: Transaction;\n showBlockInfo: boolean;\n currentAddress?: string;\n enableTimeIncrement?: boolean;\n isLoading?: boolean;\n}\n\nconst TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeIncrement }: Props) => {\n const dataTo = tx.to ? tx.to : tx.created_contract;\n\n return (\n \n \n \n { tx.translation ?\n :\n \n }\n \n \n \n \n \n \n \n \n \n { tx.method && (\n \n Method \n \n { tx.method }\n \n \n ) }\n { showBlockInfo && tx.block !== null && (\n \n Block \n \n \n ) }\n \n { !config.UI.views.tx.hiddenFields?.value && (\n \n Value\n \n { getValueWithUnit(tx.value).toFormat() }\n { space }\n { currencyUnits.ether }\n \n \n ) }\n { !config.UI.views.tx.hiddenFields?.tx_fee && (\n \n { (tx.stability_fee !== undefined || tx.fee.value !== null) && (\n <>\n Fee\n \n \n ) }\n \n ) }\n \n );\n};\n\nexport default React.memo(TxsListItem);\n","import { Box } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { Transaction } from 'types/api/transaction';\n\nimport useLazyRenderedList from 'lib/hooks/useLazyRenderedList';\nimport * as SocketNewItemsNotice from 'ui/shared/SocketNewItemsNotice';\n\nimport TxsListItem from './TxsListItem';\n\ninterface Props {\n showBlockInfo: boolean;\n showSocketInfo?: boolean;\n socketInfoAlert?: string;\n socketInfoNum?: number;\n enableTimeIncrement?: boolean;\n currentAddress?: string;\n isLoading: boolean;\n items: Array;\n}\n\nconst TxsList = (props: Props) => {\n const { cutRef, renderedItemsNum } = useLazyRenderedList(props.items, !props.isLoading);\n\n return (\n \n { props.showSocketInfo && (\n \n ) }\n { props.items.slice(0, renderedItemsNum).map((tx, index) => (\n \n )) }\n \n \n );\n};\n\nexport default React.memo(TxsList);\n","import {\n Tr,\n Td,\n VStack,\n} from '@chakra-ui/react';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\nimport type { Transaction } from 'types/api/transaction';\n\nimport config from 'configs/app';\nimport AddressFromTo from 'ui/shared/address/AddressFromTo';\nimport Tag from 'ui/shared/chakra/Tag';\nimport CurrencyValue from 'ui/shared/CurrencyValue';\nimport BlockEntity from 'ui/shared/entities/block/BlockEntity';\nimport TxEntity from 'ui/shared/entities/tx/TxEntity';\nimport TxStatus from 'ui/shared/statusTag/TxStatus';\nimport TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip';\nimport TxFee from 'ui/shared/tx/TxFee';\nimport TxWatchListTags from 'ui/shared/tx/TxWatchListTags';\nimport TxAdditionalInfo from 'ui/txs/TxAdditionalInfo';\n\nimport TxTranslationType from './TxTranslationType';\nimport TxType from './TxType';\n\ntype Props = {\n tx: Transaction;\n showBlockInfo: boolean;\n currentAddress?: string;\n enableTimeIncrement?: boolean;\n isLoading?: boolean;\n}\n\nconst TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement, isLoading }: Props) => {\n const dataTo = tx.to ? tx.to : tx.created_contract;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n { tx.translation ?\n :\n \n }\n \n \n \n \n \n { tx.method && (\n \n { tx.method }\n \n ) }\n \n { showBlockInfo && (\n \n { tx.block && (\n \n ) }\n \n ) }\n \n \n \n { !config.UI.views.tx.hiddenFields?.value && (\n \n \n \n ) }\n { !config.UI.views.tx.hiddenFields?.tx_fee && (\n \n \n \n ) }\n \n );\n};\n\nexport default React.memo(TxsTableItem);\n","import { Link, Table, Tbody, Tr, Th } from '@chakra-ui/react';\nimport { AnimatePresence } from 'framer-motion';\nimport React from 'react';\n\nimport type { Transaction, TransactionsSortingField, TransactionsSortingValue } from 'types/api/transaction';\n\nimport config from 'configs/app';\nimport { AddressHighlightProvider } from 'lib/contexts/addressHighlight';\nimport useLazyRenderedList from 'lib/hooks/useLazyRenderedList';\nimport { currencyUnits } from 'lib/units';\nimport IconSvg from 'ui/shared/IconSvg';\nimport * as SocketNewItemsNotice from 'ui/shared/SocketNewItemsNotice';\nimport TheadSticky from 'ui/shared/TheadSticky';\n\nimport TxsTableItem from './TxsTableItem';\n\ntype Props = {\n txs: Array;\n sort: (field: TransactionsSortingField) => () => void;\n sorting?: TransactionsSortingValue;\n top: number;\n showBlockInfo: boolean;\n showSocketInfo: boolean;\n socketInfoAlert?: string;\n socketInfoNum?: number;\n currentAddress?: string;\n enableTimeIncrement?: boolean;\n isLoading?: boolean;\n}\n\nconst TxsTable = ({\n txs,\n sort,\n sorting,\n top,\n showBlockInfo,\n showSocketInfo,\n socketInfoAlert,\n socketInfoNum,\n currentAddress,\n enableTimeIncrement,\n isLoading,\n}: Props) => {\n const { cutRef, renderedItemsNum } = useLazyRenderedList(txs, !isLoading);\n\n const feeCurrency = config.UI.views.tx.hiddenFields?.fee_currency || config.chain.hasMultipleGasCurrencies ?\n '' :\n ' ' + currencyUnits.ether;\n\n return (\n \n \n \n \n \n \n \n \n { showBlockInfo && }\n \n { !config.UI.views.tx.hiddenFields?.value && (\n \n ) }\n { !config.UI.views.tx.hiddenFields?.tx_fee && (\n \n ) }\n \n \n \n { showSocketInfo && (\n \n ) }\n \n { txs.slice(0, renderedItemsNum).map((item, index) => (\n \n )) }\n \n \n
Txn hashTypeMethodBlockFrom/To\n \n { sorting === 'value-asc' && }\n { sorting === 'value-desc' && }\n { `Value ${ currencyUnits.ether }` }\n \n \n \n { sorting === 'fee-asc' && }\n { sorting === 'fee-desc' && }\n { `Fee${ feeCurrency }` }\n \n
\n
\n \n );\n};\n\nexport default React.memo(TxsTable);\n","import { Show, Hide } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { AddressFromToFilter } from 'types/api/address';\nimport type { Transaction, TransactionsSortingField, TransactionsSortingValue } from 'types/api/transaction';\n\nimport useIsMobile from 'lib/hooks/useIsMobile';\nimport AddressCsvExportLink from 'ui/address/AddressCsvExportLink';\nimport { ACTION_BAR_HEIGHT_DESKTOP } from 'ui/shared/ActionBar';\nimport DataListDisplay from 'ui/shared/DataListDisplay';\nimport type { QueryWithPagesResult } from 'ui/shared/pagination/useQueryWithPages';\nimport getNextSortValue from 'ui/shared/sort/getNextSortValue';\n\nimport useDescribeTxs from './noves/useDescribeTxs';\nimport TxsHeaderMobile from './TxsHeaderMobile';\nimport TxsList from './TxsList';\nimport TxsTable from './TxsTable';\n\nconst SORT_SEQUENCE: Record> = {\n value: [ 'value-desc', 'value-asc', undefined ],\n fee: [ 'fee-desc', 'fee-asc', undefined ],\n};\n\ntype Props = {\n // eslint-disable-next-line max-len\n query: QueryWithPagesResult<'txs_validated' | 'txs_pending'> | QueryWithPagesResult<'txs_watchlist'> | QueryWithPagesResult<'block_txs'> | QueryWithPagesResult<'zkevm_l2_txn_batch_txs'>;\n showBlockInfo?: boolean;\n showSocketInfo?: boolean;\n socketInfoAlert?: string;\n socketInfoNum?: number;\n currentAddress?: string;\n filter?: React.ReactNode;\n filterValue?: AddressFromToFilter;\n enableTimeIncrement?: boolean;\n top?: number;\n items?: Array;\n isPlaceholderData: boolean;\n isError: boolean;\n setSorting: (value: TransactionsSortingValue | undefined) => void;\n sort: TransactionsSortingValue | undefined;\n}\n\nconst TxsContent = ({\n query,\n filter,\n filterValue,\n showBlockInfo = true,\n showSocketInfo = true,\n socketInfoAlert,\n socketInfoNum,\n currentAddress,\n enableTimeIncrement,\n top,\n items,\n isPlaceholderData,\n isError,\n setSorting,\n sort,\n}: Props) => {\n const isMobile = useIsMobile();\n\n const onSortToggle = React.useCallback((field: TransactionsSortingField) => () => {\n const value = getNextSortValue(SORT_SEQUENCE, field)(sort);\n setSorting(value);\n }, [ sort, setSorting ]);\n\n const itemsWithTranslation = useDescribeTxs(items, currentAddress, query.isPlaceholderData);\n\n const content = itemsWithTranslation ? (\n <>\n \n \n \n \n \n \n \n ) : null;\n\n const actionBar = isMobile ? (\n \n ) : null\n }\n />\n ) : null;\n\n return (\n \n );\n};\n\nexport default TxsContent;\n","import type { Transaction, TransactionsSortingValue } from 'types/api/transaction';\n\nimport compareBns from 'lib/bigint/compareBns';\n\nexport default function sortTxs(sorting: TransactionsSortingValue | undefined) {\n return function sortingFn(tx1: Transaction, tx2: Transaction) {\n switch (sorting) {\n case 'value-desc':\n return compareBns(tx2.value, tx1.value);\n case 'value-asc':\n return compareBns(tx1.value, tx2.value);\n case 'fee-desc':\n return compareBns(tx2.fee.value || 0, tx1.fee.value || 0);\n case 'fee-asc':\n return compareBns(tx1.fee.value || 0, tx2.fee.value || 0);\n default:\n return 0;\n }\n };\n}\n\nexport function sortTxsFromSocket(sorting: TransactionsSortingValue | undefined) {\n if (sorting) {\n return sortTxs(sorting);\n }\n\n return function sortingFn(tx1: Transaction, tx2: Transaction) {\n if (!tx1.timestamp) {\n return -1;\n }\n\n if (!tx2.timestamp) {\n return 1;\n }\n\n return tx2.timestamp.localeCompare(tx1.timestamp);\n };\n}\n","import type { UseQueryResult } from '@tanstack/react-query';\nimport React from 'react';\n\nimport type { TransactionsSortingValue, TxsResponse } from 'types/api/transaction';\n\nimport type { ResourceError } from 'lib/api/resources';\nimport * as cookies from 'lib/cookies';\nimport type { TOption } from 'ui/shared/sort/Option';\n\nimport sortTxs from './sortTxs';\n\nexport const SORT_OPTIONS: Array> = [\n { title: 'Default', id: undefined },\n { title: 'Value ascending', id: 'value-asc' },\n { title: 'Value descending', id: 'value-desc' },\n { title: 'Fee ascending', id: 'fee-asc' },\n { title: 'Fee descending', id: 'fee-desc' },\n];\n\ntype SortingValue = TransactionsSortingValue | undefined;\n\ntype HookResult = UseQueryResult> & {\n sorting: SortingValue;\n setSortByValue: (value: SortingValue) => void;\n}\n\nexport default function useTxsSort(\n queryResult: UseQueryResult>,\n): HookResult {\n\n const [ sorting, setSorting ] = React.useState(cookies.get(cookies.NAMES.TXS_SORT) as SortingValue);\n\n const setSortByValue = React.useCallback((value: SortingValue) => {\n setSorting((prevVal: SortingValue) => {\n let newVal: SortingValue = undefined;\n if (value !== prevVal) {\n newVal = value as SortingValue;\n }\n cookies.set(cookies.NAMES.TXS_SORT, newVal ? newVal : '');\n return newVal;\n });\n }, []);\n\n return React.useMemo(() => {\n if (queryResult.isError || queryResult.isPending) {\n return { ...queryResult, setSortByValue, sorting };\n }\n\n return {\n ...queryResult,\n data: { ...queryResult.data, items: queryResult.data.items.slice().sort(sortTxs(sorting)) },\n setSortByValue,\n sorting,\n };\n }, [ queryResult, setSortByValue, sorting ]);\n\n}\n"],"names":["compareBns","value1","value2","value1Bn","BigNumber","value2Bn","isGreaterThan","isLessThan","useIsInitialLoading","isLoading","isInitialLoading","setIsInitialLoading","React","Boolean","useLazyRenderedList","list","isEnabled","minItemsNum","renderedItemsNum","setRenderedItemsNum","ref","inView","useInView","rootMargin","triggerOnce","skip","length","_clamp","prev","cutRef","__webpack_exports__","Z","chakra","className","address","params","param","isMobile","useIsMobile","config","features","csvExport","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Flex","flexShrink","alignItems","jsx","Skeleton","boxSize","base","lg","borderRadius","Hide","ssr","below","w","h","ml","Tooltip","isDisabled","label","LinkInternal","display","whiteSpace","href","route","pathname","query","IconSvg","name","span","children","isAnimated","as","motion","div","initial","opacity","scale","animate","transitionDuration","transitionTimingFunction","rowGap","flexDirection","paddingY","borderColor","borderTopWidth","_last","borderBottomWidth","fontSize","lineHeight","sort_ButtonDesktop","isActive","onClick","primaryColor","useColorModeValue","secondaryColor","jsx_runtime","isLoaded","Button","size","variant","color","fontWeight","px","data-selected","Box","mr","transition","transform","sort_ButtonMobile","IconButton","icon","aria-label","colorScheme","minWidth","sort_Option","getInputProps","getRadioProps","useRadio","props","input","checkbox","bgColorHover","py","cursor","columnGap","_hover","bgColor","isChecked","sort_Sort","options","onChange","defaultValue","isOpen","onToggle","onClose","useDisclosure","value","getRootProps","useRadioGroup","root","Popover","placement","isLazy","PopoverTrigger","SortButtonMobile","SortButtonDesktop","find","option","id","title","PopoverContent","minW","PopoverBody","flexDir","map","index","radio","Option","getNextSortValue","sortSequence","field","getNextValueFromSequence","prevValue","sequence","curIndex","findIndex","val","nextIndex","getNextOrderValue","bind","undefined","text","type","status","errorText","StatusTag","tx","tags","from","watchlist_names","to","filter","flexWrap","overflow","maxW","Tag","isTruncated","tag","display_name","TYPES_ORDER","types","sort","t1","t2","indexOf","feature","txInterpretation","translateEnabled","provider","txs_TxsHeaderMobile","filterComponent","sorting","setSorting","paginationProps","showPagination","linkSlot","ActionBar","HStack","Sort","SORT_OPTIONS","Pagination","txs_TxTranslationType","translatationType","filteredTypes","includes","TxType","camelCaseToSentence","camelCaseString","sentence","replace","capitalizeFirstLetter","txs_TxsListItem","showBlockInfo","currentAddress","enableTimeIncrement","dataTo","created_contract","ListItemMobile","width","justifyContent","mt","translation","TxTranslationType","tx_types","data","TxStatus","result","TxWatchListTags","TxAdditionalInfo","TxEntity","hash","truncation","iconName","TimeAgoWithTooltip","timestamp","enableIncrement","method","textOverflow","block","BlockEntity","number","noIcon","AddressFromTo","current","UI","views","hiddenFields","getValueWithUnit","toFormat","space","currencyUnits","ether","tx_fee","mb","stability_fee","fee","Fragment","TxFee","txs_TxsList","items","showSocketInfo","SocketNewItemsNotice","url","window","location","num","socketInfoNum","alert","socketInfoAlert","slice","TxsListItem","txs_TxsTableItem","Tr","tr","Td","pl","pr","VStack","mode","isNumeric","CurrencyValue","accuracy","withCurrency","celo","txs_TxsTable","txs","top","feeCurrency","fee_currency","chain","hasMultipleGasCurrencies","AddressHighlightProvider","Table","TheadSticky","Th","Link","concat","Tbody","AnimatePresence","item","TxsTableItem","SORT_SEQUENCE","txs_TxsContent","filterValue","isPlaceholderData","isError","onSortToggle","itemsWithTranslation","useDescribeTxs","viewAsAccountAddress","apiFetch","useApiFetch","txsHash","_uniq","i","txChunks","_chunk","queryKey","firstHash","lastHash","describeQuery","useQuery","queryFn","Promise","all","hashes","resolve","queryParams","select","flat","enabled","queryData","txHash","toLowerCase","content","Show","TxsList","TxsTable","pagination","isVisible","ACTION_BAR_HEIGHT_DESKTOP","actionBar","TxsHeaderMobile","AddressCsvExportLink","filterType","DataListDisplay","emptyText","sortTxs","tx1","tx2","sortTxsFromSocket","localeCompare","useTxsSort","queryResult","cookies","TXS_SORT","setSortByValue","newVal","prevVal","isPending"],"sourceRoot":""}