{"version":3,"file":"static/chunks/61142-59c97e94e2f58d7f.js","sources":["webpack://_N_E/./src/LegacyApp/client/components/transactionsTable/myBets/myBetsTable.tsx","webpack://_N_E/./src/LegacyApp/client/components/transactionsHistory/TransactionsHistory.tsx","webpack://_N_E/./src/LegacyApp/client/components/mainLayout/index.tsx","webpack://_N_E/./src/LegacyApp/hooks/window/useWindowSize.ts","webpack://_N_E/./src/common/icons/all-bets.tsx","webpack://_N_E/./src/common/icons/highroll.tsx","webpack://_N_E/./src/common/icons/my-bets.tsx","webpack://_N_E/./src/common/icons/wolf-race.tsx","webpack://_N_E/./src/modules/race/components/raceResults/index.ts","webpack://_N_E/./src/ui/components/tab-navigation/TabNavigation.styled.ts","webpack://_N_E/./src/ui/components/tab-navigation/index.tsx","webpack://_N_E/./src/LegacyApp/hooks/window/useIsElementScroll.ts","webpack://_N_E/./src/common/hooks/useInitScrollTo.ts","webpack://_N_E/./src/common/hooks/useMultiRef.ts"],"sourceRoot":"","sourcesContent":["import { FC } from 'react';\n\nimport { LOADING_IDS } from '@common/constants/fetch/loading.ids';\nimport { useOnMount } from '@common/hooks/useOnMount';\nimport { getTransactionsThunk } from '@legacyApp/client/store/transactions/thunks/getTransactions.thunk';\nimport { useTransactionsAnimation, useTransactionsMeta } from '@legacyApp/client/store/transactions/transactions.selectors';\nimport { useAppDispatch } from '@legacyApp/hooks/store/useAppDispatch';\nimport { columnsService } from '@modules/table/columnsService';\nimport { TABLE_ID } from '@modules/transactions/constants/TableId';\nimport transactionService from '@modules/transactions/transactionsService';\n\nimport { NoResultsElement } from '@common/components/layout/Table/components/noResultsElement';\nimport { TableLoadingRow } from '@common/components/layout/Table/components/tableLoadingRow';\nimport { TableRow } from '@common/components/layout/Table/components/tableRow';\nimport { TableRowContent } from '@common/components/layout/Table/components/tableRowContent';\nimport { StyledTableNoScroll, StyledTableRow, StyledTBody, StyledTHead } from '@common/components/layout/Table/components/Table.styled';\n\nconst COLUMNS = columnsService.getColumns(TABLE_ID.myBets);\n\nconst ROW_COMPARE_KEYS = transactionService.getRowCompareKeys(TABLE_ID.myBets);\n\nconst MyBetsTable: FC<{\n\tlimit?: number;\n}> = ({ limit }) => {\n\tconst dispatch = useAppDispatch();\n\n\tconst meta = useTransactionsMeta(TABLE_ID.myBets);\n\tconst data = useTransactionsAnimation(TABLE_ID.myBets);\n\n\tuseOnMount(() => {\n\t\tif (!meta?.current_page || (meta?.current_page && meta?.current_page > 1)) {\n\t\t\tdispatch(\n\t\t\t\tgetTransactionsThunk({\n\t\t\t\t\tid: TABLE_ID.myBets,\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tdisable: false,\n\t\t\t\t\trefresh: true,\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t});\n\n\tconst dataSliced = data.slice(0, limit || data?.length);\n\n\treturn (\n\t\t