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,490 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as P, useEffect as H } 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 V from "../../../common/src/components/Spinner.js";
|
|
8
|
-
import "@mui/joy";
|
|
9
|
-
import "../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
-
import { useMatchQuizById as K } from "../hooks/useMatchQuiz.js";
|
|
11
|
-
import { useMatchQuizPrediction as W } from "../hooks/useMatchQuizPrediction.js";
|
|
12
|
-
import B from "./Variants/Overlay/MatchQuizOverlayVariant.js";
|
|
13
|
-
import _ from "./Variants/Standard/MatchQuizStandardVariant.js";
|
|
14
|
-
import J from "./Variants/Split/MatchQuizSplitVariant.js";
|
|
15
|
-
import X from "./Variants/Standard/ScoreState/MatchQuizStandardScoreState.js";
|
|
16
|
-
import Z from "./Variants/Split/ScoreState/MatchQuizSplitScoreState.js";
|
|
17
|
-
import $ from "./Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js";
|
|
18
|
-
import p from "./Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js";
|
|
19
|
-
import ee from "./Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js";
|
|
20
|
-
import ae from "./MatchQuizNotFound.js";
|
|
21
|
-
import te from "./Variants/Standard/Error/MatchQuizStandardError.js";
|
|
22
|
-
import ie from "./Variants/Split/Error/MatchQuizSplitError.js";
|
|
23
|
-
import le from "./Variants/Overlay/Error/MatchQuizOverlayError.js";
|
|
24
|
-
import re from "./Variants/Standard/SignIn/MatchQuizStandardSignIn.js";
|
|
25
|
-
import se from "./Variants/Split/SignIn/MatchQuizSplitSignIn.js";
|
|
26
|
-
import de from "./Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js";
|
|
27
|
-
import ne from "./Variants/Standard/LeadCollection/StandardLeadAfterCollection.js";
|
|
28
|
-
import oe from "./Variants/Split/LeadCollection/SplitLeadAfterCollection.js";
|
|
29
|
-
import ue from "./Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js";
|
|
30
|
-
import { PredictionRequestModel as N, MarketEnum as ce } from "fansunited-sdk-esm";
|
|
31
|
-
import { isPlayersMarket as k, isCorrectScore as me } from "../helpers/helpers.js";
|
|
32
|
-
import { MatchQuizConstantsProvider as h } from "../providers/ConstantsProvider.js";
|
|
33
|
-
import he from "./Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js";
|
|
34
|
-
import S from "./Shared/Notification.js";
|
|
35
|
-
import { useTranslation as fe } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
36
|
-
function I(e) {
|
|
37
|
-
return e.template === u.STANDARD;
|
|
38
|
-
}
|
|
39
|
-
const ge = (e, s) => {
|
|
40
|
-
const t = (l) => me(l) ? "0:0" : k(l) ? !0 : l === ce.CORNERS_MATCH ? 6 : null, r = new N();
|
|
41
|
-
return r.gameInstanceId = e, r.fixtures = s.map((l) => {
|
|
42
|
-
const n = t(l.market);
|
|
43
|
-
return {
|
|
44
|
-
matchId: l.matchModel.id,
|
|
45
|
-
matchType: l.matchType,
|
|
46
|
-
market: l.market,
|
|
47
|
-
prediction: {
|
|
48
|
-
value: n,
|
|
49
|
-
playerId: void 0
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}), r;
|
|
53
|
-
}, Ze = (e) => {
|
|
54
|
-
const { t: s } = fe(), {
|
|
55
|
-
game: t,
|
|
56
|
-
squads: r,
|
|
57
|
-
points: l
|
|
58
|
-
} = K(e.entityId, e.sdk, e.showPoints), {
|
|
59
|
-
myPrediction: n,
|
|
60
|
-
setMyPrediction: M,
|
|
61
|
-
isUnauthorized: x,
|
|
62
|
-
isApiError: T,
|
|
63
|
-
setIsApiError: j,
|
|
64
|
-
setIsUnauthorized: D
|
|
65
|
-
} = W(e.entityId, e.sdk), [z, E] = P(!1), [f, c] = P(
|
|
66
|
-
new N()
|
|
67
|
-
), [Q, R] = P(!1), [v, F] = P(!1), [Y, q] = P(!1), [U, O] = P({
|
|
68
|
-
open: !1,
|
|
69
|
-
variant: "success",
|
|
70
|
-
title: "",
|
|
71
|
-
message: ""
|
|
72
|
-
}), g = (o, d, i) => {
|
|
73
|
-
O({
|
|
74
|
-
open: !0,
|
|
75
|
-
variant: o,
|
|
76
|
-
title: d,
|
|
77
|
-
message: i
|
|
78
|
-
});
|
|
79
|
-
}, L = () => {
|
|
80
|
-
O((o) => ({ ...o, open: !1 }));
|
|
81
|
-
}, C = (o) => {
|
|
82
|
-
o.success ? g(
|
|
83
|
-
"success",
|
|
84
|
-
s("matchQuiz.alerts.play.success.title"),
|
|
85
|
-
s("matchQuiz.alerts.play.success.message")
|
|
86
|
-
) : g(
|
|
87
|
-
"error",
|
|
88
|
-
s("matchQuiz.alerts.play.error.title"),
|
|
89
|
-
s("matchQuiz.alerts.play.error.message")
|
|
90
|
-
);
|
|
91
|
-
};
|
|
92
|
-
if (H(() => {
|
|
93
|
-
t && t.status === "OPEN" && c(
|
|
94
|
-
ge(e.entityId, t.fixtures)
|
|
95
|
-
);
|
|
96
|
-
}, [t == null ? void 0 : t.status]), !t || !r || !l)
|
|
97
|
-
return /* @__PURE__ */ a.jsx(V, { my: 20 });
|
|
98
|
-
if (!t.id)
|
|
99
|
-
return /* @__PURE__ */ a.jsx(ae, {});
|
|
100
|
-
if (t.authRequirement === "REGISTERED" && !e.userIsLoggedIn)
|
|
101
|
-
return I(e) ? /* @__PURE__ */ a.jsx(
|
|
102
|
-
re,
|
|
103
|
-
{
|
|
104
|
-
matchQuiz: t,
|
|
105
|
-
imagePosition: e.imagePosition,
|
|
106
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
107
|
-
signInCTA: e.signInCTA,
|
|
108
|
-
rulesDisplay: e.rulesDisplay
|
|
109
|
-
}
|
|
110
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ a.jsx(
|
|
111
|
-
de,
|
|
112
|
-
{
|
|
113
|
-
matchQuiz: t,
|
|
114
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
115
|
-
signInCTA: e.signInCTA,
|
|
116
|
-
rulesDisplay: e.rulesDisplay
|
|
117
|
-
}
|
|
118
|
-
) : /* @__PURE__ */ a.jsx(
|
|
119
|
-
se,
|
|
120
|
-
{
|
|
121
|
-
matchQuiz: t,
|
|
122
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
123
|
-
signInCTA: e.signInCTA,
|
|
124
|
-
rulesDisplay: e.rulesDisplay
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
const b = () => {
|
|
128
|
-
j(!1), D(!1);
|
|
129
|
-
};
|
|
130
|
-
if (x || T)
|
|
131
|
-
return I(e) ? /* @__PURE__ */ a.jsx(
|
|
132
|
-
te,
|
|
133
|
-
{
|
|
134
|
-
matchQuiz: t,
|
|
135
|
-
imagePosition: e.imagePosition,
|
|
136
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
137
|
-
isApiError: T,
|
|
138
|
-
toggleTryAgain: b,
|
|
139
|
-
rulesDisplay: e.rulesDisplay
|
|
140
|
-
}
|
|
141
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ a.jsx(
|
|
142
|
-
le,
|
|
143
|
-
{
|
|
144
|
-
matchQuiz: t,
|
|
145
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
146
|
-
isApiError: T,
|
|
147
|
-
toggleTryAgain: b,
|
|
148
|
-
rulesDisplay: e.rulesDisplay
|
|
149
|
-
}
|
|
150
|
-
) : /* @__PURE__ */ a.jsx(
|
|
151
|
-
ie,
|
|
152
|
-
{
|
|
153
|
-
matchQuiz: t,
|
|
154
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
155
|
-
isApiError: T,
|
|
156
|
-
toggleTryAgain: b,
|
|
157
|
-
rulesDisplay: e.rulesDisplay
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
const y = async () => {
|
|
161
|
-
var d;
|
|
162
|
-
if (((d = e.leads) == null ? void 0 : d.position) === "after" && t.authRequirement === "LEAD" && !v && !n) {
|
|
163
|
-
q(!0);
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
E(!0);
|
|
167
|
-
let o = {
|
|
168
|
-
gameInstanceId: e.entityId,
|
|
169
|
-
fixtures: []
|
|
170
|
-
};
|
|
171
|
-
n ? o.fixtures = n.fixtures.map((i) => ({
|
|
172
|
-
matchId: i.matchId,
|
|
173
|
-
matchType: i.matchType,
|
|
174
|
-
market: i.market,
|
|
175
|
-
prediction: k(i.market) ? {
|
|
176
|
-
value: i.prediction.value,
|
|
177
|
-
playerId: i.prediction.playerId
|
|
178
|
-
} : {
|
|
179
|
-
value: i.prediction.value
|
|
180
|
-
}
|
|
181
|
-
})) : o = {
|
|
182
|
-
...f,
|
|
183
|
-
fixtures: f.fixtures.map((i) => ({
|
|
184
|
-
...i,
|
|
185
|
-
prediction: k(i.market) ? i.prediction : {
|
|
186
|
-
value: i.prediction.value
|
|
187
|
-
}
|
|
188
|
-
}))
|
|
189
|
-
};
|
|
190
|
-
try {
|
|
191
|
-
const i = await e.sdk.matchQuiz.play(o);
|
|
192
|
-
M(i), g(
|
|
193
|
-
"success",
|
|
194
|
-
s("matchQuiz.alerts.play.success.title"),
|
|
195
|
-
s("matchQuiz.alerts.play.success.message")
|
|
196
|
-
);
|
|
197
|
-
} catch (i) {
|
|
198
|
-
if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
199
|
-
const w = i;
|
|
200
|
-
w.error.code === 401 || w.error.code === 403 ? D(!0) : g(
|
|
201
|
-
"error",
|
|
202
|
-
s("matchQuiz.alerts.play.error.title"),
|
|
203
|
-
s("matchQuiz.alerts.play.error.message")
|
|
204
|
-
);
|
|
205
|
-
} else {
|
|
206
|
-
const w = i;
|
|
207
|
-
w.data.error.code === 401 || w.data.error.code === 403 ? D(!0) : g(
|
|
208
|
-
"error",
|
|
209
|
-
s("matchQuiz.alerts.play.error.title"),
|
|
210
|
-
s("matchQuiz.alerts.play.error.message")
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
} finally {
|
|
214
|
-
E(!1);
|
|
215
|
-
}
|
|
216
|
-
}, A = async () => {
|
|
217
|
-
R(!0);
|
|
218
|
-
let o = {
|
|
219
|
-
gameInstanceId: e.entityId,
|
|
220
|
-
fixtures: f.fixtures.map((d) => ({
|
|
221
|
-
...d,
|
|
222
|
-
prediction: k(d.market) ? d.prediction : {
|
|
223
|
-
value: d.prediction.value
|
|
224
|
-
}
|
|
225
|
-
}))
|
|
226
|
-
};
|
|
227
|
-
try {
|
|
228
|
-
const d = await e.sdk.matchQuiz.play(o);
|
|
229
|
-
M(d), g(
|
|
230
|
-
"success",
|
|
231
|
-
s("matchQuiz.alerts.play.success.title"),
|
|
232
|
-
s("matchQuiz.alerts.play.success.message")
|
|
233
|
-
);
|
|
234
|
-
} catch (d) {
|
|
235
|
-
if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
236
|
-
const m = d;
|
|
237
|
-
m.error.code === 401 || m.error.code === 403 ? D(!0) : j(!0);
|
|
238
|
-
} else {
|
|
239
|
-
const m = d;
|
|
240
|
-
m.data.error.code === 401 || m.data.error.code === 403 ? D(!0) : j(!0);
|
|
241
|
-
}
|
|
242
|
-
} finally {
|
|
243
|
-
R(!1), F(!0);
|
|
244
|
-
}
|
|
245
|
-
}, G = () => e.template === u.OVERLAY ? /* @__PURE__ */ a.jsx(
|
|
246
|
-
B,
|
|
247
|
-
{
|
|
248
|
-
isPlaying: z,
|
|
249
|
-
prediction: f,
|
|
250
|
-
sdk: e.sdk,
|
|
251
|
-
leads: e.leads,
|
|
252
|
-
matchQuiz: t,
|
|
253
|
-
play: y,
|
|
254
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
255
|
-
setPrediction: c,
|
|
256
|
-
showCountdown: e.showCountdown,
|
|
257
|
-
rulesDisplay: e.rulesDisplay
|
|
258
|
-
}
|
|
259
|
-
) : I(e) ? /* @__PURE__ */ a.jsx(
|
|
260
|
-
_,
|
|
261
|
-
{
|
|
262
|
-
isPlaying: z,
|
|
263
|
-
sdk: e.sdk,
|
|
264
|
-
leads: e.leads,
|
|
265
|
-
matchQuiz: t,
|
|
266
|
-
play: y,
|
|
267
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
268
|
-
imagePosition: e.imagePosition,
|
|
269
|
-
prediction: f,
|
|
270
|
-
setPrediction: c,
|
|
271
|
-
showCountdown: e.showCountdown,
|
|
272
|
-
rulesDisplay: e.rulesDisplay
|
|
273
|
-
}
|
|
274
|
-
) : /* @__PURE__ */ a.jsx(
|
|
275
|
-
J,
|
|
276
|
-
{
|
|
277
|
-
isPlaying: z,
|
|
278
|
-
prediction: f,
|
|
279
|
-
sdk: e.sdk,
|
|
280
|
-
leads: e.leads,
|
|
281
|
-
matchQuiz: t,
|
|
282
|
-
play: y,
|
|
283
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
284
|
-
setPrediction: c,
|
|
285
|
-
showCountdown: e.showCountdown,
|
|
286
|
-
rulesDisplay: e.rulesDisplay
|
|
287
|
-
}
|
|
288
|
-
);
|
|
289
|
-
return t.status === "SETTLED" ? I(e) ? /* @__PURE__ */ a.jsx(
|
|
290
|
-
h,
|
|
291
|
-
{
|
|
292
|
-
showTeamLabels: e.showTeamLabels,
|
|
293
|
-
points: l,
|
|
294
|
-
squads: r,
|
|
295
|
-
children: /* @__PURE__ */ a.jsx(
|
|
296
|
-
he,
|
|
297
|
-
{
|
|
298
|
-
sdk: e.sdk,
|
|
299
|
-
matchQuiz: t,
|
|
300
|
-
prediction: n,
|
|
301
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
302
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
303
|
-
imagePosition: e.imagePosition,
|
|
304
|
-
rulesDisplay: e.rulesDisplay
|
|
305
|
-
}
|
|
306
|
-
)
|
|
307
|
-
}
|
|
308
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ a.jsx(
|
|
309
|
-
h,
|
|
310
|
-
{
|
|
311
|
-
showTeamLabels: e.showTeamLabels,
|
|
312
|
-
points: l,
|
|
313
|
-
squads: r,
|
|
314
|
-
children: /* @__PURE__ */ a.jsx(
|
|
315
|
-
p,
|
|
316
|
-
{
|
|
317
|
-
sdk: e.sdk,
|
|
318
|
-
matchQuiz: t,
|
|
319
|
-
prediction: n,
|
|
320
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
321
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
322
|
-
rulesDisplay: e.rulesDisplay
|
|
323
|
-
}
|
|
324
|
-
)
|
|
325
|
-
}
|
|
326
|
-
) : /* @__PURE__ */ a.jsx(
|
|
327
|
-
h,
|
|
328
|
-
{
|
|
329
|
-
showTeamLabels: e.showTeamLabels,
|
|
330
|
-
points: l,
|
|
331
|
-
squads: r,
|
|
332
|
-
children: /* @__PURE__ */ a.jsx(
|
|
333
|
-
$,
|
|
334
|
-
{
|
|
335
|
-
sdk: e.sdk,
|
|
336
|
-
matchQuiz: t,
|
|
337
|
-
prediction: n,
|
|
338
|
-
showPredictionDetails: e.showPredictionDetails,
|
|
339
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
340
|
-
rulesDisplay: e.rulesDisplay
|
|
341
|
-
}
|
|
342
|
-
)
|
|
343
|
-
}
|
|
344
|
-
) : Y && !v ? I(e) ? /* @__PURE__ */ a.jsx(
|
|
345
|
-
ne,
|
|
346
|
-
{
|
|
347
|
-
matchQuiz: t,
|
|
348
|
-
sdk: e.sdk,
|
|
349
|
-
leads: e.leads,
|
|
350
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
351
|
-
imagePosition: e.imagePosition,
|
|
352
|
-
onLeadSubmitted: A,
|
|
353
|
-
isSubmitting: Q,
|
|
354
|
-
rulesDisplay: e.rulesDisplay
|
|
355
|
-
}
|
|
356
|
-
) : e.template === u.SPLIT ? /* @__PURE__ */ a.jsx(
|
|
357
|
-
oe,
|
|
358
|
-
{
|
|
359
|
-
matchQuiz: t,
|
|
360
|
-
sdk: e.sdk,
|
|
361
|
-
leads: e.leads,
|
|
362
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
363
|
-
onLeadSubmitted: A,
|
|
364
|
-
isSubmitting: Q,
|
|
365
|
-
rulesDisplay: e.rulesDisplay
|
|
366
|
-
}
|
|
367
|
-
) : e.template === u.OVERLAY ? /* @__PURE__ */ a.jsx(
|
|
368
|
-
ue,
|
|
369
|
-
{
|
|
370
|
-
matchQuiz: t,
|
|
371
|
-
sdk: e.sdk,
|
|
372
|
-
leads: e.leads,
|
|
373
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
374
|
-
onLeadSubmitted: A,
|
|
375
|
-
isSubmitting: Q,
|
|
376
|
-
rulesDisplay: e.rulesDisplay
|
|
377
|
-
}
|
|
378
|
-
) : /* @__PURE__ */ a.jsx(V, { my: 20 }) : n ? e.template === u.OVERLAY ? /* @__PURE__ */ a.jsxs(
|
|
379
|
-
h,
|
|
380
|
-
{
|
|
381
|
-
showTeamLabels: e.showTeamLabels,
|
|
382
|
-
points: l,
|
|
383
|
-
squads: r,
|
|
384
|
-
children: [
|
|
385
|
-
/* @__PURE__ */ a.jsx(
|
|
386
|
-
ee,
|
|
387
|
-
{
|
|
388
|
-
sdk: e.sdk,
|
|
389
|
-
leads: e.leads,
|
|
390
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
391
|
-
isUnauthorized: x,
|
|
392
|
-
matchQuiz: t,
|
|
393
|
-
squads: r,
|
|
394
|
-
prediction: n,
|
|
395
|
-
showTeamLabels: e.showTeamLabels,
|
|
396
|
-
onPredictionUpdate: c,
|
|
397
|
-
play: y,
|
|
398
|
-
onPlayResult: C,
|
|
399
|
-
additionalCTA: e.additionalCTA,
|
|
400
|
-
rulesDisplay: e.rulesDisplay
|
|
401
|
-
}
|
|
402
|
-
),
|
|
403
|
-
/* @__PURE__ */ a.jsx(
|
|
404
|
-
S,
|
|
405
|
-
{
|
|
406
|
-
notification: U,
|
|
407
|
-
onClose: L
|
|
408
|
-
}
|
|
409
|
-
)
|
|
410
|
-
]
|
|
411
|
-
}
|
|
412
|
-
) : I(e) ? /* @__PURE__ */ a.jsxs(
|
|
413
|
-
h,
|
|
414
|
-
{
|
|
415
|
-
showTeamLabels: e.showTeamLabels,
|
|
416
|
-
points: l,
|
|
417
|
-
squads: r,
|
|
418
|
-
children: [
|
|
419
|
-
/* @__PURE__ */ a.jsx(
|
|
420
|
-
X,
|
|
421
|
-
{
|
|
422
|
-
imagePosition: e.imagePosition || "left",
|
|
423
|
-
matchQuiz: t,
|
|
424
|
-
sdk: e.sdk,
|
|
425
|
-
leads: e.leads,
|
|
426
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
427
|
-
isUnauthorized: x,
|
|
428
|
-
squads: r,
|
|
429
|
-
prediction: n,
|
|
430
|
-
showTeamLabels: e.showTeamLabels,
|
|
431
|
-
onPredictionUpdate: c,
|
|
432
|
-
play: y,
|
|
433
|
-
onPlayResult: C,
|
|
434
|
-
additionalCTA: e.additionalCTA,
|
|
435
|
-
rulesDisplay: e.rulesDisplay
|
|
436
|
-
}
|
|
437
|
-
),
|
|
438
|
-
/* @__PURE__ */ a.jsx(
|
|
439
|
-
S,
|
|
440
|
-
{
|
|
441
|
-
notification: U,
|
|
442
|
-
onClose: L
|
|
443
|
-
}
|
|
444
|
-
)
|
|
445
|
-
]
|
|
446
|
-
}
|
|
447
|
-
) : /* @__PURE__ */ a.jsxs(
|
|
448
|
-
h,
|
|
449
|
-
{
|
|
450
|
-
showTeamLabels: e.showTeamLabels,
|
|
451
|
-
points: l,
|
|
452
|
-
squads: r,
|
|
453
|
-
children: [
|
|
454
|
-
/* @__PURE__ */ a.jsx(
|
|
455
|
-
Z,
|
|
456
|
-
{
|
|
457
|
-
matchQuiz: t,
|
|
458
|
-
sdk: e.sdk,
|
|
459
|
-
leads: e.leads,
|
|
460
|
-
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
461
|
-
isUnauthorized: x,
|
|
462
|
-
squads: r,
|
|
463
|
-
prediction: n,
|
|
464
|
-
showTeamLabels: e.showTeamLabels,
|
|
465
|
-
onPredictionUpdate: c,
|
|
466
|
-
play: y,
|
|
467
|
-
onPlayResult: C,
|
|
468
|
-
additionalCTA: e.additionalCTA,
|
|
469
|
-
rulesDisplay: e.rulesDisplay
|
|
470
|
-
}
|
|
471
|
-
),
|
|
472
|
-
/* @__PURE__ */ a.jsx(S, { notification: U, onClose: L })
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
476
|
-
/* @__PURE__ */ a.jsx(
|
|
477
|
-
h,
|
|
478
|
-
{
|
|
479
|
-
showTeamLabels: e.showTeamLabels,
|
|
480
|
-
points: l,
|
|
481
|
-
squads: r,
|
|
482
|
-
children: G()
|
|
483
|
-
}
|
|
484
|
-
),
|
|
485
|
-
/* @__PURE__ */ a.jsx(S, { notification: U, onClose: L })
|
|
486
|
-
] });
|
|
487
|
-
};
|
|
488
|
-
export {
|
|
489
|
-
Ze as default
|
|
490
|
-
};
|
|
@@ -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 t } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useColors as T, useCornerRadius as b, useFontFamily as w, useSpacingScale as C, isMobile as z } 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 F, 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: c } = L(), l = T(), h = b(), m = w(), n = C(), o = z() || x.isSplitVariant, [s, p] = F({
|
|
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
|
-
p(u());
|
|
29
|
-
};
|
|
30
|
-
d();
|
|
31
|
-
const f = setInterval(d, 1e3);
|
|
32
|
-
return () => clearInterval(f);
|
|
33
|
-
}, [u]), s.total <= 0)
|
|
34
|
-
return null;
|
|
35
|
-
const e = {
|
|
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: l.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: l.palette.neutral.softBg,
|
|
65
|
-
borderRadius: h.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: l.textPrimary
|
|
75
|
-
},
|
|
76
|
-
timeLabel: {
|
|
77
|
-
fontFamily: m.secondary,
|
|
78
|
-
fontWeight: 400,
|
|
79
|
-
fontSize: o ? "0.625em" : "0.75em",
|
|
80
|
-
color: l.textSecondary
|
|
81
|
-
},
|
|
82
|
-
separator: {
|
|
83
|
-
fontFamily: m.primary,
|
|
84
|
-
fontWeight: 400,
|
|
85
|
-
fontSize: o ? "1em" : "1.25em",
|
|
86
|
-
color: l.textSecondary,
|
|
87
|
-
display: "flex",
|
|
88
|
-
alignItems: "center",
|
|
89
|
-
justifyContent: "center",
|
|
90
|
-
width: "auto",
|
|
91
|
-
flexShrink: 0
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return /* @__PURE__ */ t.jsxs(a, { sx: e.container, children: [
|
|
95
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.participationText, children: c("matchQuiz.countdown.participationTimeLeft") }),
|
|
96
|
-
/* @__PURE__ */ t.jsxs(a, { sx: e.countdownContainer, children: [
|
|
97
|
-
s.days > 0 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
98
|
-
/* @__PURE__ */ t.jsxs(a, { sx: e.timeUnit, children: [
|
|
99
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeValue, children: s.days.toString().padStart(2, "0") }),
|
|
100
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeLabel, children: c("matchQuiz.countdown.daysShort") })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.separator, children: ":" })
|
|
103
|
-
] }),
|
|
104
|
-
(s.days > 0 || s.hours > 0) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
105
|
-
/* @__PURE__ */ t.jsxs(a, { sx: e.timeUnit, children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeValue, children: s.hours.toString().padStart(2, "0") }),
|
|
107
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeLabel, children: c("matchQuiz.countdown.hoursShort") })
|
|
108
|
-
] }),
|
|
109
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.separator, children: ":" })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ t.jsxs(a, { sx: e.timeUnit, children: [
|
|
112
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeValue, children: s.minutes.toString().padStart(2, "0") }),
|
|
113
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeLabel, children: c("matchQuiz.countdown.minutesShort") })
|
|
114
|
-
] }),
|
|
115
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.separator, children: ":" }),
|
|
116
|
-
/* @__PURE__ */ t.jsxs(a, { sx: e.timeUnit, children: [
|
|
117
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeValue, children: s.seconds.toString().padStart(2, "0") }),
|
|
118
|
-
/* @__PURE__ */ t.jsx(i, { sx: e.timeLabel, children: c("matchQuiz.countdown.secondsShort") })
|
|
119
|
-
] })
|
|
120
|
-
] })
|
|
121
|
-
] });
|
|
122
|
-
};
|
|
123
|
-
export {
|
|
124
|
-
P as default
|
|
125
|
-
};
|