fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC6
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 +4847 -3
- package/CollectLead.js +1253 -3
- package/EventGamePlay.js +7595 -3
- package/MatchQuizPlay.js +11002 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4167 -3
- package/chunks/CollectLeadForm-DtmR2Vuf.js +844 -0
- package/chunks/Error-DhQL89pn.js +120 -0
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +2425 -0
- package/chunks/OverlayLeadAfterCollection-DnqztPJ5.js +899 -0
- package/chunks/OverlayScoreStateSkeleton-C9FUhcnd.js +147 -0
- package/chunks/Portal-BWqqFvVm.js +13823 -0
- 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,318 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as j, useEffect as L } from "react";
|
|
3
|
-
import { WidgetTemplate as u } from "../../../common/src/enums/enums.js";
|
|
4
|
-
import "../../../common/src/providers/ContainerProvider.js";
|
|
5
|
-
import "../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import N from "../../../common/src/components/Spinner.js";
|
|
8
|
-
import "@mui/joy";
|
|
9
|
-
import "../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
-
import { useEventGameById as F } from "../hooks/useEventGameById.js";
|
|
11
|
-
import { useEventGamePrediction as V } from "../hooks/useEventGamePrediction.js";
|
|
12
|
-
import B from "./Variants/Standard/EventGameStandardVariant.js";
|
|
13
|
-
import M from "./Variants/Standard/ScoreState/EventGameStandardScoreState.js";
|
|
14
|
-
import Y from "./Variants/Split/ScoreState/EventGameSplitScoreState.js";
|
|
15
|
-
import b from "./Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js";
|
|
16
|
-
import O from "./EventGameNotFound.js";
|
|
17
|
-
import q from "./Variants/Standard/Error/EventGameStandardError.js";
|
|
18
|
-
import z from "./Variants/Split/Error/EventGameSplitError.js";
|
|
19
|
-
import H from "./Variants/Overlay/Error/EventGameOverlayError.js";
|
|
20
|
-
import { EventGamePredictionRequestBody as K, EventGameOutcomeTypeEnum as G } from "fansunited-sdk-esm";
|
|
21
|
-
import W from "./Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js";
|
|
22
|
-
import v from "./Shared/Notification.js";
|
|
23
|
-
import _ from "./Variants/Overlay/EventGameOverlayVariant.js";
|
|
24
|
-
import J from "./Variants/Split/EventGameSplitVariant.js";
|
|
25
|
-
import Q from "./Variants/Split/FinishedGame/EventGameSplitFinishedGame.js";
|
|
26
|
-
import X from "./Variants/Overlay/ScoreState/EventGameOverlayScoreState.js";
|
|
27
|
-
import { EventGameConstantsProvider as k } from "../providers/ConstantsProvider.js";
|
|
28
|
-
import { useTranslation as Z } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
29
|
-
const $ = (e) => {
|
|
30
|
-
const r = (l, i) => {
|
|
31
|
-
switch (l) {
|
|
32
|
-
case G.NUMBER:
|
|
33
|
-
return (i == null ? void 0 : i.min) !== null && (i == null ? void 0 : i.min) !== void 0 ? i.min : 0;
|
|
34
|
-
case G.BOOLEAN:
|
|
35
|
-
case G.ENUM:
|
|
36
|
-
case G.FREE_INPUT:
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
}, a = new K();
|
|
40
|
-
return a.fixtures = e.map((l) => ({
|
|
41
|
-
id: l.id,
|
|
42
|
-
predictionType: l.outcomeType,
|
|
43
|
-
prediction: r(l.outcomeType, l.validOutcomes)
|
|
44
|
-
})), a.tiebreaker = null, a;
|
|
45
|
-
};
|
|
46
|
-
function E(e) {
|
|
47
|
-
return e.template === u.STANDARD;
|
|
48
|
-
}
|
|
49
|
-
const we = (e) => {
|
|
50
|
-
const { t: r } = Z(), { game: a, points: l } = F(e.entityId, e.sdk, e.showPoints), {
|
|
51
|
-
myPrediction: i,
|
|
52
|
-
setMyPrediction: C,
|
|
53
|
-
isApiError: f,
|
|
54
|
-
setIsApiError: A,
|
|
55
|
-
isUnauthorized: y,
|
|
56
|
-
setIsUnauthorized: I
|
|
57
|
-
} = V(e.entityId, e.sdk), [x, w] = j(!1), [P, s] = j({
|
|
58
|
-
fixtures: [],
|
|
59
|
-
tiebreaker: null
|
|
60
|
-
}), [h, S] = j({
|
|
61
|
-
open: !1,
|
|
62
|
-
variant: "success",
|
|
63
|
-
title: "",
|
|
64
|
-
message: ""
|
|
65
|
-
}), m = (n, o, T) => {
|
|
66
|
-
S({
|
|
67
|
-
open: !0,
|
|
68
|
-
variant: n,
|
|
69
|
-
title: o,
|
|
70
|
-
message: T
|
|
71
|
-
});
|
|
72
|
-
}, g = () => {
|
|
73
|
-
S((n) => ({ ...n, open: !1 }));
|
|
74
|
-
}, U = (n) => {
|
|
75
|
-
n.success ? m(
|
|
76
|
-
"success",
|
|
77
|
-
r("eventGame.alerts.play.success.title"),
|
|
78
|
-
r("eventGame.alerts.play.success.message")
|
|
79
|
-
) : m(
|
|
80
|
-
"error",
|
|
81
|
-
r("eventGame.alerts.play.error.title"),
|
|
82
|
-
r("eventGame.alerts.play.error.message")
|
|
83
|
-
);
|
|
84
|
-
};
|
|
85
|
-
if (L(() => {
|
|
86
|
-
a && a.status === "OPEN" && s($(a.fixtures));
|
|
87
|
-
}, [a == null ? void 0 : a.status]), !a || i === void 0)
|
|
88
|
-
return /* @__PURE__ */ t.jsx(N, { my: 20 });
|
|
89
|
-
if (!a.id)
|
|
90
|
-
return /* @__PURE__ */ t.jsx(O, {});
|
|
91
|
-
const D = () => {
|
|
92
|
-
A(!1), I(!1);
|
|
93
|
-
};
|
|
94
|
-
if (y || f)
|
|
95
|
-
return E(e) ? /* @__PURE__ */ t.jsx(
|
|
96
|
-
q,
|
|
97
|
-
{
|
|
98
|
-
eventGame: a,
|
|
99
|
-
imagePosition: e.imagePosition,
|
|
100
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
101
|
-
isApiError: f,
|
|
102
|
-
toggleTryAgain: D
|
|
103
|
-
}
|
|
104
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ t.jsx(
|
|
105
|
-
H,
|
|
106
|
-
{
|
|
107
|
-
eventGame: a,
|
|
108
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
109
|
-
isApiError: f,
|
|
110
|
-
toggleTryAgain: D
|
|
111
|
-
}
|
|
112
|
-
) : /* @__PURE__ */ t.jsx(
|
|
113
|
-
z,
|
|
114
|
-
{
|
|
115
|
-
eventGame: a,
|
|
116
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
117
|
-
isApiError: f,
|
|
118
|
-
toggleTryAgain: D
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
const d = async () => {
|
|
122
|
-
w(!0);
|
|
123
|
-
let n = {
|
|
124
|
-
fixtures: [],
|
|
125
|
-
tiebreaker: null
|
|
126
|
-
//TODO:
|
|
127
|
-
};
|
|
128
|
-
i ? n.fixtures = i.fixtures.map((o) => ({
|
|
129
|
-
id: o.id,
|
|
130
|
-
predictionType: o.predictionType,
|
|
131
|
-
prediction: o.prediction
|
|
132
|
-
})) : n = { ...P };
|
|
133
|
-
try {
|
|
134
|
-
const o = i ? await e.sdk.eventGame.updatePrediction(
|
|
135
|
-
e.entityId,
|
|
136
|
-
i.id,
|
|
137
|
-
n
|
|
138
|
-
) : await e.sdk.eventGame.makePrediction(
|
|
139
|
-
e.entityId,
|
|
140
|
-
n
|
|
141
|
-
);
|
|
142
|
-
C(o), m(
|
|
143
|
-
"success",
|
|
144
|
-
r("eventGame.alerts.play.success.title"),
|
|
145
|
-
r("eventGame.alerts.play.success.message")
|
|
146
|
-
);
|
|
147
|
-
} catch (o) {
|
|
148
|
-
if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
149
|
-
const c = o;
|
|
150
|
-
c.error.code === 401 || c.error.code === 403 ? I(!0) : m(
|
|
151
|
-
"error",
|
|
152
|
-
r("eventGame.alerts.play.error.title"),
|
|
153
|
-
r("eventGame.alerts.play.error.message")
|
|
154
|
-
);
|
|
155
|
-
} else {
|
|
156
|
-
const c = o;
|
|
157
|
-
c.data.error.code === 401 || c.data.error.code === 403 ? I(!0) : m(
|
|
158
|
-
"error",
|
|
159
|
-
r("eventGame.alerts.play.error.title"),
|
|
160
|
-
r("eventGame.alerts.play.error.message")
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
} finally {
|
|
164
|
-
w(!1);
|
|
165
|
-
}
|
|
166
|
-
}, R = () => e.template === u.OVERLAY ? /* @__PURE__ */ t.jsx(k, { points: l || [], children: /* @__PURE__ */ t.jsx(
|
|
167
|
-
_,
|
|
168
|
-
{
|
|
169
|
-
isPlaying: x,
|
|
170
|
-
prediction: P,
|
|
171
|
-
sdk: e.sdk,
|
|
172
|
-
leads: e.leads,
|
|
173
|
-
eventGame: a,
|
|
174
|
-
play: d,
|
|
175
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
176
|
-
setPrediction: s,
|
|
177
|
-
showCountdown: e.showCountdown,
|
|
178
|
-
optionsLayout: e.optionsLayout,
|
|
179
|
-
rulesDisplay: e.rulesDisplay
|
|
180
|
-
}
|
|
181
|
-
) }) : E(e) ? /* @__PURE__ */ t.jsx(k, { points: l || [], children: /* @__PURE__ */ t.jsx(
|
|
182
|
-
B,
|
|
183
|
-
{
|
|
184
|
-
isPlaying: x,
|
|
185
|
-
sdk: e.sdk,
|
|
186
|
-
leads: e.leads,
|
|
187
|
-
eventGame: a,
|
|
188
|
-
play: d,
|
|
189
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
190
|
-
imagePosition: e.imagePosition,
|
|
191
|
-
prediction: P,
|
|
192
|
-
setPrediction: s,
|
|
193
|
-
showCountdown: e.showCountdown,
|
|
194
|
-
optionsLayout: e.optionsLayout,
|
|
195
|
-
rulesDisplay: e.rulesDisplay
|
|
196
|
-
}
|
|
197
|
-
) }) : /* @__PURE__ */ t.jsx(k, { points: l || [], children: /* @__PURE__ */ t.jsx(
|
|
198
|
-
J,
|
|
199
|
-
{
|
|
200
|
-
isPlaying: x,
|
|
201
|
-
prediction: P,
|
|
202
|
-
sdk: e.sdk,
|
|
203
|
-
leads: e.leads,
|
|
204
|
-
eventGame: a,
|
|
205
|
-
play: d,
|
|
206
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
207
|
-
setPrediction: s,
|
|
208
|
-
showCountdown: e.showCountdown,
|
|
209
|
-
optionsLayout: e.optionsLayout,
|
|
210
|
-
rulesDisplay: e.rulesDisplay
|
|
211
|
-
}
|
|
212
|
-
) });
|
|
213
|
-
return a.status === "SETTLED" ? E(e) ? /* @__PURE__ */ t.jsx(
|
|
214
|
-
W,
|
|
215
|
-
{
|
|
216
|
-
sdk: e.sdk,
|
|
217
|
-
eventGame: a,
|
|
218
|
-
prediction: i,
|
|
219
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
220
|
-
imagePosition: e.imagePosition,
|
|
221
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
222
|
-
rulesDisplay: e.rulesDisplay
|
|
223
|
-
}
|
|
224
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ t.jsx(
|
|
225
|
-
b,
|
|
226
|
-
{
|
|
227
|
-
sdk: e.sdk,
|
|
228
|
-
game: a,
|
|
229
|
-
prediction: i,
|
|
230
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
231
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
232
|
-
rulesDisplay: e.rulesDisplay
|
|
233
|
-
}
|
|
234
|
-
) : /* @__PURE__ */ t.jsx(
|
|
235
|
-
Q,
|
|
236
|
-
{
|
|
237
|
-
sdk: e.sdk,
|
|
238
|
-
event: a,
|
|
239
|
-
prediction: i,
|
|
240
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
241
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
242
|
-
rulesDisplay: e.rulesDisplay
|
|
243
|
-
}
|
|
244
|
-
) : i ? e.template === u.OVERLAY ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
245
|
-
/* @__PURE__ */ t.jsx(
|
|
246
|
-
X,
|
|
247
|
-
{
|
|
248
|
-
sdk: e.sdk,
|
|
249
|
-
leads: e.leads,
|
|
250
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
251
|
-
isUnauthorized: y,
|
|
252
|
-
eventGame: a,
|
|
253
|
-
prediction: i,
|
|
254
|
-
onPredictionUpdate: s,
|
|
255
|
-
play: d,
|
|
256
|
-
onPlayResult: U,
|
|
257
|
-
additionalCTA: e.additionalCTA,
|
|
258
|
-
rulesDisplay: e.rulesDisplay
|
|
259
|
-
}
|
|
260
|
-
),
|
|
261
|
-
/* @__PURE__ */ t.jsx(
|
|
262
|
-
v,
|
|
263
|
-
{
|
|
264
|
-
notification: h,
|
|
265
|
-
onClose: g
|
|
266
|
-
}
|
|
267
|
-
)
|
|
268
|
-
] }) : E(e) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
269
|
-
/* @__PURE__ */ t.jsx(
|
|
270
|
-
M,
|
|
271
|
-
{
|
|
272
|
-
imagePosition: e.imagePosition || "left",
|
|
273
|
-
eventGame: a,
|
|
274
|
-
sdk: e.sdk,
|
|
275
|
-
leads: e.leads,
|
|
276
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
277
|
-
isUnauthorized: y,
|
|
278
|
-
prediction: i,
|
|
279
|
-
onPredictionUpdate: s,
|
|
280
|
-
play: d,
|
|
281
|
-
onPlayResult: U,
|
|
282
|
-
additionalCTA: e.additionalCTA,
|
|
283
|
-
rulesDisplay: e.rulesDisplay
|
|
284
|
-
}
|
|
285
|
-
),
|
|
286
|
-
/* @__PURE__ */ t.jsx(
|
|
287
|
-
v,
|
|
288
|
-
{
|
|
289
|
-
notification: h,
|
|
290
|
-
onClose: g
|
|
291
|
-
}
|
|
292
|
-
)
|
|
293
|
-
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
294
|
-
/* @__PURE__ */ t.jsx(
|
|
295
|
-
Y,
|
|
296
|
-
{
|
|
297
|
-
eventGame: a,
|
|
298
|
-
sdk: e.sdk,
|
|
299
|
-
leads: e.leads,
|
|
300
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
301
|
-
isUnauthorized: y,
|
|
302
|
-
prediction: i,
|
|
303
|
-
onPredictionUpdate: s,
|
|
304
|
-
play: d,
|
|
305
|
-
onPlayResult: U,
|
|
306
|
-
additionalCTA: e.additionalCTA,
|
|
307
|
-
rulesDisplay: e.rulesDisplay
|
|
308
|
-
}
|
|
309
|
-
),
|
|
310
|
-
/* @__PURE__ */ t.jsx(v, { notification: h, onClose: g })
|
|
311
|
-
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
312
|
-
R(),
|
|
313
|
-
/* @__PURE__ */ t.jsx(v, { notification: h, onClose: g })
|
|
314
|
-
] });
|
|
315
|
-
};
|
|
316
|
-
export {
|
|
317
|
-
we as default
|
|
318
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useInternalTheme as f, useCornerRadius as d, useFontFamily as p, isMobile as u } from "../../../../common/src/functions/theme.js";
|
|
3
|
-
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
4
|
-
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
5
|
-
import { Alert as x, Stack as h, Typography as s } from "@mui/joy";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import y from "../../../../../node_modules/@mui/icons-material/esm/CheckCircle.js";
|
|
9
|
-
import g from "../../../../../node_modules/@mui/icons-material/esm/Info.js";
|
|
10
|
-
import j from "../../../../../node_modules/@mui/icons-material/esm/Warning.js";
|
|
11
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
12
|
-
const S = (o, r) => {
|
|
13
|
-
switch (o) {
|
|
14
|
-
case "success":
|
|
15
|
-
return /* @__PURE__ */ e.jsx(y, {});
|
|
16
|
-
case "error":
|
|
17
|
-
return /* @__PURE__ */ e.jsx(j, { sx: { color: r } });
|
|
18
|
-
case "info":
|
|
19
|
-
return /* @__PURE__ */ e.jsx(g, {});
|
|
20
|
-
}
|
|
21
|
-
}, b = (o) => {
|
|
22
|
-
switch (o) {
|
|
23
|
-
case "success":
|
|
24
|
-
return "success";
|
|
25
|
-
case "error":
|
|
26
|
-
return "danger";
|
|
27
|
-
case "info":
|
|
28
|
-
return "primary";
|
|
29
|
-
}
|
|
30
|
-
}, W = ({
|
|
31
|
-
variant: o,
|
|
32
|
-
title: r,
|
|
33
|
-
message: m,
|
|
34
|
-
description: n
|
|
35
|
-
}) => {
|
|
36
|
-
const l = f(), a = d(), t = p().secondary, c = u(), i = b(o);
|
|
37
|
-
return /* @__PURE__ */ e.jsx(
|
|
38
|
-
x,
|
|
39
|
-
{
|
|
40
|
-
variant: "soft",
|
|
41
|
-
color: i,
|
|
42
|
-
startDecorator: S(
|
|
43
|
-
o,
|
|
44
|
-
l.colorSchemes.light.palette.danger.plainColor
|
|
45
|
-
),
|
|
46
|
-
sx: {
|
|
47
|
-
gap: 1,
|
|
48
|
-
borderRadius: a.sm,
|
|
49
|
-
fontSize: c ? "0.75em" : "0.875em",
|
|
50
|
-
"--Icon-fontSize": c ? "1em" : "1.25em"
|
|
51
|
-
},
|
|
52
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
53
|
-
h,
|
|
54
|
-
{
|
|
55
|
-
sx: {
|
|
56
|
-
fontSize: "1.5em"
|
|
57
|
-
},
|
|
58
|
-
children: [
|
|
59
|
-
r && /* @__PURE__ */ e.jsx(
|
|
60
|
-
s,
|
|
61
|
-
{
|
|
62
|
-
level: "title-md",
|
|
63
|
-
color: i,
|
|
64
|
-
fontWeight: "bold",
|
|
65
|
-
sx: { fontFamily: t, fontSize: "0.875em" },
|
|
66
|
-
children: r
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ e.jsx(
|
|
70
|
-
s,
|
|
71
|
-
{
|
|
72
|
-
level: "body-sm",
|
|
73
|
-
sx: { fontFamily: t, fontSize: "0.675em" },
|
|
74
|
-
children: m
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
n && /* @__PURE__ */ e.jsx(
|
|
78
|
-
s,
|
|
79
|
-
{
|
|
80
|
-
level: "body-xs",
|
|
81
|
-
sx: { fontFamily: t, fontSize: "0.6em" },
|
|
82
|
-
children: n
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
W as default
|
|
93
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useColors as T, useCornerRadius as b, useFontFamily as w, useSpacingScale as C, isMobile as F } from "../../../../common/src/functions/theme.js";
|
|
3
|
-
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
4
|
-
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
5
|
-
import { Box as a, Typography as i } from "@mui/joy";
|
|
6
|
-
import { useState as v, useCallback as I, useEffect as R } from "react";
|
|
7
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
import { useTranslation as L } from "../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
10
|
-
const P = (x) => {
|
|
11
|
-
const { t: l } = L(), c = T(), p = b(), m = w(), n = C(), o = F() || x.isSplitVariant, [s, h] = v({
|
|
12
|
-
days: 0,
|
|
13
|
-
hours: 0,
|
|
14
|
-
minutes: 0,
|
|
15
|
-
seconds: 0,
|
|
16
|
-
total: 0
|
|
17
|
-
}), u = I(() => {
|
|
18
|
-
const d = (/* @__PURE__ */ new Date()).getTime(), r = new Date(x.predictionsCutoffTime).getTime() - d;
|
|
19
|
-
if (r <= 0)
|
|
20
|
-
return { days: 0, hours: 0, minutes: 0, seconds: 0, total: 0 };
|
|
21
|
-
const y = Math.floor(r / (1e3 * 60 * 60 * 24)), g = Math.floor(
|
|
22
|
-
r % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
23
|
-
), j = Math.floor(r % (1e3 * 60 * 60) / (1e3 * 60)), S = Math.floor(r % (1e3 * 60) / 1e3);
|
|
24
|
-
return { days: y, hours: g, minutes: j, seconds: S, total: r };
|
|
25
|
-
}, [x.predictionsCutoffTime]);
|
|
26
|
-
if (R(() => {
|
|
27
|
-
const d = () => {
|
|
28
|
-
h(u());
|
|
29
|
-
};
|
|
30
|
-
d();
|
|
31
|
-
const f = setInterval(d, 1e3);
|
|
32
|
-
return () => clearInterval(f);
|
|
33
|
-
}, [u]), s.total <= 0)
|
|
34
|
-
return null;
|
|
35
|
-
const t = {
|
|
36
|
-
container: {
|
|
37
|
-
display: "flex",
|
|
38
|
-
flexDirection: "column",
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
gap: n.sm,
|
|
41
|
-
pt: o ? 0 : n.md,
|
|
42
|
-
px: n.md,
|
|
43
|
-
zIndex: 1
|
|
44
|
-
},
|
|
45
|
-
participationText: {
|
|
46
|
-
fontFamily: m.primary,
|
|
47
|
-
fontWeight: 500,
|
|
48
|
-
fontSize: o ? "1.125em" : "1.25em",
|
|
49
|
-
lineHeight: 1.2,
|
|
50
|
-
color: c.textPrimary,
|
|
51
|
-
textAlign: "center"
|
|
52
|
-
},
|
|
53
|
-
countdownContainer: {
|
|
54
|
-
display: "flex",
|
|
55
|
-
alignItems: "center",
|
|
56
|
-
justifyContent: "center",
|
|
57
|
-
gap: o ? n.xs : n.sm
|
|
58
|
-
},
|
|
59
|
-
timeUnit: {
|
|
60
|
-
display: "flex",
|
|
61
|
-
alignItems: "center",
|
|
62
|
-
justifyContent: "center",
|
|
63
|
-
gap: n["2xs"],
|
|
64
|
-
bgcolor: c.palette.neutral.softBg,
|
|
65
|
-
borderRadius: p.sm,
|
|
66
|
-
minWidth: o ? n["2xl"] : n["3xl"],
|
|
67
|
-
px: o ? n["2xs"] : n.xs,
|
|
68
|
-
py: o ? n["3xs"] : n["2xs"]
|
|
69
|
-
},
|
|
70
|
-
timeValue: {
|
|
71
|
-
fontFamily: m.primary,
|
|
72
|
-
fontWeight: 500,
|
|
73
|
-
fontSize: o ? "1em" : "1.5em",
|
|
74
|
-
color: c.textPrimary
|
|
75
|
-
},
|
|
76
|
-
timeLabel: {
|
|
77
|
-
fontFamily: m.secondary,
|
|
78
|
-
fontWeight: 400,
|
|
79
|
-
fontSize: o ? "0.625em" : "0.75em",
|
|
80
|
-
color: c.textSecondary
|
|
81
|
-
},
|
|
82
|
-
separator: {
|
|
83
|
-
fontFamily: m.primary,
|
|
84
|
-
fontWeight: 400,
|
|
85
|
-
fontSize: o ? "1em" : "1.25em",
|
|
86
|
-
color: c.textSecondary,
|
|
87
|
-
display: "flex",
|
|
88
|
-
alignItems: "center",
|
|
89
|
-
justifyContent: "center",
|
|
90
|
-
width: "auto",
|
|
91
|
-
flexShrink: 0
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return /* @__PURE__ */ e.jsxs(a, { sx: t.container, children: [
|
|
95
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.participationText, children: l("eventGame.countdown.participationTimeLeft") }),
|
|
96
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.countdownContainer, children: [
|
|
97
|
-
s.days > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
98
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.timeUnit, children: [
|
|
99
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeValue, children: s.days.toString().padStart(2, "0") }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeLabel, children: l("eventGame.countdown.daysShort") })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.separator, children: ":" })
|
|
103
|
-
] }),
|
|
104
|
-
(s.days > 0 || s.hours > 0) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
105
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.timeUnit, children: [
|
|
106
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeValue, children: s.hours.toString().padStart(2, "0") }),
|
|
107
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeLabel, children: l("eventGame.countdown.hoursShort") })
|
|
108
|
-
] }),
|
|
109
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.separator, children: ":" })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.timeUnit, children: [
|
|
112
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeValue, children: s.minutes.toString().padStart(2, "0") }),
|
|
113
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeLabel, children: l("eventGame.countdown.minutesShort") })
|
|
114
|
-
] }),
|
|
115
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.separator, children: ":" }),
|
|
116
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.timeUnit, children: [
|
|
117
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeValue, children: s.seconds.toString().padStart(2, "0") }),
|
|
118
|
-
/* @__PURE__ */ e.jsx(i, { sx: t.timeLabel, children: l("eventGame.countdown.secondsShort") })
|
|
119
|
-
] })
|
|
120
|
-
] })
|
|
121
|
-
] });
|
|
122
|
-
};
|
|
123
|
-
export {
|
|
124
|
-
P as default
|
|
125
|
-
};
|