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,138 @@
|
|
|
1
|
+
import { j as l } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import M from "react";
|
|
3
|
+
import { Box as n, Typography as oe } from "@mui/joy";
|
|
4
|
+
import { isMobile as te, isExtraSmall as ne, useColors as c, useFontFamily as ie, useCornerRadius as ae, useSpacingScale as se } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import { hexToRgb as re } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
+
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
+
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
+
import { WidgetTemplate as me } from "../../../../../common/src/enums/enums.js";
|
|
9
|
+
import { useConstantContext as de } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
+
import { ConstantsContext as ce } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import ue from "../../../../../common/src/components/Skeletons/Standard/StandardSkeleton.js";
|
|
12
|
+
import { useImageVariant as ge } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
13
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
14
|
+
import xe from "../../Shared/Button.js";
|
|
15
|
+
import fe from "../../Shared/MainCard.js";
|
|
16
|
+
import Ce from "../../Shared/PresentedBy.js";
|
|
17
|
+
import be from "../../Leads/CollectLeadWrapper.js";
|
|
18
|
+
import { useEmbedCode as he } from "../../../hooks/useEmbedCodeContainer.js";
|
|
19
|
+
import { createStyles as ye } from "./PollStandardVariant.styles.js";
|
|
20
|
+
import je from "../../Shared/Answers/PollOptions.js";
|
|
21
|
+
import { usePollOptionsImages as Se } from "../../../hooks/usePollOptionsImages.js";
|
|
22
|
+
import { useTranslation as Pe } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
23
|
+
const Qe = (e) => {
|
|
24
|
+
var C, b, h, y, j, S, P, L, T, D, E, F, R, I, q, B, U, V, k, v, w;
|
|
25
|
+
const [u, g] = M.useState(
|
|
26
|
+
((C = e.leads) == null ? void 0 : C.position) === "before" && e.poll.authRequirement === "LEAD"
|
|
27
|
+
);
|
|
28
|
+
M.useEffect(() => {
|
|
29
|
+
var s;
|
|
30
|
+
g(
|
|
31
|
+
((s = e.leads) == null ? void 0 : s.position) === "before" && e.poll.authRequirement === "LEAD" || !1
|
|
32
|
+
);
|
|
33
|
+
}, [(b = e.leads) == null ? void 0 : b.position, e.poll.authRequirement]);
|
|
34
|
+
const { optionsLayout: _ } = de(ce), G = he(e.poll.embedCode), Q = !u && !!e.poll.embedCode, z = Se(e.options), { t: r } = Pe(), x = te(), H = ne(), o = ((h = e.poll.branding) == null ? void 0 : h.colors) || null, i = x ? ((j = (y = e.poll.branding) == null ? void 0 : y.images) == null ? void 0 : j.mobileLogo) || ((P = (S = e.poll.branding) == null ? void 0 : S.images) == null ? void 0 : P.mainLogo) || "" : ((T = (L = e.poll.branding) == null ? void 0 : L.images) == null ? void 0 : T.mainLogo) || "", J = e.imagePosition || "left", f = ge(
|
|
35
|
+
{
|
|
36
|
+
images: e.poll.images,
|
|
37
|
+
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
38
|
+
},
|
|
39
|
+
me.STANDARD
|
|
40
|
+
), K = ((D = e.leads) == null ? void 0 : D.position) === "after" ? r("poll.buttons.continue") : r("poll.buttons.vote"), m = H || x && !!f, a = (o == null ? void 0 : o.contentColor) || c().textColor, X = ie().primary, Y = (o == null ? void 0 : o.backgroundColor) || c().surfaceVariant, Z = ae().md, $ = (o == null ? void 0 : o.primaryColor) || c().palette.primary.plainColor, ee = se(), t = ye({
|
|
41
|
+
spacingScale: ee,
|
|
42
|
+
fontFamilyPrimary: X,
|
|
43
|
+
textColor: a,
|
|
44
|
+
bgcolor: re(Y || ""),
|
|
45
|
+
mdBorderRadius: Z,
|
|
46
|
+
isExtraSmall: m
|
|
47
|
+
}), le = () => {
|
|
48
|
+
g(!1);
|
|
49
|
+
}, d = (s) => {
|
|
50
|
+
var O, p, A, N, W;
|
|
51
|
+
return /* @__PURE__ */ l.jsx(
|
|
52
|
+
Ce,
|
|
53
|
+
{
|
|
54
|
+
brandingLogo: i,
|
|
55
|
+
textColor: s,
|
|
56
|
+
label: ((O = e.poll.labels) == null ? void 0 : O.sponsor) || null,
|
|
57
|
+
primaryUrl: (A = (p = e.poll.branding) == null ? void 0 : p.urls) == null ? void 0 : A.primaryUrl,
|
|
58
|
+
secondaryUrl: (W = (N = e.poll.branding) == null ? void 0 : N.urls) == null ? void 0 : W.secondaryUrl
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ l.jsx(fe, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ l.jsx(
|
|
63
|
+
ue,
|
|
64
|
+
{
|
|
65
|
+
entity: e.poll,
|
|
66
|
+
headline: r("poll.headline"),
|
|
67
|
+
finalImage: f,
|
|
68
|
+
imagePosition: J,
|
|
69
|
+
rulesDisplay: e.rulesDisplay,
|
|
70
|
+
embedCodeContainerRef: G,
|
|
71
|
+
hasEmbedCode: Q,
|
|
72
|
+
children: /* @__PURE__ */ l.jsx(l.Fragment, { children: u ? /* @__PURE__ */ l.jsx(n, { sx: t.leadCollectionContainer, children: /* @__PURE__ */ l.jsxs(n, { sx: t.leadQuestionContainer, children: [
|
|
73
|
+
/* @__PURE__ */ l.jsx(n, { sx: t.leadContentContainer, children: /* @__PURE__ */ l.jsx(
|
|
74
|
+
be,
|
|
75
|
+
{
|
|
76
|
+
sdk: e.sdk,
|
|
77
|
+
startGame: le,
|
|
78
|
+
contentId: e.poll.id,
|
|
79
|
+
contentName: e.poll.title,
|
|
80
|
+
brandingColors: (E = e.poll.branding) == null ? void 0 : E.colors,
|
|
81
|
+
brandingUrls: (F = e.poll.branding) == null ? void 0 : F.urls,
|
|
82
|
+
campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
|
|
83
|
+
campaignName: (I = e.leads) == null ? void 0 : I.campaignName,
|
|
84
|
+
fields: (q = e.leads) == null ? void 0 : q.fields,
|
|
85
|
+
leadTitle: (B = e.poll.labels) == null ? void 0 : B.leadTitle,
|
|
86
|
+
leadDescription: (U = e.poll.labels) == null ? void 0 : U.leadDescription,
|
|
87
|
+
leadCta: (V = e.poll.labels) == null ? void 0 : V.leadCta,
|
|
88
|
+
leadSuccessTitle: (k = e.poll.labels) == null ? void 0 : k.leadSuccessTitle,
|
|
89
|
+
leadSuccessDescription: (v = e.poll.labels) == null ? void 0 : v.leadSuccessDescription,
|
|
90
|
+
syncWithProfile: (w = e.leads) == null ? void 0 : w.syncWithProfile
|
|
91
|
+
}
|
|
92
|
+
) }),
|
|
93
|
+
d(a)
|
|
94
|
+
] }) }) : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(n, { sx: t.questionArea, children: /* @__PURE__ */ l.jsxs(n, { sx: t.questionContainer, children: [
|
|
95
|
+
/* @__PURE__ */ l.jsxs(n, { sx: t.questionContentContainer, children: [
|
|
96
|
+
e.poll.alternativeTitle ? /* @__PURE__ */ l.jsx(n, { sx: t.questionTextContainer, children: /* @__PURE__ */ l.jsx(oe, { level: "body-lg", sx: t.questionText, children: e.poll.alternativeTitle }) }) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
|
|
97
|
+
/* @__PURE__ */ l.jsx(
|
|
98
|
+
je,
|
|
99
|
+
{
|
|
100
|
+
options: e.options || [],
|
|
101
|
+
answerPoll: e.answerPoll,
|
|
102
|
+
selectedOptions: e.selectedOptions,
|
|
103
|
+
optionsLayout: _ ?? "twoByTwo",
|
|
104
|
+
optionsImages: z,
|
|
105
|
+
brandingColors: o,
|
|
106
|
+
multipleChoice: e.poll.multipleChoice,
|
|
107
|
+
maxChoices: e.optionChoices,
|
|
108
|
+
isVoting: e.isVoting
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ l.jsxs(
|
|
113
|
+
n,
|
|
114
|
+
{
|
|
115
|
+
sx: i ? t.footerContainer : t.footerContainerNoLogo,
|
|
116
|
+
children: [
|
|
117
|
+
i && !m ? d(a) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
|
|
118
|
+
/* @__PURE__ */ l.jsx(n, { sx: t.navigationContainer, children: /* @__PURE__ */ l.jsx(
|
|
119
|
+
xe,
|
|
120
|
+
{
|
|
121
|
+
selectedOptions: e.selectedOptions,
|
|
122
|
+
label: K,
|
|
123
|
+
buttonColor: $,
|
|
124
|
+
onClick: e.voteForPoll,
|
|
125
|
+
isVoting: e.isVoting
|
|
126
|
+
}
|
|
127
|
+
) })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
i && m ? d(a) : /* @__PURE__ */ l.jsx(l.Fragment, {})
|
|
132
|
+
] }) }) }) })
|
|
133
|
+
}
|
|
134
|
+
) });
|
|
135
|
+
};
|
|
136
|
+
export {
|
|
137
|
+
Qe as default
|
|
138
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const l = (e) => ({
|
|
2
|
+
// Lead collection container
|
|
3
|
+
leadCollectionContainer: {
|
|
4
|
+
display: "flex",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
p: e.spacingScale.md
|
|
7
|
+
},
|
|
8
|
+
// Lead question container
|
|
9
|
+
leadQuestionContainer: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
|
|
13
|
+
},
|
|
14
|
+
// Lead content container
|
|
15
|
+
leadContentContainer: {
|
|
16
|
+
borderRadius: e.mdBorderRadius,
|
|
17
|
+
px: e.spacingScale.md,
|
|
18
|
+
pt: e.spacingScale.md,
|
|
19
|
+
pb: e.spacingScale.lg,
|
|
20
|
+
gap: e.spacingScale.md,
|
|
21
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
backdropFilter: "blur(4px)"
|
|
25
|
+
},
|
|
26
|
+
// Question area
|
|
27
|
+
questionArea: {
|
|
28
|
+
display: "flex",
|
|
29
|
+
flexDirection: "column",
|
|
30
|
+
p: e.spacingScale.md
|
|
31
|
+
},
|
|
32
|
+
// Question container
|
|
33
|
+
questionContainer: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
|
|
37
|
+
},
|
|
38
|
+
// Question content container
|
|
39
|
+
questionContentContainer: {
|
|
40
|
+
borderRadius: e.mdBorderRadius,
|
|
41
|
+
px: e.spacingScale.md,
|
|
42
|
+
pt: e.spacingScale.md,
|
|
43
|
+
pb: e.spacingScale.lg,
|
|
44
|
+
gap: e.spacingScale.md,
|
|
45
|
+
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
46
|
+
display: "flex",
|
|
47
|
+
flexDirection: "column",
|
|
48
|
+
backdropFilter: "blur(4px)"
|
|
49
|
+
},
|
|
50
|
+
// Question text container
|
|
51
|
+
questionTextContainer: {
|
|
52
|
+
gap: "8px",
|
|
53
|
+
display: "flex",
|
|
54
|
+
justifyContent: "center"
|
|
55
|
+
},
|
|
56
|
+
// Question text
|
|
57
|
+
questionText: {
|
|
58
|
+
fontFamily: e.fontFamilyPrimary,
|
|
59
|
+
lineHeight: "150%",
|
|
60
|
+
letterSpacing: "0.15px",
|
|
61
|
+
fontWeight: 500,
|
|
62
|
+
fontSize: "1.25em",
|
|
63
|
+
textAlign: "center",
|
|
64
|
+
color: e.textColor
|
|
65
|
+
},
|
|
66
|
+
// Footer container
|
|
67
|
+
footerContainer: {
|
|
68
|
+
display: "flex",
|
|
69
|
+
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
70
|
+
justifyContent: "space-between",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
gap: e.spacingScale.lg
|
|
73
|
+
},
|
|
74
|
+
// Footer container (no logo)
|
|
75
|
+
footerContainerNoLogo: {
|
|
76
|
+
display: "flex",
|
|
77
|
+
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
78
|
+
justifyContent: "flex-end",
|
|
79
|
+
alignItems: "center",
|
|
80
|
+
gap: e.spacingScale.lg
|
|
81
|
+
},
|
|
82
|
+
// Navigation container
|
|
83
|
+
navigationContainer: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
gap: e.spacingScale.md,
|
|
86
|
+
justifyContent: "center",
|
|
87
|
+
alignItems: "center"
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
l as createStyles
|
|
92
|
+
};
|
package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as n, Typography as C, Button as B } from "@mui/joy";
|
|
3
|
+
import { isMobile as v, useColors as I, useSpacingScale as P } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import { WidgetTemplate as F } from "../../../../../../common/src/enums/enums.js";
|
|
7
|
+
import M from "../../../../../../common/src/components/AdditionalCTA.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import { useConstantContext as L } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
+
import { ConstantsContext as q } from "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import R from "../../../../../../common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js";
|
|
12
|
+
import D from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
|
|
13
|
+
import { useImageVariant as O } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
14
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
15
|
+
import V from "../../../Shared/MainCard.js";
|
|
16
|
+
import r from "../../../Shared/PresentedBy.js";
|
|
17
|
+
import { createStyles as k } from "./PollStandardScoreState.styles.js";
|
|
18
|
+
import U from "../../../Shared/AlertMessage.js";
|
|
19
|
+
import { usePollOptionsImages as w } from "../../../../hooks/usePollOptionsImages.js";
|
|
20
|
+
import N from "../../../Shared/Results/PollOptionsResults.js";
|
|
21
|
+
import { useTranslation as z } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
22
|
+
const dt = (e) => {
|
|
23
|
+
var m, d, x, c;
|
|
24
|
+
const f = O(
|
|
25
|
+
{
|
|
26
|
+
images: e.poll.images,
|
|
27
|
+
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
28
|
+
},
|
|
29
|
+
F.STANDARD
|
|
30
|
+
), { optionsLayout: y } = L(q), { t: a } = z(), i = ((m = e.poll.branding) == null ? void 0 : m.colors) || null, l = v() ? ((d = e.poll.branding) == null ? void 0 : d.images.mobileLogo) || ((x = e.poll.branding) == null ? void 0 : x.images.mainLogo) || "" : ((c = e.poll.branding) == null ? void 0 : c.images.mainLogo) || "", b = e.imagePosition || "left", A = w(e.poll.options), s = (i == null ? void 0 : i.contentColor) || I().textColor, T = P(), o = k({
|
|
31
|
+
spacingScale: T,
|
|
32
|
+
textColor: s
|
|
33
|
+
}), S = () => {
|
|
34
|
+
var g, u, j, h, p;
|
|
35
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e.isUnauthorized ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
36
|
+
/* @__PURE__ */ t.jsx(
|
|
37
|
+
U,
|
|
38
|
+
{
|
|
39
|
+
variant: "error",
|
|
40
|
+
title: a("common.authentication.accessRequired"),
|
|
41
|
+
message: a("common.authentication.invalidOrMissingAuth")
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
l ? /* @__PURE__ */ t.jsx(
|
|
45
|
+
r,
|
|
46
|
+
{
|
|
47
|
+
brandingLogo: l,
|
|
48
|
+
textColor: s,
|
|
49
|
+
label: ((p = e.poll.labels) == null ? void 0 : p.sponsor) || null
|
|
50
|
+
}
|
|
51
|
+
) : /* @__PURE__ */ t.jsx(t.Fragment, {})
|
|
52
|
+
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
53
|
+
/* @__PURE__ */ t.jsx(n, { sx: o.questionArea, children: /* @__PURE__ */ t.jsx(n, { sx: o.questionContainer, children: /* @__PURE__ */ t.jsxs(n, { sx: o.questionContentContainer, children: [
|
|
54
|
+
e.poll.alternativeTitle ? /* @__PURE__ */ t.jsx(n, { sx: o.alternativeTitleSection, children: /* @__PURE__ */ t.jsx(
|
|
55
|
+
C,
|
|
56
|
+
{
|
|
57
|
+
level: "body-lg",
|
|
58
|
+
sx: o.alternativeTitleText,
|
|
59
|
+
children: e.poll.alternativeTitle
|
|
60
|
+
}
|
|
61
|
+
) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
62
|
+
/* @__PURE__ */ t.jsx(
|
|
63
|
+
N,
|
|
64
|
+
{
|
|
65
|
+
options: e.poll.options,
|
|
66
|
+
selectedOptions: ((g = e.userVote) == null ? void 0 : g.optionIds) || [],
|
|
67
|
+
optionsLayout: y ?? "twoByTwo",
|
|
68
|
+
optionsImages: A,
|
|
69
|
+
brandingColors: ((u = e.poll.branding) == null ? void 0 : u.colors) || null
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] }) }) }),
|
|
73
|
+
/* @__PURE__ */ t.jsx(n, { sx: o.questionArea, children: /* @__PURE__ */ t.jsxs(n, { sx: o.questionContainer, children: [
|
|
74
|
+
/* @__PURE__ */ t.jsxs(
|
|
75
|
+
n,
|
|
76
|
+
{
|
|
77
|
+
sx: l ? o.footerContainer : o.footerContainerNoLogo,
|
|
78
|
+
children: [
|
|
79
|
+
l ? /* @__PURE__ */ t.jsx(n, { sx: o.presentedByDesktop, children: /* @__PURE__ */ t.jsx(
|
|
80
|
+
r,
|
|
81
|
+
{
|
|
82
|
+
brandingLogo: l,
|
|
83
|
+
textColor: s,
|
|
84
|
+
label: ((j = e.poll.labels) == null ? void 0 : j.sponsor) || null
|
|
85
|
+
}
|
|
86
|
+
) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
87
|
+
/* @__PURE__ */ t.jsxs(
|
|
88
|
+
n,
|
|
89
|
+
{
|
|
90
|
+
sx: {
|
|
91
|
+
display: "flex",
|
|
92
|
+
gap: "16px"
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ t.jsx(
|
|
96
|
+
M,
|
|
97
|
+
{
|
|
98
|
+
additionalCTA: e.additionalCTA,
|
|
99
|
+
buttonStyle: o.additionalCTAButton,
|
|
100
|
+
buttonContentStyle: o.additionalCTAButtonContent,
|
|
101
|
+
textStyle: o.additionalCTAText
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
e.maxAttemptsReached ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : /* @__PURE__ */ t.jsx(
|
|
105
|
+
B,
|
|
106
|
+
{
|
|
107
|
+
sx: o.voteAgainButton,
|
|
108
|
+
onClick: e.voteAgain,
|
|
109
|
+
children: /* @__PURE__ */ t.jsxs(n, { sx: o.playAgainButtonContent, children: [
|
|
110
|
+
/* @__PURE__ */ t.jsx(D, { sx: o.playAgainIcon }),
|
|
111
|
+
/* @__PURE__ */ t.jsx(C, { sx: o.playAgainText, children: a("poll.buttons.voteAgain") })
|
|
112
|
+
] })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
l ? /* @__PURE__ */ t.jsx(n, { sx: o.presentedByMobile, children: /* @__PURE__ */ t.jsx(
|
|
122
|
+
r,
|
|
123
|
+
{
|
|
124
|
+
brandingLogo: l,
|
|
125
|
+
textColor: s,
|
|
126
|
+
label: ((h = e.poll.labels) == null ? void 0 : h.sponsor) || null
|
|
127
|
+
}
|
|
128
|
+
) }) : /* @__PURE__ */ t.jsx(t.Fragment, {})
|
|
129
|
+
] }) })
|
|
130
|
+
] }) });
|
|
131
|
+
};
|
|
132
|
+
return /* @__PURE__ */ t.jsx(V, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t.jsx(
|
|
133
|
+
R,
|
|
134
|
+
{
|
|
135
|
+
entity: e.poll,
|
|
136
|
+
headline: a("poll.headline"),
|
|
137
|
+
finalImage: f,
|
|
138
|
+
imagePosition: b,
|
|
139
|
+
rulesDisplay: e.rulesDisplay,
|
|
140
|
+
children: S()
|
|
141
|
+
}
|
|
142
|
+
) });
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
dt as default
|
|
146
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { useCornerRadius as m, isMobile as f, useBorderSize as d, useColors as y, useFontFamily as u } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
+
import { hexToRgb as S } from "../../../../../../common/src/functions/helpers.js";
|
|
3
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
5
|
+
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
6
|
+
import "@mui/joy";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
const I = (e) => {
|
|
11
|
+
const o = m(), n = f(), a = d().size, t = y(), i = u(), r = t.palette.primary.plainColor, c = t.textPrimary, s = t.textSecondary, l = t.secondaryContainer, p = t.surface, g = t.onSurface, x = `rgba(${S(t.surfaceVariant)}, 0.5)`;
|
|
12
|
+
return {
|
|
13
|
+
// Question area
|
|
14
|
+
questionArea: {
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
17
|
+
px: e.spacingScale.md
|
|
18
|
+
},
|
|
19
|
+
// Question container
|
|
20
|
+
questionContainer: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: n ? e.spacingScale.lg : e.spacingScale.md
|
|
24
|
+
},
|
|
25
|
+
// Question content container
|
|
26
|
+
questionContentContainer: {
|
|
27
|
+
borderRadius: o.md,
|
|
28
|
+
px: e.spacingScale.md,
|
|
29
|
+
pt: e.spacingScale.md,
|
|
30
|
+
pb: e.spacingScale.lg,
|
|
31
|
+
gap: e.spacingScale.md,
|
|
32
|
+
bgcolor: x,
|
|
33
|
+
display: "flex",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
backdropFilter: "blur(4px)"
|
|
36
|
+
},
|
|
37
|
+
// Vote again button
|
|
38
|
+
voteAgainButton: {
|
|
39
|
+
display: "flex",
|
|
40
|
+
py: e.spacingScale.xs,
|
|
41
|
+
px: "16px",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
justifyContent: "center",
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
gap: "8px",
|
|
46
|
+
borderRadius: o.xl,
|
|
47
|
+
border: a + " solid " + r,
|
|
48
|
+
bgcolor: p,
|
|
49
|
+
"&:hover": {
|
|
50
|
+
bgcolor: g,
|
|
51
|
+
borderColor: r
|
|
52
|
+
},
|
|
53
|
+
fontSize: "0.8125em"
|
|
54
|
+
},
|
|
55
|
+
// Play again button content
|
|
56
|
+
playAgainButtonContent: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
justifyContent: "center",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
gap: "8px",
|
|
61
|
+
alignSelf: "stretch"
|
|
62
|
+
},
|
|
63
|
+
// Play again icon
|
|
64
|
+
playAgainIcon: {
|
|
65
|
+
display: "flex",
|
|
66
|
+
width: "16px",
|
|
67
|
+
height: "16px",
|
|
68
|
+
justifyContent: "flex-end",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
color: c
|
|
71
|
+
},
|
|
72
|
+
// Play again text
|
|
73
|
+
playAgainText: {
|
|
74
|
+
color: c,
|
|
75
|
+
textAlign: "center",
|
|
76
|
+
fontFamily: i.primary,
|
|
77
|
+
fontSize: "0.8125em",
|
|
78
|
+
fontStyle: "normal",
|
|
79
|
+
fontWeight: 500,
|
|
80
|
+
lineHeight: "22px",
|
|
81
|
+
letterSpacing: "0.46px",
|
|
82
|
+
textTransform: "uppercase"
|
|
83
|
+
},
|
|
84
|
+
// Additional CTA button (secondary style)
|
|
85
|
+
additionalCTAButton: {
|
|
86
|
+
display: "flex",
|
|
87
|
+
py: e.spacingScale.xs,
|
|
88
|
+
px: e.spacingScale.md,
|
|
89
|
+
flexDirection: "column",
|
|
90
|
+
justifyContent: "center",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
gap: "8px",
|
|
93
|
+
borderRadius: o.xl,
|
|
94
|
+
border: a + " solid " + l,
|
|
95
|
+
bgcolor: l,
|
|
96
|
+
"&:hover": {
|
|
97
|
+
bgcolor: l,
|
|
98
|
+
opacity: 0.9
|
|
99
|
+
},
|
|
100
|
+
fontSize: "0.8125em"
|
|
101
|
+
},
|
|
102
|
+
// Additional CTA button content
|
|
103
|
+
additionalCTAButtonContent: {
|
|
104
|
+
display: "flex",
|
|
105
|
+
justifyContent: "center",
|
|
106
|
+
alignItems: "center",
|
|
107
|
+
gap: "8px"
|
|
108
|
+
},
|
|
109
|
+
// Additional CTA text
|
|
110
|
+
additionalCTAText: {
|
|
111
|
+
color: s,
|
|
112
|
+
fontFamily: i.primary,
|
|
113
|
+
fontSize: "0.8125em",
|
|
114
|
+
fontStyle: "normal",
|
|
115
|
+
fontWeight: 500,
|
|
116
|
+
lineHeight: "22px",
|
|
117
|
+
letterSpacing: "0.46px",
|
|
118
|
+
textTransform: "uppercase"
|
|
119
|
+
},
|
|
120
|
+
// Footer container
|
|
121
|
+
footerContainer: {
|
|
122
|
+
display: "flex",
|
|
123
|
+
flexDirection: n ? "column" : "row",
|
|
124
|
+
justifyContent: "space-between",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
gap: e.spacingScale.lg
|
|
127
|
+
},
|
|
128
|
+
// Footer container (no logo)
|
|
129
|
+
footerContainerNoLogo: {
|
|
130
|
+
display: "flex",
|
|
131
|
+
flexDirection: n ? "column" : "row",
|
|
132
|
+
justifyContent: "flex-end",
|
|
133
|
+
alignItems: "center",
|
|
134
|
+
gap: e.spacingScale.lg
|
|
135
|
+
},
|
|
136
|
+
// Presented by desktop
|
|
137
|
+
presentedByDesktop: {
|
|
138
|
+
display: n ? "none" : "block"
|
|
139
|
+
},
|
|
140
|
+
// Presented by mobile
|
|
141
|
+
presentedByMobile: {
|
|
142
|
+
display: n ? "block" : "none"
|
|
143
|
+
},
|
|
144
|
+
// Alternative title section
|
|
145
|
+
alternativeTitleSection: {
|
|
146
|
+
gap: "8px",
|
|
147
|
+
display: "flex",
|
|
148
|
+
justifyContent: "center"
|
|
149
|
+
},
|
|
150
|
+
// Alternative title text
|
|
151
|
+
alternativeTitleText: {
|
|
152
|
+
fontFamily: i.primary,
|
|
153
|
+
lineHeight: "150%",
|
|
154
|
+
letterSpacing: "0.15px",
|
|
155
|
+
fontWeight: 500,
|
|
156
|
+
fontSize: "1.25em",
|
|
157
|
+
textAlign: "center",
|
|
158
|
+
color: e.textColor
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export {
|
|
163
|
+
I as createStyles
|
|
164
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import U from "../../../Shared/MainCard.js";
|
|
3
|
+
import E from "../../../Shared/PresentedBy.js";
|
|
4
|
+
import { isMobile as V, useInternalTheme as W, useSpacingScale as q, useFontFamily as S, useCornerRadius as b, useColors as r, useImageBackgroundGradient as z } 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 k } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
+
import { Button as a, Typography as l, Box as H } from "@mui/joy";
|
|
9
|
+
import "react";
|
|
10
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import J from "../../../../../../common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js";
|
|
12
|
+
import { useImageVariant as K } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
13
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
14
|
+
import { createStyles as O } from "./PollStandardSignIn.styles.js";
|
|
15
|
+
import { useTranslation as Q } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
16
|
+
const un = (n) => {
|
|
17
|
+
var d, u, x, I, f;
|
|
18
|
+
const t = ((d = n.poll.branding) == null ? void 0 : d.colors) || null, m = V(), c = W(), s = K(
|
|
19
|
+
{
|
|
20
|
+
images: n.poll.images,
|
|
21
|
+
imagePlaceholder: n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : ""
|
|
22
|
+
},
|
|
23
|
+
k.STANDARD
|
|
24
|
+
), P = q(), L = S().primary, D = S().secondary, w = b(), R = b().xl, v = (t == null ? void 0 : t.primaryColor) || r().palette.primary.plainColor, F = r().palette.primary.onPrimary, g = (t == null ? void 0 : t.contentColor) || r().textColor, _ = (t == null ? void 0 : t.secondaryColor) || r().textColor, p = z(
|
|
25
|
+
k.STANDARD
|
|
26
|
+
), G = m ? ((u = n.poll.branding) == null ? void 0 : u.images.mobileLogo) || ((x = n.poll.branding) == null ? void 0 : x.images.mainLogo) || "" : ((I = n.poll.branding) == null ? void 0 : I.images.mainLogo) || "", { t: i } = Q(), M = n.imagePosition || "left", e = O({
|
|
27
|
+
finalImage: s,
|
|
28
|
+
spacingScale: P,
|
|
29
|
+
borderRadius: w,
|
|
30
|
+
fontFamilyPrimary: L,
|
|
31
|
+
fontFamilySecondary: D,
|
|
32
|
+
textColor: g,
|
|
33
|
+
secondaryColor: _,
|
|
34
|
+
brandingColors: t,
|
|
35
|
+
darkTextColor: c.colorSchemes.dark.textColor,
|
|
36
|
+
opacity: "60%",
|
|
37
|
+
imageBackgroundGradient: p,
|
|
38
|
+
buttonRadius: R,
|
|
39
|
+
primaryColor: v,
|
|
40
|
+
onPrimaryColor: F
|
|
41
|
+
}), N = () => {
|
|
42
|
+
var C, y, T, h;
|
|
43
|
+
return n.signInCTA ? (C = n.signInCTA) != null && C.component ? n.signInCTA.component : (y = n.signInCTA) != null && y.onClick ? /* @__PURE__ */ o.jsx(
|
|
44
|
+
a,
|
|
45
|
+
{
|
|
46
|
+
variant: "soft",
|
|
47
|
+
sx: {
|
|
48
|
+
...e.signInButton,
|
|
49
|
+
...e.pulseAnimation
|
|
50
|
+
},
|
|
51
|
+
onClick: n.signInCTA.onClick,
|
|
52
|
+
children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
53
|
+
}
|
|
54
|
+
) : (T = n.signInCTA) != null && T.url ? typeof window > "u" ? /* @__PURE__ */ o.jsx(
|
|
55
|
+
H,
|
|
56
|
+
{
|
|
57
|
+
component: "a",
|
|
58
|
+
href: n.signInCTA.url,
|
|
59
|
+
target: ((h = n.signInCTA) == null ? void 0 : h.target) || "_self",
|
|
60
|
+
sx: {
|
|
61
|
+
...e.signInButton,
|
|
62
|
+
...e.pulseAnimation,
|
|
63
|
+
textDecoration: "none",
|
|
64
|
+
display: "inline-flex",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "center"
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
69
|
+
}
|
|
70
|
+
) : /* @__PURE__ */ o.jsx(
|
|
71
|
+
a,
|
|
72
|
+
{
|
|
73
|
+
variant: "soft",
|
|
74
|
+
sx: {
|
|
75
|
+
...e.signInButton,
|
|
76
|
+
...e.pulseAnimation
|
|
77
|
+
},
|
|
78
|
+
onClick: () => {
|
|
79
|
+
var A, j, B;
|
|
80
|
+
((A = n.signInCTA) == null ? void 0 : A.target) === "_blank" ? window.open((j = n.signInCTA) == null ? void 0 : j.url, "_blank") : window.location.href = (B = n.signInCTA) == null ? void 0 : B.url;
|
|
81
|
+
},
|
|
82
|
+
children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
83
|
+
}
|
|
84
|
+
) : /* @__PURE__ */ o.jsx(
|
|
85
|
+
a,
|
|
86
|
+
{
|
|
87
|
+
variant: "soft",
|
|
88
|
+
sx: {
|
|
89
|
+
...e.signInButton
|
|
90
|
+
},
|
|
91
|
+
disabled: !0,
|
|
92
|
+
children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
93
|
+
}
|
|
94
|
+
) : /* @__PURE__ */ o.jsx(
|
|
95
|
+
a,
|
|
96
|
+
{
|
|
97
|
+
variant: "soft",
|
|
98
|
+
sx: {
|
|
99
|
+
...e.signInButton
|
|
100
|
+
},
|
|
101
|
+
disabled: !0,
|
|
102
|
+
children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: i("common.signIn") })
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
return /* @__PURE__ */ o.jsx(U, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: /* @__PURE__ */ o.jsx(
|
|
107
|
+
J,
|
|
108
|
+
{
|
|
109
|
+
entity: n.poll,
|
|
110
|
+
headline: i("poll.headline"),
|
|
111
|
+
finalImage: s,
|
|
112
|
+
imagePosition: M,
|
|
113
|
+
signInContent: N(),
|
|
114
|
+
rulesDisplay: n.rulesDisplay,
|
|
115
|
+
brandingContent: /* @__PURE__ */ o.jsx(
|
|
116
|
+
E,
|
|
117
|
+
{
|
|
118
|
+
brandingLogo: G,
|
|
119
|
+
textColor: m && s ? (t == null ? void 0 : t.contentColor) || c.colorSchemes.dark.textColor : g,
|
|
120
|
+
label: ((f = n.poll.labels) == null ? void 0 : f.sponsor) || null,
|
|
121
|
+
isCentered: !0
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
) });
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
un as default
|
|
129
|
+
};
|