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,344 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as M } from "react";
|
|
3
|
-
import { useTheme as L, Box as a, Select as E, Option as G, Input as Y, Typography as k } from "@mui/joy";
|
|
4
|
-
import { useColors as _, useCornerRadius as q, useFontFamily as J, useSpacingScale as K, isMobile as N, useInternalTheme as Q, useBorderSize as U } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { useConstantContext as V } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import { ConstantsContext as X } from "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import { createStyles as Z } from "./TextSelector.styles.js";
|
|
11
|
-
import { useTranslation as oo } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
12
|
-
const xo = (r) => {
|
|
13
|
-
const { t: B } = oo(), f = _(), p = q(), d = J(), n = K(), g = N(), { shadowRootElement: w } = V(X), s = L(), F = Q(), j = U().size, [b, y] = M(r.prediction || ""), o = {
|
|
14
|
-
background: {
|
|
15
|
-
surface: s.colorSchemes.light.palette.background.surface,
|
|
16
|
-
popup: s.colorSchemes.light.palette.background.popup
|
|
17
|
-
},
|
|
18
|
-
neutral: {
|
|
19
|
-
outlinedBorder: s.colorSchemes.light.palette.neutral.outlinedBorder,
|
|
20
|
-
outlinedColor: s.colorSchemes.light.palette.neutral.outlinedColor,
|
|
21
|
-
outlinedHoverBg: s.colorSchemes.light.palette.neutral.outlinedHoverBg,
|
|
22
|
-
plainHoverBg: s.colorSchemes.light.palette.neutral.plainHoverBg,
|
|
23
|
-
plainHoverColor: s.colorSchemes.light.palette.neutral.plainHoverColor,
|
|
24
|
-
plainActiveBg: s.colorSchemes.light.palette.neutral.plainActiveBg
|
|
25
|
-
}
|
|
26
|
-
}, $ = {
|
|
27
|
-
fontFamily: d.secondary,
|
|
28
|
-
borderRadius: p.md,
|
|
29
|
-
bgcolor: o.background.surface,
|
|
30
|
-
borderColor: o.neutral.outlinedBorder,
|
|
31
|
-
color: o.neutral.outlinedColor,
|
|
32
|
-
fontSize: g ? "0.875em" : "1em",
|
|
33
|
-
lineHeight: "1.5",
|
|
34
|
-
"&:hover": {
|
|
35
|
-
bgcolor: o.neutral.outlinedHoverBg
|
|
36
|
-
},
|
|
37
|
-
"& input:-webkit-autofill": {
|
|
38
|
-
WebkitBoxShadow: `0 0 0 1000px ${o.background.surface} inset !important`,
|
|
39
|
-
WebkitTextFillColor: `${o.neutral.outlinedColor} !important`,
|
|
40
|
-
caretColor: o.neutral.outlinedColor,
|
|
41
|
-
borderRadius: p.md
|
|
42
|
-
},
|
|
43
|
-
"& input:-webkit-autofill:hover": {
|
|
44
|
-
WebkitBoxShadow: `0 0 0 1000px ${o.background.surface} inset !important`,
|
|
45
|
-
WebkitTextFillColor: `${o.neutral.outlinedColor} !important`
|
|
46
|
-
},
|
|
47
|
-
"& input:-webkit-autofill:focus": {
|
|
48
|
-
WebkitBoxShadow: `0 0 0 1000px ${o.background.surface} inset !important`,
|
|
49
|
-
WebkitTextFillColor: `${o.neutral.outlinedColor} !important`
|
|
50
|
-
},
|
|
51
|
-
"& input:-webkit-autofill:active": {
|
|
52
|
-
WebkitBoxShadow: `0 0 0 1000px ${o.background.surface} inset !important`,
|
|
53
|
-
WebkitTextFillColor: `${o.neutral.outlinedColor} !important`
|
|
54
|
-
},
|
|
55
|
-
"& input:-moz-autofill": {
|
|
56
|
-
backgroundColor: `${o.background.surface} !important`,
|
|
57
|
-
color: `${o.neutral.outlinedColor} !important`
|
|
58
|
-
},
|
|
59
|
-
"& input:autofill": {
|
|
60
|
-
backgroundColor: `${o.background.surface} !important`,
|
|
61
|
-
color: `${o.neutral.outlinedColor} !important`
|
|
62
|
-
}
|
|
63
|
-
}, H = {
|
|
64
|
-
root: {
|
|
65
|
-
sx: {
|
|
66
|
-
...$,
|
|
67
|
-
"&:hover": { bgcolor: o.neutral.outlinedHoverBg }
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
listbox: {
|
|
71
|
-
container: w,
|
|
72
|
-
sx: {
|
|
73
|
-
maxHeight: g ? "200px" : "300px",
|
|
74
|
-
overflowY: "auto",
|
|
75
|
-
zIndex: 1300,
|
|
76
|
-
bgcolor: o.background.popup,
|
|
77
|
-
border: `1px solid ${o.neutral.outlinedBorder}`,
|
|
78
|
-
borderRadius: p.sm,
|
|
79
|
-
boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, T = {
|
|
83
|
-
fontFamily: d.secondary,
|
|
84
|
-
fontSize: g ? "0.875em" : "1em",
|
|
85
|
-
color: `${o.neutral.outlinedColor} !important`,
|
|
86
|
-
bgcolor: `${o.background.popup} !important`,
|
|
87
|
-
"&:hover": {
|
|
88
|
-
bgcolor: `${o.neutral.outlinedHoverBg} !important`,
|
|
89
|
-
color: `${o.neutral.outlinedColor} !important`
|
|
90
|
-
},
|
|
91
|
-
"&.Mui-selected": {
|
|
92
|
-
bgcolor: `${o.neutral.plainActiveBg} !important`,
|
|
93
|
-
color: `${o.neutral.outlinedColor} !important`
|
|
94
|
-
},
|
|
95
|
-
"&.Mui-selected:hover": {
|
|
96
|
-
bgcolor: `${o.neutral.outlinedHoverBg} !important`,
|
|
97
|
-
color: `${o.neutral.outlinedColor} !important`
|
|
98
|
-
}
|
|
99
|
-
}, C = Z({
|
|
100
|
-
spacingScale: n,
|
|
101
|
-
borderRadius: p,
|
|
102
|
-
fontFamilyPrimary: d.primary,
|
|
103
|
-
fontFamilySecondary: d.secondary,
|
|
104
|
-
textPrimary: o.neutral.outlinedColor,
|
|
105
|
-
textSecondary: o.neutral.outlinedColor,
|
|
106
|
-
neutralSoftBg: o.background.surface,
|
|
107
|
-
neutralOutlinedBorder: o.neutral.outlinedBorder,
|
|
108
|
-
neutralPlainHoverBg: o.neutral.outlinedHoverBg,
|
|
109
|
-
primary: f.palette.primary.plainColor,
|
|
110
|
-
onPrimary: f.palette.primary.onPrimary,
|
|
111
|
-
isMobile: g
|
|
112
|
-
}), O = (u) => {
|
|
113
|
-
const i = u.target.value;
|
|
114
|
-
y(i), r.onTextChange(i);
|
|
115
|
-
}, z = (u, i) => {
|
|
116
|
-
i !== null && (y(i), r.onTextChange(i));
|
|
117
|
-
}, c = r.validOutcomes ? typeof r.validOutcomes == "object" && "options" in r.validOutcomes ? r.validOutcomes.options : Array.isArray(r.validOutcomes) ? r.validOutcomes : null : null, W = c && c.length > 0, A = () => {
|
|
118
|
-
if (!c || !r.optionsLayout) return null;
|
|
119
|
-
const u = f.palette.primary.plainColor, i = f.palette.primary.onPrimary, P = F.colorSchemes.light.textColor, S = (t) => b === t ? {
|
|
120
|
-
bgcolor: u,
|
|
121
|
-
boxShadow: `inset 0 0 0 ${j} ${u}`,
|
|
122
|
-
color: i
|
|
123
|
-
} : {
|
|
124
|
-
bgcolor: "#FFFFFF",
|
|
125
|
-
color: P,
|
|
126
|
-
boxShadow: "none"
|
|
127
|
-
}, v = (t) => {
|
|
128
|
-
y(t), r.onTextChange(t);
|
|
129
|
-
};
|
|
130
|
-
if (r.optionsLayout === "twoByTwo") {
|
|
131
|
-
const t = [];
|
|
132
|
-
for (let l = 0; l < c.length; l += 2) {
|
|
133
|
-
const m = c.slice(l, l + 2);
|
|
134
|
-
t.push(m);
|
|
135
|
-
}
|
|
136
|
-
return /* @__PURE__ */ e.jsx(a, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: t.map((l, m) => /* @__PURE__ */ e.jsx(
|
|
137
|
-
a,
|
|
138
|
-
{
|
|
139
|
-
sx: {
|
|
140
|
-
display: "flex",
|
|
141
|
-
flexDirection: g ? "column" : "row",
|
|
142
|
-
gap: 2
|
|
143
|
-
},
|
|
144
|
-
children: l.map((x, h) => {
|
|
145
|
-
const { bgcolor: R, color: D, boxShadow: I } = S(x);
|
|
146
|
-
return /* @__PURE__ */ e.jsx(
|
|
147
|
-
a,
|
|
148
|
-
{
|
|
149
|
-
sx: {
|
|
150
|
-
borderRadius: p.sm,
|
|
151
|
-
flex: 1,
|
|
152
|
-
p: n.xs,
|
|
153
|
-
gap: n.xs,
|
|
154
|
-
bgcolor: R,
|
|
155
|
-
cursor: "pointer",
|
|
156
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
157
|
-
transform: "scale(1)",
|
|
158
|
-
boxShadow: I,
|
|
159
|
-
"&:hover": {
|
|
160
|
-
transform: "scale(1.02)"
|
|
161
|
-
},
|
|
162
|
-
"&:active": {
|
|
163
|
-
transform: "scale(0.98)"
|
|
164
|
-
},
|
|
165
|
-
display: "flex",
|
|
166
|
-
flexDirection: "column"
|
|
167
|
-
},
|
|
168
|
-
onClick: () => v(x),
|
|
169
|
-
children: /* @__PURE__ */ e.jsx(
|
|
170
|
-
k,
|
|
171
|
-
{
|
|
172
|
-
level: "body-md",
|
|
173
|
-
sx: {
|
|
174
|
-
fontFamily: d.primary,
|
|
175
|
-
fontWeight: 500,
|
|
176
|
-
fontSize: "0.935em",
|
|
177
|
-
lineHeight: "16px",
|
|
178
|
-
letterSpacing: "0.46px",
|
|
179
|
-
textAlign: "center",
|
|
180
|
-
color: D,
|
|
181
|
-
px: n["2xs"],
|
|
182
|
-
my: "auto"
|
|
183
|
-
},
|
|
184
|
-
children: x
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
},
|
|
188
|
-
h
|
|
189
|
-
);
|
|
190
|
-
})
|
|
191
|
-
},
|
|
192
|
-
`row-${m}`
|
|
193
|
-
)) });
|
|
194
|
-
}
|
|
195
|
-
return r.optionsLayout === "column" ? /* @__PURE__ */ e.jsx(a, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: c.map((t, l) => {
|
|
196
|
-
const { bgcolor: m, color: x, boxShadow: h } = S(t);
|
|
197
|
-
return /* @__PURE__ */ e.jsx(
|
|
198
|
-
a,
|
|
199
|
-
{
|
|
200
|
-
sx: {
|
|
201
|
-
borderRadius: p.sm,
|
|
202
|
-
flex: 1,
|
|
203
|
-
p: n.xs,
|
|
204
|
-
gap: n.xs,
|
|
205
|
-
bgcolor: m,
|
|
206
|
-
cursor: "pointer",
|
|
207
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
208
|
-
transform: "scale(1)",
|
|
209
|
-
boxShadow: h,
|
|
210
|
-
"&:hover": {
|
|
211
|
-
transform: "scale(1.02)"
|
|
212
|
-
},
|
|
213
|
-
"&:active": {
|
|
214
|
-
transform: "scale(0.98)"
|
|
215
|
-
},
|
|
216
|
-
display: "flex",
|
|
217
|
-
flexDirection: "column"
|
|
218
|
-
},
|
|
219
|
-
onClick: () => v(t),
|
|
220
|
-
children: /* @__PURE__ */ e.jsx(
|
|
221
|
-
k,
|
|
222
|
-
{
|
|
223
|
-
level: "body-md",
|
|
224
|
-
sx: {
|
|
225
|
-
fontFamily: d.primary,
|
|
226
|
-
fontWeight: 500,
|
|
227
|
-
fontSize: "0.935em",
|
|
228
|
-
lineHeight: "16px",
|
|
229
|
-
letterSpacing: "0.46px",
|
|
230
|
-
textAlign: "center",
|
|
231
|
-
color: x,
|
|
232
|
-
px: n["2xs"],
|
|
233
|
-
my: "auto"
|
|
234
|
-
},
|
|
235
|
-
children: t
|
|
236
|
-
}
|
|
237
|
-
)
|
|
238
|
-
},
|
|
239
|
-
l
|
|
240
|
-
);
|
|
241
|
-
}) }) : /* @__PURE__ */ e.jsx(
|
|
242
|
-
a,
|
|
243
|
-
{
|
|
244
|
-
sx: {
|
|
245
|
-
display: "flex",
|
|
246
|
-
flexWrap: "wrap",
|
|
247
|
-
flexDirection: g ? "column" : "row",
|
|
248
|
-
gap: 2
|
|
249
|
-
},
|
|
250
|
-
children: c.map((t, l) => {
|
|
251
|
-
const { bgcolor: m, color: x, boxShadow: h } = S(t);
|
|
252
|
-
return /* @__PURE__ */ e.jsx(
|
|
253
|
-
a,
|
|
254
|
-
{
|
|
255
|
-
sx: {
|
|
256
|
-
borderRadius: p.sm,
|
|
257
|
-
flex: 1,
|
|
258
|
-
p: n.xs,
|
|
259
|
-
gap: n.xs,
|
|
260
|
-
bgcolor: m,
|
|
261
|
-
cursor: "pointer",
|
|
262
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
263
|
-
transform: "scale(1)",
|
|
264
|
-
boxShadow: h,
|
|
265
|
-
"&:hover": {
|
|
266
|
-
transform: "scale(1.02)"
|
|
267
|
-
},
|
|
268
|
-
"&:active": {
|
|
269
|
-
transform: "scale(0.98)"
|
|
270
|
-
},
|
|
271
|
-
display: "flex",
|
|
272
|
-
flexDirection: "column"
|
|
273
|
-
},
|
|
274
|
-
onClick: () => v(t),
|
|
275
|
-
children: /* @__PURE__ */ e.jsx(
|
|
276
|
-
k,
|
|
277
|
-
{
|
|
278
|
-
level: "body-md",
|
|
279
|
-
sx: {
|
|
280
|
-
fontFamily: d.primary,
|
|
281
|
-
fontWeight: 500,
|
|
282
|
-
fontSize: "0.935em",
|
|
283
|
-
lineHeight: "16px",
|
|
284
|
-
letterSpacing: "0.46px",
|
|
285
|
-
textAlign: "center",
|
|
286
|
-
color: x,
|
|
287
|
-
px: n["2xs"],
|
|
288
|
-
my: "auto"
|
|
289
|
-
},
|
|
290
|
-
children: t
|
|
291
|
-
}
|
|
292
|
-
)
|
|
293
|
-
},
|
|
294
|
-
l
|
|
295
|
-
);
|
|
296
|
-
})
|
|
297
|
-
}
|
|
298
|
-
);
|
|
299
|
-
};
|
|
300
|
-
return /* @__PURE__ */ e.jsx(a, { sx: C.container, children: W ? /* @__PURE__ */ e.jsx(a, { sx: C.selectContainer, children: r.optionsLayout ? (
|
|
301
|
-
// If optionsLayout is provided, render button-based options
|
|
302
|
-
A()
|
|
303
|
-
) : (
|
|
304
|
-
// Otherwise, render select dropdown (default behavior)
|
|
305
|
-
/* @__PURE__ */ e.jsx(
|
|
306
|
-
E,
|
|
307
|
-
{
|
|
308
|
-
value: b || null,
|
|
309
|
-
onChange: z,
|
|
310
|
-
placeholder: B("eventGame.fixtures.textSelectPlaceholder"),
|
|
311
|
-
slotProps: H,
|
|
312
|
-
children: c.map((u, i) => /* @__PURE__ */ e.jsx(G, { value: u, sx: T, children: u }, i))
|
|
313
|
-
}
|
|
314
|
-
)
|
|
315
|
-
) }) : /* @__PURE__ */ e.jsx(a, { sx: C.inputContainer, children: /* @__PURE__ */ e.jsx(
|
|
316
|
-
Y,
|
|
317
|
-
{
|
|
318
|
-
value: b,
|
|
319
|
-
onChange: O,
|
|
320
|
-
placeholder: B("eventGame.fixtures.textInputPlaceholder"),
|
|
321
|
-
sx: {
|
|
322
|
-
...$,
|
|
323
|
-
// Remove Joy UI's default focus outline
|
|
324
|
-
outline: "none",
|
|
325
|
-
"&:focus-within": {
|
|
326
|
-
bgcolor: o.background.surface,
|
|
327
|
-
// Add primary color border on focus
|
|
328
|
-
outline: `2px solid ${f.palette.primary.plainColor}`,
|
|
329
|
-
outlineOffset: "2px"
|
|
330
|
-
},
|
|
331
|
-
// Override Joy UI Input's internal focus styles
|
|
332
|
-
"&::before": {
|
|
333
|
-
display: "none"
|
|
334
|
-
},
|
|
335
|
-
"&:focus-within::before": {
|
|
336
|
-
display: "none"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
) }) });
|
|
341
|
-
};
|
|
342
|
-
export {
|
|
343
|
-
xo as default
|
|
344
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const e = (t) => ({
|
|
2
|
-
container: {
|
|
3
|
-
display: "flex",
|
|
4
|
-
alignItems: "center",
|
|
5
|
-
justifyContent: "center",
|
|
6
|
-
width: "100%",
|
|
7
|
-
pt: t.isMobile ? t.spacingScale.md : t.spacingScale.lg
|
|
8
|
-
},
|
|
9
|
-
inputContainer: {
|
|
10
|
-
width: "100%",
|
|
11
|
-
maxWidth: t.isMobile ? "100%" : "500px"
|
|
12
|
-
},
|
|
13
|
-
textInput: {
|
|
14
|
-
fontFamily: t.fontFamilySecondary,
|
|
15
|
-
fontSize: t.isMobile ? "0.875em" : "1em",
|
|
16
|
-
lineHeight: "1.5",
|
|
17
|
-
color: `${t.textPrimary} !important`,
|
|
18
|
-
backgroundColor: `${t.neutralSoftBg} !important`,
|
|
19
|
-
borderColor: `${t.neutralOutlinedBorder} !important`,
|
|
20
|
-
borderRadius: t.borderRadius.md,
|
|
21
|
-
transition: "all 0.2s ease-in-out",
|
|
22
|
-
"&:hover": {
|
|
23
|
-
backgroundColor: `${t.neutralPlainHoverBg} !important`
|
|
24
|
-
},
|
|
25
|
-
"&::placeholder": {
|
|
26
|
-
color: t.textSecondary,
|
|
27
|
-
opacity: 0.6
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
selectContainer: {
|
|
31
|
-
width: "100%",
|
|
32
|
-
maxWidth: t.isMobile ? "100%" : "500px"
|
|
33
|
-
},
|
|
34
|
-
select: {
|
|
35
|
-
fontFamily: t.fontFamilySecondary,
|
|
36
|
-
fontSize: t.isMobile ? "0.875em" : "1em",
|
|
37
|
-
color: `${t.textPrimary} !important`,
|
|
38
|
-
backgroundColor: `${t.neutralSoftBg} !important`,
|
|
39
|
-
borderColor: `${t.neutralOutlinedBorder} !important`,
|
|
40
|
-
borderRadius: t.borderRadius.md,
|
|
41
|
-
"&:hover": {
|
|
42
|
-
backgroundColor: `${t.neutralPlainHoverBg} !important`
|
|
43
|
-
},
|
|
44
|
-
"& .MuiSelect-indicator": {
|
|
45
|
-
color: `${t.textPrimary} !important`
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
option: {
|
|
49
|
-
fontFamily: t.fontFamilySecondary,
|
|
50
|
-
fontSize: t.isMobile ? "0.875em" : "1em",
|
|
51
|
-
color: `${t.textPrimary} !important`,
|
|
52
|
-
bgcolor: "transparent",
|
|
53
|
-
"&:hover": {
|
|
54
|
-
bgcolor: `${t.neutralPlainHoverBg} !important`,
|
|
55
|
-
color: `${t.textPrimary} !important`
|
|
56
|
-
},
|
|
57
|
-
"&[aria-selected='true']": {
|
|
58
|
-
bgcolor: `${t.neutralPlainHoverBg} !important`,
|
|
59
|
-
color: `${t.textPrimary} !important`,
|
|
60
|
-
fontWeight: 600
|
|
61
|
-
},
|
|
62
|
-
"&[aria-selected='true']:hover": {
|
|
63
|
-
bgcolor: `${t.neutralPlainHoverBg} !important`,
|
|
64
|
-
color: `${t.textPrimary} !important`
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
e as createStyles
|
|
70
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const a = (e) => ({
|
|
2
|
-
base: {
|
|
3
|
-
width: e.isMobile ? "48px" : "64px",
|
|
4
|
-
height: e.isMobile ? "48px" : "64px",
|
|
5
|
-
backgroundColor: e.neutralSoftBg,
|
|
6
|
-
display: "flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
justifyContent: "center",
|
|
9
|
-
overflow: "hidden",
|
|
10
|
-
padding: e.isMobile ? e.spacingScale.xs : e.spacingScale.sm,
|
|
11
|
-
borderRadius: e.spacingScale.sm,
|
|
12
|
-
boxShadow: "0 5px 15px 0 rgba(49, 84, 139, .1)",
|
|
13
|
-
flexShrink: 0,
|
|
14
|
-
transition: "all 0.2s ease-in-out",
|
|
15
|
-
"&:hover": {
|
|
16
|
-
backgroundColor: e.neutralPlainHoverBg
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
selected: e.primary ? {
|
|
20
|
-
backgroundColor: e.primary,
|
|
21
|
-
"&:hover": {
|
|
22
|
-
backgroundColor: e.primary
|
|
23
|
-
},
|
|
24
|
-
borderRadius: e.spacingScale.sm
|
|
25
|
-
} : {
|
|
26
|
-
borderRadius: e.spacingScale.sm
|
|
27
|
-
},
|
|
28
|
-
text: {
|
|
29
|
-
fontFamily: "inherit",
|
|
30
|
-
fontSize: e.isMobile ? "0.625em" : "0.75em",
|
|
31
|
-
fontWeight: 600,
|
|
32
|
-
textAlign: "center"
|
|
33
|
-
},
|
|
34
|
-
selectedText: e.onPrimary ? {
|
|
35
|
-
color: e.onPrimary
|
|
36
|
-
} : {}
|
|
37
|
-
}), n = (e) => ({
|
|
38
|
-
...a(e),
|
|
39
|
-
selectedYes: e.successMain ? {
|
|
40
|
-
backgroundColor: e.successMain,
|
|
41
|
-
color: "white",
|
|
42
|
-
"&:hover": {
|
|
43
|
-
backgroundColor: e.successMain
|
|
44
|
-
},
|
|
45
|
-
borderRadius: e.spacingScale.sm
|
|
46
|
-
} : {
|
|
47
|
-
borderRadius: e.spacingScale.sm
|
|
48
|
-
},
|
|
49
|
-
selectedNo: e.dangerMain ? {
|
|
50
|
-
backgroundColor: e.dangerMain,
|
|
51
|
-
color: "white",
|
|
52
|
-
"&:hover": {
|
|
53
|
-
backgroundColor: e.dangerMain
|
|
54
|
-
},
|
|
55
|
-
borderRadius: e.spacingScale.sm
|
|
56
|
-
} : {
|
|
57
|
-
borderRadius: e.spacingScale.sm
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
export {
|
|
61
|
-
n as createOptionIconStyles,
|
|
62
|
-
a as createTeamLogoStyles
|
|
63
|
-
};
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Typography as n, Box as p, Sheet as B, Table as N, Avatar as P } from "@mui/joy";
|
|
3
|
-
import w from "../../../../../../node_modules/@mui/icons-material/esm/Person.js";
|
|
4
|
-
import { useInternalTheme as E, useColors as L, useFontFamily as A, useCornerRadius as M, useSpacingScale as k, isExtraSmall as R } from "../../../../../common/src/functions/theme.js";
|
|
5
|
-
import { hexToRgb as d } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
-
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
-
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
-
import U from "../../../../../common/src/components/Spinner.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
12
|
-
import { useTranslation as X } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
-
const oe = ({
|
|
14
|
-
leaderboard: m,
|
|
15
|
-
userRanking: i,
|
|
16
|
-
showHeading: F,
|
|
17
|
-
isSplitVariant: f,
|
|
18
|
-
loading: z = !1
|
|
19
|
-
}) => {
|
|
20
|
-
const { t: a } = X(), W = E(), c = L(), b = c.palette.primary.plainColor, r = c.textColor, l = A().primary, I = A().secondary, G = M(), x = k(), g = R(), s = c.surfaceVariant, C = W.colorSchemes.light.palette.primary.onPrimary, y = c.outlineEnabledBorder, o = {
|
|
21
|
-
leaderboardContainer: {
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: "column",
|
|
24
|
-
gap: x.md
|
|
25
|
-
},
|
|
26
|
-
leaderboardTitle: {
|
|
27
|
-
fontFamily: l,
|
|
28
|
-
fontWeight: 700,
|
|
29
|
-
fontSize: "1.25em",
|
|
30
|
-
color: r,
|
|
31
|
-
textAlign: "center",
|
|
32
|
-
marginBottom: x.sm
|
|
33
|
-
},
|
|
34
|
-
tableContainer: {
|
|
35
|
-
overflowX: "auto",
|
|
36
|
-
borderRadius: G.md,
|
|
37
|
-
border: `1px solid ${y}`
|
|
38
|
-
},
|
|
39
|
-
table: {
|
|
40
|
-
backgroundColor: s,
|
|
41
|
-
"--TableCell-paddingX": "0.5rem",
|
|
42
|
-
"--TableCell-paddingY": "0.375rem",
|
|
43
|
-
cursor: "default",
|
|
44
|
-
"& > tbody > tr:hover": {
|
|
45
|
-
backgroundColor: "transparent"
|
|
46
|
-
},
|
|
47
|
-
"& > thead > tr > th": {
|
|
48
|
-
backgroundColor: `rgba(${d(s)}, 0.8)`,
|
|
49
|
-
color: r,
|
|
50
|
-
fontFamily: l,
|
|
51
|
-
fontWeight: 600,
|
|
52
|
-
fontSize: "0.875em",
|
|
53
|
-
textAlign: "center",
|
|
54
|
-
borderBottom: `1px solid ${y}`
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
headerCellPosition: {
|
|
58
|
-
backgroundColor: `rgba(${d(s)}, 0.8)`,
|
|
59
|
-
color: r,
|
|
60
|
-
fontFamily: l,
|
|
61
|
-
fontWeight: 600,
|
|
62
|
-
fontSize: "0.875em",
|
|
63
|
-
textAlign: "center",
|
|
64
|
-
padding: "0.375rem 0.5rem",
|
|
65
|
-
width: "10%"
|
|
66
|
-
},
|
|
67
|
-
headerCellName: {
|
|
68
|
-
backgroundColor: `rgba(${d(s)}, 0.8)`,
|
|
69
|
-
color: r,
|
|
70
|
-
fontFamily: l,
|
|
71
|
-
fontWeight: 600,
|
|
72
|
-
fontSize: "0.875em",
|
|
73
|
-
textAlign: "left",
|
|
74
|
-
padding: "0.375rem 0.5rem",
|
|
75
|
-
width: "80%"
|
|
76
|
-
},
|
|
77
|
-
headerCellPoints: {
|
|
78
|
-
backgroundColor: `rgba(${d(s)}, 0.8)`,
|
|
79
|
-
color: r,
|
|
80
|
-
fontFamily: l,
|
|
81
|
-
fontWeight: 600,
|
|
82
|
-
fontSize: "0.875em",
|
|
83
|
-
textAlign: "center",
|
|
84
|
-
padding: "0.375rem 0.5rem",
|
|
85
|
-
width: "10%"
|
|
86
|
-
},
|
|
87
|
-
tableCellPosition: {
|
|
88
|
-
padding: "0.375rem 0.5rem",
|
|
89
|
-
width: "10%",
|
|
90
|
-
textAlign: "center"
|
|
91
|
-
},
|
|
92
|
-
tableCellName: {
|
|
93
|
-
padding: "0.375rem 0.5rem",
|
|
94
|
-
width: "80%"
|
|
95
|
-
},
|
|
96
|
-
tableCellPoints: {
|
|
97
|
-
padding: "0.375rem 0.5rem",
|
|
98
|
-
width: "10%",
|
|
99
|
-
textAlign: "center"
|
|
100
|
-
},
|
|
101
|
-
userRow: {
|
|
102
|
-
backgroundColor: `rgba(${d(b)}, 0.1)`
|
|
103
|
-
},
|
|
104
|
-
nameCell: {
|
|
105
|
-
display: "flex",
|
|
106
|
-
alignItems: "center",
|
|
107
|
-
gap: x.sm
|
|
108
|
-
},
|
|
109
|
-
leaderboardAvatar: {
|
|
110
|
-
width: "32px",
|
|
111
|
-
height: "32px",
|
|
112
|
-
fontSize: "0.875em",
|
|
113
|
-
fontWeight: 600,
|
|
114
|
-
backgroundColor: b,
|
|
115
|
-
color: C
|
|
116
|
-
},
|
|
117
|
-
nameText: {
|
|
118
|
-
fontFamily: l,
|
|
119
|
-
fontWeight: 500,
|
|
120
|
-
fontSize: "0.875em",
|
|
121
|
-
color: r,
|
|
122
|
-
overflow: "hidden",
|
|
123
|
-
textOverflow: "ellipsis",
|
|
124
|
-
whiteSpace: "nowrap"
|
|
125
|
-
},
|
|
126
|
-
positionText: {
|
|
127
|
-
fontFamily: l,
|
|
128
|
-
fontWeight: 600,
|
|
129
|
-
fontSize: "0.875em",
|
|
130
|
-
color: r
|
|
131
|
-
},
|
|
132
|
-
pointsText: {
|
|
133
|
-
fontFamily: l,
|
|
134
|
-
fontWeight: 600,
|
|
135
|
-
fontSize: "0.875em",
|
|
136
|
-
color: r
|
|
137
|
-
},
|
|
138
|
-
avatarIcon: {
|
|
139
|
-
fontSize: "1em",
|
|
140
|
-
color: C
|
|
141
|
-
},
|
|
142
|
-
noLeaderboardText: {
|
|
143
|
-
fontFamily: I,
|
|
144
|
-
fontSize: "1.25em",
|
|
145
|
-
color: r,
|
|
146
|
-
textAlign: "center",
|
|
147
|
-
marginY: x.md
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
if (z || !m)
|
|
151
|
-
return /* @__PURE__ */ e.jsx(U, { my: 10 });
|
|
152
|
-
if (m.length === 0)
|
|
153
|
-
return /* @__PURE__ */ e.jsx(n, { level: "body-lg", sx: o.noLeaderboardText, children: a("eventGame.leaderboard.noLeaderboardAvailable") });
|
|
154
|
-
const h = i == null ? void 0 : i.position, $ = h && m.some((t) => t.position === h);
|
|
155
|
-
return /* @__PURE__ */ e.jsxs(p, { sx: o.leaderboardContainer, children: [
|
|
156
|
-
F && /* @__PURE__ */ e.jsx(n, { level: "h4", sx: o.leaderboardTitle, children: a("eventGame.leaderboard.title") }),
|
|
157
|
-
/* @__PURE__ */ e.jsx(B, { sx: o.tableContainer, children: /* @__PURE__ */ e.jsxs(
|
|
158
|
-
N,
|
|
159
|
-
{
|
|
160
|
-
variant: "outlined",
|
|
161
|
-
hoverRow: !1,
|
|
162
|
-
borderAxis: "bothBetween",
|
|
163
|
-
size: "sm",
|
|
164
|
-
sx: o.table,
|
|
165
|
-
children: [
|
|
166
|
-
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
167
|
-
/* @__PURE__ */ e.jsx("th", { style: o.headerCellPosition, children: g || f ? "" : a("eventGame.leaderboard.position") }),
|
|
168
|
-
/* @__PURE__ */ e.jsx("th", { style: o.headerCellName, children: a("eventGame.leaderboard.name") }),
|
|
169
|
-
/* @__PURE__ */ e.jsx("th", { style: o.headerCellPoints, children: g || f ? "🎯" : a("eventGame.leaderboard.points") })
|
|
170
|
-
] }) }),
|
|
171
|
-
/* @__PURE__ */ e.jsxs("tbody", { children: [
|
|
172
|
-
i && !$ && /* @__PURE__ */ e.jsxs("tr", { style: o.userRow, children: [
|
|
173
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPosition, children: /* @__PURE__ */ e.jsxs(n, { sx: o.positionText, children: [
|
|
174
|
-
"#",
|
|
175
|
-
i.position
|
|
176
|
-
] }) }),
|
|
177
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellName, children: /* @__PURE__ */ e.jsxs(p, { sx: o.nameCell, children: [
|
|
178
|
-
/* @__PURE__ */ e.jsx(P, { sx: o.leaderboardAvatar, children: /* @__PURE__ */ e.jsx(w, { sx: o.avatarIcon }) }),
|
|
179
|
-
/* @__PURE__ */ e.jsx(n, { sx: o.nameText, children: a("eventGame.leaderboard.you") })
|
|
180
|
-
] }) }),
|
|
181
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPoints, children: /* @__PURE__ */ e.jsx(n, { sx: o.pointsText, children: i.totalPoints }) })
|
|
182
|
-
] }),
|
|
183
|
-
m.map((t) => {
|
|
184
|
-
var u, v, S, T;
|
|
185
|
-
const j = h === t.position;
|
|
186
|
-
return /* @__PURE__ */ e.jsxs(
|
|
187
|
-
"tr",
|
|
188
|
-
{
|
|
189
|
-
style: j ? o.userRow : void 0,
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPosition, children: /* @__PURE__ */ e.jsxs(n, { sx: o.positionText, children: [
|
|
192
|
-
"#",
|
|
193
|
-
t.position
|
|
194
|
-
] }) }),
|
|
195
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellName, children: /* @__PURE__ */ e.jsxs(p, { sx: o.nameCell, children: [
|
|
196
|
-
/* @__PURE__ */ e.jsx(
|
|
197
|
-
P,
|
|
198
|
-
{
|
|
199
|
-
src: ((u = t.profileModel) == null ? void 0 : u.avatar) || void 0,
|
|
200
|
-
sx: o.leaderboardAvatar,
|
|
201
|
-
children: (v = t.profileModel) != null && v.avatar ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(w, { sx: o.avatarIcon })
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
/* @__PURE__ */ e.jsx(n, { sx: o.nameText, children: j ? a("eventGame.leaderboard.you") : ((S = t.profileModel) == null ? void 0 : S.nickname) || ((T = t.profileModel) == null ? void 0 : T.name) })
|
|
205
|
-
] }) }),
|
|
206
|
-
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPoints, children: /* @__PURE__ */ e.jsx(n, { sx: o.pointsText, children: t.totalPoints }) })
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
t.profileId
|
|
210
|
-
);
|
|
211
|
-
})
|
|
212
|
-
] })
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
) })
|
|
216
|
-
] });
|
|
217
|
-
};
|
|
218
|
-
export {
|
|
219
|
-
oe as default
|
|
220
|
-
};
|