fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -86783
|
@@ -0,0 +1,490 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
};
|