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