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
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import { j as a } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import w, { useCallback as Q, useMemo as N } from "react";
|
|
3
|
+
import { Box as l, Typography as C, Button as he } from "@mui/joy";
|
|
4
|
+
import { useInternalTheme as Ne, isMobile as Fe, isLarge as Ge, useColors as E, useFontFamily as Ye, useCornerRadius as xe, useSpacingScale as He } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import { hexToRgb as $e } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
+
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
+
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
+
import { WidgetTemplate as Be } from "../../../../../common/src/enums/enums.js";
|
|
9
|
+
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import Ue from "../../../../../common/src/components/Skeletons/Split/SplitSkeleton.js";
|
|
11
|
+
import { useImageVariant as We } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
+
import qe from "../../Shared/MainCard.js";
|
|
14
|
+
import Ke from "../../../assets/default-quiz-bg.png.js";
|
|
15
|
+
import Xe from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
16
|
+
import Je from "../../Shared/PresentedBy.js";
|
|
17
|
+
import Ze from "../../Leads/CollectLeadWrapper.js";
|
|
18
|
+
import { createStyles as et } from "./MatchQuizSplitVariant.styles.js";
|
|
19
|
+
import { MarketEnum as r } from "fansunited-sdk-esm";
|
|
20
|
+
import tt from "../../Shared/Fixtures/CorrectScore/CorrectScoreFixture.js";
|
|
21
|
+
import at from "../../Shared/Fixtures/1X2/OneXTwoFixture.js";
|
|
22
|
+
import it from "../../Shared/Fixtures/Corners/CornersFixture.js";
|
|
23
|
+
import rt from "../../Shared/Fixtures/YesNo/YesNoFixture.js";
|
|
24
|
+
import nt from "../../Shared/Fixtures/Players/PlayersFixture.js";
|
|
25
|
+
import ot from "../../Shared/Stepper.js";
|
|
26
|
+
import st from "../../Shared/Countdown.js";
|
|
27
|
+
import ct from "../../Shared/Summary/PredictionSummary.js";
|
|
28
|
+
import { isPredictionsCutoffPassed as lt } from "../../../helpers/helpers.js";
|
|
29
|
+
import { useTranslation as mt } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
30
|
+
const Nt = (t) => {
|
|
31
|
+
var q, K, X, J, Z, ee, te, ae, ie, re, ne, oe, se;
|
|
32
|
+
const [h, p] = w.useState(1), [fe, F] = w.useState(
|
|
33
|
+
((q = t.leads) == null ? void 0 : q.position) === "before" && t.matchQuiz.authRequirement === "LEAD"
|
|
34
|
+
);
|
|
35
|
+
w.useEffect(() => {
|
|
36
|
+
var e;
|
|
37
|
+
F(
|
|
38
|
+
((e = t.leads) == null ? void 0 : e.position) === "before" && t.matchQuiz.authRequirement === "LEAD" || !1
|
|
39
|
+
);
|
|
40
|
+
}, [(K = t.leads) == null ? void 0 : K.position, t.matchQuiz.authRequirement]);
|
|
41
|
+
const Ce = Ne(), { t: x } = mt(), A = Fe(), Se = Ge(), i = ((X = t.matchQuiz.branding) == null ? void 0 : X.colors) || null, L = A ? ((Z = (J = t.matchQuiz.branding) == null ? void 0 : J.images) == null ? void 0 : Z.mobileLogo) || ((te = (ee = t.matchQuiz.branding) == null ? void 0 : ee.images) == null ? void 0 : te.mainLogo) || "" : ((ie = (ae = t.matchQuiz.branding) == null ? void 0 : ae.images) == null ? void 0 : ie.mainLogo) || "", Re = t.defaultImagePlaceholderUrl ? t.defaultImagePlaceholderUrl : A ? Xe : Ke, ge = We(
|
|
42
|
+
{
|
|
43
|
+
images: t.matchQuiz.images,
|
|
44
|
+
imagePlaceholder: Re
|
|
45
|
+
},
|
|
46
|
+
Be.SPLIT
|
|
47
|
+
), _e = E().palette.danger.plainColor, Ee = (i == null ? void 0 : i.contentColor) || E().textColor, ye = (i == null ? void 0 : i.secondaryColor) || E().textColor, b = Ye().primary, ke = (i == null ? void 0 : i.backgroundColor) || E().surfaceVariant, Oe = xe(), R = (i == null ? void 0 : i.primaryColor) || E().palette.primary.plainColor, y = E().palette.primary.onPrimary, G = xe().xl, k = He(), n = et({
|
|
48
|
+
spacingScale: k,
|
|
49
|
+
borderRadius: Oe,
|
|
50
|
+
fontFamilyPrimary: b,
|
|
51
|
+
bgcolor: $e(ke || ""),
|
|
52
|
+
textColor: Ee,
|
|
53
|
+
secondaryColor: ye,
|
|
54
|
+
isMobile: A,
|
|
55
|
+
dangerColor: _e
|
|
56
|
+
}), je = () => {
|
|
57
|
+
F(!1);
|
|
58
|
+
}, Y = Q(
|
|
59
|
+
(e, s, m) => {
|
|
60
|
+
const o = `${s}:${m}`;
|
|
61
|
+
t.setPrediction((c) => {
|
|
62
|
+
const d = { ...c }, f = d.fixtures.find((g) => g.market === e);
|
|
63
|
+
return f && (f.prediction.value = o), d;
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
[t.setPrediction]
|
|
67
|
+
), H = Q(
|
|
68
|
+
(e, s) => {
|
|
69
|
+
t.setPrediction((m) => {
|
|
70
|
+
const o = { ...m }, c = o.fixtures.find(
|
|
71
|
+
(d) => d.market === e
|
|
72
|
+
);
|
|
73
|
+
return c && (c.prediction.value = s), o;
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
[t.setPrediction]
|
|
77
|
+
), $ = Q(
|
|
78
|
+
(e, s) => {
|
|
79
|
+
t.setPrediction((m) => {
|
|
80
|
+
const o = { ...m }, c = o.fixtures.find(
|
|
81
|
+
(d) => d.market === e
|
|
82
|
+
);
|
|
83
|
+
return c && (c.prediction.playerId = s), o;
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
[t.setPrediction]
|
|
87
|
+
), B = Q(
|
|
88
|
+
(e, s) => {
|
|
89
|
+
t.setPrediction((m) => {
|
|
90
|
+
const o = { ...m }, c = o.fixtures.find((d) => d.market === e);
|
|
91
|
+
return c && (c.prediction.value = s), o;
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
[t.setPrediction]
|
|
95
|
+
), _ = t.matchQuiz.fixtures.length + 1, T = t.matchQuiz.status === "OPEN" && lt(t.matchQuiz.predictionsCutoff), Pe = () => {
|
|
96
|
+
h < _ ? p(h + 1) : t.play();
|
|
97
|
+
}, ze = (e) => {
|
|
98
|
+
p(e + 1);
|
|
99
|
+
}, Te = () => {
|
|
100
|
+
var m, o;
|
|
101
|
+
if (h === _) return !0;
|
|
102
|
+
const e = t.matchQuiz.fixtures[h - 1];
|
|
103
|
+
if (!e) return !1;
|
|
104
|
+
const s = (o = (m = t.prediction) == null ? void 0 : m.fixtures) == null ? void 0 : o.find(
|
|
105
|
+
(c) => c.market === e.market
|
|
106
|
+
);
|
|
107
|
+
return s ? e.market === r.CORRECT_SCORE || e.market === r.CORRECT_SCORE_HT || e.market === r.CORRECT_SCORE_ADVANCED || e.market === r.CORNERS_MATCH ? !0 : e.market === r.PLAYER_SCORE || e.market === r.PLAYER_YELLOW_CARD || e.market === r.PLAYER_RED_CARD || e.market === r.PLAYER_SCORE_FIRST_GOAL || e.market === r.PLAYER_SCORE_HATTRICK || e.market === r.PLAYER_SCORE_TWICE ? s.prediction.playerId !== void 0 : s.prediction.value !== null : !1;
|
|
108
|
+
}, Qe = () => {
|
|
109
|
+
h > 1 && p(h - 1);
|
|
110
|
+
}, U = () => {
|
|
111
|
+
var o, c, d, f;
|
|
112
|
+
const e = (o = t.matchQuiz.fixtures[0]) == null ? void 0 : o.matchModel;
|
|
113
|
+
if (!e || !((c = e.scores) != null && c.ftScore)) return null;
|
|
114
|
+
const s = e.scores.ftScore.homeGoals || 0, m = e.scores.ftScore.awayGoals || 0;
|
|
115
|
+
return /* @__PURE__ */ a.jsxs(l, { sx: n.matchResultBadge, children: [
|
|
116
|
+
((d = e.homeTeam.assets) == null ? void 0 : d.logo) && /* @__PURE__ */ a.jsx(l, { sx: n.matchResultTeamLogo, children: /* @__PURE__ */ a.jsx(
|
|
117
|
+
"img",
|
|
118
|
+
{
|
|
119
|
+
src: e.homeTeam.assets.logo,
|
|
120
|
+
alt: e.homeTeam.name,
|
|
121
|
+
style: {
|
|
122
|
+
width: "100%",
|
|
123
|
+
height: "100%",
|
|
124
|
+
borderRadius: "50%",
|
|
125
|
+
objectFit: "cover"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
) }),
|
|
129
|
+
/* @__PURE__ */ a.jsxs(C, { sx: n.matchResultScoreText, children: [
|
|
130
|
+
s,
|
|
131
|
+
" - ",
|
|
132
|
+
m
|
|
133
|
+
] }),
|
|
134
|
+
((f = e.awayTeam.assets) == null ? void 0 : f.logo) && /* @__PURE__ */ a.jsx(l, { sx: n.matchResultTeamLogo, children: /* @__PURE__ */ a.jsx(
|
|
135
|
+
"img",
|
|
136
|
+
{
|
|
137
|
+
src: e.awayTeam.assets.logo,
|
|
138
|
+
alt: e.awayTeam.name,
|
|
139
|
+
style: {
|
|
140
|
+
width: "100%",
|
|
141
|
+
height: "100%",
|
|
142
|
+
borderRadius: "50%",
|
|
143
|
+
objectFit: "cover"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
) })
|
|
147
|
+
] });
|
|
148
|
+
}, pe = () => /* @__PURE__ */ a.jsx(l, { sx: n.questionAreaContent, children: /* @__PURE__ */ a.jsx(l, { sx: n.mainContentContainer, children: /* @__PURE__ */ a.jsxs(l, { sx: n.gameStateContainer, children: [
|
|
149
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateTitle, children: x("matchQuiz.states.pending.title") }),
|
|
150
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateDescription, children: x("matchQuiz.states.pending.description") })
|
|
151
|
+
] }) }) }), Ae = () => /* @__PURE__ */ a.jsx(l, { sx: n.questionAreaContent, children: /* @__PURE__ */ a.jsx(l, { sx: n.mainContentContainer, children: /* @__PURE__ */ a.jsxs(l, { sx: n.gameStateContainer, children: [
|
|
152
|
+
U(),
|
|
153
|
+
/* @__PURE__ */ a.jsxs(l, { sx: n.liveIndicatorContainer, children: [
|
|
154
|
+
/* @__PURE__ */ a.jsx(l, { sx: n.liveIndicator }),
|
|
155
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.liveText, children: x("matchQuiz.states.live.indicator") })
|
|
156
|
+
] }),
|
|
157
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateDescription, children: x("matchQuiz.states.live.description") })
|
|
158
|
+
] }) }) }), Le = () => /* @__PURE__ */ a.jsx(l, { sx: n.questionAreaContent, children: /* @__PURE__ */ a.jsx(l, { sx: n.mainContentContainer, children: /* @__PURE__ */ a.jsxs(l, { sx: n.gameStateContainer, children: [
|
|
159
|
+
U(),
|
|
160
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateTitle, children: x("matchQuiz.states.closed.title") }),
|
|
161
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateDescription, children: x("matchQuiz.states.closed.description") })
|
|
162
|
+
] }) }) }), be = () => /* @__PURE__ */ a.jsxs(l, { sx: n.gameStateContainer, children: [
|
|
163
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateTitle, children: x("matchQuiz.states.open.title") }),
|
|
164
|
+
/* @__PURE__ */ a.jsx(C, { sx: n.stateDescription, children: x("matchQuiz.states.open.description") })
|
|
165
|
+
] }), u = N(() => t.matchQuiz.fixtures[h - 1], [t.matchQuiz.fixtures, h]), O = N(() => u == null ? void 0 : u.matchModel, [
|
|
166
|
+
(ne = (re = u == null ? void 0 : u.matchModel) == null ? void 0 : re.homeTeam) == null ? void 0 : ne.id,
|
|
167
|
+
(se = (oe = u == null ? void 0 : u.matchModel) == null ? void 0 : oe.awayTeam) == null ? void 0 : se.id
|
|
168
|
+
]), j = N(() => u ? {
|
|
169
|
+
onScoreChange: (e, s) => Y(u.market, e, s),
|
|
170
|
+
onSelectionChange: (e) => H(u.market, e),
|
|
171
|
+
onCornersChange: (e) => B(u.market, e),
|
|
172
|
+
onPlayerSelection: (e) => $(u.market, e)
|
|
173
|
+
} : {}, [
|
|
174
|
+
u == null ? void 0 : u.market,
|
|
175
|
+
Y,
|
|
176
|
+
H,
|
|
177
|
+
B,
|
|
178
|
+
$
|
|
179
|
+
]), Ve = () => {
|
|
180
|
+
var s, m, o, c, d, f, g, P, z, ce, le, me, de, ue;
|
|
181
|
+
const e = u;
|
|
182
|
+
if (T)
|
|
183
|
+
return be();
|
|
184
|
+
if (e)
|
|
185
|
+
switch (e.market) {
|
|
186
|
+
case r.CORRECT_SCORE:
|
|
187
|
+
case r.CORRECT_SCORE_HT:
|
|
188
|
+
case r.CORRECT_SCORE_ADVANCED:
|
|
189
|
+
const V = (m = (s = t.prediction) == null ? void 0 : s.fixtures) == null ? void 0 : m.find(
|
|
190
|
+
(S) => S.market === e.market
|
|
191
|
+
), ve = (V == null ? void 0 : V.prediction.value) || "0:0", [Me, we] = ve.split(":").map(Number);
|
|
192
|
+
return /* @__PURE__ */ a.jsx(
|
|
193
|
+
tt,
|
|
194
|
+
{
|
|
195
|
+
matchModel: O,
|
|
196
|
+
market: e.market,
|
|
197
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
198
|
+
onScoreChange: j.onScoreChange,
|
|
199
|
+
initialHomeScore: Me,
|
|
200
|
+
initialAwayScore: we,
|
|
201
|
+
isSplitVariant: !0
|
|
202
|
+
},
|
|
203
|
+
`${e.market}-${h}`
|
|
204
|
+
);
|
|
205
|
+
case r.FT_1X2:
|
|
206
|
+
case r.HT_1X2:
|
|
207
|
+
const D = (c = (o = t.prediction) == null ? void 0 : o.fixtures) == null ? void 0 : c.find(
|
|
208
|
+
(S) => S.market === e.market
|
|
209
|
+
);
|
|
210
|
+
return /* @__PURE__ */ a.jsx(
|
|
211
|
+
at,
|
|
212
|
+
{
|
|
213
|
+
matchModel: O,
|
|
214
|
+
market: e.market,
|
|
215
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
216
|
+
prediction: ((d = D == null ? void 0 : D.prediction) == null ? void 0 : d.value) || null,
|
|
217
|
+
isSplitVariant: !0,
|
|
218
|
+
onSelectionChange: j.onSelectionChange
|
|
219
|
+
},
|
|
220
|
+
`${e.market}-${h}`
|
|
221
|
+
);
|
|
222
|
+
case r.CORNERS_MATCH:
|
|
223
|
+
const I = (g = (f = t.prediction) == null ? void 0 : f.fixtures) == null ? void 0 : g.find(
|
|
224
|
+
(S) => S.market === e.market
|
|
225
|
+
);
|
|
226
|
+
return /* @__PURE__ */ a.jsx(
|
|
227
|
+
it,
|
|
228
|
+
{
|
|
229
|
+
matchModel: O,
|
|
230
|
+
market: e.market,
|
|
231
|
+
prediction: (P = I == null ? void 0 : I.prediction) == null ? void 0 : P.value,
|
|
232
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
233
|
+
isSplitVariant: !0,
|
|
234
|
+
onCornersChange: j.onCornersChange
|
|
235
|
+
},
|
|
236
|
+
`${e.market}-${h}`
|
|
237
|
+
);
|
|
238
|
+
case r.OVER_GOALS_0_5:
|
|
239
|
+
case r.OVER_GOALS_1_5:
|
|
240
|
+
case r.OVER_GOALS_2_5:
|
|
241
|
+
case r.OVER_GOALS_3_5:
|
|
242
|
+
case r.OVER_GOALS_4_5:
|
|
243
|
+
case r.OVER_GOALS_5_5:
|
|
244
|
+
case r.OVER_GOALS_6_5:
|
|
245
|
+
case r.OVER_CORNERS_6_5:
|
|
246
|
+
case r.OVER_CORNERS_7_5:
|
|
247
|
+
case r.OVER_CORNERS_8_5:
|
|
248
|
+
case r.OVER_CORNERS_9_5:
|
|
249
|
+
case r.OVER_CORNERS_10_5:
|
|
250
|
+
case r.OVER_CORNERS_11_5:
|
|
251
|
+
case r.OVER_CORNERS_12_5:
|
|
252
|
+
case r.OVER_CORNERS_13_5:
|
|
253
|
+
case r.RED_CARD_MATCH:
|
|
254
|
+
case r.PENALTY_MATCH:
|
|
255
|
+
const v = (ce = (z = t.prediction) == null ? void 0 : z.fixtures) == null ? void 0 : ce.find(
|
|
256
|
+
(S) => S.market === e.market
|
|
257
|
+
);
|
|
258
|
+
return /* @__PURE__ */ a.jsx(
|
|
259
|
+
rt,
|
|
260
|
+
{
|
|
261
|
+
matchModel: O,
|
|
262
|
+
market: e.market,
|
|
263
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
264
|
+
prediction: (le = v == null ? void 0 : v.prediction) == null ? void 0 : le.value,
|
|
265
|
+
isSplitVariant: !0,
|
|
266
|
+
onSelectionChange: j.onSelectionChange
|
|
267
|
+
},
|
|
268
|
+
e.market
|
|
269
|
+
);
|
|
270
|
+
case r.PLAYER_SCORE:
|
|
271
|
+
case r.PLAYER_YELLOW_CARD:
|
|
272
|
+
case r.PLAYER_RED_CARD:
|
|
273
|
+
case r.PLAYER_SCORE_FIRST_GOAL:
|
|
274
|
+
case r.PLAYER_SCORE_HATTRICK:
|
|
275
|
+
case r.PLAYER_SCORE_TWICE:
|
|
276
|
+
const M = (de = (me = t.prediction) == null ? void 0 : me.fixtures) == null ? void 0 : de.find(
|
|
277
|
+
(S) => S.market === e.market
|
|
278
|
+
);
|
|
279
|
+
return /* @__PURE__ */ a.jsx(
|
|
280
|
+
nt,
|
|
281
|
+
{
|
|
282
|
+
matchModel: O,
|
|
283
|
+
market: e.market,
|
|
284
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
285
|
+
prediction: (ue = M == null ? void 0 : M.prediction) == null ? void 0 : ue.playerId,
|
|
286
|
+
isSplitVariant: !0,
|
|
287
|
+
onPlayerSelection: j.onPlayerSelection
|
|
288
|
+
},
|
|
289
|
+
`${e.market}-${h}`
|
|
290
|
+
);
|
|
291
|
+
default:
|
|
292
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
293
|
+
}
|
|
294
|
+
}, De = () => {
|
|
295
|
+
var e, s, m, o, c, d, f, g, P, z;
|
|
296
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: fe ? /* @__PURE__ */ a.jsx(
|
|
297
|
+
l,
|
|
298
|
+
{
|
|
299
|
+
sx: {
|
|
300
|
+
p: k.lg,
|
|
301
|
+
display: "flex",
|
|
302
|
+
flexDirection: "column",
|
|
303
|
+
justifyContent: "center",
|
|
304
|
+
gap: "16px"
|
|
305
|
+
},
|
|
306
|
+
children: /* @__PURE__ */ a.jsx(l, { sx: n.leadContentContainer, children: /* @__PURE__ */ a.jsx(
|
|
307
|
+
Ze,
|
|
308
|
+
{
|
|
309
|
+
sdk: t.sdk,
|
|
310
|
+
startGame: je,
|
|
311
|
+
contentId: t.matchQuiz.id,
|
|
312
|
+
contentName: t.matchQuiz.title,
|
|
313
|
+
brandingColors: (e = t.matchQuiz.branding) == null ? void 0 : e.colors,
|
|
314
|
+
brandingUrls: (s = t.matchQuiz.branding) == null ? void 0 : s.urls,
|
|
315
|
+
campaignId: (m = t.leads) == null ? void 0 : m.campaignId,
|
|
316
|
+
campaignName: (o = t.leads) == null ? void 0 : o.campaignName,
|
|
317
|
+
fields: (c = t.leads) == null ? void 0 : c.fields,
|
|
318
|
+
leadTitle: (d = t.matchQuiz.labels) == null ? void 0 : d.leadTitle,
|
|
319
|
+
leadDescription: (f = t.matchQuiz.labels) == null ? void 0 : f.leadDescription,
|
|
320
|
+
leadCta: (g = t.matchQuiz.labels) == null ? void 0 : g.leadCta,
|
|
321
|
+
leadSuccessTitle: (P = t.matchQuiz.labels) == null ? void 0 : P.leadSuccessTitle,
|
|
322
|
+
leadSuccessDescription: (z = t.matchQuiz.labels) == null ? void 0 : z.leadSuccessDescription
|
|
323
|
+
}
|
|
324
|
+
) })
|
|
325
|
+
}
|
|
326
|
+
) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
327
|
+
t.showCountdown && !T && t.matchQuiz.status === "OPEN" && /* @__PURE__ */ a.jsx(
|
|
328
|
+
l,
|
|
329
|
+
{
|
|
330
|
+
sx: {
|
|
331
|
+
my: k.lg
|
|
332
|
+
},
|
|
333
|
+
children: /* @__PURE__ */ a.jsx(
|
|
334
|
+
st,
|
|
335
|
+
{
|
|
336
|
+
predictionsCutoffTime: t.matchQuiz.predictionsCutoff,
|
|
337
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
338
|
+
isSplitVariant: !0
|
|
339
|
+
}
|
|
340
|
+
)
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
!T && /* @__PURE__ */ a.jsx(l, { sx: n.paginationContainer, children: /* @__PURE__ */ a.jsx(
|
|
344
|
+
ot,
|
|
345
|
+
{
|
|
346
|
+
matchQuiz: t.matchQuiz,
|
|
347
|
+
currentStep: h,
|
|
348
|
+
totalSteps: _,
|
|
349
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
350
|
+
isSplitVariant: !0
|
|
351
|
+
}
|
|
352
|
+
) }),
|
|
353
|
+
/* @__PURE__ */ a.jsx(l, { sx: n.questionAreaContent, children: /* @__PURE__ */ a.jsxs(l, { sx: n.mainContentContainer, children: [
|
|
354
|
+
h === _ ? /* @__PURE__ */ a.jsx(
|
|
355
|
+
ct,
|
|
356
|
+
{
|
|
357
|
+
fixtures: t.matchQuiz.fixtures,
|
|
358
|
+
prediction: t.prediction,
|
|
359
|
+
brandingPrimaryColor: i == null ? void 0 : i.primaryColor,
|
|
360
|
+
onEditPrediction: ze,
|
|
361
|
+
onPredictionUpdate: t.setPrediction,
|
|
362
|
+
view: "play",
|
|
363
|
+
play: async () => t.play(),
|
|
364
|
+
isSplitVariant: !0
|
|
365
|
+
}
|
|
366
|
+
) : Ve(),
|
|
367
|
+
/* @__PURE__ */ a.jsxs(l, { sx: n.navigationContainer, children: [
|
|
368
|
+
h > 1 && h < _ && /* @__PURE__ */ a.jsx(
|
|
369
|
+
he,
|
|
370
|
+
{
|
|
371
|
+
variant: "outlined",
|
|
372
|
+
onClick: Qe,
|
|
373
|
+
sx: {
|
|
374
|
+
borderRadius: G,
|
|
375
|
+
py: "10px",
|
|
376
|
+
px: "16px",
|
|
377
|
+
borderColor: R,
|
|
378
|
+
color: R,
|
|
379
|
+
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
380
|
+
transform: "scale(1)",
|
|
381
|
+
alignSelf: "center",
|
|
382
|
+
"&:hover": {
|
|
383
|
+
borderColor: R,
|
|
384
|
+
backgroundColor: `${R}10`,
|
|
385
|
+
transform: "scale(1.02)"
|
|
386
|
+
},
|
|
387
|
+
"&:active": {
|
|
388
|
+
transform: "scale(0.98)"
|
|
389
|
+
},
|
|
390
|
+
fontSize: "0.9375em"
|
|
391
|
+
},
|
|
392
|
+
children: /* @__PURE__ */ a.jsx(
|
|
393
|
+
C,
|
|
394
|
+
{
|
|
395
|
+
sx: {
|
|
396
|
+
fontFamily: b,
|
|
397
|
+
fontWeight: 500,
|
|
398
|
+
fontSize: "0.9375em",
|
|
399
|
+
lineHeight: "24px",
|
|
400
|
+
letterSpacing: "0.46px",
|
|
401
|
+
textTransform: "uppercase",
|
|
402
|
+
color: R,
|
|
403
|
+
gap: "8px",
|
|
404
|
+
display: "flex",
|
|
405
|
+
alignItems: "center"
|
|
406
|
+
},
|
|
407
|
+
children: x("matchQuiz.buttons.back")
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
!T && /* @__PURE__ */ a.jsx(
|
|
413
|
+
he,
|
|
414
|
+
{
|
|
415
|
+
variant: "soft",
|
|
416
|
+
onClick: Pe,
|
|
417
|
+
disabled: !Te(),
|
|
418
|
+
loading: t.isPlaying,
|
|
419
|
+
sx: {
|
|
420
|
+
borderRadius: G,
|
|
421
|
+
py: "10px",
|
|
422
|
+
px: "16px",
|
|
423
|
+
bgcolor: R,
|
|
424
|
+
color: y,
|
|
425
|
+
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
426
|
+
transform: "scale(1)",
|
|
427
|
+
alignSelf: "center",
|
|
428
|
+
"&:hover": {
|
|
429
|
+
bgcolor: R,
|
|
430
|
+
transform: "scale(1.02)"
|
|
431
|
+
},
|
|
432
|
+
"&:active": {
|
|
433
|
+
color: y,
|
|
434
|
+
transform: "scale(0.98)"
|
|
435
|
+
},
|
|
436
|
+
"&:disabled": {
|
|
437
|
+
bgcolor: R,
|
|
438
|
+
color: y,
|
|
439
|
+
opacity: "12%"
|
|
440
|
+
},
|
|
441
|
+
"--Icon-color": y,
|
|
442
|
+
fontSize: "0.9375em"
|
|
443
|
+
},
|
|
444
|
+
children: /* @__PURE__ */ a.jsx(
|
|
445
|
+
C,
|
|
446
|
+
{
|
|
447
|
+
sx: {
|
|
448
|
+
fontFamily: b,
|
|
449
|
+
fontWeight: 500,
|
|
450
|
+
fontSize: "0.9375em",
|
|
451
|
+
lineHeight: "24px",
|
|
452
|
+
letterSpacing: "0.46px",
|
|
453
|
+
textTransform: "uppercase",
|
|
454
|
+
color: y,
|
|
455
|
+
gap: "8px",
|
|
456
|
+
display: "flex",
|
|
457
|
+
alignItems: "center"
|
|
458
|
+
},
|
|
459
|
+
children: x(h === _ ? "matchQuiz.buttons.play" : "matchQuiz.buttons.next")
|
|
460
|
+
}
|
|
461
|
+
)
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
] })
|
|
465
|
+
] }) })
|
|
466
|
+
] }) });
|
|
467
|
+
}, Ie = () => {
|
|
468
|
+
switch (t.matchQuiz.status) {
|
|
469
|
+
case "PENDING":
|
|
470
|
+
return pe();
|
|
471
|
+
case "LIVE":
|
|
472
|
+
return Ae();
|
|
473
|
+
case "CLOSED":
|
|
474
|
+
return Le();
|
|
475
|
+
default:
|
|
476
|
+
return De();
|
|
477
|
+
}
|
|
478
|
+
}, W = (e) => {
|
|
479
|
+
var s, m, o, c, d;
|
|
480
|
+
return /* @__PURE__ */ a.jsx(
|
|
481
|
+
Je,
|
|
482
|
+
{
|
|
483
|
+
brandingLogo: L,
|
|
484
|
+
textColor: e,
|
|
485
|
+
label: ((s = t.matchQuiz.labels) == null ? void 0 : s.sponsor) || null,
|
|
486
|
+
primaryUrl: (o = (m = t.matchQuiz.branding) == null ? void 0 : m.urls) == null ? void 0 : o.primaryUrl,
|
|
487
|
+
secondaryUrl: (d = (c = t.matchQuiz.branding) == null ? void 0 : c.urls) == null ? void 0 : d.secondaryUrl
|
|
488
|
+
}
|
|
489
|
+
);
|
|
490
|
+
};
|
|
491
|
+
return /* @__PURE__ */ a.jsxs(qe, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: [
|
|
492
|
+
/* @__PURE__ */ a.jsx(
|
|
493
|
+
Ue,
|
|
494
|
+
{
|
|
495
|
+
entity: t.matchQuiz,
|
|
496
|
+
headline: x("matchQuiz.headline"),
|
|
497
|
+
finalImage: ge,
|
|
498
|
+
brandingLogo: L,
|
|
499
|
+
renderPresentedBy: W,
|
|
500
|
+
rulesDisplay: t.rulesDisplay,
|
|
501
|
+
children: Ie()
|
|
502
|
+
}
|
|
503
|
+
),
|
|
504
|
+
L && Se && /* @__PURE__ */ a.jsx(l, { sx: { mb: k.lg, px: k.lg }, children: W(
|
|
505
|
+
(i == null ? void 0 : i.contentColor) || Ce.colorSchemes.dark.textColor
|
|
506
|
+
) })
|
|
507
|
+
] });
|
|
508
|
+
};
|
|
509
|
+
export {
|
|
510
|
+
Nt as default
|
|
511
|
+
};
|
package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
// Question area
|
|
3
|
+
questionArea: {
|
|
4
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
5
|
+
width: e.isMobile ? "100%" : "50%",
|
|
6
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
7
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
justifyContent: "center"
|
|
11
|
+
},
|
|
12
|
+
// Lead content container (filter screen)
|
|
13
|
+
leadContentContainer: {
|
|
14
|
+
p: e.spacingScale.md,
|
|
15
|
+
gap: e.spacingScale.md,
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "column",
|
|
18
|
+
backdropFilter: "blur(4px)",
|
|
19
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
20
|
+
borderRadius: e.borderRadius.sm
|
|
21
|
+
},
|
|
22
|
+
// Question area content wrapper
|
|
23
|
+
questionAreaContent: {
|
|
24
|
+
p: e.spacingScale.lg,
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
gap: "16px"
|
|
29
|
+
},
|
|
30
|
+
// Main content container
|
|
31
|
+
mainContentContainer: {
|
|
32
|
+
p: e.spacingScale.lg,
|
|
33
|
+
gap: e.spacingScale.md,
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
backdropFilter: "blur(4px)",
|
|
37
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
38
|
+
borderRadius: e.borderRadius.sm,
|
|
39
|
+
position: "relative",
|
|
40
|
+
zIndex: 2
|
|
41
|
+
},
|
|
42
|
+
// Game state container
|
|
43
|
+
gameStateContainer: {
|
|
44
|
+
display: "flex",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
gap: e.spacingScale.xs,
|
|
47
|
+
textAlign: "center"
|
|
48
|
+
},
|
|
49
|
+
// State title
|
|
50
|
+
stateTitle: {
|
|
51
|
+
fontFamily: e.fontFamilyPrimary,
|
|
52
|
+
fontWeight: 700,
|
|
53
|
+
fontSize: "1.5em",
|
|
54
|
+
lineHeight: "133%",
|
|
55
|
+
letterSpacing: "0.15px",
|
|
56
|
+
color: e.textColor
|
|
57
|
+
},
|
|
58
|
+
// State description
|
|
59
|
+
stateDescription: {
|
|
60
|
+
fontFamily: e.fontFamilyPrimary,
|
|
61
|
+
fontWeight: 400,
|
|
62
|
+
fontSize: "1.25em",
|
|
63
|
+
lineHeight: "140%",
|
|
64
|
+
letterSpacing: "0.15px",
|
|
65
|
+
color: e.secondaryColor,
|
|
66
|
+
opacity: "60%"
|
|
67
|
+
},
|
|
68
|
+
// Live indicator container
|
|
69
|
+
liveIndicatorContainer: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
justifyContent: "center",
|
|
73
|
+
gap: e.spacingScale.xs
|
|
74
|
+
},
|
|
75
|
+
// Live indicator
|
|
76
|
+
liveIndicator: {
|
|
77
|
+
width: "12px",
|
|
78
|
+
height: "12px",
|
|
79
|
+
borderRadius: "50%",
|
|
80
|
+
backgroundColor: e.dangerColor,
|
|
81
|
+
animation: "pulse 2s infinite",
|
|
82
|
+
"@keyframes pulse": {
|
|
83
|
+
"0%": {
|
|
84
|
+
opacity: 1,
|
|
85
|
+
transform: "scale(1)"
|
|
86
|
+
},
|
|
87
|
+
"50%": {
|
|
88
|
+
opacity: 0.7,
|
|
89
|
+
transform: "scale(1.1)"
|
|
90
|
+
},
|
|
91
|
+
"100%": {
|
|
92
|
+
opacity: 1,
|
|
93
|
+
transform: "scale(1)"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
// Live text
|
|
98
|
+
liveText: {
|
|
99
|
+
fontFamily: e.fontFamilyPrimary,
|
|
100
|
+
fontWeight: 600,
|
|
101
|
+
fontSize: "1em",
|
|
102
|
+
color: e.dangerColor,
|
|
103
|
+
textTransform: "uppercase",
|
|
104
|
+
letterSpacing: "0.5px"
|
|
105
|
+
},
|
|
106
|
+
// Pagination container
|
|
107
|
+
paginationContainer: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
justifyContent: "center",
|
|
110
|
+
px: e.spacingScale.lg
|
|
111
|
+
},
|
|
112
|
+
// Navigation container
|
|
113
|
+
navigationContainer: {
|
|
114
|
+
display: "flex",
|
|
115
|
+
gap: e.spacingScale.md,
|
|
116
|
+
justifyContent: "center",
|
|
117
|
+
alignItems: "center"
|
|
118
|
+
},
|
|
119
|
+
matchResultBadge: {
|
|
120
|
+
display: "flex",
|
|
121
|
+
alignItems: "center",
|
|
122
|
+
alignSelf: "center",
|
|
123
|
+
gap: e.spacingScale.xs,
|
|
124
|
+
fontSize: "0.75em",
|
|
125
|
+
padding: "2px 6px",
|
|
126
|
+
minHeight: "20px",
|
|
127
|
+
borderRadius: e.borderRadius.sm,
|
|
128
|
+
border: `1px solid ${e.textColor}20`,
|
|
129
|
+
backgroundColor: e.textColor + "10",
|
|
130
|
+
width: "fit-content"
|
|
131
|
+
},
|
|
132
|
+
matchResultTeamLogo: {
|
|
133
|
+
width: "20px",
|
|
134
|
+
height: "20px",
|
|
135
|
+
borderRadius: "50%",
|
|
136
|
+
overflow: "hidden",
|
|
137
|
+
flexShrink: 0
|
|
138
|
+
},
|
|
139
|
+
matchResultScoreText: {
|
|
140
|
+
fontFamily: e.fontFamilyPrimary,
|
|
141
|
+
fontSize: "0.75em",
|
|
142
|
+
fontWeight: 600,
|
|
143
|
+
color: e.textColor,
|
|
144
|
+
lineHeight: 1
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
export {
|
|
148
|
+
t as createStyles
|
|
149
|
+
};
|