fansunited-frontend-components 0.0.31-RC3 → 0.0.31-RC5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.d.ts +4 -0
- package/ClassicQuizPlay.d.ts.map +1 -0
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.d.ts +4 -0
- package/CollectLead.d.ts.map +1 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.d.ts +4 -0
- package/EventGamePlay.d.ts.map +1 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.d.ts +4 -0
- package/MatchQuizPlay.d.ts.map +1 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.d.ts +4 -0
- package/PersonalityQuizPlay.d.ts.map +1 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.d.ts +4 -0
- package/PollVote.d.ts.map +1 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -105201
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import Y, { useCallback as b, useMemo as q } from "react";
|
|
3
|
+
import { Box as o, Typography as f, Button as fe } from "@mui/joy";
|
|
4
|
+
import { useInternalTheme as We, isMobile as Ue, isExtraSmall as Ke, useColors as O, useFontFamily as Se, useCornerRadius as Re, useSpacingScale as Xe, useImageBackgroundGradient as Je } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import { hexToRgb as Ze } 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 ge } from "../../../../../common/src/enums/enums.js";
|
|
9
|
+
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import et from "../../../../../common/src/components/Skeletons/Standard/StandardSkeleton.js";
|
|
11
|
+
import { useImageVariant as tt } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
+
import at from "../../Shared/MainCard.js";
|
|
14
|
+
import it from "../../Shared/PresentedBy.js";
|
|
15
|
+
import rt from "../../Leads/CollectLeadWrapper.js";
|
|
16
|
+
import { createStyles as nt } from "./MatchQuizStandardVariant.styles.js";
|
|
17
|
+
import { MarketEnum as n } from "fansunited-sdk-esm";
|
|
18
|
+
import ot from "../../Shared/Fixtures/CorrectScore/CorrectScoreFixture.js";
|
|
19
|
+
import st from "../../Shared/Fixtures/1X2/OneXTwoFixture.js";
|
|
20
|
+
import ct from "../../Shared/Fixtures/Corners/CornersFixture.js";
|
|
21
|
+
import lt from "../../Shared/Fixtures/YesNo/YesNoFixture.js";
|
|
22
|
+
import mt from "../../Shared/Fixtures/Players/PlayersFixture.js";
|
|
23
|
+
import dt from "../../Shared/Stepper.js";
|
|
24
|
+
import ut from "../../Shared/Countdown.js";
|
|
25
|
+
import xt from "../../Shared/Summary/PredictionSummary.js";
|
|
26
|
+
import { isPredictionsCutoffPassed as ht } from "../../../helpers/helpers.js";
|
|
27
|
+
import { useTranslation as Ct } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
28
|
+
const Yt = (a) => {
|
|
29
|
+
var J, Z, ee, te, ae, ie, re, ne, oe, se, ce, le, me, de;
|
|
30
|
+
const [x, D] = Y.useState(1), [Ee, H] = Y.useState(
|
|
31
|
+
((J = a.leads) == null ? void 0 : J.position) === "before" && a.matchQuiz.authRequirement === "LEAD"
|
|
32
|
+
), _e = We(), { t: C } = Ct();
|
|
33
|
+
Y.useEffect(() => {
|
|
34
|
+
var t;
|
|
35
|
+
H(
|
|
36
|
+
((t = a.leads) == null ? void 0 : t.position) === "before" && a.matchQuiz.authRequirement === "LEAD" || !1
|
|
37
|
+
);
|
|
38
|
+
}, [(Z = a.leads) == null ? void 0 : Z.position, a.matchQuiz.authRequirement]);
|
|
39
|
+
const p = Ue(), ye = Ke(), r = ((ee = a.matchQuiz.branding) == null ? void 0 : ee.colors) || null, E = p ? ((ae = (te = a.matchQuiz.branding) == null ? void 0 : te.images) == null ? void 0 : ae.mobileLogo) || ((re = (ie = a.matchQuiz.branding) == null ? void 0 : ie.images) == null ? void 0 : re.mainLogo) || "" : ((oe = (ne = a.matchQuiz.branding) == null ? void 0 : ne.images) == null ? void 0 : oe.mainLogo) || "", je = a.imagePosition || "left", v = tt(
|
|
40
|
+
{
|
|
41
|
+
images: a.matchQuiz.images,
|
|
42
|
+
imagePlaceholder: a.defaultImagePlaceholderUrl ? a.defaultImagePlaceholderUrl : ""
|
|
43
|
+
},
|
|
44
|
+
ge.STANDARD
|
|
45
|
+
), R = ye || p && !!v, ke = O().palette.danger.plainColor, _ = (r == null ? void 0 : r.contentColor) || O().textColor, Oe = (r == null ? void 0 : r.secondaryColor) || O().textColor, Pe = Se().secondary, Te = "60%", I = Se().primary, ze = (r == null ? void 0 : r.backgroundColor) || O().surfaceVariant, Ae = Re(), g = (r == null ? void 0 : r.primaryColor) || O().palette.primary.plainColor, P = O().palette.primary.onPrimary, $ = Re().xl, Le = Xe(), Qe = Je(
|
|
46
|
+
ge.STANDARD
|
|
47
|
+
), i = nt({
|
|
48
|
+
finalImage: v,
|
|
49
|
+
spacingScale: Le,
|
|
50
|
+
borderRadius: Ae,
|
|
51
|
+
fontFamilyPrimary: I,
|
|
52
|
+
fontFamilySecondary: Pe,
|
|
53
|
+
textColor: _,
|
|
54
|
+
secondaryColor: Oe,
|
|
55
|
+
bgcolor: Ze(ze || ""),
|
|
56
|
+
opacity: Te,
|
|
57
|
+
brandingColors: r,
|
|
58
|
+
darkTextColor: _e.colorSchemes.dark.textColor,
|
|
59
|
+
imageBackgroundGradient: Qe,
|
|
60
|
+
isMobile: p,
|
|
61
|
+
isExtraSmall: R,
|
|
62
|
+
dangerColor: ke
|
|
63
|
+
}), be = () => {
|
|
64
|
+
H(!1);
|
|
65
|
+
}, B = b(
|
|
66
|
+
(t, l, m) => {
|
|
67
|
+
const s = `${l}:${m}`;
|
|
68
|
+
a.setPrediction((c) => {
|
|
69
|
+
const d = { ...c }, h = d.fixtures.find((y) => y.market === t);
|
|
70
|
+
return h && (h.prediction.value = s), d;
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
[a.setPrediction]
|
|
74
|
+
), W = b(
|
|
75
|
+
(t, l) => {
|
|
76
|
+
a.setPrediction((m) => {
|
|
77
|
+
const s = { ...m }, c = s.fixtures.find(
|
|
78
|
+
(d) => d.market === t
|
|
79
|
+
);
|
|
80
|
+
return c && (c.prediction.value = l), s;
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
[a.setPrediction]
|
|
84
|
+
), U = b(
|
|
85
|
+
(t, l) => {
|
|
86
|
+
a.setPrediction((m) => {
|
|
87
|
+
const s = { ...m }, c = s.fixtures.find(
|
|
88
|
+
(d) => d.market === t
|
|
89
|
+
);
|
|
90
|
+
return c && (c.prediction.playerId = l), s;
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
[a.setPrediction]
|
|
94
|
+
), K = b(
|
|
95
|
+
(t, l) => {
|
|
96
|
+
a.setPrediction((m) => {
|
|
97
|
+
const s = { ...m }, c = s.fixtures.find((d) => d.market === t);
|
|
98
|
+
return c && (c.prediction.value = l), s;
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
[a.setPrediction]
|
|
102
|
+
), j = a.matchQuiz.fixtures.length + 1, N = a.matchQuiz.status === "OPEN" && ht(a.matchQuiz.predictionsCutoff), De = x === j && ((se = a.leads) == null ? void 0 : se.position) !== "after" ? C("matchQuiz.buttons.play") : C("matchQuiz.buttons.next"), pe = () => {
|
|
103
|
+
x < j ? D(x + 1) : a.play();
|
|
104
|
+
}, ve = (t) => {
|
|
105
|
+
D(t + 1);
|
|
106
|
+
}, Ie = () => {
|
|
107
|
+
var m, s;
|
|
108
|
+
if (x === j) return !0;
|
|
109
|
+
const t = a.matchQuiz.fixtures[x - 1];
|
|
110
|
+
if (!t) return !1;
|
|
111
|
+
const l = (s = (m = a.prediction) == null ? void 0 : m.fixtures) == null ? void 0 : s.find(
|
|
112
|
+
(c) => c.market === t.market
|
|
113
|
+
);
|
|
114
|
+
return l ? t.market === n.CORRECT_SCORE || t.market === n.CORRECT_SCORE_HT || t.market === n.CORRECT_SCORE_ADVANCED || t.market === n.CORNERS_MATCH ? !0 : t.market === n.PLAYER_SCORE || t.market === n.PLAYER_YELLOW_CARD || t.market === n.PLAYER_RED_CARD || t.market === n.PLAYER_SCORE_FIRST_GOAL || t.market === n.PLAYER_SCORE_HATTRICK || t.market === n.PLAYER_SCORE_TWICE ? l.prediction.playerId !== void 0 : l.prediction.value !== null : !1;
|
|
115
|
+
}, Ne = () => {
|
|
116
|
+
x > 1 && D(x - 1);
|
|
117
|
+
}, we = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
|
|
118
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
|
|
119
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.pending.title") }),
|
|
120
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.pending.description") })
|
|
121
|
+
] }) }),
|
|
122
|
+
E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
|
|
123
|
+
] }) }), X = () => {
|
|
124
|
+
var s, c, d, h;
|
|
125
|
+
const t = (s = a.matchQuiz.fixtures[0]) == null ? void 0 : s.matchModel;
|
|
126
|
+
if (!t || !((c = t.scores) != null && c.ftScore)) return null;
|
|
127
|
+
const l = t.scores.ftScore.homeGoals || 0, m = t.scores.ftScore.awayGoals || 0;
|
|
128
|
+
return /* @__PURE__ */ e.jsxs(o, { sx: i.matchResultBadge, children: [
|
|
129
|
+
((d = t.homeTeam.assets) == null ? void 0 : d.logo) && /* @__PURE__ */ e.jsx(o, { sx: i.matchResultTeamLogo, children: /* @__PURE__ */ e.jsx(
|
|
130
|
+
"img",
|
|
131
|
+
{
|
|
132
|
+
src: t.homeTeam.assets.logo,
|
|
133
|
+
alt: t.homeTeam.name,
|
|
134
|
+
style: {
|
|
135
|
+
width: "100%",
|
|
136
|
+
height: "100%",
|
|
137
|
+
borderRadius: "50%",
|
|
138
|
+
objectFit: "cover"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
) }),
|
|
142
|
+
/* @__PURE__ */ e.jsxs(f, { sx: i.matchResultScoreText, children: [
|
|
143
|
+
l,
|
|
144
|
+
" - ",
|
|
145
|
+
m
|
|
146
|
+
] }),
|
|
147
|
+
((h = t.awayTeam.assets) == null ? void 0 : h.logo) && /* @__PURE__ */ e.jsx(o, { sx: i.matchResultTeamLogo, children: /* @__PURE__ */ e.jsx(
|
|
148
|
+
"img",
|
|
149
|
+
{
|
|
150
|
+
src: t.awayTeam.assets.logo,
|
|
151
|
+
alt: t.awayTeam.name,
|
|
152
|
+
style: {
|
|
153
|
+
width: "100%",
|
|
154
|
+
height: "100%",
|
|
155
|
+
borderRadius: "50%",
|
|
156
|
+
objectFit: "cover"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
) })
|
|
160
|
+
] });
|
|
161
|
+
}, Me = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
|
|
162
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
|
|
163
|
+
X(),
|
|
164
|
+
/* @__PURE__ */ e.jsxs(o, { sx: i.liveIndicatorContainer, children: [
|
|
165
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.liveIndicator }),
|
|
166
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.liveText, children: C("matchQuiz.states.live.indicator") })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.live.description") })
|
|
169
|
+
] }) }),
|
|
170
|
+
E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
|
|
171
|
+
] }) }), Ve = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
|
|
172
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
|
|
173
|
+
X(),
|
|
174
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.closedStateHeader, children: /* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.closed.title") }) }),
|
|
175
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.closed.description") })
|
|
176
|
+
] }) }),
|
|
177
|
+
E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
|
|
178
|
+
] }) }), Fe = () => /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
|
|
179
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.open.title") }),
|
|
180
|
+
/* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.open.description") })
|
|
181
|
+
] }), Ge = () => {
|
|
182
|
+
var t, l, m, s, c, d, h, y, A, L, Q;
|
|
183
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, { children: Ee ? /* @__PURE__ */ e.jsx(o, { sx: i.leadCollectionContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.leadQuestionContainer, children: [
|
|
184
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.leadContentContainer, children: /* @__PURE__ */ e.jsx(
|
|
185
|
+
rt,
|
|
186
|
+
{
|
|
187
|
+
sdk: a.sdk,
|
|
188
|
+
startGame: be,
|
|
189
|
+
contentId: a.matchQuiz.id,
|
|
190
|
+
contentName: a.matchQuiz.title,
|
|
191
|
+
brandingColors: (t = a.matchQuiz.branding) == null ? void 0 : t.colors,
|
|
192
|
+
brandingUrls: (l = a.matchQuiz.branding) == null ? void 0 : l.urls,
|
|
193
|
+
campaignId: (m = a.leads) == null ? void 0 : m.campaignId,
|
|
194
|
+
campaignName: (s = a.leads) == null ? void 0 : s.campaignName,
|
|
195
|
+
fields: (c = a.leads) == null ? void 0 : c.fields,
|
|
196
|
+
leadTitle: (d = a.matchQuiz.labels) == null ? void 0 : d.leadTitle,
|
|
197
|
+
leadDescription: (h = a.matchQuiz.labels) == null ? void 0 : h.leadDescription,
|
|
198
|
+
leadCta: (y = a.matchQuiz.labels) == null ? void 0 : y.leadCta,
|
|
199
|
+
leadSuccessTitle: (A = a.matchQuiz.labels) == null ? void 0 : A.leadSuccessTitle,
|
|
200
|
+
leadSuccessDescription: (L = a.matchQuiz.labels) == null ? void 0 : L.leadSuccessDescription,
|
|
201
|
+
syncWithProfile: (Q = a.leads) == null ? void 0 : Q.syncWithProfile
|
|
202
|
+
}
|
|
203
|
+
) }),
|
|
204
|
+
k(_)
|
|
205
|
+
] }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
206
|
+
a.showCountdown && a.matchQuiz.status === "OPEN" && /* @__PURE__ */ e.jsx(
|
|
207
|
+
ut,
|
|
208
|
+
{
|
|
209
|
+
predictionsCutoffTime: a.matchQuiz.predictionsCutoff,
|
|
210
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
/* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
|
|
214
|
+
!N && /* @__PURE__ */ e.jsx(o, { sx: i.paginationContainer, children: /* @__PURE__ */ e.jsx(
|
|
215
|
+
dt,
|
|
216
|
+
{
|
|
217
|
+
matchQuiz: a.matchQuiz,
|
|
218
|
+
currentStep: x,
|
|
219
|
+
totalSteps: j,
|
|
220
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor
|
|
221
|
+
}
|
|
222
|
+
) }),
|
|
223
|
+
x === j ? /* @__PURE__ */ e.jsx(
|
|
224
|
+
xt,
|
|
225
|
+
{
|
|
226
|
+
fixtures: a.matchQuiz.fixtures,
|
|
227
|
+
prediction: a.prediction,
|
|
228
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
229
|
+
onEditPrediction: ve,
|
|
230
|
+
onPredictionUpdate: a.setPrediction,
|
|
231
|
+
view: "play",
|
|
232
|
+
play: async () => a.play()
|
|
233
|
+
}
|
|
234
|
+
) : /* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: qe() }),
|
|
235
|
+
/* @__PURE__ */ e.jsxs(
|
|
236
|
+
o,
|
|
237
|
+
{
|
|
238
|
+
sx: E ? i.footerContainer : i.footerContainerNoLogo,
|
|
239
|
+
children: [
|
|
240
|
+
E && !R ? k(_, "row") : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
241
|
+
/* @__PURE__ */ e.jsxs(o, { sx: i.navigationContainer, children: [
|
|
242
|
+
x > 1 && x < j && /* @__PURE__ */ e.jsx(
|
|
243
|
+
fe,
|
|
244
|
+
{
|
|
245
|
+
variant: "outlined",
|
|
246
|
+
onClick: Ne,
|
|
247
|
+
sx: {
|
|
248
|
+
borderRadius: $,
|
|
249
|
+
py: "10px",
|
|
250
|
+
px: "16px",
|
|
251
|
+
borderColor: g,
|
|
252
|
+
color: g,
|
|
253
|
+
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
254
|
+
transform: "scale(1)",
|
|
255
|
+
alignSelf: "center",
|
|
256
|
+
"&:hover": {
|
|
257
|
+
borderColor: g,
|
|
258
|
+
backgroundColor: `${g}10`,
|
|
259
|
+
transform: "scale(1.02)"
|
|
260
|
+
},
|
|
261
|
+
"&:active": {
|
|
262
|
+
transform: "scale(0.98)"
|
|
263
|
+
},
|
|
264
|
+
fontSize: "0.9375em"
|
|
265
|
+
},
|
|
266
|
+
children: /* @__PURE__ */ e.jsx(
|
|
267
|
+
f,
|
|
268
|
+
{
|
|
269
|
+
sx: {
|
|
270
|
+
fontFamily: I,
|
|
271
|
+
fontWeight: 500,
|
|
272
|
+
fontSize: "0.9375em",
|
|
273
|
+
lineHeight: "24px",
|
|
274
|
+
letterSpacing: "0.46px",
|
|
275
|
+
textTransform: "uppercase",
|
|
276
|
+
color: g,
|
|
277
|
+
gap: "8px",
|
|
278
|
+
display: "flex",
|
|
279
|
+
alignItems: "center"
|
|
280
|
+
},
|
|
281
|
+
children: C("matchQuiz.buttons.back")
|
|
282
|
+
}
|
|
283
|
+
)
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
!N && /* @__PURE__ */ e.jsx(
|
|
287
|
+
fe,
|
|
288
|
+
{
|
|
289
|
+
variant: "soft",
|
|
290
|
+
onClick: pe,
|
|
291
|
+
disabled: !Ie(),
|
|
292
|
+
loading: a.isPlaying,
|
|
293
|
+
sx: {
|
|
294
|
+
borderRadius: $,
|
|
295
|
+
py: "10px",
|
|
296
|
+
px: "16px",
|
|
297
|
+
bgcolor: g,
|
|
298
|
+
color: P,
|
|
299
|
+
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
300
|
+
transform: "scale(1)",
|
|
301
|
+
alignSelf: "center",
|
|
302
|
+
"&:hover": {
|
|
303
|
+
bgcolor: g,
|
|
304
|
+
transform: "scale(1.02)"
|
|
305
|
+
},
|
|
306
|
+
"&:active": {
|
|
307
|
+
color: P,
|
|
308
|
+
transform: "scale(0.98)"
|
|
309
|
+
},
|
|
310
|
+
"&:disabled": {
|
|
311
|
+
bgcolor: g,
|
|
312
|
+
color: P,
|
|
313
|
+
opacity: "12%"
|
|
314
|
+
},
|
|
315
|
+
"--Icon-color": P,
|
|
316
|
+
fontSize: "0.9375em"
|
|
317
|
+
},
|
|
318
|
+
children: /* @__PURE__ */ e.jsx(
|
|
319
|
+
f,
|
|
320
|
+
{
|
|
321
|
+
sx: {
|
|
322
|
+
fontFamily: I,
|
|
323
|
+
fontWeight: 500,
|
|
324
|
+
fontSize: "0.9375em",
|
|
325
|
+
lineHeight: "24px",
|
|
326
|
+
letterSpacing: "0.46px",
|
|
327
|
+
textTransform: "uppercase",
|
|
328
|
+
color: P,
|
|
329
|
+
gap: "8px",
|
|
330
|
+
display: "flex",
|
|
331
|
+
alignItems: "center"
|
|
332
|
+
},
|
|
333
|
+
children: De
|
|
334
|
+
}
|
|
335
|
+
)
|
|
336
|
+
}
|
|
337
|
+
)
|
|
338
|
+
] })
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
E && R ? k(_) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
343
|
+
] }) })
|
|
344
|
+
] }) });
|
|
345
|
+
}, Ye = () => {
|
|
346
|
+
switch (a.matchQuiz.status) {
|
|
347
|
+
case "PENDING":
|
|
348
|
+
return we();
|
|
349
|
+
case "LIVE":
|
|
350
|
+
return Me();
|
|
351
|
+
case "CLOSED":
|
|
352
|
+
return Ve();
|
|
353
|
+
default:
|
|
354
|
+
return Ge();
|
|
355
|
+
}
|
|
356
|
+
}, k = (t, l) => {
|
|
357
|
+
var m, s, c, d, h;
|
|
358
|
+
return /* @__PURE__ */ e.jsx(
|
|
359
|
+
it,
|
|
360
|
+
{
|
|
361
|
+
brandingLogo: E,
|
|
362
|
+
textColor: t,
|
|
363
|
+
label: ((m = a.matchQuiz.labels) == null ? void 0 : m.sponsor) || null,
|
|
364
|
+
flexDirection: l,
|
|
365
|
+
primaryUrl: (c = (s = a.matchQuiz.branding) == null ? void 0 : s.urls) == null ? void 0 : c.primaryUrl,
|
|
366
|
+
secondaryUrl: (h = (d = a.matchQuiz.branding) == null ? void 0 : d.urls) == null ? void 0 : h.secondaryUrl
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
}, u = q(() => a.matchQuiz.fixtures[x - 1], [a.matchQuiz.fixtures, x]), T = q(() => u == null ? void 0 : u.matchModel, [
|
|
370
|
+
(le = (ce = u == null ? void 0 : u.matchModel) == null ? void 0 : ce.homeTeam) == null ? void 0 : le.id,
|
|
371
|
+
(de = (me = u == null ? void 0 : u.matchModel) == null ? void 0 : me.awayTeam) == null ? void 0 : de.id
|
|
372
|
+
]), z = q(() => u ? {
|
|
373
|
+
onScoreChange: (t, l) => B(u.market, t, l),
|
|
374
|
+
onSelectionChange: (t) => W(u.market, t),
|
|
375
|
+
onCornersChange: (t) => K(u.market, t),
|
|
376
|
+
onPlayerSelection: (t) => U(u.market, t)
|
|
377
|
+
} : {}, [
|
|
378
|
+
u == null ? void 0 : u.market,
|
|
379
|
+
B,
|
|
380
|
+
W,
|
|
381
|
+
K,
|
|
382
|
+
U
|
|
383
|
+
]), qe = () => {
|
|
384
|
+
var l, m, s, c, d, h, y, A, L, Q, ue, xe, he, Ce;
|
|
385
|
+
const t = u;
|
|
386
|
+
if (N)
|
|
387
|
+
return Fe();
|
|
388
|
+
if (t)
|
|
389
|
+
switch (t.market) {
|
|
390
|
+
case n.CORRECT_SCORE:
|
|
391
|
+
case n.CORRECT_SCORE_HT:
|
|
392
|
+
case n.CORRECT_SCORE_ADVANCED:
|
|
393
|
+
const w = (m = (l = a.prediction) == null ? void 0 : l.fixtures) == null ? void 0 : m.find(
|
|
394
|
+
(S) => S.market === t.market
|
|
395
|
+
), He = (w == null ? void 0 : w.prediction.value) || "0:0", [$e, Be] = He.split(":").map(Number);
|
|
396
|
+
return /* @__PURE__ */ e.jsx(
|
|
397
|
+
ot,
|
|
398
|
+
{
|
|
399
|
+
matchModel: T,
|
|
400
|
+
market: t.market,
|
|
401
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
402
|
+
onScoreChange: z.onScoreChange,
|
|
403
|
+
initialHomeScore: $e,
|
|
404
|
+
initialAwayScore: Be,
|
|
405
|
+
useExtraSmallLayout: R
|
|
406
|
+
},
|
|
407
|
+
`${t.market}-${x}`
|
|
408
|
+
);
|
|
409
|
+
case n.FT_1X2:
|
|
410
|
+
case n.HT_1X2:
|
|
411
|
+
const M = (c = (s = a.prediction) == null ? void 0 : s.fixtures) == null ? void 0 : c.find(
|
|
412
|
+
(S) => S.market === t.market
|
|
413
|
+
);
|
|
414
|
+
return /* @__PURE__ */ e.jsx(
|
|
415
|
+
st,
|
|
416
|
+
{
|
|
417
|
+
matchModel: T,
|
|
418
|
+
market: t.market,
|
|
419
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
420
|
+
prediction: ((d = M == null ? void 0 : M.prediction) == null ? void 0 : d.value) || null,
|
|
421
|
+
onSelectionChange: z.onSelectionChange,
|
|
422
|
+
useExtraSmallLayout: R
|
|
423
|
+
},
|
|
424
|
+
`${t.market}-${x}`
|
|
425
|
+
);
|
|
426
|
+
case n.CORNERS_MATCH:
|
|
427
|
+
const V = (y = (h = a.prediction) == null ? void 0 : h.fixtures) == null ? void 0 : y.find(
|
|
428
|
+
(S) => S.market === t.market
|
|
429
|
+
);
|
|
430
|
+
return /* @__PURE__ */ e.jsx(
|
|
431
|
+
ct,
|
|
432
|
+
{
|
|
433
|
+
matchModel: T,
|
|
434
|
+
market: t.market,
|
|
435
|
+
prediction: (A = V == null ? void 0 : V.prediction) == null ? void 0 : A.value,
|
|
436
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
437
|
+
onCornersChange: z.onCornersChange,
|
|
438
|
+
useExtraSmallLayout: R
|
|
439
|
+
},
|
|
440
|
+
`${t.market}-${x}`
|
|
441
|
+
);
|
|
442
|
+
case n.OVER_GOALS_0_5:
|
|
443
|
+
case n.OVER_GOALS_1_5:
|
|
444
|
+
case n.OVER_GOALS_2_5:
|
|
445
|
+
case n.OVER_GOALS_3_5:
|
|
446
|
+
case n.OVER_GOALS_4_5:
|
|
447
|
+
case n.OVER_GOALS_5_5:
|
|
448
|
+
case n.OVER_GOALS_6_5:
|
|
449
|
+
case n.OVER_CORNERS_6_5:
|
|
450
|
+
case n.OVER_CORNERS_7_5:
|
|
451
|
+
case n.OVER_CORNERS_8_5:
|
|
452
|
+
case n.OVER_CORNERS_9_5:
|
|
453
|
+
case n.OVER_CORNERS_10_5:
|
|
454
|
+
case n.OVER_CORNERS_11_5:
|
|
455
|
+
case n.OVER_CORNERS_12_5:
|
|
456
|
+
case n.OVER_CORNERS_13_5:
|
|
457
|
+
case n.RED_CARD_MATCH:
|
|
458
|
+
case n.PENALTY_MATCH:
|
|
459
|
+
const F = (Q = (L = a.prediction) == null ? void 0 : L.fixtures) == null ? void 0 : Q.find(
|
|
460
|
+
(S) => S.market === t.market
|
|
461
|
+
);
|
|
462
|
+
return /* @__PURE__ */ e.jsx(
|
|
463
|
+
lt,
|
|
464
|
+
{
|
|
465
|
+
matchModel: T,
|
|
466
|
+
market: t.market,
|
|
467
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
468
|
+
prediction: (ue = F == null ? void 0 : F.prediction) == null ? void 0 : ue.value,
|
|
469
|
+
onSelectionChange: z.onSelectionChange,
|
|
470
|
+
useExtraSmallLayout: R
|
|
471
|
+
},
|
|
472
|
+
t.market
|
|
473
|
+
);
|
|
474
|
+
case n.PLAYER_SCORE:
|
|
475
|
+
case n.PLAYER_YELLOW_CARD:
|
|
476
|
+
case n.PLAYER_RED_CARD:
|
|
477
|
+
case n.PLAYER_SCORE_FIRST_GOAL:
|
|
478
|
+
case n.PLAYER_SCORE_HATTRICK:
|
|
479
|
+
case n.PLAYER_SCORE_TWICE:
|
|
480
|
+
const G = (he = (xe = a.prediction) == null ? void 0 : xe.fixtures) == null ? void 0 : he.find(
|
|
481
|
+
(S) => S.market === t.market
|
|
482
|
+
);
|
|
483
|
+
return /* @__PURE__ */ e.jsx(
|
|
484
|
+
mt,
|
|
485
|
+
{
|
|
486
|
+
matchModel: T,
|
|
487
|
+
market: t.market,
|
|
488
|
+
brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
|
|
489
|
+
prediction: (Ce = G == null ? void 0 : G.prediction) == null ? void 0 : Ce.playerId,
|
|
490
|
+
onPlayerSelection: z.onPlayerSelection,
|
|
491
|
+
useExtraSmallLayout: R
|
|
492
|
+
},
|
|
493
|
+
`${t.market}-${x}`
|
|
494
|
+
);
|
|
495
|
+
default:
|
|
496
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
return /* @__PURE__ */ e.jsx(at, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ e.jsx(
|
|
500
|
+
et,
|
|
501
|
+
{
|
|
502
|
+
entity: a.matchQuiz,
|
|
503
|
+
headline: C("matchQuiz.headline"),
|
|
504
|
+
finalImage: v,
|
|
505
|
+
imagePosition: je,
|
|
506
|
+
rulesDisplay: a.rulesDisplay,
|
|
507
|
+
children: Ye()
|
|
508
|
+
}
|
|
509
|
+
) });
|
|
510
|
+
};
|
|
511
|
+
export {
|
|
512
|
+
Yt as default
|
|
513
|
+
};
|