fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +4846 -3
- package/CollectLead.js +1252 -3
- package/EventGamePlay.js +7594 -3
- package/MatchQuizPlay.js +11001 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4165 -3
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
- package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -4
- package/_virtual/index2.js +0 -4
- package/_virtual/index3.js +0 -4
- package/_virtual/jsx-runtime.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.development2.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
- package/_virtual/react-is.production.min2.js +0 -4
- package/_virtual/react-jsx-runtime.development.js +0 -4
- package/_virtual/react-jsx-runtime.production.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
- package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
- package/packages/classic-quiz-play/src/constants/constants.js +0 -4
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
- package/packages/classic-quiz-play/src/index.js +0 -4
- package/packages/classic-quiz-play/src/main.js +0 -7
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/collect-lead/src/components/CollectLead.js +0 -18
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
- package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
- package/packages/collect-lead/src/index.js +0 -4
- package/packages/collect-lead/src/main.js +0 -39
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
- package/packages/common/src/components/AdditionalCTA.js +0 -24
- package/packages/common/src/components/AlertMessage.js +0 -88
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
- package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
- package/packages/common/src/components/Leads/LeadForm.js +0 -498
- package/packages/common/src/components/Portal.js +0 -62
- package/packages/common/src/components/Rules.js +0 -299
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
- package/packages/common/src/components/Spinner.js +0 -36
- package/packages/common/src/constants/constants.js +0 -457
- package/packages/common/src/enums/enums.js +0 -4
- package/packages/common/src/functions/helpers.js +0 -58
- package/packages/common/src/functions/i18n.js +0 -69
- package/packages/common/src/functions/theme.js +0 -301
- package/packages/common/src/hooks/useConstantContext.js +0 -10
- package/packages/common/src/hooks/useImageUrl.js +0 -8
- package/packages/common/src/hooks/useImageVariant.js +0 -11
- package/packages/common/src/hooks/useLeadForm.js +0 -129
- package/packages/common/src/hooks/useThemeMode.js +0 -30
- package/packages/common/src/locales/bg.json.js +0 -363
- package/packages/common/src/locales/de.json.js +0 -362
- package/packages/common/src/locales/el.json.js +0 -362
- package/packages/common/src/locales/en.json.js +0 -368
- package/packages/common/src/locales/es.json.js +0 -362
- package/packages/common/src/locales/fr-be.json.js +0 -362
- package/packages/common/src/locales/fr.json.js +0 -362
- package/packages/common/src/locales/it.json.js +0 -362
- package/packages/common/src/locales/pl.json.js +0 -362
- package/packages/common/src/locales/pt-br.json.js +0 -362
- package/packages/common/src/locales/pt.json.js +0 -362
- package/packages/common/src/locales/ro.json.js +0 -362
- package/packages/common/src/locales/sk.json.js +0 -362
- package/packages/common/src/locales/sr.json.js +0 -362
- package/packages/common/src/providers/ConstantsProvider.js +0 -29
- package/packages/common/src/providers/ContainerProvider.js +0 -35
- package/packages/common/src/providers/FontProvider.js +0 -25
- package/packages/common/src/providers/ThemeProvider.js +0 -80
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/event-game-play/src/assets/school.svg.js +0 -4
- package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
- package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
- package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
- package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
- package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
- package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
- package/packages/event-game-play/src/helpers/helpers.js +0 -11
- package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
- package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
- package/packages/event-game-play/src/index.js +0 -4
- package/packages/event-game-play/src/main.js +0 -7
- package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
- package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
- package/packages/match-quiz-play/src/index.js +0 -4
- package/packages/match-quiz-play/src/main.js +0 -7
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/poll-vote/src/components/PollNotFound.js +0 -23
- package/packages/poll-vote/src/components/PollVote.js +0 -270
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
- package/packages/poll-vote/src/components/Shared/Button.js +0 -76
- package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
- package/packages/poll-vote/src/hooks/usePollById.js +0 -16
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
- package/packages/poll-vote/src/index.js +0 -4
- package/packages/poll-vote/src/main.js +0 -7
package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
const i = (e) => ({
|
|
2
|
-
// Mobile headline with image background
|
|
3
|
-
mobileHeadlineWithImage: {
|
|
4
|
-
display: e.isMobile ? "flex" : "none",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
justifyContent: "space-between",
|
|
7
|
-
gap: "10px",
|
|
8
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
9
|
-
backgroundSize: "cover",
|
|
10
|
-
backgroundPosition: "center",
|
|
11
|
-
borderTopLeftRadius: "5px",
|
|
12
|
-
borderTopRightRadius: "5px",
|
|
13
|
-
position: "relative",
|
|
14
|
-
minHeight: "210px",
|
|
15
|
-
overflow: "hidden",
|
|
16
|
-
height: "auto",
|
|
17
|
-
"&::before": {
|
|
18
|
-
content: '""',
|
|
19
|
-
position: "absolute",
|
|
20
|
-
width: "100%",
|
|
21
|
-
height: "100%",
|
|
22
|
-
background: e.imageBackgroundGradient,
|
|
23
|
-
borderTopLeftRadius: "5px",
|
|
24
|
-
borderTopRightRadius: "5px"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
// Mobile headline content
|
|
28
|
-
mobileHeadlineContent: {
|
|
29
|
-
zIndex: 1,
|
|
30
|
-
height: "100%",
|
|
31
|
-
p: e.spacingScale.xl,
|
|
32
|
-
gap: e.spacingScale["2xl"],
|
|
33
|
-
display: "flex",
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
justifyContent: "space-between"
|
|
36
|
-
},
|
|
37
|
-
// Mobile headline without image
|
|
38
|
-
mobileHeadlineWithoutImage: {
|
|
39
|
-
display: e.isMobile ? "flex" : "none",
|
|
40
|
-
flexDirection: "column",
|
|
41
|
-
justifyContent: "space-between",
|
|
42
|
-
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
43
|
-
gap: e.spacingScale["2xl"]
|
|
44
|
-
},
|
|
45
|
-
// Headline typography (mobile with image)
|
|
46
|
-
headlineTypographyMobileImage: {
|
|
47
|
-
fontWeight: 500,
|
|
48
|
-
lineHeight: "166%",
|
|
49
|
-
letterSpacing: "1px",
|
|
50
|
-
fontSize: "0.75em",
|
|
51
|
-
color: e.darkTextColor,
|
|
52
|
-
opacity: "70%",
|
|
53
|
-
textTransform: "uppercase",
|
|
54
|
-
fontFamily: e.fontFamilySecondary,
|
|
55
|
-
textAlign: "center"
|
|
56
|
-
},
|
|
57
|
-
// Headline typography (mobile without image & desktop)
|
|
58
|
-
headlineTypography: {
|
|
59
|
-
fontWeight: 500,
|
|
60
|
-
lineHeight: "166%",
|
|
61
|
-
letterSpacing: "1px",
|
|
62
|
-
textTransform: "uppercase",
|
|
63
|
-
fontSize: "0.75em",
|
|
64
|
-
color: e.secondaryColor,
|
|
65
|
-
opacity: e.opacity,
|
|
66
|
-
fontFamily: e.fontFamilySecondary,
|
|
67
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
68
|
-
},
|
|
69
|
-
// Headline typography (desktop centered)
|
|
70
|
-
headlineTypographyDesktop: {
|
|
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
|
-
// Content container
|
|
81
|
-
contentContainer: {
|
|
82
|
-
display: "flex",
|
|
83
|
-
flexDirection: "column",
|
|
84
|
-
gap: e.spacingScale["3xs"]
|
|
85
|
-
},
|
|
86
|
-
// Title typography (mobile with image)
|
|
87
|
-
titleTypographyMobileImage: {
|
|
88
|
-
fontWeight: 700,
|
|
89
|
-
lineHeight: "133%",
|
|
90
|
-
fontSize: "1.5em",
|
|
91
|
-
letterSpacing: "0.15px",
|
|
92
|
-
color: e.darkTextColor,
|
|
93
|
-
fontFamily: e.fontFamilyPrimary,
|
|
94
|
-
textAlign: "center"
|
|
95
|
-
},
|
|
96
|
-
// Title typography (mobile without image & desktop responsive)
|
|
97
|
-
titleTypography: {
|
|
98
|
-
fontWeight: 700,
|
|
99
|
-
lineHeight: "133%",
|
|
100
|
-
letterSpacing: "0px",
|
|
101
|
-
fontSize: "1.5em",
|
|
102
|
-
color: e.textColor,
|
|
103
|
-
fontFamily: e.fontFamilyPrimary,
|
|
104
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
105
|
-
},
|
|
106
|
-
// Title typography (desktop centered)
|
|
107
|
-
titleTypographyDesktop: {
|
|
108
|
-
fontWeight: 700,
|
|
109
|
-
lineHeight: "133%",
|
|
110
|
-
letterSpacing: "0px",
|
|
111
|
-
fontSize: "1.5em",
|
|
112
|
-
color: e.textColor,
|
|
113
|
-
fontFamily: e.fontFamilyPrimary
|
|
114
|
-
},
|
|
115
|
-
// Description typography (mobile with image)
|
|
116
|
-
descriptionTypographyMobileImage: {
|
|
117
|
-
fontWeight: 400,
|
|
118
|
-
lineHeight: "140%",
|
|
119
|
-
fontSize: "1.25em",
|
|
120
|
-
letterSpacing: "0.15px",
|
|
121
|
-
color: e.darkTextColor,
|
|
122
|
-
opacity: "70%",
|
|
123
|
-
fontFamily: e.fontFamilyPrimary,
|
|
124
|
-
textAlign: "center"
|
|
125
|
-
},
|
|
126
|
-
// Description typography (mobile without image & desktop responsive)
|
|
127
|
-
descriptionTypography: {
|
|
128
|
-
fontWeight: 400,
|
|
129
|
-
lineHeight: "140%",
|
|
130
|
-
letterSpacing: "0.15px",
|
|
131
|
-
fontSize: "1.25em",
|
|
132
|
-
color: e.secondaryColor,
|
|
133
|
-
opacity: e.opacity,
|
|
134
|
-
fontFamily: e.fontFamilyPrimary,
|
|
135
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
136
|
-
},
|
|
137
|
-
// Description typography (desktop centered)
|
|
138
|
-
descriptionTypographyDesktop: {
|
|
139
|
-
fontWeight: 400,
|
|
140
|
-
lineHeight: "140%",
|
|
141
|
-
letterSpacing: "0.15px",
|
|
142
|
-
fontSize: "1.25em",
|
|
143
|
-
color: e.secondaryColor,
|
|
144
|
-
opacity: e.opacity,
|
|
145
|
-
fontFamily: e.fontFamilyPrimary
|
|
146
|
-
},
|
|
147
|
-
// Image container (left position)
|
|
148
|
-
imageContainerLeft: {
|
|
149
|
-
display: e.isMobile ? "none" : "block",
|
|
150
|
-
flex: "0.3",
|
|
151
|
-
overflow: "hidden",
|
|
152
|
-
height: "auto",
|
|
153
|
-
position: "relative",
|
|
154
|
-
minHeight: "auto",
|
|
155
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
156
|
-
backgroundSize: "cover",
|
|
157
|
-
backgroundPosition: "center center",
|
|
158
|
-
backgroundRepeat: "no-repeat",
|
|
159
|
-
alignItems: "center",
|
|
160
|
-
justifyContent: "center"
|
|
161
|
-
},
|
|
162
|
-
// Image container (right position)
|
|
163
|
-
imageContainerRight: {
|
|
164
|
-
display: e.isMobile ? "none" : "block",
|
|
165
|
-
flex: "0.3",
|
|
166
|
-
overflow: "hidden",
|
|
167
|
-
height: "auto",
|
|
168
|
-
position: "relative",
|
|
169
|
-
minHeight: "auto",
|
|
170
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
171
|
-
backgroundSize: "cover",
|
|
172
|
-
backgroundPosition: "center center",
|
|
173
|
-
backgroundRepeat: "no-repeat",
|
|
174
|
-
alignItems: "center",
|
|
175
|
-
justifyContent: "center"
|
|
176
|
-
},
|
|
177
|
-
// Main content area
|
|
178
|
-
mainContentArea: {
|
|
179
|
-
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
180
|
-
display: "flex",
|
|
181
|
-
flexDirection: "column",
|
|
182
|
-
px: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
183
|
-
pt: e.spacingScale.lg,
|
|
184
|
-
pb: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
185
|
-
gap: e.isExtraSmall ? e.spacingScale.sm : e.spacingScale.md
|
|
186
|
-
},
|
|
187
|
-
// Desktop headline container
|
|
188
|
-
desktopHeadlineContainer: {
|
|
189
|
-
display: e.isMobile ? "none" : "flex",
|
|
190
|
-
flexDirection: "column",
|
|
191
|
-
justifyContent: "space-between",
|
|
192
|
-
gap: e.spacingScale["2xl"],
|
|
193
|
-
textAlign: "center"
|
|
194
|
-
},
|
|
195
|
-
// Lead collection container
|
|
196
|
-
leadCollectionContainer: {
|
|
197
|
-
display: "flex",
|
|
198
|
-
flexDirection: "column",
|
|
199
|
-
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md
|
|
200
|
-
},
|
|
201
|
-
// Lead question container
|
|
202
|
-
leadQuestionContainer: {
|
|
203
|
-
display: "flex",
|
|
204
|
-
flexDirection: "column",
|
|
205
|
-
gap: e.isExtraSmall ? e.spacingScale.lg : e.spacingScale.md
|
|
206
|
-
},
|
|
207
|
-
// Lead content container
|
|
208
|
-
leadContentContainer: {
|
|
209
|
-
borderRadius: e.borderRadius.md,
|
|
210
|
-
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
211
|
-
gap: e.spacingScale.md,
|
|
212
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
213
|
-
display: "flex",
|
|
214
|
-
flexDirection: "column",
|
|
215
|
-
backdropFilter: "blur(4px)"
|
|
216
|
-
},
|
|
217
|
-
// Question area
|
|
218
|
-
questionArea: {
|
|
219
|
-
display: "flex",
|
|
220
|
-
flexDirection: "column",
|
|
221
|
-
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md
|
|
222
|
-
},
|
|
223
|
-
// Question container
|
|
224
|
-
questionContainer: {
|
|
225
|
-
display: "flex",
|
|
226
|
-
flexDirection: "column",
|
|
227
|
-
gap: e.isExtraSmall ? e.spacingScale.lg : e.spacingScale.md
|
|
228
|
-
},
|
|
229
|
-
// Question content container
|
|
230
|
-
questionContentContainer: {
|
|
231
|
-
borderRadius: e.borderRadius.md,
|
|
232
|
-
p: e.spacingScale.md,
|
|
233
|
-
gap: e.spacingScale.md,
|
|
234
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
235
|
-
display: "flex",
|
|
236
|
-
flexDirection: "column",
|
|
237
|
-
backdropFilter: "blur(4px)",
|
|
238
|
-
position: "relative",
|
|
239
|
-
zIndex: 2
|
|
240
|
-
},
|
|
241
|
-
// Footer container
|
|
242
|
-
footerContainer: {
|
|
243
|
-
display: "flex",
|
|
244
|
-
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
245
|
-
justifyContent: "space-between",
|
|
246
|
-
alignItems: "center",
|
|
247
|
-
gap: e.spacingScale.lg
|
|
248
|
-
},
|
|
249
|
-
// Footer container (no logo)
|
|
250
|
-
footerContainerNoLogo: {
|
|
251
|
-
display: "flex",
|
|
252
|
-
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
253
|
-
justifyContent: "flex-end",
|
|
254
|
-
alignItems: "center",
|
|
255
|
-
gap: e.spacingScale.lg
|
|
256
|
-
},
|
|
257
|
-
// Presented by mobile
|
|
258
|
-
presentedByMobile: {
|
|
259
|
-
display: e.isExtraSmall ? "block" : "none"
|
|
260
|
-
},
|
|
261
|
-
// Pagination container
|
|
262
|
-
paginationContainer: {
|
|
263
|
-
display: "flex",
|
|
264
|
-
flexDirection: "column",
|
|
265
|
-
alignItems: "center",
|
|
266
|
-
gap: e.spacingScale.md
|
|
267
|
-
},
|
|
268
|
-
// Navigation container
|
|
269
|
-
navigationContainer: {
|
|
270
|
-
display: "flex",
|
|
271
|
-
gap: e.spacingScale.md,
|
|
272
|
-
justifyContent: "center",
|
|
273
|
-
alignItems: "center"
|
|
274
|
-
},
|
|
275
|
-
// Game State Styles
|
|
276
|
-
gameStateContainer: {
|
|
277
|
-
display: "flex",
|
|
278
|
-
flexDirection: "column",
|
|
279
|
-
alignItems: "center",
|
|
280
|
-
justifyContent: "center",
|
|
281
|
-
textAlign: "center",
|
|
282
|
-
padding: `${e.spacingScale.xs} ${e.spacingScale.sm}`,
|
|
283
|
-
gap: e.spacingScale["3xs"]
|
|
284
|
-
},
|
|
285
|
-
stateTitle: {
|
|
286
|
-
fontFamily: e.fontFamilyPrimary,
|
|
287
|
-
fontSize: "1.5em",
|
|
288
|
-
fontWeight: 700,
|
|
289
|
-
color: e.textColor,
|
|
290
|
-
lineHeight: 1.3
|
|
291
|
-
},
|
|
292
|
-
stateDescription: {
|
|
293
|
-
fontFamily: e.fontFamilyPrimary,
|
|
294
|
-
fontSize: "1.25em",
|
|
295
|
-
letterSpacing: "0.15px",
|
|
296
|
-
fontWeight: 400,
|
|
297
|
-
color: e.secondaryColor,
|
|
298
|
-
lineHeight: 1.4,
|
|
299
|
-
opacity: e.opacity
|
|
300
|
-
},
|
|
301
|
-
liveIndicatorContainer: {
|
|
302
|
-
display: "flex",
|
|
303
|
-
alignItems: "center",
|
|
304
|
-
gap: e.spacingScale.xs,
|
|
305
|
-
marginTop: e.spacingScale.xs
|
|
306
|
-
},
|
|
307
|
-
liveIndicator: {
|
|
308
|
-
width: "12px",
|
|
309
|
-
height: "12px",
|
|
310
|
-
borderRadius: "50%",
|
|
311
|
-
backgroundColor: e.dangerColor,
|
|
312
|
-
animation: "pulse 2s infinite",
|
|
313
|
-
"@keyframes pulse": {
|
|
314
|
-
"0%": {
|
|
315
|
-
opacity: 1,
|
|
316
|
-
transform: "scale(1)"
|
|
317
|
-
},
|
|
318
|
-
"50%": {
|
|
319
|
-
opacity: 0.7,
|
|
320
|
-
transform: "scale(1.1)"
|
|
321
|
-
},
|
|
322
|
-
"100%": {
|
|
323
|
-
opacity: 1,
|
|
324
|
-
transform: "scale(1)"
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
liveText: {
|
|
329
|
-
fontFamily: e.fontFamilySecondary,
|
|
330
|
-
fontSize: "0.875em",
|
|
331
|
-
color: e.dangerColor,
|
|
332
|
-
fontWeight: 600,
|
|
333
|
-
textTransform: "uppercase",
|
|
334
|
-
letterSpacing: "0.5px"
|
|
335
|
-
},
|
|
336
|
-
closedStateHeader: {
|
|
337
|
-
display: "flex",
|
|
338
|
-
alignItems: "center",
|
|
339
|
-
justifyContent: "center",
|
|
340
|
-
gap: e.spacingScale.sm,
|
|
341
|
-
flexWrap: "wrap"
|
|
342
|
-
},
|
|
343
|
-
// Match Result Badge Styles (like prediction badges)
|
|
344
|
-
matchResultBadge: {
|
|
345
|
-
display: "flex",
|
|
346
|
-
alignItems: "center",
|
|
347
|
-
gap: e.spacingScale.xs,
|
|
348
|
-
fontSize: "0.75em",
|
|
349
|
-
padding: "2px 6px",
|
|
350
|
-
minHeight: "20px",
|
|
351
|
-
borderRadius: e.borderRadius.sm,
|
|
352
|
-
border: `1px solid ${e.textColor}20`,
|
|
353
|
-
backgroundColor: e.textColor + "10",
|
|
354
|
-
width: "fit-content"
|
|
355
|
-
},
|
|
356
|
-
matchResultTeamLogo: {
|
|
357
|
-
width: e.isExtraSmall ? "16px" : "20px",
|
|
358
|
-
height: e.isExtraSmall ? "16px" : "20px",
|
|
359
|
-
borderRadius: "50%",
|
|
360
|
-
overflow: "hidden",
|
|
361
|
-
flexShrink: 0
|
|
362
|
-
},
|
|
363
|
-
matchResultScoreText: {
|
|
364
|
-
fontFamily: e.fontFamilyPrimary,
|
|
365
|
-
fontSize: "0.75em",
|
|
366
|
-
fontWeight: 600,
|
|
367
|
-
color: e.textColor,
|
|
368
|
-
lineHeight: 1
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
export {
|
|
372
|
-
i as createStyles
|
|
373
|
-
};
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as a, Typography as n } from "@mui/joy";
|
|
3
|
-
import { useInternalTheme as w, isMobile as L, isExtraSmall as O, useColors as t, useFontFamily as f, useCornerRadius as q, useBorderSize as z, useSpacingScale as U, useImageBackgroundGradient as $ } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import { hexToRgb as j, stripHtmlTags as g } 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 p } from "../../../../../../common/src/enums/enums.js";
|
|
8
|
-
import h from "../../../../../../common/src/components/Rules.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import { useImageVariant as J } from "../../../../../../common/src/hooks/useImageVariant.js";
|
|
12
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
13
|
-
import K from "../../../Shared/MainCard.js";
|
|
14
|
-
import { createStyles as Q } from "./EventGameStandardFinishedGame.styles.js";
|
|
15
|
-
import X from "../../../Shared/FinishedGameWrapper/FinishedGameWrapper.js";
|
|
16
|
-
import Y from "../../../Shared/Leaderboard/LeaderboardComponent.js";
|
|
17
|
-
import Z from "../../../Shared/Leaderboard/LeaderboardPagination.js";
|
|
18
|
-
import { useEventRankings as _ } from "../../../../hooks/useEventRankings.js";
|
|
19
|
-
import { useTranslation as ee } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
20
|
-
const Ce = (i) => {
|
|
21
|
-
const c = w(), s = J(
|
|
22
|
-
{
|
|
23
|
-
images: i.eventGame.images,
|
|
24
|
-
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
25
|
-
},
|
|
26
|
-
p.STANDARD
|
|
27
|
-
), { t: d } = ee(), C = null, m = L(), u = O(), o = i.imagePosition || "left", v = t().textPrimary, P = t().palette.primary.plainColor, b = t().textColor, S = f().secondary, T = f().primary, G = t().surface, D = `rgba(${j(t().surfaceVariant)}, 0.5)`, I = t().onSurface, k = q(), R = z().size, x = U(), A = `rgba(${j(
|
|
28
|
-
t().surfaceVariant || ""
|
|
29
|
-
)}, 0.5)`, M = $(
|
|
30
|
-
p.STANDARD
|
|
31
|
-
), V = "60%", F = t().textColor, { rankings: B, pagination: l, loading: H, goToNextPage: N, goToPreviousPage: E } = _(i.eventGame.id, i.sdk), r = Q({
|
|
32
|
-
finalImage: s,
|
|
33
|
-
spacingScale: x,
|
|
34
|
-
borderRadius: k,
|
|
35
|
-
fontFamilyPrimary: T,
|
|
36
|
-
fontFamilySecondary: S,
|
|
37
|
-
textPrimary: v,
|
|
38
|
-
primaryColor: P,
|
|
39
|
-
textColor: b,
|
|
40
|
-
bgcolor: D,
|
|
41
|
-
buttonBgColor: G,
|
|
42
|
-
onSurfaceColor: I,
|
|
43
|
-
borderSize: R,
|
|
44
|
-
surfaceVariant: A,
|
|
45
|
-
brandingColors: C,
|
|
46
|
-
imagePosition: o,
|
|
47
|
-
successColor: c.colorSchemes.light.palette.success.plainColor,
|
|
48
|
-
dangerColor: c.colorSchemes.light.palette.danger.plainColor,
|
|
49
|
-
onPrimaryColor: c.colorSchemes.light.palette.primary.onPrimary,
|
|
50
|
-
isMobile: m,
|
|
51
|
-
imageBackgroundGradient: M,
|
|
52
|
-
darkTextColor: c.colorSchemes.dark.textColor,
|
|
53
|
-
opacity: V,
|
|
54
|
-
secondaryColor: F,
|
|
55
|
-
isExtraSmall: u
|
|
56
|
-
}), y = () => /* @__PURE__ */ e.jsxs(a, { sx: r.mainContentArea, children: [
|
|
57
|
-
!m && /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(a, { sx: r.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsxs(
|
|
58
|
-
a,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
display: "flex",
|
|
62
|
-
flexDirection: "column",
|
|
63
|
-
alignItems: "center"
|
|
64
|
-
},
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ e.jsxs(
|
|
67
|
-
a,
|
|
68
|
-
{
|
|
69
|
-
sx: {
|
|
70
|
-
display: "flex",
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
gap: x["3xs"]
|
|
73
|
-
},
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ e.jsx(
|
|
76
|
-
n,
|
|
77
|
-
{
|
|
78
|
-
level: "body-sm",
|
|
79
|
-
sx: r.headlineTypographyDesktop,
|
|
80
|
-
children: d("eventGame.headline")
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ e.jsx(
|
|
84
|
-
h,
|
|
85
|
-
{
|
|
86
|
-
rules: i.eventGame.rules || "",
|
|
87
|
-
rulesDisplay: i.rulesDisplay,
|
|
88
|
-
isOverlayVariant: !1
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
95
|
-
/* @__PURE__ */ e.jsx(n, { level: "h4", sx: r.titleTypographyDesktop, children: i.eventGame.title }),
|
|
96
|
-
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypographyDesktop, children: g(i.eventGame.description) })
|
|
97
|
-
] })
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
) }) }),
|
|
101
|
-
/* @__PURE__ */ e.jsx(a, { sx: r.questionArea, children: /* @__PURE__ */ e.jsx(a, { sx: r.questionContainer, children: /* @__PURE__ */ e.jsx(a, { sx: r.questionContentContainer, children: /* @__PURE__ */ e.jsx(
|
|
102
|
-
Y,
|
|
103
|
-
{
|
|
104
|
-
leaderboard: B,
|
|
105
|
-
userRanking: i.prediction,
|
|
106
|
-
showHeading: !i.showPredictionDetails,
|
|
107
|
-
loading: H
|
|
108
|
-
}
|
|
109
|
-
) }) }) }),
|
|
110
|
-
l && (l.hasNextPage || l.hasPreviousPage) && /* @__PURE__ */ e.jsx(a, { sx: r.presentedByContainer, children: /* @__PURE__ */ e.jsx(
|
|
111
|
-
a,
|
|
112
|
-
{
|
|
113
|
-
sx: {
|
|
114
|
-
...r.paginationContainer,
|
|
115
|
-
ml: u ? "0" : "auto"
|
|
116
|
-
},
|
|
117
|
-
children: /* @__PURE__ */ e.jsx(
|
|
118
|
-
Z,
|
|
119
|
-
{
|
|
120
|
-
hasNextPage: l.hasNextPage,
|
|
121
|
-
hasPreviousPage: l.hasPreviousPage,
|
|
122
|
-
onNextPage: N,
|
|
123
|
-
onPreviousPage: E,
|
|
124
|
-
isOverlayVariant: !1,
|
|
125
|
-
justifyContent: "flex-start"
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
) })
|
|
130
|
-
] }), W = () => m ? s ? /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineWithImage, children: /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
131
|
-
/* @__PURE__ */ e.jsxs(
|
|
132
|
-
a,
|
|
133
|
-
{
|
|
134
|
-
sx: {
|
|
135
|
-
display: "flex",
|
|
136
|
-
alignItems: "center",
|
|
137
|
-
justifyContent: "center",
|
|
138
|
-
gap: x["3xs"]
|
|
139
|
-
},
|
|
140
|
-
children: [
|
|
141
|
-
/* @__PURE__ */ e.jsx(
|
|
142
|
-
n,
|
|
143
|
-
{
|
|
144
|
-
level: "body-sm",
|
|
145
|
-
sx: r.headlineTypographyMobileImage,
|
|
146
|
-
children: d("eventGame.headline")
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
/* @__PURE__ */ e.jsx(
|
|
150
|
-
h,
|
|
151
|
-
{
|
|
152
|
-
rules: i.eventGame.rules || "",
|
|
153
|
-
rulesDisplay: i.rulesDisplay,
|
|
154
|
-
isOverlayVariant: !1
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
),
|
|
160
|
-
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
161
|
-
/* @__PURE__ */ e.jsx(n, { sx: r.titleTypographyMobileImage, children: i.eventGame.title }),
|
|
162
|
-
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypographyMobileImage, children: g(i.eventGame.description) })
|
|
163
|
-
] })
|
|
164
|
-
] }) }) }) : /* @__PURE__ */ e.jsx(a, { sx: r.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
165
|
-
/* @__PURE__ */ e.jsxs(
|
|
166
|
-
a,
|
|
167
|
-
{
|
|
168
|
-
sx: {
|
|
169
|
-
display: "flex",
|
|
170
|
-
alignItems: "center",
|
|
171
|
-
justifyContent: "center",
|
|
172
|
-
gap: x["3xs"]
|
|
173
|
-
},
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: r.headlineTypography, children: d("eventGame.headline") }),
|
|
176
|
-
/* @__PURE__ */ e.jsx(
|
|
177
|
-
h,
|
|
178
|
-
{
|
|
179
|
-
rules: i.eventGame.rules || "",
|
|
180
|
-
rulesDisplay: i.rulesDisplay,
|
|
181
|
-
isOverlayVariant: !1
|
|
182
|
-
}
|
|
183
|
-
)
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
/* @__PURE__ */ e.jsxs(a, { sx: r.contentContainer, children: [
|
|
188
|
-
/* @__PURE__ */ e.jsx(n, { level: "h4", sx: r.titleTypography, children: i.eventGame.title }),
|
|
189
|
-
/* @__PURE__ */ e.jsx(n, { sx: r.descriptionTypography, children: g(i.eventGame.description) })
|
|
190
|
-
] })
|
|
191
|
-
] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
192
|
-
return /* @__PURE__ */ e.jsx(K, { brandingBorderColor: null, children: i.showPredictionDetails ? /* @__PURE__ */ e.jsx(
|
|
193
|
-
X,
|
|
194
|
-
{
|
|
195
|
-
prediction: i.prediction,
|
|
196
|
-
game: i.eventGame,
|
|
197
|
-
resultsTabPanelSxProps: {
|
|
198
|
-
display: "flex",
|
|
199
|
-
flexDirection: m ? "column" : "row",
|
|
200
|
-
px: 0,
|
|
201
|
-
pb: 0,
|
|
202
|
-
pt: 0
|
|
203
|
-
},
|
|
204
|
-
children: /* @__PURE__ */ e.jsxs(a, { sx: r.scoreStateWrapperContainer, children: [
|
|
205
|
-
s && o === "left" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) }),
|
|
206
|
-
y(),
|
|
207
|
-
s && o === "right" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) })
|
|
208
|
-
] })
|
|
209
|
-
}
|
|
210
|
-
) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
211
|
-
W(),
|
|
212
|
-
s && o === "left" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) }),
|
|
213
|
-
y(),
|
|
214
|
-
s && o === "right" && /* @__PURE__ */ e.jsx(a, { sx: r.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: r.imageSafeArea }) })
|
|
215
|
-
] }) });
|
|
216
|
-
};
|
|
217
|
-
export {
|
|
218
|
-
Ce as default
|
|
219
|
-
};
|