fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +4846 -3
- package/CollectLead.js +1252 -3
- package/EventGamePlay.js +7594 -3
- package/MatchQuizPlay.js +11001 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4165 -3
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
- package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -4
- package/_virtual/index2.js +0 -4
- package/_virtual/index3.js +0 -4
- package/_virtual/jsx-runtime.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.development2.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
- package/_virtual/react-is.production.min2.js +0 -4
- package/_virtual/react-jsx-runtime.development.js +0 -4
- package/_virtual/react-jsx-runtime.production.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
- package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
- package/packages/classic-quiz-play/src/constants/constants.js +0 -4
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
- package/packages/classic-quiz-play/src/index.js +0 -4
- package/packages/classic-quiz-play/src/main.js +0 -7
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/collect-lead/src/components/CollectLead.js +0 -18
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
- package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
- package/packages/collect-lead/src/index.js +0 -4
- package/packages/collect-lead/src/main.js +0 -39
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
- package/packages/common/src/components/AdditionalCTA.js +0 -24
- package/packages/common/src/components/AlertMessage.js +0 -88
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
- package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
- package/packages/common/src/components/Leads/LeadForm.js +0 -498
- package/packages/common/src/components/Portal.js +0 -62
- package/packages/common/src/components/Rules.js +0 -299
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
- package/packages/common/src/components/Spinner.js +0 -36
- package/packages/common/src/constants/constants.js +0 -457
- package/packages/common/src/enums/enums.js +0 -4
- package/packages/common/src/functions/helpers.js +0 -58
- package/packages/common/src/functions/i18n.js +0 -69
- package/packages/common/src/functions/theme.js +0 -301
- package/packages/common/src/hooks/useConstantContext.js +0 -10
- package/packages/common/src/hooks/useImageUrl.js +0 -8
- package/packages/common/src/hooks/useImageVariant.js +0 -11
- package/packages/common/src/hooks/useLeadForm.js +0 -129
- package/packages/common/src/hooks/useThemeMode.js +0 -30
- package/packages/common/src/locales/bg.json.js +0 -363
- package/packages/common/src/locales/de.json.js +0 -362
- package/packages/common/src/locales/el.json.js +0 -362
- package/packages/common/src/locales/en.json.js +0 -368
- package/packages/common/src/locales/es.json.js +0 -362
- package/packages/common/src/locales/fr-be.json.js +0 -362
- package/packages/common/src/locales/fr.json.js +0 -362
- package/packages/common/src/locales/it.json.js +0 -362
- package/packages/common/src/locales/pl.json.js +0 -362
- package/packages/common/src/locales/pt-br.json.js +0 -362
- package/packages/common/src/locales/pt.json.js +0 -362
- package/packages/common/src/locales/ro.json.js +0 -362
- package/packages/common/src/locales/sk.json.js +0 -362
- package/packages/common/src/locales/sr.json.js +0 -362
- package/packages/common/src/providers/ConstantsProvider.js +0 -29
- package/packages/common/src/providers/ContainerProvider.js +0 -35
- package/packages/common/src/providers/FontProvider.js +0 -25
- package/packages/common/src/providers/ThemeProvider.js +0 -80
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/event-game-play/src/assets/school.svg.js +0 -4
- package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
- package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
- package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
- package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
- package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
- package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
- package/packages/event-game-play/src/helpers/helpers.js +0 -11
- package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
- package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
- package/packages/event-game-play/src/index.js +0 -4
- package/packages/event-game-play/src/main.js +0 -7
- package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
- package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
- package/packages/match-quiz-play/src/index.js +0 -4
- package/packages/match-quiz-play/src/main.js +0 -7
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/poll-vote/src/components/PollNotFound.js +0 -23
- package/packages/poll-vote/src/components/PollVote.js +0 -270
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
- package/packages/poll-vote/src/components/Shared/Button.js +0 -76
- package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
- package/packages/poll-vote/src/hooks/usePollById.js +0 -16
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
- package/packages/poll-vote/src/index.js +0 -4
- package/packages/poll-vote/src/main.js +0 -7
package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js
DELETED
|
@@ -1,854 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import Ee from "react";
|
|
3
|
-
import { Box as o, Tabs as _e, TabList as Ae, Tab as ie, tabClasses as ne, Typography as c, TabPanel as le } from "@mui/joy";
|
|
4
|
-
import { useInternalTheme as Fe, isMobile as be, isExtraSmall as ze, useCornerRadius as we, useColors as _, useFontFamily as ce, useSpacingScale as Oe } from "../../../../../common/src/functions/theme.js";
|
|
5
|
-
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { useConstantContext as He } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import Ie from "../../../assets/school.svg.js";
|
|
11
|
-
import Pe from "../../../assets/sports_score.svg.js";
|
|
12
|
-
import { MarketEnum as r } from "fansunited-sdk-esm";
|
|
13
|
-
import ae from "../../../../../../node_modules/@mui/icons-material/esm/PersonOutline.js";
|
|
14
|
-
import De from "./EarnedPointsDisplay.js";
|
|
15
|
-
import { MatchQuizConstantsContext as Qe } from "../../../providers/ConstantsProvider.js";
|
|
16
|
-
import { useTranslation as ke } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
17
|
-
const et = ({
|
|
18
|
-
prediction: z,
|
|
19
|
-
marketsResults: w,
|
|
20
|
-
resultsTabPanelSxProps: xe,
|
|
21
|
-
isOverlayVariant: u,
|
|
22
|
-
children: de,
|
|
23
|
-
brandingColors: F
|
|
24
|
-
}) => {
|
|
25
|
-
var Z;
|
|
26
|
-
const [me, he] = Ee.useState(0), C = Fe(), { t: i } = ke(), { squads: ue, points: fe } = He(Qe), v = be(), p = ze(), $ = we().md, O = u ? C.colorSchemes.dark.textPrimary : _().textPrimary, H = u ? C.colorSchemes.dark.textSecondary : _().textSecondary, A = ce().primary, G = ce().secondary, J = u ? C.colorSchemes.dark.secondaryContainer : _().secondaryContainer, pe = F != null && F.backgroundColor || u ? C.colorSchemes.dark.surfaceVariant : _().surfaceVariant, R = Oe(), ge = _().palette.success.plainColor, ye = _().palette.danger.plainColor, U = u ? C.colorSchemes.dark.outlineEnabledBorder : _().outlineEnabledBorder, X = u ? C.colorSchemes.dark.palette.neutral.softBg : _().palette.neutral.softBg;
|
|
27
|
-
let q = u ? C.colorSchemes.dark.textPrimary : _().textPrimary;
|
|
28
|
-
F != null && F.primaryColor && (q = F.primaryColor);
|
|
29
|
-
const Ce = (Z = fe.find(
|
|
30
|
-
(a) => a.id === r.CORRECT_SCORE_ADVANCED
|
|
31
|
-
)) == null ? void 0 : Z.points, Se = (a) => {
|
|
32
|
-
var ee, te, re, se, oe;
|
|
33
|
-
const x = (ee = z == null ? void 0 : z.fixtures) == null ? void 0 : ee.find(
|
|
34
|
-
(n) => n.market === a.market
|
|
35
|
-
);
|
|
36
|
-
if (!x) return null;
|
|
37
|
-
const V = (n) => {
|
|
38
|
-
switch (n) {
|
|
39
|
-
case r.CORRECT_SCORE:
|
|
40
|
-
case r.CORRECT_SCORE_ADVANCED:
|
|
41
|
-
return i("matchQuiz.fixtures.correctScoreFixtureTitle");
|
|
42
|
-
case r.CORRECT_SCORE_HT:
|
|
43
|
-
return i("matchQuiz.fixtures.correctScoreFixtureTitleHT");
|
|
44
|
-
case r.FT_1X2:
|
|
45
|
-
return i("matchQuiz.fixtures.oneXTwoFixtureTitle");
|
|
46
|
-
case r.HT_1X2:
|
|
47
|
-
return i("matchQuiz.fixtures.oneXTwoFixtureTitleHT");
|
|
48
|
-
case r.CORNERS_MATCH:
|
|
49
|
-
return i("matchQuiz.fixtures.cornersFixtureTitle");
|
|
50
|
-
case r.PLAYER_SCORE_FIRST_GOAL:
|
|
51
|
-
return i("matchQuiz.fixtures.playerScoreFirstGoalFixtureTitle");
|
|
52
|
-
case r.PLAYER_SCORE:
|
|
53
|
-
return i("matchQuiz.fixtures.playerScoreFixtureTitle");
|
|
54
|
-
case r.PLAYER_YELLOW_CARD:
|
|
55
|
-
return i("matchQuiz.fixtures.playerYellowCardFixtureTitle");
|
|
56
|
-
case r.PLAYER_RED_CARD:
|
|
57
|
-
return i("matchQuiz.fixtures.playerRedCardFixtureTitle");
|
|
58
|
-
case r.PLAYER_SCORE_HATTRICK:
|
|
59
|
-
return i("matchQuiz.fixtures.playerScoreHattrickFixtureTitle");
|
|
60
|
-
case r.PLAYER_SCORE_TWICE:
|
|
61
|
-
return i("matchQuiz.fixtures.playerScoreTwiceFixtureTitle");
|
|
62
|
-
case r.PENALTY_MATCH:
|
|
63
|
-
return i("matchQuiz.fixtures.penaltyFixtureTitle");
|
|
64
|
-
case r.RED_CARD_MATCH:
|
|
65
|
-
return i("matchQuiz.fixtures.redCardFixtureTitle");
|
|
66
|
-
default:
|
|
67
|
-
if (n.includes("OVER_GOALS")) {
|
|
68
|
-
const l = n.replace("OVER_GOALS_", "").replace("_", "."), t = Math.floor(parseFloat(l));
|
|
69
|
-
return i("matchQuiz.fixtures.overGoalsFixtureTitle", { threshold: t });
|
|
70
|
-
}
|
|
71
|
-
if (n.includes("OVER_CORNERS")) {
|
|
72
|
-
const l = n.replace("OVER_CORNERS_", "").replace("_", "."), t = Math.floor(parseFloat(l));
|
|
73
|
-
return i("matchQuiz.fixtures.overCornersFixtureTitle", {
|
|
74
|
-
threshold: t
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return "";
|
|
78
|
-
}
|
|
79
|
-
}, I = (n, l) => {
|
|
80
|
-
const t = l.prediction.value, s = n.result;
|
|
81
|
-
switch (n.market) {
|
|
82
|
-
case r.CORRECT_SCORE:
|
|
83
|
-
case r.CORRECT_SCORE_HT:
|
|
84
|
-
case r.CORRECT_SCORE_ADVANCED:
|
|
85
|
-
return t === s;
|
|
86
|
-
case r.FT_1X2:
|
|
87
|
-
case r.HT_1X2:
|
|
88
|
-
return t === s;
|
|
89
|
-
case r.CORNERS_MATCH:
|
|
90
|
-
return parseInt(t.toString()) === parseInt(s.toString());
|
|
91
|
-
case r.PENALTY_MATCH:
|
|
92
|
-
case r.RED_CARD_MATCH:
|
|
93
|
-
return t === s;
|
|
94
|
-
case r.PLAYER_SCORE_FIRST_GOAL:
|
|
95
|
-
case r.PLAYER_SCORE:
|
|
96
|
-
case r.PLAYER_YELLOW_CARD:
|
|
97
|
-
case r.PLAYER_RED_CARD:
|
|
98
|
-
case r.PLAYER_SCORE_HATTRICK:
|
|
99
|
-
case r.PLAYER_SCORE_TWICE:
|
|
100
|
-
return Array.isArray(s) ? s.includes(l.prediction.playerId) : !1;
|
|
101
|
-
default:
|
|
102
|
-
return n.market.includes("OVER_") ? t === s : !1;
|
|
103
|
-
}
|
|
104
|
-
}, Re = (n) => {
|
|
105
|
-
for (const [, l] of ue.entries()) {
|
|
106
|
-
const t = l.find((s) => s.id === n);
|
|
107
|
-
if (t)
|
|
108
|
-
return t;
|
|
109
|
-
}
|
|
110
|
-
return null;
|
|
111
|
-
}, Te = (n, l) => {
|
|
112
|
-
var P, D, Q, k, L, Y, N, W, B, m, h, f, M;
|
|
113
|
-
if (!n) return null;
|
|
114
|
-
const t = l.market, s = l.matchModel, g = (P = n.prediction) == null ? void 0 : P.value, b = (D = n.prediction) == null ? void 0 : D.playerId, j = {
|
|
115
|
-
display: "flex",
|
|
116
|
-
alignItems: "center",
|
|
117
|
-
gap: R.xs,
|
|
118
|
-
fontSize: "1em",
|
|
119
|
-
padding: "2px 6px",
|
|
120
|
-
minHeight: "20px",
|
|
121
|
-
borderRadius: $,
|
|
122
|
-
border: `1px solid ${U}`,
|
|
123
|
-
backgroundColor: X,
|
|
124
|
-
width: "fit-content"
|
|
125
|
-
}, S = {
|
|
126
|
-
width: p ? "16px" : "20px",
|
|
127
|
-
height: p ? "16px" : "20px",
|
|
128
|
-
borderRadius: "50%",
|
|
129
|
-
overflow: "hidden",
|
|
130
|
-
flexShrink: 0
|
|
131
|
-
}, K = {
|
|
132
|
-
width: p ? "16px" : "20px",
|
|
133
|
-
height: p ? "16px" : "20px",
|
|
134
|
-
borderRadius: "50%",
|
|
135
|
-
backgroundColor: X,
|
|
136
|
-
color: "#FFFFFF",
|
|
137
|
-
display: "flex",
|
|
138
|
-
alignItems: "center",
|
|
139
|
-
justifyContent: "center",
|
|
140
|
-
fontFamily: A,
|
|
141
|
-
fontWeight: 600,
|
|
142
|
-
fontSize: "0.625em",
|
|
143
|
-
flexShrink: 0,
|
|
144
|
-
overflow: "hidden"
|
|
145
|
-
}, T = {
|
|
146
|
-
fontFamily: A,
|
|
147
|
-
fontWeight: 500,
|
|
148
|
-
fontSize: p ? "0.75em" : "0.875em",
|
|
149
|
-
color: O
|
|
150
|
-
};
|
|
151
|
-
if (t === r.CORRECT_SCORE || t === r.CORRECT_SCORE_HT || t === r.CORRECT_SCORE_ADVANCED) {
|
|
152
|
-
const d = g || "0:0", [y, E] = d.split(":");
|
|
153
|
-
return /* @__PURE__ */ e.jsxs(o, { sx: j, children: [
|
|
154
|
-
((k = (Q = s == null ? void 0 : s.homeTeam) == null ? void 0 : Q.assets) == null ? void 0 : k.logo) && /* @__PURE__ */ e.jsx(o, { sx: S, children: /* @__PURE__ */ e.jsx(
|
|
155
|
-
"img",
|
|
156
|
-
{
|
|
157
|
-
src: s.homeTeam.assets.logo,
|
|
158
|
-
alt: s.homeTeam.name,
|
|
159
|
-
style: {
|
|
160
|
-
width: "100%",
|
|
161
|
-
height: "100%",
|
|
162
|
-
borderRadius: "50%",
|
|
163
|
-
objectFit: "cover"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
) }),
|
|
167
|
-
/* @__PURE__ */ e.jsxs(c, { sx: T, children: [
|
|
168
|
-
y,
|
|
169
|
-
":",
|
|
170
|
-
E
|
|
171
|
-
] }),
|
|
172
|
-
((Y = (L = s == null ? void 0 : s.awayTeam) == null ? void 0 : L.assets) == null ? void 0 : Y.logo) && /* @__PURE__ */ e.jsx(o, { sx: S, children: /* @__PURE__ */ e.jsx(
|
|
173
|
-
"img",
|
|
174
|
-
{
|
|
175
|
-
src: s.awayTeam.assets.logo,
|
|
176
|
-
alt: s.awayTeam.name,
|
|
177
|
-
style: {
|
|
178
|
-
width: "100%",
|
|
179
|
-
height: "100%",
|
|
180
|
-
borderRadius: "50%",
|
|
181
|
-
objectFit: "cover"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
) })
|
|
185
|
-
] });
|
|
186
|
-
}
|
|
187
|
-
if (t === r.FT_1X2 || t === r.HT_1X2) {
|
|
188
|
-
const d = g;
|
|
189
|
-
let y = "", E = null;
|
|
190
|
-
return d === "1" ? (y = ((N = s == null ? void 0 : s.homeTeam) == null ? void 0 : N.name) || "Home", E = (B = (W = s == null ? void 0 : s.homeTeam) == null ? void 0 : W.assets) == null ? void 0 : B.logo) : d === "x" || d === "X" ? y = i("matchQuiz.fixtures.draw") : d === "2" && (y = ((m = s == null ? void 0 : s.awayTeam) == null ? void 0 : m.name) || "Away", E = (f = (h = s == null ? void 0 : s.awayTeam) == null ? void 0 : h.assets) == null ? void 0 : f.logo), /* @__PURE__ */ e.jsxs(o, { sx: j, children: [
|
|
191
|
-
E && /* @__PURE__ */ e.jsx(o, { sx: S, children: /* @__PURE__ */ e.jsx(
|
|
192
|
-
"img",
|
|
193
|
-
{
|
|
194
|
-
src: E,
|
|
195
|
-
alt: y,
|
|
196
|
-
style: {
|
|
197
|
-
width: "100%",
|
|
198
|
-
height: "100%",
|
|
199
|
-
borderRadius: "50%",
|
|
200
|
-
objectFit: "cover"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
) }),
|
|
204
|
-
/* @__PURE__ */ e.jsx(c, { sx: T, children: y })
|
|
205
|
-
] });
|
|
206
|
-
}
|
|
207
|
-
if (t.includes("PLAYER_")) {
|
|
208
|
-
if (!b)
|
|
209
|
-
return /* @__PURE__ */ e.jsx(o, { sx: j, children: /* @__PURE__ */ e.jsx(c, { sx: T, children: i("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
210
|
-
if (b === "OWN_GOAL")
|
|
211
|
-
return /* @__PURE__ */ e.jsx(o, { sx: j, children: /* @__PURE__ */ e.jsx(c, { sx: T, children: i("matchQuiz.fixtures.ownGoal") }) });
|
|
212
|
-
const d = Re(b), y = (d == null ? void 0 : d.name) || "Unknown Player", E = (M = d == null ? void 0 : d.assets) == null ? void 0 : M.headshot;
|
|
213
|
-
return /* @__PURE__ */ e.jsxs(o, { sx: j, children: [
|
|
214
|
-
/* @__PURE__ */ e.jsx(o, { sx: K, children: E ? /* @__PURE__ */ e.jsx(
|
|
215
|
-
"img",
|
|
216
|
-
{
|
|
217
|
-
src: E,
|
|
218
|
-
alt: y,
|
|
219
|
-
style: {
|
|
220
|
-
width: "100%",
|
|
221
|
-
height: "100%",
|
|
222
|
-
objectFit: "cover",
|
|
223
|
-
borderRadius: "50%"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
) : /* @__PURE__ */ e.jsx(
|
|
227
|
-
ae,
|
|
228
|
-
{
|
|
229
|
-
sx: { fontSize: "0.75em", color: H }
|
|
230
|
-
}
|
|
231
|
-
) }),
|
|
232
|
-
/* @__PURE__ */ e.jsx(c, { sx: T, children: y })
|
|
233
|
-
] });
|
|
234
|
-
}
|
|
235
|
-
if (t === r.PENALTY_MATCH || t === r.RED_CARD_MATCH || t.includes("OVER_")) {
|
|
236
|
-
const d = g === !0;
|
|
237
|
-
return /* @__PURE__ */ e.jsx(o, { sx: j, children: /* @__PURE__ */ e.jsx(c, { sx: T, children: i(d ? "matchQuiz.fixtures.yes" : "matchQuiz.fixtures.no") }) });
|
|
238
|
-
}
|
|
239
|
-
if (t === r.CORNERS_MATCH) {
|
|
240
|
-
const d = g || 6;
|
|
241
|
-
return /* @__PURE__ */ e.jsx(o, { sx: j, children: /* @__PURE__ */ e.jsx(c, { sx: T, children: d }) });
|
|
242
|
-
}
|
|
243
|
-
return null;
|
|
244
|
-
}, je = (n) => {
|
|
245
|
-
var K, T, P, D, Q, k, L, Y, N, W, B;
|
|
246
|
-
const l = n.market, t = n.matchModel, s = n.result, g = {
|
|
247
|
-
display: "flex",
|
|
248
|
-
alignItems: "center",
|
|
249
|
-
gap: R.xs,
|
|
250
|
-
fontSize: "0.875em",
|
|
251
|
-
padding: "2px 6px",
|
|
252
|
-
minHeight: "20px",
|
|
253
|
-
borderRadius: $,
|
|
254
|
-
border: `1px solid ${U}`,
|
|
255
|
-
backgroundColor: X,
|
|
256
|
-
width: "fit-content"
|
|
257
|
-
}, b = {
|
|
258
|
-
width: p ? "16px" : "20px",
|
|
259
|
-
height: p ? "16px" : "20px",
|
|
260
|
-
borderRadius: "50%",
|
|
261
|
-
overflow: "hidden",
|
|
262
|
-
flexShrink: 0
|
|
263
|
-
}, j = {
|
|
264
|
-
width: p ? "16px" : "20px",
|
|
265
|
-
height: p ? "16px" : "20px",
|
|
266
|
-
borderRadius: "50%",
|
|
267
|
-
backgroundColor: X,
|
|
268
|
-
color: "#FFFFFF",
|
|
269
|
-
display: "flex",
|
|
270
|
-
alignItems: "center",
|
|
271
|
-
justifyContent: "center",
|
|
272
|
-
fontFamily: A,
|
|
273
|
-
fontWeight: 600,
|
|
274
|
-
fontSize: "0.625em",
|
|
275
|
-
flexShrink: 0,
|
|
276
|
-
overflow: "hidden"
|
|
277
|
-
}, S = {
|
|
278
|
-
fontFamily: A,
|
|
279
|
-
fontWeight: 500,
|
|
280
|
-
fontSize: p ? "0.75em" : "0.875em",
|
|
281
|
-
color: O
|
|
282
|
-
};
|
|
283
|
-
if (l === r.CORRECT_SCORE || l === r.CORRECT_SCORE_HT || l === r.CORRECT_SCORE_ADVANCED) {
|
|
284
|
-
const m = s || "0:0", [h, f] = m.split(":");
|
|
285
|
-
return /* @__PURE__ */ e.jsxs(o, { sx: g, children: [
|
|
286
|
-
((T = (K = t == null ? void 0 : t.homeTeam) == null ? void 0 : K.assets) == null ? void 0 : T.logo) && /* @__PURE__ */ e.jsx(o, { sx: b, children: /* @__PURE__ */ e.jsx(
|
|
287
|
-
"img",
|
|
288
|
-
{
|
|
289
|
-
src: t.homeTeam.assets.logo,
|
|
290
|
-
alt: t.homeTeam.name,
|
|
291
|
-
style: {
|
|
292
|
-
width: "100%",
|
|
293
|
-
height: "100%",
|
|
294
|
-
borderRadius: "50%",
|
|
295
|
-
objectFit: "cover"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
) }),
|
|
299
|
-
/* @__PURE__ */ e.jsxs(c, { sx: S, children: [
|
|
300
|
-
h,
|
|
301
|
-
":",
|
|
302
|
-
f
|
|
303
|
-
] }),
|
|
304
|
-
((D = (P = t == null ? void 0 : t.awayTeam) == null ? void 0 : P.assets) == null ? void 0 : D.logo) && /* @__PURE__ */ e.jsx(o, { sx: b, children: /* @__PURE__ */ e.jsx(
|
|
305
|
-
"img",
|
|
306
|
-
{
|
|
307
|
-
src: t.awayTeam.assets.logo,
|
|
308
|
-
alt: t.awayTeam.name,
|
|
309
|
-
style: {
|
|
310
|
-
width: "100%",
|
|
311
|
-
height: "100%",
|
|
312
|
-
borderRadius: "50%",
|
|
313
|
-
objectFit: "cover"
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
) })
|
|
317
|
-
] });
|
|
318
|
-
}
|
|
319
|
-
if (l === r.FT_1X2 || l === r.HT_1X2) {
|
|
320
|
-
const m = s;
|
|
321
|
-
let h = "", f = null;
|
|
322
|
-
return m === "1" ? (h = ((Q = t == null ? void 0 : t.homeTeam) == null ? void 0 : Q.name) || "Home", f = (L = (k = t == null ? void 0 : t.homeTeam) == null ? void 0 : k.assets) == null ? void 0 : L.logo) : m === "x" || m === "X" ? h = i("matchQuiz.fixtures.draw") : m === "2" && (h = ((Y = t == null ? void 0 : t.awayTeam) == null ? void 0 : Y.name) || "Away", f = (W = (N = t == null ? void 0 : t.awayTeam) == null ? void 0 : N.assets) == null ? void 0 : W.logo), /* @__PURE__ */ e.jsxs(o, { sx: g, children: [
|
|
323
|
-
f && /* @__PURE__ */ e.jsx(o, { sx: b, children: /* @__PURE__ */ e.jsx(
|
|
324
|
-
"img",
|
|
325
|
-
{
|
|
326
|
-
src: f,
|
|
327
|
-
alt: h,
|
|
328
|
-
style: {
|
|
329
|
-
width: "100%",
|
|
330
|
-
height: "100%",
|
|
331
|
-
borderRadius: "50%",
|
|
332
|
-
objectFit: "cover"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
) }),
|
|
336
|
-
/* @__PURE__ */ e.jsx(c, { sx: S, children: h })
|
|
337
|
-
] });
|
|
338
|
-
}
|
|
339
|
-
if (l.includes("PLAYER_")) {
|
|
340
|
-
if (Array.isArray(s) && n.playerModels) {
|
|
341
|
-
const m = s.map((f) => {
|
|
342
|
-
var d;
|
|
343
|
-
return (d = n.playerModels) == null ? void 0 : d.find(
|
|
344
|
-
(y) => y.id === f
|
|
345
|
-
);
|
|
346
|
-
}).filter(Boolean);
|
|
347
|
-
if (m.length === 0)
|
|
348
|
-
return /* @__PURE__ */ e.jsx(o, { sx: g, children: /* @__PURE__ */ e.jsx(c, { sx: S, children: i("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
349
|
-
const h = m[0];
|
|
350
|
-
return /* @__PURE__ */ e.jsxs(o, { sx: g, children: [
|
|
351
|
-
/* @__PURE__ */ e.jsx(o, { sx: j, children: (B = h == null ? void 0 : h.assets) != null && B.headshot ? /* @__PURE__ */ e.jsx(
|
|
352
|
-
"img",
|
|
353
|
-
{
|
|
354
|
-
src: h.assets.headshot,
|
|
355
|
-
alt: h.name,
|
|
356
|
-
style: {
|
|
357
|
-
width: "100%",
|
|
358
|
-
height: "100%",
|
|
359
|
-
objectFit: "cover",
|
|
360
|
-
borderRadius: "50%"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
) : /* @__PURE__ */ e.jsx(
|
|
364
|
-
ae,
|
|
365
|
-
{
|
|
366
|
-
sx: { fontSize: "0.75em", color: H }
|
|
367
|
-
}
|
|
368
|
-
) }),
|
|
369
|
-
/* @__PURE__ */ e.jsx(c, { sx: S, children: m.map((f) => f == null ? void 0 : f.name).join(", ") })
|
|
370
|
-
] });
|
|
371
|
-
}
|
|
372
|
-
return /* @__PURE__ */ e.jsx(o, { sx: g, children: /* @__PURE__ */ e.jsx(c, { sx: S, children: i("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
373
|
-
}
|
|
374
|
-
if (l === r.PENALTY_MATCH || l === r.RED_CARD_MATCH || l.includes("OVER_")) {
|
|
375
|
-
const m = s === !0;
|
|
376
|
-
return /* @__PURE__ */ e.jsx(o, { sx: g, children: /* @__PURE__ */ e.jsx(c, { sx: S, children: i(m ? "matchQuiz.fixtures.yes" : "matchQuiz.fixtures.no") }) });
|
|
377
|
-
}
|
|
378
|
-
if (l === r.CORNERS_MATCH) {
|
|
379
|
-
const m = s || 6;
|
|
380
|
-
return /* @__PURE__ */ e.jsx(o, { sx: g, children: /* @__PURE__ */ e.jsx(c, { sx: S, children: m }) });
|
|
381
|
-
}
|
|
382
|
-
return null;
|
|
383
|
-
};
|
|
384
|
-
return /* @__PURE__ */ e.jsx(
|
|
385
|
-
o,
|
|
386
|
-
{
|
|
387
|
-
sx: {
|
|
388
|
-
borderRadius: $,
|
|
389
|
-
p: R.md,
|
|
390
|
-
display: "flex",
|
|
391
|
-
flexDirection: "column",
|
|
392
|
-
alignItems: "center",
|
|
393
|
-
alignSelf: "stretch",
|
|
394
|
-
gap: R.md,
|
|
395
|
-
backdropFilter: "blur(4px)",
|
|
396
|
-
position: "relative",
|
|
397
|
-
"&::before": {
|
|
398
|
-
content: '""',
|
|
399
|
-
position: "absolute",
|
|
400
|
-
top: 0,
|
|
401
|
-
left: 0,
|
|
402
|
-
right: 0,
|
|
403
|
-
bottom: 0,
|
|
404
|
-
backgroundColor: pe,
|
|
405
|
-
opacity: 0.5,
|
|
406
|
-
borderRadius: "inherit",
|
|
407
|
-
zIndex: 0,
|
|
408
|
-
backdropFilter: "blur(4px)"
|
|
409
|
-
},
|
|
410
|
-
"& > *": {
|
|
411
|
-
position: "relative",
|
|
412
|
-
zIndex: 1
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
416
|
-
o,
|
|
417
|
-
{
|
|
418
|
-
sx: {
|
|
419
|
-
display: "flex",
|
|
420
|
-
flexDirection: "column",
|
|
421
|
-
alignItems: "flex-start",
|
|
422
|
-
gap: "12px",
|
|
423
|
-
alignSelf: "stretch"
|
|
424
|
-
},
|
|
425
|
-
children: [
|
|
426
|
-
/* @__PURE__ */ e.jsxs(
|
|
427
|
-
o,
|
|
428
|
-
{
|
|
429
|
-
sx: {
|
|
430
|
-
display: "flex",
|
|
431
|
-
justifyContent: "space-between",
|
|
432
|
-
alignItems: "center",
|
|
433
|
-
alignSelf: "stretch"
|
|
434
|
-
},
|
|
435
|
-
children: [
|
|
436
|
-
/* @__PURE__ */ e.jsx(
|
|
437
|
-
c,
|
|
438
|
-
{
|
|
439
|
-
sx: {
|
|
440
|
-
color: O,
|
|
441
|
-
fontFamily: A,
|
|
442
|
-
fontSize: "1.25em",
|
|
443
|
-
fontStyle: "normal",
|
|
444
|
-
fontWeight: 500,
|
|
445
|
-
lineHeight: "120%",
|
|
446
|
-
letterSpacing: "0.15px",
|
|
447
|
-
flex: 1
|
|
448
|
-
},
|
|
449
|
-
children: V(a.market)
|
|
450
|
-
}
|
|
451
|
-
),
|
|
452
|
-
!p && /* @__PURE__ */ e.jsx(
|
|
453
|
-
De,
|
|
454
|
-
{
|
|
455
|
-
market: a.market,
|
|
456
|
-
earnedPoints: (te = x == null ? void 0 : x.result) == null ? void 0 : te.points
|
|
457
|
-
}
|
|
458
|
-
)
|
|
459
|
-
]
|
|
460
|
-
}
|
|
461
|
-
),
|
|
462
|
-
/* @__PURE__ */ e.jsxs(
|
|
463
|
-
o,
|
|
464
|
-
{
|
|
465
|
-
sx: {
|
|
466
|
-
alignSelf: "stretch",
|
|
467
|
-
display: "flex",
|
|
468
|
-
flexDirection: "column",
|
|
469
|
-
gap: R.xs
|
|
470
|
-
},
|
|
471
|
-
children: [
|
|
472
|
-
/* @__PURE__ */ e.jsxs(
|
|
473
|
-
o,
|
|
474
|
-
{
|
|
475
|
-
sx: {
|
|
476
|
-
display: "flex",
|
|
477
|
-
alignItems: "center",
|
|
478
|
-
gap: R.xs
|
|
479
|
-
},
|
|
480
|
-
children: [
|
|
481
|
-
/* @__PURE__ */ e.jsx(
|
|
482
|
-
c,
|
|
483
|
-
{
|
|
484
|
-
sx: {
|
|
485
|
-
color: I(a, x) ? u ? C.colorSchemes.dark.palette.success.plainColor : ge : u ? C.colorSchemes.dark.palette.danger.plainColor : ye,
|
|
486
|
-
fontFamily: G,
|
|
487
|
-
fontSize: "1em",
|
|
488
|
-
fontStyle: "normal",
|
|
489
|
-
fontWeight: I(a, x) ? 700 : 600,
|
|
490
|
-
lineHeight: "20px",
|
|
491
|
-
letterSpacing: "0.15px"
|
|
492
|
-
},
|
|
493
|
-
children: i("matchQuiz.yourPrediction")
|
|
494
|
-
}
|
|
495
|
-
),
|
|
496
|
-
Te(x, a)
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
),
|
|
500
|
-
!I(a, x) && /* @__PURE__ */ e.jsxs(
|
|
501
|
-
o,
|
|
502
|
-
{
|
|
503
|
-
sx: {
|
|
504
|
-
display: "flex",
|
|
505
|
-
alignItems: "center",
|
|
506
|
-
gap: R.xs
|
|
507
|
-
},
|
|
508
|
-
children: [
|
|
509
|
-
/* @__PURE__ */ e.jsx(
|
|
510
|
-
c,
|
|
511
|
-
{
|
|
512
|
-
sx: {
|
|
513
|
-
color: O,
|
|
514
|
-
fontFamily: G,
|
|
515
|
-
fontSize: "1em",
|
|
516
|
-
fontStyle: "normal",
|
|
517
|
-
fontWeight: 600,
|
|
518
|
-
lineHeight: "20px",
|
|
519
|
-
letterSpacing: "0.15px"
|
|
520
|
-
},
|
|
521
|
-
children: i("matchQuiz.correctPrediction")
|
|
522
|
-
}
|
|
523
|
-
),
|
|
524
|
-
je(a)
|
|
525
|
-
]
|
|
526
|
-
}
|
|
527
|
-
)
|
|
528
|
-
]
|
|
529
|
-
}
|
|
530
|
-
),
|
|
531
|
-
p && ((re = x == null ? void 0 : x.result) == null ? void 0 : re.points) > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
532
|
-
/* @__PURE__ */ e.jsx(
|
|
533
|
-
o,
|
|
534
|
-
{
|
|
535
|
-
sx: {
|
|
536
|
-
width: "100%",
|
|
537
|
-
height: "1px",
|
|
538
|
-
backgroundColor: U
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
),
|
|
542
|
-
/* @__PURE__ */ e.jsx(
|
|
543
|
-
o,
|
|
544
|
-
{
|
|
545
|
-
sx: {
|
|
546
|
-
display: "flex",
|
|
547
|
-
justifyContent: "flex-start",
|
|
548
|
-
alignItems: "center",
|
|
549
|
-
alignSelf: "stretch"
|
|
550
|
-
},
|
|
551
|
-
children: /* @__PURE__ */ e.jsx(
|
|
552
|
-
c,
|
|
553
|
-
{
|
|
554
|
-
sx: {
|
|
555
|
-
color: O,
|
|
556
|
-
fontFamily: G,
|
|
557
|
-
fontSize: "1em",
|
|
558
|
-
fontStyle: "normal",
|
|
559
|
-
fontWeight: 600,
|
|
560
|
-
lineHeight: "20px",
|
|
561
|
-
letterSpacing: "0.15px"
|
|
562
|
-
},
|
|
563
|
-
children: a.market === r.CORRECT_SCORE_ADVANCED ? `${i("matchQuiz.earnedPoints")}: ${(se = x == null ? void 0 : x.result) == null ? void 0 : se.points}/${Ce}` : `${i("matchQuiz.earnedPoints")}: ${(oe = x == null ? void 0 : x.result) == null ? void 0 : oe.points}`
|
|
564
|
-
}
|
|
565
|
-
)
|
|
566
|
-
}
|
|
567
|
-
)
|
|
568
|
-
] })
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
|
-
`single-prediction-${a.market}-${a.matchId}`
|
|
572
|
-
)
|
|
573
|
-
},
|
|
574
|
-
`user-prediction-${a.market}-${a.matchId}`
|
|
575
|
-
);
|
|
576
|
-
};
|
|
577
|
-
return /* @__PURE__ */ e.jsx(o, { sx: { width: "100%" }, children: /* @__PURE__ */ e.jsxs(
|
|
578
|
-
_e,
|
|
579
|
-
{
|
|
580
|
-
value: me,
|
|
581
|
-
onChange: (a, x) => he(x),
|
|
582
|
-
sx: {
|
|
583
|
-
borderRadius: $,
|
|
584
|
-
width: "100%",
|
|
585
|
-
// Ensure tabs container takes full width
|
|
586
|
-
backgroundColor: "transparent"
|
|
587
|
-
},
|
|
588
|
-
children: [
|
|
589
|
-
/* @__PURE__ */ e.jsxs(
|
|
590
|
-
Ae,
|
|
591
|
-
{
|
|
592
|
-
sx: {
|
|
593
|
-
fontSize: v ? "0.75em" : "1em",
|
|
594
|
-
"--Icon-fontSize": v ? "1em" : "1.25em"
|
|
595
|
-
},
|
|
596
|
-
children: [
|
|
597
|
-
/* @__PURE__ */ e.jsx(
|
|
598
|
-
ie,
|
|
599
|
-
{
|
|
600
|
-
sx: {
|
|
601
|
-
display: "flex",
|
|
602
|
-
flexDirection: "column",
|
|
603
|
-
justifyContent: "center",
|
|
604
|
-
alignItems: "center",
|
|
605
|
-
flex: 1,
|
|
606
|
-
// Make each tab take equal width
|
|
607
|
-
borderBottom: "1px solid " + J,
|
|
608
|
-
opacity: "60%",
|
|
609
|
-
"&:not(.Mui-selected):hover": {
|
|
610
|
-
bgcolor: u ? "#FAFAFA14" : "#2121210A"
|
|
611
|
-
// Highlight selected tab
|
|
612
|
-
},
|
|
613
|
-
[`&.${ne.selected}`]: {
|
|
614
|
-
bgcolor: u ? "#FAFAFA14" : "#2121210A",
|
|
615
|
-
// Highlight selected tab
|
|
616
|
-
borderBottom: "3px solid " + q,
|
|
617
|
-
opacity: "100%",
|
|
618
|
-
mb: "-1px"
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
disableIndicator: !0,
|
|
622
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
623
|
-
o,
|
|
624
|
-
{
|
|
625
|
-
sx: {
|
|
626
|
-
display: "flex",
|
|
627
|
-
py: "12px",
|
|
628
|
-
px: "16px",
|
|
629
|
-
justifyContent: "center",
|
|
630
|
-
alignItems: "center",
|
|
631
|
-
gap: "8px",
|
|
632
|
-
width: "100%"
|
|
633
|
-
// Ensure inner box also takes full width
|
|
634
|
-
},
|
|
635
|
-
children: [
|
|
636
|
-
/* @__PURE__ */ e.jsx(
|
|
637
|
-
"img",
|
|
638
|
-
{
|
|
639
|
-
src: Pe,
|
|
640
|
-
alt: "results-icon",
|
|
641
|
-
style: {
|
|
642
|
-
display: "flex",
|
|
643
|
-
width: "24px",
|
|
644
|
-
height: "24px",
|
|
645
|
-
justifyContent: "center",
|
|
646
|
-
alignItems: "center",
|
|
647
|
-
filter: u || C.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
),
|
|
651
|
-
/* @__PURE__ */ e.jsx(
|
|
652
|
-
c,
|
|
653
|
-
{
|
|
654
|
-
sx: {
|
|
655
|
-
color: H,
|
|
656
|
-
fontFamily: A,
|
|
657
|
-
fontSize: "1em",
|
|
658
|
-
fontStyle: "normal",
|
|
659
|
-
fontWeight: 500,
|
|
660
|
-
lineHeight: "24px",
|
|
661
|
-
letterSpacing: "0.4px",
|
|
662
|
-
textTransform: "uppercase"
|
|
663
|
-
},
|
|
664
|
-
children: i("matchQuiz.leaderboard.title")
|
|
665
|
-
}
|
|
666
|
-
)
|
|
667
|
-
]
|
|
668
|
-
}
|
|
669
|
-
)
|
|
670
|
-
}
|
|
671
|
-
),
|
|
672
|
-
/* @__PURE__ */ e.jsx(
|
|
673
|
-
ie,
|
|
674
|
-
{
|
|
675
|
-
sx: {
|
|
676
|
-
display: "flex",
|
|
677
|
-
flexDirection: "column",
|
|
678
|
-
justifyContent: "center",
|
|
679
|
-
alignItems: "center",
|
|
680
|
-
flex: 1,
|
|
681
|
-
// Make each tab take equal width
|
|
682
|
-
borderBottom: "1px solid " + J,
|
|
683
|
-
opacity: "60%",
|
|
684
|
-
"&:not(.Mui-selected):hover": {
|
|
685
|
-
bgcolor: u ? "#FAFAFA14" : "#2121210A"
|
|
686
|
-
// Highlight selected tab
|
|
687
|
-
},
|
|
688
|
-
[`&.${ne.selected}`]: {
|
|
689
|
-
bgcolor: u ? "#FAFAFA14" : "#2121210A",
|
|
690
|
-
// Highlight selected tab
|
|
691
|
-
borderBottom: "3px solid " + q,
|
|
692
|
-
opacity: "100%",
|
|
693
|
-
mb: "-1px"
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
disableIndicator: !0,
|
|
697
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
698
|
-
o,
|
|
699
|
-
{
|
|
700
|
-
sx: {
|
|
701
|
-
display: "flex",
|
|
702
|
-
py: "12px",
|
|
703
|
-
px: "16px",
|
|
704
|
-
justifyContent: "center",
|
|
705
|
-
alignItems: "center",
|
|
706
|
-
gap: "8px",
|
|
707
|
-
width: "100%"
|
|
708
|
-
// Ensure inner box also takes full width
|
|
709
|
-
},
|
|
710
|
-
children: [
|
|
711
|
-
/* @__PURE__ */ e.jsx(
|
|
712
|
-
"img",
|
|
713
|
-
{
|
|
714
|
-
src: Ie,
|
|
715
|
-
alt: "predictions-icon",
|
|
716
|
-
style: {
|
|
717
|
-
display: "flex",
|
|
718
|
-
width: "24px",
|
|
719
|
-
height: "24px",
|
|
720
|
-
justifyContent: "center",
|
|
721
|
-
alignItems: "center",
|
|
722
|
-
filter: u || C.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
),
|
|
726
|
-
/* @__PURE__ */ e.jsx(
|
|
727
|
-
c,
|
|
728
|
-
{
|
|
729
|
-
sx: {
|
|
730
|
-
color: H,
|
|
731
|
-
fontFamily: A,
|
|
732
|
-
fontSize: "1em",
|
|
733
|
-
fontStyle: "normal",
|
|
734
|
-
fontWeight: 500,
|
|
735
|
-
lineHeight: "24px",
|
|
736
|
-
letterSpacing: "0.4px",
|
|
737
|
-
textTransform: "uppercase"
|
|
738
|
-
},
|
|
739
|
-
children: i("matchQuiz.predictions")
|
|
740
|
-
}
|
|
741
|
-
)
|
|
742
|
-
]
|
|
743
|
-
}
|
|
744
|
-
)
|
|
745
|
-
}
|
|
746
|
-
)
|
|
747
|
-
]
|
|
748
|
-
}
|
|
749
|
-
),
|
|
750
|
-
/* @__PURE__ */ e.jsx(
|
|
751
|
-
le,
|
|
752
|
-
{
|
|
753
|
-
value: 0,
|
|
754
|
-
sx: {
|
|
755
|
-
...xe,
|
|
756
|
-
fontSize: p ? "0.625em" : v ? "0.75em" : "1em"
|
|
757
|
-
},
|
|
758
|
-
children: de
|
|
759
|
-
}
|
|
760
|
-
),
|
|
761
|
-
/* @__PURE__ */ e.jsx(
|
|
762
|
-
le,
|
|
763
|
-
{
|
|
764
|
-
value: 1,
|
|
765
|
-
sx: {
|
|
766
|
-
overflowY: "auto",
|
|
767
|
-
maxHeight: v ? "auto" : "450px",
|
|
768
|
-
fontSize: p ? "0.75em" : "1em"
|
|
769
|
-
},
|
|
770
|
-
children: /* @__PURE__ */ e.jsx(
|
|
771
|
-
o,
|
|
772
|
-
{
|
|
773
|
-
sx: {
|
|
774
|
-
display: "flex",
|
|
775
|
-
flexDirection: "column",
|
|
776
|
-
justifyContent: "center",
|
|
777
|
-
alignItems: "center",
|
|
778
|
-
gap: "16px",
|
|
779
|
-
alignSelf: "stretch"
|
|
780
|
-
},
|
|
781
|
-
children: w != null && w.results.some((a) => {
|
|
782
|
-
var V;
|
|
783
|
-
return (V = z == null ? void 0 : z.fixtures) == null ? void 0 : V.find(
|
|
784
|
-
(I) => I.market === a.market
|
|
785
|
-
);
|
|
786
|
-
}) ? w == null ? void 0 : w.results.map((a) => Se(a)) : (
|
|
787
|
-
// Empty state when user has no predictions
|
|
788
|
-
/* @__PURE__ */ e.jsx(
|
|
789
|
-
o,
|
|
790
|
-
{
|
|
791
|
-
sx: {
|
|
792
|
-
display: "flex",
|
|
793
|
-
flexDirection: "column",
|
|
794
|
-
justifyContent: "center",
|
|
795
|
-
alignItems: "center",
|
|
796
|
-
gap: R.lg,
|
|
797
|
-
alignSelf: "stretch",
|
|
798
|
-
minHeight: "200px",
|
|
799
|
-
textAlign: "center",
|
|
800
|
-
py: R.xl
|
|
801
|
-
},
|
|
802
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
803
|
-
o,
|
|
804
|
-
{
|
|
805
|
-
sx: {
|
|
806
|
-
display: "flex",
|
|
807
|
-
flexDirection: "column",
|
|
808
|
-
gap: R.xs,
|
|
809
|
-
alignItems: "center"
|
|
810
|
-
},
|
|
811
|
-
children: [
|
|
812
|
-
/* @__PURE__ */ e.jsx(
|
|
813
|
-
c,
|
|
814
|
-
{
|
|
815
|
-
sx: {
|
|
816
|
-
color: O,
|
|
817
|
-
fontFamily: A,
|
|
818
|
-
fontSize: "1.25em",
|
|
819
|
-
fontWeight: 600,
|
|
820
|
-
lineHeight: "1.2"
|
|
821
|
-
},
|
|
822
|
-
children: i("matchQuiz.noPredictions.title")
|
|
823
|
-
}
|
|
824
|
-
),
|
|
825
|
-
/* @__PURE__ */ e.jsx(
|
|
826
|
-
c,
|
|
827
|
-
{
|
|
828
|
-
sx: {
|
|
829
|
-
color: H,
|
|
830
|
-
fontFamily: G,
|
|
831
|
-
fontSize: "1em",
|
|
832
|
-
fontWeight: 400,
|
|
833
|
-
lineHeight: "1.4"
|
|
834
|
-
},
|
|
835
|
-
children: i("matchQuiz.noPredictions.description")
|
|
836
|
-
}
|
|
837
|
-
)
|
|
838
|
-
]
|
|
839
|
-
}
|
|
840
|
-
)
|
|
841
|
-
}
|
|
842
|
-
)
|
|
843
|
-
)
|
|
844
|
-
}
|
|
845
|
-
)
|
|
846
|
-
}
|
|
847
|
-
)
|
|
848
|
-
]
|
|
849
|
-
}
|
|
850
|
-
) });
|
|
851
|
-
};
|
|
852
|
-
export {
|
|
853
|
-
et as default
|
|
854
|
-
};
|