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,118 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as o, Typography as a } from "@mui/joy";
|
|
3
|
-
import { useFontFamily as c, isMobile as s } from "../../../../common/src/functions/theme.js";
|
|
4
|
-
import { getBrandingClickUrl as d } 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 "react";
|
|
8
|
-
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
const k = (e) => {
|
|
11
|
-
const l = c().secondary, x = s(), i = d(e.primaryUrl, e.secondaryUrl, "logo");
|
|
12
|
-
if (!e.brandingLogo)
|
|
13
|
-
return null;
|
|
14
|
-
const m = () => {
|
|
15
|
-
i && window.open(i, "_blank", "noopener,noreferrer");
|
|
16
|
-
}, t = /* @__PURE__ */ n.jsx(
|
|
17
|
-
"img",
|
|
18
|
-
{
|
|
19
|
-
src: e.brandingLogo,
|
|
20
|
-
alt: "branding-logo",
|
|
21
|
-
style: {
|
|
22
|
-
maxHeight: "50px",
|
|
23
|
-
maxWidth: "100px"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
), r = i ? typeof window > "u" ? /* @__PURE__ */ n.jsx(
|
|
27
|
-
o,
|
|
28
|
-
{
|
|
29
|
-
component: "a",
|
|
30
|
-
href: i,
|
|
31
|
-
target: "_blank",
|
|
32
|
-
rel: "noopener noreferrer",
|
|
33
|
-
sx: {
|
|
34
|
-
cursor: "pointer",
|
|
35
|
-
textDecoration: "none",
|
|
36
|
-
display: "inline-flex"
|
|
37
|
-
},
|
|
38
|
-
children: t
|
|
39
|
-
}
|
|
40
|
-
) : /* @__PURE__ */ n.jsx(
|
|
41
|
-
o,
|
|
42
|
-
{
|
|
43
|
-
onClick: m,
|
|
44
|
-
sx: {
|
|
45
|
-
cursor: "pointer",
|
|
46
|
-
display: "inline-flex"
|
|
47
|
-
},
|
|
48
|
-
children: t
|
|
49
|
-
}
|
|
50
|
-
) : t;
|
|
51
|
-
return x ? /* @__PURE__ */ n.jsxs(
|
|
52
|
-
o,
|
|
53
|
-
{
|
|
54
|
-
sx: {
|
|
55
|
-
display: "flex",
|
|
56
|
-
flexDirection: "column",
|
|
57
|
-
gap: "8px",
|
|
58
|
-
alignItems: "center",
|
|
59
|
-
minWidth: "180px",
|
|
60
|
-
fontSize: "1em",
|
|
61
|
-
zIndex: 1
|
|
62
|
-
},
|
|
63
|
-
children: [
|
|
64
|
-
e.label && /* @__PURE__ */ n.jsx(
|
|
65
|
-
a,
|
|
66
|
-
{
|
|
67
|
-
level: "body-sm",
|
|
68
|
-
sx: {
|
|
69
|
-
fontWeight: 400,
|
|
70
|
-
lineHeight: "166%",
|
|
71
|
-
letterSpacing: "0.4px",
|
|
72
|
-
fontSize: "1em",
|
|
73
|
-
color: e.textColor,
|
|
74
|
-
textAlign: "right",
|
|
75
|
-
fontFamily: l
|
|
76
|
-
},
|
|
77
|
-
children: e.label
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
r
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
) : /* @__PURE__ */ n.jsxs(
|
|
84
|
-
o,
|
|
85
|
-
{
|
|
86
|
-
sx: {
|
|
87
|
-
minWidth: "180px",
|
|
88
|
-
display: "flex",
|
|
89
|
-
gap: "8px",
|
|
90
|
-
alignItems: "center",
|
|
91
|
-
zIndex: 10,
|
|
92
|
-
fontSize: "1em"
|
|
93
|
-
},
|
|
94
|
-
children: [
|
|
95
|
-
e.label && /* @__PURE__ */ n.jsx(
|
|
96
|
-
a,
|
|
97
|
-
{
|
|
98
|
-
level: "body-sm",
|
|
99
|
-
sx: {
|
|
100
|
-
fontWeight: 400,
|
|
101
|
-
lineHeight: "166%",
|
|
102
|
-
letterSpacing: "0.4px",
|
|
103
|
-
textAlign: "right",
|
|
104
|
-
fontSize: "1em",
|
|
105
|
-
color: e.textColor,
|
|
106
|
-
fontFamily: l
|
|
107
|
-
},
|
|
108
|
-
children: e.label
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
r
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
k as default
|
|
118
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as l, Typography as F } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as q, useSpacingScale as w, useImageBackgroundGradient as H, isMobile as L } from "../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { sanitizeBackgroundUrl as J } 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 I } from "../../../../../common/src/enums/enums.js";
|
|
8
|
-
import "react";
|
|
9
|
-
import { useConstantContext as K } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import { useImageVariant as N } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import Q from "../../../assets/default-quiz-bg.png.js";
|
|
14
|
-
import X from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
15
|
-
import Z from "../../Shared/PresentedBy.js";
|
|
16
|
-
import _ from "../../Leads/CollectLeadWrapper.js";
|
|
17
|
-
import { createStyles as $ } from "./LeadOverlayVariant.styles.js";
|
|
18
|
-
import { ConfigurationContext as ee } from "../../../providers/ConfigurationProvider.js";
|
|
19
|
-
const oe = (e) => {
|
|
20
|
-
let t = (e == null ? void 0 : e.mainLogo) || null;
|
|
21
|
-
return L() && (t = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), t;
|
|
22
|
-
}, je = () => {
|
|
23
|
-
var s, a, n, i, m, c, d, p, x, h, u, g, f, y, C, j, k, S;
|
|
24
|
-
const e = K(ee), t = q(), P = w(), b = H(
|
|
25
|
-
I.OVERLAY
|
|
26
|
-
), R = oe(
|
|
27
|
-
((s = e.branding) == null ? void 0 : s.images) || null
|
|
28
|
-
), T = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : L() ? X : Q, V = N(
|
|
29
|
-
{
|
|
30
|
-
images: e.images || null,
|
|
31
|
-
imagePlaceholder: T
|
|
32
|
-
},
|
|
33
|
-
I.OVERLAY
|
|
34
|
-
), v = J(V), z = t.colorSchemes.dark.textColor, E = t.customFontFamily.dark.primary, O = t.customFontFamily.dark.secondary, U = t.customRadius.dark.md, W = (a = t.border) == null ? void 0 : a.dark.size, A = (i = (n = t.colorSchemes) == null ? void 0 : n.dark) == null ? void 0 : i.surfaceVariant, G = (c = (m = t.customRadius) == null ? void 0 : m.light) == null ? void 0 : c.xl, Y = (h = (x = (p = (d = t.colorSchemes) == null ? void 0 : d.light) == null ? void 0 : p.palette) == null ? void 0 : x.primary) == null ? void 0 : h.plainColor, D = (y = (f = (g = (u = t.colorSchemes) == null ? void 0 : u.light) == null ? void 0 : g.palette) == null ? void 0 : f.primary) == null ? void 0 : y.onPrimary, r = $({
|
|
35
|
-
spacingScale: P,
|
|
36
|
-
secondaryColor: z,
|
|
37
|
-
fontFamilyPrimary: E,
|
|
38
|
-
fontFamilySecondary: O,
|
|
39
|
-
mdBorderRadius: U,
|
|
40
|
-
borderSize: W,
|
|
41
|
-
contentBgColor: A,
|
|
42
|
-
buttonRadius: G,
|
|
43
|
-
primaryColor: Y,
|
|
44
|
-
onPrimaryColor: D,
|
|
45
|
-
backgroundImage: v,
|
|
46
|
-
darkTextColor: t.colorSchemes.dark.textColor,
|
|
47
|
-
imageBackgroundGradient: b
|
|
48
|
-
}), M = () => {
|
|
49
|
-
var B;
|
|
50
|
-
return /* @__PURE__ */ o.jsx(
|
|
51
|
-
Z,
|
|
52
|
-
{
|
|
53
|
-
brandingLogo: R,
|
|
54
|
-
textColor: t.colorSchemes.dark.textColor,
|
|
55
|
-
label: (B = e.labels) == null ? void 0 : B.presentedByLabel
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
return /* @__PURE__ */ o.jsxs(l, { sx: r.mainContainer, children: [
|
|
60
|
-
(C = e.labels) != null && C.title || (j = e.labels) != null && j.description ? /* @__PURE__ */ o.jsx(l, { children: /* @__PURE__ */ o.jsx(l, { sx: r.headlineSection, children: /* @__PURE__ */ o.jsx(l, { sx: r.headlineContent, children: /* @__PURE__ */ o.jsx(l, { sx: r.headlineContentInner, children: /* @__PURE__ */ o.jsxs(l, { sx: r.contentContainer, children: [
|
|
61
|
-
(k = e.labels) != null && k.title ? /* @__PURE__ */ o.jsx(F, { level: "h4", sx: r.titleText, children: e.labels.title }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
62
|
-
(S = e.labels) != null && S.description ? /* @__PURE__ */ o.jsx(F, { level: "body-lg", sx: r.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ o.jsx(o.Fragment, {})
|
|
63
|
-
] }) }) }) }) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
64
|
-
/* @__PURE__ */ o.jsxs(l, { sx: r.mainContentSection, children: [
|
|
65
|
-
/* @__PURE__ */ o.jsx(l, { sx: r.contentContainerWithBackdrop, children: /* @__PURE__ */ o.jsx(_, {}) }),
|
|
66
|
-
/* @__PURE__ */ o.jsx(l, { sx: r.bottomFooterContainer, children: M() })
|
|
67
|
-
] })
|
|
68
|
-
] });
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
je as default
|
|
72
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
const t = (e) => ({
|
|
2
|
-
// Main container with background overlay
|
|
3
|
-
mainContainer: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
justifyContent: "space-between",
|
|
7
|
-
gap: "40px",
|
|
8
|
-
p: e.spacingScale.xl,
|
|
9
|
-
boxShadow: "md",
|
|
10
|
-
border: "none",
|
|
11
|
-
overflow: "hidden",
|
|
12
|
-
backgroundImage: e.backgroundImage,
|
|
13
|
-
backgroundPosition: "center",
|
|
14
|
-
backgroundSize: "cover",
|
|
15
|
-
position: "relative",
|
|
16
|
-
borderRadius: e.mdBorderRadius,
|
|
17
|
-
minHeight: "250px",
|
|
18
|
-
"&::before": {
|
|
19
|
-
content: '""',
|
|
20
|
-
position: "absolute",
|
|
21
|
-
background: e.imageBackgroundGradient,
|
|
22
|
-
top: 0,
|
|
23
|
-
left: 0,
|
|
24
|
-
right: 0,
|
|
25
|
-
bottom: 0,
|
|
26
|
-
borderRadius: "inherit",
|
|
27
|
-
zIndex: 0
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
// Headline section wrapper
|
|
31
|
-
headlineSection: {
|
|
32
|
-
display: "flex",
|
|
33
|
-
justifyContent: "space-between",
|
|
34
|
-
flex: "1 0 0",
|
|
35
|
-
alignSelf: "stretch"
|
|
36
|
-
},
|
|
37
|
-
// Headline content container
|
|
38
|
-
headlineContent: {
|
|
39
|
-
display: "flex",
|
|
40
|
-
flexDirection: "column",
|
|
41
|
-
alignItems: "flex-start",
|
|
42
|
-
flex: "1 0 0",
|
|
43
|
-
gap: "16px"
|
|
44
|
-
},
|
|
45
|
-
// Headline content with z-index
|
|
46
|
-
headlineContentInner: {
|
|
47
|
-
zIndex: 10
|
|
48
|
-
},
|
|
49
|
-
// headline typography
|
|
50
|
-
headlineText: {
|
|
51
|
-
fontWeight: 500,
|
|
52
|
-
lineHeight: "166%",
|
|
53
|
-
letterSpacing: "1px",
|
|
54
|
-
textAlign: { xs: "center", md: "left" },
|
|
55
|
-
color: e.secondaryColor,
|
|
56
|
-
opacity: "70%",
|
|
57
|
-
textTransform: "uppercase",
|
|
58
|
-
fontFamily: e.fontFamilySecondary,
|
|
59
|
-
fontSize: "0.75em"
|
|
60
|
-
},
|
|
61
|
-
// Content container
|
|
62
|
-
contentContainer: {
|
|
63
|
-
display: "flex",
|
|
64
|
-
flexDirection: "column",
|
|
65
|
-
gap: e.spacingScale["3xs"]
|
|
66
|
-
},
|
|
67
|
-
// Title typography
|
|
68
|
-
titleText: {
|
|
69
|
-
fontWeight: 700,
|
|
70
|
-
lineHeight: "133%",
|
|
71
|
-
letterSpacing: "0px",
|
|
72
|
-
fontSize: "1.5em",
|
|
73
|
-
color: e.darkTextColor,
|
|
74
|
-
fontFamily: e.fontFamilyPrimary,
|
|
75
|
-
textAlign: { xs: "center", md: "left" }
|
|
76
|
-
},
|
|
77
|
-
// Poll description typography
|
|
78
|
-
pollDescriptionText: {
|
|
79
|
-
fontWeight: 400,
|
|
80
|
-
lineHeight: "140%",
|
|
81
|
-
letterSpacing: "0.15px",
|
|
82
|
-
fontSize: "1.25em",
|
|
83
|
-
textAlign: { xs: "center", md: "left" },
|
|
84
|
-
color: e.secondaryColor,
|
|
85
|
-
opacity: "70%",
|
|
86
|
-
fontFamily: e.fontFamilyPrimary
|
|
87
|
-
},
|
|
88
|
-
// Main content section (non-filter screen)
|
|
89
|
-
mainContentSection: {
|
|
90
|
-
display: "flex",
|
|
91
|
-
flexDirection: "column",
|
|
92
|
-
gap: "24px"
|
|
93
|
-
},
|
|
94
|
-
// Content container with backdrop
|
|
95
|
-
contentContainerWithBackdrop: {
|
|
96
|
-
borderRadius: e.mdBorderRadius,
|
|
97
|
-
p: e.spacingScale.md,
|
|
98
|
-
display: "flex",
|
|
99
|
-
flexDirection: "column",
|
|
100
|
-
gap: e.spacingScale.md,
|
|
101
|
-
backdropFilter: "blur(4px)",
|
|
102
|
-
position: "relative",
|
|
103
|
-
"&::before": {
|
|
104
|
-
content: '""',
|
|
105
|
-
position: "absolute",
|
|
106
|
-
top: 0,
|
|
107
|
-
left: 0,
|
|
108
|
-
right: 0,
|
|
109
|
-
bottom: 0,
|
|
110
|
-
backgroundColor: e.contentBgColor,
|
|
111
|
-
opacity: 0.5,
|
|
112
|
-
borderRadius: "inherit",
|
|
113
|
-
zIndex: 0
|
|
114
|
-
},
|
|
115
|
-
"& > *": {
|
|
116
|
-
position: "relative",
|
|
117
|
-
zIndex: 1
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
// Alternative title section
|
|
121
|
-
alternativeTitleSection: {
|
|
122
|
-
display: "flex",
|
|
123
|
-
gap: "8px",
|
|
124
|
-
alignItems: "flex-start",
|
|
125
|
-
justifyContent: "center"
|
|
126
|
-
},
|
|
127
|
-
// Alternative title text
|
|
128
|
-
alternativeTitleText: {
|
|
129
|
-
fontFamily: e.fontFamilyPrimary,
|
|
130
|
-
lineHeight: "150%",
|
|
131
|
-
letterSpacing: "0.15px",
|
|
132
|
-
fontWeight: 500,
|
|
133
|
-
fontSize: "1.25em",
|
|
134
|
-
textAlign: "center",
|
|
135
|
-
color: e.darkTextColor
|
|
136
|
-
},
|
|
137
|
-
// Bottom footer container
|
|
138
|
-
bottomFooterContainer: {
|
|
139
|
-
display: "flex",
|
|
140
|
-
alignItems: "center",
|
|
141
|
-
justifyContent: "space-between",
|
|
142
|
-
flexDirection: { xs: "column-reverse", md: "row" },
|
|
143
|
-
gap: e.spacingScale.md
|
|
144
|
-
},
|
|
145
|
-
// Next button
|
|
146
|
-
nextButton: {
|
|
147
|
-
borderRadius: e.buttonRadius,
|
|
148
|
-
py: "10px",
|
|
149
|
-
px: "16px",
|
|
150
|
-
bgcolor: e.primaryColor,
|
|
151
|
-
color: e.onPrimaryColor,
|
|
152
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
153
|
-
transform: "scale(1)",
|
|
154
|
-
ml: { md: "auto" },
|
|
155
|
-
"&:hover": {
|
|
156
|
-
bgcolor: e.primaryColor,
|
|
157
|
-
transform: "scale(1.02)"
|
|
158
|
-
},
|
|
159
|
-
"&:active": {
|
|
160
|
-
color: e.onPrimaryColor,
|
|
161
|
-
transform: "scale(0.98)"
|
|
162
|
-
},
|
|
163
|
-
"&:disabled": {
|
|
164
|
-
bgcolor: e.primaryColor,
|
|
165
|
-
color: e.onPrimaryColor,
|
|
166
|
-
opacity: "34%"
|
|
167
|
-
},
|
|
168
|
-
"--Icon-color": e.onPrimaryColor,
|
|
169
|
-
fontSize: "0.9375em"
|
|
170
|
-
},
|
|
171
|
-
// Next button text
|
|
172
|
-
nextButtonText: {
|
|
173
|
-
fontFamily: e.fontFamilyPrimary,
|
|
174
|
-
fontWeight: 500,
|
|
175
|
-
fontSize: "0.9375em",
|
|
176
|
-
lineHeight: "24px",
|
|
177
|
-
letterSpacing: "0.46px",
|
|
178
|
-
textTransform: "uppercase",
|
|
179
|
-
color: e.onPrimaryColor,
|
|
180
|
-
gap: "8px",
|
|
181
|
-
display: "flex",
|
|
182
|
-
alignItems: "center"
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
export {
|
|
186
|
-
t as createStyles
|
|
187
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as t, Typography as P } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as z, isMobile as T, useColors as s, useFontFamily as L, useCornerRadius as k, useSpacingScale as J, useImageBackgroundGradient as K } from "../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { hexToRgb as N } 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 B } from "../../../../../common/src/enums/enums.js";
|
|
8
|
-
import "react";
|
|
9
|
-
import { useConstantContext as O } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import { useImageVariant as Q } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import X from "../../Shared/MainCard.js";
|
|
14
|
-
import Y from "../../../assets/default-quiz-bg.png.js";
|
|
15
|
-
import Z from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
16
|
-
import _ from "../../Shared/PresentedBy.js";
|
|
17
|
-
import $ from "../../Leads/CollectLeadWrapper.js";
|
|
18
|
-
import { createStyles as ee } from "./LeadSplitVariant.styles.js";
|
|
19
|
-
import { ConfigurationContext as oe } from "../../../providers/ConfigurationProvider.js";
|
|
20
|
-
const je = () => {
|
|
21
|
-
var p, x, g, u, C, b, f, h, y, j;
|
|
22
|
-
const o = O(oe), i = z(), F = o.defaultImagePlaceholderUrl ? o.defaultImagePlaceholderUrl : T() ? Z : Y, R = Q(
|
|
23
|
-
{
|
|
24
|
-
images: o.images || null,
|
|
25
|
-
imagePlaceholder: F
|
|
26
|
-
},
|
|
27
|
-
B.SPLIT
|
|
28
|
-
), l = T() ? ((x = (p = o.branding) == null ? void 0 : p.images) == null ? void 0 : x.mobileLogo) || ((u = (g = o.branding) == null ? void 0 : g.images) == null ? void 0 : u.mainLogo) || "" : ((b = (C = o.branding) == null ? void 0 : C.images) == null ? void 0 : b.mainLogo) || "", V = s().textColor, q = L().secondary, A = "60%", D = L().primary, G = k().xl, M = s().surfaceVariant, U = (h = (f = s().palette) == null ? void 0 : f.primary) == null ? void 0 : h.plainColor, W = (j = (y = s().palette) == null ? void 0 : y.primary) == null ? void 0 : j.onPrimary, m = s().textColor, c = J(), E = k(), H = K(
|
|
29
|
-
B.SPLIT
|
|
30
|
-
), v = N(M || ""), r = ee({
|
|
31
|
-
finalImage: R,
|
|
32
|
-
spacingScale: c,
|
|
33
|
-
borderRadius: E,
|
|
34
|
-
fontFamilyPrimary: D,
|
|
35
|
-
fontFamilySecondary: q,
|
|
36
|
-
secondaryColor: V,
|
|
37
|
-
opacity: A,
|
|
38
|
-
buttonRadius: G,
|
|
39
|
-
bgcolor: v,
|
|
40
|
-
primaryColor: U,
|
|
41
|
-
onPrimaryColor: W,
|
|
42
|
-
textColor: m,
|
|
43
|
-
darkTextColor: i.colorSchemes.dark.textColor,
|
|
44
|
-
imageBackgroundGradient: H
|
|
45
|
-
}), d = (a) => {
|
|
46
|
-
var n;
|
|
47
|
-
return /* @__PURE__ */ e.jsx(
|
|
48
|
-
_,
|
|
49
|
-
{
|
|
50
|
-
brandingLogo: l,
|
|
51
|
-
textColor: a,
|
|
52
|
-
label: (n = o.labels) == null ? void 0 : n.presentedByLabel
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}, w = () => {
|
|
56
|
-
var a, n, I, S;
|
|
57
|
-
return /* @__PURE__ */ e.jsx(t, { sx: r.headlineSection, children: /* @__PURE__ */ e.jsxs(t, { sx: r.headlineContent, children: [
|
|
58
|
-
(a = o.labels) != null && a.title || (n = o.labels) != null && n.description ? /* @__PURE__ */ e.jsx(t, { children: /* @__PURE__ */ e.jsxs(t, { sx: r.contentContainer, children: [
|
|
59
|
-
(I = o.labels) != null && I.title ? /* @__PURE__ */ e.jsx(P, { sx: r.pollTitleText, children: o.labels.title }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
60
|
-
(S = o.labels) != null && S.description ? /* @__PURE__ */ e.jsx(P, { sx: r.pollDescriptionText, children: o.labels.description }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
61
|
-
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
62
|
-
l ? /* @__PURE__ */ e.jsx(t, { sx: r.presentedByDesktop, children: d(i.colorSchemes.dark.textColor) }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
63
|
-
] }) });
|
|
64
|
-
};
|
|
65
|
-
return /* @__PURE__ */ e.jsxs(X, { children: [
|
|
66
|
-
w(),
|
|
67
|
-
/* @__PURE__ */ e.jsx(t, { sx: r.questionArea, children: /* @__PURE__ */ e.jsxs(t, { sx: r.questionAreaInner, children: [
|
|
68
|
-
/* @__PURE__ */ e.jsx(t, { sx: r.leadContentContainer, children: /* @__PURE__ */ e.jsx($, {}) }),
|
|
69
|
-
/* @__PURE__ */ e.jsx(
|
|
70
|
-
t,
|
|
71
|
-
{
|
|
72
|
-
sx: { display: { xs: "block", md: "none" }, px: c.md },
|
|
73
|
-
children: d(m)
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
] }) })
|
|
77
|
-
] });
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
je as default
|
|
81
|
-
};
|