fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +4846 -3
- package/CollectLead.js +1252 -3
- package/EventGamePlay.js +7594 -3
- package/MatchQuizPlay.js +11001 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4165 -3
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
- package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -4
- package/_virtual/index2.js +0 -4
- package/_virtual/index3.js +0 -4
- package/_virtual/jsx-runtime.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.development2.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
- package/_virtual/react-is.production.min2.js +0 -4
- package/_virtual/react-jsx-runtime.development.js +0 -4
- package/_virtual/react-jsx-runtime.production.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
- package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
- package/packages/classic-quiz-play/src/constants/constants.js +0 -4
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
- package/packages/classic-quiz-play/src/index.js +0 -4
- package/packages/classic-quiz-play/src/main.js +0 -7
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/collect-lead/src/components/CollectLead.js +0 -18
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
- package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
- package/packages/collect-lead/src/index.js +0 -4
- package/packages/collect-lead/src/main.js +0 -39
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
- package/packages/common/src/components/AdditionalCTA.js +0 -24
- package/packages/common/src/components/AlertMessage.js +0 -88
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
- package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
- package/packages/common/src/components/Leads/LeadForm.js +0 -498
- package/packages/common/src/components/Portal.js +0 -62
- package/packages/common/src/components/Rules.js +0 -299
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
- package/packages/common/src/components/Spinner.js +0 -36
- package/packages/common/src/constants/constants.js +0 -457
- package/packages/common/src/enums/enums.js +0 -4
- package/packages/common/src/functions/helpers.js +0 -58
- package/packages/common/src/functions/i18n.js +0 -69
- package/packages/common/src/functions/theme.js +0 -301
- package/packages/common/src/hooks/useConstantContext.js +0 -10
- package/packages/common/src/hooks/useImageUrl.js +0 -8
- package/packages/common/src/hooks/useImageVariant.js +0 -11
- package/packages/common/src/hooks/useLeadForm.js +0 -129
- package/packages/common/src/hooks/useThemeMode.js +0 -30
- package/packages/common/src/locales/bg.json.js +0 -363
- package/packages/common/src/locales/de.json.js +0 -362
- package/packages/common/src/locales/el.json.js +0 -362
- package/packages/common/src/locales/en.json.js +0 -368
- package/packages/common/src/locales/es.json.js +0 -362
- package/packages/common/src/locales/fr-be.json.js +0 -362
- package/packages/common/src/locales/fr.json.js +0 -362
- package/packages/common/src/locales/it.json.js +0 -362
- package/packages/common/src/locales/pl.json.js +0 -362
- package/packages/common/src/locales/pt-br.json.js +0 -362
- package/packages/common/src/locales/pt.json.js +0 -362
- package/packages/common/src/locales/ro.json.js +0 -362
- package/packages/common/src/locales/sk.json.js +0 -362
- package/packages/common/src/locales/sr.json.js +0 -362
- package/packages/common/src/providers/ConstantsProvider.js +0 -29
- package/packages/common/src/providers/ContainerProvider.js +0 -35
- package/packages/common/src/providers/FontProvider.js +0 -25
- package/packages/common/src/providers/ThemeProvider.js +0 -80
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/event-game-play/src/assets/school.svg.js +0 -4
- package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
- package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
- package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
- package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
- package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
- package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
- package/packages/event-game-play/src/helpers/helpers.js +0 -11
- package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
- package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
- package/packages/event-game-play/src/index.js +0 -4
- package/packages/event-game-play/src/main.js +0 -7
- package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
- package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
- package/packages/match-quiz-play/src/index.js +0 -4
- package/packages/match-quiz-play/src/main.js +0 -7
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/poll-vote/src/components/PollNotFound.js +0 -23
- package/packages/poll-vote/src/components/PollVote.js +0 -270
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
- package/packages/poll-vote/src/components/Shared/Button.js +0 -76
- package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
- package/packages/poll-vote/src/hooks/usePollById.js +0 -16
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
- package/packages/poll-vote/src/index.js +0 -4
- package/packages/poll-vote/src/main.js +0 -7
package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const o = (e) => ({
|
|
2
|
-
// Pulse animation for buttons
|
|
3
|
-
pulseAnimation: {
|
|
4
|
-
"@keyframes pulse": {
|
|
5
|
-
"0%": { transform: "scale(1)" },
|
|
6
|
-
"50%": { transform: "scale(1.05)" },
|
|
7
|
-
"100%": { transform: "scale(1)" }
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
// Sign In button
|
|
11
|
-
signInButton: {
|
|
12
|
-
borderRadius: e.buttonRadius,
|
|
13
|
-
bgcolor: e.primaryColor,
|
|
14
|
-
color: "#FFFFFF",
|
|
15
|
-
py: "10px",
|
|
16
|
-
px: "16px",
|
|
17
|
-
"&:hover": {
|
|
18
|
-
bgcolor: e.primaryColor
|
|
19
|
-
},
|
|
20
|
-
"&:active": {
|
|
21
|
-
color: e.onPrimaryColor
|
|
22
|
-
},
|
|
23
|
-
animation: "pulse 1s infinite",
|
|
24
|
-
fontSize: "0.9375em"
|
|
25
|
-
},
|
|
26
|
-
// Start button text
|
|
27
|
-
signInButtonText: {
|
|
28
|
-
fontFamily: e.fontFamilyPrimary,
|
|
29
|
-
fontWeight: 500,
|
|
30
|
-
fontSize: "0.9375em",
|
|
31
|
-
lineHeight: "24px",
|
|
32
|
-
letterSpacing: "0.46px",
|
|
33
|
-
textTransform: "uppercase",
|
|
34
|
-
color: e.onPrimaryColor,
|
|
35
|
-
gap: "8px",
|
|
36
|
-
display: "flex",
|
|
37
|
-
alignItems: "center"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
o as createStyles
|
|
42
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { isMobile as u } from "../../../../../../common/src/functions/theme.js";
|
|
3
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
5
|
-
import "@mui/joy";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import b from "../../../../../../common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import p from "../../../Shared/MainCard.js";
|
|
11
|
-
import c from "../../../Shared/PresentedBy.js";
|
|
12
|
-
import { useTranslation as f } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
-
const D = (o) => {
|
|
14
|
-
var e, t, n, a;
|
|
15
|
-
const g = u(), { t: i } = f(), l = ((e = o.poll.branding) == null ? void 0 : e.colors) || null, s = g ? ((t = o.poll.branding) == null ? void 0 : t.images.mobileLogo) || ((n = o.poll.branding) == null ? void 0 : n.images.mainLogo) || "" : ((a = o.poll.branding) == null ? void 0 : a.images.mainLogo) || "";
|
|
16
|
-
return /* @__PURE__ */ r.jsx(p, { brandingBorderColor: (l == null ? void 0 : l.borderColor) || null, children: /* @__PURE__ */ r.jsx(
|
|
17
|
-
b,
|
|
18
|
-
{
|
|
19
|
-
entity: o.poll,
|
|
20
|
-
headline: i("poll.headline"),
|
|
21
|
-
tryAgainButtonText: i("poll.buttons.tryAgain"),
|
|
22
|
-
defaultImagePlaceholderUrl: o.defaultImagePlaceholderUrl,
|
|
23
|
-
isApiError: o.isApiError,
|
|
24
|
-
toggleTryAgain: o.toggleTryAgain,
|
|
25
|
-
rulesDisplay: o.rulesDisplay,
|
|
26
|
-
renderPresentedBy: (d) => {
|
|
27
|
-
var m;
|
|
28
|
-
return /* @__PURE__ */ r.jsx(
|
|
29
|
-
c,
|
|
30
|
-
{
|
|
31
|
-
brandingLogo: s,
|
|
32
|
-
textColor: d,
|
|
33
|
-
label: ((m = o.poll.labels) == null ? void 0 : m.sponsor) || null
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
) });
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
D as default
|
|
42
|
-
};
|
package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "@mui/joy";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import i from "../../../../../../common/src/components/LeadCollection/SplitLeadAfterCollection.js";
|
|
9
|
-
import m from "../../../Shared/MainCard.js";
|
|
10
|
-
import r from "../../../Shared/PresentedBy.js";
|
|
11
|
-
import l from "../../../Leads/CollectLeadWrapper.js";
|
|
12
|
-
import a from "../../../../assets/default-quiz-bg.png.js";
|
|
13
|
-
import d from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
14
|
-
import { useTranslation as n } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
-
const P = (t) => {
|
|
16
|
-
const { t: e } = n();
|
|
17
|
-
return /* @__PURE__ */ o.jsx(
|
|
18
|
-
i,
|
|
19
|
-
{
|
|
20
|
-
entity: t.poll,
|
|
21
|
-
headline: e("poll.headline"),
|
|
22
|
-
sdk: t.sdk,
|
|
23
|
-
leads: t.leads,
|
|
24
|
-
defaultImagePlaceholder: a,
|
|
25
|
-
mobileImagePlaceholder: d,
|
|
26
|
-
onLeadSubmitted: t.onLeadSubmitted,
|
|
27
|
-
isSubmitting: t.isSubmitting,
|
|
28
|
-
MainCard: m,
|
|
29
|
-
PresentedBy: r,
|
|
30
|
-
CollectLeadWrapper: l
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
P as default
|
|
36
|
-
};
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import Q from "react";
|
|
3
|
-
import { Box as n, Typography as u } from "@mui/joy";
|
|
4
|
-
import { useInternalTheme as he, isMobile as Ce, isLarge as be, useColors as c, useFontFamily as X, useCornerRadius as Y, useSpacingScale as ye, useImageBackgroundGradient as je } from "../../../../../common/src/functions/theme.js";
|
|
5
|
-
import { hexToRgb as pe, stripHtmlTags as Te } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
-
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
-
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
-
import { WidgetTemplate as Z } from "../../../../../common/src/enums/enums.js";
|
|
9
|
-
import { useConstantContext as Pe } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import { ConstantsContext as Se } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import Le from "../../../../../common/src/components/Skeletons/Split/SplitSkeleton.js";
|
|
12
|
-
import { useImageVariant as Ie } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
13
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
14
|
-
import $ from "../../Shared/Button.js";
|
|
15
|
-
import ke from "../../Shared/MainCard.js";
|
|
16
|
-
import Fe from "../../../assets/default-quiz-bg.png.js";
|
|
17
|
-
import Be from "../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
18
|
-
import De from "../../Shared/PresentedBy.js";
|
|
19
|
-
import Re from "../../Leads/CollectLeadWrapper.js";
|
|
20
|
-
import { useEmbedCode as ve } from "../../../hooks/useEmbedCodeContainer.js";
|
|
21
|
-
import { createStyles as Ve } from "./PollSplitVariant.styles.js";
|
|
22
|
-
import we from "../../Shared/Answers/PollOptions.js";
|
|
23
|
-
import { usePollOptionsImages as Oe } from "../../../hooks/usePollOptionsImages.js";
|
|
24
|
-
import { useTranslation as Ae } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
25
|
-
const sl = (e) => {
|
|
26
|
-
var T, P, S, L, I, k, F, B, D, R, v, V, w, O, A, U, E, q, W, G, H, M;
|
|
27
|
-
const [h, C] = Q.useState(
|
|
28
|
-
((T = e.leads) == null ? void 0 : T.position) === "before" && e.poll.authRequirement === "LEAD"
|
|
29
|
-
);
|
|
30
|
-
Q.useEffect(() => {
|
|
31
|
-
var x;
|
|
32
|
-
C(
|
|
33
|
-
((x = e.leads) == null ? void 0 : x.position) === "before" && e.poll.authRequirement === "LEAD" || !1
|
|
34
|
-
);
|
|
35
|
-
}, [(P = e.leads) == null ? void 0 : P.position, e.poll.authRequirement]);
|
|
36
|
-
const { optionsLayout: ee } = Pe(Se), b = he(), y = Ce(), a = be(), le = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : y ? Be : Fe, j = Ie(
|
|
37
|
-
{
|
|
38
|
-
images: e.poll.images,
|
|
39
|
-
imagePlaceholder: le
|
|
40
|
-
},
|
|
41
|
-
Z.SPLIT
|
|
42
|
-
), te = Oe(e.options), { t: m } = Ae(), t = ((S = e.poll.branding) == null ? void 0 : S.colors) || null, s = y ? ((L = e.poll.branding) == null ? void 0 : L.images.mobileLogo) || ((I = e.poll.branding) == null ? void 0 : I.images.mainLogo) || "" : ((k = e.poll.branding) == null ? void 0 : k.images.mainLogo) || "", oe = ve(e.poll.embedCode), g = !h && !!e.poll.embedCode, p = ((F = e.leads) == null ? void 0 : F.position) === "after" ? m("poll.buttons.continue") : m("poll.buttons.vote"), ne = (t == null ? void 0 : t.contentColor) || c().textColor, ie = X().secondary, ae = "60%", se = X().primary, re = Y().xl, ce = (t == null ? void 0 : t.backgroundColor) || c().surfaceVariant, f = (t == null ? void 0 : t.primaryColor) || ((D = (B = c().palette) == null ? void 0 : B.primary) == null ? void 0 : D.plainColor), me = (v = (R = c().palette) == null ? void 0 : R.primary) == null ? void 0 : v.onPrimary, i = c().textColor, d = ye(), de = Y(), xe = je(
|
|
43
|
-
Z.SPLIT
|
|
44
|
-
), ue = pe(ce || ""), o = Ve({
|
|
45
|
-
finalImage: j,
|
|
46
|
-
spacingScale: d,
|
|
47
|
-
borderRadius: de,
|
|
48
|
-
fontFamilyPrimary: se,
|
|
49
|
-
fontFamilySecondary: ie,
|
|
50
|
-
secondaryColor: ne,
|
|
51
|
-
opacity: ae,
|
|
52
|
-
buttonRadius: re,
|
|
53
|
-
bgcolor: ue,
|
|
54
|
-
primaryColor: f,
|
|
55
|
-
onPrimaryColor: me,
|
|
56
|
-
textColor: i,
|
|
57
|
-
brandingColors: t,
|
|
58
|
-
darkTextColor: b.colorSchemes.dark.textColor,
|
|
59
|
-
imageBackgroundGradient: xe,
|
|
60
|
-
isLarge: a
|
|
61
|
-
}), ge = () => {
|
|
62
|
-
C(!1);
|
|
63
|
-
}, r = (x, fe) => {
|
|
64
|
-
var N, _, z, J, K;
|
|
65
|
-
return /* @__PURE__ */ l.jsx(
|
|
66
|
-
De,
|
|
67
|
-
{
|
|
68
|
-
brandingLogo: s,
|
|
69
|
-
textColor: x,
|
|
70
|
-
label: ((N = e.poll.labels) == null ? void 0 : N.sponsor) || null,
|
|
71
|
-
primaryUrl: (z = (_ = e.poll.branding) == null ? void 0 : _.urls) == null ? void 0 : z.primaryUrl,
|
|
72
|
-
secondaryUrl: (K = (J = e.poll.branding) == null ? void 0 : J.urls) == null ? void 0 : K.secondaryUrl,
|
|
73
|
-
isCentered: fe || !1
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ l.jsxs(
|
|
78
|
-
ke,
|
|
79
|
-
{
|
|
80
|
-
brandingBorderColor: (t == null ? void 0 : t.borderColor) || null,
|
|
81
|
-
state: "play",
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ l.jsx(
|
|
84
|
-
Le,
|
|
85
|
-
{
|
|
86
|
-
entity: { ...e.poll, type: "poll" },
|
|
87
|
-
headline: m("poll.headline"),
|
|
88
|
-
finalImage: j,
|
|
89
|
-
rulesDisplay: e.rulesDisplay,
|
|
90
|
-
embedCodeContainerRef: oe,
|
|
91
|
-
hasEmbedCode: g,
|
|
92
|
-
brandingLogo: s,
|
|
93
|
-
renderPresentedBy: r,
|
|
94
|
-
children: /* @__PURE__ */ l.jsx(n, { sx: o.questionArea, children: /* @__PURE__ */ l.jsxs(n, { sx: o.questionAreaContent, children: [
|
|
95
|
-
g && /* @__PURE__ */ l.jsx(n, { sx: o.embedCodeHeadlineContent, children: /* @__PURE__ */ l.jsxs(n, { children: [
|
|
96
|
-
/* @__PURE__ */ l.jsx(
|
|
97
|
-
u,
|
|
98
|
-
{
|
|
99
|
-
sx: {
|
|
100
|
-
...o.pollHeadlineText,
|
|
101
|
-
color: i,
|
|
102
|
-
textAlign: "center"
|
|
103
|
-
},
|
|
104
|
-
children: m("poll.headline")
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
/* @__PURE__ */ l.jsxs(n, { sx: o.contentContainer, children: [
|
|
108
|
-
/* @__PURE__ */ l.jsx(
|
|
109
|
-
u,
|
|
110
|
-
{
|
|
111
|
-
sx: {
|
|
112
|
-
...o.pollTitleText,
|
|
113
|
-
color: i,
|
|
114
|
-
textAlign: "center"
|
|
115
|
-
},
|
|
116
|
-
children: e.poll.title
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ l.jsx(
|
|
120
|
-
u,
|
|
121
|
-
{
|
|
122
|
-
sx: {
|
|
123
|
-
...o.pollDescriptionText,
|
|
124
|
-
color: i,
|
|
125
|
-
textAlign: "center"
|
|
126
|
-
},
|
|
127
|
-
children: Te(e.poll.description)
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
] })
|
|
131
|
-
] }) }),
|
|
132
|
-
h ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
133
|
-
/* @__PURE__ */ l.jsx(n, { sx: o.leadContentContainer, children: /* @__PURE__ */ l.jsx(
|
|
134
|
-
Re,
|
|
135
|
-
{
|
|
136
|
-
sdk: e.sdk,
|
|
137
|
-
startGame: ge,
|
|
138
|
-
contentId: e.poll.id,
|
|
139
|
-
contentName: e.poll.title,
|
|
140
|
-
brandingColors: (V = e.poll.branding) == null ? void 0 : V.colors,
|
|
141
|
-
brandingUrls: (w = e.poll.branding) == null ? void 0 : w.urls,
|
|
142
|
-
campaignId: (O = e.leads) == null ? void 0 : O.campaignId,
|
|
143
|
-
campaignName: (A = e.leads) == null ? void 0 : A.campaignName,
|
|
144
|
-
fields: (U = e.leads) == null ? void 0 : U.fields,
|
|
145
|
-
leadTitle: (E = e.poll.labels) == null ? void 0 : E.leadTitle,
|
|
146
|
-
leadDescription: (q = e.poll.labels) == null ? void 0 : q.leadDescription,
|
|
147
|
-
leadCta: (W = e.poll.labels) == null ? void 0 : W.leadCta,
|
|
148
|
-
leadSuccessTitle: (G = e.poll.labels) == null ? void 0 : G.leadSuccessTitle,
|
|
149
|
-
leadSuccessDescription: (H = e.poll.labels) == null ? void 0 : H.leadSuccessDescription,
|
|
150
|
-
syncWithProfile: (M = e.leads) == null ? void 0 : M.syncWithProfile
|
|
151
|
-
}
|
|
152
|
-
) }),
|
|
153
|
-
s ? /* @__PURE__ */ l.jsx(n, { sx: { display: a ? "block" : "none" }, children: r(i) }) : /* @__PURE__ */ l.jsx(l.Fragment, {})
|
|
154
|
-
] }) : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(n, { sx: o.mainContentContainer, children: [
|
|
155
|
-
e.poll.alternativeTitle ? /* @__PURE__ */ l.jsx(n, { sx: o.alternativeTitleSection, children: /* @__PURE__ */ l.jsx(
|
|
156
|
-
u,
|
|
157
|
-
{
|
|
158
|
-
level: "body-lg",
|
|
159
|
-
sx: o.alternativeTitleText,
|
|
160
|
-
children: e.poll.alternativeTitle
|
|
161
|
-
}
|
|
162
|
-
) }) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
|
|
163
|
-
/* @__PURE__ */ l.jsx(
|
|
164
|
-
we,
|
|
165
|
-
{
|
|
166
|
-
options: e.options || [],
|
|
167
|
-
answerPoll: e.answerPoll,
|
|
168
|
-
selectedOptions: e.selectedOptions,
|
|
169
|
-
optionsLayout: a ? "column" : ee ?? "twoByTwo",
|
|
170
|
-
brandingColors: t,
|
|
171
|
-
optionsImages: te,
|
|
172
|
-
multipleChoice: e.poll.multipleChoice,
|
|
173
|
-
maxChoices: e.optionChoices,
|
|
174
|
-
isVoting: e.isVoting
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
g ? /* @__PURE__ */ l.jsxs(
|
|
178
|
-
n,
|
|
179
|
-
{
|
|
180
|
-
sx: {
|
|
181
|
-
display: "flex",
|
|
182
|
-
flexDirection: a ? "column-reverse" : "row",
|
|
183
|
-
gap: d.lg,
|
|
184
|
-
justifyContent: s ? "space-between" : "center"
|
|
185
|
-
},
|
|
186
|
-
children: [
|
|
187
|
-
r(
|
|
188
|
-
(t == null ? void 0 : t.contentColor) || i
|
|
189
|
-
),
|
|
190
|
-
/* @__PURE__ */ l.jsx(
|
|
191
|
-
$,
|
|
192
|
-
{
|
|
193
|
-
selectedOptions: e.selectedOptions,
|
|
194
|
-
label: p,
|
|
195
|
-
buttonColor: f,
|
|
196
|
-
onClick: e.voteForPoll,
|
|
197
|
-
isVoting: e.isVoting
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
) : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(n, { sx: o.buttonFooterContainer, children: [
|
|
203
|
-
/* @__PURE__ */ l.jsx(
|
|
204
|
-
$,
|
|
205
|
-
{
|
|
206
|
-
selectedOptions: e.selectedOptions,
|
|
207
|
-
label: p,
|
|
208
|
-
buttonColor: f,
|
|
209
|
-
onClick: e.voteForPoll,
|
|
210
|
-
isVoting: e.isVoting
|
|
211
|
-
}
|
|
212
|
-
),
|
|
213
|
-
s && !a ? /* @__PURE__ */ l.jsx(n, { sx: o.presentedByMobile, children: r(
|
|
214
|
-
(t == null ? void 0 : t.contentColor) || i
|
|
215
|
-
) }) : /* @__PURE__ */ l.jsx(l.Fragment, {})
|
|
216
|
-
] }) })
|
|
217
|
-
] }) })
|
|
218
|
-
] }) })
|
|
219
|
-
}
|
|
220
|
-
),
|
|
221
|
-
s && a && /* @__PURE__ */ l.jsx(n, { sx: { mb: d.lg, px: d.lg }, children: r(
|
|
222
|
-
(t == null ? void 0 : t.contentColor) || b.colorSchemes.dark.textColor,
|
|
223
|
-
!0
|
|
224
|
-
) })
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
};
|
|
229
|
-
export {
|
|
230
|
-
sl as default
|
|
231
|
-
};
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
const r = (e) => {
|
|
2
|
-
var t, i, n, a, l, o;
|
|
3
|
-
return {
|
|
4
|
-
// Main headline section with background image
|
|
5
|
-
headlineSection: {
|
|
6
|
-
display: "flex",
|
|
7
|
-
flexDirection: "column",
|
|
8
|
-
justifyContent: "space-between",
|
|
9
|
-
gap: "10px",
|
|
10
|
-
flex: e.isLarge ? "1" : "0 0 50%",
|
|
11
|
-
width: e.isLarge ? "100%" : "50%",
|
|
12
|
-
minWidth: e.isLarge ? "100%" : "50%",
|
|
13
|
-
maxWidth: e.isLarge ? "100%" : "50%",
|
|
14
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
15
|
-
backgroundSize: "cover",
|
|
16
|
-
backgroundPosition: "center",
|
|
17
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
18
|
-
borderTopRightRadius: e.isLarge ? e.borderRadius.md : 0,
|
|
19
|
-
borderBottomLeftRadius: e.isLarge ? 0 : e.borderRadius.md,
|
|
20
|
-
overflow: "hidden",
|
|
21
|
-
height: "auto",
|
|
22
|
-
position: "relative",
|
|
23
|
-
minHeight: e.isLarge ? "210px" : "430px",
|
|
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
|
-
embedCodeHeadlineSection: {
|
|
35
|
-
flex: e.isLarge ? "1" : "0 0 50%",
|
|
36
|
-
width: e.isLarge ? "100%" : "50%",
|
|
37
|
-
minWidth: e.isLarge ? "100%" : "50%",
|
|
38
|
-
maxWidth: e.isLarge ? "100%" : "50%",
|
|
39
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
40
|
-
borderTopRightRadius: e.isLarge ? e.borderRadius.md : 0,
|
|
41
|
-
borderBottomLeftRadius: e.isLarge ? 0 : e.borderRadius.md,
|
|
42
|
-
overflow: "hidden",
|
|
43
|
-
height: "auto",
|
|
44
|
-
position: "relative",
|
|
45
|
-
minHeight: e.isLarge ? "210px" : "430px"
|
|
46
|
-
},
|
|
47
|
-
// Headline content wrapper
|
|
48
|
-
embedCodeHeadlineContent: {
|
|
49
|
-
gap: e.spacingScale.xl,
|
|
50
|
-
display: "flex",
|
|
51
|
-
flexDirection: "column",
|
|
52
|
-
alignItems: "center"
|
|
53
|
-
},
|
|
54
|
-
// Filter screen area
|
|
55
|
-
filterScreenArea: {
|
|
56
|
-
flex: "0.5",
|
|
57
|
-
display: "flex",
|
|
58
|
-
flexDirection: "column",
|
|
59
|
-
p: e.spacingScale.lg
|
|
60
|
-
},
|
|
61
|
-
// Filter screen headline section
|
|
62
|
-
filterScreenHeadlineContent: {
|
|
63
|
-
display: "flex",
|
|
64
|
-
flexDirection: "column",
|
|
65
|
-
justifyContent: "space-between",
|
|
66
|
-
gap: e.spacingScale["2xl"],
|
|
67
|
-
textAlign: "center"
|
|
68
|
-
},
|
|
69
|
-
// Filter screen headline text
|
|
70
|
-
filterScreenHeadlineText: {
|
|
71
|
-
fontWeight: 500,
|
|
72
|
-
lineHeight: "166%",
|
|
73
|
-
letterSpacing: "1px",
|
|
74
|
-
textTransform: "uppercase",
|
|
75
|
-
fontSize: "0.75em",
|
|
76
|
-
color: e.secondaryColor,
|
|
77
|
-
opacity: e.opacity,
|
|
78
|
-
fontFamily: e.fontFamilySecondary
|
|
79
|
-
},
|
|
80
|
-
// Filter screen title text
|
|
81
|
-
filterScreenTitleText: {
|
|
82
|
-
fontWeight: 700,
|
|
83
|
-
lineHeight: "133%",
|
|
84
|
-
letterSpacing: "0px",
|
|
85
|
-
fontSize: "1.5em",
|
|
86
|
-
color: e.textColor,
|
|
87
|
-
fontFamily: e.fontFamilyPrimary
|
|
88
|
-
},
|
|
89
|
-
// Filter screen description text
|
|
90
|
-
filterScreenDescriptionText: {
|
|
91
|
-
fontWeight: 400,
|
|
92
|
-
lineHeight: "140%",
|
|
93
|
-
letterSpacing: "0.15px",
|
|
94
|
-
fontSize: "1.25em",
|
|
95
|
-
color: e.secondaryColor,
|
|
96
|
-
opacity: e.opacity,
|
|
97
|
-
fontFamily: e.fontFamilyPrimary
|
|
98
|
-
},
|
|
99
|
-
// Filter screen CTA wrapper
|
|
100
|
-
filterScreenCtaWrapper: {
|
|
101
|
-
display: "flex",
|
|
102
|
-
flexDirection: "column",
|
|
103
|
-
justifyContent: "space-between",
|
|
104
|
-
alignItems: "center",
|
|
105
|
-
gap: e.spacingScale["2xl"]
|
|
106
|
-
},
|
|
107
|
-
// Headline content wrapper
|
|
108
|
-
headlineContent: {
|
|
109
|
-
zIndex: 1,
|
|
110
|
-
height: "100%",
|
|
111
|
-
p: e.spacingScale.xl,
|
|
112
|
-
gap: e.spacingScale.xl,
|
|
113
|
-
display: "flex",
|
|
114
|
-
flexDirection: "column",
|
|
115
|
-
justifyContent: "space-between"
|
|
116
|
-
},
|
|
117
|
-
// Poll headline typography
|
|
118
|
-
pollHeadlineText: {
|
|
119
|
-
fontWeight: 500,
|
|
120
|
-
lineHeight: "166%",
|
|
121
|
-
letterSpacing: "1px",
|
|
122
|
-
fontSize: "0.75em",
|
|
123
|
-
color: ((t = e.brandingColors) == null ? void 0 : t.secondaryColor) || e.darkTextColor,
|
|
124
|
-
opacity: "70%",
|
|
125
|
-
textTransform: "uppercase",
|
|
126
|
-
fontFamily: e.fontFamilySecondary,
|
|
127
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
128
|
-
},
|
|
129
|
-
// Poll headline typography on filter screen
|
|
130
|
-
pollHeadlineTextFilterScreen: {
|
|
131
|
-
fontWeight: 500,
|
|
132
|
-
lineHeight: "166%",
|
|
133
|
-
letterSpacing: "1px",
|
|
134
|
-
fontSize: "0.75em",
|
|
135
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.textColor,
|
|
136
|
-
opacity: "70%",
|
|
137
|
-
textTransform: "uppercase",
|
|
138
|
-
fontFamily: e.fontFamilySecondary,
|
|
139
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
140
|
-
},
|
|
141
|
-
// Content container
|
|
142
|
-
contentContainer: {
|
|
143
|
-
display: "flex",
|
|
144
|
-
flexDirection: "column",
|
|
145
|
-
gap: e.spacingScale["3xs"]
|
|
146
|
-
},
|
|
147
|
-
// Poll title typography
|
|
148
|
-
pollTitleText: {
|
|
149
|
-
fontWeight: 700,
|
|
150
|
-
lineHeight: "133%",
|
|
151
|
-
fontSize: "1.5em",
|
|
152
|
-
letterSpacing: "0.15px",
|
|
153
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
154
|
-
fontFamily: e.fontFamilyPrimary,
|
|
155
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
156
|
-
},
|
|
157
|
-
// Poll title typography on filter screen
|
|
158
|
-
pollTitleTextFilterScreen: {
|
|
159
|
-
fontWeight: 700,
|
|
160
|
-
lineHeight: "133%",
|
|
161
|
-
fontSize: "1.5em",
|
|
162
|
-
letterSpacing: "0.15px",
|
|
163
|
-
color: ((a = e.brandingColors) == null ? void 0 : a.contentColor) || e.textColor,
|
|
164
|
-
fontFamily: e.fontFamilyPrimary,
|
|
165
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
166
|
-
},
|
|
167
|
-
// Poll description typography
|
|
168
|
-
pollDescriptionText: {
|
|
169
|
-
fontWeight: 400,
|
|
170
|
-
lineHeight: "140%",
|
|
171
|
-
fontSize: "1.25em",
|
|
172
|
-
letterSpacing: "0.15px",
|
|
173
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
174
|
-
opacity: "70%",
|
|
175
|
-
fontFamily: e.fontFamilyPrimary,
|
|
176
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
177
|
-
},
|
|
178
|
-
// Poll description typography on filter screen
|
|
179
|
-
pollDescriptionTextFilterScreen: {
|
|
180
|
-
fontWeight: 400,
|
|
181
|
-
lineHeight: "140%",
|
|
182
|
-
fontSize: "1.25em",
|
|
183
|
-
letterSpacing: "0.15px",
|
|
184
|
-
color: ((o = e.brandingColors) == null ? void 0 : o.secondaryColor) || e.textColor,
|
|
185
|
-
opacity: "70%",
|
|
186
|
-
fontFamily: e.fontFamilyPrimary,
|
|
187
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
188
|
-
},
|
|
189
|
-
// Filter screen bottom container
|
|
190
|
-
filterScreenBottomContainer: {
|
|
191
|
-
display: "flex",
|
|
192
|
-
flexDirection: e.isLarge ? "column-reverse" : "row",
|
|
193
|
-
justifyContent: "space-between",
|
|
194
|
-
alignItems: "center",
|
|
195
|
-
gap: e.spacingScale.lg
|
|
196
|
-
},
|
|
197
|
-
// Start button (filter screen)
|
|
198
|
-
startButton: {
|
|
199
|
-
borderRadius: e.buttonRadius,
|
|
200
|
-
bgcolor: e.primaryColor,
|
|
201
|
-
color: e.onPrimaryColor,
|
|
202
|
-
"&:hover": {
|
|
203
|
-
bgcolor: e.primaryColor
|
|
204
|
-
},
|
|
205
|
-
"&:active": {
|
|
206
|
-
color: e.onPrimaryColor
|
|
207
|
-
},
|
|
208
|
-
animation: "pulse 1s infinite",
|
|
209
|
-
fontSize: "0.9375em",
|
|
210
|
-
py: "10px",
|
|
211
|
-
pr: "12px",
|
|
212
|
-
pl: "16px",
|
|
213
|
-
"--Icon-color": e.onPrimaryColor
|
|
214
|
-
},
|
|
215
|
-
// Start button text
|
|
216
|
-
startButtonText: {
|
|
217
|
-
fontFamily: e.fontFamilyPrimary,
|
|
218
|
-
fontWeight: 500,
|
|
219
|
-
fontSize: "0.9375em",
|
|
220
|
-
lineHeight: "24px",
|
|
221
|
-
letterSpacing: "0.46px",
|
|
222
|
-
textTransform: "uppercase",
|
|
223
|
-
color: e.onPrimaryColor,
|
|
224
|
-
gap: "8px",
|
|
225
|
-
display: "flex",
|
|
226
|
-
alignItems: "center"
|
|
227
|
-
},
|
|
228
|
-
// Presented by desktop container
|
|
229
|
-
presentedByDesktop: {
|
|
230
|
-
display: e.isLarge ? "none" : "block"
|
|
231
|
-
},
|
|
232
|
-
// Question area
|
|
233
|
-
questionArea: {
|
|
234
|
-
width: "100%",
|
|
235
|
-
display: "flex",
|
|
236
|
-
flexDirection: "column",
|
|
237
|
-
justifyContent: "center"
|
|
238
|
-
},
|
|
239
|
-
// Stopwatch container
|
|
240
|
-
stopwatchContainer: {
|
|
241
|
-
display: "flex",
|
|
242
|
-
justifyContent: "center"
|
|
243
|
-
},
|
|
244
|
-
// Lead content container (filter screen)
|
|
245
|
-
leadContentContainer: {
|
|
246
|
-
p: e.spacingScale.md,
|
|
247
|
-
gap: e.spacingScale.md,
|
|
248
|
-
display: "flex",
|
|
249
|
-
flexDirection: "column",
|
|
250
|
-
backdropFilter: "blur(4px)",
|
|
251
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
252
|
-
borderRadius: e.borderRadius.sm
|
|
253
|
-
},
|
|
254
|
-
// Question area content wrapper
|
|
255
|
-
questionAreaContent: {
|
|
256
|
-
p: e.spacingScale.lg,
|
|
257
|
-
display: "flex",
|
|
258
|
-
flexDirection: "column",
|
|
259
|
-
justifyContent: "center",
|
|
260
|
-
gap: "16px"
|
|
261
|
-
},
|
|
262
|
-
// Main content container
|
|
263
|
-
mainContentContainer: {
|
|
264
|
-
p: e.spacingScale.lg,
|
|
265
|
-
gap: e.spacingScale.md,
|
|
266
|
-
display: "flex",
|
|
267
|
-
flexDirection: "column",
|
|
268
|
-
backdropFilter: "blur(4px)",
|
|
269
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
270
|
-
borderRadius: e.borderRadius.sm
|
|
271
|
-
},
|
|
272
|
-
// Aspect ratio container for embed/image
|
|
273
|
-
aspectRatioContainer: {
|
|
274
|
-
borderRadius: e.borderRadius.sm,
|
|
275
|
-
height: "100%",
|
|
276
|
-
flex: 1,
|
|
277
|
-
// Take all available space
|
|
278
|
-
"& > div": {
|
|
279
|
-
height: "100% !important",
|
|
280
|
-
flex: "1 !important"
|
|
281
|
-
// Force flex growth
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
// Question image container
|
|
285
|
-
questionImageContainer: {
|
|
286
|
-
overflow: "hidden",
|
|
287
|
-
borderRadius: e.borderRadius.sm
|
|
288
|
-
},
|
|
289
|
-
// Question image box
|
|
290
|
-
questionImageBox: {
|
|
291
|
-
borderRadius: e.borderRadius.sm,
|
|
292
|
-
overflow: "hidden",
|
|
293
|
-
height: "auto"
|
|
294
|
-
},
|
|
295
|
-
// Question image
|
|
296
|
-
questionImage: {
|
|
297
|
-
width: "100%",
|
|
298
|
-
height: "100%",
|
|
299
|
-
objectFit: "cover"
|
|
300
|
-
},
|
|
301
|
-
// Alternative title section
|
|
302
|
-
alternativeTitleSection: {
|
|
303
|
-
gap: "8px",
|
|
304
|
-
display: "flex",
|
|
305
|
-
justifyContent: "center"
|
|
306
|
-
},
|
|
307
|
-
// Alternative title text
|
|
308
|
-
alternativeTitleText: {
|
|
309
|
-
fontFamily: e.fontFamilyPrimary,
|
|
310
|
-
lineHeight: "150%",
|
|
311
|
-
letterSpacing: "0.15px",
|
|
312
|
-
fontWeight: 500,
|
|
313
|
-
fontSize: "1.25em",
|
|
314
|
-
textAlign: "center",
|
|
315
|
-
color: e.textColor
|
|
316
|
-
},
|
|
317
|
-
// Button and footer container
|
|
318
|
-
buttonFooterContainer: {
|
|
319
|
-
display: "flex",
|
|
320
|
-
flexDirection: "column",
|
|
321
|
-
gap: e.spacingScale.lg
|
|
322
|
-
},
|
|
323
|
-
// Presented by mobile container
|
|
324
|
-
presentedByMobile: {
|
|
325
|
-
display: e.isLarge ? "flex" : "none",
|
|
326
|
-
justifyContent: "center"
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
export {
|
|
331
|
-
r as createStyles
|
|
332
|
-
};
|