fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +4846 -3
- package/CollectLead.js +1252 -3
- package/EventGamePlay.js +7594 -3
- package/MatchQuizPlay.js +11001 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4165 -3
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
- package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -4
- package/_virtual/index2.js +0 -4
- package/_virtual/index3.js +0 -4
- package/_virtual/jsx-runtime.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.development2.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
- package/_virtual/react-is.production.min2.js +0 -4
- package/_virtual/react-jsx-runtime.development.js +0 -4
- package/_virtual/react-jsx-runtime.production.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
- package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
- package/packages/classic-quiz-play/src/constants/constants.js +0 -4
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
- package/packages/classic-quiz-play/src/index.js +0 -4
- package/packages/classic-quiz-play/src/main.js +0 -7
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/collect-lead/src/components/CollectLead.js +0 -18
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
- package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
- package/packages/collect-lead/src/index.js +0 -4
- package/packages/collect-lead/src/main.js +0 -39
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
- package/packages/common/src/components/AdditionalCTA.js +0 -24
- package/packages/common/src/components/AlertMessage.js +0 -88
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
- package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
- package/packages/common/src/components/Leads/LeadForm.js +0 -498
- package/packages/common/src/components/Portal.js +0 -62
- package/packages/common/src/components/Rules.js +0 -299
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
- package/packages/common/src/components/Spinner.js +0 -36
- package/packages/common/src/constants/constants.js +0 -457
- package/packages/common/src/enums/enums.js +0 -4
- package/packages/common/src/functions/helpers.js +0 -58
- package/packages/common/src/functions/i18n.js +0 -69
- package/packages/common/src/functions/theme.js +0 -301
- package/packages/common/src/hooks/useConstantContext.js +0 -10
- package/packages/common/src/hooks/useImageUrl.js +0 -8
- package/packages/common/src/hooks/useImageVariant.js +0 -11
- package/packages/common/src/hooks/useLeadForm.js +0 -129
- package/packages/common/src/hooks/useThemeMode.js +0 -30
- package/packages/common/src/locales/bg.json.js +0 -363
- package/packages/common/src/locales/de.json.js +0 -362
- package/packages/common/src/locales/el.json.js +0 -362
- package/packages/common/src/locales/en.json.js +0 -368
- package/packages/common/src/locales/es.json.js +0 -362
- package/packages/common/src/locales/fr-be.json.js +0 -362
- package/packages/common/src/locales/fr.json.js +0 -362
- package/packages/common/src/locales/it.json.js +0 -362
- package/packages/common/src/locales/pl.json.js +0 -362
- package/packages/common/src/locales/pt-br.json.js +0 -362
- package/packages/common/src/locales/pt.json.js +0 -362
- package/packages/common/src/locales/ro.json.js +0 -362
- package/packages/common/src/locales/sk.json.js +0 -362
- package/packages/common/src/locales/sr.json.js +0 -362
- package/packages/common/src/providers/ConstantsProvider.js +0 -29
- package/packages/common/src/providers/ContainerProvider.js +0 -35
- package/packages/common/src/providers/FontProvider.js +0 -25
- package/packages/common/src/providers/ThemeProvider.js +0 -80
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/event-game-play/src/assets/school.svg.js +0 -4
- package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
- package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
- package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
- package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
- package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
- package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
- package/packages/event-game-play/src/helpers/helpers.js +0 -11
- package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
- package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
- package/packages/event-game-play/src/index.js +0 -4
- package/packages/event-game-play/src/main.js +0 -7
- package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
- package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
- package/packages/match-quiz-play/src/index.js +0 -4
- package/packages/match-quiz-play/src/main.js +0 -7
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/poll-vote/src/components/PollNotFound.js +0 -23
- package/packages/poll-vote/src/components/PollVote.js +0 -270
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
- package/packages/poll-vote/src/components/Shared/Button.js +0 -76
- package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
- package/packages/poll-vote/src/hooks/usePollById.js +0 -16
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
- package/packages/poll-vote/src/index.js +0 -4
- package/packages/poll-vote/src/main.js +0 -7
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import $ from "react";
|
|
3
|
-
import { Box as l, Tabs as _, TabList as E, Tab as w, tabClasses as z, Typography as s, TabPanel as C } from "@mui/joy";
|
|
4
|
-
import { useInternalTheme as L, isMobile as U, useCornerRadius as Y, useColors as a, useFontFamily as k, useSpacingScale as v } from "../../../../common/src/functions/theme.js";
|
|
5
|
-
import { stripHtmlTags as G } from "../../../../common/src/functions/helpers.js";
|
|
6
|
-
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
-
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import J from "../../assets/school.svg.js";
|
|
11
|
-
import K from "../../assets/sports_score.svg.js";
|
|
12
|
-
import N from "../../assets/info.svg.js";
|
|
13
|
-
import { useTranslation as X } from "../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
-
const ae = ({
|
|
15
|
-
questions: T,
|
|
16
|
-
userParticipation: H,
|
|
17
|
-
resultsTabPanelSxProps: W,
|
|
18
|
-
isOverlayVariant: o,
|
|
19
|
-
children: B,
|
|
20
|
-
brandingColors: i
|
|
21
|
-
}) => {
|
|
22
|
-
const [d, D] = $.useState(0), n = L(), { t: x } = X(), p = U(), j = Y().md, h = o ? n.colorSchemes.dark.textPrimary : a().textPrimary, g = o ? n.colorSchemes.dark.textSecondary : a().textSecondary, u = k().primary, m = k().secondary, b = o ? n.colorSchemes.dark.secondaryContainer : a().secondaryContainer, P = i != null && i.backgroundColor || o ? n.colorSchemes.dark.surfaceVariant : a().surfaceVariant, y = v(), Q = a().palette.success.plainColor, R = a().palette.danger.plainColor;
|
|
23
|
-
let S = o ? n.colorSchemes.dark.textPrimary : a().textPrimary;
|
|
24
|
-
i != null && i.primaryColor && (S = i.primaryColor);
|
|
25
|
-
const M = (r, f) => {
|
|
26
|
-
var F, I, A;
|
|
27
|
-
const t = T.find(
|
|
28
|
-
(c) => c.questionId === r.questionId
|
|
29
|
-
);
|
|
30
|
-
return /* @__PURE__ */ e.jsx(
|
|
31
|
-
l,
|
|
32
|
-
{
|
|
33
|
-
sx: {
|
|
34
|
-
borderRadius: j,
|
|
35
|
-
p: y.md,
|
|
36
|
-
display: "flex",
|
|
37
|
-
flexDirection: "column",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
alignSelf: "stretch",
|
|
40
|
-
gap: y.md,
|
|
41
|
-
backdropFilter: "blur(4px)",
|
|
42
|
-
position: "relative",
|
|
43
|
-
"&::before": {
|
|
44
|
-
content: '""',
|
|
45
|
-
position: "absolute",
|
|
46
|
-
top: 0,
|
|
47
|
-
left: 0,
|
|
48
|
-
right: 0,
|
|
49
|
-
bottom: 0,
|
|
50
|
-
backgroundColor: P,
|
|
51
|
-
opacity: 0.5,
|
|
52
|
-
borderRadius: "inherit",
|
|
53
|
-
zIndex: 0,
|
|
54
|
-
backdropFilter: "blur(4px)"
|
|
55
|
-
},
|
|
56
|
-
"& > *": {
|
|
57
|
-
position: "relative",
|
|
58
|
-
zIndex: 1
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
62
|
-
l,
|
|
63
|
-
{
|
|
64
|
-
sx: {
|
|
65
|
-
display: "flex",
|
|
66
|
-
flexDirection: "column",
|
|
67
|
-
alignItems: "flex-start",
|
|
68
|
-
gap: "12px",
|
|
69
|
-
alignSelf: "stretch"
|
|
70
|
-
},
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ e.jsxs(
|
|
73
|
-
l,
|
|
74
|
-
{
|
|
75
|
-
sx: {
|
|
76
|
-
display: "flex",
|
|
77
|
-
flexDirection: "column",
|
|
78
|
-
alignItems: "flex-start",
|
|
79
|
-
alignSelf: "stretch"
|
|
80
|
-
},
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ e.jsxs(
|
|
83
|
-
s,
|
|
84
|
-
{
|
|
85
|
-
sx: {
|
|
86
|
-
alignSelf: "stretch",
|
|
87
|
-
color: g,
|
|
88
|
-
fontFamily: m,
|
|
89
|
-
fontSize: "0.75em",
|
|
90
|
-
fontStyle: "normal",
|
|
91
|
-
fontWeight: 500,
|
|
92
|
-
lineHeight: "166%",
|
|
93
|
-
letterSpacing: "1px",
|
|
94
|
-
textTransform: "uppercase"
|
|
95
|
-
},
|
|
96
|
-
children: [
|
|
97
|
-
x("classicQuiz.question"),
|
|
98
|
-
" ",
|
|
99
|
-
f + 1
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
/* @__PURE__ */ e.jsx(
|
|
104
|
-
s,
|
|
105
|
-
{
|
|
106
|
-
sx: {
|
|
107
|
-
alignSelf: "stretch",
|
|
108
|
-
color: h,
|
|
109
|
-
fontFamily: u,
|
|
110
|
-
fontSize: "1.25em",
|
|
111
|
-
fontStyle: "normal",
|
|
112
|
-
fontWeight: 500,
|
|
113
|
-
lineHeight: "120%",
|
|
114
|
-
letterSpacing: "0.15px"
|
|
115
|
-
},
|
|
116
|
-
children: t == null ? void 0 : t.question
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ e.jsx(l, { sx: { alignSelf: "stretch" }, children: r.correct ? /* @__PURE__ */ e.jsxs(
|
|
123
|
-
s,
|
|
124
|
-
{
|
|
125
|
-
sx: {
|
|
126
|
-
color: o ? n.colorSchemes.dark.palette.success.plainColor : Q,
|
|
127
|
-
fontFamily: m,
|
|
128
|
-
fontSize: "1em",
|
|
129
|
-
fontStyle: "normal",
|
|
130
|
-
fontWeight: 700,
|
|
131
|
-
lineHeight: "20px",
|
|
132
|
-
letterSpacing: "0.15px"
|
|
133
|
-
},
|
|
134
|
-
children: [
|
|
135
|
-
x("classicQuiz.yourAnswer"),
|
|
136
|
-
" ",
|
|
137
|
-
(F = t == null ? void 0 : t.options.find(
|
|
138
|
-
(c) => c.optionId === r.optionId
|
|
139
|
-
)) == null ? void 0 : F.option
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
143
|
-
/* @__PURE__ */ e.jsxs(
|
|
144
|
-
s,
|
|
145
|
-
{
|
|
146
|
-
sx: {
|
|
147
|
-
color: o ? n.colorSchemes.dark.palette.danger.plainColor : R,
|
|
148
|
-
fontFamily: m,
|
|
149
|
-
fontSize: "1em",
|
|
150
|
-
fontStyle: "normal",
|
|
151
|
-
fontWeight: 600,
|
|
152
|
-
lineHeight: "20px",
|
|
153
|
-
letterSpacing: "0.15px"
|
|
154
|
-
},
|
|
155
|
-
children: [
|
|
156
|
-
x("classicQuiz.yourAnswer"),
|
|
157
|
-
" ",
|
|
158
|
-
(I = t == null ? void 0 : t.options.find(
|
|
159
|
-
(c) => c.optionId === r.optionId
|
|
160
|
-
)) == null ? void 0 : I.option
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
/* @__PURE__ */ e.jsxs(
|
|
165
|
-
s,
|
|
166
|
-
{
|
|
167
|
-
sx: {
|
|
168
|
-
color: h,
|
|
169
|
-
fontFamily: m,
|
|
170
|
-
fontSize: "1em",
|
|
171
|
-
fontStyle: "normal",
|
|
172
|
-
fontWeight: 600,
|
|
173
|
-
lineHeight: "20px",
|
|
174
|
-
letterSpacing: "0.15px"
|
|
175
|
-
},
|
|
176
|
-
children: [
|
|
177
|
-
x("classicQuiz.correctAnswer"),
|
|
178
|
-
" ",
|
|
179
|
-
(A = t == null ? void 0 : t.options.find((c) => c.correct)) == null ? void 0 : A.option
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
] }) }),
|
|
184
|
-
t != null && t.explanation ? /* @__PURE__ */ e.jsxs(
|
|
185
|
-
l,
|
|
186
|
-
{
|
|
187
|
-
sx: {
|
|
188
|
-
display: "flex",
|
|
189
|
-
py: "4px",
|
|
190
|
-
pr: "16px",
|
|
191
|
-
pl: "0px",
|
|
192
|
-
justifyContent: "center",
|
|
193
|
-
gap: "10px",
|
|
194
|
-
alignItems: "flex-start",
|
|
195
|
-
alignSelf: "stretch"
|
|
196
|
-
},
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ e.jsx(
|
|
199
|
-
"img",
|
|
200
|
-
{
|
|
201
|
-
src: N,
|
|
202
|
-
alt: "explanation-icon",
|
|
203
|
-
style: {
|
|
204
|
-
display: "flex",
|
|
205
|
-
width: "20px",
|
|
206
|
-
height: "20px",
|
|
207
|
-
justifyContent: "center",
|
|
208
|
-
alignItems: "center",
|
|
209
|
-
filter: o ? "brightness(0) invert(1)" : "none"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
),
|
|
213
|
-
/* @__PURE__ */ e.jsx(
|
|
214
|
-
s,
|
|
215
|
-
{
|
|
216
|
-
sx: {
|
|
217
|
-
flex: "1 0 0",
|
|
218
|
-
color: h,
|
|
219
|
-
fontFamily: m,
|
|
220
|
-
fontSize: "0.875em",
|
|
221
|
-
fontStyle: "normal",
|
|
222
|
-
fontWeight: 400,
|
|
223
|
-
lineHeight: "143%",
|
|
224
|
-
letterSpacing: "0.17px"
|
|
225
|
-
},
|
|
226
|
-
children: G(t == null ? void 0 : t.explanation)
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
]
|
|
230
|
-
}
|
|
231
|
-
) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
`single-answer-${r.questionId}`
|
|
235
|
-
)
|
|
236
|
-
},
|
|
237
|
-
`user-answer-${r.questionId}`
|
|
238
|
-
);
|
|
239
|
-
};
|
|
240
|
-
return /* @__PURE__ */ e.jsx(l, { sx: { width: "100%" }, children: /* @__PURE__ */ e.jsxs(
|
|
241
|
-
_,
|
|
242
|
-
{
|
|
243
|
-
value: d,
|
|
244
|
-
onChange: (r, f) => D(f),
|
|
245
|
-
sx: {
|
|
246
|
-
borderRadius: j,
|
|
247
|
-
width: "100%",
|
|
248
|
-
// Ensure tabs container takes full width
|
|
249
|
-
backgroundColor: "transparent"
|
|
250
|
-
},
|
|
251
|
-
children: [
|
|
252
|
-
/* @__PURE__ */ e.jsxs(
|
|
253
|
-
E,
|
|
254
|
-
{
|
|
255
|
-
sx: {
|
|
256
|
-
fontSize: "1em",
|
|
257
|
-
"--Icon-fontSize": "1.25em",
|
|
258
|
-
flexDirection: p ? "column" : "row"
|
|
259
|
-
},
|
|
260
|
-
children: [
|
|
261
|
-
/* @__PURE__ */ e.jsx(
|
|
262
|
-
w,
|
|
263
|
-
{
|
|
264
|
-
sx: {
|
|
265
|
-
display: "flex",
|
|
266
|
-
flexDirection: "row",
|
|
267
|
-
justifyContent: "center",
|
|
268
|
-
alignItems: "center",
|
|
269
|
-
flex: p ? "0 0 auto" : 1,
|
|
270
|
-
width: p ? "100%" : "auto",
|
|
271
|
-
borderBottom: "1px solid " + b,
|
|
272
|
-
opacity: "60%",
|
|
273
|
-
py: "12px",
|
|
274
|
-
px: "16px",
|
|
275
|
-
gap: "8px",
|
|
276
|
-
"&:not(.Mui-selected):hover": {
|
|
277
|
-
bgcolor: o ? "#FAFAFA14" : "#2121210A"
|
|
278
|
-
},
|
|
279
|
-
[`&.${z.selected}`]: {
|
|
280
|
-
bgcolor: o ? "#FAFAFA14" : "#2121210A",
|
|
281
|
-
borderBottom: "3px solid " + S,
|
|
282
|
-
opacity: "100%",
|
|
283
|
-
mb: "-1px"
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
disableIndicator: !0,
|
|
287
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
288
|
-
l,
|
|
289
|
-
{
|
|
290
|
-
sx: {
|
|
291
|
-
display: "flex",
|
|
292
|
-
justifyContent: "center",
|
|
293
|
-
alignItems: "center",
|
|
294
|
-
gap: "8px"
|
|
295
|
-
},
|
|
296
|
-
children: [
|
|
297
|
-
/* @__PURE__ */ e.jsx(
|
|
298
|
-
"img",
|
|
299
|
-
{
|
|
300
|
-
src: K,
|
|
301
|
-
alt: "answers-icon",
|
|
302
|
-
style: {
|
|
303
|
-
display: "flex",
|
|
304
|
-
width: "24px",
|
|
305
|
-
height: "24px",
|
|
306
|
-
justifyContent: "center",
|
|
307
|
-
alignItems: "center",
|
|
308
|
-
filter: o || n.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
),
|
|
312
|
-
/* @__PURE__ */ e.jsx(
|
|
313
|
-
s,
|
|
314
|
-
{
|
|
315
|
-
sx: {
|
|
316
|
-
color: g,
|
|
317
|
-
fontFamily: u,
|
|
318
|
-
fontSize: "1em",
|
|
319
|
-
fontStyle: "normal",
|
|
320
|
-
fontWeight: 500,
|
|
321
|
-
lineHeight: "24px",
|
|
322
|
-
letterSpacing: "0.4px",
|
|
323
|
-
textTransform: "uppercase"
|
|
324
|
-
},
|
|
325
|
-
children: x("classicQuiz.results")
|
|
326
|
-
}
|
|
327
|
-
)
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
)
|
|
331
|
-
}
|
|
332
|
-
),
|
|
333
|
-
/* @__PURE__ */ e.jsx(
|
|
334
|
-
w,
|
|
335
|
-
{
|
|
336
|
-
sx: {
|
|
337
|
-
display: "flex",
|
|
338
|
-
flexDirection: "row",
|
|
339
|
-
justifyContent: "center",
|
|
340
|
-
alignItems: "center",
|
|
341
|
-
flex: p ? "0 0 auto" : 1,
|
|
342
|
-
width: p ? "100%" : "auto",
|
|
343
|
-
borderBottom: "1px solid " + b,
|
|
344
|
-
opacity: "60%",
|
|
345
|
-
py: "12px",
|
|
346
|
-
px: "16px",
|
|
347
|
-
gap: "8px",
|
|
348
|
-
"&:not(.Mui-selected):hover": {
|
|
349
|
-
bgcolor: o ? "#FAFAFA14" : "#2121210A"
|
|
350
|
-
},
|
|
351
|
-
[`&.${z.selected}`]: {
|
|
352
|
-
bgcolor: o ? "#FAFAFA14" : "#2121210A",
|
|
353
|
-
borderBottom: "3px solid " + S,
|
|
354
|
-
opacity: "100%",
|
|
355
|
-
mb: "-1px"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
disableIndicator: !0,
|
|
359
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
360
|
-
l,
|
|
361
|
-
{
|
|
362
|
-
sx: {
|
|
363
|
-
display: "flex",
|
|
364
|
-
justifyContent: "center",
|
|
365
|
-
alignItems: "center",
|
|
366
|
-
gap: "8px"
|
|
367
|
-
},
|
|
368
|
-
children: [
|
|
369
|
-
/* @__PURE__ */ e.jsx(
|
|
370
|
-
"img",
|
|
371
|
-
{
|
|
372
|
-
src: J,
|
|
373
|
-
alt: "answers-icon",
|
|
374
|
-
style: {
|
|
375
|
-
display: "flex",
|
|
376
|
-
width: "24px",
|
|
377
|
-
height: "24px",
|
|
378
|
-
justifyContent: "center",
|
|
379
|
-
alignItems: "center",
|
|
380
|
-
filter: o || n.mode == "dark" ? "brightness(0) invert(1)" : "none"
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
),
|
|
384
|
-
/* @__PURE__ */ e.jsx(
|
|
385
|
-
s,
|
|
386
|
-
{
|
|
387
|
-
sx: {
|
|
388
|
-
color: g,
|
|
389
|
-
fontFamily: u,
|
|
390
|
-
fontSize: "1em",
|
|
391
|
-
fontStyle: "normal",
|
|
392
|
-
fontWeight: 500,
|
|
393
|
-
lineHeight: "24px",
|
|
394
|
-
letterSpacing: "0.4px",
|
|
395
|
-
textTransform: "uppercase"
|
|
396
|
-
},
|
|
397
|
-
children: x("classicQuiz.answers")
|
|
398
|
-
}
|
|
399
|
-
)
|
|
400
|
-
]
|
|
401
|
-
}
|
|
402
|
-
)
|
|
403
|
-
}
|
|
404
|
-
)
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
),
|
|
408
|
-
d === 0 && /* @__PURE__ */ e.jsx(C, { value: 0, sx: { ...W, fontSize: "1em" }, children: B }),
|
|
409
|
-
d === 1 && /* @__PURE__ */ e.jsx(
|
|
410
|
-
C,
|
|
411
|
-
{
|
|
412
|
-
value: 1,
|
|
413
|
-
sx: {
|
|
414
|
-
overflowY: "auto",
|
|
415
|
-
maxHeight: { md: "450px" },
|
|
416
|
-
fontSize: "1em",
|
|
417
|
-
display: "flex",
|
|
418
|
-
flexDirection: "column",
|
|
419
|
-
p: y.lg
|
|
420
|
-
},
|
|
421
|
-
children: /* @__PURE__ */ e.jsx(
|
|
422
|
-
l,
|
|
423
|
-
{
|
|
424
|
-
sx: {
|
|
425
|
-
display: "flex",
|
|
426
|
-
flexDirection: "column",
|
|
427
|
-
justifyContent: "center",
|
|
428
|
-
alignItems: "center",
|
|
429
|
-
gap: "16px",
|
|
430
|
-
alignSelf: "stretch"
|
|
431
|
-
},
|
|
432
|
-
children: H.map((r, f) => M(r, f))
|
|
433
|
-
}
|
|
434
|
-
)
|
|
435
|
-
}
|
|
436
|
-
)
|
|
437
|
-
]
|
|
438
|
-
}
|
|
439
|
-
) });
|
|
440
|
-
};
|
|
441
|
-
export {
|
|
442
|
-
ae as default
|
|
443
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as u } from "@mui/joy";
|
|
3
|
-
import { getSpacing as g, useInternalTheme as f } from "../../../../common/src/functions/theme.js";
|
|
4
|
-
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
const I = (o) => {
|
|
10
|
-
const d = () => {
|
|
11
|
-
const e = f(), m = e.customRadius.light.full, h = o.classicQuiz.questionsCount;
|
|
12
|
-
return Array.from({ length: h }, (x, i) => {
|
|
13
|
-
const s = i + 1;
|
|
14
|
-
let t, r;
|
|
15
|
-
if (s < o.currentQuestion) {
|
|
16
|
-
const l = o.userParticipation.find(
|
|
17
|
-
(c) => c.questionId === o.classicQuiz.questions[i].questionId
|
|
18
|
-
);
|
|
19
|
-
if (l) {
|
|
20
|
-
const n = o.classicQuiz.questions[i].options.find(
|
|
21
|
-
(p) => p.optionId === l.optionId
|
|
22
|
-
);
|
|
23
|
-
n != null && n.correct ? (t = e.colorSchemes.light.palette.success.plainColor, r = e.colorSchemes.light.palette.success.outlinedBorder) : (t = e.colorSchemes.light.palette.danger.plainColor, r = e.colorSchemes.light.palette.danger.outlinedBorder);
|
|
24
|
-
} else
|
|
25
|
-
t = e.colorSchemes.light.secondaryContainer, r = e.colorSchemes.light.secondaryContainer;
|
|
26
|
-
} else s === o.currentQuestion ? (t = o.brandingPrimaryColor || e.colorSchemes.light.palette.primary.plainColor, r = o.brandingPrimaryColor || e.colorSchemes.light.palette.primary.outlinedBorder) : (t = e.colorSchemes.light.secondaryContainer, r = e.colorSchemes.light.outlineEnabledBorder);
|
|
27
|
-
return /* @__PURE__ */ a.jsx(
|
|
28
|
-
u,
|
|
29
|
-
{
|
|
30
|
-
sx: {
|
|
31
|
-
maxWidth: "82.67px",
|
|
32
|
-
width: "100%",
|
|
33
|
-
height: "8px",
|
|
34
|
-
borderRadius: m,
|
|
35
|
-
backgroundColor: t,
|
|
36
|
-
border: `1px solid ${r}`,
|
|
37
|
-
transition: "background-color 0.3s ease"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
`step-${s}`
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ a.jsx(
|
|
45
|
-
u,
|
|
46
|
-
{
|
|
47
|
-
sx: {
|
|
48
|
-
display: "flex",
|
|
49
|
-
justifyContent: "center",
|
|
50
|
-
gap: "8px",
|
|
51
|
-
py: g("xs")
|
|
52
|
-
},
|
|
53
|
-
children: d()
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
I as default
|
|
59
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useColors as t, useCornerRadius as h, useFontFamily as T } from "../../../../common/src/functions/theme.js";
|
|
3
|
-
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
4
|
-
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
5
|
-
import { Box as w, Typography as b } from "@mui/joy";
|
|
6
|
-
import { useCallback as S, useEffect as k } from "react";
|
|
7
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
import B from "../../../../../node_modules/@mui/icons-material/esm/TimerOutlined.js";
|
|
10
|
-
const E = (o) => {
|
|
11
|
-
let r;
|
|
12
|
-
const g = t().palette.danger.softBg, l = t().palette.danger.plainColor, d = t().palette.warning.softBg, s = t().palette.warning.plainColor, f = o.brandingPrimaryColor || t().palette.primary.plainColor, p = h().xl, x = T().secondary, m = t().palette.primary.onPrimary, y = {
|
|
13
|
-
"@keyframes pulse": {
|
|
14
|
-
"0%": {
|
|
15
|
-
transform: "scale(1)"
|
|
16
|
-
},
|
|
17
|
-
"50%": {
|
|
18
|
-
transform: "scale(1.05)"
|
|
19
|
-
},
|
|
20
|
-
"100%": {
|
|
21
|
-
transform: "scale(1)"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}, c = S(() => {
|
|
25
|
-
const n = o.quizType === "countdown" ? o.timer - 1 : o.timer + 1;
|
|
26
|
-
o.onTimeUpdate(n);
|
|
27
|
-
}, [o.onTimeUpdate]);
|
|
28
|
-
k(() => (o.isRunning && (r = setInterval(c, 1e3)), () => {
|
|
29
|
-
r && clearInterval(r);
|
|
30
|
-
}), [o.isRunning, c, o.timer]);
|
|
31
|
-
const C = (n) => {
|
|
32
|
-
const i = Math.floor(n / 60), u = n % 60;
|
|
33
|
-
return `${i < 10 ? "0" : ""}${i}:${u < 10 ? "0" : ""}${u}${i > 0 ? "m" : "s"}`;
|
|
34
|
-
}, e = () => {
|
|
35
|
-
if (o.quizType === "countdown") {
|
|
36
|
-
const n = o.timer / o.initialTime * 100;
|
|
37
|
-
if (n <= 30)
|
|
38
|
-
return {
|
|
39
|
-
background: g,
|
|
40
|
-
color: l,
|
|
41
|
-
iconColor: l,
|
|
42
|
-
animation: "pulse 1s infinite"
|
|
43
|
-
};
|
|
44
|
-
if (n <= 50)
|
|
45
|
-
return {
|
|
46
|
-
background: d,
|
|
47
|
-
color: s,
|
|
48
|
-
iconColor: s
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
background: f,
|
|
53
|
-
color: m,
|
|
54
|
-
iconColor: m
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
return /* @__PURE__ */ a.jsxs(
|
|
58
|
-
w,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
py: "8px",
|
|
62
|
-
pl: "12px",
|
|
63
|
-
pr: "16px",
|
|
64
|
-
display: "flex",
|
|
65
|
-
gap: "4px",
|
|
66
|
-
alignItems: "center",
|
|
67
|
-
bgcolor: e().background,
|
|
68
|
-
borderRadius: p,
|
|
69
|
-
maxWidth: "105px",
|
|
70
|
-
maxHeight: "40px",
|
|
71
|
-
transition: "all 0.3s ease",
|
|
72
|
-
animation: e().animation,
|
|
73
|
-
...y,
|
|
74
|
-
zIndex: 10
|
|
75
|
-
},
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ a.jsx(
|
|
78
|
-
B,
|
|
79
|
-
{
|
|
80
|
-
sx: {
|
|
81
|
-
width: "24px",
|
|
82
|
-
height: "24px",
|
|
83
|
-
color: e().iconColor,
|
|
84
|
-
transition: "color 0.3s ease"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
/* @__PURE__ */ a.jsx(
|
|
89
|
-
b,
|
|
90
|
-
{
|
|
91
|
-
sx: {
|
|
92
|
-
fontFamily: x,
|
|
93
|
-
fontWeight: 400,
|
|
94
|
-
fontSize: "1em",
|
|
95
|
-
lineHeight: "150%",
|
|
96
|
-
letterSpacing: "0.15px",
|
|
97
|
-
color: e().color,
|
|
98
|
-
transition: "color 0.3s ease"
|
|
99
|
-
},
|
|
100
|
-
children: C(o.timer)
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
export {
|
|
108
|
-
E as default
|
|
109
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { isMobile as n } from "../../../../../../common/src/functions/theme.js";
|
|
3
|
-
import { extractBrandingProperties as s } from "../../../../../../common/src/functions/helpers.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "@mui/joy";
|
|
7
|
-
import "react";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import c from "../../../../../../common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js";
|
|
10
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
-
import g from "../../../../assets/default-quiz-bg.png.js";
|
|
12
|
-
import u from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
13
|
-
import d from "../../../Shared/PresentedBy.js";
|
|
14
|
-
import { useTranslation as f } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
-
const U = (r) => {
|
|
16
|
-
const { t: e } = f(), o = n(), l = r.defaultImagePlaceholderUrl ? r.defaultImagePlaceholderUrl : o ? u : g, { brandingLogo: a } = s(
|
|
17
|
-
r.classicQuiz.branding || null
|
|
18
|
-
);
|
|
19
|
-
return /* @__PURE__ */ t.jsx(
|
|
20
|
-
c,
|
|
21
|
-
{
|
|
22
|
-
entity: r.classicQuiz,
|
|
23
|
-
headline: e("classicQuiz.headline"),
|
|
24
|
-
tryAgainButtonText: e("classicQuiz.buttons.tryAgain"),
|
|
25
|
-
defaultImagePlaceholderUrl: l,
|
|
26
|
-
isApiError: r.isApiError,
|
|
27
|
-
toggleTryAgain: r.toggleTryAgain,
|
|
28
|
-
renderPresentedBy: (m) => {
|
|
29
|
-
var i;
|
|
30
|
-
return /* @__PURE__ */ t.jsx(
|
|
31
|
-
d,
|
|
32
|
-
{
|
|
33
|
-
brandingLogo: a,
|
|
34
|
-
textColor: m,
|
|
35
|
-
label: ((i = r.classicQuiz.labels) == null ? void 0 : i.sponsor) || null
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
},
|
|
39
|
-
rulesDisplay: r.rulesDisplay
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
U as default
|
|
45
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "@mui/joy";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import m from "../../../../../../common/src/components/LeadCollection/OverlayLeadAfterCollection.js";
|
|
9
|
-
import r from "../../../../assets/default-quiz-bg.png.js";
|
|
10
|
-
import a from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
11
|
-
import l from "../../../Shared/PresentedBy.js";
|
|
12
|
-
import o from "../../../Leads/CollectLeadWrapper.js";
|
|
13
|
-
import { useTranslation as d } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
-
const P = (e) => {
|
|
15
|
-
const { t } = d();
|
|
16
|
-
return /* @__PURE__ */ i.jsx(
|
|
17
|
-
m,
|
|
18
|
-
{
|
|
19
|
-
entity: e.classicQuiz,
|
|
20
|
-
headline: t("classicQuiz.headline"),
|
|
21
|
-
sdk: e.sdk,
|
|
22
|
-
leads: e.leads,
|
|
23
|
-
defaultImagePlaceholder: e.defaultImagePlaceholderUrl || r,
|
|
24
|
-
mobileImagePlaceholder: a,
|
|
25
|
-
onLeadSubmitted: e.onLeadSubmitted,
|
|
26
|
-
isSubmitting: e.isSubmitting,
|
|
27
|
-
PresentedBy: l,
|
|
28
|
-
CollectLeadWrapper: o,
|
|
29
|
-
rulesDisplay: e.rulesDisplay
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
P as default
|
|
35
|
-
};
|