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