{"version":3,"file":"static/chunks/72293-2abbaf3fefc006f8.js","sources":["webpack://_N_E/./src/common/components/CopyToClipboard/index.tsx","webpack://_N_E/./src/common/components/bets/betId/BetId.styled.ts","webpack://_N_E/./src/common/components/layout/Table/components/noResultsElement.tsx","webpack://_N_E/./src/LegacyApp/client/modules/app/tableService.js","webpack://_N_E/./src/common/components/layout/Table/components/table.tsx","webpack://_N_E/./src/common/components/layout/Table/components/tableLoadingRow.tsx","webpack://_N_E/./src/common/components/layout/Table/components/tableRow.tsx","webpack://_N_E/./src/common/components/layout/Table/components/tableColumn.tsx","webpack://_N_E/./src/common/components/layout/Table/components/tableRowContent.tsx","webpack://_N_E/./src/common/components/number/AmountWrapper.tsx","webpack://_N_E/./src/common/components/number/BetRounded.tsx","webpack://_N_E/./src/common/components/number/BetAmount.tsx","webpack://_N_E/./src/common/components/number/PayoutValue.tsx","webpack://_N_E/./src/common/components/number/Rounded.tsx","webpack://_N_E/./src/common/components/number/RoundedWithCurrency.tsx","webpack://_N_E/./src/common/components/number/SplitValue.tsx","webpack://_N_E/./src/modules/race/methods/racePositionString.ts","webpack://_N_E/./src/LegacyApp/client/components/affiliate/affiliateCampaignName/affiliateCampaignName.jsx","webpack://_N_E/./src/LegacyApp/client/components/affiliate/affiliateCampaignName/affiliateCampaignName.container.ts","webpack://_N_E/./src/common/constants/currency/settings/explorers.ts","webpack://_N_E/./src/LegacyApp/methods/wallet/getExplorerUrl.ts","webpack://_N_E/./src/modules/race/components/columns/index.ts","webpack://_N_E/./src/common/components/bets/betId/BetIdSimple.tsx","webpack://_N_E/./src/modules/table/constants/columns.tsx","webpack://_N_E/./src/modules/table/columnsService.jsx","webpack://_N_E/./src/modules/table/components/columns/PayoutValue.column.tsx","webpack://_N_E/./src/modules/table/components/columns/PercentageRate.column.tsx","webpack://_N_E/./src/modules/vip/components/BonusCode/BonusCode.tsx"],"sourceRoot":"","sourcesContent":["import { FC, PropsWithChildren, useCallback } from 'react';\nimport { CopyToClipboard as _CopyToClipboard } from 'react-copy-to-clipboard';\nimport { useAppDispatch } from '@legacyApp/hooks/store/useAppDispatch';\nimport { showAlert } from '@legacyApp/client/store/alerts/alerts.actions';\nimport { trans } from '@legacyApp/client/modules/translation/translate';\n\nexport const CopyToClipboard: FC<\n\tPropsWithChildren<{\n\t\tvalue: string;\n\t}>\n> = ({ value, children }) => {\n\tconst dispatch = useAppDispatch();\n\n\tconst _handleCopied = useCallback(\n\t\t(value: string) => {\n\t\t\tdispatch(\n\t\t\t\tshowAlert(\n\t\t\t\t\t'success',\n\t\t\t\t\ttrans({\n\t\t\t\t\t\tlabel: '{{value}} - Copied!',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t},\n\t\t\t\t\t}),\n\t\t\t\t),\n\t\t\t);\n\t\t},\n\t\t[dispatch],\n\t);\n\n\treturn (\n\t\t<_CopyToClipboard text={value} onCopy={_handleCopied}>\n\t\t\t{children}\n\t\t</_CopyToClipboard>\n\t);\n};\n","import styled, { css } from 'styled-components';\n\nimport { boxNoHeight } from '@legacyApp/client/modules/style/defaults';\nimport { StyledUserName } from '@ui/user-name/user-name.styled';\n\nimport { BetIdProps } from '@common/components/bets/betId/BetIdSimple';\nimport { StyledOnlineIcon } from '@common/components/user/UserLogin/OnlineIcon';\n\nexport const resultMargin = '5px';\n\nconst boxStyle = (props) => css`\n\t${boxNoHeight};\n\tpadding: ${resultMargin}!important;\n\tposition: relative;\n\n\t.new-badge {\n\t\tposition: absolute;\n\t\ttop: -21px;\n\t\tright: 5px;\n\t\tcolor: ${props.theme.colors.inputBackgroundSolid};\n\t}\n\n\t.game-icon {\n\t\tfont-size: 14px;\n\t}\n\n\t${props.session\n\t\t? css`\n\t\t\t\t@media (max-width: ${props.theme.media.maxWidthTablet}) {\n\t\t\t\t\t.chat-content-private & {\n\t\t\t\t\t\tmax-width: 310px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t `\n\t\t: ''}\n`;\n\nexport const BetIdStyle = styled.div.attrs({\n\tclassName: 'bet-id',\n})<{ box?: boolean; session?: boolean; $onlyName?: BetIdProps['onlyName'] }>`\n\t${(props) =>\n\t\tprops.$onlyName\n\t\t\t? css`\n\t\t\t\t\ttext-transform: capitalize;\n\t\t\t `\n\t\t\t: ''}\n\t${(props) => (props.box ? boxStyle(props) : '')}\n cursor: pointer;\n`;\n\nexport const BoxTitleStyle = styled.div.attrs({\n\tclassName: 'bet-box--title flex-space-between flex-vertical-center',\n})`\n\tline-height: 1.2;\n\tmargin-bottom: ${resultMargin};\n\tcursor: pointer;\n\n\t${StyledUserName},\n\t.hidden-data {\n\t\tmargin-right: 3px;\n\t\tfont-size: 11px !important;\n\n\t\ti:not(${StyledOnlineIcon}) {\n\t\t\tfont-size: 11px !important;\n\t\t}\n\n\t\timg {\n\t\t\theight: 13px;\n\t\t}\n\t}\n`;\n\nexport const BoxTitleDetailsStyle = styled.div.attrs({\n\tclassName: 'bet-box--title__details flex-start-column',\n})`\n\t.game-icon {\n\t\tmargin-top: -2px;\n\t\tmargin-right: 4px;\n\t}\n\n\t.hint {\n\t\tfont-size: 10px !important;\n\t}\n`;\n","import React, { FC } from 'react';\nimport { getNoResultsText } from '@legacyApp/client/modules/app/tableService';\nimport { StyledNoResultTableCell, StyledTableRow } from './Table.styled';\n\nexport const NoResultsElement: FC<{\n\tnoResultsText: string;\n\tclassic?: boolean;\n}> = ({ noResultsText, classic }) => {\n\treturn (\n\t\t<StyledTableRow as={classic ? 'tr' : 'div'}>\n\t\t\t<StyledNoResultTableCell as=\"span\">\n\t\t\t\t{getNoResultsText(noResultsText)}\n\t\t\t</StyledNoResultTableCell>\n\t\t</StyledTableRow>\n\t);\n};\n","import { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { config } from '../../config';\nimport { trans } from '../translation/translate';\n\nexport const getAutoRowLimit = (table, limit, isDesktop) => {\n\tif (isDesktop && limit === 'auto') {\n\t\treturn config.transactionsPaginationLength;\n\t}\n\tif (limit === 'auto') {\n\t\tlimit = config.transactionsPaginationLength - 10;\n\t}\n\tif (!table || !table.current || !table.current.clientHeight) {\n\t\treturn limit;\n\t}\n\tlimit = roundNumber(\n\t\ttable.current.clientHeight /\n\t\t\ttable.current.querySelector('.table__row').clientHeight,\n\t\t0,\n\t\t'floor',\n\t);\n\t// console.log('getAutoLimit', {\n\t// res: limit > 3 ? limit : config.transactionsPaginationLength,\n\t// limit,\n\t// clientHeight: table.current ? table.current.clientHeight : false\n\t// });\n\treturn limit > 3 ? limit : config.transactionsPaginationLength - 10;\n};\n\nexport const getNoResultsText = (text) => {\n\treturn !text\n\t\t? trans({ label: 'No results' })\n\t\t: typeof text === 'string'\n\t\t? trans({ label: text })\n\t\t: text;\n};\n","import React, { FC, useCallback, useRef } from 'react';\nimport transactionService from '../../../../../modules/transactions/transactionsService';\nimport { TableLoadingRow } from './tableLoadingRow';\nimport { TableRowContent } from './tableRowContent';\nimport {\n\tStyledTable,\n\tStyledTableNoScroll,\n\tStyledTableRow,\n\tStyledTBody,\n\tStyledTHead,\n} from './Table.styled';\nimport { TableRow } from './tableRow';\nimport { TableProps } from './tableProps';\nimport { NoResultsElement } from './noResultsElement';\n\nexport const Table: FC<TableProps> = (props) => {\n\tconst tableRef = useRef();\n\tconst tbodyRef = useRef();\n\tconst {\n\t\tclassic,\n\t\tdata,\n\t\tfulfilled,\n\t\tnoScroll,\n\t\ttableStyle,\n\t\tid,\n\t\tsortProps,\n\t\theadCellAdd,\n\t\theadOnClick,\n\t\tbodyCellAdd,\n\t\tbodyOnClick,\n\t\tcolumns,\n\t\trowMargin,\n\t\trowCompareKeys,\n\t\ttableCompareKeys,\n\t\tloadingId,\n\t\tnoResultsText,\n\t\tadditionalData,\n\t\thighlightRow,\n\t\trowClass,\n\t} = props;\n\n\tconst Tag = {\n\t\ttable: classic ? 'table' : 'div',\n\t\tthead: classic ? 'thead' : 'div',\n\t\ttbody: classic ? 'tbody' : 'div',\n\t\ttr: classic ? 'tr' : 'div',\n\t};\n\tconst isNoResults = (!data || !data.length) && fulfilled !== false;\n\tconst TableClass = noScroll ? StyledTableNoScroll : StyledTable;\n\n\tconst getRowKey = useCallback(\n\t\t(el) => {\n\t\t\treturn `${id}_${transactionService.getCompareData(el, tableCompareKeys)}`;\n\t\t},\n\t\t[id, tableCompareKeys],\n\t);\n\n\treturn (\n\t\t// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.\n\t\t<TableClass\n\t\t\t// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.\n\t\t\tas={Tag.table}\n\t\t\tref={tableRef}\n\t\t\tstyle={tableStyle}\n\t\t\tname={`table-${id}`}\n\t\t\t$noResults={!data.length}\n\t\t\tclassName={`table-${id}`}\n\t\t>\n\t\t\t<StyledTHead as={Tag.thead} data-name=\"table-head\">\n\t\t\t\t<StyledTableRow as={Tag.tr}>\n\t\t\t\t\t<TableRowContent\n\t\t\t\t\t\tsortProps={sortProps}\n\t\t\t\t\t\tcellAdd={headCellAdd}\n\t\t\t\t\t\tonClick={headOnClick}\n\t\t\t\t\t\tclassic={classic}\n\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t/>\n\t\t\t\t</StyledTableRow>\n\t\t\t</StyledTHead>\n\t\t\t{/*@ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.*/}\n\t\t\t<StyledTBody\n\t\t\t\t// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.\n\t\t\t\tas={Tag.tbody}\n\t\t\t\t$rowMargin={rowMargin}\n\t\t\t\t$length={\n\t\t\t\t\t(data?.length || 1) +\n\t\t\t\t\t(additionalData?.length ? additionalData?.length + 1 : 0)\n\t\t\t\t}\n\t\t\t\tdata-name=\"table-body\"\n\t\t\t\tref={tbodyRef}\n\t\t\t>\n\t\t\t\t{!isNoResults &&\n\t\t\t\t\tdata.map((el, index) => (\n\t\t\t\t\t\t<TableRow\n\t\t\t\t\t\t\tonClick={bodyOnClick}\n\t\t\t\t\t\t\tsortProps={sortProps}\n\t\t\t\t\t\t\tcompareKeys={rowCompareKeys}\n\t\t\t\t\t\t\thighlightRow={highlightRow}\n\t\t\t\t\t\t\trowClass={rowClass}\n\t\t\t\t\t\t\tcellAdd={bodyCellAdd}\n\t\t\t\t\t\t\tclassic={classic}\n\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\tel={el}\n\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\tkey={getRowKey(el)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t{additionalData &&\n\t\t\t\t\tadditionalData.map((el, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<TableRow\n\t\t\t\t\t\t\t\tkey={getRowKey(el)}\n\t\t\t\t\t\t\t\tcellAdd={bodyCellAdd}\n\t\t\t\t\t\t\t\tonClick={bodyOnClick}\n\t\t\t\t\t\t\t\tcompareKeys={rowCompareKeys}\n\t\t\t\t\t\t\t\tel={el}\n\t\t\t\t\t\t\t\tclassic={classic}\n\t\t\t\t\t\t\t\tisAdditional={index === 0}\n\t\t\t\t\t\t\t\tindex={index + data.length}\n\t\t\t\t\t\t\t\thighlightRow={highlightRow}\n\t\t\t\t\t\t\t\trowClass={rowClass}\n\t\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t<TableLoadingRow\n\t\t\t\t\tid={loadingId}\n\t\t\t\t\tisData={!isNoResults && !!data?.length}\n\t\t\t\t\tmessage={\n\t\t\t\t\t\tisNoResults && (\n\t\t\t\t\t\t\t<NoResultsElement\n\t\t\t\t\t\t\t\tclassic={classic}\n\t\t\t\t\t\t\t\tnoResultsText={noResultsText}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</StyledTBody>\n\t\t</TableClass>\n\t);\n};\n","import React, { FC } from 'react';\nimport { Loader } from '@legacyApp/client/components/loader/loader';\nimport { LoadingIdType } from '@common/constants/fetch/loading.ids';\nimport { StyledTableLoader, StyledTableRow } from './Table.styled';\n\nexport const TableLoadingRow: FC<{\n\tid: LoadingIdType;\n\tmessage?: any;\n\tisData?: boolean;\n}> = ({ id, message, isData }) => {\n\tif (!id) {\n\t\treturn null;\n\t}\n\tconst Component = isData ? StyledTableLoader : StyledTableRow;\n\treturn (\n\t\t<Component>\n\t\t\t<Loader module={id} message={message} />\n\t\t</Component>\n\t);\n};\n","import React, { useCallback } from 'react';\nimport classnames from 'classnames';\nimport { useStateEffect } from '@common/hooks/useStateEffect';\nimport { StyledTableRow } from './Table.styled';\nimport { TableRowContent, TableRowContentProps } from './tableRowContent';\n\nimport { TableProps } from './tableProps';\n\nexport interface TableRowProps extends TableRowContentProps {\n\tindex?: number;\n\thighlightRow?: TableProps['highlightRow'];\n\trowClass?: TableProps['rowClass'];\n\tisAdditional?: boolean;\n}\n\nexport const TableRow = ({\n\tel,\n\tindex,\n\tcolumns,\n\tcompareKeys,\n\tclassic,\n\thighlightRow,\n\trowClass,\n\tcellAdd,\n\tisAdditional,\n}: TableRowProps) => {\n\tconst className = useStateEffect(\n\t\tuseCallback(() => {\n\t\t\treturn classnames(\n\t\t\t\t{\n\t\t\t\t\t'initial-blink': highlightRow,\n\t\t\t\t\t'highlight-row': el?.highlight,\n\t\t\t\t},\n\t\t\t\trowClass,\n\t\t\t\tel?.rowClass,\n\t\t\t);\n\t\t}, [el?.highlight, el?.rowClass, highlightRow, rowClass]),\n\t);\n\n\tif (!el) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<StyledTableRow\n\t\t\t$rowIndex={index}\n\t\t\tas={classic ? 'tr' : 'div'}\n\t\t\tclassName={className}\n\t\t\t$isAdditional={isAdditional}\n\t\t\t// data-id={`${id}_${transactionService.getCompareData(el, tableCompareKeys)}`}\n\t\t>\n\t\t\t<TableRowContent\n\t\t\t\tcellAdd={cellAdd}\n\t\t\t\tclassic={classic}\n\t\t\t\tcolumns={columns}\n\t\t\t\tcompareKeys={compareKeys}\n\t\t\t\tel={el}\n\t\t\t/>\n\t\t</StyledTableRow>\n\t);\n};\n","import { FC, useCallback, useEffect, useState } from 'react';\nimport { columnsService } from '@modules/table/columnsService';\nimport { usePrevious } from '@legacyApp/hooks/render/usePrevious';\nimport transactionsService from '../../../../../modules/transactions/transactionsService';\n\nexport const TableColumn: FC<{\n\tcolumn: any;\n\tdata: any;\n}> = ({ column, data }) => {\n\tconst prevColumn = usePrevious(\n\t\tcolumn,\n\t\t(a, b) => !transactionsService.isDuplicate(a, b),\n\t);\n\tconst prevData = usePrevious(\n\t\tdata,\n\t\t(a, b) => !transactionsService.isDuplicate(a, b),\n\t);\n\n\tconst getColumn = useCallback(() => {\n\t\treturn columnsService.handleTableValue(column, data);\n\t}, [column, data]);\n\n\tconst [Column, setColumn] = useState(getColumn());\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\ttransactionsService.isDuplicate(\n\t\t\t\t{\n\t\t\t\t\tcolumn,\n\t\t\t\t\tdata,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcolumn: prevColumn,\n\t\t\t\t\tdata: prevData,\n\t\t\t\t},\n\t\t\t)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tsetColumn(getColumn());\n\t}, [column, data, getColumn, prevColumn, prevData]);\n\n\treturn Column;\n};\n","import { FC, useCallback } from 'react';\nimport classnames from 'classnames';\nimport { trans } from '@legacyApp/client/modules/translation/translate';\nimport { columnsService } from '@modules/table/columnsService';\nimport { isFunction } from '@common/methods/isFunction';\nimport { DIRECTION } from '@legacyApp/client/modules/app/sortService';\nimport { TableColumnConfig } from '@modules/table/types';\nimport { useStateEffect } from '@common/hooks/useStateEffect';\nimport { ArrayElement } from '@common/types/ArrayElement.types';\nimport transactionService from '../../../../../modules/transactions/transactionsService';\nimport { TableColumn } from './tableColumn';\nimport { StyledTableCell } from './Table.styled';\n\nimport { TableProps } from './tableProps';\n\nexport interface TableRowContentProps<T = any> {\n\tcolumns: TableProps['columns'];\n\tel?: T;\n\tclassic?: TableProps['classic'];\n\tcompareKeys?: TableProps['rowCompareKeys'];\n\tcellAdd?: TableProps['headCellAdd'];\n\tonClick?: TableProps['headOnClick'];\n\tsortProps?: TableProps['sortProps'];\n}\n\nexport interface TableCellContentProps<T = any>\n\textends Omit<TableRowContentProps<T>, 'columns'> {\n\tcolumn: ArrayElement<TableProps['columns']>;\n}\n\nexport const SortAdd: FC<TableCellContentProps> = ({ sortProps, column }) => {\n\tif (!sortProps) {\n\t\treturn null;\n\t}\n\tif (column.id.indexOf(sortProps.by) > -1) {\n\t\treturn (\n\t\t\t<i\n\t\t\t\tclassName={`icon__arrow-${\n\t\t\t\t\tsortProps.direction === DIRECTION.ASC ? 'up' : 'down'\n\t\t\t\t} relative small-margin-left`}\n\t\t\t/>\n\t\t);\n\t}\n\treturn null;\n};\n\nexport const HeadCellAdd = <T = any,>({\n\tcolumn,\n\tel,\n\tcellAdd,\n\tsortProps,\n}: TableCellContentProps<T>): ReturnType<FC> => {\n\tif (!cellAdd && !sortProps) {\n\t\treturn null;\n\t}\n\tconst propsAdd = isFunction(cellAdd) ? cellAdd(column, el) : null;\n\treturn (\n\t\t<>\n\t\t\t{propsAdd}\n\t\t\t{!!sortProps && <SortAdd column={column} sortProps={sortProps} />}\n\t\t</>\n\t);\n};\n\nexport const CellContent = <T = any,>(\n\tprops: TableCellContentProps<T>,\n): ReturnType<FC> => {\n\tconst { column, classic, el } = props;\n\tconst Tag = classic ? 'tr' : 'div';\n\n\treturn !el ? (\n\t\t<>\n\t\t\t{column.name.length && column.name.length > 1\n\t\t\t\t? trans({ label: column.name })\n\t\t\t\t: column.name}\n\t\t\t<HeadCellAdd {...props} />\n\t\t</>\n\t) : (\n\t\t<Tag className=\"text\">\n\t\t\t<TableColumn column={column} data={el} />\n\t\t\t<HeadCellAdd {...props} />\n\t\t</Tag>\n\t);\n};\n\nexport const TableRowContent = <T = any,>(\n\tprops: TableRowContentProps<T>,\n): ReturnType<FC> => {\n\tconst { sortProps, columns, el, classic, compareKeys, onClick } = props;\n\n\tconst columns_ = useStateEffect(\n\t\tuseCallback(() => {\n\t\t\treturn columns.map((column) => {\n\t\t\t\tconst id = columnsService.parseJsonPathToColumnId(column.id);\n\t\t\t\treturn {\n\t\t\t\t\t...column,\n\t\t\t\t\tclassName: classnames(`table__column--${id}`, {\n\t\t\t\t\t\t[column.columnClass]: !!column?.columnClass,\n\t\t\t\t\t\t[`table__column-sort--${!!sortProps && sortProps.direction}`]:\n\t\t\t\t\t\t\t!!sortProps && sortProps.direction && id === sortProps.by,\n\t\t\t\t\t}),\n\t\t\t\t\tkey: `${id}_${transactionService.getCompareData(el, compareKeys)}`,\n\t\t\t\t};\n\t\t\t});\n\t\t}, [columns, compareKeys, el, sortProps]),\n\t\t(a, b) => transactionService.isListDifferent(a, b, ['key']),\n\t);\n\n\tconst onClick_ = useCallback(\n\t\t(col: TableColumnConfig) => {\n\t\t\tif (isFunction(onClick)) {\n\t\t\t\tonClick(col);\n\t\t\t}\n\t\t},\n\t\t[onClick],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{columns_.map((column) => {\n\t\t\t\tconst TagTd = classic ? 'td' : 'span';\n\t\t\t\treturn (\n\t\t\t\t\t<StyledTableCell\n\t\t\t\t\t\tas={TagTd}\n\t\t\t\t\t\tonClick={() => onClick_(column)}\n\t\t\t\t\t\tkey={column.key}\n\t\t\t\t\t\tclassName={column.className}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CellContent {...props} column={column} />\n\t\t\t\t\t</StyledTableCell>\n\t\t\t\t);\n\t\t\t})}\n\t\t</>\n\t);\n};\n","import { FC, PropsWithChildren } from 'react';\nimport { CurrencyType } from '@legacyApp/types/wallet/CurrencyType';\nimport { Tooltip } from '@legacyApp/client/components/tooltip';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { config } from '@legacyApp/client/config';\nimport { StyledProfit } from './StyledProfit';\nimport { CurrencyValue } from './CurrencyValue';\n\nexport interface AmountWrapperProps {\n\tvalue: number;\n\tcurrency?: CurrencyType;\n\tisProfitColor?: boolean;\n\tisCurrencyInFront?: boolean;\n\tstate?: string;\n}\n\nexport const AmountWrapper: FC<PropsWithChildren<AmountWrapperProps>> = ({\n\tvalue,\n\tcurrency,\n\tisProfitColor,\n\tisCurrencyInFront,\n\tstate,\n\tchildren,\n}) => {\n\treturn (\n\t\t<CurrencyValue currency={currency} isCurrencyInFront={isCurrencyInFront}>\n\t\t\t<StyledProfit $state={state} $disable={!isProfitColor} $value={value}>\n\t\t\t\t<Tooltip\n\t\t\t\t\tcontent={mathService.currencyValue(\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tconfig.decimals.balance,\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Tooltip>\n\t\t\t</StyledProfit>\n\t\t</CurrencyValue>\n\t);\n};\n","import { FC } from 'react';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { config } from '@legacyApp/client/config';\nimport { countPrecision } from '@legacyApp/methods/math/countPrecision';\n\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { SplitValue } from './SplitValue';\n\nexport const BetRounded: FC<{\n\tvalue: number;\n\tminValueToShortenThousands?: number;\n\tprecise?: boolean;\n}> = ({ value, minValueToShortenThousands, precise }) => {\n\tconst isNegative = value < 0;\n\tconst absolute = Math.abs(\n\t\tparseFloat((value || 0).toFixed(config.decimals.balance)),\n\t);\n\tconst precision = countPrecision(absolute);\n\n\t// console.log('BetRounded', {\n\t// \tabsolute,\n\t// \tisNegative,\n\t// \tvalue,\n\t// });\n\n\tif (absolute === 0) {\n\t\treturn <>{absolute.toFixed(config.decimals.bet)}</>;\n\t}\n\n\tif (precise) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{isNegative ? '-' : ''}\n\t\t\t\t{mathService.currencyValue(\n\t\t\t\t\tabsolute,\n\t\t\t\t\tundefined,\n\t\t\t\t\tconfig.decimals.bet,\n\t\t\t\t\tconfig.decimals.bet,\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tif (absolute < 1) {\n\t\tif (precision > config.decimals.bet) {\n\t\t\treturn <SplitValue amount={value || 0} />;\n\t\t}\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{isNegative ? '-' : ''}\n\t\t\t\t{roundNumber(absolute, config.decimals.bet).toFixed(\n\t\t\t\t\tconfig.decimals.bet,\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tif (absolute < 1000) {\n\t\tconst decimals = precision > 2 ? 4 : 2;\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{isNegative ? '-' : ''}\n\t\t\t\t{mathService.currencyValue(absolute, undefined, decimals, decimals)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tconst decimals = precision > 0 ? 2 : 0;\n\n\tif (absolute < (minValueToShortenThousands || 10000)) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{isNegative ? '-' : ''}\n\t\t\t\t{mathService.currencyValue(absolute, undefined, decimals, decimals)}\n\t\t\t</>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isNegative ? '-' : ''}\n\t\t\t{mathService.currencyValue(\n\t\t\t\tabsolute / 1000,\n\t\t\t\tundefined,\n\t\t\t\tdecimals,\n\t\t\t\tdecimals,\n\t\t\t)}\n\t\t\tk\n\t\t</>\n\t);\n};\n","import { FC } from 'react';\nimport { BetRounded } from './BetRounded';\nimport { AmountWrapper, AmountWrapperProps } from './AmountWrapper';\n\ninterface BetAmountProps extends AmountWrapperProps {\n\tminValueToShortenThousands?: number;\n\tprecise?: boolean;\n}\n\nexport const BetAmount: FC<BetAmountProps> = (props) => {\n\treturn (\n\t\t<AmountWrapper {...props}>\n\t\t\t<BetRounded\n\t\t\t\tprecise={props.precise}\n\t\t\t\tvalue={props.value}\n\t\t\t\tminValueToShortenThousands={props.minValueToShortenThousands}\n\t\t\t/>\n\t\t</AmountWrapper>\n\t);\n};\n","import { FC } from 'react';\nimport { config } from '@legacyApp/client/config';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { GameType } from '@modules/games/Game/constants/availableGames';\nimport { game_config } from '@legacyApp/client/game_config';\nimport { CurrencyValue } from './CurrencyValue';\n\nexport interface PayoutValueProps {\n\tvalue: number;\n\tgame: GameType;\n\tminDecimals?: number;\n}\n\nexport const PayoutValue: FC<PayoutValueProps> = ({\n\tvalue,\n\tgame,\n\tminDecimals,\n}) => {\n\t// console.log('PayloadValue', { value, game });\n\tconst precision = game_config?.[game]?.payoutDecimal\n\t\t? game_config[game].payoutDecimal\n\t\t: config.decimals.payout;\n\treturn (\n\t\t<CurrencyValue>\n\t\t\t{mathService.currencyValue(value, undefined, minDecimals || 0, precision)}\n\t\t\tx\n\t\t</CurrencyValue>\n\t);\n};\n","import { FC } from 'react';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { config } from '@legacyApp/client/config';\nimport { countPrecision } from '@legacyApp/methods/math/countPrecision';\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { PrettyNumber } from '../default/PrettyNumber/PrettyNumber';\nimport { SplitValue } from './SplitValue';\n\nexport const roundedNumber = (value: number, isInt?: boolean) => {\n\tconst isNegative = value < 0;\n\tconst absolute = Math.abs(parseFloat(value.toFixed(config.decimals.balance)));\n\tlet _value = String(value);\n\n\tif (absolute >= 1000000) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute / 1000,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t0,\n\t\t)}k`;\n\t}\n\n\tif (absolute < 1000000 && absolute >= 10000) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t0,\n\t\t)}`;\n\t}\n\n\tif (absolute < 10000 && absolute >= 1000) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t2,\n\t\t)}`;\n\t}\n\n\tif (absolute < 1000 && absolute >= 100) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t4,\n\t\t)}`;\n\t}\n\n\tif (absolute < 100 && absolute >= 10) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t5,\n\t\t)}`;\n\t}\n\n\tif (absolute < 10 && absolute >= 1) {\n\t\t_value = `${isNegative ? '-' : ''}${mathService.currencyValue(\n\t\t\tabsolute,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t6,\n\t\t)}`;\n\t}\n\n\tif (absolute < 1) {\n\t\t_value = `${isNegative ? '-' : ''}${roundNumber(\n\t\t\tabsolute,\n\t\t\tconfig.decimals.bet,\n\t\t).toFixed(config.decimals.bet)}`;\n\t}\n\n\tif (absolute === 0) {\n\t\t_value = absolute.toFixed(isInt ? 0 : config.decimals.bet);\n\t}\n\n\treturn {\n\t\tisNegative,\n\t\tabsolute,\n\t\tvalue: _value,\n\t};\n};\n\nexport const Rounded: FC<{\n\tvalue: number;\n\tisInt?: boolean;\n\tminPretty?: number;\n}> = ({ value, isInt, minPretty }) => {\n\tconst { isNegative, absolute, value: value_ } = roundedNumber(value, isInt);\n\n\t// console.log('Rounded', {\n\t// \tmaxPrecision,\n\t// \tabsolute,\n\t// \tisNegative,\n\t// \tvalue,\n\t// });\n\n\tif (absolute === 0) {\n\t\treturn <>{value_}</>;\n\t}\n\n\tif (absolute < 1 && absolute !== 0) {\n\t\tif (countPrecision(absolute) > config.decimals.bet) {\n\t\t\treturn <SplitValue amount={value} />;\n\t\t}\n\t}\n\n\tconst _minPretty = minPretty || 10000;\n\n\tif (absolute >= _minPretty) {\n\t\tif (isNegative) {\n\t\t\treturn (\n\t\t\t\t<span>\n\t\t\t\t\t-\n\t\t\t\t\t<PrettyNumber params={{ shortFormat: true }}>{absolute}</PrettyNumber>\n\t\t\t\t</span>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<PrettyNumber\n\t\t\t\tparams={{\n\t\t\t\t\tshortFormat: true,\n\t\t\t\t\tshortFormatPrecision: 2,\n\t\t\t\t\tprecision: 0,\n\t\t\t\t\tshortFormatMinValue: _minPretty,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{roundNumber(absolute, 0)}\n\t\t\t</PrettyNumber>\n\t\t);\n\t}\n\n\treturn <>{value_}</>;\n};\n","import { FC } from 'react';\nimport { CurrencyType } from '@legacyApp/types/wallet/CurrencyType';\nimport { Rounded } from './Rounded';\nimport { CurrencyValue } from './CurrencyValue';\n\nexport const RoundedWithCurrency: FC<{\n\tvalue: number;\n\tcurrency: CurrencyType;\n}> = ({ currency, value }) => {\n\treturn (\n\t\t<CurrencyValue currency={currency}>\n\t\t\t<Rounded value={value} />\n\t\t</CurrencyValue>\n\t);\n};\n","import styled from 'styled-components';\nimport { config } from '@legacyApp/client/config';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\n\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\n\nexport const getSplitValue = ({\n\tvalue,\n}: {\n\tvalue: number;\n}): {\n\tvalue: string;\n\tsmall: string;\n} => {\n\tconst big = mathService.currencyValue(\n\t\tvalue,\n\t\tundefined,\n\t\tconfig.decimals.bet,\n\t\tconfig.decimals.bet,\n\t);\n\tconst small = value\n\t\t.toFixed(config.decimals.balance)\n\t\t.replace(\n\t\t\troundNumber(value, config.decimals.bet, 'floor').toFixed(\n\t\t\t\tconfig.decimals.bet,\n\t\t\t),\n\t\t\t'',\n\t\t);\n\n\t// console.log('getSplitValue',{\n\t// \tvalueStringified,\n\t// \tvalueFixed,\n\t// \tvalue,\n\t// \tsmall,\n\t// });\n\n\treturn {\n\t\tvalue: big,\n\t\tsmall,\n\t};\n};\n\nexport const SplitValue = ({ amount }) => {\n\tconst isNegative = amount < 0;\n\tconst absolute = Math.abs(\n\t\tparseFloat(amount.toFixed(config.decimals.balance)),\n\t);\n\n\tconst { value, small } = getSplitValue({ value: absolute });\n\treturn (\n\t\t<StyledSplitValue>\n\t\t\t{isNegative ? '-' : ''}\n\t\t\t<span>{value}</span>\n\t\t\t<StyledSmallValue>{small}</StyledSmallValue>\n\t\t</StyledSplitValue>\n\t);\n};\n\nexport const StyledSplitValue = styled.span`\n\t//margin-right: 12px;\n\tposition: relative;\n`;\n\nexport const StyledSmallValue = styled.span`\n\tdisplay: inline-block;\n\ttransform: scale(0.75) translate(-15%, 5%) !important;\n`;\n","import { trans } from '@legacyApp/client/modules/translation/translate';\nimport { RaceCompetititor } from '../types/RaceCompetititor';\n\nexport const racePositionString = (position: RaceCompetititor['position']) => {\n\tswitch (position) {\n\t\tcase 1: {\n\t\t\treturn trans({ label: '1st' });\n\t\t}\n\t\tcase 2: {\n\t\t\treturn trans({ label: '2nd' });\n\t\t}\n\t\tcase 3: {\n\t\t\treturn trans({ label: '3rd' });\n\t\t}\n\t\tdefault: {\n\t\t\treturn trans({\n\t\t\t\tlabel: '{{position}}th',\n\t\t\t\toptions: {\n\t\t\t\t\tposition,\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t}\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { enhanceComponent } from '../../../wrappers/enhanceComponent';\nimport { Redirect } from '../../../../../common/components/default/Redirect/Redirect';\nimport { MODAL_ID } from '../../../../../common/constants/modal/ids.modal.constants';\n\nclass AffiliateCampaignName extends React.PureComponent {\n\tstatic propTypes = {\n\t\tid: PropTypes.any,\n\t\tname: PropTypes.string,\n\t\tdata: PropTypes.object,\n\t\topenModal: PropTypes.func,\n\t};\n\n\tonClick = () => {\n\t\tthis.props.openModal(MODAL_ID.AFFILIATE_CAMPAIGN, {\n\t\t\tid: this.props.id || undefined,\n\t\t\tdata: this.props.data || undefined,\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<Redirect className=\"text-underline\" onClick={this.onClick}>\n\t\t\t\t{this.props.name}\n\t\t\t</Redirect>\n\t\t);\n\t}\n}\n\nAffiliateCampaignName = enhanceComponent({\n\tAffiliateCampaignName,\n});\n\nexport { AffiliateCampaignName };\n","import { connect } from 'react-redux';\nimport { openModal } from '../../../../../modules/modals/store/modal.actions';\nimport { AffiliateCampaignName } from './affiliateCampaignName';\n\nconst mapDispatchToProps = (dispatch) => {\n\treturn {\n\t\topenModal: (name, props) =>\n\t\t\tdispatch(openModal(name, 'affiliateCampaignName', props)),\n\t};\n};\n\nconst AffiliateCampaignNameContainer = connect(\n\tnull,\n\tmapDispatchToProps,\n)(AffiliateCampaignName);\n\nexport { AffiliateCampaignNameContainer };\n","export enum Explorers {\n\tada = 'https://cardanoscan.io/transaction/{{txid}}',\n\tbnb = 'https://bscscan.com/tx/{{txid}}',\n\tbch = 'https://blockchair.com/bitcoin-cash/transaction/{{txid}}?from={{from}}',\n\tbtc = 'https://blockchair.com/bitcoin/transaction/{{txid}}?from={{from}}',\n\tdoge = 'https://blockchair.com/dogecoin/transaction/{{txid}}?from={{from}}',\n\teth = 'https://blockchair.com/ethereum/transaction/{{txid}}?from={{from}}',\n\tdot = 'https://polkadot.subscan.io/extrinsic/{{txid}}',\n\tetc = 'https://blockscout.com/etc/mainnet/tx/{{txid}}',\n\tltc = 'https://blockchair.com/litecoin/transaction/{{txid}}?from={{from}}',\n\ttrx = 'https://tronscan.org/#/transaction/{{txid}}',\n\txlm = 'https://blockchair.com/stellar/transaction/{{txid}}?from={{from}}',\n\toptim = 'https://optimistic.etherscan.io/tx/{{txid}}',\n\top = 'https://optimistic.etherscan.io/tx/{{txid}}',\n\tmatic = 'https://polygonscan.com/tx/{{txid}}',\n\tpol = 'https://polygonscan.com/tx/{{txid}}',\n\txrp = '', // check getExplorerUrl.ts:20,\n\tsol = 'https://solscan.io/tx/{{txid}}',\n\tskins = 'https://skin.place/payform?token=3bf91e72-2327-478f-9ac2-d5aef8675817&order_id={{txid}}',\n}\n","import { NEXT_CONFIG } from '@common/constants/config/nextConfig';\nimport { Explorers } from '@common/constants/currency/settings/explorers';\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { getTimestamp } from '../../client/modules/app/timeService';\nimport { sentryError } from '../../client/modules/app/sentryService';\nimport { CurrencyNetworkType } from '../../types/wallet/CurrencyType';\nimport { day } from '../../client/modules/app/time';\n\nexport const getExplorerUrl = ({\n\tnetwork,\n\ttxid,\n\tdate,\n\tobject,\n}: {\n\tnetwork: CurrencyNetworkType;\n\ttxid: string;\n\tdate: number;\n\tobject: any;\n}): string => {\n\tif (!network) {\n\t\treturn '';\n\t}\n\n\tlet explorer: string = Explorers[network];\n\n\tif (explorer === '') {\n\t\tif (network === 'xrp') {\n\t\t\texplorer =\n\t\t\t\t!date ||\n\t\t\t\tdate < roundNumber(getTimestamp() - (25 * day) / 1000, 0, 'floor')\n\t\t\t\t\t? 'https://xrpcharts.ripple.com/#/transactions/{{txid}}'\n\t\t\t\t\t: 'https://blockchair.com/ripple/transaction/{{txid}}?from={{from}}';\n\t\t}\n\t}\n\n\tif (!explorer) {\n\t\tsentryError(new Error('Unsupported wallet transaction explorer'), {\n\t\t\tnetwork,\n\t\t\ttxid,\n\t\t\tdate,\n\t\t\tobject,\n\t\t});\n\n\t\treturn '';\n\t}\n\n\treturn explorer\n\t\t.replace('{{txid}}', txid)\n\t\t.replace('{{from}}', NEXT_CONFIG.PRODUCTION ? 'wolfbet' : 'test-1234');\n};\n","import { Loadable } from '@legacyApp/client/components/loader/loadable/loadable';\n\nexport const PrizeColumn = Loadable(\n\t{\n\t\tloader: () => import(/* webpackChunkName: \"PrizeColumn\" */ './PrizeColumn'),\n\t},\n\t'./PrizeColumn',\n);\nexport const WagerColumn = Loadable(\n\t{\n\t\tloader: () => import(/* webpackChunkName: \"WagerColumn\" */ './WagerColumn'),\n\t},\n\t'./WagerColumn',\n);\nexport const RankColumn = Loadable(\n\t{ loader: () => import(/* webpackChunkName: \"RankColumn\" */ './RankColumn') },\n\t'./RankColumn',\n);\n","import { FunctionComponent } from 'react';\nimport { checkMobileType } from '@legacyApp/client/modules/app/appService';\nimport { BetType } from '@legacyApp/types/bets/BetType';\nimport { BetIdType } from '@legacyApp/types/bets/BetIdType';\nimport { useOpenBetModal } from '@legacyApp/hooks/bets/useOpenBetModal';\nimport { BetDetailsType } from '@legacyApp/types/bets/BetDetailsType';\nimport { useAppSelector } from '@legacyApp/hooks/store/useAppSelector';\nimport { GameType } from '@modules/games/Game/constants/availableGames';\nimport { BetIdStyle } from './BetId.styled';\n\nexport interface BetIdProps {\n\tdata: BetDetailsType;\n\tid: BetIdType;\n\tgame: GameType;\n\twithGameName?: boolean;\n\ttable?: boolean;\n\ttype: BetType;\n\tonlyName?: boolean;\n}\n\nconst BetIdString: FunctionComponent<BetIdProps> = ({\n\tdata,\n\tid,\n\tgame,\n\twithGameName,\n\ttable,\n\tonlyName,\n}) => {\n\tconst device = useAppSelector((state) => state.app.deviceType);\n\n\tif (!data) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{withGameName ? `${game.toUpperCase()}:` : ''}#{id}\n\t\t\t</>\n\t\t);\n\t}\n\n\tif (onlyName) {\n\t\treturn <>{data?.game_details?.name || data?.game?.name}</>;\n\t}\n\n\tif (table && checkMobileType(device) && typeof id === 'string') {\n\t\treturn <>{id.split('-')[0]}</>;\n\t}\n\n\treturn <>{id}</>;\n};\n\nconst BetIdSimple: FunctionComponent<BetIdProps> = ({\n\tdata,\n\tid,\n\tgame,\n\ttype,\n\twithGameName,\n\ttable,\n\tonlyName,\n}) => {\n\tconst { openCallback } = useOpenBetModal({\n\t\tdata,\n\t\tid,\n\t\tgame,\n\t\ttype,\n\t});\n\n\treturn (\n\t\t<BetIdStyle $onlyName={onlyName} onClick={openCallback}>\n\t\t\t<BetIdString\n\t\t\t\tonlyName={onlyName}\n\t\t\t\ttype={type}\n\t\t\t\tdata={data}\n\t\t\t\tid={id}\n\t\t\t\tgame={game}\n\t\t\t\twithGameName={withGameName}\n\t\t\t\ttable={table}\n\t\t\t/>\n\t\t</BetIdStyle>\n\t);\n};\n\nexport default BetIdSimple;\n","import {\n\tfaBan,\n\tfaCheckCircle,\n\tfaHourglassHalf,\n} from '@fortawesome/free-solid-svg-icons';\nimport React from 'react';\nimport { Tooltip } from '@legacyApp/client/components/tooltip';\nimport { trans } from '@legacyApp/client/modules/translation/translate';\nimport { AwesomeIcon } from '@common/components/icons/AwesomeIcon';\nimport { AffiliateCampaignNameContainer } from '@legacyApp/client/components/affiliate/affiliateCampaignName';\nimport { UserLogin } from '@common/components/user/UserLogin/UserLogin';\nimport { capitalize } from '@legacyApp/client/modules/app/appService';\nimport {\n\tformatDate,\n\tformatToDate,\n\tformatToFullDate,\n\tformatToFullDateNoSeconds,\n\tformatToTime,\n\tgetTimestamp,\n} from '@legacyApp/client/modules/app/timeService';\nimport { Rounded } from '@common/components/number/Rounded';\nimport { RoundedWithCurrency } from '@common/components/number/RoundedWithCurrency';\nimport { StyledProfit } from '@common/components/number/StyledProfit';\nimport { BetAmount } from '@common/components/number/BetAmount';\nimport { currenciesSettings } from '@common/controllers/currency/currenciesSettings';\nimport { BalanceAmount } from '@common/components/number/balanceAmount';\nimport { RaceBadge } from '@common/components/user/UserLogin/RaceBadge';\nimport { TokenSymbol } from '@legacyApp/client/components/currencySymbol/tokenSymbol';\nimport { scientificToDecimal } from '@legacyApp/methods/math/scientificToDecimal';\nimport { config } from '@legacyApp/client/config';\nimport { CurrencySymbol } from '@legacyApp/client/components/currencySymbol/currencySymbol';\nimport { getExplorerUrl } from '@legacyApp/methods/wallet/getExplorerUrl';\nimport { Redirect } from '@common/components/default/Redirect/Redirect';\nimport { InputWrapperContainer } from '@legacyApp/client/components/input/inputWrapper.container';\nimport { UserActionsContainer } from '@legacyApp/client/components/userActions';\nimport { Loadable } from '@legacyApp/client/components/loader/loadable/loadable';\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { TableColumnConfig } from '../types';\nimport { PercentageRateColumn } from '../components/columns/PercentageRate.column';\nimport { PayoutValueColumn } from '../components/columns/PayoutValue.column';\nimport { TABLE_ID } from '../../transactions/constants/TableId';\nimport { BonusCode } from '../../vip/components/BonusCode/BonusCode';\nimport { racePositionString } from '../../race/methods/racePositionString';\nimport {\n\tPrizeColumn,\n\tRankColumn,\n\tWagerColumn,\n} from '../../race/components/columns';\nimport BetIdSimple from '../../../common/components/bets/betId/BetIdSimple';\nimport { GameIcon } from '../../games/Game/components/Game.components/gameIcon';\nimport { BetSlipIcon } from '../../sports/components/BetSlipSection/BetSlipDetails/BetSlipIcon';\n\nconst StopReason = Loadable(\n\t{\n\t\tloader: () =>\n\t\t\timport(\n\t\t\t\t/* webpackChunkName: \"StopReason\" */ '../components/columns/StopReason.column'\n\t\t\t),\n\t},\n\t'./StopReason',\n);\n\nexport const TABLE_COLUMNS: ReadonlyArray<TableColumnConfig> = [\n\t{\n\t\tname: '',\n\t\tid: '$.claimed',\n\t\tcallback: () => {\n\t\t\treturn (\n\t\t\t\t<Tooltip content={trans({ label: 'Claimed' })}>\n\t\t\t\t\t<AwesomeIcon icon={faCheckCircle} className=\"text-positive\" />\n\t\t\t\t</Tooltip>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.bonusHistoryClaimed],\n\t},\n\t{\n\t\tname: '',\n\t\tid: '$.claimed',\n\t\tcallback: () => {\n\t\t\treturn (\n\t\t\t\t<Tooltip content={trans({ label: 'Expired' })}>\n\t\t\t\t\t<AwesomeIcon icon={faBan} className=\"text-negative\" />\n\t\t\t\t</Tooltip>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.bonusHistoryExpired],\n\t},\n\t{\n\t\tname: '',\n\t\tid: '$.game.name',\n\t\tcallback: (value, element) => {\n\t\t\tif (value === 'sports') {\n\t\t\t\treturn <BetSlipIcon list={element?.betslip_events} />;\n\t\t\t}\n\t\t\treturn <GameIcon flash={element.flash} name={value} />;\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.allBets,\n\t\t\tTABLE_ID.highRolls,\n\t\t\tTABLE_ID.myBets,\n\t\t\tTABLE_ID.sessions,\n\t\t],\n\t},\n\t{\n\t\tname: 'Game',\n\t\tid: '$.uuid',\n\t\tcallback: (value, element) => {\n\t\t\treturn !value ? (\n\t\t\t\t'-'\n\t\t\t) : (\n\t\t\t\t<BetIdSimple\n\t\t\t\t\tonlyName\n\t\t\t\t\ttype={'session'}\n\t\t\t\t\tgame={element?.game?.name || element?.game}\n\t\t\t\t\ttable\n\t\t\t\t\tid={String(value)}\n\t\t\t\t\tdata={element}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'User',\n\t\tid: '$.user.hidden_login',\n\t\ttypes: [TABLE_ID.affiliateCampaignUsers],\n\t},\n\t{\n\t\tname: 'Name',\n\t\tid: '$.name',\n\t\tcallback: (value, element) => {\n\t\t\treturn (\n\t\t\t\t<AffiliateCampaignNameContainer\n\t\t\t\t\tname={String(value)}\n\t\t\t\t\tid={element.id}\n\t\t\t\t\tdata={element}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateCampaigns, TABLE_ID.affiliateAnalytics],\n\t},\n\t{\n\t\tname: 'Type',\n\t\tid: '$.type_label',\n\t\tcallback: (value) => {\n\t\t\treturn (\n\t\t\t\t<span className=\"text-capitalize\">\n\t\t\t\t\t{trans({ label: String(value) })}\n\t\t\t\t</span>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.otherTransactions],\n\t},\n\t{\n\t\tname: 'Rank',\n\t\tid: '$.position',\n\t\tcallback: (value, element) => {\n\t\t\treturn <RankColumn value={Number(value)} element={element} />;\n\t\t},\n\t\ttypes: [TABLE_ID.raceResults, TABLE_ID.leaderboard],\n\t},\n\t{\n\t\tname: 'Game',\n\t\tid: '$.hash',\n\t\tcallback: (value, element) => {\n\t\t\treturn !value ? (\n\t\t\t\t'-'\n\t\t\t) : (\n\t\t\t\t<BetIdSimple\n\t\t\t\t\tonlyName\n\t\t\t\t\ttype={element.game?.name}\n\t\t\t\t\tid={String(value)}\n\t\t\t\t\ttable\n\t\t\t\t\tdata={element}\n\t\t\t\t\tgame={null}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.allBets, TABLE_ID.highRolls, TABLE_ID.myBets],\n\t},\n\t{\n\t\tname: 'Bet ID',\n\t\tid: '$.hash',\n\t\tcallback: (value, element) => {\n\t\t\treturn !value ? (\n\t\t\t\t'-'\n\t\t\t) : (\n\t\t\t\t<BetIdSimple\n\t\t\t\t\ttype={element.game?.name}\n\t\t\t\t\tid={String(value)}\n\t\t\t\t\ttable\n\t\t\t\t\tdata={element}\n\t\t\t\t\tgame={null}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.sessionHistory],\n\t},\n\t{\n\t\tname: 'User',\n\t\tid: '$.user.login',\n\t\tcallback: (value, element) => {\n\t\t\tif (!element.user) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<UserLogin\n\t\t\t\t\tfullWidth={true}\n\t\t\t\t\tuser={{\n\t\t\t\t\t\t...element.user,\n\t\t\t\t\t\tlogin: value,\n\t\t\t\t\t\tis_admin: null,\n\t\t\t\t\t\tis_moderator: null,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\tparseHidden: true,\n\t\ttypes: [TABLE_ID.allBets, TABLE_ID.highRolls, TABLE_ID.friendsIgnored],\n\t},\n\t{\n\t\tname: 'User',\n\t\tid: '$.user.login',\n\t\tcallback: (value, element) => {\n\t\t\tif (!element.user) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<UserLogin\n\t\t\t\t\tfullWidth={true}\n\t\t\t\t\tuser={{\n\t\t\t\t\t\t...element.user,\n\t\t\t\t\t\tlogin: value,\n\t\t\t\t\t\tis_admin: null,\n\t\t\t\t\t\tis_moderator: null,\n\t\t\t\t\t\trace_badge: null,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\tparseHidden: true,\n\t\ttypes: [TABLE_ID.raceResults, TABLE_ID.leaderboard],\n\t},\n\t{\n\t\tname: '',\n\t\tid: '$.state',\n\t\tcallback: (value) => {\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\tlet statusText = capitalize(value);\n\t\t\tlet icon = null;\n\t\t\tlet iconClass = '';\n\t\t\tif (value === 'accepted') {\n\t\t\t\ticon = faCheckCircle;\n\t\t\t\ticonClass = 'text-positive';\n\t\t\t}\n\t\t\tif (['processing', 'manual processing'].indexOf(String(value)) > -1) {\n\t\t\t\ticon = faHourglassHalf;\n\t\t\t\tstatusText = capitalize('processing');\n\t\t\t}\n\t\t\tif (value === 'declined') {\n\t\t\t\ticon = faBan;\n\t\t\t\ticonClass = 'text-negative';\n\t\t\t}\n\t\t\treturn icon ? (\n\t\t\t\t<Tooltip content={trans({ label: statusText })}>\n\t\t\t\t\t<AwesomeIcon icon={icon} className={iconClass} />\n\t\t\t\t</Tooltip>\n\t\t\t) : (\n\t\t\t\tstatusText\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.depositHistory, TABLE_ID.withdrawHistory],\n\t},\n\t{\n\t\tname: 'Date',\n\t\tid: '$.published_at',\n\t\tcallback: (value, element) => {\n\t\t\tif (!value && element.created_at) {\n\t\t\t\tvalue = roundNumber(getTimestamp(element.created_at) / 1000, 0);\n\t\t\t}\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn formatToDate(Number(value) * 1000);\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.depositHistory,\n\t\t\tTABLE_ID.withdrawHistory,\n\t\t\tTABLE_ID.affiliateCampaigns,\n\t\t\tTABLE_ID.affiliateCampaignUsers,\n\t\t],\n\t},\n\t{\n\t\tname: 'Date',\n\t\tid: '$.published_at',\n\t\tcallback: (value, element) => {\n\t\t\tif (!value && element.created_at) {\n\t\t\t\tvalue = roundNumber(getTimestamp(element.created_at) / 1000, 0);\n\t\t\t}\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn formatDate(Number(value) * 1000, 'YYYY-MM');\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateCampaignHistory],\n\t},\n\t{\n\t\tname: 'Position',\n\t\tid: '$.race_position',\n\t\tcallback: (value) => {\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<span className=\"flex-vertical-center\">\n\t\t\t\t\t<RaceBadge\n\t\t\t\t\t\tdata={{\n\t\t\t\t\t\t\tposition: value,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>{' '}\n\t\t\t\t\t{racePositionString(value)}\n\t\t\t\t</span>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.lastRacesResults],\n\t},\n\t{\n\t\tname: 'Prize',\n\t\tid: '$.prize',\n\t\tcallback: (value, element) => {\n\t\t\tif (!element.currency) {\n\t\t\t\telement.currency = 'btc';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<BetAmount\n\t\t\t\t\tisCurrencyInFront\n\t\t\t\t\tisProfitColor\n\t\t\t\t\tstate={element.state}\n\t\t\t\t\tvalue={Number(value)}\n\t\t\t\t\tcurrency={element.currency}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.lastRacesResults],\n\t},\n\t{\n\t\tname: 'Date',\n\t\tid: '$.published_at',\n\t\tcallback: (value, element) => {\n\t\t\tif (!value && element.created_at) {\n\t\t\t\tvalue = roundNumber(getTimestamp(element.created_at) / 1000, 0);\n\t\t\t}\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn formatDate(value * 1000, 'YYYY-MM-DD HH:mm');\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.lastRacesResults,\n\t\t\tTABLE_ID.affiliateCashoutHistory,\n\t\t\tTABLE_ID.vaultHistory,\n\t\t],\n\t},\n\t{\n\t\tname: 'Wagered',\n\t\tid: '$.waggered',\n\t\tcallback: (value, element) => {\n\t\t\treturn <WagerColumn value={value} element={element} />;\n\t\t},\n\t\ttypes: [TABLE_ID.raceResults],\n\t},\n\t{\n\t\tname: 'Profit',\n\t\tid: '$.profit',\n\t\tcallback: (value, el) => {\n\t\t\treturn (\n\t\t\t\t<StyledProfit $value={Number(value)} as={'div'}>\n\t\t\t\t\t<RoundedWithCurrency value={Number(value)} currency={el.currency} />\n\t\t\t\t</StyledProfit>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.leaderboard, TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'Wagered',\n\t\tid: '$.wagered',\n\t\tcallback: (value, el) => {\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<RoundedWithCurrency value={Number(value)} currency={el.currency} />\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.leaderboard, TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'Bets',\n\t\tid: '$.bets',\n\t\tcallback: (value) => <Rounded value={Number(value)} isInt={true} />,\n\t\ttypes: [TABLE_ID.leaderboard, TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'Tips dealt',\n\t\tid: '$.tips',\n\t\tcallback: (value, el) => {\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<RoundedWithCurrency value={Number(value)} currency={el.currency} />\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.leaderboard],\n\t},\n\t{\n\t\tname: 'Profit',\n\t\tid: '$.profit',\n\t\tcallback: (value, element) => (\n\t\t\t<BetAmount\n\t\t\t\tisCurrencyInFront\n\t\t\t\tisProfitColor\n\t\t\t\tstate={element.state}\n\t\t\t\tvalue={Number(value)}\n\t\t\t\tcurrency={element.currency}\n\t\t\t/>\n\t\t),\n\t\ttypes: [\n\t\t\tTABLE_ID.allBets,\n\t\t\tTABLE_ID.highRolls,\n\t\t\tTABLE_ID.myBets,\n\t\t\tTABLE_ID.sessionHistory,\n\t\t],\n\t},\n\t{\n\t\tname: 'Payout',\n\t\tid: '$.multiplier',\n\t\tcallback: (value, element) => {\n\t\t\treturn (\n\t\t\t\t<PayoutValueColumn game={element.game?.name} amount={Number(value)} />\n\t\t\t);\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.allBets,\n\t\t\tTABLE_ID.highRolls,\n\t\t\tTABLE_ID.myBets,\n\t\t\tTABLE_ID.sessionHistory,\n\t\t],\n\t},\n\t{\n\t\tname: 'Code',\n\t\tid: '$.code',\n\t\tcallback: (value) => <BonusCode noCopy code={value} />,\n\t\ttypes: [TABLE_ID.bonusHistoryExpired, TABLE_ID.bonusHistoryClaimed],\n\t},\n\t{\n\t\tname: 'Amount',\n\t\tid: '$.amount',\n\t\tcallback: (value, element) => {\n\t\t\tif (!Number(element?.amount)) {\n\t\t\t\treturn <span className=\"text-gold\">{trans({ label: 'Bonus' })}</span>;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<BetAmount\n\t\t\t\t\tisCurrencyInFront\n\t\t\t\t\tvalue={Number(value)}\n\t\t\t\t\tcurrency={element.currency}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.allBets, TABLE_ID.highRolls, TABLE_ID.myBets],\n\t},\n\t{\n\t\tname: 'Amount',\n\t\tid: '$.amount',\n\t\tcallback: (value, element) => {\n\t\t\treturn (\n\t\t\t\t<BetAmount\n\t\t\t\t\tisCurrencyInFront\n\t\t\t\t\tvalue={Number(value)}\n\t\t\t\t\tcurrency={element.currency}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.sessionHistory,\n\t\t\tTABLE_ID.otherTransactions,\n\t\t\tTABLE_ID.vaultHistory,\n\t\t\tTABLE_ID.bonusHistoryExpired,\n\t\t\tTABLE_ID.bonusHistoryClaimed,\n\t\t],\n\t},\n\t{\n\t\tname: 'Time',\n\t\tid: '$.published_at',\n\t\tcallback: (value, el) => {\n\t\t\tif (el.accounted_at) {\n\t\t\t\tvalue = el.accounted_at;\n\t\t\t}\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\tvalue = value * 1000;\n\t\t\treturn formatToTime(value, true);\n\t\t},\n\t\ttypes: [\n\t\t\tTABLE_ID.allBets,\n\t\t\tTABLE_ID.highRolls,\n\t\t\tTABLE_ID.myBets,\n\t\t\tTABLE_ID.sessionHistory,\n\t\t],\n\t},\n\t{\n\t\tname: 'Details',\n\t\tid: '$.list',\n\t\tcallback: (value: Array<any>) => {\n\t\t\tif (!value || !value.length) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<span>\n\t\t\t\t\t{value\n\t\t\t\t\t\t.sort((a, b) =>\n\t\t\t\t\t\t\tcurrenciesSettings.sortCurrency(a.currency, b.currency),\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.map((el) => (\n\t\t\t\t\t\t\t<BalanceAmount\n\t\t\t\t\t\t\t\tkey={el.currency}\n\t\t\t\t\t\t\t\tvalue={el.amount || 0}\n\t\t\t\t\t\t\t\tcurrency={el.currency}\n\t\t\t\t\t\t\t\tsimpleFormat\n\t\t\t\t\t\t\t\tcurrencyInFront\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t</span>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateCashoutHistory],\n\t},\n\t{\n\t\tname: 'Share',\n\t\tid: '$.commission_rate',\n\t\tcallback: (value: string) => {\n\t\t\treturn <PercentageRateColumn amount={Number(value)} />;\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateAnalytics],\n\t},\n\t{\n\t\tname: 'Hits',\n\t\tid: '$.global.hits',\n\t\ttypes: [TABLE_ID.affiliateAnalytics, TABLE_ID.affiliateCampaignHistory],\n\t},\n\t{\n\t\tname: 'Referrals',\n\t\tid: '$.global.referrals',\n\t\ttypes: [TABLE_ID.affiliateAnalytics, TABLE_ID.affiliateCampaignHistory],\n\t},\n\t{\n\t\tname: 'FTDs',\n\t\tid: '$.global.ftds',\n\t\ttypes: [\n\t\t\tTABLE_ID.affiliateAnalytics,\n\t\t\tTABLE_ID.affiliateAnalytics,\n\t\t\tTABLE_ID.affiliateCampaignHistory,\n\t\t],\n\t},\n\t{\n\t\tname: 'Deposits',\n\t\tid: '$.global.deposits',\n\t\ttypes: [\n\t\t\tTABLE_ID.affiliateAnalytics,\n\t\t\tTABLE_ID.affiliateCampaignHistory,\n\t\t\tTABLE_ID.affiliateCampaignUsers,\n\t\t\tTABLE_ID.affiliateAnalytics,\n\t\t],\n\t},\n\t{\n\t\tname: 'Wagered',\n\t\tid: '$.global.waggered',\n\t\tcallback: (value) => {\n\t\t\tif (!value || !value.length) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\tvalue = value.filter((el) => Number(el.amount));\n\t\t\tif (!value.length) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<span>\n\t\t\t\t\t{value\n\t\t\t\t\t\t.sort((a, b) =>\n\t\t\t\t\t\t\tcurrenciesSettings.sortCurrency(a.currency, b.currency),\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.map((el) => (\n\t\t\t\t\t\t\t<BalanceAmount\n\t\t\t\t\t\t\t\tkey={el.currency}\n\t\t\t\t\t\t\t\tvalue={el.amount || 0}\n\t\t\t\t\t\t\t\tcurrency={el.currency}\n\t\t\t\t\t\t\t\tsimpleFormat\n\t\t\t\t\t\t\t\tcurrencyInFront\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t</span>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateCampaignUsers],\n\t},\n\t{\n\t\tname: 'Amount',\n\t\tid: '$.amount',\n\t\tcallback: (value, element) => {\n\t\t\tvalue = Number(value);\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<TokenSymbol token={element.token || element.currency} />{' '}\n\t\t\t\t\t{value % 1 === 0 ? value.toFixed(4) : scientificToDecimal(value)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.depositHistory, TABLE_ID.withdrawHistory],\n\t},\n\t{\n\t\tname: 'Available',\n\t\tid: '$.available',\n\t\tcallback: (value, element) => (\n\t\t\t<BalanceAmount\n\t\t\t\tcolor\n\t\t\t\tcolorDecimals={config.decimals.bet}\n\t\t\t\tvalue={value}\n\t\t\t\tcurrency={element.currency}\n\t\t\t\tfullDecimals={12}\n\t\t\t\tcurrencyInFront={true}\n\t\t\t/>\n\t\t),\n\t\ttypes: [TABLE_ID.affiliateFunds],\n\t},\n\t{\n\t\tname: 'Available',\n\t\tid: '$.available',\n\t\tcallback: (value, element) => {\n\t\t\tvalue = Number(value);\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<CurrencySymbol currency={element.currency} />{' '}\n\t\t\t\t\t{value % 1 === 0 ? value.toFixed(4) : scientificToDecimal(value)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateAnalytics],\n\t},\n\t{\n\t\tname: 'Cashed out',\n\t\tid: '$.withdrawn',\n\t\tcallback: (value, element) => (\n\t\t\t<BalanceAmount\n\t\t\t\tvalue={value}\n\t\t\t\tcurrency={element.currency}\n\t\t\t\tfullDecimals={12}\n\t\t\t\tcurrencyInFront={true}\n\t\t\t/>\n\t\t),\n\t\ttypes: [TABLE_ID.affiliateFunds],\n\t},\n\t{\n\t\tname: 'Total Commission',\n\t\tid: '$.total_commission',\n\t\tcallback: (value, element) => (\n\t\t\t<BalanceAmount\n\t\t\t\tvalue={value}\n\t\t\t\tcurrency={element.currency}\n\t\t\t\tfullDecimals={12}\n\t\t\t\tcurrencyInFront={true}\n\t\t\t/>\n\t\t),\n\t\ttypes: [TABLE_ID.affiliateFunds],\n\t},\n\t{\n\t\tname: 'Commission',\n\t\tid: '$.global.commission_normalized',\n\t\tcallback: (value, element) => {\n\t\t\tvalue = Number(value);\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div>\n\t\t\t\t\t<CurrencySymbol currency={element.currency || 'usd'} />{' '}\n\t\t\t\t\t{value % 1 === 0 ? value.toFixed(4) : scientificToDecimal(value)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.affiliateAnalytics, TABLE_ID.affiliateCampaigns],\n\t},\n\t{\n\t\tname: 'TxID',\n\t\tid: '$.hash',\n\t\t// @ts-expect-error invalid return type\n\t\tcallback: (value: string, element, data) => {\n\t\t\tif (!value || value === element.uuid) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\tconst url = getExplorerUrl({\n\t\t\t\tnetwork: element.network,\n\t\t\t\ttxid: value,\n\t\t\t\tdate: element.published_at,\n\t\t\t\tobject: { element, tableId: 'deposit - hash', data },\n\t\t\t});\n\t\t\tif (!url) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<Redirect href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n\t\t\t\t\t{value}\n\t\t\t\t</Redirect>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.depositHistory],\n\t},\n\t{\n\t\tname: 'TxID',\n\t\tid: '$.txid',\n\t\t// @ts-expect-error invalid return type\n\t\tcallback: (value: string, element, data) => {\n\t\t\tif (!value || value === element.uuid) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\tconst url = getExplorerUrl({\n\t\t\t\tnetwork: element.network,\n\t\t\t\ttxid: value,\n\t\t\t\tdate: element.published_at,\n\t\t\t\tobject: { element, tableId: 'withdraw - txid', data },\n\t\t\t});\n\t\t\tif (!url) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<Redirect href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n\t\t\t\t\t{value}\n\t\t\t\t</Redirect>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.withdrawHistory],\n\t},\n\t{\n\t\tname: 'Address',\n\t\tid: '$.address',\n\t\tcallback: (value) => {\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<InputWrapperContainer\n\t\t\t\t\tname={'address'}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tisCopy={true}\n\t\t\t\t\tisDisabled={true}\n\t\t\t\t/>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.withdrawHistory],\n\t},\n\t{\n\t\tname: 'Prize',\n\t\tid: '$.prize',\n\t\tcallback: (value, element) => {\n\t\t\treturn <PrizeColumn value={Number(value)} element={element} />;\n\t\t},\n\t\ttypes: [TABLE_ID.raceResults],\n\t},\n\t{\n\t\tname: 'Stop reason',\n\t\tid: '$.stop_reason',\n\t\tcallback: (value) => <StopReason value={value} />,\n\t\ttypes: [TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'Date',\n\t\tid: '$.published_at',\n\t\tcallback: (value, element) => {\n\t\t\tif (!value && element.created_at) {\n\t\t\t\tvalue = roundNumber(getTimestamp(element.created_at) / 1000, 0);\n\t\t\t}\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn formatToFullDate(value * 1000);\n\t\t},\n\t\ttypes: [TABLE_ID.otherTransactions, TABLE_ID.sessions],\n\t},\n\t{\n\t\tname: 'Claimed at',\n\t\tid: '$.claimed_at',\n\t\tcallback: (value) => {\n\t\t\tif (!value) {\n\t\t\t\treturn '-';\n\t\t\t}\n\t\t\treturn formatDate(getTimestamp(value), 'YYYY-MM-DD HH:mm');\n\t\t},\n\t\ttypes: [TABLE_ID.bonusHistoryClaimed],\n\t},\n\t{\n\t\tname: 'Expired at',\n\t\tid: '$.expire_at',\n\t\tcallback: (value) => {\n\t\t\treturn (\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"text-style-sm-regular\"\n\t\t\t\t\tstyle={{ color: 'var(--color-dark-200)' }}\n\t\t\t\t>\n\t\t\t\t\t{value ? formatToFullDateNoSeconds(getTimestamp(value)) : '-'}\n\t\t\t\t</span>\n\t\t\t);\n\t\t},\n\t\ttypes: [TABLE_ID.bonusHistoryExpired],\n\t},\n\t{\n\t\tname: 'Action',\n\t\tid: '$.state',\n\t\tcallback: (value, element) => {\n\t\t\treturn <UserActionsContainer user={element.user} status={value} />;\n\t\t},\n\t\ttypes: [TABLE_ID.friendsIgnored],\n\t},\n];\n","import React from 'react';\nimport JSONPath from 'JSONPath';\nimport { HiddenData } from 'src/ui/components/hidden-data';\nimport { Trans } from '@legacyApp/client/modules/translation/translate';\nimport { NEXT_CONFIG } from '@common/constants/config/nextConfig';\nimport { sentryError } from '@legacyApp/client/modules/app/sentryService';\nimport { HIDDEN_USER } from '@common/constants/user/HIDDEN_USER';\nimport { TABLE_COLUMNS } from './constants/columns';\n\nclass ColumnsClass {\n\tconstructor() {\n\t\tthis.tablesColumns = {};\n\t\tthis.columns = TABLE_COLUMNS;\n\t}\n\n\tparseJsonPathToColumnId(id) {\n\t\treturn id.replace('$.', '').split('.').join('_');\n\t}\n\n\thandleTableValue(col, el, props) {\n\t\tlet value = JSONPath({\n\t\t\tpath: col.id,\n\t\t\tjson: el,\n\t\t})[0];\n\t\tif (value === HIDDEN_USER && !col.parseHidden) {\n\t\t\treturn <HiddenData />;\n\t\t}\n\t\tif (col.callback) {\n\t\t\tvalue = col.callback(value, el, props);\n\t\t}\n\t\tif (value === undefined || value === null) {\n\t\t\tif (col.id === '$.game.name') {\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tif (NEXT_CONFIG.DEV) {\n\t\t\t\t\t// console.log('Table column game logo error',{col, el, value});\n\t\t\t\t\talert('Table column game logo error');\n\t\t\t\t}\n\t\t\t\tsentryError(new Error('Table column game logo error'), {\n\t\t\t\t\tcol,\n\t\t\t\t\tel,\n\t\t\t\t\tvalue,\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn '-';\n\t\t}\n\t\treturn value;\n\t}\n\n\tgetColumns(type) {\n\t\tif (!this.tablesColumns[type]) {\n\t\t\tthis.tablesColumns[type] = this.columns.filter(\n\t\t\t\t(el) => el.types && el.types.indexOf(type) > -1,\n\t\t\t);\n\t\t}\n\t\treturn this.tablesColumns[type];\n\t}\n\n\tgetRowDetails = (id) => {\n\t\tswitch (id) {\n\t\t\tdefault: {\n\t\t\t\treturn (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<Trans label={'No details'} />\n\t\t\t\t\t</span>\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t};\n}\n\nexport const columnsService = new ColumnsClass();\n","import React, { FC } from 'react';\nimport {\n\tPayoutValue,\n\tPayoutValueProps,\n} from '@common/components/number/PayoutValue';\nimport { GameType } from '../../../games/Game/constants/availableGames';\n\nexport const PayoutValueColumn: FC<{\n\tamount: number;\n\tgame?: GameType;\n\tminDecimals?: PayoutValueProps['minDecimals'];\n}> = ({ amount, game, minDecimals }) => {\n\tif (!Number(amount)) {\n\t\treturn <>{'-'}</>;\n\t}\n\treturn (\n\t\t<PayoutValue game={game} value={Number(amount)} minDecimals={minDecimals} />\n\t);\n};\n","import { FC } from 'react';\n\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\n\nexport const PercentageRateColumn: FC<{\n\tamount: number;\n}> = ({ amount }) => {\n\treturn <span>{roundNumber(amount * 100, 2) + '%'}</span>;\n};\n","import { FC } from 'react';\nimport { Button, CSSClassNameButton } from '@ui/button';\nimport styled from 'styled-components';\nimport { textGradient } from '@legacyApp/client/modules/style/mixins';\nimport { ButtonStyleType } from '@uiTypes/ButtonStyleType';\nimport { Copy } from '@icons/ui/copy';\nimport { CopyToClipboard } from '@common/components/CopyToClipboard';\n\nexport const BonusCode: FC<{\n\tcode: string;\n\tnoCopy?: boolean;\n}> = ({ code, noCopy }) => {\n\tconst content = (\n\t\t<BonusCodeStyled $noCopy={noCopy}>\n\t\t\t<div>{code}</div>\n\n\t\t\t{!noCopy && (\n\t\t\t\t<Button\n\t\t\t\t\tstyleType={ButtonStyleType.CLEAR}\n\t\t\t\t\tname=\"input-copy-to-clipboard\"\n\t\t\t\t\ticonBefore={\n\t\t\t\t\t\t<Copy\n\t\t\t\t\t\t\tfill={'#A66BF3'}\n\t\t\t\t\t\t\tfillMiddle={'#49B2C9'}\n\t\t\t\t\t\t\tfillStop={'#4956C9'}\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</BonusCodeStyled>\n\t);\n\n\tif (noCopy) {\n\t\treturn content;\n\t}\n\n\treturn <CopyToClipboard value={code}>{content}</CopyToClipboard>;\n};\n\nexport const BonusCodeStyled = styled.div<{\n\t$noCopy?: boolean;\n}>`\n\tbackground: linear-gradient(\n\t\t93deg,\n\t\t#f7b757 1%,\n\t\t#f8c163 22.23%,\n\t\t#fbd591 36.73%,\n\t\t#f9c568 47.81%,\n\t\t#f9c568 73.2%\n\t);\n\tborder: 1px inset rgba(255, 255, 255, 0.15);\n\tborder-radius: 4px;\n\tcursor: ${(props) => (props.$noCopy ? 'unset' : 'pointer')};\n\tdisplay: inline-flex !important;\n\tpadding: 8px ${(props) => (props.$noCopy ? '8' : '32')}px 8px 8px;\n\tposition: relative;\n\twidth: auto !important;\n\n\t> div {\n\t\t${textGradient('var(--color-misc-rainbow)', 'rgb(166, 107, 243)')};\n\t\tfont-size: 12px;\n\t}\n\n\t@media (min-width: ${(props) => props.theme.media.minWidthTablet}) {\n\t\t> div {\n\t\t\tfont-size: 14px;\n\t\t}\n\t}\n\n\t.${CSSClassNameButton} {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 50%;\n\t\ttransform: translateY(-50%);\n\t}\n`;\n"],"names":["CopyToClipboard","value","children","dispatch","useAppDispatch","_handleCopied","useCallback","showAlert","trans","label","options","text","onCopy","resultMargin","BetIdStyle","styled","className","props","$onlyName","css","box","boxNoHeight","theme","colors","inputBackgroundSolid","session","media","maxWidthTablet","boxStyle","BoxTitleStyle","StyledUserName","StyledOnlineIcon","BoxTitleDetailsStyle","NoResultsElement","noResultsText","classic","as","Table","tableRef","useRef","tbodyRef","data","fulfilled","noScroll","tableStyle","id","sortProps","headCellAdd","headOnClick","bodyCellAdd","bodyOnClick","columns","rowMargin","rowCompareKeys","tableCompareKeys","loadingId","additionalData","highlightRow","rowClass","Tag","table","thead","tbody","tr","isNoResults","length","TableClass","StyledTableNoScroll","StyledTable","getRowKey","el","transactionService","ref","style","name","$noResults","cellAdd","onClick","$rowMargin","$length","map","index","compareKeys","isAdditional","isData","message","TableLoadingRow","Component","StyledTableLoader","StyledTableRow","module","TableRow","useStateEffect","classnames","highlight","$rowIndex","$isAdditional","TableColumn","column","prevColumn","usePrevious","a","b","transactionsService","prevData","getColumn","columnsService","useState","Column","setColumn","useEffect","SortAdd","indexOf","by","direction","DIRECTION","HeadCellAdd","propsAdd","isFunction","CellContent","TableRowContent","columns_","columnClass","key","onClick_","col","TagTd","AmountWrapper","currency","isProfitColor","isCurrencyInFront","state","$state","$disable","$value","content","mathService","undefined","config","BetRounded","minValueToShortenThousands","precise","isNegative","absolute","Math","abs","parseFloat","toFixed","precision","countPrecision","SplitValue","amount","roundNumber","decimals","BetAmount","PayoutValue","game","minDecimals","game_config","payoutDecimal","roundedNumber","isInt","_value","String","Rounded","minPretty","value_","_minPretty","params","shortFormat","shortFormatPrecision","shortFormatMinValue","RoundedWithCurrency","small","replace","getSplitValue","StyledSplitValue","StyledSmallValue","racePositionString","position","AffiliateCampaignName","openModal","MODAL_ID","Redirect","this","React","enhanceComponent","Explorers","AffiliateCampaignNameContainer","connect","getExplorerUrl","network","txid","date","object","explorer","getTimestamp","day","NEXT_CONFIG","sentryError","Error","PrizeColumn","Loadable","loader","WagerColumn","RankColumn","BetIdString","withGameName","onlyName","device","useAppSelector","app","deviceType","game_details","checkMobileType","split","toUpperCase","type","openCallback","useOpenBetModal","StopReason","TABLE_COLUMNS","callback","AwesomeIcon","icon","faCheckCircle","types","TABLE_ID","faBan","element","BetSlipIcon","B","list","betslip_events","flash","Number","user","UserLogin","fullWidth","login","is_admin","is_moderator","parseHidden","race_badge","statusText","capitalize","iconClass","faHourglassHalf","created_at","formatToDate","formatDate","RaceBadge","StyledProfit","BonusCode","noCopy","code","accounted_at","formatToTime","sort","currenciesSettings","simpleFormat","currencyInFront","filter","token","scientificToDecimal","color","colorDecimals","fullDecimals","uuid","url","published_at","tableId","href","rel","target","isCopy","isDisabled","formatToFullDate","formatToFullDateNoSeconds","status","ColumnsClass","tablesColumns","join","JSONPath","path","json","HIDDEN_USER","alert","PayoutValueColumn","PercentageRateColumn","BonusCodeStyled","$noCopy","styleType","ButtonStyleType","iconBefore","Copy","fill","fillMiddle","fillStop","textGradient","minWidthTablet","CSSClassNameButton"],"mappings":";;6LAMaA,EAIT,SAAC,GAAwB,IAAtBC,EAAsB,EAAtBA,MAAOC,EAAe,EAAfA,SACPC,GAAWC,EAAAA,EAAAA,KAEXC,GAAgBC,EAAAA,EAAAA,cACrB,SAACL,GACAE,GACCI,EAAAA,EAAAA,IACC,WACAC,EAAAA,EAAAA,IAAM,CACLC,MAAO,sBACPC,QAAS,CACRT,MAAAA,SAML,CAACE,IAGF,OACC,SAAC,kBAAD,CAAkBQ,KAAMV,EAAOW,OAAQP,EAAvC,SACEH,M,+KCxBSW,EAAe,MA6BfC,EAAaC,EAAAA,GAAAA,IAAAA,MAAiB,CAC1CC,UAAW,WADW,6DAAGD,CAAH,6BAGpB,SAACE,GAAD,OACDA,EAAM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