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
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as n } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as O, isMobile as H, isLarge as N, useColors as s, useFontFamily as G, useCornerRadius as J, useSpacingScale as K, useBorderSize as X } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { hexToRgb as I } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { WidgetTemplate as Y } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
-
import Z from "../../../../../../common/src/components/AdditionalCTA.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import _ from "../../../../../../common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js";
|
|
12
|
-
import { useImageVariant as ee } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
13
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
14
|
-
import te from "../../../Shared/MainCard.js";
|
|
15
|
-
import ie from "../../../../assets/default-quiz-bg.png.js";
|
|
16
|
-
import oe from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
17
|
-
import M from "../../../Shared/PresentedBy.js";
|
|
18
|
-
import { createStyles as re } from "./MatchQuizSplitScoreState.styles.js";
|
|
19
|
-
import ne from "../../../Shared/AlertMessage.js";
|
|
20
|
-
import ae from "../../../Shared/Summary/PredictionSummary.js";
|
|
21
|
-
import { useTranslation as le } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
22
|
-
const Me = (e) => {
|
|
23
|
-
var x, f, h, S, b, p, z, C, j;
|
|
24
|
-
const A = O(), { t: c } = le(), r = H(), y = N(), R = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? oe : ie, v = ee(
|
|
25
|
-
{
|
|
26
|
-
images: e.matchQuiz.images,
|
|
27
|
-
imagePlaceholder: R
|
|
28
|
-
},
|
|
29
|
-
Y.SPLIT
|
|
30
|
-
), t = ((x = e.matchQuiz.branding) == null ? void 0 : x.colors) || null, B = (t == null ? void 0 : t.secondaryColor) || s().textSecondary, m = s().secondaryContainer, L = G().primary, d = (t == null ? void 0 : t.backgroundColor) || s().surfaceVariant, u = J(), w = s().textColor, o = K(), E = X().size, a = r ? ((f = e.matchQuiz.branding) == null ? void 0 : f.images.mobileLogo) || ((h = e.matchQuiz.branding) == null ? void 0 : h.images.mainLogo) || "" : ((S = e.matchQuiz.branding) == null ? void 0 : S.images.mainLogo) || "", F = e.matchQuiz.status === "OPEN" && e.prediction && e.squads && e.onPredictionUpdate, k = (l) => {
|
|
31
|
-
console.log(`Edit prediction for fixture at index: ${l}`);
|
|
32
|
-
}, D = !y && a ? /* @__PURE__ */ i.jsx(
|
|
33
|
-
M,
|
|
34
|
-
{
|
|
35
|
-
brandingLogo: a,
|
|
36
|
-
textColor: (t == null ? void 0 : t.contentColor) || A.colorSchemes.dark.textColor,
|
|
37
|
-
label: ((b = e.matchQuiz.labels) == null ? void 0 : b.sponsor) || null,
|
|
38
|
-
primaryUrl: (z = (p = e.matchQuiz.branding) == null ? void 0 : p.urls) == null ? void 0 : z.primaryUrl,
|
|
39
|
-
secondaryUrl: (j = (C = e.matchQuiz.branding) == null ? void 0 : C.urls) == null ? void 0 : j.secondaryUrl
|
|
40
|
-
}
|
|
41
|
-
) : null, g = re({
|
|
42
|
-
spacingScale: o,
|
|
43
|
-
borderRadius: u,
|
|
44
|
-
bgcolor: I(d || ""),
|
|
45
|
-
isMobile: r
|
|
46
|
-
}), $ = {
|
|
47
|
-
display: "flex",
|
|
48
|
-
py: r ? o.xs : o.sm,
|
|
49
|
-
px: r ? o.sm : o.md,
|
|
50
|
-
flexDirection: "row",
|
|
51
|
-
justifyContent: "center",
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
gap: "8px",
|
|
54
|
-
borderRadius: u.xl,
|
|
55
|
-
bgcolor: m,
|
|
56
|
-
border: `${E} solid ${m}`,
|
|
57
|
-
"&:hover": {
|
|
58
|
-
bgcolor: m,
|
|
59
|
-
opacity: 0.9
|
|
60
|
-
},
|
|
61
|
-
fontSize: r ? "0.750em" : "0.8125em",
|
|
62
|
-
textTransform: "uppercase"
|
|
63
|
-
}, q = {
|
|
64
|
-
display: "flex",
|
|
65
|
-
justifyContent: "center",
|
|
66
|
-
alignItems: "center",
|
|
67
|
-
gap: "8px"
|
|
68
|
-
}, V = {
|
|
69
|
-
color: B,
|
|
70
|
-
fontFamily: L,
|
|
71
|
-
fontStyle: "normal",
|
|
72
|
-
fontWeight: 500,
|
|
73
|
-
lineHeight: "22px",
|
|
74
|
-
letterSpacing: "0.46px",
|
|
75
|
-
textTransform: "uppercase"
|
|
76
|
-
}, W = () => {
|
|
77
|
-
var l, P, Q, T, U;
|
|
78
|
-
return /* @__PURE__ */ i.jsx(
|
|
79
|
-
_,
|
|
80
|
-
{
|
|
81
|
-
entity: e.matchQuiz,
|
|
82
|
-
headline: c("matchQuiz.headline"),
|
|
83
|
-
finalImage: v,
|
|
84
|
-
brandingContent: D,
|
|
85
|
-
isTabulated: !1,
|
|
86
|
-
alwaysShowImage: !0,
|
|
87
|
-
rulesDisplay: e.rulesDisplay,
|
|
88
|
-
children: e.isUnauthorized ? /* @__PURE__ */ i.jsx(n, { sx: g.alertMessageArea, children: /* @__PURE__ */ i.jsx(n, { sx: g.alertMessageWrapper, children: /* @__PURE__ */ i.jsx(
|
|
89
|
-
ne,
|
|
90
|
-
{
|
|
91
|
-
variant: "error",
|
|
92
|
-
title: c("common.authentication.accessRequired"),
|
|
93
|
-
message: c("common.authentication.invalidOrMissingAuth")
|
|
94
|
-
}
|
|
95
|
-
) }) }) : /* @__PURE__ */ i.jsxs(n, { sx: g.questionAreaContent, children: [
|
|
96
|
-
/* @__PURE__ */ i.jsx(
|
|
97
|
-
n,
|
|
98
|
-
{
|
|
99
|
-
sx: {
|
|
100
|
-
p: o.lg,
|
|
101
|
-
gap: o.lg,
|
|
102
|
-
display: "flex",
|
|
103
|
-
flexDirection: "column",
|
|
104
|
-
backdropFilter: "blur(4px)",
|
|
105
|
-
bgcolor: `rgba(${d ? I(d || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
106
|
-
borderRadius: u.sm,
|
|
107
|
-
position: "relative",
|
|
108
|
-
overflow: "visible"
|
|
109
|
-
},
|
|
110
|
-
children: F ? /* @__PURE__ */ i.jsx(
|
|
111
|
-
ae,
|
|
112
|
-
{
|
|
113
|
-
fixtures: e.matchQuiz.fixtures,
|
|
114
|
-
prediction: e.prediction,
|
|
115
|
-
brandingPrimaryColor: t == null ? void 0 : t.primaryColor,
|
|
116
|
-
onEditPrediction: k,
|
|
117
|
-
onPredictionUpdate: e.onPredictionUpdate,
|
|
118
|
-
play: e.play,
|
|
119
|
-
view: "score",
|
|
120
|
-
isSplitVariant: !0,
|
|
121
|
-
onPlayResult: e.onPlayResult
|
|
122
|
-
}
|
|
123
|
-
) : null
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
e.additionalCTA && /* @__PURE__ */ i.jsx(
|
|
127
|
-
n,
|
|
128
|
-
{
|
|
129
|
-
sx: {
|
|
130
|
-
display: "flex",
|
|
131
|
-
justifyContent: "center",
|
|
132
|
-
alignItems: "center",
|
|
133
|
-
padding: r ? o.sm : o.md
|
|
134
|
-
},
|
|
135
|
-
children: /* @__PURE__ */ i.jsx(
|
|
136
|
-
Z,
|
|
137
|
-
{
|
|
138
|
-
additionalCTA: e.additionalCTA,
|
|
139
|
-
buttonStyle: $,
|
|
140
|
-
buttonContentStyle: q,
|
|
141
|
-
textStyle: V
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
}
|
|
145
|
-
),
|
|
146
|
-
y && a && /* @__PURE__ */ i.jsx(
|
|
147
|
-
M,
|
|
148
|
-
{
|
|
149
|
-
brandingLogo: a,
|
|
150
|
-
textColor: (t == null ? void 0 : t.contentColor) || w,
|
|
151
|
-
label: ((l = e.matchQuiz.labels) == null ? void 0 : l.sponsor) || null,
|
|
152
|
-
primaryUrl: (Q = (P = e.matchQuiz.branding) == null ? void 0 : P.urls) == null ? void 0 : Q.primaryUrl,
|
|
153
|
-
secondaryUrl: (U = (T = e.matchQuiz.branding) == null ? void 0 : T.urls) == null ? void 0 : U.secondaryUrl
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
] })
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
};
|
|
160
|
-
return /* @__PURE__ */ i.jsx(te, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: W() });
|
|
161
|
-
};
|
|
162
|
-
export {
|
|
163
|
-
Me as default
|
|
164
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const i = (e) => ({
|
|
2
|
-
// Question area content wrapper
|
|
3
|
-
questionAreaContent: {
|
|
4
|
-
p: e.spacingScale.lg,
|
|
5
|
-
display: "flex",
|
|
6
|
-
flexDirection: "column",
|
|
7
|
-
justifyContent: "center",
|
|
8
|
-
gap: e.spacingScale.lg,
|
|
9
|
-
flex: 1,
|
|
10
|
-
height: "100%"
|
|
11
|
-
},
|
|
12
|
-
alertMessageArea: {
|
|
13
|
-
flex: e.isMobile ? 1 : "0 0 50%",
|
|
14
|
-
width: e.isMobile ? "100%" : "50%",
|
|
15
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
16
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
17
|
-
display: "flex",
|
|
18
|
-
flexDirection: "column",
|
|
19
|
-
justifyContent: "center"
|
|
20
|
-
},
|
|
21
|
-
alertMessageWrapper: {
|
|
22
|
-
p: e.spacingScale.lg
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
i as createStyles
|
|
27
|
-
};
|
package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Button as a, Typography as r, Box as P } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as w, isMobile as v, useFontFamily as D, useCornerRadius as F, useColors as y } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import { WidgetTemplate as M } from "../../../../../../common/src/enums/enums.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import R from "../../../../../../common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js";
|
|
10
|
-
import { useImageVariant as _ } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
11
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
12
|
-
import U from "../../../Shared/MainCard.js";
|
|
13
|
-
import E from "../../../../assets/default-quiz-bg.png.js";
|
|
14
|
-
import V from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
15
|
-
import W from "../../../Shared/PresentedBy.js";
|
|
16
|
-
import { createStyles as q } from "./MatchQuizSplitSignIn.styles.js";
|
|
17
|
-
import { useTranslation as G } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
18
|
-
const sn = (n) => {
|
|
19
|
-
var s, m, g, u, c;
|
|
20
|
-
const b = w(), l = v(), A = n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : l ? V : E, j = _(
|
|
21
|
-
{
|
|
22
|
-
images: n.matchQuiz.images,
|
|
23
|
-
imagePlaceholder: A
|
|
24
|
-
},
|
|
25
|
-
M.SPLIT
|
|
26
|
-
), { t: o } = G(), e = ((s = n.matchQuiz.branding) == null ? void 0 : s.colors) || null, B = l ? ((m = n.matchQuiz.branding) == null ? void 0 : m.images.mobileLogo) || ((g = n.matchQuiz.branding) == null ? void 0 : g.images.mainLogo) || "" : ((u = n.matchQuiz.branding) == null ? void 0 : u.images.mainLogo) || "", z = D().primary, L = F().xl, Q = (e == null ? void 0 : e.primaryColor) || y().palette.primary.plainColor, S = y().palette.primary.onPrimary, t = q({
|
|
27
|
-
fontFamilyPrimary: z,
|
|
28
|
-
buttonRadius: L,
|
|
29
|
-
primaryColor: Q,
|
|
30
|
-
onPrimaryColor: S
|
|
31
|
-
}), k = () => {
|
|
32
|
-
var d, I, f, x;
|
|
33
|
-
return n.signInCTA ? (d = n.signInCTA) != null && d.component ? n.signInCTA.component : (I = n.signInCTA) != null && I.onClick ? /* @__PURE__ */ i.jsx(
|
|
34
|
-
a,
|
|
35
|
-
{
|
|
36
|
-
variant: "soft",
|
|
37
|
-
sx: {
|
|
38
|
-
...t.signInButton,
|
|
39
|
-
...t.pulseAnimation
|
|
40
|
-
},
|
|
41
|
-
onClick: n.signInCTA.onClick,
|
|
42
|
-
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
43
|
-
}
|
|
44
|
-
) : (f = n.signInCTA) != null && f.url ? typeof window > "u" ? /* @__PURE__ */ i.jsx(
|
|
45
|
-
P,
|
|
46
|
-
{
|
|
47
|
-
component: "a",
|
|
48
|
-
href: n.signInCTA.url,
|
|
49
|
-
target: ((x = n.signInCTA) == null ? void 0 : x.target) || "_self",
|
|
50
|
-
sx: {
|
|
51
|
-
...t.signInButton,
|
|
52
|
-
...t.pulseAnimation,
|
|
53
|
-
textDecoration: "none",
|
|
54
|
-
display: "inline-flex",
|
|
55
|
-
alignItems: "center",
|
|
56
|
-
justifyContent: "center"
|
|
57
|
-
},
|
|
58
|
-
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
59
|
-
}
|
|
60
|
-
) : /* @__PURE__ */ i.jsx(
|
|
61
|
-
a,
|
|
62
|
-
{
|
|
63
|
-
variant: "soft",
|
|
64
|
-
sx: {
|
|
65
|
-
...t.signInButton,
|
|
66
|
-
...t.pulseAnimation
|
|
67
|
-
},
|
|
68
|
-
onClick: () => {
|
|
69
|
-
var h, C, T;
|
|
70
|
-
((h = n.signInCTA) == null ? void 0 : h.target) === "_blank" ? window.open((C = n.signInCTA) == null ? void 0 : C.url, "_blank") : window.location.href = (T = n.signInCTA) == null ? void 0 : T.url;
|
|
71
|
-
},
|
|
72
|
-
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
73
|
-
}
|
|
74
|
-
) : /* @__PURE__ */ i.jsx(
|
|
75
|
-
a,
|
|
76
|
-
{
|
|
77
|
-
variant: "soft",
|
|
78
|
-
sx: {
|
|
79
|
-
...t.signInButton
|
|
80
|
-
},
|
|
81
|
-
disabled: !0,
|
|
82
|
-
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
|
|
83
|
-
}
|
|
84
|
-
) : /* @__PURE__ */ i.jsx(
|
|
85
|
-
a,
|
|
86
|
-
{
|
|
87
|
-
variant: "soft",
|
|
88
|
-
sx: {
|
|
89
|
-
...t.signInButton
|
|
90
|
-
},
|
|
91
|
-
disabled: !0,
|
|
92
|
-
children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: o("common.signIn") })
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
return /* @__PURE__ */ i.jsx(U, { brandingBorderColor: (e == null ? void 0 : e.borderColor) || null, children: /* @__PURE__ */ i.jsx(
|
|
97
|
-
R,
|
|
98
|
-
{
|
|
99
|
-
entity: n.matchQuiz,
|
|
100
|
-
headline: o("matchQuiz.headline"),
|
|
101
|
-
finalImage: j,
|
|
102
|
-
signInContent: k(),
|
|
103
|
-
brandingContent: /* @__PURE__ */ i.jsx(
|
|
104
|
-
W,
|
|
105
|
-
{
|
|
106
|
-
brandingLogo: B,
|
|
107
|
-
textColor: (e == null ? void 0 : e.contentColor) || b.colorSchemes.dark.textColor,
|
|
108
|
-
label: ((c = n.matchQuiz.labels) == null ? void 0 : c.sponsor) || null,
|
|
109
|
-
isCentered: l
|
|
110
|
-
}
|
|
111
|
-
),
|
|
112
|
-
rulesDisplay: n.rulesDisplay
|
|
113
|
-
}
|
|
114
|
-
) });
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
sn as default
|
|
118
|
-
};
|
package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const o = (r) => ({
|
|
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: r.buttonRadius,
|
|
13
|
-
py: "10px",
|
|
14
|
-
px: "16px",
|
|
15
|
-
bgcolor: r.primaryColor,
|
|
16
|
-
color: r.onPrimaryColor,
|
|
17
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
18
|
-
transform: "scale(1)",
|
|
19
|
-
alignSelf: "center",
|
|
20
|
-
"&:hover": {
|
|
21
|
-
bgcolor: r.primaryColor,
|
|
22
|
-
transform: "scale(1.02)"
|
|
23
|
-
},
|
|
24
|
-
"&:active": {
|
|
25
|
-
color: r.onPrimaryColor,
|
|
26
|
-
transform: "scale(0.98)"
|
|
27
|
-
},
|
|
28
|
-
"&:disabled": {
|
|
29
|
-
bgcolor: r.primaryColor,
|
|
30
|
-
color: r.onPrimaryColor,
|
|
31
|
-
opacity: "12%"
|
|
32
|
-
},
|
|
33
|
-
animation: "pulse 1s infinite",
|
|
34
|
-
fontSize: "0.9375em"
|
|
35
|
-
},
|
|
36
|
-
// Sign in button text
|
|
37
|
-
signInButtonText: {
|
|
38
|
-
fontFamily: r.fontFamilyPrimary,
|
|
39
|
-
fontWeight: 500,
|
|
40
|
-
fontSize: "0.9375em",
|
|
41
|
-
lineHeight: "24px",
|
|
42
|
-
letterSpacing: "0.46px",
|
|
43
|
-
textTransform: "uppercase",
|
|
44
|
-
color: r.onPrimaryColor,
|
|
45
|
-
gap: "8px",
|
|
46
|
-
display: "flex",
|
|
47
|
-
alignItems: "center"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
o as createStyles
|
|
52
|
-
};
|
package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { j as t } 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 s from "../../../../../../common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import c from "../../../Shared/MainCard.js";
|
|
11
|
-
import h from "../../../Shared/PresentedBy.js";
|
|
12
|
-
import { useTranslation as b } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
-
const M = (i) => {
|
|
14
|
-
var o, e, n, m;
|
|
15
|
-
const r = ((o = i.matchQuiz.branding) == null ? void 0 : o.colors) || null, g = u() ? ((e = i.matchQuiz.branding) == null ? void 0 : e.images.mobileLogo) || ((n = i.matchQuiz.branding) == null ? void 0 : n.images.mainLogo) || "" : ((m = i.matchQuiz.branding) == null ? void 0 : m.images.mainLogo) || "", { t: a } = b();
|
|
16
|
-
return /* @__PURE__ */ t.jsx(c, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t.jsx(
|
|
17
|
-
s,
|
|
18
|
-
{
|
|
19
|
-
entity: i.matchQuiz,
|
|
20
|
-
headline: a("matchQuiz.headline"),
|
|
21
|
-
tryAgainButtonText: a("matchQuiz.buttons.tryAgain"),
|
|
22
|
-
defaultImagePlaceholderUrl: i.defaultImagePlaceholderUrl,
|
|
23
|
-
imagePosition: i.imagePosition || "left",
|
|
24
|
-
isApiError: i.isApiError,
|
|
25
|
-
toggleTryAgain: i.toggleTryAgain,
|
|
26
|
-
renderPresentedBy: (d) => {
|
|
27
|
-
var l;
|
|
28
|
-
return /* @__PURE__ */ t.jsx(
|
|
29
|
-
h,
|
|
30
|
-
{
|
|
31
|
-
brandingLogo: g,
|
|
32
|
-
textColor: d,
|
|
33
|
-
label: ((l = i.matchQuiz.labels) == null ? void 0 : l.sponsor) || null
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
},
|
|
37
|
-
rulesDisplay: i.rulesDisplay
|
|
38
|
-
}
|
|
39
|
-
) });
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
M as default
|
|
43
|
-
};
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as a, Typography as s } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as J, isMobile as K, isExtraSmall as X, useColors as n, useFontFamily as D, useCornerRadius as Y, useBorderSize as Z, useSpacingScale as _, useImageBackgroundGradient as ee } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { hexToRgb as k, stripHtmlTags as y } from "../../../../../../common/src/functions/helpers.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { WidgetTemplate as I } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
-
import f from "../../../../../../common/src/components/Rules.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import { useImageVariant as ie } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import te from "../../../Shared/MainCard.js";
|
|
14
|
-
import ae from "../../../Shared/PresentedBy.js";
|
|
15
|
-
import { createStyles as re } from "./MatchQuizStandardFinishedGame.styles.js";
|
|
16
|
-
import { useMatchQuizLeaderboard as se } from "../../../../hooks/useMatchQuizLeaderboard.js";
|
|
17
|
-
import ne from "../../../Shared/Leaderboard/LeaderboardComponent.js";
|
|
18
|
-
import oe from "../../../Shared/Leaderboard/RoundedPagination.js";
|
|
19
|
-
import le from "../../../Shared/FinishedGameWrapper/FinishedGameWrapper.js";
|
|
20
|
-
import { useMatchQuizMarketsResults as ce } from "../../../../hooks/useMatchQuizMarketsResults.js";
|
|
21
|
-
import { useTranslation as me } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
22
|
-
const Fe = (i) => {
|
|
23
|
-
var b, z, Q, S, P;
|
|
24
|
-
const d = J(), l = ie(
|
|
25
|
-
{
|
|
26
|
-
images: i.matchQuiz.images,
|
|
27
|
-
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
28
|
-
},
|
|
29
|
-
I.STANDARD
|
|
30
|
-
), { t: x } = me(), r = ((b = i.matchQuiz.branding) == null ? void 0 : b.colors) || null, o = K(), j = X(), u = o ? ((z = i.matchQuiz.branding) == null ? void 0 : z.images.mobileLogo) || ((Q = i.matchQuiz.branding) == null ? void 0 : Q.images.mainLogo) || "" : ((S = i.matchQuiz.branding) == null ? void 0 : S.images.mainLogo) || "", c = i.imagePosition || "left", M = n().textPrimary, R = (r == null ? void 0 : r.primaryColor) || n().palette.primary.plainColor, p = (r == null ? void 0 : r.contentColor) || n().textColor, F = D().secondary, A = D().primary, B = n().surface, L = `rgba(${k(
|
|
31
|
-
(r == null ? void 0 : r.backgroundColor) || n().surfaceVariant
|
|
32
|
-
)}, 0.5)`, v = n().onSurface, V = Y(), w = Z().size, h = _(), H = `rgba(${k(
|
|
33
|
-
n().surfaceVariant || ""
|
|
34
|
-
)}, 0.5)`, O = ee(
|
|
35
|
-
I.STANDARD
|
|
36
|
-
), W = "60%", G = (r == null ? void 0 : r.secondaryColor) || n().textColor, { leaderboard: q, userRankings: g, pagination: m, currentPage: E, goToPage: N } = se(i.matchQuiz.id, i.sdk), U = ce(
|
|
37
|
-
i.matchQuiz.id,
|
|
38
|
-
i.sdk,
|
|
39
|
-
i.showPredictionDetails || !1
|
|
40
|
-
), t = re({
|
|
41
|
-
finalImage: l,
|
|
42
|
-
spacingScale: h,
|
|
43
|
-
borderRadius: V,
|
|
44
|
-
fontFamilyPrimary: A,
|
|
45
|
-
fontFamilySecondary: F,
|
|
46
|
-
textPrimary: M,
|
|
47
|
-
primaryColor: R,
|
|
48
|
-
textColor: p,
|
|
49
|
-
bgcolor: L,
|
|
50
|
-
buttonBgColor: B,
|
|
51
|
-
onSurfaceColor: v,
|
|
52
|
-
borderSize: w,
|
|
53
|
-
surfaceVariant: H,
|
|
54
|
-
brandingColors: r,
|
|
55
|
-
imagePosition: c,
|
|
56
|
-
successColor: d.colorSchemes.light.palette.success.plainColor,
|
|
57
|
-
dangerColor: d.colorSchemes.light.palette.danger.plainColor,
|
|
58
|
-
onPrimaryColor: d.colorSchemes.light.palette.primary.onPrimary,
|
|
59
|
-
isMobile: o,
|
|
60
|
-
imageBackgroundGradient: O,
|
|
61
|
-
darkTextColor: d.colorSchemes.dark.textColor,
|
|
62
|
-
opacity: W,
|
|
63
|
-
secondaryColor: G,
|
|
64
|
-
isExtraSmall: j
|
|
65
|
-
}), C = () => {
|
|
66
|
-
var T;
|
|
67
|
-
return /* @__PURE__ */ e.jsxs(a, { sx: t.mainContentArea, children: [
|
|
68
|
-
!o && /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(a, { sx: t.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
69
|
-
/* @__PURE__ */ e.jsxs(
|
|
70
|
-
a,
|
|
71
|
-
{
|
|
72
|
-
sx: {
|
|
73
|
-
display: "flex",
|
|
74
|
-
alignItems: "center",
|
|
75
|
-
justifyContent: "center",
|
|
76
|
-
gap: h["3xs"]
|
|
77
|
-
},
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ e.jsx(
|
|
80
|
-
s,
|
|
81
|
-
{
|
|
82
|
-
level: "body-sm",
|
|
83
|
-
sx: t.headlineTypographyDesktop,
|
|
84
|
-
children: x("matchQuiz.headline")
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ e.jsx(
|
|
88
|
-
f,
|
|
89
|
-
{
|
|
90
|
-
rules: i.matchQuiz.rules || "",
|
|
91
|
-
rulesDisplay: i.rulesDisplay,
|
|
92
|
-
isOverlayVariant: !1
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
|
|
99
|
-
/* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypographyDesktop, children: i.matchQuiz.title }),
|
|
100
|
-
/* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypographyDesktop, children: y(i.matchQuiz.description) })
|
|
101
|
-
] })
|
|
102
|
-
] }) }) }),
|
|
103
|
-
/* @__PURE__ */ e.jsx(a, { sx: t.questionArea, children: /* @__PURE__ */ e.jsx(a, { sx: t.questionContainer, children: /* @__PURE__ */ e.jsx(a, { sx: t.questionContentContainer, children: /* @__PURE__ */ e.jsx(
|
|
104
|
-
ne,
|
|
105
|
-
{
|
|
106
|
-
leaderboard: q,
|
|
107
|
-
userRankings: g,
|
|
108
|
-
matchQuiz: i.matchQuiz,
|
|
109
|
-
showHeading: !i.showPredictionDetails
|
|
110
|
-
}
|
|
111
|
-
) }) }) }),
|
|
112
|
-
u || g && m && m.numberOfPages > 1 ? /* @__PURE__ */ e.jsxs(a, { sx: t.presentedByContainer, children: [
|
|
113
|
-
u ? /* @__PURE__ */ e.jsx(
|
|
114
|
-
ae,
|
|
115
|
-
{
|
|
116
|
-
brandingLogo: u,
|
|
117
|
-
textColor: p,
|
|
118
|
-
label: ((T = i.matchQuiz.labels) == null ? void 0 : T.sponsor) || null
|
|
119
|
-
}
|
|
120
|
-
) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
121
|
-
g && m && m.numberOfPages > 1 && /* @__PURE__ */ e.jsx(
|
|
122
|
-
a,
|
|
123
|
-
{
|
|
124
|
-
sx: {
|
|
125
|
-
...t.paginationContainer,
|
|
126
|
-
ml: j ? "0" : "auto"
|
|
127
|
-
},
|
|
128
|
-
children: /* @__PURE__ */ e.jsx(
|
|
129
|
-
oe,
|
|
130
|
-
{
|
|
131
|
-
count: m.numberOfPages,
|
|
132
|
-
page: E,
|
|
133
|
-
onChange: N,
|
|
134
|
-
size: o ? "sm" : "md",
|
|
135
|
-
showFirstButton: !1,
|
|
136
|
-
showLastButton: !1,
|
|
137
|
-
siblingCount: o ? 0 : 1
|
|
138
|
-
}
|
|
139
|
-
)
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
143
|
-
] });
|
|
144
|
-
}, $ = () => o ? l ? /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineWithImage, children: /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
145
|
-
/* @__PURE__ */ e.jsxs(
|
|
146
|
-
a,
|
|
147
|
-
{
|
|
148
|
-
sx: {
|
|
149
|
-
display: "flex",
|
|
150
|
-
alignItems: "center",
|
|
151
|
-
justifyContent: "center",
|
|
152
|
-
gap: h["3xs"]
|
|
153
|
-
},
|
|
154
|
-
children: [
|
|
155
|
-
/* @__PURE__ */ e.jsx(
|
|
156
|
-
s,
|
|
157
|
-
{
|
|
158
|
-
level: "body-sm",
|
|
159
|
-
sx: t.headlineTypographyMobileImage,
|
|
160
|
-
children: x("matchQuiz.headline")
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
/* @__PURE__ */ e.jsx(
|
|
164
|
-
f,
|
|
165
|
-
{
|
|
166
|
-
rules: i.matchQuiz.rules || "",
|
|
167
|
-
rulesDisplay: i.rulesDisplay,
|
|
168
|
-
isOverlayVariant: !1
|
|
169
|
-
}
|
|
170
|
-
)
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
|
|
175
|
-
/* @__PURE__ */ e.jsx(s, { sx: t.titleTypographyMobileImage, children: i.matchQuiz.title }),
|
|
176
|
-
/* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypographyMobileImage, children: y(i.matchQuiz.description) })
|
|
177
|
-
] })
|
|
178
|
-
] }) }) }) : /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
179
|
-
/* @__PURE__ */ e.jsxs(
|
|
180
|
-
a,
|
|
181
|
-
{
|
|
182
|
-
sx: {
|
|
183
|
-
display: "flex",
|
|
184
|
-
alignItems: "center",
|
|
185
|
-
justifyContent: "center",
|
|
186
|
-
gap: h["3xs"]
|
|
187
|
-
},
|
|
188
|
-
children: [
|
|
189
|
-
/* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: t.headlineTypography, children: x("matchQuiz.headline") }),
|
|
190
|
-
/* @__PURE__ */ e.jsx(
|
|
191
|
-
f,
|
|
192
|
-
{
|
|
193
|
-
rules: i.matchQuiz.rules || "",
|
|
194
|
-
rulesDisplay: i.rulesDisplay,
|
|
195
|
-
isOverlayVariant: !1
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
|
-
/* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
|
|
202
|
-
/* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypography, children: i.matchQuiz.title }),
|
|
203
|
-
/* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypography, children: y(i.matchQuiz.description) })
|
|
204
|
-
] })
|
|
205
|
-
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
206
|
-
return /* @__PURE__ */ e.jsx(te, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: i.showPredictionDetails ? /* @__PURE__ */ e.jsx(
|
|
207
|
-
le,
|
|
208
|
-
{
|
|
209
|
-
prediction: i.prediction,
|
|
210
|
-
marketsResults: U,
|
|
211
|
-
brandingColors: (P = i.matchQuiz.branding) == null ? void 0 : P.colors,
|
|
212
|
-
resultsTabPanelSxProps: {
|
|
213
|
-
display: "flex",
|
|
214
|
-
flexDirection: o ? "column" : "row",
|
|
215
|
-
px: 0,
|
|
216
|
-
pb: 0,
|
|
217
|
-
pt: 0
|
|
218
|
-
},
|
|
219
|
-
children: /* @__PURE__ */ e.jsxs(a, { sx: t.scoreStateWrapperContainer, children: [
|
|
220
|
-
l && c === "left" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) }),
|
|
221
|
-
C(),
|
|
222
|
-
l && c === "right" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) })
|
|
223
|
-
] })
|
|
224
|
-
}
|
|
225
|
-
) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
226
|
-
$(),
|
|
227
|
-
l && c === "left" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) }),
|
|
228
|
-
C(),
|
|
229
|
-
l && c === "right" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) })
|
|
230
|
-
] }) });
|
|
231
|
-
};
|
|
232
|
-
export {
|
|
233
|
-
Fe as default
|
|
234
|
-
};
|