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