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