fansunited-frontend-components 0.0.31-RC3 → 0.0.31-RC5
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.d.ts +4 -0
- package/ClassicQuizPlay.d.ts.map +1 -0
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.d.ts +4 -0
- package/CollectLead.d.ts.map +1 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.d.ts +4 -0
- package/EventGamePlay.d.ts.map +1 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.d.ts +4 -0
- package/MatchQuizPlay.d.ts.map +1 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.d.ts +4 -0
- package/PersonalityQuizPlay.d.ts.map +1 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.d.ts +4 -0
- package/PollVote.d.ts.map +1 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -105201
package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js
ADDED
|
@@ -0,0 +1,854 @@
|
|
|
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
|
+
};
|