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
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
// Score state wrapper content
|
|
3
|
+
scoreStateWrapperContent: {
|
|
4
|
+
display: "flex",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
gap: "40px",
|
|
7
|
+
p: e.spacingScale.xl,
|
|
8
|
+
alignItems: e.isMobile ? "center" : "stretch"
|
|
9
|
+
},
|
|
10
|
+
// Main content wrapper
|
|
11
|
+
mainContentWrapper: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
gap: "24px",
|
|
15
|
+
zIndex: 10,
|
|
16
|
+
alignItems: e.isMobile ? "center" : "stretch"
|
|
17
|
+
},
|
|
18
|
+
// Score container with backdrop
|
|
19
|
+
scoreContainer: {
|
|
20
|
+
borderRadius: e.mdBorderRadius,
|
|
21
|
+
p: e.spacingScale.md,
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
alignSelf: "stretch",
|
|
26
|
+
gap: e.spacingScale.md,
|
|
27
|
+
backdropFilter: "blur(4px)",
|
|
28
|
+
position: "relative",
|
|
29
|
+
"&::before": {
|
|
30
|
+
content: '""',
|
|
31
|
+
position: "absolute",
|
|
32
|
+
top: 0,
|
|
33
|
+
left: 0,
|
|
34
|
+
right: 0,
|
|
35
|
+
bottom: 0,
|
|
36
|
+
backgroundColor: e.contentBgColor,
|
|
37
|
+
opacity: 0.25,
|
|
38
|
+
borderRadius: "inherit",
|
|
39
|
+
zIndex: 0,
|
|
40
|
+
backdropFilter: "blur(4px)"
|
|
41
|
+
},
|
|
42
|
+
"& > *": {
|
|
43
|
+
position: "relative",
|
|
44
|
+
zIndex: 1
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// Score content wrapper
|
|
48
|
+
scoreContentWrapper: {
|
|
49
|
+
display: "flex",
|
|
50
|
+
flexDirection: e.isMobile ? "column" : "row",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
alignSelf: "stretch"
|
|
54
|
+
},
|
|
55
|
+
// Score section
|
|
56
|
+
scoreSection: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
py: e.spacingScale.xs,
|
|
59
|
+
gap: e.spacingScale.md,
|
|
60
|
+
justifyContent: "center",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
flex: "1 0 0"
|
|
63
|
+
},
|
|
64
|
+
// Score section wrapper
|
|
65
|
+
scoreSectionWrapper: {
|
|
66
|
+
display: "flex",
|
|
67
|
+
minWidth: "200px",
|
|
68
|
+
p: e.spacingScale.xs,
|
|
69
|
+
justifyContent: "center",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
gap: e.spacingScale.md,
|
|
72
|
+
flex: "1 0 0",
|
|
73
|
+
alignSelf: "stretch",
|
|
74
|
+
flexDirection: e.isMobile ? "column" : "row"
|
|
75
|
+
},
|
|
76
|
+
// Achievement badge container
|
|
77
|
+
achievementBadgeContainer: {
|
|
78
|
+
display: "flex",
|
|
79
|
+
width: e.isMobile ? "172px" : "auto",
|
|
80
|
+
height: e.isMobile ? "160px" : "auto",
|
|
81
|
+
flexDirection: "column",
|
|
82
|
+
justifyContent: "center",
|
|
83
|
+
alignItems: "center",
|
|
84
|
+
position: "relative",
|
|
85
|
+
my: e.isMobile ? 0 : e.spacingScale.lg
|
|
86
|
+
},
|
|
87
|
+
// Hexagon background
|
|
88
|
+
hexagonBackground: {
|
|
89
|
+
width: "160px",
|
|
90
|
+
height: "160px",
|
|
91
|
+
position: "absolute",
|
|
92
|
+
top: "55%",
|
|
93
|
+
left: "50%",
|
|
94
|
+
transform: "translate(-50%, -50%)"
|
|
95
|
+
},
|
|
96
|
+
// Achievement emoji
|
|
97
|
+
achievementEmoji: {
|
|
98
|
+
maxWidth: "80px",
|
|
99
|
+
maxHeight: "80px",
|
|
100
|
+
position: "relative"
|
|
101
|
+
},
|
|
102
|
+
// Text section
|
|
103
|
+
textSection: {
|
|
104
|
+
display: "flex",
|
|
105
|
+
flexDirection: "column",
|
|
106
|
+
alignItems: "center",
|
|
107
|
+
gap: e.spacingScale.xs
|
|
108
|
+
},
|
|
109
|
+
// Congratulations text
|
|
110
|
+
congratulationsText: {
|
|
111
|
+
color: e.textPrimary,
|
|
112
|
+
textAlign: "center",
|
|
113
|
+
fontFamily: e.fontFamilyPrimary,
|
|
114
|
+
fontSize: "1.5em",
|
|
115
|
+
fontStyle: "normal",
|
|
116
|
+
fontWeight: 400,
|
|
117
|
+
lineHeight: "133.4%",
|
|
118
|
+
px: 2
|
|
119
|
+
},
|
|
120
|
+
// Score numbers container
|
|
121
|
+
scoreNumbersContainer: {
|
|
122
|
+
display: "flex",
|
|
123
|
+
alignItems: "center",
|
|
124
|
+
gap: "4px"
|
|
125
|
+
},
|
|
126
|
+
// Score numbers wrapper
|
|
127
|
+
scoreNumbersWrapper: {
|
|
128
|
+
display: "flex",
|
|
129
|
+
alignItems: "flex-end",
|
|
130
|
+
gap: "4px"
|
|
131
|
+
},
|
|
132
|
+
// Correct score text
|
|
133
|
+
correctScoreText: {
|
|
134
|
+
textAlign: "center",
|
|
135
|
+
color: e.scorePercentage > 30 ? e.successColor : e.dangerColor,
|
|
136
|
+
fontFamily: e.fontFamilyPrimary,
|
|
137
|
+
fontSize: "3.75em",
|
|
138
|
+
fontStyle: "normal",
|
|
139
|
+
fontWeight: 500,
|
|
140
|
+
lineHeight: "120%",
|
|
141
|
+
letterSpacing: "-0.5px"
|
|
142
|
+
},
|
|
143
|
+
// Total score text
|
|
144
|
+
totalScoreText: {
|
|
145
|
+
textAlign: "center",
|
|
146
|
+
color: e.scorePercentage > 30 ? e.successColor : e.dangerColor,
|
|
147
|
+
fontFamily: e.fontFamilyPrimary,
|
|
148
|
+
fontSize: "3.75em",
|
|
149
|
+
fontStyle: "normal",
|
|
150
|
+
fontWeight: 500,
|
|
151
|
+
lineHeight: "120%",
|
|
152
|
+
letterSpacing: "-0.5px"
|
|
153
|
+
},
|
|
154
|
+
// Time text
|
|
155
|
+
timeText: {
|
|
156
|
+
textAlign: "center",
|
|
157
|
+
color: e.textPrimary,
|
|
158
|
+
fontFamily: e.fontFamilySecondary,
|
|
159
|
+
fontSize: "0.875em",
|
|
160
|
+
fontStyle: "normal",
|
|
161
|
+
fontWeight: 700,
|
|
162
|
+
lineHeight: "143%",
|
|
163
|
+
letterSpacing: "0.024px"
|
|
164
|
+
},
|
|
165
|
+
// Points text
|
|
166
|
+
pointsText: {
|
|
167
|
+
textAlign: "center",
|
|
168
|
+
color: e.textPrimary,
|
|
169
|
+
fontFamily: e.fontFamilyPrimary,
|
|
170
|
+
fontSize: "1.25em",
|
|
171
|
+
fontStyle: "normal",
|
|
172
|
+
fontWeight: 500,
|
|
173
|
+
lineHeight: "120%",
|
|
174
|
+
letterSpacing: "0.15px"
|
|
175
|
+
},
|
|
176
|
+
// CTA section
|
|
177
|
+
ctaSection: {
|
|
178
|
+
display: "flex",
|
|
179
|
+
py: e.spacingScale.xs,
|
|
180
|
+
justifyContent: "center",
|
|
181
|
+
alignItems: "center",
|
|
182
|
+
gap: "24px",
|
|
183
|
+
flex: "1 0 0"
|
|
184
|
+
},
|
|
185
|
+
// CTA content wrapper
|
|
186
|
+
ctaContentWrapper: {
|
|
187
|
+
display: "flex",
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
justifyContent: "center",
|
|
190
|
+
alignItems: "center",
|
|
191
|
+
gap: e.spacingScale.md,
|
|
192
|
+
flex: "1 0 0"
|
|
193
|
+
},
|
|
194
|
+
// Thanks text
|
|
195
|
+
thanksText: {
|
|
196
|
+
color: e.textPrimary,
|
|
197
|
+
textAlign: "center",
|
|
198
|
+
fontFamily: e.fontFamilyPrimary,
|
|
199
|
+
fontSize: "1.25em",
|
|
200
|
+
fontStyle: "normal",
|
|
201
|
+
fontWeight: 500,
|
|
202
|
+
lineHeight: "120%",
|
|
203
|
+
letterSpacing: "0.15px"
|
|
204
|
+
},
|
|
205
|
+
// Buttons container
|
|
206
|
+
buttonsContainer: {
|
|
207
|
+
display: "flex",
|
|
208
|
+
flexDirection: "column",
|
|
209
|
+
gap: e.spacingScale.md
|
|
210
|
+
},
|
|
211
|
+
// Play again button
|
|
212
|
+
playAgainButton: {
|
|
213
|
+
display: "flex",
|
|
214
|
+
minHeight: "48px",
|
|
215
|
+
py: "12px",
|
|
216
|
+
pr: "24px",
|
|
217
|
+
pl: "16px",
|
|
218
|
+
flexDirection: "column",
|
|
219
|
+
justifyContent: "center",
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
gap: "8px",
|
|
222
|
+
borderRadius: e.xlBorderRadius,
|
|
223
|
+
bgcolor: e.onSurfaceColor,
|
|
224
|
+
"&:hover": {
|
|
225
|
+
bgcolor: e.onSurfaceColor,
|
|
226
|
+
opacity: 0.9
|
|
227
|
+
},
|
|
228
|
+
fontSize: "0.9375em"
|
|
229
|
+
},
|
|
230
|
+
// Play again button content
|
|
231
|
+
playAgainButtonContent: {
|
|
232
|
+
display: "flex",
|
|
233
|
+
justifyContent: "center",
|
|
234
|
+
alignItems: "center",
|
|
235
|
+
gap: "8px",
|
|
236
|
+
alignSelf: "stretch"
|
|
237
|
+
},
|
|
238
|
+
// Play again icon
|
|
239
|
+
playAgainIcon: {
|
|
240
|
+
display: "flex",
|
|
241
|
+
width: "24px",
|
|
242
|
+
height: "24px",
|
|
243
|
+
justifyContent: "center",
|
|
244
|
+
alignItems: "center",
|
|
245
|
+
color: e.textPrimary
|
|
246
|
+
},
|
|
247
|
+
// Play again text
|
|
248
|
+
playAgainText: {
|
|
249
|
+
color: e.textPrimary,
|
|
250
|
+
textAlign: "center",
|
|
251
|
+
fontFamily: e.fontFamilyPrimary,
|
|
252
|
+
fontSize: "0.9375em",
|
|
253
|
+
fontStyle: "normal",
|
|
254
|
+
fontWeight: 500,
|
|
255
|
+
lineHeight: "24px",
|
|
256
|
+
letterSpacing: "0.46px",
|
|
257
|
+
textTransform: "uppercase"
|
|
258
|
+
},
|
|
259
|
+
// Share button
|
|
260
|
+
shareButton: {
|
|
261
|
+
display: "flex",
|
|
262
|
+
minHeight: "48px",
|
|
263
|
+
py: "12px",
|
|
264
|
+
pr: "24px",
|
|
265
|
+
pl: "16px",
|
|
266
|
+
flexDirection: "column",
|
|
267
|
+
justifyContent: "center",
|
|
268
|
+
alignItems: "center",
|
|
269
|
+
gap: "8px",
|
|
270
|
+
borderRadius: e.xlBorderRadius,
|
|
271
|
+
bgcolor: e.primaryColor,
|
|
272
|
+
"&:hover": {
|
|
273
|
+
bgcolor: e.primaryColor,
|
|
274
|
+
opacity: 0.9
|
|
275
|
+
},
|
|
276
|
+
fontSize: "0.9375em"
|
|
277
|
+
},
|
|
278
|
+
// Share button content
|
|
279
|
+
shareButtonContent: {
|
|
280
|
+
display: "flex",
|
|
281
|
+
justifyContent: "center",
|
|
282
|
+
alignItems: "center",
|
|
283
|
+
gap: "8px",
|
|
284
|
+
alignSelf: "stretch"
|
|
285
|
+
},
|
|
286
|
+
// Share icon
|
|
287
|
+
shareIcon: {
|
|
288
|
+
display: "flex",
|
|
289
|
+
width: "24px",
|
|
290
|
+
height: "24px",
|
|
291
|
+
justifyContent: "center",
|
|
292
|
+
alignItems: "center",
|
|
293
|
+
color: e.onPrimaryColor
|
|
294
|
+
},
|
|
295
|
+
// Share text
|
|
296
|
+
shareText: {
|
|
297
|
+
color: e.onPrimaryColor,
|
|
298
|
+
textAlign: "center",
|
|
299
|
+
fontFamily: e.fontFamilyPrimary,
|
|
300
|
+
fontSize: "0.9375em",
|
|
301
|
+
fontStyle: "normal",
|
|
302
|
+
fontWeight: 500,
|
|
303
|
+
lineHeight: "24px",
|
|
304
|
+
letterSpacing: "0.40px",
|
|
305
|
+
textTransform: "uppercase"
|
|
306
|
+
},
|
|
307
|
+
// Additional CTA button (secondary style)
|
|
308
|
+
additionalCTAButton: {
|
|
309
|
+
display: "flex",
|
|
310
|
+
py: e.spacingScale.sm,
|
|
311
|
+
px: e.spacingScale.md,
|
|
312
|
+
flexDirection: "column",
|
|
313
|
+
justifyContent: "center",
|
|
314
|
+
alignItems: "center",
|
|
315
|
+
gap: "8px",
|
|
316
|
+
borderRadius: e.xlBorderRadius,
|
|
317
|
+
bgcolor: e.secondaryContainer,
|
|
318
|
+
"&:hover": {
|
|
319
|
+
bgcolor: e.secondaryContainer,
|
|
320
|
+
opacity: 0.9
|
|
321
|
+
},
|
|
322
|
+
fontSize: "0.9375em"
|
|
323
|
+
},
|
|
324
|
+
// Additional CTA button content
|
|
325
|
+
additionalCTAButtonContent: {
|
|
326
|
+
display: "flex",
|
|
327
|
+
justifyContent: "center",
|
|
328
|
+
alignItems: "center",
|
|
329
|
+
gap: "8px"
|
|
330
|
+
},
|
|
331
|
+
// Additional CTA text
|
|
332
|
+
additionalCTAText: {
|
|
333
|
+
color: e.secondaryColor,
|
|
334
|
+
fontFamily: e.fontFamilyPrimary,
|
|
335
|
+
fontSize: "0.9375em",
|
|
336
|
+
fontStyle: "normal",
|
|
337
|
+
fontWeight: 500,
|
|
338
|
+
lineHeight: "24px",
|
|
339
|
+
letterSpacing: "0.40px",
|
|
340
|
+
textTransform: "uppercase"
|
|
341
|
+
},
|
|
342
|
+
// Lead collection container
|
|
343
|
+
leadCollectionContainer: {
|
|
344
|
+
borderRadius: e.mdBorderRadius,
|
|
345
|
+
p: e.spacingScale.md,
|
|
346
|
+
display: "flex",
|
|
347
|
+
flexDirection: "column",
|
|
348
|
+
alignSelf: "stretch",
|
|
349
|
+
gap: e.spacingScale.md,
|
|
350
|
+
backdropFilter: "blur(4px)",
|
|
351
|
+
position: "relative",
|
|
352
|
+
"&::before": {
|
|
353
|
+
content: '""',
|
|
354
|
+
position: "absolute",
|
|
355
|
+
top: 0,
|
|
356
|
+
left: 0,
|
|
357
|
+
right: 0,
|
|
358
|
+
bottom: 0,
|
|
359
|
+
backgroundColor: e.contentBgColor,
|
|
360
|
+
opacity: 0.25,
|
|
361
|
+
borderRadius: "inherit",
|
|
362
|
+
zIndex: 0,
|
|
363
|
+
backdropFilter: "blur(4px)"
|
|
364
|
+
},
|
|
365
|
+
"& > *": {
|
|
366
|
+
position: "relative",
|
|
367
|
+
zIndex: 1
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
export {
|
|
372
|
+
t as createStyles
|
|
373
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Button as a, Typography as r, Box as V } from "@mui/joy";
|
|
3
|
+
import { useInternalTheme as _, isMobile as G, useImageBackgroundGradient as Y } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import { extractBrandingProperties as p, sanitizeBackgroundUrl as M } 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 P } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import W from "../../../../../../common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js";
|
|
11
|
+
import { useImageVariant as q } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
+
import H from "../../../../assets/default-quiz-bg.png.js";
|
|
14
|
+
import J from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
15
|
+
import K from "../../../Shared/PresentedBy.js";
|
|
16
|
+
import { createStyles as N } from "./OverlaySignIn.styles.js";
|
|
17
|
+
import { useTranslation as X } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
18
|
+
const xn = (n) => {
|
|
19
|
+
var l, m, c, g, u, d, I, f, x, C, h;
|
|
20
|
+
const o = _(), { t: e } = X(), S = G(), L = Y(
|
|
21
|
+
P.OVERLAY
|
|
22
|
+
), { brandingImage: v, brandingColors: s, brandingLogo: w } = p(n.classicQuiz.branding || null), z = n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : S ? J : H, Q = v || q(
|
|
23
|
+
{
|
|
24
|
+
images: n.classicQuiz.images,
|
|
25
|
+
imagePlaceholder: z
|
|
26
|
+
},
|
|
27
|
+
P.OVERLAY
|
|
28
|
+
), R = M(Q), O = (m = (l = o.customRadius) == null ? void 0 : l.light) == null ? void 0 : m.xl, D = (s == null ? void 0 : s.primaryColor) || ((d = (u = (g = (c = o.colorSchemes) == null ? void 0 : c.light) == null ? void 0 : g.palette) == null ? void 0 : u.primary) == null ? void 0 : d.plainColor), E = (C = (x = (f = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : f.palette) == null ? void 0 : x.primary) == null ? void 0 : C.onPrimary, F = o.customFontFamily.dark.primary, t = N({
|
|
29
|
+
buttonRadius: O,
|
|
30
|
+
primaryColor: D,
|
|
31
|
+
onPrimaryColor: E,
|
|
32
|
+
fontFamilyPrimary: F
|
|
33
|
+
}), U = () => {
|
|
34
|
+
var T, y, A, b;
|
|
35
|
+
return n.signInCTA ? (T = n.signInCTA) != null && T.component ? n.signInCTA.component : (y = n.signInCTA) != null && y.onClick ? /* @__PURE__ */ i.jsx(
|
|
36
|
+
a,
|
|
37
|
+
{
|
|
38
|
+
variant: "soft",
|
|
39
|
+
sx: {
|
|
40
|
+
...t.signInButton,
|
|
41
|
+
...t.pulseAnimation
|
|
42
|
+
},
|
|
43
|
+
onClick: n.signInCTA.onClick,
|
|
44
|
+
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || e("common.signIn") })
|
|
45
|
+
}
|
|
46
|
+
) : (A = n.signInCTA) != null && A.url ? typeof window > "u" ? /* @__PURE__ */ i.jsx(
|
|
47
|
+
V,
|
|
48
|
+
{
|
|
49
|
+
component: "a",
|
|
50
|
+
href: n.signInCTA.url,
|
|
51
|
+
target: ((b = n.signInCTA) == null ? void 0 : b.target) || "_self",
|
|
52
|
+
sx: {
|
|
53
|
+
...t.signInButton,
|
|
54
|
+
...t.pulseAnimation,
|
|
55
|
+
textDecoration: "none",
|
|
56
|
+
display: "inline-flex",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
justifyContent: "center"
|
|
59
|
+
},
|
|
60
|
+
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || e("common.signIn") })
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ i.jsx(
|
|
63
|
+
a,
|
|
64
|
+
{
|
|
65
|
+
variant: "soft",
|
|
66
|
+
sx: {
|
|
67
|
+
...t.signInButton,
|
|
68
|
+
...t.pulseAnimation
|
|
69
|
+
},
|
|
70
|
+
onClick: () => {
|
|
71
|
+
var B, j, k;
|
|
72
|
+
((B = n.signInCTA) == null ? void 0 : B.target) === "_blank" ? window.open((j = n.signInCTA) == null ? void 0 : j.url, "_blank") : window.location.href = (k = n.signInCTA) == null ? void 0 : k.url;
|
|
73
|
+
},
|
|
74
|
+
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || e("common.signIn") })
|
|
75
|
+
}
|
|
76
|
+
) : /* @__PURE__ */ i.jsx(
|
|
77
|
+
a,
|
|
78
|
+
{
|
|
79
|
+
variant: "soft",
|
|
80
|
+
sx: {
|
|
81
|
+
...t.signInButton
|
|
82
|
+
},
|
|
83
|
+
disabled: !0,
|
|
84
|
+
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || e("common.signIn") })
|
|
85
|
+
}
|
|
86
|
+
) : /* @__PURE__ */ i.jsx(
|
|
87
|
+
a,
|
|
88
|
+
{
|
|
89
|
+
variant: "soft",
|
|
90
|
+
sx: {
|
|
91
|
+
...t.signInButton
|
|
92
|
+
},
|
|
93
|
+
disabled: !0,
|
|
94
|
+
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: e("common.signIn") })
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
return /* @__PURE__ */ i.jsx(
|
|
99
|
+
W,
|
|
100
|
+
{
|
|
101
|
+
entity: n.classicQuiz,
|
|
102
|
+
headline: e("classicQuiz.headline"),
|
|
103
|
+
backgroundImage: R,
|
|
104
|
+
imageBackgroundGradient: L,
|
|
105
|
+
signInContent: U(),
|
|
106
|
+
brandingContent: /* @__PURE__ */ i.jsx(
|
|
107
|
+
K,
|
|
108
|
+
{
|
|
109
|
+
brandingLogo: w,
|
|
110
|
+
textColor: o.colorSchemes.dark.textColor,
|
|
111
|
+
label: ((h = n.classicQuiz.labels) == null ? void 0 : h.sponsor) || null
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
rulesDisplay: n.rulesDisplay
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
xn as default
|
|
120
|
+
};
|
package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const o = (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
|
+
// Sign In button
|
|
11
|
+
signInButton: {
|
|
12
|
+
borderRadius: e.buttonRadius,
|
|
13
|
+
bgcolor: e.primaryColor,
|
|
14
|
+
color: "#FFFFFF",
|
|
15
|
+
py: "10px",
|
|
16
|
+
px: "16px",
|
|
17
|
+
"&:hover": {
|
|
18
|
+
bgcolor: e.primaryColor
|
|
19
|
+
},
|
|
20
|
+
"&:active": {
|
|
21
|
+
color: e.onPrimaryColor
|
|
22
|
+
},
|
|
23
|
+
animation: "pulse 1s infinite",
|
|
24
|
+
fontSize: "0.9375em"
|
|
25
|
+
},
|
|
26
|
+
// Start button text
|
|
27
|
+
signInButtonText: {
|
|
28
|
+
fontFamily: e.fontFamilyPrimary,
|
|
29
|
+
fontWeight: 500,
|
|
30
|
+
fontSize: "0.9375em",
|
|
31
|
+
lineHeight: "24px",
|
|
32
|
+
letterSpacing: "0.46px",
|
|
33
|
+
textTransform: "uppercase",
|
|
34
|
+
color: e.onPrimaryColor,
|
|
35
|
+
gap: "8px",
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
o as createStyles
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { isMobile as u } 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/Split/ApiError/SplitApiErrorSkeleton.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import b from "../../../Shared/MainCard.js";
|
|
11
|
+
import f from "../../../Shared/PresentedBy.js";
|
|
12
|
+
import { useTranslation as y } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
+
const S = (i) => {
|
|
14
|
+
var e, t, a, n;
|
|
15
|
+
const m = u(), { t: l } = y(), r = ((e = i.classicQuiz.branding) == null ? void 0 : e.colors) || null, c = m ? ((t = i.classicQuiz.branding) == null ? void 0 : t.images.mobileLogo) || ((a = i.classicQuiz.branding) == null ? void 0 : a.images.mainLogo) || "" : ((n = i.classicQuiz.branding) == null ? void 0 : n.images.mainLogo) || "";
|
|
16
|
+
return /* @__PURE__ */ o.jsx(b, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ o.jsx(
|
|
17
|
+
d,
|
|
18
|
+
{
|
|
19
|
+
entity: i.classicQuiz,
|
|
20
|
+
headline: l("classicQuiz.headline"),
|
|
21
|
+
tryAgainButtonText: l("classicQuiz.buttons.tryAgain"),
|
|
22
|
+
defaultImagePlaceholderUrl: i.defaultImagePlaceholderUrl,
|
|
23
|
+
isApiError: i.isApiError,
|
|
24
|
+
toggleTryAgain: i.toggleTryAgain,
|
|
25
|
+
renderPresentedBy: (g) => {
|
|
26
|
+
var s;
|
|
27
|
+
return /* @__PURE__ */ o.jsx(
|
|
28
|
+
f,
|
|
29
|
+
{
|
|
30
|
+
brandingLogo: c,
|
|
31
|
+
textColor: g,
|
|
32
|
+
label: ((s = i.classicQuiz.labels) == null ? void 0 : s.sponsor) || null
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
},
|
|
36
|
+
rulesDisplay: i.rulesDisplay
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
S as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import "@mui/joy";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import m from "../../../../../../common/src/components/LeadCollection/SplitLeadAfterCollection.js";
|
|
9
|
+
import o from "../../../Shared/MainCard.js";
|
|
10
|
+
import r from "../../../../assets/default-quiz-bg.png.js";
|
|
11
|
+
import a from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
12
|
+
import l from "../../../Shared/PresentedBy.js";
|
|
13
|
+
import d from "../../../Leads/CollectLeadWrapper.js";
|
|
14
|
+
import { useTranslation as s } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
+
const P = (e) => {
|
|
16
|
+
const { t } = s();
|
|
17
|
+
return /* @__PURE__ */ i.jsx(
|
|
18
|
+
m,
|
|
19
|
+
{
|
|
20
|
+
entity: e.classicQuiz,
|
|
21
|
+
headline: t("classicQuiz.headline"),
|
|
22
|
+
sdk: e.sdk,
|
|
23
|
+
leads: e.leads,
|
|
24
|
+
defaultImagePlaceholder: e.defaultImagePlaceholderUrl || r,
|
|
25
|
+
mobileImagePlaceholder: a,
|
|
26
|
+
onLeadSubmitted: e.onLeadSubmitted,
|
|
27
|
+
isSubmitting: e.isSubmitting,
|
|
28
|
+
MainCard: o,
|
|
29
|
+
PresentedBy: l,
|
|
30
|
+
CollectLeadWrapper: d,
|
|
31
|
+
rulesDisplay: e.rulesDisplay
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
P as default
|
|
37
|
+
};
|