fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC5
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 +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -86783
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
};
|