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,118 @@
|
|
|
1
|
+
import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Button as s, Typography as l, Box as k } from "@mui/joy";
|
|
3
|
+
import { isMobile as w, useFontFamily as v, useColors as a, useCornerRadius as D } 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 { WidgetTemplate as F } from "../../../../../../common/src/enums/enums.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import R from "../../../../../../common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js";
|
|
10
|
+
import { useImageVariant as _ } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
11
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
12
|
+
import M from "../../../Shared/MainCard.js";
|
|
13
|
+
import U from "../../../../assets/default-quiz-bg.png.js";
|
|
14
|
+
import E from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
15
|
+
import V from "../../../Shared/PresentedBy.js";
|
|
16
|
+
import { createStyles as W } from "./SplitSignIn.styles.js";
|
|
17
|
+
import { useTranslation as q } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
18
|
+
const rn = (n) => {
|
|
19
|
+
var m, c, g, u, d;
|
|
20
|
+
const r = w(), h = n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : r ? E : U, A = _(
|
|
21
|
+
{
|
|
22
|
+
images: n.classicQuiz.images,
|
|
23
|
+
imagePlaceholder: h
|
|
24
|
+
},
|
|
25
|
+
F.SPLIT
|
|
26
|
+
), { t: o } = q(), e = ((m = n.classicQuiz.branding) == null ? void 0 : m.colors) || null, j = r ? ((c = n.classicQuiz.branding) == null ? void 0 : c.images.mobileLogo) || ((g = n.classicQuiz.branding) == null ? void 0 : g.images.mainLogo) || "" : ((u = n.classicQuiz.branding) == null ? void 0 : u.images.mainLogo) || "", B = v().primary, L = a().textColor, z = D().xl, P = (e == null ? void 0 : e.primaryColor) || a().palette.primary.plainColor, Q = a().palette.primary.onPrimary, i = W({
|
|
27
|
+
fontFamilyPrimary: B,
|
|
28
|
+
buttonRadius: z,
|
|
29
|
+
primaryColor: P,
|
|
30
|
+
onPrimaryColor: Q
|
|
31
|
+
}), S = () => {
|
|
32
|
+
var I, f, x, C;
|
|
33
|
+
return n.signInCTA ? (I = n.signInCTA) != null && I.component ? n.signInCTA.component : (f = n.signInCTA) != null && f.onClick ? /* @__PURE__ */ t.jsx(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
variant: "soft",
|
|
37
|
+
sx: {
|
|
38
|
+
...i.signInButton,
|
|
39
|
+
...i.pulseAnimation
|
|
40
|
+
},
|
|
41
|
+
onClick: n.signInCTA.onClick,
|
|
42
|
+
children: /* @__PURE__ */ t.jsx(l, { sx: i.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
43
|
+
}
|
|
44
|
+
) : (x = n.signInCTA) != null && x.url ? typeof window > "u" ? /* @__PURE__ */ t.jsx(
|
|
45
|
+
k,
|
|
46
|
+
{
|
|
47
|
+
component: "a",
|
|
48
|
+
href: n.signInCTA.url,
|
|
49
|
+
target: ((C = n.signInCTA) == null ? void 0 : C.target) || "_self",
|
|
50
|
+
sx: {
|
|
51
|
+
...i.signInButton,
|
|
52
|
+
...i.pulseAnimation,
|
|
53
|
+
textDecoration: "none",
|
|
54
|
+
display: "inline-flex",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
justifyContent: "center"
|
|
57
|
+
},
|
|
58
|
+
children: /* @__PURE__ */ t.jsx(l, { sx: i.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
59
|
+
}
|
|
60
|
+
) : /* @__PURE__ */ t.jsx(
|
|
61
|
+
s,
|
|
62
|
+
{
|
|
63
|
+
variant: "soft",
|
|
64
|
+
sx: {
|
|
65
|
+
...i.signInButton,
|
|
66
|
+
...i.pulseAnimation
|
|
67
|
+
},
|
|
68
|
+
onClick: () => {
|
|
69
|
+
var T, y, b;
|
|
70
|
+
((T = n.signInCTA) == null ? void 0 : T.target) === "_blank" ? window.open((y = n.signInCTA) == null ? void 0 : y.url, "_blank") : window.location.href = (b = n.signInCTA) == null ? void 0 : b.url;
|
|
71
|
+
},
|
|
72
|
+
children: /* @__PURE__ */ t.jsx(l, { sx: i.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ t.jsx(
|
|
75
|
+
s,
|
|
76
|
+
{
|
|
77
|
+
variant: "soft",
|
|
78
|
+
sx: {
|
|
79
|
+
...i.signInButton
|
|
80
|
+
},
|
|
81
|
+
disabled: !0,
|
|
82
|
+
children: /* @__PURE__ */ t.jsx(l, { sx: i.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
83
|
+
}
|
|
84
|
+
) : /* @__PURE__ */ t.jsx(
|
|
85
|
+
s,
|
|
86
|
+
{
|
|
87
|
+
variant: "soft",
|
|
88
|
+
sx: {
|
|
89
|
+
...i.signInButton
|
|
90
|
+
},
|
|
91
|
+
disabled: !0,
|
|
92
|
+
children: /* @__PURE__ */ t.jsx(l, { sx: i.signInButtonText, children: o("common.signIn") })
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
return /* @__PURE__ */ t.jsx(M, { brandingBorderColor: (e == null ? void 0 : e.borderColor) || null, children: /* @__PURE__ */ t.jsx(
|
|
97
|
+
R,
|
|
98
|
+
{
|
|
99
|
+
entity: n.classicQuiz,
|
|
100
|
+
headline: o("classicQuiz.headline"),
|
|
101
|
+
finalImage: A,
|
|
102
|
+
signInContent: S(),
|
|
103
|
+
brandingContent: /* @__PURE__ */ t.jsx(
|
|
104
|
+
V,
|
|
105
|
+
{
|
|
106
|
+
brandingLogo: j,
|
|
107
|
+
textColor: (e == null ? void 0 : e.contentColor) || L,
|
|
108
|
+
label: ((d = n.classicQuiz.labels) == null ? void 0 : d.sponsor) || null,
|
|
109
|
+
isCentered: r
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
rulesDisplay: n.rulesDisplay
|
|
113
|
+
}
|
|
114
|
+
) });
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
rn as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const o = (r) => ({
|
|
2
|
+
// Pulse animation for buttons
|
|
3
|
+
pulseAnimation: {
|
|
4
|
+
"@keyframes pulse": {
|
|
5
|
+
"0%": { transform: "scale(1)" },
|
|
6
|
+
"50%": { transform: "scale(1.05)" },
|
|
7
|
+
"100%": { transform: "scale(1)" }
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
// Sign in button
|
|
11
|
+
signInButton: {
|
|
12
|
+
borderRadius: r.buttonRadius,
|
|
13
|
+
py: "10px",
|
|
14
|
+
px: "16px",
|
|
15
|
+
bgcolor: r.primaryColor,
|
|
16
|
+
color: r.onPrimaryColor,
|
|
17
|
+
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
18
|
+
transform: "scale(1)",
|
|
19
|
+
alignSelf: "center",
|
|
20
|
+
"&:hover": {
|
|
21
|
+
bgcolor: r.primaryColor,
|
|
22
|
+
transform: "scale(1.02)"
|
|
23
|
+
},
|
|
24
|
+
"&:active": {
|
|
25
|
+
color: r.onPrimaryColor,
|
|
26
|
+
transform: "scale(0.98)"
|
|
27
|
+
},
|
|
28
|
+
"&:disabled": {
|
|
29
|
+
bgcolor: r.primaryColor,
|
|
30
|
+
color: r.onPrimaryColor,
|
|
31
|
+
opacity: "12%"
|
|
32
|
+
},
|
|
33
|
+
animation: "pulse 1s infinite",
|
|
34
|
+
fontSize: "0.9375em"
|
|
35
|
+
},
|
|
36
|
+
// Sign in button text
|
|
37
|
+
signInButtonText: {
|
|
38
|
+
fontFamily: r.fontFamilyPrimary,
|
|
39
|
+
fontWeight: 500,
|
|
40
|
+
fontSize: "0.9375em",
|
|
41
|
+
lineHeight: "24px",
|
|
42
|
+
letterSpacing: "0.46px",
|
|
43
|
+
textTransform: "uppercase",
|
|
44
|
+
color: r.onPrimaryColor,
|
|
45
|
+
gap: "8px",
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center"
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
o as createStyles
|
|
52
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { j as t } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import me from "react";
|
|
3
|
+
import { Box as n, AspectRatio as V, Typography as u, Button as de } from "@mui/joy";
|
|
4
|
+
import { useInternalTheme as xe, isMobile as ge, isLarge as he, useColors as a, useFontFamily as fe, useCornerRadius as M, useSpacingScale as ye } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import { hexToRgb as be } 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 { WidgetTemplate as Ce } from "../../../../../common/src/enums/enums.js";
|
|
9
|
+
import { useConstantContext as Qe } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
+
import { ConstantsContext as ze } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import je from "../../../../../common/src/components/Skeletons/Split/SplitSkeleton.js";
|
|
12
|
+
import { useImageUrl as Se } from "../../../../../common/src/hooks/useImageUrl.js";
|
|
13
|
+
import { useImageVariant as qe } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
14
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
15
|
+
import we from "../../Shared/Answers/Answers.js";
|
|
16
|
+
import Te from "../../Shared/Button.js";
|
|
17
|
+
import _ from "../../../../../../node_modules/@mui/icons-material/esm/ArrowRightAlt.js";
|
|
18
|
+
import Ie from "../../Shared/Stopwatch.js";
|
|
19
|
+
import Le from "../../Shared/MainCard.js";
|
|
20
|
+
import Be from "../../../assets/default-quiz-bg.png.js";
|
|
21
|
+
import Pe from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
22
|
+
import Ae from "../../Shared/PresentedBy.js";
|
|
23
|
+
import Re from "../../Leads/CollectLeadWrapper.js";
|
|
24
|
+
import { quizTypes as Ue } from "../../../constants/constants.js";
|
|
25
|
+
import { useEmbedCode as ke } from "../../../hooks/useEmbedCodeContainer.js";
|
|
26
|
+
import { createStyles as De } from "./SplitVariant.styles.js";
|
|
27
|
+
import { useTranslation as Fe } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
28
|
+
const ut = (e) => {
|
|
29
|
+
var h, f, y, b, C, Q, z, j, S, q, w, T, I, L, B, P, A, R, U, k, D, F;
|
|
30
|
+
const [G, $] = me.useState(
|
|
31
|
+
((h = e.leads) == null ? void 0 : h.position) === "before" && e.classicQuiz.authRequirement === "LEAD"
|
|
32
|
+
), { optionsLayout: H } = Qe(ze), J = xe(), m = ge(), d = he(), K = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : m ? Pe : Be, X = qe(
|
|
33
|
+
{
|
|
34
|
+
images: e.classicQuiz.images,
|
|
35
|
+
imagePlaceholder: K
|
|
36
|
+
},
|
|
37
|
+
Ce.SPLIT
|
|
38
|
+
), l = Se(e.question.images), { t: o } = Fe(), i = ((f = e.classicQuiz.branding) == null ? void 0 : f.colors) || null, c = m ? ((y = e.classicQuiz.branding) == null ? void 0 : y.images.mobileLogo) || ((b = e.classicQuiz.branding) == null ? void 0 : b.images.mainLogo) || "" : ((C = e.classicQuiz.branding) == null ? void 0 : C.images.mainLogo) || "", Y = ke(
|
|
39
|
+
e.question.embedCode,
|
|
40
|
+
e.applyFilterScreen
|
|
41
|
+
), Z = e.currentQuestion === e.classicQuiz.questionsCount && ((Q = e.leads) == null ? void 0 : Q.position) === "after" ? o("classicQuiz.buttons.continue") : e.currentQuestion === e.classicQuiz.questionsCount ? o("classicQuiz.buttons.finish") : o("classicQuiz.buttons.next"), p = (i == null ? void 0 : i.contentColor) || a().textColor, ee = "60%", te = fe().primary, ie = M().xl, se = (i == null ? void 0 : i.backgroundColor) || a().surfaceVariant, x = (i == null ? void 0 : i.primaryColor) || ((j = (z = a().palette) == null ? void 0 : z.primary) == null ? void 0 : j.plainColor), ne = (q = (S = a().palette) == null ? void 0 : S.primary) == null ? void 0 : q.onPrimary, oe = a().textColor, r = ye(), ae = M(), le = be(se || ""), s = De({
|
|
42
|
+
spacingScale: r,
|
|
43
|
+
borderRadius: ae,
|
|
44
|
+
fontFamilyPrimary: te,
|
|
45
|
+
secondaryColor: p,
|
|
46
|
+
opacity: ee,
|
|
47
|
+
buttonRadius: ie,
|
|
48
|
+
bgcolor: le,
|
|
49
|
+
primaryColor: x,
|
|
50
|
+
onPrimaryColor: ne,
|
|
51
|
+
textColor: oe
|
|
52
|
+
}), ce = () => {
|
|
53
|
+
$(!1);
|
|
54
|
+
}, g = (ue) => {
|
|
55
|
+
var W, N, O, v, E;
|
|
56
|
+
return /* @__PURE__ */ t.jsx(
|
|
57
|
+
Ae,
|
|
58
|
+
{
|
|
59
|
+
brandingLogo: c,
|
|
60
|
+
textColor: ue,
|
|
61
|
+
label: ((W = e.classicQuiz.labels) == null ? void 0 : W.sponsor) || null,
|
|
62
|
+
primaryUrl: (O = (N = e.classicQuiz.branding) == null ? void 0 : N.urls) == null ? void 0 : O.primaryUrl,
|
|
63
|
+
secondaryUrl: (E = (v = e.classicQuiz.branding) == null ? void 0 : v.urls) == null ? void 0 : E.secondaryUrl,
|
|
64
|
+
isCentered: !1
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}, re = () => /* @__PURE__ */ t.jsx(n, { sx: s.filterScreenCtaWrapper, children: /* @__PURE__ */ t.jsx(
|
|
68
|
+
de,
|
|
69
|
+
{
|
|
70
|
+
variant: "soft",
|
|
71
|
+
sx: {
|
|
72
|
+
...s.startButton,
|
|
73
|
+
...s.pulseAnimation
|
|
74
|
+
},
|
|
75
|
+
endDecorator: /* @__PURE__ */ t.jsx(_, {}),
|
|
76
|
+
onClick: e.startPlaying,
|
|
77
|
+
children: /* @__PURE__ */ t.jsx(u, { sx: s.startButtonText, children: o("classicQuiz.buttons.start") })
|
|
78
|
+
}
|
|
79
|
+
) });
|
|
80
|
+
return /* @__PURE__ */ t.jsxs(Le, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: [
|
|
81
|
+
/* @__PURE__ */ t.jsx(
|
|
82
|
+
je,
|
|
83
|
+
{
|
|
84
|
+
entity: e.classicQuiz,
|
|
85
|
+
headline: o("classicQuiz.headline"),
|
|
86
|
+
finalImage: X,
|
|
87
|
+
brandingLogo: c,
|
|
88
|
+
renderPresentedBy: g,
|
|
89
|
+
rulesDisplay: e.rulesDisplay,
|
|
90
|
+
children: /* @__PURE__ */ t.jsx(n, { sx: s.questionArea, children: /* @__PURE__ */ t.jsx(n, { sx: s.questionAreaContent, children: e.applyFilterScreen ? re() : G ? /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(n, { sx: s.leadContentContainer, children: /* @__PURE__ */ t.jsx(
|
|
91
|
+
Re,
|
|
92
|
+
{
|
|
93
|
+
sdk: e.sdk,
|
|
94
|
+
startGame: ce,
|
|
95
|
+
contentId: e.classicQuiz.id,
|
|
96
|
+
contentName: e.classicQuiz.title,
|
|
97
|
+
brandingColors: (w = e.classicQuiz.branding) == null ? void 0 : w.colors,
|
|
98
|
+
brandingUrls: (T = e.classicQuiz.branding) == null ? void 0 : T.urls,
|
|
99
|
+
campaignId: (I = e.leads) == null ? void 0 : I.campaignId,
|
|
100
|
+
campaignName: (L = e.leads) == null ? void 0 : L.campaignName,
|
|
101
|
+
fields: (B = e.leads) == null ? void 0 : B.fields,
|
|
102
|
+
leadTitle: (P = e.classicQuiz.labels) == null ? void 0 : P.leadTitle,
|
|
103
|
+
leadDescription: (A = e.classicQuiz.labels) == null ? void 0 : A.leadDescription,
|
|
104
|
+
leadCta: (R = e.classicQuiz.labels) == null ? void 0 : R.leadCta,
|
|
105
|
+
leadSuccessTitle: (U = e.classicQuiz.labels) == null ? void 0 : U.leadSuccessTitle,
|
|
106
|
+
leadSuccessDescription: (k = e.classicQuiz.labels) == null ? void 0 : k.leadSuccessDescription,
|
|
107
|
+
syncWithProfile: (D = e.leads) == null ? void 0 : D.syncWithProfile
|
|
108
|
+
}
|
|
109
|
+
) }) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
110
|
+
Ue.includes(
|
|
111
|
+
(F = e.classicQuiz.type) == null ? void 0 : F.toLocaleLowerCase()
|
|
112
|
+
) && /* @__PURE__ */ t.jsx(n, { sx: s.stopwatchContainer, children: /* @__PURE__ */ t.jsx(
|
|
113
|
+
Ie,
|
|
114
|
+
{
|
|
115
|
+
brandingPrimaryColor: (i == null ? void 0 : i.primaryColor) || null,
|
|
116
|
+
isRunning: e.isStopwatchRunning,
|
|
117
|
+
timer: e.stopwatchTime,
|
|
118
|
+
quizType: e.classicQuiz.type,
|
|
119
|
+
initialTime: e.classicQuiz.time || 10,
|
|
120
|
+
onTimeUpdate: e.onTimeUpdate
|
|
121
|
+
}
|
|
122
|
+
) }),
|
|
123
|
+
/* @__PURE__ */ t.jsxs(n, { sx: s.mainContentContainer, children: [
|
|
124
|
+
e.question.embedCode && /* @__PURE__ */ t.jsx(V, { ratio: "16/9", sx: s.aspectRatioContainer, children: /* @__PURE__ */ t.jsx(n, { ref: Y }) }),
|
|
125
|
+
!e.question.embedCode && l && /* @__PURE__ */ t.jsx(
|
|
126
|
+
V,
|
|
127
|
+
{
|
|
128
|
+
ratio: "16/9",
|
|
129
|
+
sx: s.questionImageContainer,
|
|
130
|
+
children: /* @__PURE__ */ t.jsx(n, { sx: s.questionImageBox, children: /* @__PURE__ */ t.jsx(
|
|
131
|
+
"img",
|
|
132
|
+
{
|
|
133
|
+
src: l,
|
|
134
|
+
alt: "Question illustration",
|
|
135
|
+
style: s.questionImage
|
|
136
|
+
}
|
|
137
|
+
) })
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ t.jsxs(n, { sx: s.questionSection, children: [
|
|
141
|
+
/* @__PURE__ */ t.jsxs(u, { level: "body-lg", sx: s.questionStepsText, children: [
|
|
142
|
+
e.currentQuestion,
|
|
143
|
+
"/",
|
|
144
|
+
e.classicQuiz.questionsCount
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ t.jsx(u, { level: "body-lg", sx: s.questionText, children: e.question.question })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ t.jsx(
|
|
149
|
+
we,
|
|
150
|
+
{
|
|
151
|
+
options: e.question.options || [],
|
|
152
|
+
answerQuestion: e.answerQuestion,
|
|
153
|
+
selectedOption: e.selectedOption,
|
|
154
|
+
showAnswer: e.showAnswer,
|
|
155
|
+
optionsLayout: d ? "column" : H ?? "twoByTwo",
|
|
156
|
+
questionImage: l,
|
|
157
|
+
brandingColors: i
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ t.jsx(n, { sx: s.buttonFooterContainer, children: /* @__PURE__ */ t.jsx(
|
|
161
|
+
Te,
|
|
162
|
+
{
|
|
163
|
+
showAnswer: e.showAnswer,
|
|
164
|
+
selectedOption: e.selectedOption,
|
|
165
|
+
endDecorator: /* @__PURE__ */ t.jsx(_, {}),
|
|
166
|
+
label: Z,
|
|
167
|
+
buttonColor: x,
|
|
168
|
+
isSubmitting: e.isSubmitting,
|
|
169
|
+
onClick: e.handleNext
|
|
170
|
+
}
|
|
171
|
+
) })
|
|
172
|
+
] })
|
|
173
|
+
] }) }) })
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
c && d && /* @__PURE__ */ t.jsx(n, { sx: { mb: r.lg, px: r.lg }, children: g(
|
|
177
|
+
(i == null ? void 0 : i.contentColor) || J.colorSchemes.dark.textColor
|
|
178
|
+
) })
|
|
179
|
+
] });
|
|
180
|
+
};
|
|
181
|
+
export {
|
|
182
|
+
ut as default
|
|
183
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
// Pulse animation for buttons
|
|
3
|
+
pulseAnimation: {
|
|
4
|
+
"@keyframes pulse": {
|
|
5
|
+
"0%": { transform: "scale(1)" },
|
|
6
|
+
"50%": { transform: "scale(1.05)" },
|
|
7
|
+
"100%": { transform: "scale(1)" }
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
// Filter screen CTA wrapper
|
|
11
|
+
filterScreenCtaWrapper: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
gap: e.spacingScale["2xl"]
|
|
17
|
+
},
|
|
18
|
+
// Start button (filter screen)
|
|
19
|
+
startButton: {
|
|
20
|
+
borderRadius: e.buttonRadius,
|
|
21
|
+
bgcolor: e.primaryColor,
|
|
22
|
+
color: e.onPrimaryColor,
|
|
23
|
+
"&:hover": {
|
|
24
|
+
bgcolor: e.primaryColor
|
|
25
|
+
},
|
|
26
|
+
"&:active": {
|
|
27
|
+
color: e.onPrimaryColor
|
|
28
|
+
},
|
|
29
|
+
animation: "pulse 1s infinite",
|
|
30
|
+
fontSize: "0.9375em",
|
|
31
|
+
py: "10px",
|
|
32
|
+
pr: "12px",
|
|
33
|
+
pl: "16px",
|
|
34
|
+
"--Icon-color": e.onPrimaryColor
|
|
35
|
+
},
|
|
36
|
+
// Start button text
|
|
37
|
+
startButtonText: {
|
|
38
|
+
fontFamily: e.fontFamilyPrimary,
|
|
39
|
+
fontWeight: 500,
|
|
40
|
+
fontSize: "0.9375em",
|
|
41
|
+
lineHeight: "24px",
|
|
42
|
+
letterSpacing: "0.46px",
|
|
43
|
+
textTransform: "uppercase",
|
|
44
|
+
color: e.onPrimaryColor,
|
|
45
|
+
gap: "8px",
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center"
|
|
48
|
+
},
|
|
49
|
+
// Question area
|
|
50
|
+
questionArea: {
|
|
51
|
+
width: "100%",
|
|
52
|
+
justifyContent: "center",
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column"
|
|
55
|
+
},
|
|
56
|
+
// Question area content wrapper
|
|
57
|
+
questionAreaContent: {
|
|
58
|
+
p: e.spacingScale.lg,
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: "column",
|
|
61
|
+
justifyContent: "center",
|
|
62
|
+
gap: "16px"
|
|
63
|
+
},
|
|
64
|
+
// Stopwatch container
|
|
65
|
+
stopwatchContainer: {
|
|
66
|
+
display: "flex",
|
|
67
|
+
justifyContent: "center"
|
|
68
|
+
},
|
|
69
|
+
// Lead content container (filter screen)
|
|
70
|
+
leadContentContainer: {
|
|
71
|
+
p: e.spacingScale.md,
|
|
72
|
+
gap: e.spacingScale.md,
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexDirection: "column",
|
|
75
|
+
backdropFilter: "blur(4px)",
|
|
76
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
77
|
+
borderRadius: e.borderRadius.sm
|
|
78
|
+
},
|
|
79
|
+
// Main content container
|
|
80
|
+
mainContentContainer: {
|
|
81
|
+
p: e.spacingScale.md,
|
|
82
|
+
gap: e.spacingScale.md,
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
backdropFilter: "blur(4px)",
|
|
86
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
87
|
+
borderRadius: e.borderRadius.sm
|
|
88
|
+
},
|
|
89
|
+
// Aspect ratio container for embed/image
|
|
90
|
+
aspectRatioContainer: {
|
|
91
|
+
borderRadius: e.borderRadius.sm
|
|
92
|
+
},
|
|
93
|
+
// Question image container
|
|
94
|
+
questionImageContainer: {
|
|
95
|
+
overflow: "hidden",
|
|
96
|
+
borderRadius: e.borderRadius.sm
|
|
97
|
+
},
|
|
98
|
+
// Question image box
|
|
99
|
+
questionImageBox: {
|
|
100
|
+
borderRadius: e.borderRadius.sm,
|
|
101
|
+
overflow: "hidden",
|
|
102
|
+
height: "auto"
|
|
103
|
+
},
|
|
104
|
+
// Question image
|
|
105
|
+
questionImage: {
|
|
106
|
+
width: "100%",
|
|
107
|
+
height: "100%",
|
|
108
|
+
objectFit: "cover"
|
|
109
|
+
},
|
|
110
|
+
// Question section
|
|
111
|
+
questionSection: {
|
|
112
|
+
display: "block",
|
|
113
|
+
gap: "8px"
|
|
114
|
+
},
|
|
115
|
+
// Question steps typography
|
|
116
|
+
questionStepsText: {
|
|
117
|
+
fontFamily: e.fontFamilyPrimary,
|
|
118
|
+
lineHeight: "150%",
|
|
119
|
+
letterSpacing: "0.15px",
|
|
120
|
+
fontWeight: 500,
|
|
121
|
+
fontSize: "1.25em",
|
|
122
|
+
textAlign: "center",
|
|
123
|
+
color: e.secondaryColor,
|
|
124
|
+
opacity: e.opacity
|
|
125
|
+
},
|
|
126
|
+
// Question text
|
|
127
|
+
questionText: {
|
|
128
|
+
fontFamily: e.fontFamilyPrimary,
|
|
129
|
+
lineHeight: "150%",
|
|
130
|
+
letterSpacing: "0.15px",
|
|
131
|
+
fontWeight: 500,
|
|
132
|
+
fontSize: "1.25em",
|
|
133
|
+
textAlign: "center",
|
|
134
|
+
color: e.textColor
|
|
135
|
+
},
|
|
136
|
+
// Button and footer container
|
|
137
|
+
buttonFooterContainer: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
flexDirection: "column",
|
|
140
|
+
gap: e.spacingScale.lg
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
export {
|
|
144
|
+
t as createStyles
|
|
145
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { isMobile as g } 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 "@mui/joy";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import d from "../../../../../../common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import u from "../../../Shared/MainCard.js";
|
|
11
|
+
import b from "../../../Shared/PresentedBy.js";
|
|
12
|
+
import { useTranslation as f } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
+
const S = (i) => {
|
|
14
|
+
var e, t, l, n;
|
|
15
|
+
const r = ((e = i.classicQuiz.branding) == null ? void 0 : e.colors) || null, m = g() ? ((t = i.classicQuiz.branding) == null ? void 0 : t.images.mobileLogo) || ((l = i.classicQuiz.branding) == null ? void 0 : l.images.mainLogo) || "" : ((n = i.classicQuiz.branding) == null ? void 0 : n.images.mainLogo) || "", { t: a } = f();
|
|
16
|
+
return /* @__PURE__ */ o.jsx(u, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ o.jsx(
|
|
17
|
+
d,
|
|
18
|
+
{
|
|
19
|
+
entity: i.classicQuiz,
|
|
20
|
+
headline: a("classicQuiz.headline"),
|
|
21
|
+
tryAgainButtonText: a("classicQuiz.buttons.tryAgain"),
|
|
22
|
+
defaultImagePlaceholderUrl: i.defaultImagePlaceholderUrl,
|
|
23
|
+
imagePosition: i.imagePosition || "left",
|
|
24
|
+
isApiError: i.isApiError,
|
|
25
|
+
toggleTryAgain: i.toggleTryAgain,
|
|
26
|
+
renderPresentedBy: (c) => {
|
|
27
|
+
var s;
|
|
28
|
+
return /* @__PURE__ */ o.jsx(
|
|
29
|
+
b,
|
|
30
|
+
{
|
|
31
|
+
brandingLogo: m,
|
|
32
|
+
textColor: c,
|
|
33
|
+
label: ((s = i.classicQuiz.labels) == null ? void 0 : s.sponsor) || null
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
rulesDisplay: i.rulesDisplay
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
S as default
|
|
43
|
+
};
|
|
@@ -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 a from "../../../../../../common/src/components/LeadCollection/StandardLeadAfterCollection.js";
|
|
9
|
+
import r from "../../../Shared/MainCard.js";
|
|
10
|
+
import o from "../../../Shared/PresentedBy.js";
|
|
11
|
+
import m from "../../../Leads/CollectLeadWrapper.js";
|
|
12
|
+
import { useTranslation as l } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
+
const p = (t) => {
|
|
14
|
+
const { t: e } = l();
|
|
15
|
+
return /* @__PURE__ */ i.jsx(
|
|
16
|
+
a,
|
|
17
|
+
{
|
|
18
|
+
entity: t.classicQuiz,
|
|
19
|
+
headline: e("classicQuiz.headline"),
|
|
20
|
+
sdk: t.sdk,
|
|
21
|
+
leads: t.leads,
|
|
22
|
+
defaultImagePlaceholderUrl: t.defaultImagePlaceholderUrl,
|
|
23
|
+
imagePosition: t.imagePosition,
|
|
24
|
+
onLeadSubmitted: t.onLeadSubmitted,
|
|
25
|
+
isSubmitting: t.isSubmitting,
|
|
26
|
+
MainCard: r,
|
|
27
|
+
PresentedBy: o,
|
|
28
|
+
CollectLeadWrapper: m,
|
|
29
|
+
rulesDisplay: t.rulesDisplay
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
p as default
|
|
35
|
+
};
|