fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC6
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 +4847 -3
- package/CollectLead.js +1253 -3
- package/EventGamePlay.js +7595 -3
- package/MatchQuizPlay.js +11002 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4167 -3
- package/chunks/CollectLeadForm-DtmR2Vuf.js +844 -0
- package/chunks/Error-DhQL89pn.js +120 -0
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +2425 -0
- package/chunks/OverlayLeadAfterCollection-DnqztPJ5.js +899 -0
- package/chunks/OverlayScoreStateSkeleton-C9FUhcnd.js +147 -0
- package/chunks/Portal-BWqqFvVm.js +13823 -0
- 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,137 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as a, AspectRatio as ce, Typography as N, Button as de } from "@mui/joy";
|
|
3
|
-
import M from "react";
|
|
4
|
-
import { useSpacingScale as ue, useInternalTheme as ge, isMobile as _, isLarge as he } from "../../../../../common/src/functions/theme.js";
|
|
5
|
-
import { extractBrandingProperties as fe } 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 xe } from "../../../../../common/src/enums/enums.js";
|
|
9
|
-
import { useConstantContext as be } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import { ConstantsContext as ye } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import Ce from "../../../../../common/src/components/Skeletons/Overlay/OverlaySkeleton.js";
|
|
12
|
-
import { useImageVariant as je } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
13
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
14
|
-
import Pe from "../../../assets/default-quiz-bg.png.js";
|
|
15
|
-
import Se from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
16
|
-
import Te from "../../Shared/PresentedBy.js";
|
|
17
|
-
import ke from "../../Leads/CollectLeadWrapper.js";
|
|
18
|
-
import { useEmbedCode as Ie } from "../../../hooks/useEmbedCodeContainer.js";
|
|
19
|
-
import { createStyles as pe } from "./PollOverlayVariant.styles.js";
|
|
20
|
-
import Le from "../../Shared/Answers/PollOptions.js";
|
|
21
|
-
import { usePollOptionsImages as Re } from "../../../hooks/usePollOptionsImages.js";
|
|
22
|
-
import { useTranslation as ve } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
23
|
-
const Ze = (e) => {
|
|
24
|
-
var d, u, g, h, f, x, b, y, C, j, P, S, T, k, I, p, L, R, v, B, D, F, O, V, E, U;
|
|
25
|
-
const [s, m] = M.useState(
|
|
26
|
-
((d = e.leads) == null ? void 0 : d.position) === "before" && e.poll.authRequirement === "LEAD"
|
|
27
|
-
);
|
|
28
|
-
M.useEffect(() => {
|
|
29
|
-
var n;
|
|
30
|
-
m(
|
|
31
|
-
((n = e.leads) == null ? void 0 : n.position) === "before" && e.poll.authRequirement === "LEAD" || !1
|
|
32
|
-
);
|
|
33
|
-
}, [(u = e.leads) == null ? void 0 : u.position, e.poll.authRequirement]);
|
|
34
|
-
const { optionsLayout: G } = be(ye), Y = ue(), l = ge(), z = Re(e.options), { t: r } = ve(), H = _(), J = he(), K = Ie(e.poll.embedCode), Q = !s && !!e.poll.embedCode, X = ((g = e.leads) == null ? void 0 : g.position) === "after" ? r("poll.buttons.continue") : r("poll.buttons.vote"), { brandingImage: Z, brandingColors: o, brandingLogo: $ } = fe(e.poll.branding || null), ee = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Se : Pe, te = Z || je(
|
|
35
|
-
{
|
|
36
|
-
images: e.poll.images,
|
|
37
|
-
imagePlaceholder: ee
|
|
38
|
-
},
|
|
39
|
-
xe.OVERLAY
|
|
40
|
-
), c = l.customRadius.dark.sm, le = (o == null ? void 0 : o.backgroundColor) || ((f = (h = l.colorSchemes) == null ? void 0 : h.dark) == null ? void 0 : f.surfaceVariant), oe = (b = (x = l.customRadius) == null ? void 0 : x.light) == null ? void 0 : b.xl, ie = (o == null ? void 0 : o.primaryColor) || ((P = (j = (C = (y = l.colorSchemes) == null ? void 0 : y.light) == null ? void 0 : C.palette) == null ? void 0 : j.primary) == null ? void 0 : P.plainColor), ae = (I = (k = (T = (S = l.colorSchemes) == null ? void 0 : S.light) == null ? void 0 : T.palette) == null ? void 0 : k.primary) == null ? void 0 : I.onPrimary, ne = l.customFontFamily.dark.primary, se = l.colorSchemes.dark.textColor, i = pe({
|
|
41
|
-
spacingScale: Y,
|
|
42
|
-
smBorderRadius: c,
|
|
43
|
-
contentBgColor: le,
|
|
44
|
-
buttonRadius: oe,
|
|
45
|
-
primaryColor: ie,
|
|
46
|
-
onPrimaryColor: ae,
|
|
47
|
-
fontFamilyPrimary: ne,
|
|
48
|
-
darkTextColor: se,
|
|
49
|
-
isMobile: H
|
|
50
|
-
}), re = () => {
|
|
51
|
-
m(!1);
|
|
52
|
-
}, me = () => {
|
|
53
|
-
var n, w, W, A, q;
|
|
54
|
-
return /* @__PURE__ */ t.jsx(
|
|
55
|
-
Te,
|
|
56
|
-
{
|
|
57
|
-
brandingLogo: $,
|
|
58
|
-
textColor: l.colorSchemes.dark.textColor,
|
|
59
|
-
label: ((n = e.poll.labels) == null ? void 0 : n.sponsor) || null,
|
|
60
|
-
primaryUrl: (W = (w = e.poll.branding) == null ? void 0 : w.urls) == null ? void 0 : W.primaryUrl,
|
|
61
|
-
secondaryUrl: (q = (A = e.poll.branding) == null ? void 0 : A.urls) == null ? void 0 : q.secondaryUrl
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
return /* @__PURE__ */ t.jsx(
|
|
66
|
-
Ce,
|
|
67
|
-
{
|
|
68
|
-
entity: e.poll,
|
|
69
|
-
headline: r("poll.headline"),
|
|
70
|
-
finalImage: te,
|
|
71
|
-
rulesDisplay: e.rulesDisplay,
|
|
72
|
-
children: /* @__PURE__ */ t.jsxs(a, { sx: i.mainContentSection, children: [
|
|
73
|
-
/* @__PURE__ */ t.jsx(a, { sx: i.contentContainerWithBackdrop, children: s ? /* @__PURE__ */ t.jsx(
|
|
74
|
-
ke,
|
|
75
|
-
{
|
|
76
|
-
sdk: e.sdk,
|
|
77
|
-
startGame: re,
|
|
78
|
-
contentId: e.poll.id,
|
|
79
|
-
contentName: e.poll.title,
|
|
80
|
-
brandingColors: (p = e.poll.branding) == null ? void 0 : p.colors,
|
|
81
|
-
brandingUrls: (L = e.poll.branding) == null ? void 0 : L.urls,
|
|
82
|
-
campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
|
|
83
|
-
campaignName: (v = e.leads) == null ? void 0 : v.campaignName,
|
|
84
|
-
fields: (B = e.leads) == null ? void 0 : B.fields,
|
|
85
|
-
leadTitle: (D = e.poll.labels) == null ? void 0 : D.leadTitle,
|
|
86
|
-
leadDescription: (F = e.poll.labels) == null ? void 0 : F.leadDescription,
|
|
87
|
-
leadCta: (O = e.poll.labels) == null ? void 0 : O.leadCta,
|
|
88
|
-
leadSuccessTitle: (V = e.poll.labels) == null ? void 0 : V.leadSuccessTitle,
|
|
89
|
-
leadSuccessDescription: (E = e.poll.labels) == null ? void 0 : E.leadSuccessDescription,
|
|
90
|
-
syncWithProfile: (U = e.leads) == null ? void 0 : U.syncWithProfile
|
|
91
|
-
}
|
|
92
|
-
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
93
|
-
Q && /* @__PURE__ */ t.jsx(a, { sx: { overflow: "hidden", borderRadius: c }, children: /* @__PURE__ */ t.jsx(
|
|
94
|
-
ce,
|
|
95
|
-
{
|
|
96
|
-
ratio: "16/9",
|
|
97
|
-
slotProps: { content: { sx: { height: "100%" } } },
|
|
98
|
-
children: /* @__PURE__ */ t.jsx(a, { ref: K })
|
|
99
|
-
}
|
|
100
|
-
) }),
|
|
101
|
-
e.poll.alternativeTitle ? /* @__PURE__ */ t.jsx(a, { sx: i.alternativeTitleSection, children: /* @__PURE__ */ t.jsx(N, { level: "body-lg", sx: i.alternativeTitleText, children: e.poll.alternativeTitle }) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
102
|
-
/* @__PURE__ */ t.jsx(
|
|
103
|
-
Le,
|
|
104
|
-
{
|
|
105
|
-
options: e.options || [],
|
|
106
|
-
answerPoll: e.answerPoll,
|
|
107
|
-
selectedOptions: e.selectedOptions,
|
|
108
|
-
optionsLayout: J ? "column" : G ?? "row",
|
|
109
|
-
brandingColors: o,
|
|
110
|
-
optionsImages: z,
|
|
111
|
-
multipleChoice: e.poll.multipleChoice,
|
|
112
|
-
maxChoices: e.optionChoices,
|
|
113
|
-
isVoting: e.isVoting
|
|
114
|
-
}
|
|
115
|
-
)
|
|
116
|
-
] }) }),
|
|
117
|
-
/* @__PURE__ */ t.jsxs(a, { sx: i.bottomFooterContainer, children: [
|
|
118
|
-
me(),
|
|
119
|
-
!s && /* @__PURE__ */ t.jsx(
|
|
120
|
-
de,
|
|
121
|
-
{
|
|
122
|
-
variant: "soft",
|
|
123
|
-
sx: i.nextButton,
|
|
124
|
-
onClick: e.voteForPoll,
|
|
125
|
-
loading: e.isVoting,
|
|
126
|
-
disabled: e.selectedOptions.length === 0 || e.isVoting,
|
|
127
|
-
children: /* @__PURE__ */ t.jsx(N, { sx: i.nextButtonText, children: X })
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
] })
|
|
131
|
-
] })
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
};
|
|
135
|
-
export {
|
|
136
|
-
Ze as default
|
|
137
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
const o = (e) => ({
|
|
2
|
-
// Main content section (non-filter screen)
|
|
3
|
-
mainContentSection: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
gap: "24px"
|
|
7
|
-
},
|
|
8
|
-
// Content container with backdrop
|
|
9
|
-
contentContainerWithBackdrop: {
|
|
10
|
-
borderRadius: e.smBorderRadius,
|
|
11
|
-
p: e.spacingScale.md,
|
|
12
|
-
display: "flex",
|
|
13
|
-
flexDirection: "column",
|
|
14
|
-
gap: e.spacingScale.md,
|
|
15
|
-
backdropFilter: "blur(4px)",
|
|
16
|
-
position: "relative",
|
|
17
|
-
"&::before": {
|
|
18
|
-
content: '""',
|
|
19
|
-
position: "absolute",
|
|
20
|
-
top: 0,
|
|
21
|
-
left: 0,
|
|
22
|
-
right: 0,
|
|
23
|
-
bottom: 0,
|
|
24
|
-
backgroundColor: e.contentBgColor,
|
|
25
|
-
opacity: 0.5,
|
|
26
|
-
borderRadius: "inherit",
|
|
27
|
-
zIndex: 0
|
|
28
|
-
},
|
|
29
|
-
"& > *": {
|
|
30
|
-
position: "relative",
|
|
31
|
-
zIndex: 1
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
// Alternative title section
|
|
35
|
-
alternativeTitleSection: {
|
|
36
|
-
display: "flex",
|
|
37
|
-
gap: "8px",
|
|
38
|
-
alignItems: "flex-start",
|
|
39
|
-
justifyContent: "center"
|
|
40
|
-
},
|
|
41
|
-
// Alternative title text
|
|
42
|
-
alternativeTitleText: {
|
|
43
|
-
fontFamily: e.fontFamilyPrimary,
|
|
44
|
-
lineHeight: "150%",
|
|
45
|
-
letterSpacing: "0.15px",
|
|
46
|
-
fontWeight: 500,
|
|
47
|
-
fontSize: "1.25em",
|
|
48
|
-
textAlign: "center",
|
|
49
|
-
color: e.darkTextColor
|
|
50
|
-
},
|
|
51
|
-
// Bottom footer container
|
|
52
|
-
bottomFooterContainer: {
|
|
53
|
-
display: "flex",
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
justifyContent: e.isMobile ? "center" : "space-between",
|
|
56
|
-
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
57
|
-
gap: e.spacingScale.md
|
|
58
|
-
},
|
|
59
|
-
// Next button
|
|
60
|
-
nextButton: {
|
|
61
|
-
borderRadius: e.buttonRadius,
|
|
62
|
-
py: "10px",
|
|
63
|
-
px: "16px",
|
|
64
|
-
bgcolor: e.primaryColor,
|
|
65
|
-
color: e.onPrimaryColor,
|
|
66
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
67
|
-
transform: "scale(1)",
|
|
68
|
-
ml: e.isMobile ? 0 : { md: "auto" },
|
|
69
|
-
"&:hover": {
|
|
70
|
-
bgcolor: e.primaryColor,
|
|
71
|
-
transform: "scale(1.02)",
|
|
72
|
-
boxShadow: "var(--joy-shadow-md)"
|
|
73
|
-
},
|
|
74
|
-
"&:active": {
|
|
75
|
-
color: e.onPrimaryColor,
|
|
76
|
-
transform: "scale(0.98)",
|
|
77
|
-
boxShadow: "var(--joy-shadow-md)"
|
|
78
|
-
},
|
|
79
|
-
"&:disabled": {
|
|
80
|
-
bgcolor: e.primaryColor,
|
|
81
|
-
color: e.onPrimaryColor,
|
|
82
|
-
opacity: "34%",
|
|
83
|
-
boxShadow: "var(--joy-shadow-md)"
|
|
84
|
-
},
|
|
85
|
-
"--Icon-color": e.onPrimaryColor,
|
|
86
|
-
fontSize: "0.9375em",
|
|
87
|
-
boxShadow: "var(--joy-shadow-md)"
|
|
88
|
-
},
|
|
89
|
-
// Next button text
|
|
90
|
-
nextButtonText: {
|
|
91
|
-
fontFamily: e.fontFamilyPrimary,
|
|
92
|
-
fontWeight: 500,
|
|
93
|
-
fontSize: "0.9375em",
|
|
94
|
-
lineHeight: "24px",
|
|
95
|
-
letterSpacing: "0.46px",
|
|
96
|
-
textTransform: "uppercase",
|
|
97
|
-
color: e.onPrimaryColor,
|
|
98
|
-
gap: "8px",
|
|
99
|
-
display: "flex",
|
|
100
|
-
alignItems: "center"
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
o as createStyles
|
|
105
|
-
};
|
package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as a, Typography as m, Button as P } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as O, useSpacingScale as V, isLarge as L, useImageBackgroundGradient as F, isMobile as M } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { extractBrandingProperties as U, sanitizeBackgroundUrl as E } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { WidgetTemplate as d } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
-
import W from "../../../../../../common/src/components/AdditionalCTA.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import { useConstantContext as w } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
11
|
-
import { ConstantsContext as z } from "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
12
|
-
import D from "../../../../../../common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js";
|
|
13
|
-
import G from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
|
|
14
|
-
import { useImageVariant as Y } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
15
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
16
|
-
import q from "../../../../assets/default-quiz-bg.png.js";
|
|
17
|
-
import H from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
18
|
-
import J from "../../../Shared/PresentedBy.js";
|
|
19
|
-
import { createStyles as K } from "./PollOverlayScoreState.styles.js";
|
|
20
|
-
import N from "../../../Shared/AlertMessage.js";
|
|
21
|
-
import { usePollOptionsImages as Q } from "../../../../hooks/usePollOptionsImages.js";
|
|
22
|
-
import X from "../../../Shared/Results/PollOptionsResults.js";
|
|
23
|
-
import { useTranslation as Z } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
24
|
-
const jt = (e) => {
|
|
25
|
-
const n = O(), u = V(), { t: i } = Z(), x = L(), g = F(
|
|
26
|
-
d.OVERLAY
|
|
27
|
-
), { optionsLayout: h } = w(z), { brandingImage: y, brandingColors: r, brandingLogo: p } = U(e.poll.branding), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : M() ? H : q, C = y || Y(
|
|
28
|
-
{
|
|
29
|
-
images: e.poll.images,
|
|
30
|
-
imagePlaceholder: f
|
|
31
|
-
},
|
|
32
|
-
d.OVERLAY
|
|
33
|
-
), S = E(C), j = Q(e.poll.options), A = (r == null ? void 0 : r.secondaryColor) || n.colorSchemes.dark.textSecondary, T = n.colorSchemes.dark.secondaryContainer, k = n.colorSchemes.dark.textPrimary, I = n.customFontFamily.light.primary, B = n.customRadius.light.md, b = n.customRadius.light.xl, v = (r == null ? void 0 : r.backgroundColor) || n.colorSchemes.dark.surfaceVariant, o = K({
|
|
34
|
-
spacingScale: u,
|
|
35
|
-
secondaryColor: A,
|
|
36
|
-
secondaryContainer: T,
|
|
37
|
-
textPrimary: k,
|
|
38
|
-
fontFamilyPrimary: I,
|
|
39
|
-
mdBorderRadius: B,
|
|
40
|
-
xlBorderRadius: b,
|
|
41
|
-
contentBgColor: v,
|
|
42
|
-
onSurfaceColor: n.colorSchemes.dark.onSurface,
|
|
43
|
-
surfaceVariantColor: n.colorSchemes.dark.surfaceVariant,
|
|
44
|
-
darkTextColor: n.colorSchemes.dark.textColor
|
|
45
|
-
}), R = () => {
|
|
46
|
-
var l, s, c;
|
|
47
|
-
return /* @__PURE__ */ t.jsxs(a, { sx: o.mainContentWrapper, children: [
|
|
48
|
-
e.isUnauthorized ? /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
49
|
-
N,
|
|
50
|
-
{
|
|
51
|
-
variant: "error",
|
|
52
|
-
title: i("common.authentication.accessRequired"),
|
|
53
|
-
message: i("common.authentication.invalidOrMissingAuth")
|
|
54
|
-
}
|
|
55
|
-
) }) : /* @__PURE__ */ t.jsx(a, { sx: o.resultsContainer, children: /* @__PURE__ */ t.jsxs(a, { sx: o.resultsWrapper, children: [
|
|
56
|
-
e.poll.alternativeTitle ? /* @__PURE__ */ t.jsx(a, { sx: o.alternativeTitleSection, children: /* @__PURE__ */ t.jsx(m, { level: "body-lg", sx: o.alternativeTitleText, children: e.poll.alternativeTitle }) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
57
|
-
/* @__PURE__ */ t.jsx(a, { sx: { width: "100%" }, children: /* @__PURE__ */ t.jsx(
|
|
58
|
-
X,
|
|
59
|
-
{
|
|
60
|
-
options: e.poll.options,
|
|
61
|
-
selectedOptions: ((l = e.userVote) == null ? void 0 : l.optionIds) || [],
|
|
62
|
-
optionsLayout: x ? "column" : h ?? "row",
|
|
63
|
-
optionsImages: j,
|
|
64
|
-
brandingColors: ((s = e.poll.branding) == null ? void 0 : s.colors) || null
|
|
65
|
-
}
|
|
66
|
-
) })
|
|
67
|
-
] }) }),
|
|
68
|
-
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t.jsx(a, { sx: o.ctaSection, children: /* @__PURE__ */ t.jsxs(a, { sx: o.buttonsContainer, children: [
|
|
69
|
-
!e.maxAttemptsReached && /* @__PURE__ */ t.jsx(P, { sx: o.playAgainButton, onClick: e.voteAgain, children: /* @__PURE__ */ t.jsxs(a, { sx: o.playAgainButtonContent, children: [
|
|
70
|
-
/* @__PURE__ */ t.jsx(G, { sx: o.playAgainIcon }),
|
|
71
|
-
/* @__PURE__ */ t.jsx(m, { sx: o.playAgainText, children: i("poll.buttons.voteAgain") })
|
|
72
|
-
] }) }),
|
|
73
|
-
/* @__PURE__ */ t.jsx(
|
|
74
|
-
W,
|
|
75
|
-
{
|
|
76
|
-
additionalCTA: e.additionalCTA,
|
|
77
|
-
buttonStyle: o.additionalCTAButton,
|
|
78
|
-
buttonContentStyle: o.additionalCTAButtonContent,
|
|
79
|
-
textStyle: o.additionalCTAText
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] }) }),
|
|
83
|
-
/* @__PURE__ */ t.jsx(
|
|
84
|
-
J,
|
|
85
|
-
{
|
|
86
|
-
brandingLogo: p,
|
|
87
|
-
textColor: n.colorSchemes.dark.textColor,
|
|
88
|
-
label: ((c = e.poll.labels) == null ? void 0 : c.sponsor) || null
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
] });
|
|
92
|
-
};
|
|
93
|
-
return /* @__PURE__ */ t.jsx(
|
|
94
|
-
D,
|
|
95
|
-
{
|
|
96
|
-
entity: e.poll,
|
|
97
|
-
headline: i("poll.headline"),
|
|
98
|
-
backgroundImage: S,
|
|
99
|
-
imageBackgroundGradient: g,
|
|
100
|
-
rulesDisplay: e.rulesDisplay,
|
|
101
|
-
children: R()
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
};
|
|
105
|
-
export {
|
|
106
|
-
jt as default
|
|
107
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
const t = (e) => ({
|
|
2
|
-
// Main content wrapper
|
|
3
|
-
mainContentWrapper: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
gap: "24px",
|
|
7
|
-
zIndex: 10
|
|
8
|
-
},
|
|
9
|
-
resultsContainer: {
|
|
10
|
-
borderRadius: e.mdBorderRadius,
|
|
11
|
-
p: e.spacingScale.md,
|
|
12
|
-
display: "flex",
|
|
13
|
-
flexDirection: "column",
|
|
14
|
-
alignItems: "center",
|
|
15
|
-
alignSelf: "stretch",
|
|
16
|
-
gap: e.spacingScale.md,
|
|
17
|
-
backdropFilter: "blur(4px)",
|
|
18
|
-
position: "relative",
|
|
19
|
-
"&::before": {
|
|
20
|
-
content: '""',
|
|
21
|
-
position: "absolute",
|
|
22
|
-
top: 0,
|
|
23
|
-
left: 0,
|
|
24
|
-
right: 0,
|
|
25
|
-
bottom: 0,
|
|
26
|
-
backgroundColor: e.contentBgColor,
|
|
27
|
-
opacity: 0.25,
|
|
28
|
-
borderRadius: "inherit",
|
|
29
|
-
zIndex: 0,
|
|
30
|
-
backdropFilter: "blur(4px)"
|
|
31
|
-
},
|
|
32
|
-
"& > *": {
|
|
33
|
-
position: "relative",
|
|
34
|
-
zIndex: 1
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
resultsWrapper: {
|
|
38
|
-
display: "flex",
|
|
39
|
-
flexDirection: "column",
|
|
40
|
-
justifyContent: "center",
|
|
41
|
-
alignItems: "center",
|
|
42
|
-
alignSelf: "stretch"
|
|
43
|
-
},
|
|
44
|
-
alternativeTitleSection: {
|
|
45
|
-
display: "flex",
|
|
46
|
-
gap: "8px",
|
|
47
|
-
alignItems: "flex-start",
|
|
48
|
-
justifyContent: "center"
|
|
49
|
-
},
|
|
50
|
-
alternativeTitleText: {
|
|
51
|
-
fontFamily: e.fontFamilyPrimary,
|
|
52
|
-
lineHeight: "150%",
|
|
53
|
-
letterSpacing: "0.15px",
|
|
54
|
-
fontWeight: 500,
|
|
55
|
-
fontSize: "1.25em",
|
|
56
|
-
textAlign: "center",
|
|
57
|
-
color: e.darkTextColor
|
|
58
|
-
},
|
|
59
|
-
ctaSection: {
|
|
60
|
-
borderRadius: e.mdBorderRadius,
|
|
61
|
-
py: e.spacingScale.md,
|
|
62
|
-
display: "flex",
|
|
63
|
-
flexDirection: "column",
|
|
64
|
-
alignItems: "center",
|
|
65
|
-
alignSelf: "stretch",
|
|
66
|
-
gap: e.spacingScale.md,
|
|
67
|
-
backdropFilter: "blur(4px)",
|
|
68
|
-
position: "relative",
|
|
69
|
-
"&::before": {
|
|
70
|
-
content: '""',
|
|
71
|
-
position: "absolute",
|
|
72
|
-
top: 0,
|
|
73
|
-
left: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
backgroundColor: e.contentBgColor,
|
|
77
|
-
opacity: 0.25,
|
|
78
|
-
borderRadius: "inherit",
|
|
79
|
-
zIndex: 0,
|
|
80
|
-
backdropFilter: "blur(4px)"
|
|
81
|
-
},
|
|
82
|
-
"& > *": {
|
|
83
|
-
position: "relative",
|
|
84
|
-
zIndex: 1
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
// Buttons container
|
|
88
|
-
buttonsContainer: {
|
|
89
|
-
display: "flex",
|
|
90
|
-
flexDirection: "column",
|
|
91
|
-
gap: e.spacingScale.md
|
|
92
|
-
},
|
|
93
|
-
// Play again button
|
|
94
|
-
playAgainButton: {
|
|
95
|
-
display: "flex",
|
|
96
|
-
minHeight: "48px",
|
|
97
|
-
py: "12px",
|
|
98
|
-
pr: "24px",
|
|
99
|
-
pl: "16px",
|
|
100
|
-
flexDirection: "column",
|
|
101
|
-
justifyContent: "center",
|
|
102
|
-
alignItems: "center",
|
|
103
|
-
gap: "8px",
|
|
104
|
-
borderRadius: e.xlBorderRadius,
|
|
105
|
-
bgcolor: e.onSurfaceColor,
|
|
106
|
-
"&:hover": {
|
|
107
|
-
bgcolor: e.surfaceVariantColor
|
|
108
|
-
},
|
|
109
|
-
fontSize: "0.9375em"
|
|
110
|
-
},
|
|
111
|
-
// Play again button content
|
|
112
|
-
playAgainButtonContent: {
|
|
113
|
-
display: "flex",
|
|
114
|
-
justifyContent: "center",
|
|
115
|
-
alignItems: "center",
|
|
116
|
-
gap: "8px",
|
|
117
|
-
alignSelf: "stretch"
|
|
118
|
-
},
|
|
119
|
-
// Play again icon
|
|
120
|
-
playAgainIcon: {
|
|
121
|
-
display: "flex",
|
|
122
|
-
width: "24px",
|
|
123
|
-
height: "24px",
|
|
124
|
-
justifyContent: "center",
|
|
125
|
-
alignItems: "center",
|
|
126
|
-
color: e.textPrimary
|
|
127
|
-
},
|
|
128
|
-
// Play again text
|
|
129
|
-
playAgainText: {
|
|
130
|
-
color: e.textPrimary,
|
|
131
|
-
textAlign: "center",
|
|
132
|
-
fontFamily: e.fontFamilyPrimary,
|
|
133
|
-
fontSize: "0.9375em",
|
|
134
|
-
fontStyle: "normal",
|
|
135
|
-
fontWeight: 500,
|
|
136
|
-
lineHeight: "24px",
|
|
137
|
-
letterSpacing: "0.46px",
|
|
138
|
-
textTransform: "uppercase"
|
|
139
|
-
},
|
|
140
|
-
// Additional CTA button (secondary style)
|
|
141
|
-
additionalCTAButton: {
|
|
142
|
-
display: "flex",
|
|
143
|
-
py: e.spacingScale.sm,
|
|
144
|
-
px: e.spacingScale.md,
|
|
145
|
-
flexDirection: "column",
|
|
146
|
-
justifyContent: "center",
|
|
147
|
-
alignItems: "center",
|
|
148
|
-
gap: "8px",
|
|
149
|
-
borderRadius: e.xlBorderRadius,
|
|
150
|
-
bgcolor: e.secondaryContainer,
|
|
151
|
-
"&:hover": {
|
|
152
|
-
bgcolor: e.secondaryContainer,
|
|
153
|
-
opacity: 0.9
|
|
154
|
-
},
|
|
155
|
-
fontSize: "0.9375em"
|
|
156
|
-
},
|
|
157
|
-
// Additional CTA button content
|
|
158
|
-
additionalCTAButtonContent: {
|
|
159
|
-
display: "flex",
|
|
160
|
-
justifyContent: "center",
|
|
161
|
-
alignItems: "center",
|
|
162
|
-
gap: "8px"
|
|
163
|
-
},
|
|
164
|
-
// Additional CTA text
|
|
165
|
-
additionalCTAText: {
|
|
166
|
-
color: e.secondaryColor,
|
|
167
|
-
fontFamily: e.fontFamilyPrimary,
|
|
168
|
-
fontSize: "0.9375em",
|
|
169
|
-
fontStyle: "normal",
|
|
170
|
-
fontWeight: 500,
|
|
171
|
-
lineHeight: "24px",
|
|
172
|
-
letterSpacing: "0.46px",
|
|
173
|
-
textTransform: "uppercase"
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
export {
|
|
177
|
-
t as createStyles
|
|
178
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Button as l, Typography as r, Box as _ } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as G, isMobile as Y, useImageBackgroundGradient as z } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { extractBrandingProperties as M, sanitizeBackgroundUrl as W } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { WidgetTemplate as P } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
-
import q from "../../../../../../common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js";
|
|
11
|
-
import { useImageVariant as H } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import J from "../../../../assets/default-quiz-bg.png.js";
|
|
14
|
-
import K from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
15
|
-
import N from "../../../Shared/PresentedBy.js";
|
|
16
|
-
import { createStyles as Q } from "./PollOverlaySignIn.styles.js";
|
|
17
|
-
import { useTranslation as X } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
18
|
-
const xn = (n) => {
|
|
19
|
-
var s, m, g, c, u, d, I, f, x, C, h;
|
|
20
|
-
const o = G(), { t: i } = X(), S = Y(), L = z(
|
|
21
|
-
P.OVERLAY
|
|
22
|
-
), { brandingImage: p, brandingColors: a, brandingLogo: v } = M(n.poll.branding || null), w = n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : S ? K : J, R = p || H(
|
|
23
|
-
{
|
|
24
|
-
images: n.poll.images,
|
|
25
|
-
imagePlaceholder: w
|
|
26
|
-
},
|
|
27
|
-
P.OVERLAY
|
|
28
|
-
), O = W(R), D = (m = (s = o.customRadius) == null ? void 0 : s.light) == null ? void 0 : m.xl, E = (a == null ? void 0 : a.primaryColor) || ((d = (u = (c = (g = o.colorSchemes) == null ? void 0 : g.light) == null ? void 0 : c.palette) == null ? void 0 : u.primary) == null ? void 0 : d.plainColor), F = (C = (x = (f = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : f.palette) == null ? void 0 : x.primary) == null ? void 0 : C.onPrimary, U = o.customFontFamily.dark.primary, t = Q({
|
|
29
|
-
buttonRadius: D,
|
|
30
|
-
primaryColor: E,
|
|
31
|
-
onPrimaryColor: F,
|
|
32
|
-
fontFamilyPrimary: U
|
|
33
|
-
}), V = () => {
|
|
34
|
-
var T, y, A, b;
|
|
35
|
-
return n.signInCTA ? (T = n.signInCTA) != null && T.component ? n.signInCTA.component : (y = n.signInCTA) != null && y.onClick ? /* @__PURE__ */ e.jsx(
|
|
36
|
-
l,
|
|
37
|
-
{
|
|
38
|
-
variant: "soft",
|
|
39
|
-
sx: {
|
|
40
|
-
...t.signInButton,
|
|
41
|
-
...t.pulseAnimation
|
|
42
|
-
},
|
|
43
|
-
onClick: n.signInCTA.onClick,
|
|
44
|
-
children: /* @__PURE__ */ e.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
45
|
-
}
|
|
46
|
-
) : (A = n.signInCTA) != null && A.url ? typeof window > "u" ? /* @__PURE__ */ e.jsx(
|
|
47
|
-
_,
|
|
48
|
-
{
|
|
49
|
-
component: "a",
|
|
50
|
-
href: n.signInCTA.url,
|
|
51
|
-
target: ((b = n.signInCTA) == null ? void 0 : b.target) || "_self",
|
|
52
|
-
sx: {
|
|
53
|
-
...t.signInButton,
|
|
54
|
-
...t.pulseAnimation,
|
|
55
|
-
textDecoration: "none",
|
|
56
|
-
display: "inline-flex",
|
|
57
|
-
alignItems: "center",
|
|
58
|
-
justifyContent: "center"
|
|
59
|
-
},
|
|
60
|
-
children: /* @__PURE__ */ e.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
61
|
-
}
|
|
62
|
-
) : /* @__PURE__ */ e.jsx(
|
|
63
|
-
l,
|
|
64
|
-
{
|
|
65
|
-
variant: "soft",
|
|
66
|
-
sx: {
|
|
67
|
-
...t.signInButton,
|
|
68
|
-
...t.pulseAnimation
|
|
69
|
-
},
|
|
70
|
-
onClick: () => {
|
|
71
|
-
var B, j, k;
|
|
72
|
-
((B = n.signInCTA) == null ? void 0 : B.target) === "_blank" ? window.open((j = n.signInCTA) == null ? void 0 : j.url, "_blank") : window.location.href = (k = n.signInCTA) == null ? void 0 : k.url;
|
|
73
|
-
},
|
|
74
|
-
children: /* @__PURE__ */ e.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
75
|
-
}
|
|
76
|
-
) : /* @__PURE__ */ e.jsx(
|
|
77
|
-
l,
|
|
78
|
-
{
|
|
79
|
-
variant: "soft",
|
|
80
|
-
sx: {
|
|
81
|
-
...t.signInButton
|
|
82
|
-
},
|
|
83
|
-
disabled: !0,
|
|
84
|
-
children: /* @__PURE__ */ e.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
|
|
85
|
-
}
|
|
86
|
-
) : /* @__PURE__ */ e.jsx(
|
|
87
|
-
l,
|
|
88
|
-
{
|
|
89
|
-
variant: "soft",
|
|
90
|
-
sx: {
|
|
91
|
-
...t.signInButton
|
|
92
|
-
},
|
|
93
|
-
disabled: !0,
|
|
94
|
-
children: /* @__PURE__ */ e.jsx(r, { sx: t.signInButtonText, children: i("common.signIn") })
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
return /* @__PURE__ */ e.jsx(
|
|
99
|
-
q,
|
|
100
|
-
{
|
|
101
|
-
entity: n.poll,
|
|
102
|
-
headline: i("poll.headline"),
|
|
103
|
-
backgroundImage: O,
|
|
104
|
-
imageBackgroundGradient: L,
|
|
105
|
-
signInContent: V(),
|
|
106
|
-
rulesDisplay: n.rulesDisplay,
|
|
107
|
-
brandingContent: /* @__PURE__ */ e.jsx(
|
|
108
|
-
N,
|
|
109
|
-
{
|
|
110
|
-
brandingLogo: v,
|
|
111
|
-
textColor: o.colorSchemes.dark.textColor,
|
|
112
|
-
label: ((h = n.poll.labels) == null ? void 0 : h.sponsor) || null
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
xn as default
|
|
120
|
-
};
|