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,338 +0,0 @@
|
|
|
1
|
-
const t = (e) => ({
|
|
2
|
-
// Main headline section with background image
|
|
3
|
-
headlineSection: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
justifyContent: "space-between",
|
|
7
|
-
gap: "10px",
|
|
8
|
-
// flex: "0.5",
|
|
9
|
-
flex: { xs: "1", md: "0 0 50%" },
|
|
10
|
-
width: { xs: "100%", md: "50%" },
|
|
11
|
-
minWidth: { xs: "100%", md: "50%" },
|
|
12
|
-
maxWidth: { xs: "100%", md: "50%" },
|
|
13
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
14
|
-
backgroundSize: "cover",
|
|
15
|
-
backgroundPosition: "center",
|
|
16
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
17
|
-
borderTopRightRadius: { xs: e.borderRadius.md, md: "0" },
|
|
18
|
-
borderBottomLeftRadius: { xs: 0, md: e.borderRadius.md },
|
|
19
|
-
overflow: "hidden",
|
|
20
|
-
height: "auto",
|
|
21
|
-
position: "relative",
|
|
22
|
-
minHeight: { xs: "210px", md: "430px" },
|
|
23
|
-
"&::before": {
|
|
24
|
-
content: '""',
|
|
25
|
-
position: "absolute",
|
|
26
|
-
width: "100%",
|
|
27
|
-
height: "100%",
|
|
28
|
-
background: e.imageBackgroundGradient,
|
|
29
|
-
borderTopLeftRadius: "5px",
|
|
30
|
-
borderTopRightRadius: "5px"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
embedCodeHeadlineSection: {
|
|
34
|
-
flex: "0.5",
|
|
35
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
36
|
-
borderTopRightRadius: { xs: e.borderRadius.md, md: "0" },
|
|
37
|
-
borderBottomLeftRadius: { xs: 0, md: e.borderRadius.md },
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
height: "auto",
|
|
40
|
-
position: "relative",
|
|
41
|
-
minHeight: { xs: "210px", md: "430px" }
|
|
42
|
-
},
|
|
43
|
-
// Headline content wrapper
|
|
44
|
-
embedCodeHeadlineContent: {
|
|
45
|
-
gap: e.spacingScale.xl,
|
|
46
|
-
display: "flex",
|
|
47
|
-
flexDirection: "column",
|
|
48
|
-
alignItems: "center"
|
|
49
|
-
},
|
|
50
|
-
// Filter screen area
|
|
51
|
-
filterScreenArea: {
|
|
52
|
-
flex: "0.5",
|
|
53
|
-
display: "flex",
|
|
54
|
-
flexDirection: "column",
|
|
55
|
-
p: e.spacingScale.lg
|
|
56
|
-
},
|
|
57
|
-
// Filter screen headline section
|
|
58
|
-
filterScreenHeadlineContent: {
|
|
59
|
-
display: "flex",
|
|
60
|
-
flexDirection: "column",
|
|
61
|
-
justifyContent: "space-between",
|
|
62
|
-
gap: e.spacingScale["2xl"],
|
|
63
|
-
textAlign: "center"
|
|
64
|
-
},
|
|
65
|
-
// Filter screen headline text
|
|
66
|
-
filterScreenHeadlineText: {
|
|
67
|
-
fontWeight: 500,
|
|
68
|
-
lineHeight: "166%",
|
|
69
|
-
letterSpacing: "1px",
|
|
70
|
-
textTransform: "uppercase",
|
|
71
|
-
fontSize: "0.75em",
|
|
72
|
-
color: e.secondaryColor,
|
|
73
|
-
opacity: e.opacity,
|
|
74
|
-
fontFamily: e.fontFamilySecondary
|
|
75
|
-
},
|
|
76
|
-
// Filter screen title text
|
|
77
|
-
filterScreenTitleText: {
|
|
78
|
-
fontWeight: 700,
|
|
79
|
-
lineHeight: "133%",
|
|
80
|
-
letterSpacing: "0px",
|
|
81
|
-
fontSize: "1.5em",
|
|
82
|
-
color: e.textColor,
|
|
83
|
-
fontFamily: e.fontFamilyPrimary
|
|
84
|
-
},
|
|
85
|
-
// Filter screen description text
|
|
86
|
-
filterScreenDescriptionText: {
|
|
87
|
-
fontWeight: 400,
|
|
88
|
-
lineHeight: "140%",
|
|
89
|
-
letterSpacing: "0.15px",
|
|
90
|
-
fontSize: "1.25em",
|
|
91
|
-
color: e.secondaryColor,
|
|
92
|
-
opacity: e.opacity,
|
|
93
|
-
fontFamily: e.fontFamilyPrimary
|
|
94
|
-
},
|
|
95
|
-
// Filter screen CTA wrapper
|
|
96
|
-
filterScreenCtaWrapper: {
|
|
97
|
-
display: "flex",
|
|
98
|
-
flexDirection: "column",
|
|
99
|
-
justifyContent: "space-between",
|
|
100
|
-
alignItems: "center",
|
|
101
|
-
gap: e.spacingScale["2xl"]
|
|
102
|
-
},
|
|
103
|
-
// Headline content wrapper
|
|
104
|
-
headlineContent: {
|
|
105
|
-
zIndex: 1,
|
|
106
|
-
height: "100%",
|
|
107
|
-
p: e.spacingScale.xl,
|
|
108
|
-
gap: e.spacingScale.xl,
|
|
109
|
-
display: "flex",
|
|
110
|
-
flexDirection: "column",
|
|
111
|
-
justifyContent: "space-between"
|
|
112
|
-
},
|
|
113
|
-
// Poll headline typography
|
|
114
|
-
pollHeadlineText: {
|
|
115
|
-
fontWeight: 500,
|
|
116
|
-
lineHeight: "166%",
|
|
117
|
-
letterSpacing: "1px",
|
|
118
|
-
fontSize: "0.75em",
|
|
119
|
-
color: e.darkTextColor,
|
|
120
|
-
opacity: "70%",
|
|
121
|
-
textTransform: "uppercase",
|
|
122
|
-
fontFamily: e.fontFamilySecondary,
|
|
123
|
-
textAlign: { xs: "center", md: "left" }
|
|
124
|
-
},
|
|
125
|
-
// Poll headline typography on filter screen
|
|
126
|
-
pollHeadlineTextFilterScreen: {
|
|
127
|
-
fontWeight: 500,
|
|
128
|
-
lineHeight: "166%",
|
|
129
|
-
letterSpacing: "1px",
|
|
130
|
-
fontSize: "0.75em",
|
|
131
|
-
color: e.textColor,
|
|
132
|
-
opacity: "70%",
|
|
133
|
-
textTransform: "uppercase",
|
|
134
|
-
fontFamily: e.fontFamilySecondary,
|
|
135
|
-
textAlign: { xs: "center", md: "left" }
|
|
136
|
-
},
|
|
137
|
-
// Content container
|
|
138
|
-
contentContainer: {
|
|
139
|
-
display: "flex",
|
|
140
|
-
flexDirection: "column",
|
|
141
|
-
gap: e.spacingScale["3xs"]
|
|
142
|
-
},
|
|
143
|
-
// Poll title typography
|
|
144
|
-
pollTitleText: {
|
|
145
|
-
fontWeight: 700,
|
|
146
|
-
lineHeight: "133%",
|
|
147
|
-
fontSize: "1.5em",
|
|
148
|
-
letterSpacing: "0.15px",
|
|
149
|
-
color: e.darkTextColor,
|
|
150
|
-
fontFamily: e.fontFamilyPrimary,
|
|
151
|
-
textAlign: { xs: "center", md: "left" }
|
|
152
|
-
},
|
|
153
|
-
// Poll title typography on filter screen
|
|
154
|
-
pollTitleTextFilterScreen: {
|
|
155
|
-
fontWeight: 700,
|
|
156
|
-
lineHeight: "133%",
|
|
157
|
-
fontSize: "1.5em",
|
|
158
|
-
letterSpacing: "0.15px",
|
|
159
|
-
color: e.textColor,
|
|
160
|
-
fontFamily: e.fontFamilyPrimary,
|
|
161
|
-
textAlign: { xs: "center", md: "left" }
|
|
162
|
-
},
|
|
163
|
-
// Poll description typography
|
|
164
|
-
pollDescriptionText: {
|
|
165
|
-
fontWeight: 400,
|
|
166
|
-
lineHeight: "140%",
|
|
167
|
-
fontSize: "1.25em",
|
|
168
|
-
letterSpacing: "0.15px",
|
|
169
|
-
color: e.darkTextColor,
|
|
170
|
-
opacity: "70%",
|
|
171
|
-
fontFamily: e.fontFamilyPrimary,
|
|
172
|
-
textAlign: { xs: "center", md: "left" }
|
|
173
|
-
},
|
|
174
|
-
// Poll description typography on filter screen
|
|
175
|
-
pollDescriptionTextFilterScreen: {
|
|
176
|
-
fontWeight: 400,
|
|
177
|
-
lineHeight: "140%",
|
|
178
|
-
fontSize: "1.25em",
|
|
179
|
-
letterSpacing: "0.15px",
|
|
180
|
-
color: e.textColor,
|
|
181
|
-
opacity: "70%",
|
|
182
|
-
fontFamily: e.fontFamilyPrimary,
|
|
183
|
-
textAlign: { xs: "center", md: "left" }
|
|
184
|
-
},
|
|
185
|
-
// Filter screen bottom container
|
|
186
|
-
filterScreenBottomContainer: {
|
|
187
|
-
display: "flex",
|
|
188
|
-
flexDirection: { md: "row", xs: "column-reverse" },
|
|
189
|
-
justifyContent: "space-between",
|
|
190
|
-
alignItems: "center",
|
|
191
|
-
gap: e.spacingScale.lg
|
|
192
|
-
},
|
|
193
|
-
// Start button (filter screen)
|
|
194
|
-
startButton: {
|
|
195
|
-
borderRadius: e.buttonRadius,
|
|
196
|
-
bgcolor: e.primaryColor,
|
|
197
|
-
color: e.onPrimaryColor,
|
|
198
|
-
"&:hover": {
|
|
199
|
-
bgcolor: e.primaryColor
|
|
200
|
-
},
|
|
201
|
-
"&:active": {
|
|
202
|
-
color: e.onPrimaryColor
|
|
203
|
-
},
|
|
204
|
-
animation: "pulse 1s infinite",
|
|
205
|
-
fontSize: "0.9375em",
|
|
206
|
-
py: "10px",
|
|
207
|
-
pr: "12px",
|
|
208
|
-
pl: "16px",
|
|
209
|
-
"--Icon-color": e.onPrimaryColor
|
|
210
|
-
},
|
|
211
|
-
// Start button text
|
|
212
|
-
startButtonText: {
|
|
213
|
-
fontFamily: e.fontFamilyPrimary,
|
|
214
|
-
fontWeight: 500,
|
|
215
|
-
fontSize: "0.9375em",
|
|
216
|
-
lineHeight: "24px",
|
|
217
|
-
letterSpacing: "0.46px",
|
|
218
|
-
textTransform: "uppercase",
|
|
219
|
-
color: e.onPrimaryColor,
|
|
220
|
-
gap: "8px",
|
|
221
|
-
display: "flex",
|
|
222
|
-
alignItems: "center"
|
|
223
|
-
},
|
|
224
|
-
// Presented by desktop container
|
|
225
|
-
presentedByDesktop: {
|
|
226
|
-
display: { xs: "none", md: "block" }
|
|
227
|
-
},
|
|
228
|
-
// Question area
|
|
229
|
-
questionArea: {
|
|
230
|
-
flex: { xs: "1", md: "0 0 50%" },
|
|
231
|
-
width: { md: "50%" },
|
|
232
|
-
minWidth: { md: "50%" },
|
|
233
|
-
maxWidth: { md: "50%" },
|
|
234
|
-
p: { xs: e.spacingScale.md, md: 0 },
|
|
235
|
-
display: "flex",
|
|
236
|
-
flexDirection: "column",
|
|
237
|
-
justifyContent: "center"
|
|
238
|
-
},
|
|
239
|
-
questionAreaInner: {
|
|
240
|
-
p: { xs: e.spacingScale.md, md: e.spacingScale.lg },
|
|
241
|
-
display: "flex",
|
|
242
|
-
flexDirection: "column",
|
|
243
|
-
justifyContent: "center",
|
|
244
|
-
gap: "16px"
|
|
245
|
-
},
|
|
246
|
-
// Stopwatch container
|
|
247
|
-
stopwatchContainer: {
|
|
248
|
-
display: "flex",
|
|
249
|
-
justifyContent: "center"
|
|
250
|
-
},
|
|
251
|
-
// Lead content container (filter screen)
|
|
252
|
-
leadContentContainer: {
|
|
253
|
-
p: e.spacingScale.md,
|
|
254
|
-
pb: e.spacingScale.lg,
|
|
255
|
-
gap: e.spacingScale.md,
|
|
256
|
-
display: "flex",
|
|
257
|
-
flexDirection: "column",
|
|
258
|
-
backdropFilter: "blur(4px)",
|
|
259
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
260
|
-
borderRadius: e.borderRadius.sm
|
|
261
|
-
},
|
|
262
|
-
// Question area content wrapper
|
|
263
|
-
questionAreaContent: {
|
|
264
|
-
p: e.spacingScale.lg,
|
|
265
|
-
display: "flex",
|
|
266
|
-
flexDirection: "column",
|
|
267
|
-
justifyContent: "center",
|
|
268
|
-
gap: "16px"
|
|
269
|
-
},
|
|
270
|
-
// Main content container
|
|
271
|
-
mainContentContainer: {
|
|
272
|
-
p: e.spacingScale.lg,
|
|
273
|
-
gap: e.spacingScale.md,
|
|
274
|
-
display: "flex",
|
|
275
|
-
flexDirection: "column",
|
|
276
|
-
backdropFilter: "blur(4px)",
|
|
277
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
278
|
-
borderRadius: e.borderRadius.sm
|
|
279
|
-
},
|
|
280
|
-
// Aspect ratio container for embed/image
|
|
281
|
-
aspectRatioContainer: {
|
|
282
|
-
borderRadius: e.borderRadius.sm,
|
|
283
|
-
height: "100%",
|
|
284
|
-
flex: 1,
|
|
285
|
-
// Take all available space
|
|
286
|
-
"& > div": {
|
|
287
|
-
height: "100% !important",
|
|
288
|
-
flex: "1 !important"
|
|
289
|
-
// Force flex growth
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
// Question image container
|
|
293
|
-
questionImageContainer: {
|
|
294
|
-
overflow: "hidden",
|
|
295
|
-
borderRadius: e.borderRadius.sm
|
|
296
|
-
},
|
|
297
|
-
// Question image box
|
|
298
|
-
questionImageBox: {
|
|
299
|
-
borderRadius: e.borderRadius.sm,
|
|
300
|
-
overflow: "hidden",
|
|
301
|
-
height: "auto"
|
|
302
|
-
},
|
|
303
|
-
// Question image
|
|
304
|
-
questionImage: {
|
|
305
|
-
width: "100%",
|
|
306
|
-
height: "100%",
|
|
307
|
-
objectFit: "cover"
|
|
308
|
-
},
|
|
309
|
-
// Alternative title section
|
|
310
|
-
alternativeTitleSection: {
|
|
311
|
-
gap: "8px",
|
|
312
|
-
display: "flex",
|
|
313
|
-
justifyContent: "center"
|
|
314
|
-
},
|
|
315
|
-
// Alternative title text
|
|
316
|
-
alternativeTitleText: {
|
|
317
|
-
fontFamily: e.fontFamilyPrimary,
|
|
318
|
-
lineHeight: "150%",
|
|
319
|
-
letterSpacing: "0.15px",
|
|
320
|
-
fontWeight: 500,
|
|
321
|
-
fontSize: "1.25em",
|
|
322
|
-
textAlign: "center",
|
|
323
|
-
color: e.textColor
|
|
324
|
-
},
|
|
325
|
-
// Button and footer container
|
|
326
|
-
buttonFooterContainer: {
|
|
327
|
-
display: "flex",
|
|
328
|
-
flexDirection: "column",
|
|
329
|
-
gap: e.spacingScale.lg
|
|
330
|
-
},
|
|
331
|
-
// Presented by mobile container
|
|
332
|
-
presentedByMobile: {
|
|
333
|
-
display: { xs: "block", md: "none" }
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
export {
|
|
337
|
-
t as createStyles
|
|
338
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as o, Typography as n } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as K, isMobile as O, useColors as s, useFontFamily as L, useCornerRadius as m, useSpacingScale as X, useImageBackgroundGradient as Y } from "../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { hexToRgb as Z } 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 k } from "../../../../../common/src/enums/enums.js";
|
|
8
|
-
import "react";
|
|
9
|
-
import { useConstantContext as _ } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import { useImageVariant as $ } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import ee from "../../Shared/MainCard.js";
|
|
14
|
-
import re from "../../Shared/PresentedBy.js";
|
|
15
|
-
import te from "../../Leads/CollectLeadWrapper.js";
|
|
16
|
-
import { createStyles as oe } from "./LeadStandardVariant.styles.js";
|
|
17
|
-
import { ConfigurationContext as ne } from "../../../providers/ConfigurationProvider.js";
|
|
18
|
-
const Fe = (A) => {
|
|
19
|
-
var g, h, b, j, y, u, C, f, F;
|
|
20
|
-
const r = _(ne), D = K(), d = O(), M = d ? ((h = (g = r.branding) == null ? void 0 : g.images) == null ? void 0 : h.mobileLogo) || ((j = (b = r.branding) == null ? void 0 : b.images) == null ? void 0 : j.mainLogo) || "" : ((u = (y = r.branding) == null ? void 0 : y.images) == null ? void 0 : u.mainLogo) || "", c = A.imagePosition || "left", a = $(
|
|
21
|
-
{
|
|
22
|
-
images: r.images || null,
|
|
23
|
-
imagePlaceholder: r.defaultImagePlaceholderUrl ? r.defaultImagePlaceholderUrl : ""
|
|
24
|
-
},
|
|
25
|
-
k.STANDARD
|
|
26
|
-
), p = s().textColor, H = s().textSecondary, V = L().secondary, W = "60%", v = L().primary, G = s().surfaceVariant, N = m().md, U = m().sm, E = s().palette.primary.plainColor, Q = s().palette.primary.onPrimary, q = m().xl, x = X(), w = Y(
|
|
27
|
-
k.STANDARD
|
|
28
|
-
), t = oe({
|
|
29
|
-
finalImage: a,
|
|
30
|
-
spacingScale: x,
|
|
31
|
-
borderRadius: m(),
|
|
32
|
-
fontFamilyPrimary: v,
|
|
33
|
-
fontFamilySecondary: V,
|
|
34
|
-
textColor: p,
|
|
35
|
-
secondaryColor: H,
|
|
36
|
-
bgcolor: Z(G || ""),
|
|
37
|
-
mdBorderRadius: N,
|
|
38
|
-
smBorderRadius: U,
|
|
39
|
-
primaryColor: E,
|
|
40
|
-
onPrimaryColor: Q,
|
|
41
|
-
buttonRadius: q,
|
|
42
|
-
opacity: W,
|
|
43
|
-
imagePosition: c,
|
|
44
|
-
darkTextColor: D.colorSchemes.dark.textColor,
|
|
45
|
-
imageBackgroundGradient: w
|
|
46
|
-
}), z = (l) => {
|
|
47
|
-
var i;
|
|
48
|
-
return /* @__PURE__ */ e.jsx(
|
|
49
|
-
re,
|
|
50
|
-
{
|
|
51
|
-
brandingLogo: M,
|
|
52
|
-
textColor: l,
|
|
53
|
-
label: (i = r.labels) == null ? void 0 : i.presentedByLabel
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}, J = () => {
|
|
57
|
-
var l, i, T, S, I, P, R, B;
|
|
58
|
-
return d ? a ? /* @__PURE__ */ e.jsx(o, { sx: t.mobileHeadlineWithImage, children: (l = r.labels) != null && l.title || (i = r.labels) != null && i.description ? /* @__PURE__ */ e.jsx(o, { sx: t.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(o, { sx: t.contentContainer, children: [
|
|
59
|
-
(T = r.labels) != null && T.title ? /* @__PURE__ */ e.jsx(n, { sx: t.titleTypographyMobileImage, children: r.labels.title }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
60
|
-
(S = r.labels) != null && S.description ? /* @__PURE__ */ e.jsx(n, { sx: t.descriptionTypographyMobileImage, children: r.labels.description }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
61
|
-
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {}) }) : (I = r.labels) != null && I.title || (P = r.labels) != null && P.description ? /* @__PURE__ */ e.jsx(o, { sx: t.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(o, { sx: t.contentContainer, children: [
|
|
62
|
-
(R = r.labels) != null && R.title ? /* @__PURE__ */ e.jsx(n, { level: "h4", sx: t.titleTypography, children: r.labels.title }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
63
|
-
(B = r.labels) != null && B.description ? /* @__PURE__ */ e.jsx(n, { sx: t.descriptionTypography, children: r.labels.description }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
64
|
-
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
65
|
-
};
|
|
66
|
-
return /* @__PURE__ */ e.jsxs(ee, { children: [
|
|
67
|
-
J(),
|
|
68
|
-
c === "left" && a ? /* @__PURE__ */ e.jsx(o, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(o, { sx: t.imageSafeArea }) }) : null,
|
|
69
|
-
/* @__PURE__ */ e.jsxs(o, { sx: t.mainContentArea, children: [
|
|
70
|
-
!d && ((C = r.labels) != null && C.title || (f = r.labels) != null && f.description) ? /* @__PURE__ */ e.jsx(o, { sx: { px: x.md }, children: /* @__PURE__ */ e.jsx(o, { sx: t.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsxs(o, { sx: t.contentContainer, children: [
|
|
71
|
-
r.labels.title ? /* @__PURE__ */ e.jsx(n, { level: "h4", sx: t.titleTypographyDesktop, children: r.labels.title }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
72
|
-
(F = r.labels) != null && F.description ? /* @__PURE__ */ e.jsx(n, { sx: t.descriptionTypographyDesktop, children: r.labels.description }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
73
|
-
] }) }) }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
74
|
-
/* @__PURE__ */ e.jsx(o, { sx: t.leadCollectionContainer, children: /* @__PURE__ */ e.jsx(o, { sx: t.leadQuestionContainer, children: /* @__PURE__ */ e.jsx(o, { sx: t.leadContentContainer, children: /* @__PURE__ */ e.jsx(te, {}) }) }) }),
|
|
75
|
-
/* @__PURE__ */ e.jsx(o, { sx: { px: x.md }, children: z(p) })
|
|
76
|
-
] }),
|
|
77
|
-
c === "right" && a ? /* @__PURE__ */ e.jsx(o, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(o, { sx: t.imageSafeArea }) }) : null
|
|
78
|
-
] });
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
Fe as default
|
|
82
|
-
};
|