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,79 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as i, Typography as S } from "@mui/joy";
|
|
3
|
+
import { useColors as d, isExtraSmall as f, useCornerRadius as C, useFontFamily as h, useSpacingScale as E } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { useConstantContext as P } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import R from "./PlayersSelector.js";
|
|
11
|
+
import { createStyles as F } from "./PlayersFixture.styles.js";
|
|
12
|
+
import p from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
+
import { MatchQuizConstantsContext as T } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
+
import { useTranslation as L } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
+
const v = (t) => {
|
|
16
|
+
const { t: r } = L(), a = d(), s = f(), m = C(), o = h(), c = E(), { points: x } = P(T), l = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : s, u = t.showPoints === void 0, n = F({
|
|
17
|
+
spacingScale: c,
|
|
18
|
+
borderRadius: m,
|
|
19
|
+
fontFamilyPrimary: o.primary,
|
|
20
|
+
fontFamilySecondary: o.secondary,
|
|
21
|
+
textPrimary: a.textPrimary,
|
|
22
|
+
textSecondary: a.textSecondary,
|
|
23
|
+
isExtraSmall: l
|
|
24
|
+
}), y = () => {
|
|
25
|
+
switch (t.market) {
|
|
26
|
+
case "PLAYER_SCORE":
|
|
27
|
+
return r("matchQuiz.fixtures.playerScoreFixtureTitle");
|
|
28
|
+
case "PLAYER_YELLOW_CARD":
|
|
29
|
+
return r("matchQuiz.fixtures.playerYellowCardFixtureTitle");
|
|
30
|
+
case "PLAYER_RED_CARD":
|
|
31
|
+
return r("matchQuiz.fixtures.playerRedCardFixtureTitle");
|
|
32
|
+
case "PLAYER_SCORE_FIRST_GOAL":
|
|
33
|
+
return r("matchQuiz.fixtures.playerScoreFirstGoalFixtureTitle");
|
|
34
|
+
case "PLAYER_SCORE_HATTRICK":
|
|
35
|
+
return r("matchQuiz.fixtures.playerScoreHattrickFixtureTitle");
|
|
36
|
+
case "PLAYER_SCORE_TWICE":
|
|
37
|
+
return r("matchQuiz.fixtures.playerScoreTwiceFixtureTitle");
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ e.jsxs(i, { sx: n.container, children: [
|
|
41
|
+
/* @__PURE__ */ e.jsxs(
|
|
42
|
+
i,
|
|
43
|
+
{
|
|
44
|
+
sx: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "space-between",
|
|
48
|
+
width: "100%"
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
l ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(i, { sx: { flex: 1 } }),
|
|
52
|
+
/* @__PURE__ */ e.jsx(S, { level: "h3", sx: n.title, children: y() }),
|
|
53
|
+
/* @__PURE__ */ e.jsx(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: u && x.length > 0 && /* @__PURE__ */ e.jsx(
|
|
54
|
+
p,
|
|
55
|
+
{
|
|
56
|
+
market: t.market,
|
|
57
|
+
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
58
|
+
isSplitVariant: t.isSplitVariant
|
|
59
|
+
}
|
|
60
|
+
) })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ e.jsx(
|
|
65
|
+
R,
|
|
66
|
+
{
|
|
67
|
+
matchModel: t.matchModel,
|
|
68
|
+
onPlayerSelection: t.onPlayerSelection,
|
|
69
|
+
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
70
|
+
prediction: t.prediction,
|
|
71
|
+
isSplitVariant: t.isSplitVariant,
|
|
72
|
+
useExtraSmallLayout: t.useExtraSmallLayout
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
v as default
|
|
79
|
+
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isMobile as e } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
3
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
4
|
+
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
5
|
+
import "@mui/joy";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
const p = (t) => {
|
|
10
|
+
const i = e();
|
|
11
|
+
return {
|
|
12
|
+
container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
fontFamily: t.fontFamilyPrimary,
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
fontSize: i ? "1.125em" : "1.25em",
|
|
21
|
+
lineHeight: 1.2,
|
|
22
|
+
color: t.textPrimary,
|
|
23
|
+
textAlign: t.isExtraSmall ? "left" : "center"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
p as createStyles
|
|
29
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { memo as N, useState as d } from "react";
|
|
3
|
+
import { Box as n, useTheme as E, Tabs as z, TabList as R, Tab as H, TabPanel as Q, Typography as _, FormControl as p, Checkbox as v } from "@mui/joy";
|
|
4
|
+
import D from "../../../../../../../node_modules/@mui/icons-material/esm/PersonOutline.js";
|
|
5
|
+
import { useColors as W, useCornerRadius as K, useFontFamily as V, useSpacingScale as $, isMobile as J, isExtraSmall as U } from "../../../../../../common/src/functions/theme.js";
|
|
6
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
+
import { useConstantContext as X } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
+
import { createStyles as Y } from "./PlayersSelector.styles.js";
|
|
12
|
+
import { MatchQuizConstantsContext as Z } from "../../../../providers/ConstantsProvider.js";
|
|
13
|
+
import { useTranslation as q } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
+
const w = N(({ player: t, isSelected: r, styles: i, handlePlayerSelection: m }) => {
|
|
15
|
+
var h;
|
|
16
|
+
return /* @__PURE__ */ o.jsx(
|
|
17
|
+
n,
|
|
18
|
+
{
|
|
19
|
+
sx: {
|
|
20
|
+
...i.playerAvatar,
|
|
21
|
+
...r ? i.selectedPlayerAvatar : {}
|
|
22
|
+
},
|
|
23
|
+
onClick: () => m(t.id),
|
|
24
|
+
title: t.name,
|
|
25
|
+
children: (h = t.assets) != null && h.headshot ? /* @__PURE__ */ o.jsx(
|
|
26
|
+
"img",
|
|
27
|
+
{
|
|
28
|
+
src: t.assets.headshot,
|
|
29
|
+
alt: t.name,
|
|
30
|
+
style: {
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
objectFit: "cover"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
) : /* @__PURE__ */ o.jsx(
|
|
37
|
+
D,
|
|
38
|
+
{
|
|
39
|
+
sx: {
|
|
40
|
+
...i.playerAvatarIcon,
|
|
41
|
+
...r ? i.selectedPlayerAvatarIcon : {}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
w.displayName = "PlayerAvatar";
|
|
49
|
+
const xe = (t) => {
|
|
50
|
+
const r = W(), i = K(), m = V(), h = $(), F = J(), M = U(), x = E(), { t: f } = q(), { squads: S } = X(Z), T = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : M, [k, g] = d(t.prediction), [G, u] = d(t.prediction === "OWN_GOAL"), [A, b] = d(t.prediction === null), [c, y] = d("home"), [j, B] = d(0), a = Y({
|
|
51
|
+
spacingScale: h,
|
|
52
|
+
borderRadius: i,
|
|
53
|
+
fontFamilyPrimary: m.primary,
|
|
54
|
+
fontFamilySecondary: m.secondary,
|
|
55
|
+
textPrimary: r.textPrimary,
|
|
56
|
+
textSecondary: r.textSecondary,
|
|
57
|
+
neutralSoftBg: r.palette.neutral.softBg,
|
|
58
|
+
neutralOutlinedBorder: r.palette.neutral.outlinedBorder,
|
|
59
|
+
neutralPlainHoverBg: r.palette.neutral.plainHoverBg,
|
|
60
|
+
primary: t.brandingPrimaryColor || r.palette.primary.plainColor,
|
|
61
|
+
onPrimary: r.palette.primary.onPrimary,
|
|
62
|
+
isMobile: F,
|
|
63
|
+
isExtraSmall: T,
|
|
64
|
+
isSplitVariant: t.isSplitVariant || !1
|
|
65
|
+
}), C = (e) => {
|
|
66
|
+
u(!1), b(!1), g(e), t.onPlayerSelection(e);
|
|
67
|
+
}, I = (e) => {
|
|
68
|
+
e ? (g(null), b(!1), u(!0), t.onPlayerSelection("OWN_GOAL")) : (u(!1), t.onPlayerSelection(null));
|
|
69
|
+
}, O = (e) => {
|
|
70
|
+
e ? (g(null), u(!1), b(!0), t.onPlayerSelection(null)) : (b(!1), t.onPlayerSelection(null));
|
|
71
|
+
}, L = () => {
|
|
72
|
+
const e = c === "home" ? S.get(t.matchModel.homeTeam.id) : S.get(t.matchModel.awayTeam.id);
|
|
73
|
+
switch (j) {
|
|
74
|
+
case 0:
|
|
75
|
+
return (e == null ? void 0 : e.filter((l) => l.position === "forward")) || [];
|
|
76
|
+
case 1:
|
|
77
|
+
return (e == null ? void 0 : e.filter((l) => l.position === "midfielder")) || [];
|
|
78
|
+
case 2:
|
|
79
|
+
return (e == null ? void 0 : e.filter((l) => l.position === "defender")) || [];
|
|
80
|
+
case 3:
|
|
81
|
+
return (e == null ? void 0 : e.filter((l) => l.position === "keeper")) || [];
|
|
82
|
+
default:
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
}, P = ["attackers", "midfielders", "defenders", "goalkeepers"];
|
|
86
|
+
return /* @__PURE__ */ o.jsxs(n, { sx: a.container, children: [
|
|
87
|
+
/* @__PURE__ */ o.jsx(n, { sx: a.teamSelection, children: /* @__PURE__ */ o.jsxs(n, { sx: a.badgesRow, children: [
|
|
88
|
+
/* @__PURE__ */ o.jsx(
|
|
89
|
+
n,
|
|
90
|
+
{
|
|
91
|
+
sx: {
|
|
92
|
+
...a.badge,
|
|
93
|
+
...c === "home" ? a.badgeActive : {}
|
|
94
|
+
},
|
|
95
|
+
role: "button",
|
|
96
|
+
"aria-pressed": c === "home",
|
|
97
|
+
tabIndex: 0,
|
|
98
|
+
onClick: () => y("home"),
|
|
99
|
+
onKeyDown: (e) => {
|
|
100
|
+
(e.key === "Enter" || e.key === " ") && y("home");
|
|
101
|
+
},
|
|
102
|
+
children: t.matchModel.homeTeam.name
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ o.jsx(
|
|
106
|
+
n,
|
|
107
|
+
{
|
|
108
|
+
sx: {
|
|
109
|
+
...a.badge,
|
|
110
|
+
...c === "away" ? a.badgeActive : {}
|
|
111
|
+
},
|
|
112
|
+
role: "button",
|
|
113
|
+
"aria-pressed": c === "away",
|
|
114
|
+
tabIndex: 0,
|
|
115
|
+
onClick: () => y("away"),
|
|
116
|
+
onKeyDown: (e) => {
|
|
117
|
+
(e.key === "Enter" || e.key === " ") && y("away");
|
|
118
|
+
},
|
|
119
|
+
children: t.matchModel.awayTeam.name
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] }) }),
|
|
123
|
+
/* @__PURE__ */ o.jsx(n, { sx: a.tabsContainer, children: /* @__PURE__ */ o.jsxs(
|
|
124
|
+
z,
|
|
125
|
+
{
|
|
126
|
+
value: j,
|
|
127
|
+
onChange: (e, l) => B(l),
|
|
128
|
+
sx: a.tabs,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ o.jsx(R, { sx: a.tabList, children: P.map((e, l) => /* @__PURE__ */ o.jsx(H, { value: l, sx: a.tab, children: f(`matchQuiz.fixtures.${e}`) }, e)) }),
|
|
131
|
+
P.map((e, l) => /* @__PURE__ */ o.jsx(Q, { value: l, sx: a.tabPanel, children: /* @__PURE__ */ o.jsx(n, { sx: a.playersGrid, children: L().map((s) => /* @__PURE__ */ o.jsxs(n, { sx: a.playerContainer, children: [
|
|
132
|
+
/* @__PURE__ */ o.jsx(
|
|
133
|
+
w,
|
|
134
|
+
{
|
|
135
|
+
player: s,
|
|
136
|
+
isSelected: k === s.id,
|
|
137
|
+
styles: a,
|
|
138
|
+
handlePlayerSelection: C
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ o.jsx(
|
|
142
|
+
_,
|
|
143
|
+
{
|
|
144
|
+
level: "body-xs",
|
|
145
|
+
sx: {
|
|
146
|
+
...a.playerName,
|
|
147
|
+
...k === s.id ? a.selectedPlayerName : {}
|
|
148
|
+
},
|
|
149
|
+
onClick: () => C(s.id),
|
|
150
|
+
children: s.name
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }, s.id)) }) }, l))
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
) }),
|
|
157
|
+
/* @__PURE__ */ o.jsxs(n, { sx: a.checkboxesContainer, children: [
|
|
158
|
+
/* @__PURE__ */ o.jsx(p, { size: "sm", children: /* @__PURE__ */ o.jsx(n, { sx: a.checkboxRow, children: /* @__PURE__ */ o.jsx(
|
|
159
|
+
v,
|
|
160
|
+
{
|
|
161
|
+
checked: G,
|
|
162
|
+
onChange: (e) => I(e.target.checked),
|
|
163
|
+
slotProps: {
|
|
164
|
+
checkbox: {
|
|
165
|
+
sx: {
|
|
166
|
+
"&.Mui-checked": {
|
|
167
|
+
bgcolor: t.brandingPrimaryColor || r.palette.primary.plainColor,
|
|
168
|
+
"--Icon-color": "#FFF"
|
|
169
|
+
},
|
|
170
|
+
"&:not(.Mui-checked):not(.Mui-disabled):hover": {
|
|
171
|
+
bgcolor: x.colorSchemes.light.palette.neutral.outlinedHoverBg
|
|
172
|
+
},
|
|
173
|
+
bgcolor: x.colorSchemes.light.palette.background.surface
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
label: {
|
|
177
|
+
sx: a.checkboxLabel
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
label: f("matchQuiz.fixtures.ownGoal")
|
|
181
|
+
}
|
|
182
|
+
) }) }),
|
|
183
|
+
/* @__PURE__ */ o.jsx(p, { size: "sm", children: /* @__PURE__ */ o.jsx(n, { sx: a.checkboxRow, children: /* @__PURE__ */ o.jsx(
|
|
184
|
+
v,
|
|
185
|
+
{
|
|
186
|
+
checked: A,
|
|
187
|
+
onChange: (e) => O(e.target.checked),
|
|
188
|
+
slotProps: {
|
|
189
|
+
checkbox: {
|
|
190
|
+
sx: {
|
|
191
|
+
"&.Mui-checked": {
|
|
192
|
+
bgcolor: t.brandingPrimaryColor || r.palette.primary.plainColor,
|
|
193
|
+
"--Icon-color": "#FFF"
|
|
194
|
+
},
|
|
195
|
+
"&:not(.Mui-checked):not(.Mui-disabled):hover": {
|
|
196
|
+
bgcolor: x.colorSchemes.light.palette.neutral.outlinedHoverBg
|
|
197
|
+
},
|
|
198
|
+
bgcolor: x.colorSchemes.light.palette.background.surface
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
label: {
|
|
202
|
+
sx: a.checkboxLabel
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
label: f("matchQuiz.fixtures.noGoalWillBeScored")
|
|
206
|
+
}
|
|
207
|
+
) }) })
|
|
208
|
+
] })
|
|
209
|
+
] });
|
|
210
|
+
};
|
|
211
|
+
export {
|
|
212
|
+
xe as default
|
|
213
|
+
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { createTeamLogoStyles as a } from "../shared.styles.js";
|
|
2
|
+
const l = (e) => {
|
|
3
|
+
const t = a({
|
|
4
|
+
spacingScale: e.spacingScale,
|
|
5
|
+
neutralSoftBg: e.neutralSoftBg,
|
|
6
|
+
neutralPlainHoverBg: e.neutralPlainHoverBg,
|
|
7
|
+
isMobile: e.isMobile,
|
|
8
|
+
primary: e.primary,
|
|
9
|
+
onPrimary: e.onPrimary
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
gap: e.spacingScale.lg,
|
|
17
|
+
width: "100%"
|
|
18
|
+
},
|
|
19
|
+
// Team selection section
|
|
20
|
+
teamSelection: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: e.spacingScale.md,
|
|
24
|
+
pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
25
|
+
},
|
|
26
|
+
iconsRow: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
justifyContent: "center",
|
|
30
|
+
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
31
|
+
},
|
|
32
|
+
labelsRow: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
alignItems: "flex-start",
|
|
35
|
+
justifyContent: "center",
|
|
36
|
+
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
37
|
+
},
|
|
38
|
+
iconContainer: {
|
|
39
|
+
display: "flex",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
flex: 1
|
|
43
|
+
},
|
|
44
|
+
labelContainer: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
alignItems: "flex-start",
|
|
47
|
+
justifyContent: "center",
|
|
48
|
+
flex: 1
|
|
49
|
+
},
|
|
50
|
+
teamLogo: {
|
|
51
|
+
...t.base,
|
|
52
|
+
cursor: "pointer"
|
|
53
|
+
},
|
|
54
|
+
selectedTeamLogo: t.selected,
|
|
55
|
+
teamLogoText: {
|
|
56
|
+
...t.text,
|
|
57
|
+
fontFamily: e.fontFamilySecondary,
|
|
58
|
+
color: e.textSecondary
|
|
59
|
+
},
|
|
60
|
+
selectedTeamLogoText: t.selectedText,
|
|
61
|
+
teamName: {
|
|
62
|
+
fontFamily: e.fontFamilySecondary,
|
|
63
|
+
color: e.textPrimary,
|
|
64
|
+
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
65
|
+
fontWeight: 600,
|
|
66
|
+
textAlign: "center"
|
|
67
|
+
},
|
|
68
|
+
// Team badges (home/away)
|
|
69
|
+
badgesRow: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
justifyContent: "center",
|
|
73
|
+
gap: e.isMobile ? e.spacingScale.sm : e.spacingScale.md
|
|
74
|
+
},
|
|
75
|
+
badge: {
|
|
76
|
+
display: "inline-flex",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
justifyContent: "center",
|
|
79
|
+
padding: `${e.spacingScale.xs} ${e.spacingScale.md}`,
|
|
80
|
+
borderRadius: 9999,
|
|
81
|
+
border: `1px solid ${e.neutralOutlinedBorder}`,
|
|
82
|
+
cursor: "pointer",
|
|
83
|
+
userSelect: "none",
|
|
84
|
+
fontFamily: e.fontFamilySecondary,
|
|
85
|
+
fontWeight: 500,
|
|
86
|
+
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
87
|
+
color: e.textSecondary,
|
|
88
|
+
backgroundColor: "transparent",
|
|
89
|
+
minWidth: e.isMobile ? "auto" : "120px",
|
|
90
|
+
textAlign: "center",
|
|
91
|
+
"&:hover": {
|
|
92
|
+
backgroundColor: e.neutralPlainHoverBg,
|
|
93
|
+
color: e.textPrimary,
|
|
94
|
+
borderColor: `${e.primary}40`
|
|
95
|
+
},
|
|
96
|
+
"&:active": {
|
|
97
|
+
transform: "scale(0.98)"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
badgeActive: {
|
|
101
|
+
borderColor: e.primary,
|
|
102
|
+
color: e.primary,
|
|
103
|
+
backgroundColor: e.neutralPlainHoverBg,
|
|
104
|
+
fontWeight: 600,
|
|
105
|
+
"&:hover": {
|
|
106
|
+
borderColor: e.primary,
|
|
107
|
+
color: e.primary,
|
|
108
|
+
backgroundColor: e.neutralPlainHoverBg
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// Tabs section
|
|
112
|
+
tabsContainer: {
|
|
113
|
+
width: "100%",
|
|
114
|
+
alignSelf: "flex-start"
|
|
115
|
+
},
|
|
116
|
+
tabs: {
|
|
117
|
+
backgroundColor: e.neutralSoftBg,
|
|
118
|
+
borderRadius: e.borderRadius.lg,
|
|
119
|
+
overflow: "hidden"
|
|
120
|
+
},
|
|
121
|
+
tabList: {
|
|
122
|
+
borderBottom: `1px solid ${e.neutralOutlinedBorder}`,
|
|
123
|
+
p: 0,
|
|
124
|
+
gap: 0,
|
|
125
|
+
justifyContent: "space-between",
|
|
126
|
+
flexWrap: e.isExtraSmall ? "wrap" : "nowrap",
|
|
127
|
+
"& .MuiTabList-root": {
|
|
128
|
+
bgcolor: "transparent"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
tab: {
|
|
132
|
+
width: e.isExtraSmall ? "50%" : "25%",
|
|
133
|
+
fontFamily: e.fontFamilySecondary,
|
|
134
|
+
fontWeight: 500,
|
|
135
|
+
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
136
|
+
color: e.textSecondary,
|
|
137
|
+
bgcolor: "transparent",
|
|
138
|
+
border: "none",
|
|
139
|
+
borderBottom: "2px solid transparent",
|
|
140
|
+
transition: "all 0.2s ease",
|
|
141
|
+
minHeight: "auto",
|
|
142
|
+
py: e.spacingScale.sm,
|
|
143
|
+
px: e.spacingScale.xs,
|
|
144
|
+
"&:hover": {
|
|
145
|
+
bgcolor: `${e.neutralPlainHoverBg} !important`,
|
|
146
|
+
borderBottom: `2px solid ${e.primary}40`,
|
|
147
|
+
color: `${e.textPrimary} !important`
|
|
148
|
+
},
|
|
149
|
+
"&:not(.Mui-selected):hover": {
|
|
150
|
+
color: `${e.textPrimary} !important`
|
|
151
|
+
},
|
|
152
|
+
"&.Mui-selected": {
|
|
153
|
+
bgcolor: e.neutralPlainHoverBg,
|
|
154
|
+
color: e.textPrimary,
|
|
155
|
+
borderBottom: `2px solid ${e.primary}`,
|
|
156
|
+
fontWeight: 600
|
|
157
|
+
},
|
|
158
|
+
"&:first-of-type": {
|
|
159
|
+
borderTopLeftRadius: e.isExtraSmall ? 0 : e.borderRadius.lg
|
|
160
|
+
},
|
|
161
|
+
"&:last-of-type": {
|
|
162
|
+
borderTopRightRadius: e.isExtraSmall ? 0 : e.borderRadius.lg
|
|
163
|
+
},
|
|
164
|
+
"--Tab-indicatorColor": `2px solid ${e.primary} !important`
|
|
165
|
+
},
|
|
166
|
+
tabPanel: {
|
|
167
|
+
px: 0,
|
|
168
|
+
py: e.spacingScale.xs,
|
|
169
|
+
"& .MuiTabPanel-root": {
|
|
170
|
+
p: 0
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
// Players grid
|
|
174
|
+
playersGrid: {
|
|
175
|
+
display: "grid",
|
|
176
|
+
gridTemplateColumns: e.isMobile ? "repeat(auto-fit, minmax(70px, 1fr))" : "repeat(auto-fit, minmax(90px, 1fr))",
|
|
177
|
+
gap: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
178
|
+
justifyContent: "center",
|
|
179
|
+
justifyItems: "center",
|
|
180
|
+
padding: e.spacingScale.sm,
|
|
181
|
+
maxWidth: "100%"
|
|
182
|
+
},
|
|
183
|
+
playerContainer: {
|
|
184
|
+
display: "flex",
|
|
185
|
+
flexDirection: "column",
|
|
186
|
+
alignItems: "center",
|
|
187
|
+
gap: e.spacingScale.xs,
|
|
188
|
+
cursor: "pointer",
|
|
189
|
+
transition: "all 0.2s ease-in-out",
|
|
190
|
+
width: "100%",
|
|
191
|
+
maxWidth: e.isMobile ? "70px" : "90px",
|
|
192
|
+
"&:hover": {
|
|
193
|
+
transform: "scale(1.02)"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
// Player avatar styles
|
|
197
|
+
playerAvatar: {
|
|
198
|
+
width: e.isMobile ? "44px" : "52px",
|
|
199
|
+
height: e.isMobile ? "44px" : "52px",
|
|
200
|
+
borderRadius: "50%",
|
|
201
|
+
backgroundColor: e.neutralSoftBg,
|
|
202
|
+
display: "flex",
|
|
203
|
+
alignItems: "center",
|
|
204
|
+
justifyContent: "center",
|
|
205
|
+
overflow: "hidden",
|
|
206
|
+
border: `2px solid ${e.neutralOutlinedBorder}`,
|
|
207
|
+
cursor: "pointer",
|
|
208
|
+
transition: "all 0.2s ease-in-out",
|
|
209
|
+
flexShrink: 0,
|
|
210
|
+
"&:hover": {
|
|
211
|
+
backgroundColor: e.neutralPlainHoverBg,
|
|
212
|
+
borderColor: e.primary,
|
|
213
|
+
transform: "scale(1.05)"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
selectedPlayerAvatar: {
|
|
217
|
+
backgroundColor: e.primary,
|
|
218
|
+
borderColor: e.primary,
|
|
219
|
+
transform: "scale(1.1)",
|
|
220
|
+
"&:hover": {
|
|
221
|
+
backgroundColor: e.primary,
|
|
222
|
+
borderColor: e.primary,
|
|
223
|
+
transform: "scale(1.1)"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
playerAvatarText: {
|
|
227
|
+
fontFamily: e.fontFamilySecondary,
|
|
228
|
+
color: e.textSecondary,
|
|
229
|
+
fontSize: e.isMobile ? "0.625em" : "0.75em",
|
|
230
|
+
fontWeight: 600,
|
|
231
|
+
textAlign: "center",
|
|
232
|
+
lineHeight: 1
|
|
233
|
+
},
|
|
234
|
+
selectedPlayerAvatarText: {
|
|
235
|
+
color: e.onPrimary
|
|
236
|
+
},
|
|
237
|
+
playerAvatarIcon: {
|
|
238
|
+
color: e.textSecondary,
|
|
239
|
+
fontSize: e.isMobile ? "1.25em" : "1.5em"
|
|
240
|
+
},
|
|
241
|
+
selectedPlayerAvatarIcon: {
|
|
242
|
+
color: e.onPrimary
|
|
243
|
+
},
|
|
244
|
+
playerName: {
|
|
245
|
+
fontFamily: e.fontFamilySecondary,
|
|
246
|
+
color: e.textSecondary,
|
|
247
|
+
fontSize: e.isMobile ? "0.625em" : "0.75em",
|
|
248
|
+
fontWeight: 500,
|
|
249
|
+
textAlign: "center",
|
|
250
|
+
lineHeight: 1.2,
|
|
251
|
+
cursor: "pointer",
|
|
252
|
+
transition: "color 0.2s ease-in-out",
|
|
253
|
+
wordBreak: "break-word",
|
|
254
|
+
hyphens: "auto",
|
|
255
|
+
width: "100%",
|
|
256
|
+
overflow: "hidden",
|
|
257
|
+
display: "-webkit-box",
|
|
258
|
+
WebkitLineClamp: 2,
|
|
259
|
+
WebkitBoxOrient: "vertical",
|
|
260
|
+
"&:hover": {
|
|
261
|
+
color: e.textPrimary
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
selectedPlayerName: {
|
|
265
|
+
color: e.primary,
|
|
266
|
+
fontWeight: 600
|
|
267
|
+
},
|
|
268
|
+
// Checkboxes section
|
|
269
|
+
checkboxesContainer: {
|
|
270
|
+
display: "flex",
|
|
271
|
+
gap: e.spacingScale.sm,
|
|
272
|
+
alignItems: e.isExtraSmall || e.isSplitVariant ? "flex-start" : "center",
|
|
273
|
+
justifyContent: e.isExtraSmall || e.isSplitVariant ? "flex-start" : "center",
|
|
274
|
+
flexDirection: e.isExtraSmall || e.isSplitVariant ? "column" : "row",
|
|
275
|
+
width: "100%",
|
|
276
|
+
maxWidth: "600px"
|
|
277
|
+
},
|
|
278
|
+
checkboxRow: {
|
|
279
|
+
display: "inline-flex",
|
|
280
|
+
alignItems: "center",
|
|
281
|
+
gap: e.spacingScale.xs
|
|
282
|
+
},
|
|
283
|
+
checkboxLabel: {
|
|
284
|
+
fontFamily: e.fontFamilySecondary,
|
|
285
|
+
color: e.textPrimary,
|
|
286
|
+
fontSize: e.isMobile ? "0.875em" : "1em",
|
|
287
|
+
fontWeight: 500
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
export {
|
|
292
|
+
l as createStyles
|
|
293
|
+
};
|