fansunited-frontend-components 0.0.31-RC4 → 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.js +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -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.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 -86783
package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js
ADDED
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { Box as t, Tabs as L, TabList as Y, Tab as E, tabClasses as P, Typography as i, TabPanel as G } from "@mui/joy";
|
|
4
|
+
import { useInternalTheme as q, isMobile as J, isExtraSmall as K, useCornerRadius as Q, useColors as d, useFontFamily as R, useSpacingScale as X } 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 "../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
import Z from "../../../assets/school.svg.js";
|
|
10
|
+
import O from "../../../assets/sports_score.svg.js";
|
|
11
|
+
import { EventGameOutcomeTypeEnum as m } from "fansunited-sdk-esm";
|
|
12
|
+
import { useTranslation as V } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
+
const me = ({
|
|
14
|
+
prediction: p,
|
|
15
|
+
game: B,
|
|
16
|
+
resultsTabPanelSxProps: T,
|
|
17
|
+
isOverlayVariant: r,
|
|
18
|
+
children: v,
|
|
19
|
+
brandingColors: f
|
|
20
|
+
}) => {
|
|
21
|
+
const [H, W] = _.useState(0), l = q(), { t: x } = V(), b = J(), y = K(), S = Q().md, h = r ? l.colorSchemes.dark.textPrimary : d().textPrimary, F = r ? l.colorSchemes.dark.textSecondary : d().textSecondary, u = R().primary, j = R().secondary, z = r ? l.colorSchemes.dark.secondaryContainer : d().secondaryContainer, w = f != null && f.backgroundColor || r ? l.colorSchemes.dark.surfaceVariant : d().surfaceVariant, c = X(), N = r ? l.colorSchemes.dark.palette.success.plainColor : d().palette.success.plainColor, D = r ? l.colorSchemes.dark.palette.danger.plainColor : d().palette.danger.plainColor, C = r ? l.colorSchemes.dark.outlineEnabledBorder : d().outlineEnabledBorder, k = r ? l.colorSchemes.dark.palette.neutral.softBg : d().palette.neutral.softBg;
|
|
22
|
+
let I = r ? l.colorSchemes.dark.textPrimary : d().textPrimary;
|
|
23
|
+
f != null && f.primaryColor && (I = f.primaryColor);
|
|
24
|
+
const $ = (s, o) => {
|
|
25
|
+
const n = {
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
gap: c.xs,
|
|
29
|
+
fontSize: "0.875em",
|
|
30
|
+
padding: "2px 6px",
|
|
31
|
+
minHeight: "20px",
|
|
32
|
+
borderRadius: S,
|
|
33
|
+
border: `1px solid ${C}`,
|
|
34
|
+
backgroundColor: k,
|
|
35
|
+
width: "fit-content"
|
|
36
|
+
}, a = {
|
|
37
|
+
fontFamily: u,
|
|
38
|
+
fontWeight: 500,
|
|
39
|
+
fontSize: "0.875em",
|
|
40
|
+
color: h
|
|
41
|
+
};
|
|
42
|
+
if (o === m.BOOLEAN) {
|
|
43
|
+
const g = s === !0;
|
|
44
|
+
return /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: x(g ? "eventGame.fixtures.yes" : "eventGame.fixtures.no") }) });
|
|
45
|
+
}
|
|
46
|
+
return o === m.NUMBER ? /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: s }) }) : o === m.ENUM || o === m.FREE_INPUT ? /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: s }) }) : null;
|
|
47
|
+
}, M = (s, o) => {
|
|
48
|
+
const n = {
|
|
49
|
+
display: "flex",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
gap: c.xs,
|
|
52
|
+
fontSize: "0.75em",
|
|
53
|
+
padding: "2px 6px",
|
|
54
|
+
minHeight: "20px",
|
|
55
|
+
borderRadius: S,
|
|
56
|
+
border: `1px solid ${C}`,
|
|
57
|
+
backgroundColor: k,
|
|
58
|
+
width: "fit-content"
|
|
59
|
+
}, a = {
|
|
60
|
+
fontFamily: u,
|
|
61
|
+
fontWeight: 500,
|
|
62
|
+
fontSize: y ? "0.75em" : "0.875em",
|
|
63
|
+
color: h
|
|
64
|
+
};
|
|
65
|
+
if (o === m.BOOLEAN) {
|
|
66
|
+
const g = s === !0;
|
|
67
|
+
return /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: x(g ? "eventGame.fixtures.yes" : "eventGame.fixtures.no") }) });
|
|
68
|
+
}
|
|
69
|
+
return o === m.NUMBER ? /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: s }) }) : o === m.ENUM || o === m.FREE_INPUT ? /* @__PURE__ */ e.jsx(t, { sx: n, children: /* @__PURE__ */ e.jsx(i, { sx: a, children: s }) }) : null;
|
|
70
|
+
}, U = (s) => {
|
|
71
|
+
var g;
|
|
72
|
+
const o = B.fixtures.find((A) => A.id === s), n = (g = p == null ? void 0 : p.fixtures) == null ? void 0 : g.find(
|
|
73
|
+
(A) => A.id === s
|
|
74
|
+
);
|
|
75
|
+
if (!o || !n) return null;
|
|
76
|
+
const a = n.correct === !0;
|
|
77
|
+
return /* @__PURE__ */ e.jsx(
|
|
78
|
+
t,
|
|
79
|
+
{
|
|
80
|
+
sx: {
|
|
81
|
+
borderRadius: S,
|
|
82
|
+
p: c.md,
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
alignSelf: "stretch",
|
|
87
|
+
gap: c.md,
|
|
88
|
+
backdropFilter: "blur(4px)",
|
|
89
|
+
position: "relative",
|
|
90
|
+
"&::before": {
|
|
91
|
+
content: '""',
|
|
92
|
+
position: "absolute",
|
|
93
|
+
top: 0,
|
|
94
|
+
left: 0,
|
|
95
|
+
right: 0,
|
|
96
|
+
bottom: 0,
|
|
97
|
+
backgroundColor: w,
|
|
98
|
+
opacity: 0.5,
|
|
99
|
+
borderRadius: "inherit",
|
|
100
|
+
zIndex: 0,
|
|
101
|
+
backdropFilter: "blur(4px)"
|
|
102
|
+
},
|
|
103
|
+
"& > *": {
|
|
104
|
+
position: "relative",
|
|
105
|
+
zIndex: 1
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
109
|
+
t,
|
|
110
|
+
{
|
|
111
|
+
sx: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
flexDirection: "column",
|
|
114
|
+
alignItems: "flex-start",
|
|
115
|
+
gap: "12px",
|
|
116
|
+
alignSelf: "stretch"
|
|
117
|
+
},
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ e.jsxs(
|
|
120
|
+
t,
|
|
121
|
+
{
|
|
122
|
+
sx: {
|
|
123
|
+
display: "flex",
|
|
124
|
+
justifyContent: "space-between",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
alignSelf: "stretch"
|
|
127
|
+
},
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ e.jsx(
|
|
130
|
+
i,
|
|
131
|
+
{
|
|
132
|
+
sx: {
|
|
133
|
+
color: h,
|
|
134
|
+
fontFamily: u,
|
|
135
|
+
fontSize: "1.25em",
|
|
136
|
+
fontStyle: "normal",
|
|
137
|
+
fontWeight: 500,
|
|
138
|
+
lineHeight: "120%",
|
|
139
|
+
letterSpacing: "0.15px",
|
|
140
|
+
flex: 1
|
|
141
|
+
},
|
|
142
|
+
children: o.question
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
!y && n.points !== void 0 && n.points !== null && /* @__PURE__ */ e.jsx(
|
|
146
|
+
t,
|
|
147
|
+
{
|
|
148
|
+
sx: {
|
|
149
|
+
display: "flex",
|
|
150
|
+
alignItems: "center",
|
|
151
|
+
gap: c.xs,
|
|
152
|
+
padding: `${c.xs} ${c.sm}`,
|
|
153
|
+
borderRadius: S,
|
|
154
|
+
backgroundColor: k
|
|
155
|
+
},
|
|
156
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
157
|
+
i,
|
|
158
|
+
{
|
|
159
|
+
sx: {
|
|
160
|
+
color: h,
|
|
161
|
+
fontFamily: j,
|
|
162
|
+
fontSize: "0.875em",
|
|
163
|
+
fontWeight: 600
|
|
164
|
+
},
|
|
165
|
+
children: [
|
|
166
|
+
n.points,
|
|
167
|
+
" ",
|
|
168
|
+
x("eventGame.points.pts")
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ e.jsxs(
|
|
178
|
+
t,
|
|
179
|
+
{
|
|
180
|
+
sx: {
|
|
181
|
+
alignSelf: "stretch",
|
|
182
|
+
display: "flex",
|
|
183
|
+
flexDirection: "column",
|
|
184
|
+
gap: c.xs
|
|
185
|
+
},
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ e.jsxs(
|
|
188
|
+
t,
|
|
189
|
+
{
|
|
190
|
+
sx: {
|
|
191
|
+
display: "flex",
|
|
192
|
+
alignItems: "center",
|
|
193
|
+
gap: c.xs
|
|
194
|
+
},
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ e.jsx(
|
|
197
|
+
i,
|
|
198
|
+
{
|
|
199
|
+
sx: {
|
|
200
|
+
color: a ? r ? l.colorSchemes.dark.palette.success.plainColor : N : r ? l.colorSchemes.dark.palette.danger.plainColor : D,
|
|
201
|
+
fontFamily: j,
|
|
202
|
+
fontSize: "1em",
|
|
203
|
+
fontStyle: "normal",
|
|
204
|
+
fontWeight: a ? 700 : 600,
|
|
205
|
+
lineHeight: "20px",
|
|
206
|
+
letterSpacing: "0.15px"
|
|
207
|
+
},
|
|
208
|
+
children: x("eventGame.yourPrediction")
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
$(
|
|
212
|
+
n.prediction,
|
|
213
|
+
o.outcomeType
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
!a && o.outcome !== null && o.outcome !== void 0 && /* @__PURE__ */ e.jsxs(
|
|
219
|
+
t,
|
|
220
|
+
{
|
|
221
|
+
sx: {
|
|
222
|
+
display: "flex",
|
|
223
|
+
alignItems: "center",
|
|
224
|
+
gap: c.xs
|
|
225
|
+
},
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ e.jsx(
|
|
228
|
+
i,
|
|
229
|
+
{
|
|
230
|
+
sx: {
|
|
231
|
+
color: h,
|
|
232
|
+
fontFamily: j,
|
|
233
|
+
fontSize: "1em",
|
|
234
|
+
fontStyle: "normal",
|
|
235
|
+
fontWeight: 600,
|
|
236
|
+
lineHeight: "20px",
|
|
237
|
+
letterSpacing: "0.15px"
|
|
238
|
+
},
|
|
239
|
+
children: x("eventGame.correctPrediction")
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
M(
|
|
243
|
+
o.outcome,
|
|
244
|
+
o.outcomeType
|
|
245
|
+
)
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
y && n.points !== void 0 && n.points !== null && n.points > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
253
|
+
/* @__PURE__ */ e.jsx(
|
|
254
|
+
t,
|
|
255
|
+
{
|
|
256
|
+
sx: {
|
|
257
|
+
width: "100%",
|
|
258
|
+
height: "1px",
|
|
259
|
+
backgroundColor: C
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
/* @__PURE__ */ e.jsx(
|
|
264
|
+
t,
|
|
265
|
+
{
|
|
266
|
+
sx: {
|
|
267
|
+
display: "flex",
|
|
268
|
+
justifyContent: "flex-start",
|
|
269
|
+
alignItems: "center",
|
|
270
|
+
alignSelf: "stretch"
|
|
271
|
+
},
|
|
272
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
273
|
+
i,
|
|
274
|
+
{
|
|
275
|
+
sx: {
|
|
276
|
+
color: h,
|
|
277
|
+
fontFamily: j,
|
|
278
|
+
fontSize: "1em",
|
|
279
|
+
fontStyle: "normal",
|
|
280
|
+
fontWeight: 600,
|
|
281
|
+
lineHeight: "20px",
|
|
282
|
+
letterSpacing: "0.15px"
|
|
283
|
+
},
|
|
284
|
+
children: [
|
|
285
|
+
x("eventGame.earnedPoints"),
|
|
286
|
+
": ",
|
|
287
|
+
n.points
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
] })
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
`single-prediction-${s}`
|
|
297
|
+
)
|
|
298
|
+
},
|
|
299
|
+
`user-prediction-${s}`
|
|
300
|
+
);
|
|
301
|
+
};
|
|
302
|
+
return /* @__PURE__ */ e.jsx(t, { sx: { width: "100%" }, children: /* @__PURE__ */ e.jsxs(
|
|
303
|
+
L,
|
|
304
|
+
{
|
|
305
|
+
value: H,
|
|
306
|
+
onChange: (s, o) => W(o),
|
|
307
|
+
sx: {
|
|
308
|
+
borderRadius: S,
|
|
309
|
+
width: "100%",
|
|
310
|
+
// Ensure tabs container takes full width
|
|
311
|
+
backgroundColor: "transparent"
|
|
312
|
+
},
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ e.jsxs(
|
|
315
|
+
Y,
|
|
316
|
+
{
|
|
317
|
+
sx: {
|
|
318
|
+
fontSize: b ? "0.75em" : "1em",
|
|
319
|
+
"--Icon-fontSize": b ? "1em" : "1.25em"
|
|
320
|
+
},
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ e.jsx(
|
|
323
|
+
E,
|
|
324
|
+
{
|
|
325
|
+
sx: {
|
|
326
|
+
display: "flex",
|
|
327
|
+
flexDirection: "column",
|
|
328
|
+
justifyContent: "center",
|
|
329
|
+
alignItems: "center",
|
|
330
|
+
flex: 1,
|
|
331
|
+
// Make each tab take equal width
|
|
332
|
+
borderBottom: "1px solid " + z,
|
|
333
|
+
opacity: "60%",
|
|
334
|
+
"&:not(.Mui-selected):hover": {
|
|
335
|
+
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
336
|
+
// Highlight selected tab
|
|
337
|
+
},
|
|
338
|
+
[`&.${P.selected}`]: {
|
|
339
|
+
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
340
|
+
// Highlight selected tab
|
|
341
|
+
borderBottom: "3px solid " + I,
|
|
342
|
+
opacity: "100%",
|
|
343
|
+
mb: "-1px"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
disableIndicator: !0,
|
|
347
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
348
|
+
t,
|
|
349
|
+
{
|
|
350
|
+
sx: {
|
|
351
|
+
display: "flex",
|
|
352
|
+
py: "12px",
|
|
353
|
+
px: "16px",
|
|
354
|
+
justifyContent: "center",
|
|
355
|
+
alignItems: "center",
|
|
356
|
+
gap: "8px",
|
|
357
|
+
width: "100%"
|
|
358
|
+
// Ensure inner box also takes full width
|
|
359
|
+
},
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ e.jsx(
|
|
362
|
+
"img",
|
|
363
|
+
{
|
|
364
|
+
src: O,
|
|
365
|
+
alt: "results-icon",
|
|
366
|
+
style: {
|
|
367
|
+
display: "flex",
|
|
368
|
+
width: "24px",
|
|
369
|
+
height: "24px",
|
|
370
|
+
justifyContent: "center",
|
|
371
|
+
alignItems: "center",
|
|
372
|
+
filter: r || l.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
),
|
|
376
|
+
/* @__PURE__ */ e.jsx(
|
|
377
|
+
i,
|
|
378
|
+
{
|
|
379
|
+
sx: {
|
|
380
|
+
color: F,
|
|
381
|
+
fontFamily: u,
|
|
382
|
+
fontSize: "1em",
|
|
383
|
+
fontStyle: "normal",
|
|
384
|
+
fontWeight: 500,
|
|
385
|
+
lineHeight: "24px",
|
|
386
|
+
letterSpacing: "0.4px",
|
|
387
|
+
textTransform: "uppercase"
|
|
388
|
+
},
|
|
389
|
+
children: x("eventGame.leaderboard.title")
|
|
390
|
+
}
|
|
391
|
+
)
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
/* @__PURE__ */ e.jsx(
|
|
398
|
+
E,
|
|
399
|
+
{
|
|
400
|
+
sx: {
|
|
401
|
+
display: "flex",
|
|
402
|
+
flexDirection: "column",
|
|
403
|
+
justifyContent: "center",
|
|
404
|
+
alignItems: "center",
|
|
405
|
+
flex: 1,
|
|
406
|
+
// Make each tab take equal width
|
|
407
|
+
borderBottom: "1px solid " + z,
|
|
408
|
+
opacity: "60%",
|
|
409
|
+
"&:not(.Mui-selected):hover": {
|
|
410
|
+
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
411
|
+
// Highlight selected tab
|
|
412
|
+
},
|
|
413
|
+
[`&.${P.selected}`]: {
|
|
414
|
+
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
415
|
+
// Highlight selected tab
|
|
416
|
+
borderBottom: "3px solid " + I,
|
|
417
|
+
opacity: "100%",
|
|
418
|
+
mb: "-1px"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
disableIndicator: !0,
|
|
422
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
423
|
+
t,
|
|
424
|
+
{
|
|
425
|
+
sx: {
|
|
426
|
+
display: "flex",
|
|
427
|
+
py: "12px",
|
|
428
|
+
px: "16px",
|
|
429
|
+
justifyContent: "center",
|
|
430
|
+
alignItems: "center",
|
|
431
|
+
gap: "8px",
|
|
432
|
+
width: "100%"
|
|
433
|
+
// Ensure inner box also takes full width
|
|
434
|
+
},
|
|
435
|
+
children: [
|
|
436
|
+
/* @__PURE__ */ e.jsx(
|
|
437
|
+
"img",
|
|
438
|
+
{
|
|
439
|
+
src: Z,
|
|
440
|
+
alt: "predictions-icon",
|
|
441
|
+
style: {
|
|
442
|
+
display: "flex",
|
|
443
|
+
width: "24px",
|
|
444
|
+
height: "24px",
|
|
445
|
+
justifyContent: "center",
|
|
446
|
+
alignItems: "center",
|
|
447
|
+
filter: r || l.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ e.jsx(
|
|
452
|
+
i,
|
|
453
|
+
{
|
|
454
|
+
sx: {
|
|
455
|
+
color: F,
|
|
456
|
+
fontFamily: u,
|
|
457
|
+
fontSize: "1em",
|
|
458
|
+
fontStyle: "normal",
|
|
459
|
+
fontWeight: 500,
|
|
460
|
+
lineHeight: "24px",
|
|
461
|
+
letterSpacing: "0.4px",
|
|
462
|
+
textTransform: "uppercase"
|
|
463
|
+
},
|
|
464
|
+
children: x("eventGame.predictions")
|
|
465
|
+
}
|
|
466
|
+
)
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
)
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
),
|
|
475
|
+
/* @__PURE__ */ e.jsx(
|
|
476
|
+
G,
|
|
477
|
+
{
|
|
478
|
+
value: 0,
|
|
479
|
+
sx: {
|
|
480
|
+
...T,
|
|
481
|
+
fontSize: y ? "0.625em" : b ? "0.75em" : "1em"
|
|
482
|
+
},
|
|
483
|
+
children: v
|
|
484
|
+
}
|
|
485
|
+
),
|
|
486
|
+
/* @__PURE__ */ e.jsx(
|
|
487
|
+
G,
|
|
488
|
+
{
|
|
489
|
+
value: 1,
|
|
490
|
+
sx: {
|
|
491
|
+
overflowY: "auto",
|
|
492
|
+
maxHeight: b ? "auto" : "450px",
|
|
493
|
+
fontSize: y ? "0.75em" : "1em"
|
|
494
|
+
},
|
|
495
|
+
children: /* @__PURE__ */ e.jsx(
|
|
496
|
+
t,
|
|
497
|
+
{
|
|
498
|
+
sx: {
|
|
499
|
+
display: "flex",
|
|
500
|
+
flexDirection: "column",
|
|
501
|
+
justifyContent: "center",
|
|
502
|
+
alignItems: "center",
|
|
503
|
+
gap: "16px",
|
|
504
|
+
alignSelf: "stretch"
|
|
505
|
+
},
|
|
506
|
+
children: p != null && p.fixtures && p.fixtures.length > 0 ? B.fixtures.map((s) => U(s.id)) : (
|
|
507
|
+
// Empty state when user has no predictions
|
|
508
|
+
/* @__PURE__ */ e.jsx(
|
|
509
|
+
t,
|
|
510
|
+
{
|
|
511
|
+
sx: {
|
|
512
|
+
display: "flex",
|
|
513
|
+
flexDirection: "column",
|
|
514
|
+
justifyContent: "center",
|
|
515
|
+
alignItems: "center",
|
|
516
|
+
gap: c.lg,
|
|
517
|
+
alignSelf: "stretch",
|
|
518
|
+
minHeight: "200px",
|
|
519
|
+
textAlign: "center",
|
|
520
|
+
py: c.xl
|
|
521
|
+
},
|
|
522
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
523
|
+
t,
|
|
524
|
+
{
|
|
525
|
+
sx: {
|
|
526
|
+
display: "flex",
|
|
527
|
+
flexDirection: "column",
|
|
528
|
+
gap: c.xs,
|
|
529
|
+
alignItems: "center"
|
|
530
|
+
},
|
|
531
|
+
children: [
|
|
532
|
+
/* @__PURE__ */ e.jsx(
|
|
533
|
+
i,
|
|
534
|
+
{
|
|
535
|
+
sx: {
|
|
536
|
+
color: h,
|
|
537
|
+
fontFamily: u,
|
|
538
|
+
fontSize: "1.25em",
|
|
539
|
+
fontWeight: 600,
|
|
540
|
+
lineHeight: "1.2"
|
|
541
|
+
},
|
|
542
|
+
children: x("eventGame.noPredictions.title")
|
|
543
|
+
}
|
|
544
|
+
),
|
|
545
|
+
/* @__PURE__ */ e.jsx(
|
|
546
|
+
i,
|
|
547
|
+
{
|
|
548
|
+
sx: {
|
|
549
|
+
color: F,
|
|
550
|
+
fontFamily: j,
|
|
551
|
+
fontSize: "1em",
|
|
552
|
+
fontWeight: 400,
|
|
553
|
+
lineHeight: "1.4"
|
|
554
|
+
},
|
|
555
|
+
children: x("eventGame.noPredictions.description")
|
|
556
|
+
}
|
|
557
|
+
)
|
|
558
|
+
]
|
|
559
|
+
}
|
|
560
|
+
)
|
|
561
|
+
}
|
|
562
|
+
)
|
|
563
|
+
)
|
|
564
|
+
}
|
|
565
|
+
)
|
|
566
|
+
}
|
|
567
|
+
)
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
) });
|
|
571
|
+
};
|
|
572
|
+
export {
|
|
573
|
+
me as default
|
|
574
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as o, Typography as c } from "@mui/joy";
|
|
3
|
+
import { useColors as y, isExtraSmall as d, useCornerRadius as f, useFontFamily as u, useSpacingScale as S } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { useConstantContext as p } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import j from "./BooleanSelector.js";
|
|
11
|
+
import { createStyles as C } from "./BooleanFixture.styles.js";
|
|
12
|
+
import g from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
+
import { EventGameConstantsContext as h } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
+
const G = (t) => {
|
|
15
|
+
const r = y(), l = d(), m = f(), i = u(), n = S(), { points: x } = p(h), a = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : l, s = C({
|
|
16
|
+
spacingScale: n,
|
|
17
|
+
borderRadius: m,
|
|
18
|
+
fontFamilyPrimary: i.primary,
|
|
19
|
+
fontFamilySecondary: i.secondary,
|
|
20
|
+
textPrimary: r.textPrimary,
|
|
21
|
+
textSecondary: r.textSecondary,
|
|
22
|
+
isExtraSmall: a
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ e.jsxs(o, { sx: s.container, children: [
|
|
25
|
+
/* @__PURE__ */ e.jsxs(
|
|
26
|
+
o,
|
|
27
|
+
{
|
|
28
|
+
sx: {
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
justifyContent: "space-between",
|
|
32
|
+
width: "100%",
|
|
33
|
+
gap: n.sm
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
a ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(o, { sx: { flex: 1 } }),
|
|
37
|
+
/* @__PURE__ */ e.jsx(c, { level: "h3", sx: s.title, children: t.question }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(o, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: t.showPoints !== !1 && x.length > 0 && /* @__PURE__ */ e.jsx(
|
|
39
|
+
g,
|
|
40
|
+
{
|
|
41
|
+
fixtureId: t.fixtureId,
|
|
42
|
+
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
43
|
+
isSplitVariant: t.isSplitVariant
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e.jsx(
|
|
50
|
+
j,
|
|
51
|
+
{
|
|
52
|
+
onSelectionChange: t.onSelectionChange,
|
|
53
|
+
prediction: t.prediction
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
G as default
|
|
60
|
+
};
|
package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isMobile as e } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
3
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
4
|
+
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
5
|
+
import "@mui/joy";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
const p = (t) => {
|
|
10
|
+
const i = e();
|
|
11
|
+
return {
|
|
12
|
+
container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
fontFamily: t.fontFamilyPrimary,
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
fontSize: i ? "1.125em" : "1.25em",
|
|
21
|
+
lineHeight: 1.2,
|
|
22
|
+
color: t.textPrimary,
|
|
23
|
+
textAlign: t.isExtraSmall ? "left" : "center"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
p as createStyles
|
|
29
|
+
};
|