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C9B,YAAakI,EACbX,MAAOA,EACPxD,WAAYA,CACd,EAAG6D,GACL,+HC9HO,SAASU,EAAgB5L,CAIT,KAJS,CAC9B6L,kBAAAA,CAAiB,CACjBC,QAAAA,CAAO,CACPC,YAAAA,CAAW,CACU,CAJS/L,EAKxB,CAAEiD,EAAAA,CAAC,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,UAI7B,MACE,GAAA8I,EAAA5I,IAAA,EAACC,MAAAA,CACCC,UAAW,GAAuBuI,MAAAA,CAApBtI,IAAAA,SAAAA,CAAiB,KAAqEuI,MAAAA,CAAlED,EAAoBtI,GAAAA,CAAAA,8BAAAA,CAAwC,GAAG,KAAgDwI,MAAAA,CAA7CD,EAAUvI,GAAAA,CAAAA,mBAAAA,CAA6B,GAAG,KAAiDO,MAAA,CAA9CiI,EAAcxI,GAAAA,CAAAA,mBAAAA,CAA6B,cAE5L,GAAAyI,EAAAxI,GAAA,EAACyI,MAAAA,CACC3I,UAAWC,IAAAA,iBAAAA,CACXM,IAAK,GAA0CC,MAAA,CAAvCoI,EAAAA,CAAeA,CAACC,GAAG,CAACC,kBAAkB,CAAC,6BAEjD,GAAAJ,EAAA5I,IAAA,EAACC,MAAAA,CAAIC,UAAWC,IAAAA,kBAAAA,WACd,GAAAyI,EAAAxI,GAAA,EAAC6I,KAAAA,CAAG/I,UAAWC,IAAAA,gBAAAA,UAA0BN,EAAE,mBAC3C,GAAA+I,EAAAxI,GAAA,EAAC8I,IAAAA,CAAEhJ,UAAWC,IAAAA,sBAAAA,UAAgCN,EAAE,wBAIxD,qBClDAsJ,EAAAC,OAAA,EAAkB,4XCAlBD,EAAAC,OAAA,EAAkB,gKCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/api/bonus-reward-type/queries/useBonusRewardTypesAggregators/service.ts","webpack://_N_E/./src/api/bonus-reward-type/queries/useBonusRewardTypesAggregators/index.ts","webpack://_N_E/./src/api/bonus-reward-type/queries/index.ts","webpack://_N_E/./src/components/core/Table/CustomCells/BonusRewardTypeCell/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/MultiExchangeCell/index.tsx","webpack://_N_E/./src/constants/bonusRewardTypeColumns.tsx","webpack://_N_E/./src/components/Bonus/BonusOverviewModal/Content/index.tsx","webpack://_N_E/./src/components/Bonus/BonusOverviewModal/index.tsx","webpack://_N_E/./src/hooks/multi-exchange-ratio/useMultiExchangeRatio/index.tsx","webpack://_N_E/../../node_modules/@mui/material/Table/TableContext.js","webpack://_N_E/../../node_modules/@mui/material/Table/Tablelvl2Context.js","webpack://_N_E/../../node_modules/@mui/material/TableCell/tableCellClasses.js","webpack://_N_E/../../node_modules/@mui/material/TableCell/TableCell.js","webpack://_N_E/../../packages/common/src/components/NoDataComponent/index.tsx","webpack://_N_E/./src/components/Bonus/BonusOverviewModal/Content/styles.module.scss","webpack://_N_E/./src/components/core/Table/CustomCells/BonusRewardTypeCell/styles.module.scss","webpack://_N_E/../../packages/common/src/components/NoDataComponent/styles.module.scss"],"sourcesContent":["import { QueryFunctionContext } from '@tanstack/react-query';\nimport { AxiosResponse } from 'axios';\nimport baseAPI from '@/api';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { UseBonusRewardTypesAggregatorsQueryKeyProps } from './props';\nimport { UserBonusRewardTypeAggregator } from '@/models/user-bonus-reward-type-aggregator';\n\nexport async function fetchBonusRewardTypesAggregators({\n queryKey,\n}: QueryFunctionContext) {\n const { page, limit, rewardId } = queryKey[1];\n\n const response: AxiosResponse<\n PaginatedResponse\n > = await baseAPI.get>(\n '/bonus-reward-types/aggregators',\n {\n params: {\n page,\n limit,\n rewardId,\n },\n },\n );\n\n return response.data;\n}\n","import { useMemo, useState } from 'react';\nimport {\n UseBonusRewardTypesAggregatorsProps,\n UseBonusRewardTypesAggregatorsQueryKeyProps,\n} from './props';\nimport { BonusRewardTypesQueryKeys } from '../../queryKeys';\nimport { useQuery } from '@tanstack/react-query';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { fetchBonusRewardTypesAggregators } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { PaginatedRequest } from '@/models/pagination/paginated-request';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\nimport { getMoneyOrAmount } from '@starsoft/common/utils';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { UserBonusRewardTypeAggregator } from '@/models/user-bonus-reward-type-aggregator';\nimport { useMultiExchangeRatio } from '@/hooks/multi-exchange-ratio/useMultiExchangeRatio';\nimport { BonusRewardTypeDto } from '@/services/dto/bonus-reward-types';\n\nexport function useBonusRewardTypesAggregators(\n options?: UseBonusRewardTypesAggregatorsProps,\n) {\n const { rewardId } = options ?? {};\n\n const [page, setPage] = useState(1);\n const { getConvertedExchangeRatio } = useMultiExchangeRatio();\n\n const filter: BonusRewardTypeDto = {\n limit: 50,\n page,\n rewardId,\n };\n\n const queryKey: UseBonusRewardTypesAggregatorsQueryKeyProps = [\n BonusRewardTypesQueryKeys.Aggregators,\n filter,\n ];\n\n const { data, isPending, error, refetch } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseBonusRewardTypesAggregatorsQueryKeyProps\n >({\n queryKey,\n queryFn: fetchBonusRewardTypesAggregators,\n staleTime: 5 * 1000,\n });\n\n const { fetchNextPage, fetchPreviousPage, setCurrentPage } =\n usePaginatedQuery({\n data,\n page,\n setPage,\n queryParams: {\n rewardId,\n },\n });\n\n const parsedData = useMemo(() => data?.data.flatMap(v => v), [data]);\n\n const totalBonus: Decimal = useMemo(\n () =>\n parsedData?.reduce(\n (prev, bonus) => {\n const convertedAmount = getConvertedExchangeRatio(bonus.amount);\n\n if (convertedAmount.scale != prev.scale) {\n prev = prev\n .copyWith({ options: { scale: convertedAmount.scale } })\n .add(convertedAmount)\n .copyWith({ options: { scale: prev.scale } });\n } else {\n prev.add(convertedAmount);\n }\n\n return prev;\n },\n new Decimal(0, { scale: 2 }),\n ),\n [parsedData, getConvertedExchangeRatio, rewardId],\n );\n\n return {\n bonusRewardTypesStatistics: parsedData,\n totalBonus,\n isLoadingBonusRewardTypesStatistics: isPending,\n errorBonusRewardTypesStatistics: error,\n refetchBonusRewardTypesStatistics: refetch,\n fetchNextPage,\n fetchPreviousPage,\n setCurrentPage,\n };\n}\n","export { useBonusRewardTypesAggregators } from './useBonusRewardTypesAggregators';\n","import { Image } from '@starsoft/common/components';\nimport { TableBonusRewardTypeCellProps } from './props';\nimport styles from './styles.module.scss';\nimport useTranslation from 'next-translate/useTranslation';\n\nexport default function TableBonusRewardTypeCell({\n rewardType,\n}: TableBonusRewardTypeCellProps) {\n const { t } = useTranslation('bonus');\n\n return (\n
\n \n {t(`${rewardType?.id}_bonus_reward_type`)}\n
\n );\n}\n","import { useMultiExchangeRatio } from '@/hooks/multi-exchange-ratio/useMultiExchangeRatio';\nimport { MultiExchangeCellProps } from './props';\nimport { WalletService } from '@starsoft/common/services';\n\nexport default function MultiExchangeCell({ row }: MultiExchangeCellProps) {\n const { getConvertedExchangeRatio, currentCoin } = useMultiExchangeRatio();\n\n const convertedAmount = getConvertedExchangeRatio(row);\n\n return (\n <>\n {WalletService.maskCurrency({\n amount: convertedAmount,\n coin: currentCoin,\n })}\n \n );\n}\n","import { TableGridColumn } from '@starsoft/common/src/components/TableGrid/props';\nimport TableBonusRewardTypeCell from '@/components/core/Table/CustomCells/BonusRewardTypeCell';\nimport { UserBonusRewardTypeAggregator } from '@/models/user-bonus-reward-type-aggregator';\nimport MultiExchangeCell from '@/components/core/Table/CustomCells/MultiExchangeCell';\nexport const bonusRewardTypeColumns: TableGridColumn[] =\n [\n {\n field: 'type.name',\n headerName: 'bonus_type',\n renderCell: bonusRewardType => (\n \n ),\n },\n {\n field: 'amount',\n headerName: '',\n alignEnd: true,\n renderCell: row => ,\n },\n ];\n","import { useBonusRewardTypesAggregators } from '@/api/bonus-reward-type/queries';\nimport styles from './styles.module.scss';\nimport { bonusRewardTypeColumns } from '@/constants/bonusRewardTypeColumns';\nimport {\n ErrorCard,\n LottieOrImage,\n TableGrid,\n} from '@starsoft/common/components';\nimport { useLottiePlayer } from '@starsoft/common/hooks';\nimport useTranslation from 'next-translate/useTranslation';\n\nexport default function BonusOverviewModalContent() {\n const { t } = useTranslation('bonus');\n\n const playerLottie = useLottiePlayer({\n path: '/gift-box-success.json',\n });\n const {\n bonusRewardTypesStatistics,\n isLoadingBonusRewardTypesStatistics,\n errorBonusRewardTypesStatistics,\n refetchBonusRewardTypesStatistics,\n } = useBonusRewardTypesAggregators();\n\n if (errorBonusRewardTypesStatistics) {\n return (\n
\n \n
\n );\n }\n\n return (\n
\n \n
\n
\n {t('bonus_overview_title')}\n
\n
\n {t('bonus_overview_description')}\n
\n
\n \n
\n );\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { ModalLayout } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport BonusOverviewModalContent from './Content';\nimport { ModalWithVersion } from '@/components/core/Modal/WithVersion';\nimport useModalVersion from '@/hooks/modals/useModalVersion';\n\nexport default function BonusOverviewModal() {\n const { t } = useTranslation('bonus');\n\n return (\n \n \n \n );\n}\n","import { useWalletsMe } from '@/api/wallets';\nimport { MultiExchangeRateSnapshot } from '@/models/multi-exchange-rate-snapshots';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { useCallback } from 'react';\n\nexport function useMultiExchangeRatio() {\n const { wallet } = useWalletsMe();\n const currentCoin = wallet?.currentAccount?.coin;\n\n const getConvertedExchangeRatio = useCallback(\n (exchange: MultiExchangeRateSnapshot) => {\n if (!currentCoin || !exchange.convertedAmounts) {\n return new Decimal(0, { scale: 2 });\n }\n\n const amount = exchange.convertedAmounts[currentCoin.code];\n\n return amount;\n },\n [currentCoin],\n );\n\n return {\n getConvertedExchangeRatio,\n currentCoin,\n };\n}\n","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst TableContext = /*#__PURE__*/React.createContext();\nif (process.env.NODE_ENV !== 'production') {\n TableContext.displayName = 'TableContext';\n}\nexport default TableContext;","import * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst Tablelvl2Context = /*#__PURE__*/React.createContext();\nif (process.env.NODE_ENV !== 'production') {\n Tablelvl2Context.displayName = 'Tablelvl2Context';\n}\nexport default Tablelvl2Context;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableCellUtilityClass(slot) {\n return generateUtilityClass('MuiTableCell', slot);\n}\nconst tableCellClasses = generateUtilityClasses('MuiTableCell', ['root', 'head', 'body', 'footer', 'sizeSmall', 'sizeMedium', 'paddingCheckbox', 'paddingNone', 'alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'stickyHeader']);\nexport default tableCellClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"align\", \"className\", \"component\", \"padding\", \"scope\", \"size\", \"sortDirection\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, alpha, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport TableContext from '../Table/TableContext';\nimport Tablelvl2Context from '../Table/Tablelvl2Context';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport tableCellClasses, { getTableCellUtilityClass } from './tableCellClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n align,\n padding,\n size,\n stickyHeader\n } = ownerState;\n const slots = {\n root: ['root', variant, stickyHeader && 'stickyHeader', align !== 'inherit' && `align${capitalize(align)}`, padding !== 'normal' && `padding${capitalize(padding)}`, `size${capitalize(size)}`]\n };\n return composeClasses(slots, getTableCellUtilityClass, classes);\n};\nconst TableCellRoot = styled('td', {\n name: 'MuiTableCell',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.padding !== 'normal' && styles[`padding${capitalize(ownerState.padding)}`], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.stickyHeader && styles.stickyHeader];\n }\n})(({\n theme,\n ownerState\n}) => _extends({}, theme.typography.body2, {\n display: 'table-cell',\n verticalAlign: 'inherit',\n // Workaround for a rendering bug with spanned columns in Chrome 62.0.\n // Removes the alpha (sets it to 1), and lightens or darkens the theme color.\n borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid\n ${theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)}`,\n textAlign: 'left',\n padding: 16\n}, ownerState.variant === 'head' && {\n color: (theme.vars || theme).palette.text.primary,\n lineHeight: theme.typography.pxToRem(24),\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.variant === 'body' && {\n color: (theme.vars || theme).palette.text.primary\n}, ownerState.variant === 'footer' && {\n color: (theme.vars || theme).palette.text.secondary,\n lineHeight: theme.typography.pxToRem(21),\n fontSize: theme.typography.pxToRem(12)\n}, ownerState.size === 'small' && {\n padding: '6px 16px',\n [`&.${tableCellClasses.paddingCheckbox}`]: {\n width: 24,\n // prevent the checkbox column from growing\n padding: '0 12px 0 16px',\n '& > *': {\n padding: 0\n }\n }\n}, ownerState.padding === 'checkbox' && {\n width: 48,\n // prevent the checkbox column from growing\n padding: '0 0 0 4px'\n}, ownerState.padding === 'none' && {\n padding: 0\n}, ownerState.align === 'left' && {\n textAlign: 'left'\n}, ownerState.align === 'center' && {\n textAlign: 'center'\n}, ownerState.align === 'right' && {\n textAlign: 'right',\n flexDirection: 'row-reverse'\n}, ownerState.align === 'justify' && {\n textAlign: 'justify'\n}, ownerState.stickyHeader && {\n position: 'sticky',\n top: 0,\n zIndex: 2,\n backgroundColor: (theme.vars || theme).palette.background.default\n}));\n\n/**\n * The component renders a `` element when the parent context is a header\n * or otherwise a `` element.\n */\nconst TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableCell'\n });\n const {\n align = 'inherit',\n className,\n component: componentProp,\n padding: paddingProp,\n scope: scopeProp,\n size: sizeProp,\n sortDirection,\n variant: variantProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const table = React.useContext(TableContext);\n const tablelvl2 = React.useContext(Tablelvl2Context);\n const isHeadCell = tablelvl2 && tablelvl2.variant === 'head';\n let component;\n if (componentProp) {\n component = componentProp;\n } else {\n component = isHeadCell ? 'th' : 'td';\n }\n let scope = scopeProp;\n // scope is not a valid attribute for elements.\n // source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element\n if (component === 'td') {\n scope = undefined;\n } else if (!scope && isHeadCell) {\n scope = 'col';\n }\n const variant = variantProp || tablelvl2 && tablelvl2.variant;\n const ownerState = _extends({}, props, {\n align,\n component,\n padding: paddingProp || (table && table.padding ? table.padding : 'normal'),\n size: sizeProp || (table && table.size ? table.size : 'medium'),\n sortDirection,\n stickyHeader: variant === 'head' && table && table.stickyHeader,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n let ariaSort = null;\n if (sortDirection) {\n ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending';\n }\n return /*#__PURE__*/_jsx(TableCellRoot, _extends({\n as: component,\n ref: ref,\n className: clsx(classes.root, className),\n \"aria-sort\": ariaSort,\n scope: scope,\n ownerState: ownerState\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? TableCell.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the text-align on the table cell content.\n *\n * Monetary or generally number fields **should be right aligned** as that allows\n * you to add them up quickly in your head without having to worry about decimals.\n * @default 'inherit'\n */\n align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Sets the padding applied to the cell.\n * The prop defaults to the value (`'default'`) inherited from the parent Table component.\n */\n padding: PropTypes.oneOf(['checkbox', 'none', 'normal']),\n /**\n * Set scope attribute.\n */\n scope: PropTypes.string,\n /**\n * Specify the size of the cell.\n * The prop defaults to the value (`'medium'`) inherited from the parent Table component.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * Set aria-sort direction.\n */\n sortDirection: PropTypes.oneOf(['asc', 'desc', false]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Specify the cell type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])\n} : void 0;\nexport default TableCell;","import { useTranslation } from '@starsoft/common/hooks';\nimport { SettingsService } from '@starsoft/common/services';\nimport { NoDataComponentProps } from './props';\nimport styles from './styles.module.scss';\n\n/**\n * NoDataComponent\n * A component that displays a \"no data\" message with an animated Lottie illustration.\n * Uses translations for text content and supports different styling variants.\n *\n * @component\n * @param {Object} props - Component props\n * @param {boolean} [props.isSecondaryStyles] - Whether to use secondary styling variant\n * @param {boolean} [props.isSmall] - Whether to use smaller size variant\n * @param {boolean} [props.tableStyles] - Whether to use table-specific styling\n * @returns {JSX.Element} The rendered no data message with animation\n *\n * @example\n * // Basic usage\n * \n *\n * // With styling variants\n * \n */\nexport function NoDataComponent({\n isSecondaryStyles,\n isSmall,\n tableStyles,\n}: NoDataComponentProps) {\n const { t } = useTranslation('common');\n\n // Initialize Lottie animation player with empty search animation\n\n return (\n \n \n
\n
{t('no_data_title')}
\n

{t('no_data_found')}

\n
\n \n );\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__MSgjK\",\"container__lottie\":\"styles_container__lottie__g6Osq\",\"container__image\":\"styles_container__image__ZsAEo\",\"container__wrapper\":\"styles_container__wrapper__f3Hdp\",\"container__title\":\"styles_container__title__zRq6P\",\"container__description\":\"styles_container__description__0aoow\",\"skeleton-animation\":\"styles_skeleton-animation__ncKHQ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__Rk8w3\",\"container__icon\":\"styles_container__icon__erQ0v\",\"skeleton-animation\":\"styles_skeleton-animation__7m7qA\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__1zQ5L\",\"container--secondary-styles\":\"styles_container--secondary-styles__XD3Ps\",\"container--small\":\"styles_container--small__sBc8M\",\"container__wrapper\":\"styles_container__wrapper__yt1b8\",\"container__description\":\"styles_container__description__DqXA6\",\"container__title\":\"styles_container__title__MhrO5\",\"container--table\":\"styles_container--table__XtWpR\",\"container__lottie\":\"styles_container__lottie__XCj7x\",\"skeleton-animation\":\"styles_skeleton-animation__VxDSg\"};"],"names":["fetchBonusRewardTypesAggregators","param","queryKey","page","limit","rewardId","response","baseAPI","get","params","data","useBonusRewardTypesAggregators","options","setPage","useState","getConvertedExchangeRatio","useMultiExchangeRatio","BonusRewardTypesQueryKeys","Aggregators","isPending","error","refetch","useQuery","queryFn","staleTime","fetchNextPage","fetchPreviousPage","setCurrentPage","usePaginatedQuery","queryParams","parsedData","useMemo","flatMap","v","totalBonus","reduce","prev","bonus","convertedAmount","amount","scale","copyWith","add","Decimal","bonusRewardTypesStatistics","isLoadingBonusRewardTypesStatistics","errorBonusRewardTypesStatistics","refetchBonusRewardTypesStatistics","TableBonusRewardTypeCell","rewardType","t","useTranslation","jsx_runtime","jsxs","div","className","styles","jsx","Image","format","width","height","src","concat","process","image","alt","name","id","MultiExchangeCell","row","currentCoin","Fragment","WalletService","maskCurrency","coin","bonusRewardTypeColumns","field","headerName","renderCell","bonusRewardType","type","alignEnd","BonusOverviewModalContent","playerLottie","useLottiePlayer","path","ErrorCard","LottieOrImage","lottie","classList","TableGrid","rows","isLoading","columns","BonusOverviewModal","ModalWithVersion","modal","ModalsKey","BonusDetails","title","wallet","useWalletsMe","currentAccount","useCallback","exchange","convertedAmounts","code","TableContext","React","Tablelvl2Context","getTableCellUtilityClass","slot","generateUtilityClass","tableCellClasses","generateUtilityClasses","_excluded","useUtilityClasses","ownerState","classes","variant","align","padding","size","stickyHeader","slots","root","capitalize","composeClasses","TableCellRoot","styled","overridesResolver","props","theme","_extends","typography","body2","display","verticalAlign","borderBottom","vars","palette","TableCell","border","mode","lighten","alpha","divider","darken","textAlign","color","text","primary","lineHeight","pxToRem","fontWeight","fontWeightMedium","secondary","fontSize","paddingCheckbox","flexDirection","position","top","zIndex","backgroundColor","background","default","TableCell_TableCell","inProps","ref","component","useDefaultProps","componentProp","paddingProp","scope","scopeProp","sizeProp","sortDirection","variantProp","other","_objectWithoutPropertiesLoose","table","tablelvl2","isHeadCell","undefined","ariaSort","_jsx","as","clsx","NoDataComponent","isSecondaryStyles","isSmall","tableStyles","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","img","SettingsService","env","S3_BUCKET_BASE_URL","h6","p","module","exports"],"sourceRoot":""}