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,220 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Typography as i, Box as b, Sheet as $, Table as B, Avatar as T } from "@mui/joy";
|
|
3
|
+
import z from "../../../../../../node_modules/@mui/icons-material/esm/Person.js";
|
|
4
|
+
import { useInternalTheme as k, useColors as N, useFontFamily as w, useCornerRadius as R, useSpacingScale as E, isExtraSmall as L } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import { hexToRgb as m } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
+
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
+
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
+
import M from "../../../../../common/src/components/Spinner.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
12
|
+
import { useTranslation as U } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
+
const ee = ({
|
|
14
|
+
leaderboard: c,
|
|
15
|
+
userRankings: x,
|
|
16
|
+
matchQuiz: P,
|
|
17
|
+
showHeading: A,
|
|
18
|
+
isSplitVariant: g
|
|
19
|
+
}) => {
|
|
20
|
+
var v;
|
|
21
|
+
const { t: n } = U(), F = k(), h = N(), a = ((v = P.branding) == null ? void 0 : v.colors) || null, u = (a == null ? void 0 : a.primaryColor) || h.palette.primary.plainColor, r = (a == null ? void 0 : a.contentColor) || h.textColor, l = w().primary, W = w().secondary, I = R(), p = E(), C = L(), d = h.surfaceVariant, y = F.colorSchemes.light.palette.primary.onPrimary, j = h.outlineEnabledBorder, o = {
|
|
22
|
+
leaderboardContainer: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
gap: p.md
|
|
26
|
+
},
|
|
27
|
+
leaderboardTitle: {
|
|
28
|
+
fontFamily: l,
|
|
29
|
+
fontWeight: 700,
|
|
30
|
+
fontSize: "1.25em",
|
|
31
|
+
color: r,
|
|
32
|
+
textAlign: "center",
|
|
33
|
+
marginBottom: p.sm
|
|
34
|
+
},
|
|
35
|
+
tableContainer: {
|
|
36
|
+
overflowX: "auto",
|
|
37
|
+
borderRadius: I.md,
|
|
38
|
+
border: `1px solid ${j}`
|
|
39
|
+
},
|
|
40
|
+
table: {
|
|
41
|
+
backgroundColor: d,
|
|
42
|
+
"--TableCell-paddingX": "0.5rem",
|
|
43
|
+
"--TableCell-paddingY": "0.375rem",
|
|
44
|
+
cursor: "default",
|
|
45
|
+
"& > tbody > tr:hover": {
|
|
46
|
+
backgroundColor: "transparent"
|
|
47
|
+
},
|
|
48
|
+
"& > thead > tr > th": {
|
|
49
|
+
backgroundColor: `rgba(${m(d)}, 0.8)`,
|
|
50
|
+
color: r,
|
|
51
|
+
fontFamily: l,
|
|
52
|
+
fontWeight: 600,
|
|
53
|
+
fontSize: "0.875em",
|
|
54
|
+
textAlign: "center",
|
|
55
|
+
borderBottom: `1px solid ${j}`
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
headerCellPosition: {
|
|
59
|
+
backgroundColor: `rgba(${m(d)}, 0.8)`,
|
|
60
|
+
color: r,
|
|
61
|
+
fontFamily: l,
|
|
62
|
+
fontWeight: 600,
|
|
63
|
+
fontSize: "0.875em",
|
|
64
|
+
textAlign: "center",
|
|
65
|
+
padding: "0.375rem 0.5rem",
|
|
66
|
+
width: "10%"
|
|
67
|
+
},
|
|
68
|
+
headerCellName: {
|
|
69
|
+
backgroundColor: `rgba(${m(d)}, 0.8)`,
|
|
70
|
+
color: r,
|
|
71
|
+
fontFamily: l,
|
|
72
|
+
fontWeight: 600,
|
|
73
|
+
fontSize: "0.875em",
|
|
74
|
+
textAlign: "left",
|
|
75
|
+
padding: "0.375rem 0.5rem",
|
|
76
|
+
width: "80%"
|
|
77
|
+
},
|
|
78
|
+
headerCellPoints: {
|
|
79
|
+
backgroundColor: `rgba(${m(d)}, 0.8)`,
|
|
80
|
+
color: r,
|
|
81
|
+
fontFamily: l,
|
|
82
|
+
fontWeight: 600,
|
|
83
|
+
fontSize: "0.875em",
|
|
84
|
+
textAlign: "center",
|
|
85
|
+
padding: "0.375rem 0.5rem",
|
|
86
|
+
width: "10%"
|
|
87
|
+
},
|
|
88
|
+
tableCellPosition: {
|
|
89
|
+
padding: "0.375rem 0.5rem",
|
|
90
|
+
width: "10%",
|
|
91
|
+
textAlign: "center"
|
|
92
|
+
},
|
|
93
|
+
tableCellName: {
|
|
94
|
+
padding: "0.375rem 0.5rem",
|
|
95
|
+
width: "80%"
|
|
96
|
+
},
|
|
97
|
+
tableCellPoints: {
|
|
98
|
+
padding: "0.375rem 0.5rem",
|
|
99
|
+
width: "10%",
|
|
100
|
+
textAlign: "center"
|
|
101
|
+
},
|
|
102
|
+
userRow: {
|
|
103
|
+
backgroundColor: `rgba(${m(u)}, 0.1)`
|
|
104
|
+
},
|
|
105
|
+
nameCell: {
|
|
106
|
+
display: "flex",
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
gap: p.sm
|
|
109
|
+
},
|
|
110
|
+
leaderboardAvatar: {
|
|
111
|
+
width: "32px",
|
|
112
|
+
height: "32px",
|
|
113
|
+
fontSize: "0.875em",
|
|
114
|
+
fontWeight: 600,
|
|
115
|
+
backgroundColor: u,
|
|
116
|
+
color: y
|
|
117
|
+
},
|
|
118
|
+
nameText: {
|
|
119
|
+
fontFamily: l,
|
|
120
|
+
fontWeight: 500,
|
|
121
|
+
fontSize: "0.875em",
|
|
122
|
+
color: r,
|
|
123
|
+
overflow: "hidden",
|
|
124
|
+
textOverflow: "ellipsis",
|
|
125
|
+
whiteSpace: "nowrap"
|
|
126
|
+
},
|
|
127
|
+
positionText: {
|
|
128
|
+
fontFamily: l,
|
|
129
|
+
fontWeight: 600,
|
|
130
|
+
fontSize: "0.875em",
|
|
131
|
+
color: r
|
|
132
|
+
},
|
|
133
|
+
pointsText: {
|
|
134
|
+
fontFamily: l,
|
|
135
|
+
fontWeight: 600,
|
|
136
|
+
fontSize: "0.875em",
|
|
137
|
+
color: r
|
|
138
|
+
},
|
|
139
|
+
avatarIcon: {
|
|
140
|
+
fontSize: "1em",
|
|
141
|
+
color: y
|
|
142
|
+
},
|
|
143
|
+
noLeaderboardText: {
|
|
144
|
+
fontFamily: W,
|
|
145
|
+
fontSize: "1.25em",
|
|
146
|
+
color: r,
|
|
147
|
+
textAlign: "center",
|
|
148
|
+
marginY: p.md
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
if (!c || !x)
|
|
152
|
+
return /* @__PURE__ */ e.jsx(M, { my: 10 });
|
|
153
|
+
if (c.length === 0)
|
|
154
|
+
return /* @__PURE__ */ e.jsx(i, { level: "body-lg", sx: o.noLeaderboardText, children: n("matchQuiz.leaderboard.noLeaderboardAvailable") });
|
|
155
|
+
const s = x && x.length > 0 ? x[0] : null, f = s == null ? void 0 : s.position, Q = f && c.some((t) => t.position === f);
|
|
156
|
+
return /* @__PURE__ */ e.jsxs(b, { sx: o.leaderboardContainer, children: [
|
|
157
|
+
A && /* @__PURE__ */ e.jsx(i, { level: "h4", sx: o.leaderboardTitle, children: n("matchQuiz.leaderboard.title") }),
|
|
158
|
+
/* @__PURE__ */ e.jsx($, { sx: o.tableContainer, children: /* @__PURE__ */ e.jsxs(
|
|
159
|
+
B,
|
|
160
|
+
{
|
|
161
|
+
variant: "outlined",
|
|
162
|
+
hoverRow: !1,
|
|
163
|
+
borderAxis: "bothBetween",
|
|
164
|
+
size: "sm",
|
|
165
|
+
sx: o.table,
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
168
|
+
/* @__PURE__ */ e.jsx("th", { style: o.headerCellPosition, children: C || g ? "" : n("matchQuiz.leaderboard.position") }),
|
|
169
|
+
/* @__PURE__ */ e.jsx("th", { style: o.headerCellName, children: n("matchQuiz.leaderboard.name") }),
|
|
170
|
+
/* @__PURE__ */ e.jsx("th", { style: o.headerCellPoints, children: C || g ? "🎯" : n("matchQuiz.leaderboard.points") })
|
|
171
|
+
] }) }),
|
|
172
|
+
/* @__PURE__ */ e.jsxs("tbody", { children: [
|
|
173
|
+
s && !Q && /* @__PURE__ */ e.jsxs("tr", { style: o.userRow, children: [
|
|
174
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPosition, children: /* @__PURE__ */ e.jsxs(i, { sx: o.positionText, children: [
|
|
175
|
+
"#",
|
|
176
|
+
s.position
|
|
177
|
+
] }) }),
|
|
178
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellName, children: /* @__PURE__ */ e.jsxs(b, { sx: o.nameCell, children: [
|
|
179
|
+
/* @__PURE__ */ e.jsx(T, { sx: o.leaderboardAvatar, children: /* @__PURE__ */ e.jsx(z, { sx: o.avatarIcon }) }),
|
|
180
|
+
/* @__PURE__ */ e.jsx(i, { sx: o.nameText, children: n("matchQuiz.leaderboard.you") })
|
|
181
|
+
] }) }),
|
|
182
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPoints, children: /* @__PURE__ */ e.jsx(i, { sx: o.pointsText, children: s.points }) })
|
|
183
|
+
] }),
|
|
184
|
+
c.map((t) => {
|
|
185
|
+
const S = f === t.position;
|
|
186
|
+
return /* @__PURE__ */ e.jsxs(
|
|
187
|
+
"tr",
|
|
188
|
+
{
|
|
189
|
+
style: S ? o.userRow : void 0,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPosition, children: /* @__PURE__ */ e.jsxs(i, { sx: o.positionText, children: [
|
|
192
|
+
"#",
|
|
193
|
+
t.position
|
|
194
|
+
] }) }),
|
|
195
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellName, children: /* @__PURE__ */ e.jsxs(b, { sx: o.nameCell, children: [
|
|
196
|
+
/* @__PURE__ */ e.jsx(
|
|
197
|
+
T,
|
|
198
|
+
{
|
|
199
|
+
src: t.profileModel.avatar || void 0,
|
|
200
|
+
sx: o.leaderboardAvatar,
|
|
201
|
+
children: t.profileModel.avatar ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(z, { sx: o.avatarIcon })
|
|
202
|
+
}
|
|
203
|
+
),
|
|
204
|
+
/* @__PURE__ */ e.jsx(i, { sx: o.nameText, children: S ? n("matchQuiz.leaderboard.you") : t.profileModel.nickname || t.profileModel.name })
|
|
205
|
+
] }) }),
|
|
206
|
+
/* @__PURE__ */ e.jsx("td", { style: o.tableCellPoints, children: /* @__PURE__ */ e.jsx(i, { sx: o.pointsText, children: t.points }) })
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
t.profileId
|
|
210
|
+
);
|
|
211
|
+
})
|
|
212
|
+
] })
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
) })
|
|
216
|
+
] });
|
|
217
|
+
};
|
|
218
|
+
export {
|
|
219
|
+
ee as default
|
|
220
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as M, IconButton as u, Button as B } from "@mui/joy";
|
|
3
|
+
import { useInternalTheme as S } 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 H from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevrons-left.js";
|
|
10
|
+
import I from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
11
|
+
import P from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
12
|
+
import D from "../../../../../../node_modules/lucide-react/dist/esm/icons/chevrons-right.js";
|
|
13
|
+
const Y = ({
|
|
14
|
+
count: e = 10,
|
|
15
|
+
page: i = 1,
|
|
16
|
+
onChange: C,
|
|
17
|
+
siblingCount: b = 1,
|
|
18
|
+
boundaryCount: s = 1,
|
|
19
|
+
showFirstButton: z = !0,
|
|
20
|
+
showLastButton: R = !0,
|
|
21
|
+
size: h = "md",
|
|
22
|
+
disabled: p = !1,
|
|
23
|
+
isOverlayVariant: g = !1
|
|
24
|
+
}) => {
|
|
25
|
+
const k = S(), x = (r) => {
|
|
26
|
+
C && r >= 1 && r <= e && C(r);
|
|
27
|
+
}, j = (r, t) => {
|
|
28
|
+
const l = [];
|
|
29
|
+
for (let n = r; n <= t; n++) l.push(n);
|
|
30
|
+
return l;
|
|
31
|
+
}, W = (() => {
|
|
32
|
+
if (e <= 0) return [];
|
|
33
|
+
const r = j(1, Math.min(s, e)), t = j(
|
|
34
|
+
Math.max(e - s + 1, s + 1),
|
|
35
|
+
e
|
|
36
|
+
), l = Math.max(s + 1, i - b), n = Math.min(e - s, i + b), c = [...r];
|
|
37
|
+
if (l > s + 1 && c.push("ellipsis-start"), l <= n)
|
|
38
|
+
for (let d = l; d <= n; d++)
|
|
39
|
+
c.push(d);
|
|
40
|
+
n < e - s && c.push("ellipsis-end");
|
|
41
|
+
for (const d of t)
|
|
42
|
+
c.includes(d) || c.push(d);
|
|
43
|
+
return c;
|
|
44
|
+
})(), a = h === "sm" ? "sm" : h === "lg" ? "lg" : "md", m = h === "sm" ? 16 : h === "lg" ? 24 : 20, v = (r = !1) => {
|
|
45
|
+
if (!g)
|
|
46
|
+
return {
|
|
47
|
+
borderRadius: "8px",
|
|
48
|
+
minWidth: "32px",
|
|
49
|
+
minHeight: "32px",
|
|
50
|
+
fontWeight: r ? 600 : 400
|
|
51
|
+
};
|
|
52
|
+
const t = k.colorSchemes.dark;
|
|
53
|
+
return {
|
|
54
|
+
borderRadius: "8px",
|
|
55
|
+
minWidth: "32px",
|
|
56
|
+
minHeight: "32px",
|
|
57
|
+
fontWeight: r ? 600 : 400,
|
|
58
|
+
backgroundColor: r ? t.palette.neutral.solidBg : "transparent",
|
|
59
|
+
color: r ? t.palette.neutral.solidColor : t.textColor,
|
|
60
|
+
border: "none",
|
|
61
|
+
"&:hover": {
|
|
62
|
+
backgroundColor: t.palette.neutral.solidBg,
|
|
63
|
+
color: r ? t.palette.neutral.solidColor : t.textColor
|
|
64
|
+
},
|
|
65
|
+
"&:active": {
|
|
66
|
+
backgroundColor: t.palette.neutral.plainActiveBg
|
|
67
|
+
},
|
|
68
|
+
"&.Mui-disabled": {
|
|
69
|
+
backgroundColor: "transparent",
|
|
70
|
+
color: t.textDisabled,
|
|
71
|
+
opacity: 0.5
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}, f = () => {
|
|
75
|
+
if (!g)
|
|
76
|
+
return {
|
|
77
|
+
borderRadius: "8px",
|
|
78
|
+
minWidth: "32px",
|
|
79
|
+
minHeight: "32px"
|
|
80
|
+
};
|
|
81
|
+
const r = k.colorSchemes.dark;
|
|
82
|
+
return {
|
|
83
|
+
borderRadius: "8px",
|
|
84
|
+
minWidth: "32px",
|
|
85
|
+
minHeight: "32px",
|
|
86
|
+
backgroundColor: "transparent",
|
|
87
|
+
color: r.textColor,
|
|
88
|
+
border: "none",
|
|
89
|
+
"&:hover": {
|
|
90
|
+
backgroundColor: r.palette.neutral.solidBg,
|
|
91
|
+
color: r.textColor
|
|
92
|
+
},
|
|
93
|
+
"&:active": {
|
|
94
|
+
backgroundColor: r.palette.neutral.plainActiveBg
|
|
95
|
+
},
|
|
96
|
+
"&.Mui-disabled": {
|
|
97
|
+
backgroundColor: "transparent",
|
|
98
|
+
color: r.textDisabled,
|
|
99
|
+
opacity: 0.5
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
return /* @__PURE__ */ o.jsxs(
|
|
104
|
+
M,
|
|
105
|
+
{
|
|
106
|
+
sx: {
|
|
107
|
+
display: "flex",
|
|
108
|
+
gap: 0.5,
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
flexWrap: "wrap"
|
|
111
|
+
},
|
|
112
|
+
children: [
|
|
113
|
+
z && /* @__PURE__ */ o.jsx(
|
|
114
|
+
u,
|
|
115
|
+
{
|
|
116
|
+
size: a,
|
|
117
|
+
variant: "plain",
|
|
118
|
+
color: "neutral",
|
|
119
|
+
onClick: () => x(1),
|
|
120
|
+
disabled: p || i === 1,
|
|
121
|
+
sx: f(),
|
|
122
|
+
children: /* @__PURE__ */ o.jsx(H, { size: m })
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ o.jsx(
|
|
126
|
+
u,
|
|
127
|
+
{
|
|
128
|
+
size: a,
|
|
129
|
+
variant: "plain",
|
|
130
|
+
color: "neutral",
|
|
131
|
+
onClick: () => x(i - 1),
|
|
132
|
+
disabled: p || i === 1,
|
|
133
|
+
sx: f(),
|
|
134
|
+
children: /* @__PURE__ */ o.jsx(I, { size: m })
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
W.map((r, t) => {
|
|
138
|
+
if (typeof r == "string" && r.startsWith("ellipsis"))
|
|
139
|
+
return /* @__PURE__ */ o.jsx(
|
|
140
|
+
B,
|
|
141
|
+
{
|
|
142
|
+
size: a,
|
|
143
|
+
variant: "plain",
|
|
144
|
+
color: "neutral",
|
|
145
|
+
disabled: !0,
|
|
146
|
+
sx: {
|
|
147
|
+
...v(!1),
|
|
148
|
+
cursor: "default",
|
|
149
|
+
"&.Mui-disabled": g ? {
|
|
150
|
+
backgroundColor: "transparent",
|
|
151
|
+
color: k.colorSchemes.dark.textDisabled,
|
|
152
|
+
opacity: 0.5
|
|
153
|
+
} : {
|
|
154
|
+
opacity: 1,
|
|
155
|
+
color: "text.secondary"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
children: "..."
|
|
159
|
+
},
|
|
160
|
+
`${r}-${t}`
|
|
161
|
+
);
|
|
162
|
+
const l = r === i;
|
|
163
|
+
return /* @__PURE__ */ o.jsx(
|
|
164
|
+
B,
|
|
165
|
+
{
|
|
166
|
+
size: a,
|
|
167
|
+
variant: l ? "solid" : "plain",
|
|
168
|
+
color: "neutral",
|
|
169
|
+
onClick: () => x(r),
|
|
170
|
+
disabled: p,
|
|
171
|
+
sx: v(l),
|
|
172
|
+
children: r
|
|
173
|
+
},
|
|
174
|
+
r
|
|
175
|
+
);
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ o.jsx(
|
|
178
|
+
u,
|
|
179
|
+
{
|
|
180
|
+
size: a,
|
|
181
|
+
variant: "plain",
|
|
182
|
+
color: "neutral",
|
|
183
|
+
onClick: () => x(i + 1),
|
|
184
|
+
disabled: p || i === e,
|
|
185
|
+
sx: f(),
|
|
186
|
+
children: /* @__PURE__ */ o.jsx(P, { size: m })
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
R && /* @__PURE__ */ o.jsx(
|
|
190
|
+
u,
|
|
191
|
+
{
|
|
192
|
+
size: a,
|
|
193
|
+
variant: "plain",
|
|
194
|
+
color: "neutral",
|
|
195
|
+
onClick: () => x(e),
|
|
196
|
+
disabled: p || i === e,
|
|
197
|
+
sx: f(),
|
|
198
|
+
children: /* @__PURE__ */ o.jsx(D, { size: m })
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
export {
|
|
206
|
+
Y as default
|
|
207
|
+
};
|
|
@@ -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,118 @@
|
|
|
1
|
+
import { j as n } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as t, Typography as a } from "@mui/joy";
|
|
3
|
+
import { useFontFamily as s, isMobile as d } from "../../../../common/src/functions/theme.js";
|
|
4
|
+
import { getBrandingClickUrl as g } from "../../../../common/src/functions/helpers.js";
|
|
5
|
+
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
const z = (e) => {
|
|
11
|
+
const l = s().secondary, x = d(), c = e.flexDirection || "column", i = g(e.primaryUrl, e.secondaryUrl, "logo");
|
|
12
|
+
if (!e.brandingLogo)
|
|
13
|
+
return null;
|
|
14
|
+
const m = () => {
|
|
15
|
+
i && window.open(i, "_blank", "noopener,noreferrer");
|
|
16
|
+
}, o = /* @__PURE__ */ n.jsx(
|
|
17
|
+
"img",
|
|
18
|
+
{
|
|
19
|
+
src: e.brandingLogo,
|
|
20
|
+
alt: "branding-logo",
|
|
21
|
+
style: {
|
|
22
|
+
maxHeight: "50px",
|
|
23
|
+
maxWidth: "100px"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
), r = i ? typeof window > "u" ? /* @__PURE__ */ n.jsx(
|
|
27
|
+
t,
|
|
28
|
+
{
|
|
29
|
+
component: "a",
|
|
30
|
+
href: i,
|
|
31
|
+
target: "_blank",
|
|
32
|
+
rel: "noopener noreferrer",
|
|
33
|
+
sx: {
|
|
34
|
+
cursor: "pointer",
|
|
35
|
+
textDecoration: "none",
|
|
36
|
+
display: "inline-flex"
|
|
37
|
+
},
|
|
38
|
+
children: o
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ n.jsx(
|
|
41
|
+
t,
|
|
42
|
+
{
|
|
43
|
+
onClick: m,
|
|
44
|
+
sx: {
|
|
45
|
+
cursor: "pointer",
|
|
46
|
+
display: "inline-flex"
|
|
47
|
+
},
|
|
48
|
+
children: o
|
|
49
|
+
}
|
|
50
|
+
) : o;
|
|
51
|
+
return e.isCentered || x ? /* @__PURE__ */ n.jsxs(
|
|
52
|
+
t,
|
|
53
|
+
{
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: c,
|
|
57
|
+
gap: "8px",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
minWidth: "180px",
|
|
60
|
+
fontSize: "1em",
|
|
61
|
+
zIndex: 1
|
|
62
|
+
},
|
|
63
|
+
children: [
|
|
64
|
+
e.label && /* @__PURE__ */ n.jsx(
|
|
65
|
+
a,
|
|
66
|
+
{
|
|
67
|
+
level: "body-sm",
|
|
68
|
+
sx: {
|
|
69
|
+
fontWeight: 400,
|
|
70
|
+
lineHeight: "166%",
|
|
71
|
+
letterSpacing: "0.4px",
|
|
72
|
+
fontSize: "1em",
|
|
73
|
+
color: e.textColor,
|
|
74
|
+
textAlign: "right",
|
|
75
|
+
fontFamily: l
|
|
76
|
+
},
|
|
77
|
+
children: e.label
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
r
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
) : /* @__PURE__ */ n.jsxs(
|
|
84
|
+
t,
|
|
85
|
+
{
|
|
86
|
+
sx: {
|
|
87
|
+
minWidth: "180px",
|
|
88
|
+
display: "flex",
|
|
89
|
+
gap: "8px",
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
zIndex: 10,
|
|
92
|
+
fontSize: "1em"
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
e.label && /* @__PURE__ */ n.jsx(
|
|
96
|
+
a,
|
|
97
|
+
{
|
|
98
|
+
level: "body-sm",
|
|
99
|
+
sx: {
|
|
100
|
+
fontWeight: 400,
|
|
101
|
+
lineHeight: "166%",
|
|
102
|
+
letterSpacing: "0.4px",
|
|
103
|
+
textAlign: "right",
|
|
104
|
+
fontSize: "1em",
|
|
105
|
+
color: e.textColor,
|
|
106
|
+
fontFamily: l
|
|
107
|
+
},
|
|
108
|
+
children: e.label
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
r
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
z as default
|
|
118
|
+
};
|