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