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AAe,IACf,MACF,CAEAE,EAASQ,GAAaA,EAAY,EACpC,CACF,EACA,CAACT,EAAOF,EAAY,EAShBY,EAAgBJ,CAAAA,EAAAA,EAAAA,WAAAA,EAAY,KAChC,IAAMK,EAAW,IAAIC,qBAAqBP,EAAoB,CAC5DX,UAAAA,EACAmB,WAAY,qBACd,GAEMC,EAAgBV,EAAUW,OAAO,CAKvC,OAJID,GACFH,EAASK,OAAO,CAACF,GAGZ,KACDA,GACFH,EAASM,SAAS,CAACH,EAEvB,CACF,EAAG,CAACpB,EAAWW,EAAmB,EAMlC,MAHAa,CAAAA,EAAAA,EAAAA,SAAAA,EAAUR,EAAe,CAAChB,EAAWgB,EAAc,EAG5C,CAACf,GAAkBG,EAAaI,EAAWE,EAAU,EC5DjDpK,EAAe,SAC1BmL,CAAAA,MACAzB,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAY,EAEZ,OAAO,IACL,GAAM,CAAC0B,EAAU/C,EAAK+B,EAAU,CAAGX,EAAwBC,GAE3D,MACE,GAAA9K,EAAA2C,IAAA,EAACC,MAAAA,CAAIC,UAAWC,IAAAA,SAAgB,WAC9B,GAAA9C,EAAAC,GAAA,EAAC2C,MAAAA,CAAIC,UAAWC,IAAAA,iBAAwB,CAAE2G,IAAK+B,IAC/C,GAAAxL,EAAAC,GAAA,EAAC2C,MAAAA,CAAI6G,IAAKA,EAAK5G,UAAWC,IAAAA,kBAAyB,UAChD0J,EAAW,GAAAxM,EAAAC,GAAA,EAACsM,EAAAA,CAAkB,GAAG9E,CAAK,GAAO,SAItD,CACF,qBCxCAgF,EAAAC,OAAA,EAAkB,oUCAlBD,EAAAC,OAAA,EAAkB,4NCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/constants/latest-bets.tsx","webpack://_N_E/./src/components/Home/LatestBets/index.tsx","webpack://_N_E/./src/utils/math/isPositive.ts","webpack://_N_E/./src/utils/math/isNegative.ts","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameBetCell/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameCell/styles.ts","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameCell/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/TableUser/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/hooks/useIntersectionObserver/index.ts","webpack://_N_E/../../packages/common/src/hoc/WithLazyLoading/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameBetCell/styles.module.scss","webpack://_N_E/./src/components/core/Table/CustomCells/TableUser/styles.module.scss","webpack://_N_E/../../packages/common/src/hoc/WithLazyLoading/styles.module.scss"],"sourcesContent":["import TableGameCell from '@/components/core/Table/CustomCells/TableGameCell';\nimport TableGameBetCell from '@/components/core/Table/CustomCells/TableGameBetCell';\nimport { TableGridColumn } from '@starsoft/common/src/components/TableGrid/props';\nimport TableUser from '@/components/core/Table/CustomCells/TableUser';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { DetailedBet } from '@/models/detailed-bet';\n\nexport const latestBetsColumns: TableGridColumn[] = [\n {\n field: 'game.name',\n headerName: 'table_game_name',\n renderCell: unifiedBet => (\n \n ),\n },\n {\n field: 'player.username',\n headerName: 'table_username',\n renderCell: (row: DetailedBet) => ,\n },\n {\n field: 'amount',\n headerName: 'table_invite_header_bet_amount',\n renderCell: unifiedBet => ,\n },\n {\n field: 'multiplier',\n headerName: 'table_game_multiplier',\n valueFormatter: (detailedBet: DetailedBet) =>\n `${Decimal.fromSubunits(detailedBet?.multiplier, { scale: 4 }).toNumber()}x`,\n },\n {\n field: 'profit',\n headerName: 'table_game_win',\n renderCell: (detailedBet: DetailedBet) => (\n \n ),\n },\n];\n","import { latestBetsColumns } from '@/constants/latest-bets';\nimport { LatestBetsProps } from './props';\nimport { ErrorCard, TableGrid } from '@starsoft/common/components';\nimport { useIsMobile } from '@starsoft/common/hooks';\nimport { useMemo } from 'react';\nimport { withLazyLoad } from '@starsoft/common/hoc';\nimport { useSelector } from 'react-redux';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { RootState } from '@/lib/store';\n\nfunction LatestBets({ isSkeleton }: LatestBetsProps) {\n const isMobile: boolean = useIsMobile();\n\n const bets: DetailedBet[] = useSelector(\n (state: RootState) => state.liveBets.bets,\n );\n\n const columns = useMemo(() => {\n if (!isMobile) {\n return latestBetsColumns;\n }\n\n return latestBetsColumns?.filter(\n col =>\n col?.headerName != 'table_invite_header_bet_amount' &&\n col?.headerName !== 'table_game_multiplier',\n );\n }, [isMobile]);\n\n return (\n \n );\n}\n\nexport default withLazyLoad(LatestBets);\n","export function isPositive(value: number) {\n return Math.sign(value) === 1;\n}\n","export function isNegative(value: number) {\n return Math.sign(value) < 0;\n}\n","import { TableGameWinCellProps } from './props';\nimport styles from './styles.module.scss';\nimport { Image as CoreImage } from '@starsoft/common/components';\nimport { memo, useMemo } from 'react';\nimport { isPositive } from '@/utils/math/isPositive';\nimport { isNegative } from '@/utils/math/isNegative';\nimport { WalletService } from '@starsoft/common/services';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { getMoneyOrAmount } from '@starsoft/common/utils';\n\nfunction TableGameBetCell({\n bet,\n showAmount,\n isProfitStyle,\n isFlexEnd,\n}: TableGameWinCellProps) {\n function getPayout(): number {\n const payout = bet?.payout;\n\n return payout?.toNumber();\n }\n\n const payout: number = useMemo(getPayout, [bet, showAmount]);\n\n return (\n \n \n {WalletService.maskCurrency({\n amount: payout,\n coin: bet?.coin,\n })}\n \n );\n}\n\nexport default memo(TableGameBetCell);\n","import { Image } from '@starsoft/common/components';\nimport styled from 'styled-components';\n\nexport const Wrapper = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n gap: 8px;\n color: ${({ theme }) => theme.vars.palette.text.primary};\n`;\n\nexport const GameIcon = styled.i`\n width: 14px;\n`;\n\nexport const GameImage = styled(Image)`\n width: 28px;\n height: 28px;\n aspect-ratio: 28 / 28;\n border-radius: ${({ theme }) => theme.vars.shape.borderRadius};\n`;\n","import { Game } from '@/models/game';\nimport { GamingAggregatorId } from '@/models/gaming-aggregator/id';\nimport useTranslation from 'next-translate/useTranslation';\nimport { TableGameCellProps } from './props';\nimport { GameIcon, GameImage, Wrapper } from './styles';\n\nexport default function TableGameCell({ bet, aggregator }: TableGameCellProps) {\n const { t } = useTranslation('common');\n const game: Game = bet?.game;\n\n function getIcon(): string | undefined {\n switch (aggregator?.id?.toString() ?? bet?.aggregatorId?.toString()) {\n case GamingAggregatorId.Betby.toString():\n return 'fa-solid fa-basketball';\n case GamingAggregatorId.Starsoft.toString():\n return 'fa-solid fa-cherries fa-swap-opacity';\n }\n }\n\n return (\n \n {bet?.aggregatorId?.toString() !== GamingAggregatorId.Betby.toString() ? (\n \n ) : (\n \n )}\n {game?.name ?? t('tab_sportsbook')}\n \n );\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { TableUserProps } from './props';\nimport styles from './styles.module.scss';\nimport Link from '@/components/core/Link';\nimport useTranslation from 'next-translate/useTranslation';\nimport { ProfileStatus } from '@/enums/profileStatus';\nimport { Image } from '@starsoft/common/components';\n\nexport default function TableUser({ player }: TableUserProps) {\n const { t } = useTranslation('common');\n const isPrivate: boolean = player?.status !== ProfileStatus.Visible;\n\n return (\n \n {!isPrivate && (\n \n )}\n\n {isPrivate && }\n {isPrivate ? t('private_label') : player?.username}\n \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 { useEffect, useState, useRef, useCallback } from 'react';\n\n/**\n * Custom hook to observe the intersection of a target element with the viewport.\n * It uses the Intersection Observer API to determine if the target element is in view.\n *\n * @param {number} threshold - A number between 0 and 1 indicating the percentage of the target's visibility required to trigger the observer.\n * @returns {[boolean, React.RefObject, React.RefObject]} - Returns a tuple containing:\n * - A boolean indicating if the target element is intersecting or has been rendered.\n * - A ref object to attach to the target element.\n * - A ref object to attach to a buffer element.\n *\n * Example usage:\n * const [isVisible, targetRef, bufferRef] = useIntersectionObserver(0.5);\n */\nexport const useIntersectionObserver = (\n threshold = 0,\n): [\n boolean,\n React.RefObject,\n React.RefObject,\n] => {\n // State to track if the target element is intersecting\n const [isIntersecting, setIsIntersecting] = useState(false);\n // State to track if the target element has been rendered\n const [hasRendered, setHasRendered] = useState(false);\n // State to count the number of times the target has intersected\n const [count, setCount] = useState(0);\n\n // Ref to attach to the target element\n const targetRef = useRef(null);\n // Ref to attach to the buffer element\n const bufferRef = useRef(null);\n\n /**\n * Callback function to update the intersection state.\n * It is triggered whenever the intersection state of the target element changes.\n *\n * @param {IntersectionObserverEntry[]} entries - Array of intersection observer entries.\n */\n const updateIntersection = useCallback(\n (entries: IntersectionObserverEntry[]) => {\n const entry = entries[0];\n setIsIntersecting(entry.isIntersecting);\n\n if (entry.isIntersecting && !hasRendered) {\n if (count > 1) {\n setHasRendered(true);\n return;\n }\n\n setCount(prevCount => prevCount + 1);\n }\n },\n [count, hasRendered],\n );\n\n /**\n * Callback function to handle the observation of the buffer element.\n * Sets up the Intersection Observer and starts observing the buffer element.\n *\n * @returns {Function} - A cleanup function to unobserve the buffer element.\n */\n const handleObserve = useCallback(() => {\n const observer = new IntersectionObserver(updateIntersection, {\n threshold,\n rootMargin: '100px 0px 100px 0px',\n });\n\n const bufferElement = bufferRef.current;\n if (bufferElement) {\n observer.observe(bufferElement);\n }\n\n return () => {\n if (bufferElement) {\n observer.unobserve(bufferElement);\n }\n };\n }, [threshold, updateIntersection]);\n\n // Effect to start observing the buffer element when the component mounts and clean up when it unmounts\n useEffect(handleObserve, [threshold, handleObserve]);\n\n // Return the intersection state and refs for the target and buffer elements\n return [isIntersecting || hasRendered, targetRef, bufferRef];\n};\n","/* eslint-disable react/display-name */\nimport React, { ComponentType } from 'react';\nimport styles from './styles.module.scss';\nimport { useIntersectionObserver } from '@starsoft/common/hooks';\n\n/**\n * Higher-Order Component (HOC) for lazy loading a component based on its visibility in the viewport.\n *\n * @template T - Type of the props that the wrapped component accepts.\n * @param {ComponentType} WrappedComponent - The component to be lazy-loaded.\n * @param {number} [threshold=0] - The threshold for the intersection observer. Default is 0.\n * @returns {React.FC} A functional component that wraps the given component and lazy loads it.\n *\n * @example\n * // Usage example:\n * const LazyLoadedComponent = withLazyLoad(MyComponent, 0.5);\n *\n * function App() {\n * return (\n *
\n * \n *
\n * );\n * }\n */\nexport const withLazyLoad = (\n WrappedComponent: ComponentType,\n threshold = 0,\n): React.FC => {\n return (props: T) => {\n const [isInView, ref, bufferRef] = useIntersectionObserver(threshold);\n\n return (\n
\n
\n
\n {isInView ? : null}\n
\n
\n );\n };\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__TCOF2\",\"container--end\":\"styles_container--end__ICCQH\",\"container--positive\":\"styles_container--positive__Nbynh\",\"container--negative\":\"styles_container--negative__P4iKj\",\"container__coin\":\"styles_container__coin__IY8n8\",\"skeleton-animation\":\"styles_skeleton-animation__fgZ0D\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__MVxpZ\",\"container--disabled\":\"styles_container--disabled____UOp\",\"container__image\":\"styles_container__image__m8fEv\",\"skeleton-animation\":\"styles_skeleton-animation__y2tlj\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__be7Ct\",\"container__buffer\":\"styles_container__buffer__rTJDn\",\"container__content\":\"styles_container__content__NI31r\",\"skeleton-animation\":\"styles_skeleton-animation__brPd7\"};"],"names":["latestBetsColumns","field","headerName","renderCell","unifiedBet","jsx_runtime","jsx","TableGameCell","bet","aggregator","TableUser","player","row","TableGameBetCell","showAmount","valueFormatter","concat","Decimal","fromSubunits","detailedBet","multiplier","scale","toNumber","isProfitStyle","Home_LatestBets","withLazyLoad","param","isSkeleton","isMobile","useIsMobile","bets","useSelector","state","liveBets","columns","useMemo","filter","col","TableGrid","rows","isLoading","isSecondaryStyles","useAutoScroll","preventOrder","CustomCells_TableGameBetCell","memo","isFlexEnd","payout","jsxs","div","className","styles","Math","sign","CoreImage","width","height","src","process","coin","image","WalletService","maskCurrency","amount","Wrapper","styled","withConfig","theme","vars","palette","text","primary","GameIcon","i","GameImage","Image","shape","borderRadius","game","t","useTranslation","aggregatorId","toString","GamingAggregatorId","Betby","alt","name","getIcon","id","Starsoft","isPrivate","status","ProfileStatus","Visible","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","Link","modal","ModalsKey","UserProfile","href","slug","photo","username","TableContext","React","Tablelvl2Context","getTableCellUtilityClass","slot","generateUtilityClass","tableCellClasses","generateUtilityClasses","_excluded","useUtilityClasses","ownerState","classes","variant","align","padding","size","stickyHeader","slots","root","capitalize","composeClasses","TableCellRoot","overridesResolver","props","_extends","typography","body2","display","verticalAlign","borderBottom","TableCell","border","mode","lighten","alpha","divider","darken","textAlign","color","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","useIntersectionObserver","threshold","isIntersecting","setIsIntersecting","useState","hasRendered","setHasRendered","count","setCount","targetRef","useRef","bufferRef","updateIntersection","useCallback","entry","entries","prevCount","handleObserve","observer","IntersectionObserver","rootMargin","bufferElement","current","observe","unobserve","useEffect","WrappedComponent","isInView","module","exports"],"sourceRoot":""}