fansunited-frontend-components 0.0.31-RC3 → 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.d.ts +4 -0
- package/ClassicQuizPlay.d.ts.map +1 -0
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.d.ts +4 -0
- package/CollectLead.d.ts.map +1 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.d.ts +4 -0
- package/EventGamePlay.d.ts.map +1 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.d.ts +4 -0
- package/MatchQuizPlay.d.ts.map +1 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.d.ts +4 -0
- package/PersonalityQuizPlay.d.ts.map +1 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.d.ts +4 -0
- package/PollVote.d.ts.map +1 -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.d.ts +6 -1
- package/index.d.ts.map +1 -1
- 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 -105201
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as c, IconButton as e } from "@mui/joy";
|
|
3
|
+
import { useInternalTheme as m } 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 "../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
import x from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
10
|
+
import u from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
11
|
+
const I = ({
|
|
12
|
+
hasNextPage: i,
|
|
13
|
+
hasPreviousPage: n,
|
|
14
|
+
onNextPage: a,
|
|
15
|
+
onPreviousPage: l,
|
|
16
|
+
isOverlayVariant: s = !1,
|
|
17
|
+
justifyContent: d = "flex-start"
|
|
18
|
+
}) => {
|
|
19
|
+
const p = m(), t = () => {
|
|
20
|
+
if (!s)
|
|
21
|
+
return {
|
|
22
|
+
borderRadius: "8px",
|
|
23
|
+
minWidth: "32px",
|
|
24
|
+
minHeight: "32px"
|
|
25
|
+
};
|
|
26
|
+
const r = p.colorSchemes.dark;
|
|
27
|
+
return {
|
|
28
|
+
borderRadius: "8px",
|
|
29
|
+
minWidth: "32px",
|
|
30
|
+
minHeight: "32px",
|
|
31
|
+
backgroundColor: "transparent",
|
|
32
|
+
color: r.textColor,
|
|
33
|
+
border: "none",
|
|
34
|
+
"&:hover": {
|
|
35
|
+
backgroundColor: r.palette.neutral.solidBg,
|
|
36
|
+
color: r.textColor
|
|
37
|
+
},
|
|
38
|
+
"&:active": {
|
|
39
|
+
backgroundColor: r.palette.neutral.plainActiveBg
|
|
40
|
+
},
|
|
41
|
+
"&.Mui-disabled": {
|
|
42
|
+
backgroundColor: "transparent",
|
|
43
|
+
color: r.textDisabled,
|
|
44
|
+
opacity: 0.5
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ o.jsxs(
|
|
49
|
+
c,
|
|
50
|
+
{
|
|
51
|
+
sx: {
|
|
52
|
+
display: "flex",
|
|
53
|
+
gap: 0.5,
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: d
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ o.jsx(
|
|
59
|
+
e,
|
|
60
|
+
{
|
|
61
|
+
size: "md",
|
|
62
|
+
variant: "plain",
|
|
63
|
+
color: "neutral",
|
|
64
|
+
onClick: l,
|
|
65
|
+
disabled: !n,
|
|
66
|
+
sx: t(),
|
|
67
|
+
children: /* @__PURE__ */ o.jsx(x, { size: 20 })
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ o.jsx(
|
|
71
|
+
e,
|
|
72
|
+
{
|
|
73
|
+
size: "md",
|
|
74
|
+
variant: "plain",
|
|
75
|
+
color: "neutral",
|
|
76
|
+
onClick: a,
|
|
77
|
+
disabled: !i,
|
|
78
|
+
sx: t(),
|
|
79
|
+
children: /* @__PURE__ */ o.jsx(u, { size: 20 })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
I as default
|
|
88
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as m } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as n } from "@mui/joy";
|
|
3
|
+
import { isMobile as a, useCornerRadius as p, useColors as o, useBorderSize as u } 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 "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
const R = ({
|
|
10
|
+
children: r,
|
|
11
|
+
brandingBorderColor: e
|
|
12
|
+
}) => {
|
|
13
|
+
const i = a(), s = p().md, d = e || o().secondaryContainer, t = u().size + " solid " + d;
|
|
14
|
+
return /* @__PURE__ */ m.jsx(
|
|
15
|
+
n,
|
|
16
|
+
{
|
|
17
|
+
sx: {
|
|
18
|
+
display: "flex",
|
|
19
|
+
flexDirection: i ? "column" : "row",
|
|
20
|
+
width: "100%",
|
|
21
|
+
borderRadius: s,
|
|
22
|
+
boxShadow: "md",
|
|
23
|
+
border: t,
|
|
24
|
+
overflow: "hidden",
|
|
25
|
+
background: o().surface,
|
|
26
|
+
minHeight: "250px"
|
|
27
|
+
},
|
|
28
|
+
children: r
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
R as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { j as e } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Snackbar as l, Box as n, Typography as o } from "@mui/joy";
|
|
3
|
+
import a from "../../../../../node_modules/@mui/icons-material/esm/CheckCircle.js";
|
|
4
|
+
import m from "../../../../../node_modules/@mui/icons-material/esm/Error.js";
|
|
5
|
+
import { useCornerRadius as p, useFontFamily as x } 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 "react";
|
|
9
|
+
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import "../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
+
const z = ({
|
|
12
|
+
notification: r,
|
|
13
|
+
onClose: s
|
|
14
|
+
}) => {
|
|
15
|
+
const t = p(), i = x();
|
|
16
|
+
return r.open ? /* @__PURE__ */ e.jsx(
|
|
17
|
+
l,
|
|
18
|
+
{
|
|
19
|
+
open: r.open,
|
|
20
|
+
onClose: s,
|
|
21
|
+
autoHideDuration: r.variant === "error" ? 5e3 : 3e3,
|
|
22
|
+
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
23
|
+
color: r.variant === "success" ? "success" : "danger",
|
|
24
|
+
variant: "soft",
|
|
25
|
+
startDecorator: r.variant === "success" ? /* @__PURE__ */ e.jsx(a, {}) : /* @__PURE__ */ e.jsx(m, {}),
|
|
26
|
+
sx: {
|
|
27
|
+
borderRadius: t.sm,
|
|
28
|
+
fontFamily: i.secondary,
|
|
29
|
+
minWidth: "300px",
|
|
30
|
+
maxWidth: "400px",
|
|
31
|
+
zIndex: 9999,
|
|
32
|
+
position: "fixed"
|
|
33
|
+
},
|
|
34
|
+
children: /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
35
|
+
r.title && /* @__PURE__ */ e.jsx(
|
|
36
|
+
o,
|
|
37
|
+
{
|
|
38
|
+
level: "title-md",
|
|
39
|
+
sx: {
|
|
40
|
+
fontWeight: 600,
|
|
41
|
+
fontSize: "16px",
|
|
42
|
+
lineHeight: 1.2,
|
|
43
|
+
color: "inherit"
|
|
44
|
+
},
|
|
45
|
+
children: r.title
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
r.message && /* @__PURE__ */ e.jsx(
|
|
49
|
+
o,
|
|
50
|
+
{
|
|
51
|
+
level: "body-sm",
|
|
52
|
+
sx: {
|
|
53
|
+
fontSize: "14px",
|
|
54
|
+
lineHeight: 1.3,
|
|
55
|
+
color: "inherit",
|
|
56
|
+
opacity: 0.9
|
|
57
|
+
},
|
|
58
|
+
children: r.message
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] })
|
|
62
|
+
}
|
|
63
|
+
) : null;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
z as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { j as o } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as n, Typography as u } from "@mui/joy";
|
|
3
|
+
import { useColors as C, useCornerRadius as y, isMobile as f, getSpacing as j } 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 "../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
const E = (e) => {
|
|
10
|
+
const r = C(), p = y(), m = f(), g = () => {
|
|
11
|
+
const c = p.full, a = e.brandingPrimaryColor || r.palette.primary.plainColor, l = e.brandingPrimaryColor || r.palette.primary.outlinedBorder, i = "#FFFFFF", t = r.outlineEnabledBorder;
|
|
12
|
+
return /* @__PURE__ */ o.jsxs(
|
|
13
|
+
n,
|
|
14
|
+
{
|
|
15
|
+
sx: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
width: "100%"
|
|
20
|
+
},
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ o.jsx(
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
sx: {
|
|
26
|
+
flex: 1,
|
|
27
|
+
height: "3px",
|
|
28
|
+
backgroundColor: t,
|
|
29
|
+
borderRadius: "1px"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ o.jsx(
|
|
34
|
+
n,
|
|
35
|
+
{
|
|
36
|
+
sx: {
|
|
37
|
+
width: "32px",
|
|
38
|
+
height: "32px",
|
|
39
|
+
borderRadius: c,
|
|
40
|
+
backgroundColor: a,
|
|
41
|
+
border: `1px solid ${l}`,
|
|
42
|
+
display: "flex",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
justifyContent: "center",
|
|
45
|
+
transition: "background-color 0.3s ease",
|
|
46
|
+
mx: 1.5
|
|
47
|
+
// Add margin between lines and circle
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ o.jsx(
|
|
50
|
+
u,
|
|
51
|
+
{
|
|
52
|
+
sx: {
|
|
53
|
+
fontSize: "14px",
|
|
54
|
+
fontWeight: 600,
|
|
55
|
+
color: i,
|
|
56
|
+
lineHeight: 1
|
|
57
|
+
},
|
|
58
|
+
children: e.currentStep
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ o.jsx(
|
|
64
|
+
n,
|
|
65
|
+
{
|
|
66
|
+
sx: {
|
|
67
|
+
flex: 1,
|
|
68
|
+
height: "3px",
|
|
69
|
+
backgroundColor: t,
|
|
70
|
+
borderRadius: "1px"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}, b = () => {
|
|
78
|
+
const c = p.full, a = e.totalSteps || e.eventGame.fixtures.length, l = [];
|
|
79
|
+
for (let i = 0; i < a; i++) {
|
|
80
|
+
const t = i + 1;
|
|
81
|
+
let s, d, x;
|
|
82
|
+
if (t < e.currentStep ? (s = e.brandingPrimaryColor || r.palette.primary.plainColor, d = e.brandingPrimaryColor || r.palette.primary.outlinedBorder, x = "#FFFFFF") : t === e.currentStep ? (s = e.brandingPrimaryColor || r.palette.primary.plainColor, d = e.brandingPrimaryColor || r.palette.primary.outlinedBorder, x = r.palette.primary.onPrimary) : (s = r.palette.neutral.softBg, d = r.outlineEnabledBorder, x = r.textColor), l.push(
|
|
83
|
+
/* @__PURE__ */ o.jsx(
|
|
84
|
+
n,
|
|
85
|
+
{
|
|
86
|
+
sx: {
|
|
87
|
+
width: "32px",
|
|
88
|
+
height: "32px",
|
|
89
|
+
borderRadius: c,
|
|
90
|
+
backgroundColor: s,
|
|
91
|
+
border: `1px solid ${d}`,
|
|
92
|
+
display: "flex",
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
justifyContent: "center",
|
|
95
|
+
transition: "background-color 0.3s ease",
|
|
96
|
+
position: "relative"
|
|
97
|
+
},
|
|
98
|
+
children: /* @__PURE__ */ o.jsx(
|
|
99
|
+
u,
|
|
100
|
+
{
|
|
101
|
+
sx: {
|
|
102
|
+
fontSize: "14px",
|
|
103
|
+
fontWeight: 600,
|
|
104
|
+
color: x,
|
|
105
|
+
lineHeight: 1
|
|
106
|
+
},
|
|
107
|
+
children: t
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
},
|
|
111
|
+
`step-${t}`
|
|
112
|
+
)
|
|
113
|
+
), i < a - 1) {
|
|
114
|
+
const h = t < e.currentStep ? e.brandingPrimaryColor || r.palette.primary.plainColor : r.outlineEnabledBorder;
|
|
115
|
+
l.push(
|
|
116
|
+
/* @__PURE__ */ o.jsx(
|
|
117
|
+
n,
|
|
118
|
+
{
|
|
119
|
+
sx: {
|
|
120
|
+
width: "32px",
|
|
121
|
+
height: "3px",
|
|
122
|
+
backgroundColor: h,
|
|
123
|
+
transition: "background-color 0.3s ease",
|
|
124
|
+
borderRadius: "2px"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
`line-${t}`
|
|
128
|
+
)
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return l;
|
|
133
|
+
};
|
|
134
|
+
return /* @__PURE__ */ o.jsx(
|
|
135
|
+
n,
|
|
136
|
+
{
|
|
137
|
+
sx: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
justifyContent: "center",
|
|
141
|
+
py: j("xs"),
|
|
142
|
+
width: "100%",
|
|
143
|
+
zIndex: 1
|
|
144
|
+
},
|
|
145
|
+
children: m || e.isSplitVariant ? g() : b()
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
};
|
|
149
|
+
export {
|
|
150
|
+
E as default
|
|
151
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { j as n } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { Modal as P, ModalDialog as S, IconButton as E, DialogContent as F, DialogActions as I, Button as y } from "@mui/joy";
|
|
4
|
+
import R from "../../../../../../node_modules/@mui/icons-material/esm/Close.js";
|
|
5
|
+
import { useColors as T, useCornerRadius as q, useFontFamily as w, useSpacingScale as B } 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 N } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
9
|
+
import { ConstantsContext as M } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
+
import { EventGameOutcomeTypeEnum as l } from "fansunited-sdk-esm";
|
|
12
|
+
import { createStyles as U } from "./EditPredictionModal.styles.js";
|
|
13
|
+
import k from "../Fixtures/Number/NumberFixture.js";
|
|
14
|
+
import D from "../Fixtures/Boolean/BooleanFixture.js";
|
|
15
|
+
import C from "../Fixtures/Text/TextFixture.js";
|
|
16
|
+
import { clampNumberPrediction as V } from "../../../helpers/helpers.js";
|
|
17
|
+
import { useTranslation as G } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
18
|
+
const ie = (e) => {
|
|
19
|
+
const { t: d } = G(), { shadowRootElement: v } = N(M), r = T(), h = q(), f = w(), g = B(), [m, x] = b(!1), c = U({
|
|
20
|
+
spacingScale: g,
|
|
21
|
+
borderRadius: h,
|
|
22
|
+
fontFamilyPrimary: f.primary,
|
|
23
|
+
fontFamilySecondary: f.secondary,
|
|
24
|
+
textPrimary: r.textPrimary,
|
|
25
|
+
textSecondary: r.textSecondary,
|
|
26
|
+
primaryColor: r.palette.primary.plainColor,
|
|
27
|
+
surface: r.surface
|
|
28
|
+
}), t = e.prediction.fixtures.find(
|
|
29
|
+
(i) => i.id === e.fixture.id
|
|
30
|
+
), s = (i) => {
|
|
31
|
+
const o = { ...e.prediction }, a = o.fixtures.findIndex(
|
|
32
|
+
(u) => u.id === e.fixture.id
|
|
33
|
+
);
|
|
34
|
+
a !== -1 && (o.fixtures[a] = {
|
|
35
|
+
...o.fixtures[a],
|
|
36
|
+
prediction: i
|
|
37
|
+
}), e.onPredictionUpdate(o);
|
|
38
|
+
}, j = async () => {
|
|
39
|
+
if (x(!0), e.fixture.outcomeType === l.NUMBER) {
|
|
40
|
+
const i = e.fixture.validOutcomes;
|
|
41
|
+
if (t && typeof t.prediction == "number") {
|
|
42
|
+
const o = V(t.prediction, i);
|
|
43
|
+
o !== t.prediction && s(o);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
await e.play(), e.onPlayResult && e.onPlayResult({ success: !0 }), e.onClose();
|
|
48
|
+
} catch (i) {
|
|
49
|
+
console.error("Failed to save prediction:", i), e.onPlayResult && e.onPlayResult({ success: !1, error: i }), e.view !== "score" && e.onClose();
|
|
50
|
+
} finally {
|
|
51
|
+
x(!1);
|
|
52
|
+
}
|
|
53
|
+
}, O = () => {
|
|
54
|
+
const i = e.fixture.outcomeType;
|
|
55
|
+
if (i === l.NUMBER) {
|
|
56
|
+
const o = t == null ? void 0 : t.prediction, a = e.fixture.validOutcomes;
|
|
57
|
+
return /* @__PURE__ */ n.jsx(
|
|
58
|
+
k,
|
|
59
|
+
{
|
|
60
|
+
fixtureId: e.fixture.id,
|
|
61
|
+
prediction: o,
|
|
62
|
+
onChange: (u) => {
|
|
63
|
+
s(u);
|
|
64
|
+
},
|
|
65
|
+
question: e.fixture.question,
|
|
66
|
+
validOutcomes: a || null,
|
|
67
|
+
showPoints: !1,
|
|
68
|
+
isOverlayVariant: e.isOverlayVariant
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
if (i === l.BOOLEAN) {
|
|
73
|
+
const o = t == null ? void 0 : t.prediction;
|
|
74
|
+
return /* @__PURE__ */ n.jsx(
|
|
75
|
+
D,
|
|
76
|
+
{
|
|
77
|
+
fixtureId: e.fixture.id,
|
|
78
|
+
onSelectionChange: (a) => {
|
|
79
|
+
s(a);
|
|
80
|
+
},
|
|
81
|
+
prediction: o,
|
|
82
|
+
question: e.fixture.question,
|
|
83
|
+
showPoints: !1
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
if (i === l.FREE_INPUT) {
|
|
88
|
+
const o = t == null ? void 0 : t.prediction;
|
|
89
|
+
return /* @__PURE__ */ n.jsx(
|
|
90
|
+
C,
|
|
91
|
+
{
|
|
92
|
+
fixtureId: e.fixture.id,
|
|
93
|
+
question: e.fixture.question,
|
|
94
|
+
prediction: o || null,
|
|
95
|
+
validOutcomes: null,
|
|
96
|
+
onTextChange: (a) => {
|
|
97
|
+
s(a);
|
|
98
|
+
},
|
|
99
|
+
showPoints: !1
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
if (i === l.ENUM) {
|
|
104
|
+
const o = t == null ? void 0 : t.prediction;
|
|
105
|
+
return /* @__PURE__ */ n.jsx(
|
|
106
|
+
C,
|
|
107
|
+
{
|
|
108
|
+
fixtureId: e.fixture.id,
|
|
109
|
+
question: e.fixture.question,
|
|
110
|
+
prediction: o || null,
|
|
111
|
+
validOutcomes: e.fixture.validOutcomes,
|
|
112
|
+
onTextChange: (a) => {
|
|
113
|
+
s(a);
|
|
114
|
+
},
|
|
115
|
+
showPoints: !1
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
return null;
|
|
120
|
+
};
|
|
121
|
+
return /* @__PURE__ */ n.jsx(
|
|
122
|
+
P,
|
|
123
|
+
{
|
|
124
|
+
open: e.isOpen,
|
|
125
|
+
onClose: e.onClose,
|
|
126
|
+
container: v,
|
|
127
|
+
sx: { zIndex: 1300 },
|
|
128
|
+
children: /* @__PURE__ */ n.jsxs(S, { sx: c.modalDialog, children: [
|
|
129
|
+
/* @__PURE__ */ n.jsx(E, { onClick: e.onClose, sx: c.closeButton, children: /* @__PURE__ */ n.jsx(R, {}) }),
|
|
130
|
+
/* @__PURE__ */ n.jsx(F, { sx: c.content, children: O() }),
|
|
131
|
+
e.view === "score" && /* @__PURE__ */ n.jsxs(I, { children: [
|
|
132
|
+
/* @__PURE__ */ n.jsx(y, { variant: "solid", onClick: j, loading: m, children: d("eventGame.buttons.save") }),
|
|
133
|
+
/* @__PURE__ */ n.jsx(
|
|
134
|
+
y,
|
|
135
|
+
{
|
|
136
|
+
variant: "outlined",
|
|
137
|
+
onClick: e.onClose,
|
|
138
|
+
disabled: m,
|
|
139
|
+
sx: {
|
|
140
|
+
borderColor: r.secondaryContainer,
|
|
141
|
+
color: r.secondaryContainer,
|
|
142
|
+
"&:hover": {
|
|
143
|
+
borderColor: r.textPrimary,
|
|
144
|
+
color: r.textPrimary,
|
|
145
|
+
backgroundColor: r.surfaceVariant
|
|
146
|
+
},
|
|
147
|
+
"&:disabled": {
|
|
148
|
+
borderColor: r.secondaryContainer,
|
|
149
|
+
color: r.secondaryContainer,
|
|
150
|
+
opacity: 0.5
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
children: d("eventGame.buttons.close")
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
] })
|
|
157
|
+
] })
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
};
|
|
161
|
+
export {
|
|
162
|
+
ie as default
|
|
163
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { isMobile as o } 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 g = (t) => {
|
|
10
|
+
const e = o();
|
|
11
|
+
return {
|
|
12
|
+
modalDialog: {
|
|
13
|
+
width: "100%",
|
|
14
|
+
maxWidth: e ? "90vw" : "600px",
|
|
15
|
+
maxHeight: e ? "90vh" : "80vh",
|
|
16
|
+
overflow: "auto",
|
|
17
|
+
p: e ? 2 : 3,
|
|
18
|
+
borderRadius: t.borderRadius.md,
|
|
19
|
+
backgroundColor: t.surface
|
|
20
|
+
},
|
|
21
|
+
content: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
gap: t.spacingScale.md,
|
|
25
|
+
paddingBottom: t.spacingScale.lg
|
|
26
|
+
},
|
|
27
|
+
title: {
|
|
28
|
+
fontFamily: t.fontFamilyPrimary,
|
|
29
|
+
fontWeight: 600,
|
|
30
|
+
fontSize: e ? "1.25em" : "1.5em",
|
|
31
|
+
lineHeight: 1.2,
|
|
32
|
+
color: t.textPrimary,
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
marginBottom: t.spacingScale.sm
|
|
35
|
+
},
|
|
36
|
+
questionText: {
|
|
37
|
+
fontFamily: t.fontFamilySecondary,
|
|
38
|
+
fontWeight: 500,
|
|
39
|
+
fontSize: e ? "1em" : "1.125em",
|
|
40
|
+
lineHeight: 1.3,
|
|
41
|
+
color: t.textSecondary,
|
|
42
|
+
textAlign: "center",
|
|
43
|
+
marginBottom: t.spacingScale.md
|
|
44
|
+
},
|
|
45
|
+
buttonContainer: {
|
|
46
|
+
marginTop: t.spacingScale.lg,
|
|
47
|
+
justifyContent: "center",
|
|
48
|
+
alignItems: "center"
|
|
49
|
+
},
|
|
50
|
+
cancelButton: {
|
|
51
|
+
fontFamily: t.fontFamilySecondary,
|
|
52
|
+
fontWeight: 500,
|
|
53
|
+
fontSize: "0.875em",
|
|
54
|
+
borderRadius: t.borderRadius.sm,
|
|
55
|
+
padding: `${t.spacingScale.sm} ${t.spacingScale.md}`,
|
|
56
|
+
minWidth: e ? "100px" : "120px",
|
|
57
|
+
borderColor: t.primaryColor,
|
|
58
|
+
color: t.primaryColor,
|
|
59
|
+
"&:hover": {
|
|
60
|
+
backgroundColor: `${t.primaryColor}10`,
|
|
61
|
+
borderColor: t.primaryColor
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
saveButton: {
|
|
65
|
+
fontFamily: t.fontFamilySecondary,
|
|
66
|
+
fontWeight: 500,
|
|
67
|
+
fontSize: "0.875em",
|
|
68
|
+
borderRadius: t.borderRadius.sm,
|
|
69
|
+
padding: `${t.spacingScale.sm} ${t.spacingScale.md}`,
|
|
70
|
+
minWidth: e ? "100px" : "120px",
|
|
71
|
+
backgroundColor: t.primaryColor,
|
|
72
|
+
color: "#ffffff",
|
|
73
|
+
"&:hover": {
|
|
74
|
+
backgroundColor: t.primaryColor,
|
|
75
|
+
opacity: 0.9
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
closeButton: {
|
|
79
|
+
position: "absolute",
|
|
80
|
+
top: t.spacingScale.sm,
|
|
81
|
+
right: t.spacingScale.sm,
|
|
82
|
+
backgroundColor: "transparent",
|
|
83
|
+
color: t.textSecondary,
|
|
84
|
+
border: "none",
|
|
85
|
+
borderRadius: "50%",
|
|
86
|
+
width: "32px",
|
|
87
|
+
height: "32px",
|
|
88
|
+
minHeight: "32px",
|
|
89
|
+
minWidth: "32px",
|
|
90
|
+
padding: 0,
|
|
91
|
+
display: "flex",
|
|
92
|
+
alignItems: "center",
|
|
93
|
+
justifyContent: "center",
|
|
94
|
+
cursor: "pointer",
|
|
95
|
+
transition: "all 0.2s ease-in-out",
|
|
96
|
+
zIndex: 1e3,
|
|
97
|
+
"&:hover": {
|
|
98
|
+
backgroundColor: `${t.textSecondary}15`,
|
|
99
|
+
color: t.textPrimary,
|
|
100
|
+
transform: "scale(1.05)"
|
|
101
|
+
},
|
|
102
|
+
"& svg": {
|
|
103
|
+
fontSize: "1.25em"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
g as createStyles
|
|
110
|
+
};
|