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
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as q, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Box as t, Typography as k } from "@mui/joy";
|
|
3
|
+
import { i as L, u as O, a as w, k as Q, j as _, h as A, l as ee, W as E, n as Y, o as ne, s as $, p as J, q as te } from "./Portal-BWqqFvVm.js";
|
|
4
|
+
import { R as G, S as ie, a as le, O as ae } from "./NotFoundSkeleton-BYJTzYJR.js";
|
|
5
|
+
import "react";
|
|
6
|
+
const oe = (e) => {
|
|
7
|
+
var m, r, d;
|
|
8
|
+
return {
|
|
9
|
+
// Mobile headline with image background
|
|
10
|
+
mobileHeadlineWithImage: {
|
|
11
|
+
display: e.isMobile ? "flex" : "none",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
justifyContent: "space-between",
|
|
14
|
+
gap: "10px",
|
|
15
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
16
|
+
backgroundSize: "cover",
|
|
17
|
+
backgroundPosition: "center",
|
|
18
|
+
borderTopLeftRadius: "5px",
|
|
19
|
+
borderTopRightRadius: "5px",
|
|
20
|
+
position: "relative",
|
|
21
|
+
minHeight: "210px",
|
|
22
|
+
overflow: "hidden",
|
|
23
|
+
height: "auto",
|
|
24
|
+
"&::before": {
|
|
25
|
+
content: '""',
|
|
26
|
+
position: "absolute",
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: "100%",
|
|
29
|
+
background: e.imageBackgroundGradient,
|
|
30
|
+
borderTopLeftRadius: "5px",
|
|
31
|
+
borderTopRightRadius: "5px"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// Content inside mobile headline with image
|
|
35
|
+
mobileHeadlineContent: {
|
|
36
|
+
zIndex: 1,
|
|
37
|
+
p: e.spacingScale.xl,
|
|
38
|
+
gap: e.spacingScale["2xl"],
|
|
39
|
+
display: "flex",
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
justifyContent: "space-between"
|
|
42
|
+
},
|
|
43
|
+
// Mobile headline without image
|
|
44
|
+
mobileHeadlineWithoutImage: {
|
|
45
|
+
display: e.isMobile ? "flex" : "none",
|
|
46
|
+
flex: "0.5",
|
|
47
|
+
flexDirection: "column",
|
|
48
|
+
justifyContent: "space-between",
|
|
49
|
+
p: e.spacingScale.lg,
|
|
50
|
+
gap: e.spacingScale["2xl"]
|
|
51
|
+
},
|
|
52
|
+
// Headline typography (mobile with image)
|
|
53
|
+
headlineTypographyMobileImage: {
|
|
54
|
+
fontWeight: 500,
|
|
55
|
+
lineHeight: "166%",
|
|
56
|
+
letterSpacing: "1px",
|
|
57
|
+
fontSize: "0.75em",
|
|
58
|
+
color: ((m = e.brandingColors) == null ? void 0 : m.secondaryColor) || e.darkTextColor,
|
|
59
|
+
opacity: "70%",
|
|
60
|
+
textTransform: "uppercase",
|
|
61
|
+
fontFamily: e.fontFamilySecondary,
|
|
62
|
+
textAlign: "center"
|
|
63
|
+
},
|
|
64
|
+
// Headline typography (mobile without image & desktop)
|
|
65
|
+
headlineTypography: {
|
|
66
|
+
fontWeight: 500,
|
|
67
|
+
lineHeight: "166%",
|
|
68
|
+
letterSpacing: "1px",
|
|
69
|
+
textTransform: "uppercase",
|
|
70
|
+
fontSize: "0.75em",
|
|
71
|
+
color: e.secondaryColor,
|
|
72
|
+
opacity: e.opacity,
|
|
73
|
+
fontFamily: e.fontFamilySecondary,
|
|
74
|
+
textAlign: "center"
|
|
75
|
+
},
|
|
76
|
+
// Title typography (mobile with image)
|
|
77
|
+
titleTypographyMobileImage: {
|
|
78
|
+
fontWeight: 700,
|
|
79
|
+
lineHeight: "133%",
|
|
80
|
+
fontSize: "1.5em",
|
|
81
|
+
letterSpacing: "0.15px",
|
|
82
|
+
color: ((r = e.brandingColors) == null ? void 0 : r.contentColor) || e.darkTextColor,
|
|
83
|
+
fontFamily: e.fontFamilyPrimary,
|
|
84
|
+
textAlign: "center"
|
|
85
|
+
},
|
|
86
|
+
// Title typography (mobile without image)
|
|
87
|
+
titleTypography: {
|
|
88
|
+
fontWeight: 700,
|
|
89
|
+
lineHeight: "133%",
|
|
90
|
+
letterSpacing: "0px",
|
|
91
|
+
fontSize: "1.5em",
|
|
92
|
+
color: e.textColor,
|
|
93
|
+
fontFamily: e.fontFamilyPrimary,
|
|
94
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
95
|
+
},
|
|
96
|
+
// Description typography (mobile with image)
|
|
97
|
+
descriptionTypographyMobileImage: {
|
|
98
|
+
fontWeight: 400,
|
|
99
|
+
lineHeight: "140%",
|
|
100
|
+
fontSize: "1.25em",
|
|
101
|
+
letterSpacing: "0.15px",
|
|
102
|
+
color: ((d = e.brandingColors) == null ? void 0 : d.secondaryColor) || e.darkTextColor,
|
|
103
|
+
opacity: "70%",
|
|
104
|
+
fontFamily: e.fontFamilyPrimary,
|
|
105
|
+
textAlign: "center"
|
|
106
|
+
},
|
|
107
|
+
// Description typography (mobile without image)
|
|
108
|
+
descriptionTypography: {
|
|
109
|
+
fontWeight: 400,
|
|
110
|
+
lineHeight: "140%",
|
|
111
|
+
letterSpacing: "0.15px",
|
|
112
|
+
fontSize: "1.25em",
|
|
113
|
+
color: e.secondaryColor,
|
|
114
|
+
opacity: e.opacity,
|
|
115
|
+
fontFamily: e.fontFamilyPrimary,
|
|
116
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
117
|
+
},
|
|
118
|
+
// Desktop title typography
|
|
119
|
+
titleTypographyDesktop: {
|
|
120
|
+
fontWeight: 700,
|
|
121
|
+
lineHeight: "133%",
|
|
122
|
+
letterSpacing: "0px",
|
|
123
|
+
fontSize: "1.5em",
|
|
124
|
+
color: e.textColor,
|
|
125
|
+
fontFamily: e.fontFamilyPrimary
|
|
126
|
+
},
|
|
127
|
+
// Desktop description typography
|
|
128
|
+
descriptionTypographyDesktop: {
|
|
129
|
+
fontWeight: 400,
|
|
130
|
+
lineHeight: "140%",
|
|
131
|
+
letterSpacing: "0.15px",
|
|
132
|
+
fontSize: "1.25em",
|
|
133
|
+
color: e.secondaryColor,
|
|
134
|
+
opacity: e.opacity,
|
|
135
|
+
fontFamily: e.fontFamilyPrimary
|
|
136
|
+
},
|
|
137
|
+
// Image container (left position)
|
|
138
|
+
imageContainerLeft: {
|
|
139
|
+
display: e.isMobile ? "none" : "block",
|
|
140
|
+
flex: "0.3",
|
|
141
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
142
|
+
borderBottomLeftRadius: e.borderRadius.md,
|
|
143
|
+
overflow: "hidden",
|
|
144
|
+
height: "auto",
|
|
145
|
+
position: "relative"
|
|
146
|
+
},
|
|
147
|
+
// Image container (right position)
|
|
148
|
+
imageContainerRight: {
|
|
149
|
+
display: e.isMobile ? "none" : "block",
|
|
150
|
+
flex: "0.3",
|
|
151
|
+
borderTopRightRadius: "5px",
|
|
152
|
+
borderBottomRightRadius: "5px",
|
|
153
|
+
overflow: "hidden",
|
|
154
|
+
height: "auto",
|
|
155
|
+
position: "relative"
|
|
156
|
+
},
|
|
157
|
+
// Main content area
|
|
158
|
+
mainContentArea: {
|
|
159
|
+
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
160
|
+
display: e.isMobile ? "none" : "flex",
|
|
161
|
+
flexDirection: "column",
|
|
162
|
+
p: e.spacingScale.md,
|
|
163
|
+
gap: e.spacingScale["2xl"]
|
|
164
|
+
},
|
|
165
|
+
// Desktop headline container
|
|
166
|
+
desktopHeadlineContainer: {
|
|
167
|
+
display: e.isMobile ? "none" : "flex",
|
|
168
|
+
flexDirection: "column",
|
|
169
|
+
gap: e.spacingScale.xl,
|
|
170
|
+
textAlign: "center"
|
|
171
|
+
},
|
|
172
|
+
// Content container
|
|
173
|
+
contentContainer: {
|
|
174
|
+
display: "flex",
|
|
175
|
+
flexDirection: "column",
|
|
176
|
+
gap: e.spacingScale["3xs"]
|
|
177
|
+
},
|
|
178
|
+
// Sign in button container
|
|
179
|
+
signInButtonContainer: {
|
|
180
|
+
display: "flex",
|
|
181
|
+
flexDirection: "column",
|
|
182
|
+
justifyContent: "space-between",
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
gap: e.spacingScale["2xl"]
|
|
185
|
+
},
|
|
186
|
+
// Branding container
|
|
187
|
+
brandingContainer: {
|
|
188
|
+
px: e.spacingScale.md
|
|
189
|
+
},
|
|
190
|
+
image: {
|
|
191
|
+
width: "100%",
|
|
192
|
+
height: "100%",
|
|
193
|
+
objectFit: "cover"
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}, ye = ({
|
|
197
|
+
entity: e,
|
|
198
|
+
headline: m,
|
|
199
|
+
finalImage: r,
|
|
200
|
+
imagePosition: d = "left",
|
|
201
|
+
signInContent: I,
|
|
202
|
+
brandingContent: s,
|
|
203
|
+
rulesDisplay: h
|
|
204
|
+
}) => {
|
|
205
|
+
var M, W;
|
|
206
|
+
const D = L(), x = O(), y = w(), C = Q().primary, S = Q().secondary, b = _(), o = ((M = e.branding) == null ? void 0 : M.colors) || null, f = ((W = e.branding) == null ? void 0 : W.urls) || null, T = (o == null ? void 0 : o.contentColor) || A().textColor, c = (o == null ? void 0 : o.secondaryColor) || A().textColor, a = (o == null ? void 0 : o.backgroundColor) || A().surfaceVariant, P = "60%", v = ee(
|
|
207
|
+
E.STANDARD
|
|
208
|
+
), i = oe({
|
|
209
|
+
finalImage: r,
|
|
210
|
+
spacingScale: y,
|
|
211
|
+
borderRadius: b,
|
|
212
|
+
fontFamilyPrimary: C,
|
|
213
|
+
fontFamilySecondary: S,
|
|
214
|
+
textColor: T,
|
|
215
|
+
secondaryColor: c,
|
|
216
|
+
bgcolor: Y(a || ""),
|
|
217
|
+
opacity: P,
|
|
218
|
+
brandingColors: o,
|
|
219
|
+
imagePosition: d,
|
|
220
|
+
darkTextColor: x.colorSchemes.dark.textColor,
|
|
221
|
+
imageBackgroundGradient: v,
|
|
222
|
+
isMobile: D
|
|
223
|
+
}), g = ne(
|
|
224
|
+
f == null ? void 0 : f.primaryUrl,
|
|
225
|
+
f == null ? void 0 : f.secondaryUrl,
|
|
226
|
+
"image"
|
|
227
|
+
), F = (p, R) => typeof window > "u" ? g ? /* @__PURE__ */ n(
|
|
228
|
+
t,
|
|
229
|
+
{
|
|
230
|
+
component: "a",
|
|
231
|
+
href: g,
|
|
232
|
+
target: "_blank",
|
|
233
|
+
sx: R,
|
|
234
|
+
children: p
|
|
235
|
+
}
|
|
236
|
+
) : /* @__PURE__ */ n(t, { sx: R, children: p }) : g ? /* @__PURE__ */ n(
|
|
237
|
+
t,
|
|
238
|
+
{
|
|
239
|
+
sx: { ...R, cursor: "pointer" },
|
|
240
|
+
onClick: () => window.open(g, "_blank"),
|
|
241
|
+
children: p
|
|
242
|
+
}
|
|
243
|
+
) : /* @__PURE__ */ n(t, { sx: R, children: p });
|
|
244
|
+
return /* @__PURE__ */ l(q, { children: [
|
|
245
|
+
r ? F(
|
|
246
|
+
/* @__PURE__ */ l(t, { sx: i.mobileHeadlineContent, children: [
|
|
247
|
+
/* @__PURE__ */ l(t, { children: [
|
|
248
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: y["3xs"] }, children: [
|
|
249
|
+
/* @__PURE__ */ n(
|
|
250
|
+
k,
|
|
251
|
+
{
|
|
252
|
+
level: "body-sm",
|
|
253
|
+
sx: i.headlineTypographyMobileImage,
|
|
254
|
+
children: m
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ n(
|
|
258
|
+
G,
|
|
259
|
+
{
|
|
260
|
+
rulesDisplay: h,
|
|
261
|
+
rules: e.rules || ""
|
|
262
|
+
}
|
|
263
|
+
)
|
|
264
|
+
] }),
|
|
265
|
+
/* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
|
|
266
|
+
/* @__PURE__ */ n(
|
|
267
|
+
k,
|
|
268
|
+
{
|
|
269
|
+
level: "body-lg",
|
|
270
|
+
sx: i.titleTypographyMobileImage,
|
|
271
|
+
children: e.title
|
|
272
|
+
}
|
|
273
|
+
),
|
|
274
|
+
/* @__PURE__ */ n(
|
|
275
|
+
k,
|
|
276
|
+
{
|
|
277
|
+
level: "body-md",
|
|
278
|
+
sx: i.descriptionTypographyMobileImage,
|
|
279
|
+
children: $(e.description)
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
] })
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ l(t, { sx: i.signInButtonContainer, children: [
|
|
285
|
+
I,
|
|
286
|
+
s
|
|
287
|
+
] })
|
|
288
|
+
] }),
|
|
289
|
+
i.mobileHeadlineWithImage
|
|
290
|
+
) : /* @__PURE__ */ l(t, { sx: i.mobileHeadlineWithoutImage, children: [
|
|
291
|
+
/* @__PURE__ */ l(t, { children: [
|
|
292
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: y["3xs"] }, children: [
|
|
293
|
+
/* @__PURE__ */ n(k, { level: "body-sm", sx: i.headlineTypography, children: m }),
|
|
294
|
+
/* @__PURE__ */ n(
|
|
295
|
+
G,
|
|
296
|
+
{
|
|
297
|
+
rulesDisplay: h,
|
|
298
|
+
rules: e.rules || ""
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
] }),
|
|
302
|
+
/* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
|
|
303
|
+
/* @__PURE__ */ n(k, { level: "h4", sx: i.titleTypography, children: e.title }),
|
|
304
|
+
/* @__PURE__ */ n(k, { level: "body-md", sx: i.descriptionTypography, children: $(e.description) })
|
|
305
|
+
] })
|
|
306
|
+
] }),
|
|
307
|
+
/* @__PURE__ */ l(t, { sx: i.signInButtonContainer, children: [
|
|
308
|
+
I,
|
|
309
|
+
s
|
|
310
|
+
] })
|
|
311
|
+
] }),
|
|
312
|
+
r && d === "left" && /* @__PURE__ */ n(t, { sx: i.imageContainerLeft, children: /* @__PURE__ */ n("img", { src: r, alt: "Illustration", style: i.image }) }),
|
|
313
|
+
/* @__PURE__ */ n(t, { sx: i.mainContentArea, children: /* @__PURE__ */ l(t, { sx: i.desktopHeadlineContainer, children: [
|
|
314
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: y["3xs"] }, children: [
|
|
315
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: y["3xs"] }, children: [
|
|
316
|
+
/* @__PURE__ */ n(k, { level: "body-sm", sx: i.headlineTypography, children: m }),
|
|
317
|
+
/* @__PURE__ */ n(
|
|
318
|
+
G,
|
|
319
|
+
{
|
|
320
|
+
rulesDisplay: h,
|
|
321
|
+
rules: e.rules || ""
|
|
322
|
+
}
|
|
323
|
+
)
|
|
324
|
+
] }),
|
|
325
|
+
/* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
|
|
326
|
+
/* @__PURE__ */ n(k, { level: "h4", sx: i.titleTypographyDesktop, children: e.title }),
|
|
327
|
+
/* @__PURE__ */ n(
|
|
328
|
+
k,
|
|
329
|
+
{
|
|
330
|
+
level: "body-md",
|
|
331
|
+
sx: i.descriptionTypographyDesktop,
|
|
332
|
+
children: $(e.description)
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
] })
|
|
336
|
+
] }),
|
|
337
|
+
/* @__PURE__ */ n(t, { sx: i.signInButtonContainer, children: I }),
|
|
338
|
+
s
|
|
339
|
+
] }) }),
|
|
340
|
+
r && d === "right" && /* @__PURE__ */ n(t, { sx: i.imageContainerRight, children: /* @__PURE__ */ n("img", { src: r, alt: "Illustration", style: i.image }) })
|
|
341
|
+
] });
|
|
342
|
+
}, re = (e) => ({
|
|
343
|
+
// Main headline section with background image
|
|
344
|
+
headlineSection: {
|
|
345
|
+
display: "flex",
|
|
346
|
+
flexDirection: "column",
|
|
347
|
+
justifyContent: "space-between",
|
|
348
|
+
gap: "10px",
|
|
349
|
+
flex: "0.5",
|
|
350
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
351
|
+
backgroundSize: "cover",
|
|
352
|
+
backgroundPosition: "center",
|
|
353
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
354
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
355
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
356
|
+
overflow: "hidden",
|
|
357
|
+
height: "auto",
|
|
358
|
+
position: "relative",
|
|
359
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
360
|
+
"&::before": {
|
|
361
|
+
content: '""',
|
|
362
|
+
position: "absolute",
|
|
363
|
+
width: "100%",
|
|
364
|
+
height: "100%",
|
|
365
|
+
borderTopLeftRadius: "5px",
|
|
366
|
+
borderTopRightRadius: "5px"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
// Main content area
|
|
370
|
+
mainContentArea: {
|
|
371
|
+
flex: "0.5",
|
|
372
|
+
display: "flex",
|
|
373
|
+
flexDirection: "column",
|
|
374
|
+
justifyContent: "center",
|
|
375
|
+
p: e.spacingScale.lg
|
|
376
|
+
},
|
|
377
|
+
headlineContent: {
|
|
378
|
+
zIndex: 1,
|
|
379
|
+
height: "100%",
|
|
380
|
+
p: e.spacingScale.xl,
|
|
381
|
+
gap: e.spacingScale.xl,
|
|
382
|
+
display: "flex",
|
|
383
|
+
flexDirection: "column",
|
|
384
|
+
justifyContent: "space-between"
|
|
385
|
+
},
|
|
386
|
+
// Headline text
|
|
387
|
+
headlineText: {
|
|
388
|
+
fontWeight: 500,
|
|
389
|
+
lineHeight: "166%",
|
|
390
|
+
letterSpacing: "1px",
|
|
391
|
+
fontSize: "0.75em",
|
|
392
|
+
color: e.secondaryColor,
|
|
393
|
+
opacity: "70%",
|
|
394
|
+
textTransform: "uppercase",
|
|
395
|
+
fontFamily: e.fontFamilySecondary,
|
|
396
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
397
|
+
},
|
|
398
|
+
// Title text
|
|
399
|
+
titleText: {
|
|
400
|
+
fontWeight: 700,
|
|
401
|
+
lineHeight: "133%",
|
|
402
|
+
fontSize: "1.5em",
|
|
403
|
+
letterSpacing: "0.15px",
|
|
404
|
+
color: e.contentColor,
|
|
405
|
+
fontFamily: e.fontFamilyPrimary,
|
|
406
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
407
|
+
},
|
|
408
|
+
// Description text
|
|
409
|
+
descriptionText: {
|
|
410
|
+
fontWeight: 400,
|
|
411
|
+
lineHeight: "140%",
|
|
412
|
+
fontSize: "1.25em",
|
|
413
|
+
letterSpacing: "0.15px",
|
|
414
|
+
color: e.secondaryColor,
|
|
415
|
+
opacity: "70%",
|
|
416
|
+
fontFamily: e.fontFamilyPrimary,
|
|
417
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
418
|
+
},
|
|
419
|
+
ctaWrapper: {
|
|
420
|
+
display: "flex",
|
|
421
|
+
flexDirection: "column",
|
|
422
|
+
justifyContent: "space-between",
|
|
423
|
+
alignItems: "center",
|
|
424
|
+
gap: e.spacingScale["2xl"]
|
|
425
|
+
},
|
|
426
|
+
// Content container
|
|
427
|
+
contentContainer: {
|
|
428
|
+
display: "flex",
|
|
429
|
+
flexDirection: "column",
|
|
430
|
+
gap: e.spacingScale["3xs"]
|
|
431
|
+
}
|
|
432
|
+
}), fe = ({
|
|
433
|
+
entity: e,
|
|
434
|
+
headline: m,
|
|
435
|
+
finalImage: r,
|
|
436
|
+
signInContent: d,
|
|
437
|
+
brandingContent: I,
|
|
438
|
+
rulesDisplay: s
|
|
439
|
+
}) => {
|
|
440
|
+
var a;
|
|
441
|
+
const h = L(), D = O(), x = w(), y = Q().primary, C = Q().secondary, S = _(), b = ((a = e.branding) == null ? void 0 : a.colors) || null, o = (b == null ? void 0 : b.contentColor) || D.colorSchemes.dark.textColor, f = (b == null ? void 0 : b.secondaryColor) || D.colorSchemes.dark.textColor, c = re({
|
|
442
|
+
finalImage: r,
|
|
443
|
+
spacingScale: x,
|
|
444
|
+
borderRadius: S,
|
|
445
|
+
fontFamilyPrimary: y,
|
|
446
|
+
fontFamilySecondary: C,
|
|
447
|
+
secondaryColor: f,
|
|
448
|
+
contentColor: o,
|
|
449
|
+
opacity: "60%",
|
|
450
|
+
isMobile: h
|
|
451
|
+
});
|
|
452
|
+
return /* @__PURE__ */ l(q, { children: [
|
|
453
|
+
/* @__PURE__ */ n(t, { sx: c.headlineSection, children: /* @__PURE__ */ l(t, { sx: c.headlineContent, children: [
|
|
454
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", flexDirection: "column", alignItems: h ? "center" : "flex-start", gap: x["3xs"] }, children: [
|
|
455
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
|
|
456
|
+
/* @__PURE__ */ n(k, { sx: c.headlineText, children: m }),
|
|
457
|
+
/* @__PURE__ */ n(
|
|
458
|
+
G,
|
|
459
|
+
{
|
|
460
|
+
rulesDisplay: s,
|
|
461
|
+
rules: e.rules || ""
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ l(t, { sx: c.contentContainer, children: [
|
|
466
|
+
/* @__PURE__ */ n(k, { sx: c.titleText, children: e.title }),
|
|
467
|
+
/* @__PURE__ */ n(k, { sx: c.descriptionText, children: $(e.description) })
|
|
468
|
+
] })
|
|
469
|
+
] }),
|
|
470
|
+
h ? /* @__PURE__ */ n(q, {}) : I
|
|
471
|
+
] }) }),
|
|
472
|
+
/* @__PURE__ */ n(t, { sx: c.mainContentArea, children: /* @__PURE__ */ l(t, { sx: c.ctaWrapper, children: [
|
|
473
|
+
d,
|
|
474
|
+
h && I
|
|
475
|
+
] }) })
|
|
476
|
+
] });
|
|
477
|
+
}, ce = (e) => {
|
|
478
|
+
var m;
|
|
479
|
+
return {
|
|
480
|
+
// Main container with background overlay
|
|
481
|
+
mainContainer: {
|
|
482
|
+
display: "flex",
|
|
483
|
+
flexDirection: "column",
|
|
484
|
+
justifyContent: "space-between",
|
|
485
|
+
gap: "40px",
|
|
486
|
+
p: e.spacingScale.xl,
|
|
487
|
+
boxShadow: "md",
|
|
488
|
+
border: (m = e.brandingColors) != null && m.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
489
|
+
overflow: "hidden",
|
|
490
|
+
backgroundImage: e.backgroundImage,
|
|
491
|
+
backgroundSize: "cover",
|
|
492
|
+
backgroundPosition: "center",
|
|
493
|
+
position: "relative",
|
|
494
|
+
borderRadius: e.mdBorderRadius,
|
|
495
|
+
minHeight: "250px",
|
|
496
|
+
"&::before": {
|
|
497
|
+
content: '""',
|
|
498
|
+
position: "absolute",
|
|
499
|
+
background: e.imageBackgroundGradient,
|
|
500
|
+
top: 0,
|
|
501
|
+
left: 0,
|
|
502
|
+
right: 0,
|
|
503
|
+
bottom: 0,
|
|
504
|
+
borderRadius: "inherit",
|
|
505
|
+
zIndex: 0
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
// Headline section wrapper
|
|
509
|
+
headlineSection: {
|
|
510
|
+
display: "flex",
|
|
511
|
+
justifyContent: "space-between",
|
|
512
|
+
flex: "1 0 0",
|
|
513
|
+
alignSelf: "stretch"
|
|
514
|
+
},
|
|
515
|
+
// Headline content container
|
|
516
|
+
headlineContent: {
|
|
517
|
+
display: "flex",
|
|
518
|
+
flexDirection: "column",
|
|
519
|
+
alignItems: "flex-start",
|
|
520
|
+
flex: "1 0 0",
|
|
521
|
+
gap: "16px"
|
|
522
|
+
},
|
|
523
|
+
// Headline content with z-index
|
|
524
|
+
headlineContentInner: {
|
|
525
|
+
zIndex: 10
|
|
526
|
+
},
|
|
527
|
+
headlineText: {
|
|
528
|
+
fontWeight: 500,
|
|
529
|
+
lineHeight: "166%",
|
|
530
|
+
letterSpacing: "1px",
|
|
531
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
532
|
+
color: e.secondaryColor,
|
|
533
|
+
opacity: "70%",
|
|
534
|
+
textTransform: "uppercase",
|
|
535
|
+
fontFamily: e.fontFamilySecondary,
|
|
536
|
+
fontSize: "0.75em"
|
|
537
|
+
},
|
|
538
|
+
// Content container
|
|
539
|
+
contentContainer: {
|
|
540
|
+
display: "flex",
|
|
541
|
+
flexDirection: "column",
|
|
542
|
+
gap: e.spacingScale["3xs"]
|
|
543
|
+
},
|
|
544
|
+
titleText: {
|
|
545
|
+
fontWeight: 700,
|
|
546
|
+
lineHeight: "133%",
|
|
547
|
+
letterSpacing: "0px",
|
|
548
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
549
|
+
fontSize: "1.5em",
|
|
550
|
+
color: e.darkTextColor,
|
|
551
|
+
fontFamily: e.fontFamilyPrimary
|
|
552
|
+
},
|
|
553
|
+
descriptionText: {
|
|
554
|
+
fontWeight: 400,
|
|
555
|
+
lineHeight: "140%",
|
|
556
|
+
letterSpacing: "0.15px",
|
|
557
|
+
fontSize: "1.25em",
|
|
558
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
559
|
+
color: e.secondaryColor,
|
|
560
|
+
opacity: "70%",
|
|
561
|
+
fontFamily: e.fontFamilyPrimary
|
|
562
|
+
},
|
|
563
|
+
// Bottom container
|
|
564
|
+
bottomContainer: {
|
|
565
|
+
display: "flex",
|
|
566
|
+
alignItems: "center",
|
|
567
|
+
justifyContent: "space-between",
|
|
568
|
+
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
569
|
+
gap: e.spacingScale.md
|
|
570
|
+
},
|
|
571
|
+
// Sign-in wrapper to always position at flex-end
|
|
572
|
+
signInWrapper: {
|
|
573
|
+
display: "flex",
|
|
574
|
+
justifyContent: "flex-end",
|
|
575
|
+
flex: 1
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
}, ue = ({
|
|
579
|
+
entity: e,
|
|
580
|
+
headline: m,
|
|
581
|
+
backgroundImage: r,
|
|
582
|
+
imageBackgroundGradient: d,
|
|
583
|
+
signInContent: I,
|
|
584
|
+
brandingContent: s,
|
|
585
|
+
rulesDisplay: h
|
|
586
|
+
}) => {
|
|
587
|
+
var P;
|
|
588
|
+
const D = L(), x = O(), y = w(), C = ((P = e.branding) == null ? void 0 : P.colors) || null, S = (C == null ? void 0 : C.contentColor) || x.colorSchemes.dark.textColor, b = x.customFontFamily.dark.primary, o = x.customFontFamily.dark.secondary, f = x.customRadius.dark.md, T = x.border.dark.size, c = x.colorSchemes.dark.textColor, a = ce({
|
|
589
|
+
spacingScale: y,
|
|
590
|
+
brandingColors: C,
|
|
591
|
+
secondaryColor: S,
|
|
592
|
+
fontFamilyPrimary: b,
|
|
593
|
+
fontFamilySecondary: o,
|
|
594
|
+
mdBorderRadius: f,
|
|
595
|
+
borderSize: T,
|
|
596
|
+
darkTextColor: c,
|
|
597
|
+
backgroundImage: r,
|
|
598
|
+
imageBackgroundGradient: d,
|
|
599
|
+
isMobile: D
|
|
600
|
+
});
|
|
601
|
+
return /* @__PURE__ */ l(t, { sx: a.mainContainer, children: [
|
|
602
|
+
/* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(t, { sx: a.headlineSection, children: /* @__PURE__ */ n(t, { sx: a.headlineContent, children: /* @__PURE__ */ l(t, { sx: { ...a.headlineContentInner, display: "flex", flexDirection: "column", alignItems: D ? "center" : "flex-start", gap: y["3xs"] }, children: [
|
|
603
|
+
/* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: y["3xs"] }, children: [
|
|
604
|
+
/* @__PURE__ */ n(k, { level: "body-sm", sx: a.headlineText, children: m }),
|
|
605
|
+
/* @__PURE__ */ n(
|
|
606
|
+
G,
|
|
607
|
+
{
|
|
608
|
+
rulesDisplay: h,
|
|
609
|
+
isOverlayVariant: !0,
|
|
610
|
+
rules: e.rules || ""
|
|
611
|
+
}
|
|
612
|
+
)
|
|
613
|
+
] }),
|
|
614
|
+
/* @__PURE__ */ l(t, { sx: a.contentContainer, children: [
|
|
615
|
+
/* @__PURE__ */ n(k, { level: "h4", sx: a.titleText, children: e.title }),
|
|
616
|
+
/* @__PURE__ */ n(k, { level: "body-lg", sx: a.descriptionText, children: $(e.description) })
|
|
617
|
+
] })
|
|
618
|
+
] }) }) }) }),
|
|
619
|
+
/* @__PURE__ */ l(t, { sx: a.bottomContainer, children: [
|
|
620
|
+
s,
|
|
621
|
+
/* @__PURE__ */ n(t, { sx: a.signInWrapper, children: I })
|
|
622
|
+
] })
|
|
623
|
+
] });
|
|
624
|
+
}, he = (e) => {
|
|
625
|
+
var o, f, T, c, a, P, v;
|
|
626
|
+
const m = J(
|
|
627
|
+
{
|
|
628
|
+
images: e.entity.images || null,
|
|
629
|
+
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
630
|
+
},
|
|
631
|
+
E.STANDARD
|
|
632
|
+
), r = L(), d = w(), I = _(), s = `rgba(${Y(A().surfaceVariant || "")}, 0.5)`, h = ((o = e.entity.branding) == null ? void 0 : o.colors) || null, D = (h == null ? void 0 : h.borderColor) || null, x = r ? ((T = (f = e.entity.branding) == null ? void 0 : f.images) == null ? void 0 : T.mobileLogo) || ((a = (c = e.entity.branding) == null ? void 0 : c.images) == null ? void 0 : a.mainLogo) || "" : ((v = (P = e.entity.branding) == null ? void 0 : P.images) == null ? void 0 : v.mainLogo) || "", y = e.imagePosition || "left", C = A().textColor, S = {
|
|
633
|
+
mainContentArea: {
|
|
634
|
+
flex: r ? "1" : m ? "0.7" : "1",
|
|
635
|
+
display: "flex",
|
|
636
|
+
flexDirection: "column",
|
|
637
|
+
p: d.md,
|
|
638
|
+
gap: d.md
|
|
639
|
+
},
|
|
640
|
+
leadCollectionContainer: {
|
|
641
|
+
display: "flex",
|
|
642
|
+
flexDirection: "column"
|
|
643
|
+
},
|
|
644
|
+
leadQuestionContainer: {
|
|
645
|
+
display: "flex",
|
|
646
|
+
flexDirection: "column",
|
|
647
|
+
gap: r ? d.lg : d.md
|
|
648
|
+
},
|
|
649
|
+
leadContentContainer: {
|
|
650
|
+
borderRadius: I.md,
|
|
651
|
+
px: d.md,
|
|
652
|
+
pt: d.md,
|
|
653
|
+
pb: d.lg,
|
|
654
|
+
gap: d.md,
|
|
655
|
+
bgcolor: s,
|
|
656
|
+
display: "flex",
|
|
657
|
+
flexDirection: "column",
|
|
658
|
+
backdropFilter: "blur(4px)"
|
|
659
|
+
}
|
|
660
|
+
}, b = () => {
|
|
661
|
+
var F, u, M, W, p, R, B, H, z, j, U, N, V, K, X, Z;
|
|
662
|
+
const { CollectLeadWrapper: i, entity: g } = e;
|
|
663
|
+
return /* @__PURE__ */ l(t, { sx: S.mainContentArea, children: [
|
|
664
|
+
/* @__PURE__ */ n(t, { sx: S.leadCollectionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadQuestionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadContentContainer, children: /* @__PURE__ */ n(
|
|
665
|
+
i,
|
|
666
|
+
{
|
|
667
|
+
sdk: e.sdk,
|
|
668
|
+
contentId: g.id,
|
|
669
|
+
contentName: g.title,
|
|
670
|
+
brandingColors: (F = g.branding) == null ? void 0 : F.colors,
|
|
671
|
+
brandingUrls: (u = g.branding) == null ? void 0 : u.urls,
|
|
672
|
+
campaignId: (M = e.leads) == null ? void 0 : M.campaignId,
|
|
673
|
+
campaignName: (W = e.leads) == null ? void 0 : W.campaignName,
|
|
674
|
+
fields: (p = e.leads) == null ? void 0 : p.fields,
|
|
675
|
+
leadTitle: (R = g.labels) == null ? void 0 : R.leadTitle,
|
|
676
|
+
leadDescription: (B = g.labels) == null ? void 0 : B.leadDescription,
|
|
677
|
+
leadCta: (H = g.labels) == null ? void 0 : H.leadCta,
|
|
678
|
+
leadSuccessTitle: (z = g.labels) == null ? void 0 : z.leadSuccessTitle,
|
|
679
|
+
leadSuccessDescription: (j = g.labels) == null ? void 0 : j.leadSuccessDescription,
|
|
680
|
+
syncWithProfile: (U = e.leads) == null ? void 0 : U.syncWithProfile,
|
|
681
|
+
startGame: e.onLeadSubmitted,
|
|
682
|
+
isAfterPosition: !0,
|
|
683
|
+
isSubmittingParticipation: e.isSubmitting
|
|
684
|
+
}
|
|
685
|
+
) }) }) }),
|
|
686
|
+
x && /* @__PURE__ */ n(
|
|
687
|
+
e.PresentedBy,
|
|
688
|
+
{
|
|
689
|
+
brandingLogo: x,
|
|
690
|
+
textColor: C,
|
|
691
|
+
label: ((N = g.labels) == null ? void 0 : N.sponsor) || null,
|
|
692
|
+
primaryUrl: (K = (V = g.branding) == null ? void 0 : V.urls) == null ? void 0 : K.primaryUrl,
|
|
693
|
+
secondaryUrl: (Z = (X = g.branding) == null ? void 0 : X.urls) == null ? void 0 : Z.secondaryUrl
|
|
694
|
+
}
|
|
695
|
+
)
|
|
696
|
+
] });
|
|
697
|
+
};
|
|
698
|
+
return /* @__PURE__ */ n(e.MainCard, { brandingBorderColor: D, children: /* @__PURE__ */ n(
|
|
699
|
+
ie,
|
|
700
|
+
{
|
|
701
|
+
entity: e.entity,
|
|
702
|
+
headline: e.headline,
|
|
703
|
+
finalImage: m,
|
|
704
|
+
imagePosition: y,
|
|
705
|
+
rulesDisplay: e.rulesDisplay,
|
|
706
|
+
children: b()
|
|
707
|
+
}
|
|
708
|
+
) });
|
|
709
|
+
}, be = (e) => {
|
|
710
|
+
var T, c, a, P, v, i, g;
|
|
711
|
+
const m = O(), r = L(), d = r ? e.mobileImagePlaceholder || e.defaultImagePlaceholder || "" : e.defaultImagePlaceholder || "", I = J(
|
|
712
|
+
{
|
|
713
|
+
images: e.entity.images || null,
|
|
714
|
+
imagePlaceholder: d
|
|
715
|
+
},
|
|
716
|
+
E.SPLIT
|
|
717
|
+
), s = ((T = e.entity.branding) == null ? void 0 : T.colors) || null, h = (s == null ? void 0 : s.borderColor) || null, D = (s == null ? void 0 : s.backgroundColor) || A().surfaceVariant, x = Y(D), y = w(), C = _(), S = r ? ((a = (c = e.entity.branding) == null ? void 0 : c.images) == null ? void 0 : a.mobileLogo) || ((v = (P = e.entity.branding) == null ? void 0 : P.images) == null ? void 0 : v.mainLogo) || "" : ((g = (i = e.entity.branding) == null ? void 0 : i.images) == null ? void 0 : g.mainLogo) || "", b = {
|
|
718
|
+
questionArea: {
|
|
719
|
+
width: "100%",
|
|
720
|
+
justifyContent: "center",
|
|
721
|
+
display: "flex",
|
|
722
|
+
flexDirection: "column"
|
|
723
|
+
},
|
|
724
|
+
questionAreaContent: {
|
|
725
|
+
p: y.lg,
|
|
726
|
+
display: "flex",
|
|
727
|
+
flexDirection: "column",
|
|
728
|
+
justifyContent: "center",
|
|
729
|
+
gap: "16px"
|
|
730
|
+
},
|
|
731
|
+
leadContentContainer: {
|
|
732
|
+
p: y.md,
|
|
733
|
+
gap: y.md,
|
|
734
|
+
display: "flex",
|
|
735
|
+
flexDirection: "column",
|
|
736
|
+
backdropFilter: "blur(4px)",
|
|
737
|
+
bgcolor: `rgba(${x.replace(/[^\d,]/g, "")}, 0.5)`,
|
|
738
|
+
borderRadius: C.sm
|
|
739
|
+
}
|
|
740
|
+
}, o = (F) => {
|
|
741
|
+
var u, M, W, p, R;
|
|
742
|
+
return /* @__PURE__ */ n(
|
|
743
|
+
e.PresentedBy,
|
|
744
|
+
{
|
|
745
|
+
brandingLogo: S,
|
|
746
|
+
textColor: F,
|
|
747
|
+
label: ((u = e.entity.labels) == null ? void 0 : u.sponsor) || null,
|
|
748
|
+
primaryUrl: (W = (M = e.entity.branding) == null ? void 0 : M.urls) == null ? void 0 : W.primaryUrl,
|
|
749
|
+
secondaryUrl: (R = (p = e.entity.branding) == null ? void 0 : p.urls) == null ? void 0 : R.secondaryUrl,
|
|
750
|
+
isCentered: !1
|
|
751
|
+
}
|
|
752
|
+
);
|
|
753
|
+
}, f = () => {
|
|
754
|
+
var M, W, p, R, B, H, z, j, U, N, V;
|
|
755
|
+
const { CollectLeadWrapper: F, entity: u } = e;
|
|
756
|
+
return /* @__PURE__ */ l(q, { children: [
|
|
757
|
+
/* @__PURE__ */ n(t, { sx: b.questionArea, children: /* @__PURE__ */ n(t, { sx: b.questionAreaContent, children: /* @__PURE__ */ n(t, { sx: b.leadContentContainer, children: /* @__PURE__ */ n(
|
|
758
|
+
F,
|
|
759
|
+
{
|
|
760
|
+
sdk: e.sdk,
|
|
761
|
+
contentId: u.id,
|
|
762
|
+
contentName: u.title,
|
|
763
|
+
brandingColors: (M = u.branding) == null ? void 0 : M.colors,
|
|
764
|
+
brandingUrls: (W = u.branding) == null ? void 0 : W.urls,
|
|
765
|
+
campaignId: (p = e.leads) == null ? void 0 : p.campaignId,
|
|
766
|
+
campaignName: (R = e.leads) == null ? void 0 : R.campaignName,
|
|
767
|
+
fields: (B = e.leads) == null ? void 0 : B.fields,
|
|
768
|
+
leadTitle: (H = u.labels) == null ? void 0 : H.leadTitle,
|
|
769
|
+
leadDescription: (z = u.labels) == null ? void 0 : z.leadDescription,
|
|
770
|
+
leadCta: (j = u.labels) == null ? void 0 : j.leadCta,
|
|
771
|
+
leadSuccessTitle: (U = u.labels) == null ? void 0 : U.leadSuccessTitle,
|
|
772
|
+
leadSuccessDescription: (N = u.labels) == null ? void 0 : N.leadSuccessDescription,
|
|
773
|
+
syncWithProfile: (V = e.leads) == null ? void 0 : V.syncWithProfile,
|
|
774
|
+
startGame: e.onLeadSubmitted,
|
|
775
|
+
isAfterPosition: !0,
|
|
776
|
+
isSubmittingParticipation: e.isSubmitting
|
|
777
|
+
}
|
|
778
|
+
) }) }) }),
|
|
779
|
+
S && r && /* @__PURE__ */ n(t, { sx: { mb: y.lg, px: y.lg }, children: o(
|
|
780
|
+
(s == null ? void 0 : s.contentColor) || m.colorSchemes.dark.textColor
|
|
781
|
+
) })
|
|
782
|
+
] });
|
|
783
|
+
};
|
|
784
|
+
return /* @__PURE__ */ n(e.MainCard, { brandingBorderColor: h, children: /* @__PURE__ */ n(
|
|
785
|
+
le,
|
|
786
|
+
{
|
|
787
|
+
entity: e.entity,
|
|
788
|
+
headline: e.headline,
|
|
789
|
+
finalImage: I,
|
|
790
|
+
brandingLogo: S,
|
|
791
|
+
renderPresentedBy: o,
|
|
792
|
+
rulesDisplay: e.rulesDisplay,
|
|
793
|
+
children: f()
|
|
794
|
+
}
|
|
795
|
+
) });
|
|
796
|
+
}, Ce = (e) => {
|
|
797
|
+
const m = O(), r = L(), d = e.defaultImagePlaceholder ? e.defaultImagePlaceholder || "" : r ? e.mobileImagePlaceholder : e.defaultImagePlaceholder || "", { brandingImage: I, brandingColors: s, brandingLogo: h } = te(e.entity.branding || null), D = I || J(
|
|
798
|
+
{
|
|
799
|
+
images: e.entity.images || null,
|
|
800
|
+
imagePlaceholder: d || ""
|
|
801
|
+
},
|
|
802
|
+
E.OVERLAY
|
|
803
|
+
), x = w(), y = (s == null ? void 0 : s.backgroundColor) || m.colorSchemes.dark.surfaceVariant, C = {
|
|
804
|
+
mainContentSection: {
|
|
805
|
+
display: "flex",
|
|
806
|
+
flexDirection: "column",
|
|
807
|
+
gap: "24px"
|
|
808
|
+
},
|
|
809
|
+
contentContainerWithBackdrop: {
|
|
810
|
+
borderRadius: m.customRadius.dark.sm,
|
|
811
|
+
p: x.md,
|
|
812
|
+
display: "flex",
|
|
813
|
+
flexDirection: "column",
|
|
814
|
+
gap: x.md,
|
|
815
|
+
backdropFilter: "blur(4px)",
|
|
816
|
+
position: "relative",
|
|
817
|
+
"&::before": {
|
|
818
|
+
content: '""',
|
|
819
|
+
position: "absolute",
|
|
820
|
+
top: 0,
|
|
821
|
+
left: 0,
|
|
822
|
+
right: 0,
|
|
823
|
+
bottom: 0,
|
|
824
|
+
backgroundColor: y,
|
|
825
|
+
opacity: 0.5,
|
|
826
|
+
borderRadius: "inherit",
|
|
827
|
+
zIndex: 0
|
|
828
|
+
},
|
|
829
|
+
"& > *": {
|
|
830
|
+
position: "relative",
|
|
831
|
+
zIndex: 1
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
presentedByContainer: {
|
|
835
|
+
display: "flex",
|
|
836
|
+
alignItems: "center",
|
|
837
|
+
justifyContent: r ? "center" : "space-between",
|
|
838
|
+
flexDirection: r ? "column-reverse" : "row",
|
|
839
|
+
gap: x.md
|
|
840
|
+
}
|
|
841
|
+
}, S = () => {
|
|
842
|
+
var o, f, T, c, a;
|
|
843
|
+
return /* @__PURE__ */ n(
|
|
844
|
+
e.PresentedBy,
|
|
845
|
+
{
|
|
846
|
+
brandingLogo: h || "",
|
|
847
|
+
textColor: m.colorSchemes.dark.textColor,
|
|
848
|
+
label: ((o = e.entity.labels) == null ? void 0 : o.sponsor) || null,
|
|
849
|
+
primaryUrl: (T = (f = e.entity.branding) == null ? void 0 : f.urls) == null ? void 0 : T.primaryUrl,
|
|
850
|
+
secondaryUrl: (a = (c = e.entity.branding) == null ? void 0 : c.urls) == null ? void 0 : a.secondaryUrl
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
}, b = () => {
|
|
854
|
+
var o, f, T, c, a, P, v, i, g, F, u;
|
|
855
|
+
return /* @__PURE__ */ l(t, { sx: C.mainContentSection, children: [
|
|
856
|
+
/* @__PURE__ */ n(t, { sx: C.contentContainerWithBackdrop, children: /* @__PURE__ */ n(
|
|
857
|
+
e.CollectLeadWrapper,
|
|
858
|
+
{
|
|
859
|
+
sdk: e.sdk,
|
|
860
|
+
contentId: e.entity.id,
|
|
861
|
+
contentName: e.entity.title,
|
|
862
|
+
brandingColors: (o = e.entity.branding) == null ? void 0 : o.colors,
|
|
863
|
+
brandingUrls: (f = e.entity.branding) == null ? void 0 : f.urls,
|
|
864
|
+
campaignId: (T = e.leads) == null ? void 0 : T.campaignId,
|
|
865
|
+
campaignName: (c = e.leads) == null ? void 0 : c.campaignName,
|
|
866
|
+
fields: (a = e.leads) == null ? void 0 : a.fields,
|
|
867
|
+
leadTitle: (P = e.entity.labels) == null ? void 0 : P.leadTitle,
|
|
868
|
+
leadDescription: (v = e.entity.labels) == null ? void 0 : v.leadDescription,
|
|
869
|
+
leadCta: (i = e.entity.labels) == null ? void 0 : i.leadCta,
|
|
870
|
+
leadSuccessTitle: (g = e.entity.labels) == null ? void 0 : g.leadSuccessTitle,
|
|
871
|
+
leadSuccessDescription: (F = e.entity.labels) == null ? void 0 : F.leadSuccessDescription,
|
|
872
|
+
syncWithProfile: (u = e.leads) == null ? void 0 : u.syncWithProfile,
|
|
873
|
+
startGame: e.onLeadSubmitted,
|
|
874
|
+
isAfterPosition: !0,
|
|
875
|
+
isSubmittingParticipation: e.isSubmitting
|
|
876
|
+
}
|
|
877
|
+
) }),
|
|
878
|
+
/* @__PURE__ */ n(t, { sx: C.presentedByContainer, children: S() })
|
|
879
|
+
] });
|
|
880
|
+
};
|
|
881
|
+
return /* @__PURE__ */ n(
|
|
882
|
+
ae,
|
|
883
|
+
{
|
|
884
|
+
entity: e.entity,
|
|
885
|
+
headline: e.headline,
|
|
886
|
+
finalImage: D,
|
|
887
|
+
rulesDisplay: e.rulesDisplay,
|
|
888
|
+
children: b()
|
|
889
|
+
}
|
|
890
|
+
);
|
|
891
|
+
};
|
|
892
|
+
export {
|
|
893
|
+
ue as O,
|
|
894
|
+
ye as S,
|
|
895
|
+
fe as a,
|
|
896
|
+
he as b,
|
|
897
|
+
be as c,
|
|
898
|
+
Ce as d
|
|
899
|
+
};
|