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