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
package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as o, Typography as n, Button as v } from "@mui/joy";
|
|
3
|
+
import { useInternalTheme as te, isMobile as se, isLarge as ae, useColors as i, useFontFamily as R, useCornerRadius as oe, useSpacingScale as ie } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import { hexToRgb as L } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import { WidgetTemplate as M } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
+
import re from "../../../../../../common/src/components/AdditionalCTA.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import ne from "../../../../../../common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js";
|
|
12
|
+
import le from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
|
|
13
|
+
import { useImageVariant as ce } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
14
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
15
|
+
import me from "../../../Shared/MainCard.js";
|
|
16
|
+
import ue from "../../../Shared/ScoreStateWrapper.js";
|
|
17
|
+
import xe from "../../../../assets/default-quiz-bg.png.js";
|
|
18
|
+
import de from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
19
|
+
import W from "../../../Shared/PresentedBy.js";
|
|
20
|
+
import { createStyles as he } from "./SplitScoreState.styles.js";
|
|
21
|
+
import ge from "../../../Shared/AlertMessage.js";
|
|
22
|
+
import { useScoreStateHelpers as ye } from "../../../../hooks/useScoreStateHelpers.js";
|
|
23
|
+
import Ce from "../../../../../../../node_modules/@mui/icons-material/esm/Share.js";
|
|
24
|
+
import { useTranslation as je } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
25
|
+
const Ue = (s) => {
|
|
26
|
+
var y, C, j, f, b, S, p, T, Q, z, A, I, P;
|
|
27
|
+
const F = te(), { t: r } = je(), l = se(), c = ae(), D = s.defaultImagePlaceholderUrl ? s.defaultImagePlaceholderUrl : l ? de : xe, q = ce(
|
|
28
|
+
{
|
|
29
|
+
images: s.classicQuiz.images,
|
|
30
|
+
imagePlaceholder: D
|
|
31
|
+
},
|
|
32
|
+
M.SPLIT
|
|
33
|
+
), {
|
|
34
|
+
getHexagonBackground: w,
|
|
35
|
+
formatTime: E,
|
|
36
|
+
displayCongratulations: H,
|
|
37
|
+
getRandomEmoji: N,
|
|
38
|
+
shareResult: U
|
|
39
|
+
} = ye({
|
|
40
|
+
summary: s.summary,
|
|
41
|
+
totalTime: s.totalTime,
|
|
42
|
+
classicQuiz: s.classicQuiz,
|
|
43
|
+
variant: M.SPLIT
|
|
44
|
+
}), a = ((y = s.classicQuiz.branding) == null ? void 0 : y.colors) || null, V = i().textPrimary, O = (a == null ? void 0 : a.primaryColor) || ((j = (C = i().palette) == null ? void 0 : C.primary) == null ? void 0 : j.plainColor), $ = (a == null ? void 0 : a.secondaryColor) || i().textSecondary, G = i().secondaryContainer, J = (b = (f = i().palette) == null ? void 0 : f.primary) == null ? void 0 : b.onPrimary, K = R().secondary, X = R().primary, m = (a == null ? void 0 : a.backgroundColor) || i().surfaceVariant, Y = i().surface, Z = i().onSurface, d = oe(), h = i().textColor, u = ie(), x = l ? ((S = s.classicQuiz.branding) == null ? void 0 : S.images.mobileLogo) || ((p = s.classicQuiz.branding) == null ? void 0 : p.images.mainLogo) || "" : ((T = s.classicQuiz.branding) == null ? void 0 : T.images.mainLogo) || "", t = he({
|
|
45
|
+
spacingScale: u,
|
|
46
|
+
borderRadius: d,
|
|
47
|
+
fontFamilyPrimary: X,
|
|
48
|
+
fontFamilySecondary: K,
|
|
49
|
+
textPrimary: V,
|
|
50
|
+
primaryColor: O,
|
|
51
|
+
secondaryColor: $,
|
|
52
|
+
secondaryContainer: G,
|
|
53
|
+
onPrimaryColor: J,
|
|
54
|
+
bgcolor: L(m || ""),
|
|
55
|
+
surfaceColor: Y,
|
|
56
|
+
onSurfaceColor: Z,
|
|
57
|
+
textColor: h,
|
|
58
|
+
brandingColors: a,
|
|
59
|
+
successColor: (z = (Q = i().palette) == null ? void 0 : Q.success) == null ? void 0 : z.plainColor,
|
|
60
|
+
dangerColor: (I = (A = i().palette) == null ? void 0 : A.danger) == null ? void 0 : I.plainColor,
|
|
61
|
+
isMobileScreen: l,
|
|
62
|
+
isLargeScreen: c
|
|
63
|
+
}), g = (_) => {
|
|
64
|
+
var B, k;
|
|
65
|
+
const ee = x && !c ? /* @__PURE__ */ e.jsx(
|
|
66
|
+
W,
|
|
67
|
+
{
|
|
68
|
+
brandingLogo: x,
|
|
69
|
+
textColor: (a == null ? void 0 : a.contentColor) || F.colorSchemes.dark.textColor,
|
|
70
|
+
label: ((B = s.classicQuiz.labels) == null ? void 0 : B.sponsor) || null
|
|
71
|
+
}
|
|
72
|
+
) : null;
|
|
73
|
+
return /* @__PURE__ */ e.jsx(
|
|
74
|
+
ne,
|
|
75
|
+
{
|
|
76
|
+
entity: s.classicQuiz,
|
|
77
|
+
headline: r("classicQuiz.headline"),
|
|
78
|
+
finalImage: q,
|
|
79
|
+
brandingContent: ee,
|
|
80
|
+
isTabulated: _,
|
|
81
|
+
rulesDisplay: s.rulesDisplay,
|
|
82
|
+
children: s.summary.classicQuizId ? /* @__PURE__ */ e.jsxs(o, { sx: t.questionAreaContent, children: [
|
|
83
|
+
/* @__PURE__ */ e.jsx(o, { sx: t.scoreContainer, children: /* @__PURE__ */ e.jsx(o, { sx: t.scoreContentWrapper, children: /* @__PURE__ */ e.jsx(o, { sx: t.scoreContentContainer, children: /* @__PURE__ */ e.jsx(o, { sx: t.scoreSection, children: /* @__PURE__ */ e.jsx(o, { sx: t.scoreSectionWrapper, children: /* @__PURE__ */ e.jsxs(o, { sx: t.textSection, children: [
|
|
84
|
+
/* @__PURE__ */ e.jsxs(o, { sx: t.achievementBadgeContainer, children: [
|
|
85
|
+
/* @__PURE__ */ e.jsx(
|
|
86
|
+
"img",
|
|
87
|
+
{
|
|
88
|
+
style: t.hexagonBackground,
|
|
89
|
+
src: w(),
|
|
90
|
+
alt: "achievement-badge-background"
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ e.jsx(
|
|
94
|
+
"img",
|
|
95
|
+
{
|
|
96
|
+
style: t.achievementEmoji,
|
|
97
|
+
src: N("light"),
|
|
98
|
+
alt: "achievement-badge"
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e.jsx(
|
|
103
|
+
n,
|
|
104
|
+
{
|
|
105
|
+
level: "body-lg",
|
|
106
|
+
sx: t.congratulationsText,
|
|
107
|
+
children: s.maxAttemptsReached ? r("classicQuiz.maxAttemptsReached") : H()
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ e.jsx(o, { sx: t.scoreNumbersContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: t.scoreNumbersWrapper, children: [
|
|
111
|
+
/* @__PURE__ */ e.jsx(
|
|
112
|
+
n,
|
|
113
|
+
{
|
|
114
|
+
level: "h2",
|
|
115
|
+
sx: t.correctScoreText(
|
|
116
|
+
s.summary.correct
|
|
117
|
+
),
|
|
118
|
+
children: s.summary.correct
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ e.jsxs(
|
|
122
|
+
n,
|
|
123
|
+
{
|
|
124
|
+
level: "h2",
|
|
125
|
+
sx: t.totalScoreText(s.summary.correct),
|
|
126
|
+
children: [
|
|
127
|
+
"/",
|
|
128
|
+
s.summary.classicQuizQuestions
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }) }),
|
|
133
|
+
s.classicQuiz.type && s.classicQuiz.type.toLocaleLowerCase() === "timed" ? /* @__PURE__ */ e.jsxs(n, { level: "body-md", sx: t.timeText, children: [
|
|
134
|
+
r("classicQuiz.youDidItFor"),
|
|
135
|
+
" ",
|
|
136
|
+
E()
|
|
137
|
+
] }) : null,
|
|
138
|
+
s.classicQuiz.scored ? /* @__PURE__ */ e.jsxs(n, { level: "body-lg", sx: t.pointsText, children: [
|
|
139
|
+
r("classicQuiz.youWon"),
|
|
140
|
+
" ",
|
|
141
|
+
s.summary.correct * s.classicQuiz.points,
|
|
142
|
+
" ",
|
|
143
|
+
r("common.labels.points")
|
|
144
|
+
] }) : null
|
|
145
|
+
] }) }) }) }) }) }),
|
|
146
|
+
/* @__PURE__ */ e.jsxs(
|
|
147
|
+
o,
|
|
148
|
+
{
|
|
149
|
+
id: "desktop-thanks",
|
|
150
|
+
sx: {
|
|
151
|
+
p: u.lg,
|
|
152
|
+
gap: u.lg,
|
|
153
|
+
display: "flex",
|
|
154
|
+
flexDirection: "column",
|
|
155
|
+
backdropFilter: "blur(4px)",
|
|
156
|
+
bgcolor: `rgba(${m ? L(m || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
157
|
+
borderRadius: d.sm
|
|
158
|
+
},
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ e.jsx(o, { sx: t.ctaContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: t.ctaContentWrapper, children: [
|
|
161
|
+
/* @__PURE__ */ e.jsx(n, { level: "body-lg", sx: t.thanksText, children: r("classicQuiz.thanksForPlaying") }),
|
|
162
|
+
/* @__PURE__ */ e.jsxs(o, { sx: t.buttonsContainer, children: [
|
|
163
|
+
!s.maxAttemptsReached && /* @__PURE__ */ e.jsx(
|
|
164
|
+
v,
|
|
165
|
+
{
|
|
166
|
+
sx: t.playAgainButton,
|
|
167
|
+
onClick: s.playAgain,
|
|
168
|
+
children: /* @__PURE__ */ e.jsxs(o, { sx: t.playAgainButtonContent, children: [
|
|
169
|
+
/* @__PURE__ */ e.jsx(le, { sx: t.playAgainIcon }),
|
|
170
|
+
/* @__PURE__ */ e.jsx(n, { sx: t.playAgainText, children: r("classicQuiz.buttons.playAgain") })
|
|
171
|
+
] })
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ e.jsx(v, { sx: t.shareButton, onClick: U, children: /* @__PURE__ */ e.jsxs(o, { sx: t.shareButtonContent, children: [
|
|
175
|
+
/* @__PURE__ */ e.jsx(Ce, { style: t.shareIcon }),
|
|
176
|
+
/* @__PURE__ */ e.jsx(n, { sx: t.shareText, children: r("classicQuiz.buttons.share") })
|
|
177
|
+
] }) }),
|
|
178
|
+
/* @__PURE__ */ e.jsx(
|
|
179
|
+
re,
|
|
180
|
+
{
|
|
181
|
+
additionalCTA: s.additionalCTA,
|
|
182
|
+
buttonStyle: t.additionalCTAButton,
|
|
183
|
+
buttonContentStyle: t.additionalCTAButtonContent,
|
|
184
|
+
textStyle: t.additionalCTAText
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
] })
|
|
188
|
+
] }) }),
|
|
189
|
+
c && /* @__PURE__ */ e.jsx(
|
|
190
|
+
W,
|
|
191
|
+
{
|
|
192
|
+
brandingLogo: x,
|
|
193
|
+
textColor: (a == null ? void 0 : a.contentColor) || h,
|
|
194
|
+
label: ((k = s.classicQuiz.labels) == null ? void 0 : k.sponsor) || null,
|
|
195
|
+
isCentered: !0
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
] }) : /* @__PURE__ */ e.jsx(o, { sx: t.alertMessageArea, children: /* @__PURE__ */ e.jsx(o, { sx: t.alertMessageWrapper, children: /* @__PURE__ */ e.jsx(
|
|
202
|
+
ge,
|
|
203
|
+
{
|
|
204
|
+
variant: "error",
|
|
205
|
+
title: r("common.authentication.accessRequired"),
|
|
206
|
+
message: r("common.authentication.invalidOrMissingAuth")
|
|
207
|
+
}
|
|
208
|
+
) }) })
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
};
|
|
212
|
+
return /* @__PURE__ */ e.jsx(me, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: s.showAnswerExplanations ? /* @__PURE__ */ e.jsx(
|
|
213
|
+
ue,
|
|
214
|
+
{
|
|
215
|
+
questions: s.classicQuiz.questions,
|
|
216
|
+
userParticipation: s.summary.answers,
|
|
217
|
+
brandingColors: (P = s.classicQuiz.branding) == null ? void 0 : P.colors,
|
|
218
|
+
resultsTabPanelSxProps: {
|
|
219
|
+
display: "flex",
|
|
220
|
+
flexDirection: "column",
|
|
221
|
+
px: 0,
|
|
222
|
+
pb: 0,
|
|
223
|
+
pt: 0
|
|
224
|
+
},
|
|
225
|
+
children: g(!0)
|
|
226
|
+
}
|
|
227
|
+
) : g(!1) });
|
|
228
|
+
};
|
|
229
|
+
export {
|
|
230
|
+
Ue as default
|
|
231
|
+
};
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
const n = (e) => ({
|
|
2
|
+
// Main question area
|
|
3
|
+
questionArea: {
|
|
4
|
+
width: "100%",
|
|
5
|
+
display: "flex",
|
|
6
|
+
flexDirection: "column"
|
|
7
|
+
},
|
|
8
|
+
// Question area content wrapper
|
|
9
|
+
questionAreaContent: {
|
|
10
|
+
p: e.spacingScale.lg,
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
gap: "16px"
|
|
15
|
+
},
|
|
16
|
+
// Score container (main card)
|
|
17
|
+
scoreContainer: {
|
|
18
|
+
p: e.spacingScale.lg,
|
|
19
|
+
gap: e.spacingScale.md,
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
backdropFilter: "blur(4px)",
|
|
23
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
24
|
+
borderRadius: e.borderRadius.sm
|
|
25
|
+
},
|
|
26
|
+
// Score content wrapper
|
|
27
|
+
scoreContentWrapper: {
|
|
28
|
+
display: "flex",
|
|
29
|
+
flexDirection: "column",
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
alignSelf: "stretch"
|
|
33
|
+
},
|
|
34
|
+
// Score content container
|
|
35
|
+
scoreContentContainer: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
gap: e.spacingScale["3xl"],
|
|
40
|
+
alignSelf: "stretch"
|
|
41
|
+
},
|
|
42
|
+
// Score section
|
|
43
|
+
scoreSection: {
|
|
44
|
+
display: "flex",
|
|
45
|
+
gap: e.spacingScale.xs,
|
|
46
|
+
justifyContent: "center",
|
|
47
|
+
alignSelf: "stretch",
|
|
48
|
+
alignItems: "center"
|
|
49
|
+
},
|
|
50
|
+
// Score section wrapper
|
|
51
|
+
scoreSectionWrapper: {
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: e.isMobileScreen ? "column" : "row",
|
|
54
|
+
minWidth: "200px",
|
|
55
|
+
p: e.spacingScale.xs,
|
|
56
|
+
justifyContent: "center",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
gap: e.spacingScale.md,
|
|
59
|
+
flex: "1 0 0"
|
|
60
|
+
},
|
|
61
|
+
// Achievement badge container
|
|
62
|
+
achievementBadgeContainer: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
width: e.isMobileScreen ? "172px" : "auto",
|
|
65
|
+
height: e.isMobileScreen ? "160px" : "auto",
|
|
66
|
+
flexDirection: "column",
|
|
67
|
+
justifyContent: "center",
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
position: "relative",
|
|
70
|
+
my: e.isMobileScreen ? 0 : e.spacingScale.lg
|
|
71
|
+
},
|
|
72
|
+
// Hexagon background
|
|
73
|
+
hexagonBackground: {
|
|
74
|
+
width: "160px",
|
|
75
|
+
height: "160px",
|
|
76
|
+
position: "absolute",
|
|
77
|
+
top: "50%",
|
|
78
|
+
left: "50%",
|
|
79
|
+
transform: "translate(-50%, -50%)"
|
|
80
|
+
},
|
|
81
|
+
// Achievement emoji
|
|
82
|
+
achievementEmoji: {
|
|
83
|
+
maxWidth: "80px",
|
|
84
|
+
maxHeight: "80px",
|
|
85
|
+
position: "relative"
|
|
86
|
+
},
|
|
87
|
+
// Text section
|
|
88
|
+
textSection: {
|
|
89
|
+
display: "flex",
|
|
90
|
+
flexDirection: "column",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
boxSizing: "border-box"
|
|
93
|
+
},
|
|
94
|
+
// Congratulations text
|
|
95
|
+
congratulationsText: {
|
|
96
|
+
color: e.textPrimary,
|
|
97
|
+
textAlign: "center",
|
|
98
|
+
fontFamily: e.fontFamilyPrimary,
|
|
99
|
+
fontSize: "1.5em",
|
|
100
|
+
fontStyle: "normal",
|
|
101
|
+
fontWeight: 400,
|
|
102
|
+
lineHeight: "133.4%",
|
|
103
|
+
px: 2
|
|
104
|
+
},
|
|
105
|
+
// Score numbers container
|
|
106
|
+
scoreNumbersContainer: {
|
|
107
|
+
display: "flex",
|
|
108
|
+
alignItems: "center",
|
|
109
|
+
gap: "4px"
|
|
110
|
+
},
|
|
111
|
+
// Score numbers wrapper
|
|
112
|
+
scoreNumbersWrapper: {
|
|
113
|
+
display: "flex",
|
|
114
|
+
alignItems: "flex-end",
|
|
115
|
+
gap: "4px"
|
|
116
|
+
},
|
|
117
|
+
// Correct score text
|
|
118
|
+
correctScoreText: (t) => ({
|
|
119
|
+
textAlign: "center",
|
|
120
|
+
color: t > 0 ? e.successColor : e.dangerColor,
|
|
121
|
+
fontFamily: e.fontFamilyPrimary,
|
|
122
|
+
fontSize: "3.75em",
|
|
123
|
+
fontStyle: "normal",
|
|
124
|
+
fontWeight: 500,
|
|
125
|
+
lineHeight: "120%",
|
|
126
|
+
letterSpacing: "-0.5px"
|
|
127
|
+
}),
|
|
128
|
+
// Total score text
|
|
129
|
+
totalScoreText: (t) => ({
|
|
130
|
+
textAlign: "center",
|
|
131
|
+
color: t > 0 ? e.successColor : e.dangerColor,
|
|
132
|
+
fontFamily: e.fontFamilyPrimary,
|
|
133
|
+
fontSize: "3.75em",
|
|
134
|
+
fontStyle: "normal",
|
|
135
|
+
fontWeight: 500,
|
|
136
|
+
lineHeight: "120%",
|
|
137
|
+
letterSpacing: "-0.5px"
|
|
138
|
+
}),
|
|
139
|
+
// Time text
|
|
140
|
+
timeText: {
|
|
141
|
+
textAlign: "center",
|
|
142
|
+
color: e.textPrimary,
|
|
143
|
+
fontFamily: e.fontFamilySecondary,
|
|
144
|
+
fontSize: "0.875em",
|
|
145
|
+
fontStyle: "normal",
|
|
146
|
+
fontWeight: 700,
|
|
147
|
+
lineHeight: "143%",
|
|
148
|
+
letterSpacing: "0.024px"
|
|
149
|
+
},
|
|
150
|
+
// Points text
|
|
151
|
+
pointsText: {
|
|
152
|
+
textAlign: "center",
|
|
153
|
+
color: e.textPrimary,
|
|
154
|
+
fontFamily: e.fontFamilyPrimary,
|
|
155
|
+
fontSize: "1.25em",
|
|
156
|
+
fontStyle: "normal",
|
|
157
|
+
fontWeight: 500,
|
|
158
|
+
lineHeight: "120%",
|
|
159
|
+
letterSpacing: "0.15px"
|
|
160
|
+
},
|
|
161
|
+
// CTA container
|
|
162
|
+
ctaContainer: {
|
|
163
|
+
display: "flex",
|
|
164
|
+
flexDirection: "column",
|
|
165
|
+
alignItems: "center"
|
|
166
|
+
},
|
|
167
|
+
// CTA content wrapper
|
|
168
|
+
ctaContentWrapper: {
|
|
169
|
+
display: "flex",
|
|
170
|
+
flexDirection: "column",
|
|
171
|
+
justifyContent: "center",
|
|
172
|
+
alignItems: "center",
|
|
173
|
+
gap: e.spacingScale.lg
|
|
174
|
+
},
|
|
175
|
+
// Thanks for playing text
|
|
176
|
+
thanksText: {
|
|
177
|
+
color: e.textPrimary,
|
|
178
|
+
textAlign: "center",
|
|
179
|
+
fontFamily: e.fontFamilyPrimary,
|
|
180
|
+
fontSize: "1.25em",
|
|
181
|
+
fontStyle: "normal",
|
|
182
|
+
fontWeight: 500,
|
|
183
|
+
lineHeight: "120%",
|
|
184
|
+
letterSpacing: "0.15px"
|
|
185
|
+
},
|
|
186
|
+
// Buttons container
|
|
187
|
+
buttonsContainer: {
|
|
188
|
+
display: "flex",
|
|
189
|
+
flexDirection: "column",
|
|
190
|
+
gap: "16px"
|
|
191
|
+
},
|
|
192
|
+
// Play again button
|
|
193
|
+
playAgainButton: {
|
|
194
|
+
display: "flex",
|
|
195
|
+
py: e.spacingScale.xs,
|
|
196
|
+
px: "16px",
|
|
197
|
+
flexDirection: "column",
|
|
198
|
+
justifyContent: "center",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
gap: "8px",
|
|
201
|
+
borderRadius: e.borderRadius.xl,
|
|
202
|
+
color: e.textPrimary,
|
|
203
|
+
bgcolor: e.surfaceColor,
|
|
204
|
+
"&:hover": {
|
|
205
|
+
bgcolor: e.surfaceColor,
|
|
206
|
+
opacity: 0.9
|
|
207
|
+
},
|
|
208
|
+
fontSize: "0.9375em"
|
|
209
|
+
},
|
|
210
|
+
// Play again button content
|
|
211
|
+
playAgainButtonContent: {
|
|
212
|
+
display: "flex",
|
|
213
|
+
justifyContent: "center",
|
|
214
|
+
alignItems: "center",
|
|
215
|
+
gap: "8px",
|
|
216
|
+
alignSelf: "stretch"
|
|
217
|
+
},
|
|
218
|
+
// Play again icon
|
|
219
|
+
playAgainIcon: {
|
|
220
|
+
display: "flex",
|
|
221
|
+
width: "16px",
|
|
222
|
+
height: "16px",
|
|
223
|
+
justifyContent: "flex-end",
|
|
224
|
+
alignItems: "center",
|
|
225
|
+
color: e.textPrimary
|
|
226
|
+
},
|
|
227
|
+
// Play again text
|
|
228
|
+
playAgainText: {
|
|
229
|
+
color: e.textPrimary,
|
|
230
|
+
textAlign: "center",
|
|
231
|
+
fontFamily: e.fontFamilyPrimary,
|
|
232
|
+
fontSize: "0.9375em",
|
|
233
|
+
fontStyle: "normal",
|
|
234
|
+
fontWeight: 500,
|
|
235
|
+
lineHeight: "22px",
|
|
236
|
+
letterSpacing: "0.46px",
|
|
237
|
+
textTransform: "uppercase"
|
|
238
|
+
},
|
|
239
|
+
// Share button
|
|
240
|
+
shareButton: {
|
|
241
|
+
display: "flex",
|
|
242
|
+
py: e.spacingScale.xs,
|
|
243
|
+
px: "16px",
|
|
244
|
+
flexDirection: "column",
|
|
245
|
+
justifyContent: "center",
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
gap: "10px",
|
|
248
|
+
borderRadius: e.borderRadius.xl,
|
|
249
|
+
bgcolor: e.primaryColor,
|
|
250
|
+
"&:hover": {
|
|
251
|
+
bgcolor: e.primaryColor,
|
|
252
|
+
opacity: 0.9
|
|
253
|
+
},
|
|
254
|
+
fontSize: "0.9375em"
|
|
255
|
+
},
|
|
256
|
+
// Share button content
|
|
257
|
+
shareButtonContent: {
|
|
258
|
+
display: "flex",
|
|
259
|
+
justifyContent: "center",
|
|
260
|
+
alignItems: "center",
|
|
261
|
+
gap: "8px",
|
|
262
|
+
alignSelf: "stretch"
|
|
263
|
+
},
|
|
264
|
+
// Share icon
|
|
265
|
+
shareIcon: {
|
|
266
|
+
display: "flex",
|
|
267
|
+
width: "16px",
|
|
268
|
+
height: "16px",
|
|
269
|
+
justifyContent: "center",
|
|
270
|
+
alignItems: "center",
|
|
271
|
+
color: e.onPrimaryColor
|
|
272
|
+
},
|
|
273
|
+
// Share text
|
|
274
|
+
shareText: {
|
|
275
|
+
color: e.onPrimaryColor,
|
|
276
|
+
textAlign: "center",
|
|
277
|
+
fontFamily: e.fontFamilyPrimary,
|
|
278
|
+
fontSize: "0.9375em",
|
|
279
|
+
fontStyle: "normal",
|
|
280
|
+
fontWeight: 500,
|
|
281
|
+
lineHeight: "22px",
|
|
282
|
+
letterSpacing: "0.46px",
|
|
283
|
+
textTransform: "uppercase"
|
|
284
|
+
},
|
|
285
|
+
// Additional CTA button (secondary style)
|
|
286
|
+
additionalCTAButton: {
|
|
287
|
+
display: "flex",
|
|
288
|
+
py: e.spacingScale.xs,
|
|
289
|
+
px: e.spacingScale.md,
|
|
290
|
+
flexDirection: "column",
|
|
291
|
+
justifyContent: "center",
|
|
292
|
+
alignItems: "center",
|
|
293
|
+
gap: "8px",
|
|
294
|
+
borderRadius: e.borderRadius.xl,
|
|
295
|
+
bgcolor: e.secondaryContainer,
|
|
296
|
+
"&:hover": {
|
|
297
|
+
bgcolor: e.secondaryContainer,
|
|
298
|
+
opacity: 0.9
|
|
299
|
+
},
|
|
300
|
+
fontSize: "0.9375em"
|
|
301
|
+
},
|
|
302
|
+
// Additional CTA button content
|
|
303
|
+
additionalCTAButtonContent: {
|
|
304
|
+
display: "flex",
|
|
305
|
+
justifyContent: "center",
|
|
306
|
+
alignItems: "center",
|
|
307
|
+
gap: "8px"
|
|
308
|
+
},
|
|
309
|
+
// Additional CTA text
|
|
310
|
+
additionalCTAText: {
|
|
311
|
+
color: e.secondaryColor,
|
|
312
|
+
fontFamily: e.fontFamilyPrimary,
|
|
313
|
+
fontSize: "0.9375em",
|
|
314
|
+
fontStyle: "normal",
|
|
315
|
+
fontWeight: 500,
|
|
316
|
+
lineHeight: "22px",
|
|
317
|
+
letterSpacing: "0.46px",
|
|
318
|
+
textTransform: "uppercase"
|
|
319
|
+
},
|
|
320
|
+
// Lead collection container
|
|
321
|
+
leadCollectionContainer: {
|
|
322
|
+
p: e.spacingScale.lg,
|
|
323
|
+
gap: e.spacingScale.md,
|
|
324
|
+
display: "flex",
|
|
325
|
+
flexDirection: "column",
|
|
326
|
+
backdropFilter: "blur(4px)",
|
|
327
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
328
|
+
borderRadius: e.borderRadius.sm
|
|
329
|
+
},
|
|
330
|
+
// Lead content wrapper
|
|
331
|
+
leadContentWrapper: {
|
|
332
|
+
display: "flex",
|
|
333
|
+
flexDirection: "column",
|
|
334
|
+
justifyContent: "center",
|
|
335
|
+
alignItems: "center",
|
|
336
|
+
alignSelf: "stretch"
|
|
337
|
+
},
|
|
338
|
+
alertMessageArea: {
|
|
339
|
+
flex: e.isLargeScreen ? "1" : "0 0 50%",
|
|
340
|
+
width: e.isLargeScreen ? "100%" : "50%",
|
|
341
|
+
minWidth: e.isLargeScreen ? "100%" : "50%",
|
|
342
|
+
maxWidth: e.isLargeScreen ? "100%" : "50%",
|
|
343
|
+
display: "flex",
|
|
344
|
+
flexDirection: "column",
|
|
345
|
+
justifyContent: "center"
|
|
346
|
+
},
|
|
347
|
+
alertMessageWrapper: {
|
|
348
|
+
p: e.spacingScale.lg
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
export {
|
|
352
|
+
n as createStyles
|
|
353
|
+
};
|