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/Variants/Standard/EventGameStandardVariant.styles.js
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
const i = (e) => ({
|
|
2
|
+
// Mobile headline with image background
|
|
3
|
+
mobileHeadlineWithImage: {
|
|
4
|
+
display: e.isMobile ? "flex" : "none",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
justifyContent: "space-between",
|
|
7
|
+
gap: "10px",
|
|
8
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
9
|
+
backgroundSize: "cover",
|
|
10
|
+
backgroundPosition: "center",
|
|
11
|
+
borderTopLeftRadius: "5px",
|
|
12
|
+
borderTopRightRadius: "5px",
|
|
13
|
+
position: "relative",
|
|
14
|
+
minHeight: "210px",
|
|
15
|
+
overflow: "hidden",
|
|
16
|
+
height: "auto",
|
|
17
|
+
"&::before": {
|
|
18
|
+
content: '""',
|
|
19
|
+
position: "absolute",
|
|
20
|
+
width: "100%",
|
|
21
|
+
height: "100%",
|
|
22
|
+
background: e.imageBackgroundGradient,
|
|
23
|
+
borderTopLeftRadius: "5px",
|
|
24
|
+
borderTopRightRadius: "5px"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// Mobile headline content
|
|
28
|
+
mobileHeadlineContent: {
|
|
29
|
+
zIndex: 1,
|
|
30
|
+
height: "100%",
|
|
31
|
+
p: e.spacingScale.xl,
|
|
32
|
+
gap: e.spacingScale["2xl"],
|
|
33
|
+
display: "flex",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
justifyContent: "space-between"
|
|
36
|
+
},
|
|
37
|
+
// Mobile headline without image
|
|
38
|
+
mobileHeadlineWithoutImage: {
|
|
39
|
+
display: e.isMobile ? "flex" : "none",
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
justifyContent: "space-between",
|
|
42
|
+
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
43
|
+
gap: e.spacingScale["2xl"]
|
|
44
|
+
},
|
|
45
|
+
// Headline typography (mobile with image)
|
|
46
|
+
headlineTypographyMobileImage: {
|
|
47
|
+
fontWeight: 500,
|
|
48
|
+
lineHeight: "166%",
|
|
49
|
+
letterSpacing: "1px",
|
|
50
|
+
fontSize: "0.75em",
|
|
51
|
+
color: e.darkTextColor,
|
|
52
|
+
opacity: "70%",
|
|
53
|
+
textTransform: "uppercase",
|
|
54
|
+
fontFamily: e.fontFamilySecondary,
|
|
55
|
+
textAlign: "center"
|
|
56
|
+
},
|
|
57
|
+
// Headline typography (mobile without image & desktop)
|
|
58
|
+
headlineTypography: {
|
|
59
|
+
fontWeight: 500,
|
|
60
|
+
lineHeight: "166%",
|
|
61
|
+
letterSpacing: "1px",
|
|
62
|
+
textTransform: "uppercase",
|
|
63
|
+
fontSize: "0.75em",
|
|
64
|
+
color: e.secondaryColor,
|
|
65
|
+
opacity: e.opacity,
|
|
66
|
+
fontFamily: e.fontFamilySecondary,
|
|
67
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
68
|
+
},
|
|
69
|
+
// Headline typography (desktop centered)
|
|
70
|
+
headlineTypographyDesktop: {
|
|
71
|
+
fontWeight: 500,
|
|
72
|
+
lineHeight: "166%",
|
|
73
|
+
letterSpacing: "1px",
|
|
74
|
+
textTransform: "uppercase",
|
|
75
|
+
fontSize: "0.75em",
|
|
76
|
+
color: e.secondaryColor,
|
|
77
|
+
opacity: e.opacity,
|
|
78
|
+
fontFamily: e.fontFamilySecondary
|
|
79
|
+
},
|
|
80
|
+
// Content container
|
|
81
|
+
contentContainer: {
|
|
82
|
+
display: "flex",
|
|
83
|
+
flexDirection: "column",
|
|
84
|
+
gap: e.spacingScale["3xs"]
|
|
85
|
+
},
|
|
86
|
+
// Title typography (mobile with image)
|
|
87
|
+
titleTypographyMobileImage: {
|
|
88
|
+
fontWeight: 700,
|
|
89
|
+
lineHeight: "133%",
|
|
90
|
+
fontSize: "1.5em",
|
|
91
|
+
letterSpacing: "0.15px",
|
|
92
|
+
color: e.darkTextColor,
|
|
93
|
+
fontFamily: e.fontFamilyPrimary,
|
|
94
|
+
textAlign: "center"
|
|
95
|
+
},
|
|
96
|
+
// Title typography (mobile without image & desktop responsive)
|
|
97
|
+
titleTypography: {
|
|
98
|
+
fontWeight: 700,
|
|
99
|
+
lineHeight: "133%",
|
|
100
|
+
letterSpacing: "0px",
|
|
101
|
+
fontSize: "1.5em",
|
|
102
|
+
color: e.textColor,
|
|
103
|
+
fontFamily: e.fontFamilyPrimary,
|
|
104
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
105
|
+
},
|
|
106
|
+
// Title typography (desktop centered)
|
|
107
|
+
titleTypographyDesktop: {
|
|
108
|
+
fontWeight: 700,
|
|
109
|
+
lineHeight: "133%",
|
|
110
|
+
letterSpacing: "0px",
|
|
111
|
+
fontSize: "1.5em",
|
|
112
|
+
color: e.textColor,
|
|
113
|
+
fontFamily: e.fontFamilyPrimary
|
|
114
|
+
},
|
|
115
|
+
// Description typography (mobile with image)
|
|
116
|
+
descriptionTypographyMobileImage: {
|
|
117
|
+
fontWeight: 400,
|
|
118
|
+
lineHeight: "140%",
|
|
119
|
+
fontSize: "1.25em",
|
|
120
|
+
letterSpacing: "0.15px",
|
|
121
|
+
color: e.darkTextColor,
|
|
122
|
+
opacity: "70%",
|
|
123
|
+
fontFamily: e.fontFamilyPrimary,
|
|
124
|
+
textAlign: "center"
|
|
125
|
+
},
|
|
126
|
+
// Description typography (mobile without image & desktop responsive)
|
|
127
|
+
descriptionTypography: {
|
|
128
|
+
fontWeight: 400,
|
|
129
|
+
lineHeight: "140%",
|
|
130
|
+
letterSpacing: "0.15px",
|
|
131
|
+
fontSize: "1.25em",
|
|
132
|
+
color: e.secondaryColor,
|
|
133
|
+
opacity: e.opacity,
|
|
134
|
+
fontFamily: e.fontFamilyPrimary,
|
|
135
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
136
|
+
},
|
|
137
|
+
// Description typography (desktop centered)
|
|
138
|
+
descriptionTypographyDesktop: {
|
|
139
|
+
fontWeight: 400,
|
|
140
|
+
lineHeight: "140%",
|
|
141
|
+
letterSpacing: "0.15px",
|
|
142
|
+
fontSize: "1.25em",
|
|
143
|
+
color: e.secondaryColor,
|
|
144
|
+
opacity: e.opacity,
|
|
145
|
+
fontFamily: e.fontFamilyPrimary
|
|
146
|
+
},
|
|
147
|
+
// Image container (left position)
|
|
148
|
+
imageContainerLeft: {
|
|
149
|
+
display: e.isMobile ? "none" : "block",
|
|
150
|
+
flex: "0.3",
|
|
151
|
+
overflow: "hidden",
|
|
152
|
+
height: "auto",
|
|
153
|
+
position: "relative",
|
|
154
|
+
minHeight: "auto",
|
|
155
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
156
|
+
backgroundSize: "cover",
|
|
157
|
+
backgroundPosition: "center center",
|
|
158
|
+
backgroundRepeat: "no-repeat",
|
|
159
|
+
alignItems: "center",
|
|
160
|
+
justifyContent: "center"
|
|
161
|
+
},
|
|
162
|
+
// Image container (right position)
|
|
163
|
+
imageContainerRight: {
|
|
164
|
+
display: e.isMobile ? "none" : "block",
|
|
165
|
+
flex: "0.3",
|
|
166
|
+
overflow: "hidden",
|
|
167
|
+
height: "auto",
|
|
168
|
+
position: "relative",
|
|
169
|
+
minHeight: "auto",
|
|
170
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
171
|
+
backgroundSize: "cover",
|
|
172
|
+
backgroundPosition: "center center",
|
|
173
|
+
backgroundRepeat: "no-repeat",
|
|
174
|
+
alignItems: "center",
|
|
175
|
+
justifyContent: "center"
|
|
176
|
+
},
|
|
177
|
+
// Main content area
|
|
178
|
+
mainContentArea: {
|
|
179
|
+
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
180
|
+
display: "flex",
|
|
181
|
+
flexDirection: "column",
|
|
182
|
+
px: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
183
|
+
pt: e.spacingScale.lg,
|
|
184
|
+
pb: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
185
|
+
gap: e.isExtraSmall ? e.spacingScale.sm : e.spacingScale.md
|
|
186
|
+
},
|
|
187
|
+
// Desktop headline container
|
|
188
|
+
desktopHeadlineContainer: {
|
|
189
|
+
display: e.isMobile ? "none" : "flex",
|
|
190
|
+
flexDirection: "column",
|
|
191
|
+
justifyContent: "space-between",
|
|
192
|
+
gap: e.spacingScale["2xl"],
|
|
193
|
+
textAlign: "center"
|
|
194
|
+
},
|
|
195
|
+
// Lead collection container
|
|
196
|
+
leadCollectionContainer: {
|
|
197
|
+
display: "flex",
|
|
198
|
+
flexDirection: "column",
|
|
199
|
+
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md
|
|
200
|
+
},
|
|
201
|
+
// Lead question container
|
|
202
|
+
leadQuestionContainer: {
|
|
203
|
+
display: "flex",
|
|
204
|
+
flexDirection: "column",
|
|
205
|
+
gap: e.isExtraSmall ? e.spacingScale.lg : e.spacingScale.md
|
|
206
|
+
},
|
|
207
|
+
// Lead content container
|
|
208
|
+
leadContentContainer: {
|
|
209
|
+
borderRadius: e.borderRadius.md,
|
|
210
|
+
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
211
|
+
gap: e.spacingScale.md,
|
|
212
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
213
|
+
display: "flex",
|
|
214
|
+
flexDirection: "column",
|
|
215
|
+
backdropFilter: "blur(4px)"
|
|
216
|
+
},
|
|
217
|
+
// Question area
|
|
218
|
+
questionArea: {
|
|
219
|
+
display: "flex",
|
|
220
|
+
flexDirection: "column",
|
|
221
|
+
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md
|
|
222
|
+
},
|
|
223
|
+
// Question container
|
|
224
|
+
questionContainer: {
|
|
225
|
+
display: "flex",
|
|
226
|
+
flexDirection: "column",
|
|
227
|
+
gap: e.isExtraSmall ? e.spacingScale.lg : e.spacingScale.md
|
|
228
|
+
},
|
|
229
|
+
// Question content container
|
|
230
|
+
questionContentContainer: {
|
|
231
|
+
borderRadius: e.borderRadius.md,
|
|
232
|
+
p: e.spacingScale.md,
|
|
233
|
+
gap: e.spacingScale.md,
|
|
234
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
235
|
+
display: "flex",
|
|
236
|
+
flexDirection: "column",
|
|
237
|
+
backdropFilter: "blur(4px)",
|
|
238
|
+
position: "relative",
|
|
239
|
+
zIndex: 2
|
|
240
|
+
},
|
|
241
|
+
// Footer container
|
|
242
|
+
footerContainer: {
|
|
243
|
+
display: "flex",
|
|
244
|
+
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
245
|
+
justifyContent: "space-between",
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
gap: e.spacingScale.lg
|
|
248
|
+
},
|
|
249
|
+
// Footer container (no logo)
|
|
250
|
+
footerContainerNoLogo: {
|
|
251
|
+
display: "flex",
|
|
252
|
+
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
253
|
+
justifyContent: "flex-end",
|
|
254
|
+
alignItems: "center",
|
|
255
|
+
gap: e.spacingScale.lg
|
|
256
|
+
},
|
|
257
|
+
// Presented by mobile
|
|
258
|
+
presentedByMobile: {
|
|
259
|
+
display: e.isExtraSmall ? "block" : "none"
|
|
260
|
+
},
|
|
261
|
+
// Pagination container
|
|
262
|
+
paginationContainer: {
|
|
263
|
+
display: "flex",
|
|
264
|
+
flexDirection: "column",
|
|
265
|
+
alignItems: "center",
|
|
266
|
+
gap: e.spacingScale.md
|
|
267
|
+
},
|
|
268
|
+
// Navigation container
|
|
269
|
+
navigationContainer: {
|
|
270
|
+
display: "flex",
|
|
271
|
+
gap: e.spacingScale.md,
|
|
272
|
+
justifyContent: "center",
|
|
273
|
+
alignItems: "center"
|
|
274
|
+
},
|
|
275
|
+
// Game State Styles
|
|
276
|
+
gameStateContainer: {
|
|
277
|
+
display: "flex",
|
|
278
|
+
flexDirection: "column",
|
|
279
|
+
alignItems: "center",
|
|
280
|
+
justifyContent: "center",
|
|
281
|
+
textAlign: "center",
|
|
282
|
+
padding: `${e.spacingScale.xs} ${e.spacingScale.sm}`,
|
|
283
|
+
gap: e.spacingScale["3xs"]
|
|
284
|
+
},
|
|
285
|
+
stateTitle: {
|
|
286
|
+
fontFamily: e.fontFamilyPrimary,
|
|
287
|
+
fontSize: "1.5em",
|
|
288
|
+
fontWeight: 700,
|
|
289
|
+
color: e.textColor,
|
|
290
|
+
lineHeight: 1.3
|
|
291
|
+
},
|
|
292
|
+
stateDescription: {
|
|
293
|
+
fontFamily: e.fontFamilyPrimary,
|
|
294
|
+
fontSize: "1.25em",
|
|
295
|
+
letterSpacing: "0.15px",
|
|
296
|
+
fontWeight: 400,
|
|
297
|
+
color: e.secondaryColor,
|
|
298
|
+
lineHeight: 1.4,
|
|
299
|
+
opacity: e.opacity
|
|
300
|
+
},
|
|
301
|
+
liveIndicatorContainer: {
|
|
302
|
+
display: "flex",
|
|
303
|
+
alignItems: "center",
|
|
304
|
+
gap: e.spacingScale.xs,
|
|
305
|
+
marginTop: e.spacingScale.xs
|
|
306
|
+
},
|
|
307
|
+
liveIndicator: {
|
|
308
|
+
width: "12px",
|
|
309
|
+
height: "12px",
|
|
310
|
+
borderRadius: "50%",
|
|
311
|
+
backgroundColor: e.dangerColor,
|
|
312
|
+
animation: "pulse 2s infinite",
|
|
313
|
+
"@keyframes pulse": {
|
|
314
|
+
"0%": {
|
|
315
|
+
opacity: 1,
|
|
316
|
+
transform: "scale(1)"
|
|
317
|
+
},
|
|
318
|
+
"50%": {
|
|
319
|
+
opacity: 0.7,
|
|
320
|
+
transform: "scale(1.1)"
|
|
321
|
+
},
|
|
322
|
+
"100%": {
|
|
323
|
+
opacity: 1,
|
|
324
|
+
transform: "scale(1)"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
liveText: {
|
|
329
|
+
fontFamily: e.fontFamilySecondary,
|
|
330
|
+
fontSize: "0.875em",
|
|
331
|
+
color: e.dangerColor,
|
|
332
|
+
fontWeight: 600,
|
|
333
|
+
textTransform: "uppercase",
|
|
334
|
+
letterSpacing: "0.5px"
|
|
335
|
+
},
|
|
336
|
+
closedStateHeader: {
|
|
337
|
+
display: "flex",
|
|
338
|
+
alignItems: "center",
|
|
339
|
+
justifyContent: "center",
|
|
340
|
+
gap: e.spacingScale.sm,
|
|
341
|
+
flexWrap: "wrap"
|
|
342
|
+
},
|
|
343
|
+
// Match Result Badge Styles (like prediction badges)
|
|
344
|
+
matchResultBadge: {
|
|
345
|
+
display: "flex",
|
|
346
|
+
alignItems: "center",
|
|
347
|
+
gap: e.spacingScale.xs,
|
|
348
|
+
fontSize: "0.75em",
|
|
349
|
+
padding: "2px 6px",
|
|
350
|
+
minHeight: "20px",
|
|
351
|
+
borderRadius: e.borderRadius.sm,
|
|
352
|
+
border: `1px solid ${e.textColor}20`,
|
|
353
|
+
backgroundColor: e.textColor + "10",
|
|
354
|
+
width: "fit-content"
|
|
355
|
+
},
|
|
356
|
+
matchResultTeamLogo: {
|
|
357
|
+
width: e.isExtraSmall ? "16px" : "20px",
|
|
358
|
+
height: e.isExtraSmall ? "16px" : "20px",
|
|
359
|
+
borderRadius: "50%",
|
|
360
|
+
overflow: "hidden",
|
|
361
|
+
flexShrink: 0
|
|
362
|
+
},
|
|
363
|
+
matchResultScoreText: {
|
|
364
|
+
fontFamily: e.fontFamilyPrimary,
|
|
365
|
+
fontSize: "0.75em",
|
|
366
|
+
fontWeight: 600,
|
|
367
|
+
color: e.textColor,
|
|
368
|
+
lineHeight: 1
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
export {
|
|
372
|
+
i as createStyles
|
|
373
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as a, Typography as n } from "@mui/joy";
|
|
3
|
+
import { useInternalTheme as w, isMobile as L, isExtraSmall as O, useColors as t, useFontFamily as f, useCornerRadius as q, useBorderSize as z, useSpacingScale as U, useImageBackgroundGradient as $ } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import { hexToRgb as j, stripHtmlTags as g } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import { WidgetTemplate as p } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
+
import h from "../../../../../../common/src/components/Rules.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import { useImageVariant as J } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
+
import K from "../../../Shared/MainCard.js";
|
|
14
|
+
import { createStyles as Q } from "./EventGameStandardFinishedGame.styles.js";
|
|
15
|
+
import X from "../../../Shared/FinishedGameWrapper/FinishedGameWrapper.js";
|
|
16
|
+
import Y from "../../../Shared/Leaderboard/LeaderboardComponent.js";
|
|
17
|
+
import Z from "../../../Shared/Leaderboard/LeaderboardPagination.js";
|
|
18
|
+
import { useEventRankings as _ } from "../../../../hooks/useEventRankings.js";
|
|
19
|
+
import { useTranslation as ee } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
20
|
+
const Ce = (i) => {
|
|
21
|
+
const c = w(), s = J(
|
|
22
|
+
{
|
|
23
|
+
images: i.eventGame.images,
|
|
24
|
+
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
25
|
+
},
|
|
26
|
+
p.STANDARD
|
|
27
|
+
), { t: d } = ee(), C = null, m = L(), u = O(), o = i.imagePosition || "left", v = t().textPrimary, P = t().palette.primary.plainColor, b = t().textColor, S = f().secondary, T = f().primary, G = t().surface, D = `rgba(${j(t().surfaceVariant)}, 0.5)`, I = t().onSurface, k = q(), R = z().size, x = U(), A = `rgba(${j(
|
|
28
|
+
t().surfaceVariant || ""
|
|
29
|
+
)}, 0.5)`, M = $(
|
|
30
|
+
p.STANDARD
|
|
31
|
+
), V = "60%", F = t().textColor, { rankings: B, pagination: l, loading: H, goToNextPage: N, goToPreviousPage: E } = _(i.eventGame.id, i.sdk), r = Q({
|
|
32
|
+
finalImage: s,
|
|
33
|
+
spacingScale: x,
|
|
34
|
+
borderRadius: k,
|
|
35
|
+
fontFamilyPrimary: T,
|
|
36
|
+
fontFamilySecondary: S,
|
|
37
|
+
textPrimary: v,
|
|
38
|
+
primaryColor: P,
|
|
39
|
+
textColor: b,
|
|
40
|
+
bgcolor: D,
|
|
41
|
+
buttonBgColor: G,
|
|
42
|
+
onSurfaceColor: I,
|
|
43
|
+
borderSize: R,
|
|
44
|
+
surfaceVariant: A,
|
|
45
|
+
brandingColors: C,
|
|
46
|
+
imagePosition: o,
|
|
47
|
+
successColor: c.colorSchemes.light.palette.success.plainColor,
|
|
48
|
+
dangerColor: c.colorSchemes.light.palette.danger.plainColor,
|
|
49
|
+
onPrimaryColor: c.colorSchemes.light.palette.primary.onPrimary,
|
|
50
|
+
isMobile: m,
|
|
51
|
+
imageBackgroundGradient: M,
|
|
52
|
+
darkTextColor: c.colorSchemes.dark.textColor,
|
|
53
|
+
opacity: V,
|
|
54
|
+
secondaryColor: F,
|
|
55
|
+
isExtraSmall: u
|
|
56
|
+
}), y = () => /* @__PURE__ */ e.jsxs(a, { sx: r.mainContentArea, children: [
|
|
57
|
+
!m && /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(a, { sx: r.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsxs(
|
|
58
|
+
a,
|
|
59
|
+
{
|
|
60
|
+
sx: {
|
|
61
|
+
display: "flex",
|
|
62
|
+
flexDirection: "column",
|
|
63
|
+
alignItems: "center"
|
|
64
|
+
},
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ e.jsxs(
|
|
67
|
+
a,
|
|
68
|
+
{
|
|
69
|
+
sx: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
gap: x["3xs"]
|
|
73
|
+
},
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ e.jsx(
|
|
76
|
+
n,
|
|
77
|
+
{
|
|
78
|
+
level: "body-sm",
|
|
79
|
+
sx: r.headlineTypographyDesktop,
|
|
80
|
+
children: d("eventGame.headline")
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ e.jsx(
|
|
84
|
+
h,
|
|
85
|
+
{
|
|
86
|
+
rules: i.eventGame.rules || "",
|
|
87
|
+
rulesDisplay: i.rulesDisplay,
|
|
88
|
+
isOverlayVariant: !1
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx(n, { level: "h4", sx: r.titleTypographyDesktop, children: i.eventGame.title }),
|
|
96
|
+
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypographyDesktop, children: g(i.eventGame.description) })
|
|
97
|
+
] })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
) }) }),
|
|
101
|
+
/* @__PURE__ */ e.jsx(a, { sx: r.questionArea, children: /* @__PURE__ */ e.jsx(a, { sx: r.questionContainer, children: /* @__PURE__ */ e.jsx(a, { sx: r.questionContentContainer, children: /* @__PURE__ */ e.jsx(
|
|
102
|
+
Y,
|
|
103
|
+
{
|
|
104
|
+
leaderboard: B,
|
|
105
|
+
userRanking: i.prediction,
|
|
106
|
+
showHeading: !i.showPredictionDetails,
|
|
107
|
+
loading: H
|
|
108
|
+
}
|
|
109
|
+
) }) }) }),
|
|
110
|
+
l && (l.hasNextPage || l.hasPreviousPage) && /* @__PURE__ */ e.jsx(a, { sx: r.presentedByContainer, children: /* @__PURE__ */ e.jsx(
|
|
111
|
+
a,
|
|
112
|
+
{
|
|
113
|
+
sx: {
|
|
114
|
+
...r.paginationContainer,
|
|
115
|
+
ml: u ? "0" : "auto"
|
|
116
|
+
},
|
|
117
|
+
children: /* @__PURE__ */ e.jsx(
|
|
118
|
+
Z,
|
|
119
|
+
{
|
|
120
|
+
hasNextPage: l.hasNextPage,
|
|
121
|
+
hasPreviousPage: l.hasPreviousPage,
|
|
122
|
+
onNextPage: N,
|
|
123
|
+
onPreviousPage: E,
|
|
124
|
+
isOverlayVariant: !1,
|
|
125
|
+
justifyContent: "flex-start"
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
) })
|
|
130
|
+
] }), W = () => m ? s ? /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineWithImage, children: /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
131
|
+
/* @__PURE__ */ e.jsxs(
|
|
132
|
+
a,
|
|
133
|
+
{
|
|
134
|
+
sx: {
|
|
135
|
+
display: "flex",
|
|
136
|
+
alignItems: "center",
|
|
137
|
+
justifyContent: "center",
|
|
138
|
+
gap: x["3xs"]
|
|
139
|
+
},
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(
|
|
142
|
+
n,
|
|
143
|
+
{
|
|
144
|
+
level: "body-sm",
|
|
145
|
+
sx: r.headlineTypographyMobileImage,
|
|
146
|
+
children: d("eventGame.headline")
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
/* @__PURE__ */ e.jsx(
|
|
150
|
+
h,
|
|
151
|
+
{
|
|
152
|
+
rules: i.eventGame.rules || "",
|
|
153
|
+
rulesDisplay: i.rulesDisplay,
|
|
154
|
+
isOverlayVariant: !1
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
161
|
+
/* @__PURE__ */ e.jsx(n, { sx: r.titleTypographyMobileImage, children: i.eventGame.title }),
|
|
162
|
+
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypographyMobileImage, children: g(i.eventGame.description) })
|
|
163
|
+
] })
|
|
164
|
+
] }) }) }) : /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
165
|
+
/* @__PURE__ */ e.jsxs(
|
|
166
|
+
a,
|
|
167
|
+
{
|
|
168
|
+
sx: {
|
|
169
|
+
display: "flex",
|
|
170
|
+
alignItems: "center",
|
|
171
|
+
justifyContent: "center",
|
|
172
|
+
gap: x["3xs"]
|
|
173
|
+
},
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: r.headlineTypography, children: d("eventGame.headline") }),
|
|
176
|
+
/* @__PURE__ */ e.jsx(
|
|
177
|
+
h,
|
|
178
|
+
{
|
|
179
|
+
rules: i.eventGame.rules || "",
|
|
180
|
+
rulesDisplay: i.rulesDisplay,
|
|
181
|
+
isOverlayVariant: !1
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
188
|
+
/* @__PURE__ */ e.jsx(n, { level: "h4", sx: r.titleTypography, children: i.eventGame.title }),
|
|
189
|
+
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypography, children: g(i.eventGame.description) })
|
|
190
|
+
] })
|
|
191
|
+
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
192
|
+
return /* @__PURE__ */ e.jsx(K, { brandingBorderColor: null, children: i.showPredictionDetails ? /* @__PURE__ */ e.jsx(
|
|
193
|
+
X,
|
|
194
|
+
{
|
|
195
|
+
prediction: i.prediction,
|
|
196
|
+
game: i.eventGame,
|
|
197
|
+
resultsTabPanelSxProps: {
|
|
198
|
+
display: "flex",
|
|
199
|
+
flexDirection: m ? "column" : "row",
|
|
200
|
+
px: 0,
|
|
201
|
+
pb: 0,
|
|
202
|
+
pt: 0
|
|
203
|
+
},
|
|
204
|
+
children: /* @__PURE__ */ e.jsxs(a, { sx: r.scoreStateWrapperContainer, children: [
|
|
205
|
+
s && o === "left" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) }),
|
|
206
|
+
y(),
|
|
207
|
+
s && o === "right" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) })
|
|
208
|
+
] })
|
|
209
|
+
}
|
|
210
|
+
) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
211
|
+
W(),
|
|
212
|
+
s && o === "left" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) }),
|
|
213
|
+
y(),
|
|
214
|
+
s && o === "right" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) })
|
|
215
|
+
] }) });
|
|
216
|
+
};
|
|
217
|
+
export {
|
|
218
|
+
Ce as default
|
|
219
|
+
};
|