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629841895/src/dgbet/node_modules/brorand|crypto","webpack://_N_E/ignored|/codebuild/output/src1629841895/src/dgbet/node_modules/elliptic/node_modules/bn.js/lib|buffer","webpack://_N_E/?05b2","webpack://_N_E/./src/components/ui/index.ts","webpack://_N_E/./src/components/ui/LiveLabel/messages.ts","webpack://_N_E/./src/components/ui/LiveLabel/LiveLabel.tsx","webpack://_N_E/./src/contexts/index.ts","webpack://_N_E/./src/components/feedback/Tooltip/Tooltip.tsx","webpack://_N_E/./src/components/feedback/index.ts","webpack://_N_E/./src/helpers/getters/index.ts","webpack://_N_E/./src/components/dataDisplay/index.ts","webpack://_N_E/./src/compositions/event/EventInfo/messages.ts","webpack://_N_E/./src/compositions/event/EventInfo/EventInfo.tsx","webpack://_N_E/./src/compositions/event/Markets/components/ResultButton/messages.ts","webpack://_N_E/./src/compositions/event/Markets/components/ResultButton/ResultButton.tsx","webpack://_N_E/./src/compositions/event/Markets/components/Headline/components/View/View.tsx","webpack://_N_E/./src/compositions/event/Markets/components/Headline/components/index.ts","webpack://_N_E/./src/compositions/event/Markets/components/Headline/Headline.tsx","webpack://_N_E/./src/compositions/event/Markets/utils/useView.ts","webpack://_N_E/./src/compositions/event/Markets/utils/useCollapse.ts","webpack://_N_E/./src/compositions/event/Markets/messages.ts","webpack://_N_E/./src/compositions/event/Markets/Markets.tsx","webpack://_N_E/./src/app/[sportSlug]/[countrySlug]/[leagueSlug]/[gameId]/page.tsx","webpack://_N_E/./src/compositions/OutcomeButton/utils/useButton.ts","webpack://_N_E/./src/compositions/OutcomeButton/OutcomeButton.tsx","webpack://_N_E/./src/compositions/SettingsDropdown/messages.ts","webpack://_N_E/./src/compositions/SettingsDropdown/SettingsDropdown.tsx","webpack://_N_E/./src/compositions/SettingsDropdown/index.ts","webpack://_N_E/./src/compositions/TimeValue/TimeValue.tsx","webpack://_N_E/./src/compositions/TimeValue/index.ts","webpack://_N_E/./src/helpers/formatters/formatToFixed.ts","webpack://_N_E/./src/helpers/getters/getGameDateTime.ts"],"sourcesContent":["/* (ignored) */","/* (ignored) */","import(/* webpackMode: \"eager\" */ \"/codebuild/output/src1629841895/src/dgbet/src/app/[sportSlug]/[countrySlug]/[leagueSlug]/[gameId]/page.tsx\");\n","\nexport { default as LiveDot } from \"./LiveDot/LiveDot\"","export default {\n live: {\n en: 'Live',\n },\n}\n","'use client'\n\nimport { Message } from '@locmod/intl'\nimport cx from 'classnames'\n\nimport { LiveDot } from 'components/ui'\n\nimport messages from './messages'\n\ntype LiveLabelProps = {\n className?: string\n inverse?: boolean\n}\n\nconst LiveLabel: React.FC = ({\n className,\n inverse = false,\n}) => (\n
\n \n \n
\n)\n\nexport default LiveLabel\n","\nexport { useDevice } from \"/codebuild/output/src1629841895/src/dgbet/src/contexts/device/index.tsx\"\nexport { useMedia } from \"/codebuild/output/src1629841895/src/dgbet/src/contexts/device/index.tsx\"","'use client'\nimport React, { useRef, useState } from 'react'\nimport { useFloating, useInteractions, useHover, useClick, useDismiss,\n offset, shift, arrow, flip, autoUpdate, safePolygon } from '@floating-ui/react-dom-interactions'\nimport type { Placement } from '@floating-ui/react-dom-interactions'\nimport { Message } from '@locmod/intl'\nimport cx from 'classnames'\nimport { useMedia, useDevice } from 'contexts'\n\nimport { Icon } from 'components/ui'\n\n\ntype TooltipProps = {\n children: React.ReactElement\n title?: string | Intl.Message\n text?: string | Intl.Message\n content?: React.ReactElement\n width?: number // sets specific tooltip width (use only for small text content)\n placement?: Placement\n mobPlacement?: Placement\n isInteractive?: boolean // if \"true\" prevents tooltip from closing to allow user hover mouse over it and interact with a content\n}\n\nconst Tooltip: React.FC = (props) => {\n let {\n children, title, text, content, width,\n placement: defaultPlacement = 'bottom', mobPlacement,\n isInteractive,\n } = props\n\n const { isMobileDevice } = useDevice()\n const { isMobileView } = useMedia()\n const [ isVisible, setVisibility ] = useState(false)\n const arrowRef = useRef(null)\n\n if (mobPlacement && isMobileView) {\n defaultPlacement = mobPlacement\n }\n\n let crossAxis = 0\n\n if (defaultPlacement === 'top-start' || defaultPlacement === 'bottom-start') {\n crossAxis = -12\n }\n else if (defaultPlacement === 'top-end' || defaultPlacement === 'bottom-end') {\n crossAxis = 12\n }\n\n const { x, y, reference, floating, placement, strategy, context, middlewareData } = useFloating({\n open: isVisible,\n onOpenChange: setVisibility,\n placement: defaultPlacement,\n strategy: 'fixed',\n whileElementsMounted: autoUpdate,\n middleware: [\n offset({\n mainAxis: 10,\n crossAxis,\n }),\n shift({\n padding: 10,\n }),\n arrow({\n element: arrowRef,\n }),\n flip(),\n ],\n })\n\n const { getReferenceProps, getFloatingProps } = useInteractions([\n useHover(context, {\n restMs: 10,\n handleClose: !isInteractive ? null : safePolygon({\n restMs: 10,\n }),\n enabled: !isMobileDevice,\n }),\n useClick(context, {\n enabled: isMobileDevice,\n }),\n useDismiss(context),\n ])\n\n const tooltipClassNames = cx(\n 'z-[1001] w-fit p-3 bg-bg-l2 rounded-md text-grey-60 border border-grey-20',\n '-sm:max-w-[95vw] sm:max-w-[20rem]'\n )\n const arrowClassNames = cx('absolute block w-4 h-2 text-bg-l2', {\n 'top-[99%]': placement === 'top' || placement === 'top-end' || placement === 'top-start',\n 'bottom-[99%] rotate-180': placement === 'bottom' || placement === 'bottom-end' || placement === 'bottom-start',\n })\n\n const floatingProps = getFloatingProps({\n ref: floating,\n className: tooltipClassNames,\n style: {\n position: strategy,\n top: y ?? 0,\n left: x ?? 0,\n width,\n },\n })\n\n const referenceProps = getReferenceProps({ ref: reference, ...children.props })\n\n const { arrow: { x: arrowX } = {} } = middlewareData\n\n const arrowStyle = {\n left: arrowX,\n }\n\n return (\n <>\n {\n isVisible && (\n
\n \n \n
\n {\n Boolean(title) && (\n \n )\n }\n {\n Boolean(text) && (\n \n )\n }\n {\n Boolean(content) && (\n content\n )\n }\n \n )\n }\n {React.cloneElement(children, referenceProps)}\n \n )\n}\n\nexport default React.memo(Tooltip)\n","\nexport { default as Tooltip } from \"./Tooltip/Tooltip\"","\nexport { default as getGameDateTime } from \"./getGameDateTime\"\nexport { default as getLiveTotalScore } from \"./getLiveTotalScore\"","\nexport { default as Flag } from \"./Flag/Flag\"\nexport { default as OpponentLogo } from \"./OpponentLogo/OpponentLogo\"","export default {\n ended: {\n en: 'Ended',\n },\n}\n","'use client'\n\nimport React from 'react'\nimport { type GameQuery, GameStatus } from '@azuro-org/toolkit'\nimport {\n type LiveStatistics,\n type HomeGuest,\n type BasketballScoreBoard,\n type TennisScoreBoard,\n type VolleyballScoreBoard,\n useLiveStatistics,\n} from '@azuro-org/sdk'\nimport { Message } from '@locmod/intl'\nimport cx from 'classnames'\nimport { getGameDateTime, getLiveTotalScore } from 'helpers/getters'\n\nimport { Icon, LiveLabel, type IconName } from 'components/ui'\nimport { Flag, OpponentLogo } from 'components/dataDisplay'\nimport { TotalScore as LiveTotalScore } from 'compositions/LiveStatistics/components'\nimport TimeValue from 'compositions/TimeValue'\n\nimport messages from './messages'\n\nexport const EventInfoSkeleton: React.FC = () => {\n return (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n )\n}\n\ntype LiveScoreProps = {\n participants: GameQuery['games'][0]['participants']\n sportId: string\n liveScoreBoard: LiveStatistics['scoreBoard']\n}\n\nconst LiveScore: React.FC = ({\n participants,\n sportId,\n liveScoreBoard,\n}) => {\n let scoreValue = getLiveTotalScore(sportId, liveScoreBoard)\n\n let parts: Record> = {}\n let currentState: string | undefined\n\n if (+sportId === 31) {\n const { q1, q2, q3, q4, state } = liveScoreBoard as BasketballScoreBoard\n parts = { q1, q2, q3, q4 }\n currentState = state\n }\n\n if (+sportId === 45) {\n const { s1, s2, s3, s4, s5, state } = liveScoreBoard as TennisScoreBoard\n parts = { s1, s2, s3, s4, s5 }\n currentState = state\n }\n\n if (+sportId === 26) {\n const { s1, s2, s3, s4, s5, state } = liveScoreBoard as VolleyballScoreBoard\n parts = { s1, s2, s3, s4, s5 }\n currentState = state\n }\n\n if (!Object.keys(parts).length) {\n return null\n }\n\n return (\n
\n
\n \n \n
\n
\n
\n {Object.keys(parts).map((stateKey, index) => {\n const { h, g } = parts[stateKey]\n const isHomeExist = h >= 0\n const isGuestExist = g >= 0\n const isCurrentState =\n currentState && stateKey === currentState.toLowerCase()\n\n return (\n \n \n {isHomeExist ? h : '-'}\n
\n \n {isGuestExist ? g : '-'}\n
\n
\n )\n })}\n
\n
\n
{Math.max(scoreValue!.h, 0)}
\n
{Math.max(scoreValue!.g, 0)}
\n
\n
\n
\n
\n )\n}\n\ntype TitleProps = {\n status: GameStatus\n startsAt: string\n sportId: string\n liveScoreBoard: LiveStatistics['scoreBoard'] | undefined\n isFetching: boolean\n}\n\nconst Title: React.FC = ({\n status,\n startsAt,\n sportId,\n liveScoreBoard,\n isFetching,\n}) => {\n const { date, time } = getGameDateTime(+startsAt * 1000)\n\n let content = (\n
\n
\n \n
\n
{date}
\n
\n )\n\n if (status === GameStatus.Resolved) {\n content = (\n
\n \n
{date}
\n
\n )\n }\n\n if (status === GameStatus.Live) {\n content = isFetching ? (\n
\n ) : (\n \n )\n }\n\n return (\n
\n {content}\n
\n )\n}\n\ntype EventInfoProps = {\n game: GameQuery['games'][0]\n status: GameStatus\n}\n\nconst EventInfo: React.FC = ({ game, status }) => {\n const {\n gameId,\n sport: { sportId, slug: sportSlug },\n startsAt,\n participants,\n title,\n league: {\n name: leagueName,\n country: { slug: countrySlug, name: countryName },\n },\n } = game\n\n const { statistics, isFetching } = useLiveStatistics({\n gameId,\n sportId,\n gameStatus: status,\n enabled: Boolean(game),\n })\n\n const isLive = status === GameStatus.Live\n\n return (\n
\n \n \n \n {countryName}\n
\n {leagueName}\n
\n {isLive && (\n
\n
\n
\n \n
\n
\n )}\n
\n
\n \n \n \n
\n
\n {title}\n
\n {Boolean(statistics) && (\n \n )}\n
\n
\n )\n}\n\nexport default EventInfo\n","export default {\n refunded: {\n en: 'Refunded',\n },\n}\n","'use client'\n\nimport React from 'react'\nimport { type GameMarkets, ConditionStatus } from '@azuro-org/toolkit'\nimport cx from 'classnames'\nimport { useChain } from '@azuro-org/sdk'\nimport { Message } from '@locmod/intl'\nimport { formatToFixed } from 'helpers/formatters'\n\nimport messages from './messages'\n\n\ntype OutcomeButtonProps = {\n outcome: GameMarkets[0]['outcomeRows'][0][0]\n summary?: string\n size?: 28 | 40\n}\n\nconst OutcomeButton: React.FC = ({ outcome, summary, size = 28 }) => {\n const { selectionName, status, isWon } = outcome\n\n const { betToken } = useChain()\n\n const isCanceled = status === ConditionStatus.Canceled\n\n const buttonClassName = cx(\n 'w-full relative flex items-center justify-between px-3 overflow-hidden',\n 'text-caption-13 font-semibold border-none rounded-min select-none',\n {\n 'h-7': size === 28,\n 'h-10': size === 40,\n 'bg-result-button-won': !isCanceled && isWon,\n 'bg-result-button-lost': !isCanceled && !isWon,\n }\n )\n const titleClassName = cx('text-left whitespace-normal')\n\n const betsSummaryClassName = cx({\n 'text-accent-red': !isWon,\n 'text-accent-green': isWon,\n })\n\n return (\n
\n
\n {selectionName}\n
\n {\n isCanceled && (\n \n )\n }\n {\n Boolean(!isCanceled && summary) && (\n
{`${formatToFixed(summary!, 3)} ${betToken.symbol}`}
\n )\n }\n
\n )\n}\n\nexport default OutcomeButton\n","'use client'\n\nimport React from 'react'\nimport cx from 'classnames'\n\nimport { Icon, type IconName } from 'components/ui'\n\n\nconst views = [\n {\n value: 'rows',\n icon: 'interface/horizontal_view',\n },\n {\n value: 'columns',\n icon: 'interface/vertical_view',\n },\n] as const\n\nexport type ViewValue = typeof views[number]['value']\n\ntype ViewItemProps = {\n icon: IconName\n isActive: boolean\n onClick: () => void\n}\n\nconst ViewItem: React.FC = ({ isActive, onClick, icon }) => {\n const viewClassName = cx('p-1 rounded-min', {\n 'text-grey-90 bg-grey-15': isActive,\n 'text-grey-60 hover:text-grey-90': !isActive,\n })\n\n return (\n \n )\n}\n\nexport type ViewProps = {\n activeView: ViewValue\n onChangeView: (view: ViewValue) => void\n}\n\nconst View: React.FC = ({ activeView, onChangeView }) => {\n return (\n
\n {\n views.map(({ value, icon }) => (\n onChangeView(value)}\n />\n ))\n }\n
\n )\n}\n\nexport default View\n","export { default as View, type ViewProps, type ViewValue } from './View/View'\n","'use client'\n\nimport React from 'react'\n\nimport { Icon } from 'components/ui'\nimport SettingsDropdown from 'compositions/SettingsDropdown'\n\nimport { View, type ViewProps } from './components'\n\ntype HeadlineProps = {\n isCollapsed: boolean\n onCollapse: () => void\n} & ViewProps\n\nconst Headline: React.FC = props => {\n const { activeView, isCollapsed, onChangeView, onCollapse } = props\n\n return (\n
\n
\n
\n
\n \n \n \n \n \n
\n
\n
\n )\n}\n\nexport default Headline\n","import { useState } from 'react'\nimport localStorage from '@locmod/local-storage'\nimport { constants } from 'helpers'\n\nimport type { ViewValue } from '../components/Headline/components'\n\n\nconst useView = () => {\n const storageView = localStorage.getItem(constants.localStorageKeys.gameMarketsView)\n const [ activeView, setActiveView ] = useState(storageView || 'rows')\n\n const handleChangeView = (view: ViewValue) => {\n setActiveView(view)\n localStorage.setItem(constants.localStorageKeys.gameMarketsView, view)\n }\n\n return {\n activeView,\n changeView: handleChangeView,\n }\n}\n\nexport default useView\n","import { useMemo, useState } from 'react'\nimport localStorage from '@locmod/local-storage'\nimport { type GameMarkets } from '@azuro-org/toolkit'\nimport { constants } from 'helpers'\n\n\nconst useCollapse = (markets: GameMarkets) => {\n const initialCollapsedMarkets: string[] = localStorage.getItem(constants.localStorageKeys.collapsedMarkets) || []\n\n const [ collapsedMarketIds, setCollapsedMarketIds ] = useState(initialCollapsedMarkets)\n\n const marketIds = useMemo(() => {\n if (!markets?.length) {\n return []\n }\n\n return markets.map(({ marketKey }) => marketKey)\n }, [ markets ])\n\n const areAllCollapsed = !marketIds.some((marketId) => !collapsedMarketIds.includes(marketId))\n\n const collapse = (marketId: string ) => {\n let newCollapsed: string[]\n const isCollapse = !collapsedMarketIds.includes(marketId)\n\n if (isCollapse) {\n newCollapsed = [ ...collapsedMarketIds, marketId ]\n }\n else {\n newCollapsed = collapsedMarketIds.filter(market => market !== marketId)\n }\n\n localStorage.setItem(constants.localStorageKeys.collapsedMarkets, newCollapsed)\n setCollapsedMarketIds(newCollapsed)\n }\n\n const collapseAll = () => {\n let newCollapsed: string[] = []\n\n if (!areAllCollapsed) {\n newCollapsed = marketIds\n }\n\n localStorage.setItem(constants.localStorageKeys.collapsedMarkets, newCollapsed)\n\n setCollapsedMarketIds(newCollapsed)\n }\n\n return { areAllCollapsed, collapsedMarketIds, collapse, collapseAll }\n}\n\nexport default useCollapse\n","export default {\n ended: {\n title: {\n en: 'Bets are not accepted',\n },\n text: {\n en: 'The event being viewed has been completed or is no longer available',\n },\n },\n empty: {\n live: {\n title: {\n en: 'Live markets not available for this event',\n },\n text: {\n en: 'Unfortunately, there are no live markets available for this match. You can choose another football event that is live right now.',\n },\n },\n prematch: {\n title: {\n en: 'Markets not available for this event',\n },\n text: {\n en: 'Unfortunately, there are no markets available for this match.',\n },\n },\n },\n livePending: {\n title: {\n en: 'Live status: Information pending',\n },\n text: {\n en: 'We are awaiting information on the availability of live markets for this match. Estimated waiting time {time}',\n },\n },\n}\n","'use client'\n\nimport React, { useEffect, useState } from 'react'\nimport { XMasonry, XBlock } from 'react-xmasonry'\nimport { GameStatus, type GameMarkets } from '@azuro-org/toolkit'\nimport {\n useActiveMarkets,\n useBetsSummaryBySelection,\n useResolvedMarkets,\n} from '@azuro-org/sdk'\nimport { useAccount } from '@azuro-org/sdk-social-aa-connector'\n// import { useAccount } from 'wagmi'\nimport dayjs from 'dayjs'\nimport cx from 'classnames'\n\nimport { Tooltip } from 'components/feedback'\nimport { Icon } from 'components/ui'\nimport OutcomeButton from 'compositions/OutcomeButton/OutcomeButton'\nimport EmptyContent from 'compositions/EmptyContent/EmptyContent'\n\nimport ResultButton from './components/ResultButton/ResultButton'\nimport Headline from './components/Headline/Headline'\n\nimport useView from './utils/useView'\nimport useCollapse from './utils/useCollapse'\n\nimport messages from './messages'\n\nexport const MarketsSkeleton: React.FC = () => {\n return (\n
\n
\n {new Array(3).fill(0).map((_, index) => (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ))}\n
\n )\n}\n\ntype ContentProps = {\n markets: GameMarkets\n betsSummary?: Record\n isResult?: boolean\n}\n\nconst Content: React.FC = props => {\n const { markets, betsSummary, isResult } = props\n\n const { areAllCollapsed, collapsedMarketIds, collapse, collapseAll } =\n useCollapse(markets)\n const { activeView, changeView } = useView()\n\n return (\n
\n \n
\n \n {markets.map(({ name, description, outcomeRows, marketKey }) => {\n const isCollapsed = collapsedMarketIds.includes(marketKey)\n\n return (\n \n
\n collapse(marketKey)}\n >\n
\n
\n {name}\n
\n {Boolean(description) && (\n \n
\n \n
\n \n )}\n
\n
\n \n
\n \n {!isCollapsed && (\n
\n {outcomeRows.map((outcomes, index) => (\n \n
\n {outcomes.map(outcome => {\n const key = outcome.outcomeId\n\n if (isResult) {\n return (\n \n )\n }\n\n return (\n \n )\n })}\n
\n
\n ))}\n
\n )}\n
\n \n )\n })}\n \n
\n
\n )\n}\n\ntype MarketsProps = {\n gameId: string\n gameStatus: GameStatus\n startsAt: string\n}\n\nconst ResolvedMarkets: React.FC = ({ gameId, gameStatus }) => {\n const { address } = useAccount()\n const { groupedMarkets, loading } = useResolvedMarkets({ gameId })\n const { betsSummary } = useBetsSummaryBySelection({\n account: address!,\n gameId,\n gameStatus,\n })\n\n if (loading) {\n return \n }\n\n if (!groupedMarkets?.length) {\n return
Empty
\n }\n\n return \n}\n\nconst WAIT_TIME = 600000\n\nconst ActiveMarkets: React.FC = ({\n gameId,\n gameStatus,\n startsAt,\n}) => {\n const { loading, markets } = useActiveMarkets({\n gameId,\n gameStatus,\n livePollInterval: 10000,\n })\n\n console.log({ markets })\n const isLive = gameStatus === GameStatus.Live\n\n const startDate = +startsAt * 1000\n const shouldWait = () => isLive && dayjs().diff(startDate) < WAIT_TIME\n const [waitingTime, setWaitingTime] = useState(\n shouldWait() ? WAIT_TIME - dayjs().diff(startDate) : 0\n )\n\n useEffect(() => {\n if (shouldWait() && !markets?.length) {\n const interval = setInterval(() => {\n const newWaitingTime = Math.max(WAIT_TIME - dayjs().diff(startDate), 0)\n\n if (newWaitingTime === 0) {\n clearInterval(interval)\n }\n setWaitingTime(newWaitingTime)\n }, 1000)\n\n return () => {\n clearInterval(interval)\n }\n }\n }, [gameStatus, markets])\n\n if (loading) {\n return \n }\n\n if (!markets) {\n if (isLive) {\n if (waitingTime) {\n const time = dayjs.duration(waitingTime).format('mm:ss')\n\n return (\n \n )\n } else {\n return (\n \n )\n }\n }\n\n return (\n \n )\n }\n\n return \n}\n\nconst Markets: React.FC = props => {\n const { gameStatus } = props\n\n if (gameStatus === GameStatus.Resolved) {\n return \n }\n\n if (\n gameStatus === GameStatus.Canceled ||\n gameStatus === GameStatus.PendingResolution\n ) {\n return (\n \n )\n }\n\n return \n}\n\nexport default Markets\n","'use client'\n\nimport { useEffect } from 'react'\nimport { useGame, useGameStatus } from '@azuro-org/sdk'\nimport { type GameQuery } from '@azuro-org/toolkit'\nimport { useParams } from 'next/navigation'\nimport { liveStatisticsGameIdStore } from 'helpers/stores'\n\nimport EventInfo, {\n EventInfoSkeleton,\n} from 'compositions/event/EventInfo/EventInfo'\nimport Markets, { MarketsSkeleton } from 'compositions/event/Markets/Markets'\n\ntype ContentProps = {\n game: GameQuery['games'][0]\n isGameInLive: boolean\n}\n\nconst Content: React.FC = ({ game, isGameInLive }) => {\n const { status } = useGameStatus({\n graphStatus: game.status,\n startsAt: +game.startsAt,\n isGameExistInLive: isGameInLive,\n })\n\n useEffect(() => {\n if (isGameInLive) {\n liveStatisticsGameIdStore.setGameId(game.gameId)\n }\n }, [isGameInLive])\n\n return (\n <>\n \n\n \n \n )\n}\n\nexport default function EventPage() {\n const params = useParams()\n\n const { loading, game, isGameInLive } = useGame({\n gameId: params.gameId as string,\n })\n\n if (loading) {\n return (\n <>\n \n \n \n )\n }\n\n if (!game) {\n return
Game info not found
\n }\n\n return \n}\n","import { getMarketName } from '@azuro-org/dictionaries'\nimport { useBaseBetslip, useGame, useLive, useSelection } from '@azuro-org/sdk'\nimport { type GameMarkets } from '@azuro-org/toolkit'\nimport { sendGTMEvent } from '@next/third-parties/google'\nimport { usePathname } from 'next/navigation'\nimport { type MutableRefObject } from 'react'\n\nimport useOddsChange from 'src/hooks/useOddsChange'\n\ntype UseButtonProps = {\n outcome: GameMarkets[0]['outcomeRows'][0][0]\n nodeRef: MutableRefObject\n section?: string\n}\n\nconst useButton = ({ outcome, nodeRef, section }: UseButtonProps) => {\n const { odds, isLocked, isOddsFetching } = useSelection({\n selection: outcome,\n initialOdds: outcome.odds,\n initialStatus: outcome.status,\n })\n const { isLive } = useLive()\n\n const marketName = getMarketName({\n outcomeId: outcome.outcomeId,\n })\n\n useOddsChange({ odds, nodeRef })\n\n const { items, addItem, removeItem } = useBaseBetslip()\n\n const isActive = Boolean(\n items?.find(item => {\n const propsKey = `${outcome.coreAddress}-${outcome.lpAddress}-${outcome.gameId}-${outcome.conditionId}-${outcome.outcomeId}`\n const itemKey = `${item.coreAddress}-${item.lpAddress}-${item.game.gameId}-${item.conditionId}-${item.outcomeId}`\n\n return propsKey === itemKey\n })\n )\n\n const { game } = useGame({\n gameId: outcome.gameId,\n })\n\n const onClick = () => {\n if (isLocked) {\n return\n }\n\n if (isActive) {\n removeItem(outcome)\n sendGTMEvent({\n event: 'odds_card_clicked',\n selected: false,\n section: section || (isLive ? 'Live' : 'Upcoming'),\n sports_name: game?.sport.name,\n league_name: game?.league.name,\n game_name: game?.title,\n market_name: marketName,\n game_id: outcome.gameId,\n })\n } else {\n addItem(outcome)\n sendGTMEvent({\n event: 'odds_card_clicked',\n selected: true,\n section: section || (isLive ? 'Live' : 'Upcoming'),\n sports_name: game?.sport.name,\n league_name: game?.league.name,\n game_name: game?.title,\n market_name: marketName,\n game_id: outcome.gameId,\n })\n }\n }\n\n return {\n odds,\n isActive,\n isLocked,\n isOddsFetching,\n onClick,\n }\n}\n\nexport default useButton\n","'use client'\n\nimport React, { useRef } from 'react'\nimport { type GameMarkets } from '@azuro-org/toolkit'\nimport cx from 'classnames'\n\nimport { Icon } from 'components/ui'\nimport OddsValue from 'compositions/OddsValue/OddsValue'\n\nimport useButton from './utils/useButton'\n\ntype OutcomeButtonProps = {\n outcome: GameMarkets[0]['outcomeRows'][0][0]\n size?: 28 | 40\n section?: string\n}\n\nconst OutcomeButton: React.FC = ({\n outcome,\n size = 28,\n section,\n}) => {\n const { selectionName } = outcome\n\n const nodeRef = useRef(null)\n const { odds, isActive, isLocked, onClick } = useButton({\n outcome,\n nodeRef,\n section,\n })\n\n const buttonClassName = cx(\n 'group/button w-full relative flex items-center justify-between ds:px-3 mb:px-2 overflow-hidden',\n 'text-caption-13 border-none rounded-min select-none',\n {\n 'hover:text-[#050504] hover:bg-brand-5': !isLocked && !isActive,\n 'text-black bg-brand-50': isActive,\n 'bg-[#2B2A27]': !isActive,\n 'text-[#928888] cursor-not-allowed': isLocked,\n 'h-7': size === 28,\n 'h-10': size === 40,\n }\n )\n const titleClassName = cx('text-left whitespace-normal', {\n 'group-hover/button:text-black': !isLocked && !isActive,\n 'text-black': isActive,\n 'text-[#928888]': !isActive || isLocked,\n })\n const oddsClassName = cx('group/odds flex items-center')\n const arrowClassName = cx(\n 'size-4 text-transparent transition-color',\n 'group-[.increased]/odds:text-accent-green',\n 'group-[.decreased]/odds:text-accent-red group-[.decreased]/odds:rotate-180'\n )\n const valueClassName = cx(\n 'transition-color',\n 'group-[.increased]/odds:text-accent-green',\n 'group-[.decreased]/odds:text-accent-red'\n )\n\n return (\n \n )\n}\n\nexport default OutcomeButton\n","export default {\n oddsFormat: {\n en: 'Odds Format',\n },\n timeFormat: {\n en: 'Time Format',\n },\n}\n","'use client'\n\nimport React from 'react'\nimport cx from 'classnames'\nimport { Menu, MenuItem } from '@headlessui/react'\nimport { Message } from '@locmod/intl'\n\nimport { Dropdown } from 'components/inputs'\nimport { Icon } from 'components/ui'\nimport {\n useOddsView,\n oddsViews,\n type OddsView,\n useTimeFormat,\n timeFormats,\n type TimeFormat,\n} from 'contexts'\nimport messages from './messages'\n\nconst Content: React.FC = () => {\n const { oddsView, setOddsView } = useOddsView()\n const { timeFormat, setTimeFormat } = useTimeFormat()\n\n return (\n
\n
\n
\n \n
\n {Object.keys(oddsViews).map(value => {\n const title = oddsViews[value]\n const isActive = value === oddsView\n\n const oddClassName = cx(\n 'py-2.5 px-3 rounded-lg cursor-pointer w-full text-left flex items-center justify-between',\n {\n 'text-white bg-[#1B1A17] rounded-[8px]': isActive,\n 'text-[#928F88] hover:text-white': !isActive,\n }\n )\n\n return (\n \n setOddsView(value as OddsView)}\n >\n \n {isActive && (\n \n )}\n \n \n )\n })}\n
\n\n
\n
\n \n
\n {Object.keys(timeFormats).map(value => {\n const title = timeFormats[value]\n const isActive = value === timeFormat\n\n const timeClassName = cx(\n 'py-2.5 px-3 rounded-lg cursor-pointer w-full text-left flex items-center justify-between',\n {\n 'text-white bg-[#1B1A17] rounded-[8px]': isActive,\n 'text-[#928F88] hover:text-white': !isActive,\n }\n )\n\n return (\n \n setTimeFormat(value as TimeFormat)}\n >\n \n {isActive && (\n \n )}\n \n \n )\n })}\n
\n
\n )\n}\n\nconst SettingsDropdown: React.FC = () => {\n return (\n }\n placement=\"bottomRight\"\n dropListClassName=\"mt-2\"\n >\n
\n \n
\n \n )\n}\n\nexport default SettingsDropdown\n","import SettingsDropdown from './SettingsDropdown'\n\nexport default SettingsDropdown\n","'use client'\n\nimport React, { useMemo } from 'react'\nimport { useTimeFormat } from 'contexts'\n\ntype TimeValueProps = {\n className?: string\n time: string | number\n}\n\nconst TimeValue: React.FC = ({ className, time }) => {\n const { timeFormat, formatTime } = useTimeFormat()\n\n const formattedValue = useMemo(() => {\n if (!time) {\n return '--'\n }\n\n return formatTime(time)\n }, [timeFormat, time])\n\n return
{formattedValue}
\n}\n\nexport default TimeValue\n","import TimeValue from './TimeValue'\n\nexport default TimeValue\n","const formatToFixed = (value: string | number, digitsCount: number): string => {\n value = String(value)\n\n if (!/\\./.test(value)) {\n return value\n }\n\n const [int, digits] = value.split('.')\n\n if (digitsCount) {\n return int + '.' + digits.substring(0, digitsCount)\n }\n\n return int\n}\n\nexport default formatToFixed\n","import dayjs from 'dayjs'\n\nconst getGameDateTime = (startDate: number) => {\n const dateTime = dayjs(startDate)\n\n let date = dateTime.format('DD MMM')\n // We'll return the raw timestamp so it can be formatted by TimeValue component\n const time = startDate\n\n if (dateTime.isSame(dayjs(), 'day')) {\n date = 'Today'\n } else if (dateTime.isSame(dayjs().add(1, 'day'), 'day')) {\n date = 'Tomorrow'\n }\n\n return { date, time }\n}\n\nexport default getGameDateTime\n"],"names":["Promise","resolve","then","__webpack_require__","bind","en","LiveLabel_LiveLabel","className","inverse","param","jsx_runtime","jsxs","div","cx","jsx","LiveDot","Message","value","Tooltip_Tooltip","React","children","title","text","content","width","placement","defaultPlacement","mobPlacement","isInteractive","props","isMobileDevice","useDevice","isMobileView","useMedia","isVisible","setVisibility","useState","arrowRef","useRef","crossAxis","x","y","reference","floating","strategy","context","middlewareData","useFloating","open","onOpenChange","whileElementsMounted","autoUpdate","middleware","offset","mainAxis","shift","padding","arrow","element","flip","getReferenceProps","getFloatingProps","useInteractions","useHover","restMs","handleClose","safePolygon","enabled","useClick","useDismiss","tooltipClassNames","arrowClassNames","floatingProps","ref","style","position","top","left","referenceProps","arrowX","Fragment","Icon","name","Boolean","html","messages","ended","EventInfoSkeleton","LiveScore","currentState","participants","sportId","liveScoreBoard","scoreValue","getLiveTotalScore","parts","q1","q2","q3","q4","state","s1","s2","s3","s4","s5","keys","length","OpponentLogo","image","size","Object","map","stateKey","index","h","g","isHomeExist","isGuestExist","isCurrentState","toLowerCase","Math","max","Title","status","startsAt","isFetching","date","time","getGameDateTime","TimeValue","GameStatus","Resolved","Live","LiveTotalScore","scoreBoard","EventInfo_EventInfo","game","gameId","sport","slug","sportSlug","league","leagueName","country","countrySlug","countryName","statistics","useLiveStatistics","gameStatus","isLive","concat","Flag","span","LiveLabel","ResultButton_messages","refunded","ResultButton","outcome","summary","selectionName","isWon","betToken","useChain","isCanceled","ConditionStatus","Canceled","buttonClassName","titleClassName","betsSummaryClassName","formatToFixed","symbol","views","icon","ViewItem","isActive","onClick","viewClassName","button","View_View","activeView","onChangeView","Headline_Headline","isCollapsed","onCollapse","View","SettingsDropdown","utils_useView","storageView","localStorage","getItem","constants","localStorageKeys","gameMarketsView","setActiveView","changeView","view","setItem","utils_useCollapse","initialCollapsedMarkets","collapsedMarkets","collapsedMarketIds","setCollapsedMarketIds","marketIds","useMemo","markets","marketKey","areAllCollapsed","some","includes","marketId","collapse","newCollapsed","filter","market","collapseAll","Markets_messages","empty","live","prematch","livePending","MarketsSkeleton","fill","_","Content","betsSummary","isResult","useCollapse","useView","Headline","XMasonry","maxColumns","targetBlockWidth","description","outcomeRows","XBlock","Tooltip","outcomes","key","outcomeId","OutcomeButton","section","ResolvedMarkets","address","useAccount","groupedMarkets","loading","useResolvedMarkets","useBetsSummaryBySelection","account","ActiveMarkets","useActiveMarkets","livePollInterval","console","log","startDate","shouldWait","dayjs","diff","waitingTime","setWaitingTime","WAIT_TIME","useEffect","interval","setInterval","newWaitingTime","clearInterval","EmptyContent","format","values","Markets_Markets","PendingResolution","isGameInLive","useGameStatus","graphStatus","isGameExistInLive","liveStatisticsGameIdStore","setGameId","EventInfo","Markets","EventPage","params","useParams","useGame","utils_useButton","nodeRef","odds","isLocked","isOddsFetching","useSelection","selection","initialOdds","initialStatus","useLive","marketName","getMarketName","useOddsChange","items","addItem","removeItem","useBaseBetslip","find","item","propsKey","coreAddress","lpAddress","conditionId","sendGTMEvent","event","selected","sports_name","league_name","game_name","market_name","game_id","OutcomeButton_OutcomeButton","useButton","oddsClassName","arrowClassName","valueClassName","disabled","OddsValue","oddsView","setOddsView","useOddsView","timeFormat","setTimeFormat","useTimeFormat","oddsViews","oddClassName","MenuItem","timeFormats","timeClassName","compositions_SettingsDropdown","Dropdown","dropListClassName","compositions_TimeValue","formatTime","formattedValue","__webpack_exports__","Z","digitsCount","String","test","int","digits","split","substring","dateTime","isSame","add"],"sourceRoot":""}