fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -86783
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { j as t } from "../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useState as C } from "react";
|
|
3
|
+
import { Tooltip as c, IconButton as l, Modal as j, ModalDialog as y, DialogContent as k, Typography as v, Box as S, Button as w } from "@mui/joy";
|
|
4
|
+
import d from "../../../../node_modules/@mui/icons-material/esm/InfoOutlined.js";
|
|
5
|
+
import P from "../../../../node_modules/@mui/icons-material/esm/Close.js";
|
|
6
|
+
import { useConstantContext as I } from "../hooks/useConstantContext.js";
|
|
7
|
+
import { ConstantsContext as R } from "../providers/ConstantsProvider.js";
|
|
8
|
+
import { useColors as B, useCornerRadius as z, useFontFamily as F, useSpacingScale as T, isMobile as H } from "../functions/theme.js";
|
|
9
|
+
import { useTranslation as M } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
10
|
+
const J = ({
|
|
11
|
+
rules: f,
|
|
12
|
+
rulesDisplay: e,
|
|
13
|
+
isOverlayVariant: h = !1
|
|
14
|
+
}) => {
|
|
15
|
+
const { t: r } = M(), { shadowRootElement: g } = I(R), o = B(), u = z(), a = F(), n = T(), m = H(), [p, s] = C(!1);
|
|
16
|
+
if (!f)
|
|
17
|
+
return null;
|
|
18
|
+
if (e != null && e.component)
|
|
19
|
+
return e.component;
|
|
20
|
+
if (((e == null ? void 0 : e.type) || "modal") === "link" && (e != null && e.url)) {
|
|
21
|
+
const i = e.target || "_blank", x = {
|
|
22
|
+
backgroundColor: "transparent",
|
|
23
|
+
color: h ? o.palette.neutral.plainColor : o.textSecondary,
|
|
24
|
+
border: "none",
|
|
25
|
+
borderRadius: "50%",
|
|
26
|
+
width: "2em",
|
|
27
|
+
height: "2em",
|
|
28
|
+
minHeight: "2em",
|
|
29
|
+
minWidth: "2em",
|
|
30
|
+
padding: 0,
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
cursor: "pointer",
|
|
35
|
+
transition: "all 0.2s ease-in-out",
|
|
36
|
+
"&: hover": {
|
|
37
|
+
backgroundColor: "transparent",
|
|
38
|
+
transform: "scale(1.05)"
|
|
39
|
+
},
|
|
40
|
+
"&:focus-visible": {
|
|
41
|
+
outline: "none"
|
|
42
|
+
},
|
|
43
|
+
"& svg": {
|
|
44
|
+
fontSize: "1.25em"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return typeof window > "u" ? /* @__PURE__ */ t.jsx(
|
|
48
|
+
c,
|
|
49
|
+
{
|
|
50
|
+
title: r("common.rules.info"),
|
|
51
|
+
placement: "right",
|
|
52
|
+
variant: "soft",
|
|
53
|
+
disablePortal: !0,
|
|
54
|
+
children: /* @__PURE__ */ t.jsx(
|
|
55
|
+
l,
|
|
56
|
+
{
|
|
57
|
+
component: "a",
|
|
58
|
+
href: e.url,
|
|
59
|
+
target: i,
|
|
60
|
+
rel: "noopener noreferrer",
|
|
61
|
+
sx: x,
|
|
62
|
+
"aria-label": r("common.rules.info"),
|
|
63
|
+
children: /* @__PURE__ */ t.jsx(d, {})
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ t.jsx(
|
|
68
|
+
c,
|
|
69
|
+
{
|
|
70
|
+
title: r("common.rules.info"),
|
|
71
|
+
placement: "right",
|
|
72
|
+
variant: "soft",
|
|
73
|
+
disablePortal: !0,
|
|
74
|
+
children: /* @__PURE__ */ t.jsx(
|
|
75
|
+
l,
|
|
76
|
+
{
|
|
77
|
+
onClick: (b) => {
|
|
78
|
+
b.stopPropagation(), window.open(e.url, i, "noopener,noreferrer");
|
|
79
|
+
},
|
|
80
|
+
sx: x,
|
|
81
|
+
"aria-label": r("common.rules.info"),
|
|
82
|
+
children: /* @__PURE__ */ t.jsx(d, {})
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
89
|
+
/* @__PURE__ */ t.jsx(
|
|
90
|
+
c,
|
|
91
|
+
{
|
|
92
|
+
title: r("common.rules.info"),
|
|
93
|
+
placement: "right",
|
|
94
|
+
variant: "soft",
|
|
95
|
+
disablePortal: !0,
|
|
96
|
+
children: /* @__PURE__ */ t.jsx(
|
|
97
|
+
l,
|
|
98
|
+
{
|
|
99
|
+
onClick: (i) => {
|
|
100
|
+
i.stopPropagation(), s(!0);
|
|
101
|
+
},
|
|
102
|
+
sx: {
|
|
103
|
+
backgroundColor: "transparent",
|
|
104
|
+
color: o.palette.neutral[500],
|
|
105
|
+
border: "none",
|
|
106
|
+
borderRadius: "50%",
|
|
107
|
+
width: "2em",
|
|
108
|
+
height: "2em",
|
|
109
|
+
minHeight: "2em",
|
|
110
|
+
minWidth: "2em",
|
|
111
|
+
padding: 0,
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
justifyContent: "center",
|
|
115
|
+
cursor: "pointer",
|
|
116
|
+
transition: "all 0.2s ease-in-out",
|
|
117
|
+
"&:hover": {
|
|
118
|
+
backgroundColor: "transparent",
|
|
119
|
+
color: o.palette.neutral[500],
|
|
120
|
+
transform: "scale(1.05)"
|
|
121
|
+
},
|
|
122
|
+
"&:focus-visible": {
|
|
123
|
+
outline: "none"
|
|
124
|
+
},
|
|
125
|
+
"& svg": {
|
|
126
|
+
fontSize: "1.25em"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"aria-label": r("common.rules.info"),
|
|
130
|
+
children: /* @__PURE__ */ t.jsx(d, {})
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ t.jsx(
|
|
136
|
+
j,
|
|
137
|
+
{
|
|
138
|
+
open: p,
|
|
139
|
+
onClose: () => s(!1),
|
|
140
|
+
container: g,
|
|
141
|
+
sx: { zIndex: 1300 },
|
|
142
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
143
|
+
y,
|
|
144
|
+
{
|
|
145
|
+
sx: {
|
|
146
|
+
width: "100%",
|
|
147
|
+
maxWidth: m ? "90vw" : "600px",
|
|
148
|
+
maxHeight: m ? "90vh" : "80vh",
|
|
149
|
+
p: m ? 2 : 3,
|
|
150
|
+
borderRadius: u.md,
|
|
151
|
+
backgroundColor: o.surface
|
|
152
|
+
},
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ t.jsx(
|
|
155
|
+
l,
|
|
156
|
+
{
|
|
157
|
+
onClick: (i) => {
|
|
158
|
+
i.stopPropagation(), s(!1);
|
|
159
|
+
},
|
|
160
|
+
sx: {
|
|
161
|
+
position: "absolute",
|
|
162
|
+
top: n.sm,
|
|
163
|
+
right: n.sm,
|
|
164
|
+
backgroundColor: "transparent",
|
|
165
|
+
color: o.textSecondary,
|
|
166
|
+
border: "none",
|
|
167
|
+
borderRadius: "50%",
|
|
168
|
+
width: "2em",
|
|
169
|
+
height: "2em",
|
|
170
|
+
minHeight: "2em",
|
|
171
|
+
minWidth: "2em",
|
|
172
|
+
padding: 0,
|
|
173
|
+
display: "flex",
|
|
174
|
+
alignItems: "center",
|
|
175
|
+
justifyContent: "center",
|
|
176
|
+
cursor: "pointer",
|
|
177
|
+
transition: "all 0.2s ease-in-out",
|
|
178
|
+
zIndex: 1e3,
|
|
179
|
+
"&:hover": {
|
|
180
|
+
backgroundColor: `${o.textSecondary}15`,
|
|
181
|
+
color: o.textPrimary,
|
|
182
|
+
transform: "scale(1.05)"
|
|
183
|
+
},
|
|
184
|
+
"&:focus-visible": {
|
|
185
|
+
outline: "none"
|
|
186
|
+
},
|
|
187
|
+
"& svg": {
|
|
188
|
+
fontSize: "1.25em"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
children: /* @__PURE__ */ t.jsx(P, {})
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
/* @__PURE__ */ t.jsxs(
|
|
195
|
+
k,
|
|
196
|
+
{
|
|
197
|
+
sx: {
|
|
198
|
+
display: "flex",
|
|
199
|
+
flexDirection: "column",
|
|
200
|
+
gap: n.md
|
|
201
|
+
},
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ t.jsx(
|
|
204
|
+
v,
|
|
205
|
+
{
|
|
206
|
+
sx: {
|
|
207
|
+
fontFamily: a.primary,
|
|
208
|
+
fontWeight: 600,
|
|
209
|
+
fontSize: "1.25em",
|
|
210
|
+
lineHeight: 1.2,
|
|
211
|
+
color: o.textPrimary,
|
|
212
|
+
textAlign: "center",
|
|
213
|
+
marginBottom: n.sm
|
|
214
|
+
},
|
|
215
|
+
children: r("common.rules.title")
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
/* @__PURE__ */ t.jsx(
|
|
219
|
+
S,
|
|
220
|
+
{
|
|
221
|
+
sx: {
|
|
222
|
+
fontFamily: a.secondary,
|
|
223
|
+
fontSize: "1em",
|
|
224
|
+
lineHeight: 1.5,
|
|
225
|
+
color: o.textSecondary,
|
|
226
|
+
overflow: "auto",
|
|
227
|
+
// Custom scrollbar styling for dark theme
|
|
228
|
+
"&::-webkit-scrollbar": {
|
|
229
|
+
width: "8px"
|
|
230
|
+
},
|
|
231
|
+
"&::-webkit-scrollbar-track": {
|
|
232
|
+
backgroundColor: "transparent"
|
|
233
|
+
},
|
|
234
|
+
"&::-webkit-scrollbar-thumb": {
|
|
235
|
+
backgroundColor: o.secondaryContainer,
|
|
236
|
+
borderRadius: "4px",
|
|
237
|
+
"&:hover": {
|
|
238
|
+
backgroundColor: o.textSecondary
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
// Firefox scrollbar styling
|
|
242
|
+
scrollbarWidth: "thin",
|
|
243
|
+
scrollbarColor: `${o.secondaryContainer} transparent`,
|
|
244
|
+
"& p": {
|
|
245
|
+
marginBottom: n.sm
|
|
246
|
+
},
|
|
247
|
+
"& ul, & ol": {
|
|
248
|
+
marginLeft: n.md,
|
|
249
|
+
marginBottom: n.sm
|
|
250
|
+
},
|
|
251
|
+
"& li": {
|
|
252
|
+
marginBottom: n.xs
|
|
253
|
+
},
|
|
254
|
+
"& h1, & h2, & h3, & h4, & h5, & h6": {
|
|
255
|
+
fontFamily: a.primary,
|
|
256
|
+
color: o.textPrimary,
|
|
257
|
+
marginTop: n.md,
|
|
258
|
+
marginBottom: n.sm
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
dangerouslySetInnerHTML: { __html: f }
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ t.jsx(
|
|
265
|
+
w,
|
|
266
|
+
{
|
|
267
|
+
variant: "outlined",
|
|
268
|
+
onClick: (i) => {
|
|
269
|
+
i.stopPropagation(), s(!1);
|
|
270
|
+
},
|
|
271
|
+
sx: {
|
|
272
|
+
marginTop: n.md,
|
|
273
|
+
borderColor: o.textPrimary,
|
|
274
|
+
color: o.textPrimary,
|
|
275
|
+
fontFamily: a.secondary,
|
|
276
|
+
fontSize: "0.875em",
|
|
277
|
+
borderRadius: u.sm,
|
|
278
|
+
"&:hover": {
|
|
279
|
+
borderColor: o.textPrimary,
|
|
280
|
+
color: o.textPrimary,
|
|
281
|
+
backgroundColor: o.surfaceVariant
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
children: r("common.rules.close")
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
] });
|
|
296
|
+
};
|
|
297
|
+
export {
|
|
298
|
+
J as default
|
|
299
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as o } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as e, Typography as l } from "@mui/joy";
|
|
3
|
+
import { useColors as s, useSpacingScale as y, useFontFamily as a } from "../../functions/theme.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
notFoundTitle: c,
|
|
6
|
+
notFoundMessage: x
|
|
7
|
+
}) => {
|
|
8
|
+
var r, i;
|
|
9
|
+
const t = (i = (r = s().palette) == null ? void 0 : r.danger) == null ? void 0 : i.plainColor, d = s().textSecondary, m = y(), n = a().primary, p = a().secondary;
|
|
10
|
+
return /* @__PURE__ */ o.jsxs(
|
|
11
|
+
e,
|
|
12
|
+
{
|
|
13
|
+
sx: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
width: "100%",
|
|
19
|
+
minHeight: "300px",
|
|
20
|
+
padding: "32px 24px",
|
|
21
|
+
textAlign: "center"
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o.jsx(
|
|
25
|
+
e,
|
|
26
|
+
{
|
|
27
|
+
sx: {
|
|
28
|
+
width: "80px",
|
|
29
|
+
height: "80px",
|
|
30
|
+
borderRadius: "50%",
|
|
31
|
+
backgroundColor: `${t}15`,
|
|
32
|
+
// 15% opacity
|
|
33
|
+
display: "flex",
|
|
34
|
+
alignItems: "center",
|
|
35
|
+
justifyContent: "center",
|
|
36
|
+
marginBottom: "24px"
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ o.jsx(
|
|
39
|
+
e,
|
|
40
|
+
{
|
|
41
|
+
sx: {
|
|
42
|
+
fontSize: "32px",
|
|
43
|
+
color: t,
|
|
44
|
+
fontWeight: "bold",
|
|
45
|
+
fontFamily: n
|
|
46
|
+
},
|
|
47
|
+
children: "?"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ o.jsx(
|
|
53
|
+
l,
|
|
54
|
+
{
|
|
55
|
+
level: "h4",
|
|
56
|
+
sx: {
|
|
57
|
+
color: t,
|
|
58
|
+
marginBottom: m.xs,
|
|
59
|
+
fontWeight: "600",
|
|
60
|
+
fontFamily: n
|
|
61
|
+
},
|
|
62
|
+
children: c
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ o.jsx(
|
|
66
|
+
l,
|
|
67
|
+
{
|
|
68
|
+
level: "body-md",
|
|
69
|
+
sx: {
|
|
70
|
+
color: d,
|
|
71
|
+
lineHeight: 1.5,
|
|
72
|
+
fontFamily: p
|
|
73
|
+
},
|
|
74
|
+
children: x
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
u as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as n, Typography as s, Button as E } from "@mui/joy";
|
|
3
|
+
import { useSpacingScale as F, useInternalTheme as R, isMobile as v, useImageBackgroundGradient as P } from "../../../../functions/theme.js";
|
|
4
|
+
import { extractBrandingProperties as V, sanitizeBackgroundUrl as M, stripHtmlTags as O } from "../../../../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 { WidgetTemplate as l } from "../../../../enums/enums.js";
|
|
8
|
+
import z from "../../../Rules.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "../../../../providers/ConstantsProvider.js";
|
|
11
|
+
import L from "../../../AlertMessage.js";
|
|
12
|
+
import D from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
|
|
13
|
+
import { createStyles as G } from "./OverlayApiErrorSkeleton.styles.js";
|
|
14
|
+
import { useImageVariant as U } from "../../../../hooks/useImageVariant.js";
|
|
15
|
+
import "../../../../providers/ContainerProvider.js";
|
|
16
|
+
import { useTranslation as Y } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
17
|
+
const oe = (t) => {
|
|
18
|
+
const c = F(), o = R(), m = v(), { t: a } = Y(), d = P(
|
|
19
|
+
l.OVERLAY
|
|
20
|
+
), { brandingImage: x, brandingColors: i, brandingLogo: g } = V(t.entity.branding || null), u = x || U(
|
|
21
|
+
{
|
|
22
|
+
images: t.entity.images || null,
|
|
23
|
+
imagePlaceholder: t.defaultImagePlaceholderUrl || ""
|
|
24
|
+
},
|
|
25
|
+
l.OVERLAY
|
|
26
|
+
), h = M(u), y = (i == null ? void 0 : i.contentColor) || o.colorSchemes.dark.textColor, f = o.customFontFamily.dark.primary, j = o.customFontFamily.dark.secondary, k = o.customRadius.dark, S = o.border.dark.size, A = (i == null ? void 0 : i.backgroundColor) || o.colorSchemes.dark.surfaceVariant, C = o.colorSchemes.dark.onSurface, T = o.colorSchemes.dark.surfaceVariant, b = o.colorSchemes.dark.textPrimary, B = t.isApiError ? a("common.error.title") : a("common.authentication.accessRequired"), I = t.isApiError ? t.apiErrorMessage || a("common.error.message") : a("common.authentication.invalidOrMissingAuth"), r = G({
|
|
27
|
+
spacingScale: c,
|
|
28
|
+
brandingColors: i,
|
|
29
|
+
secondaryColor: y,
|
|
30
|
+
fontFamilyPrimary: f,
|
|
31
|
+
fontFamilySecondary: j,
|
|
32
|
+
borderRadius: k,
|
|
33
|
+
borderSize: S,
|
|
34
|
+
darkTextColor: o.colorSchemes.dark.textColor,
|
|
35
|
+
backgroundImage: h,
|
|
36
|
+
imageBackgroundGradient: d,
|
|
37
|
+
contentBgColor: A,
|
|
38
|
+
onSurfaceColor: C,
|
|
39
|
+
surfaceVariantColor: T,
|
|
40
|
+
textPrimary: b,
|
|
41
|
+
isMobile: m
|
|
42
|
+
}), p = () => t.isApiError ? /* @__PURE__ */ e.jsx(n, { sx: r.ctaSection, children: /* @__PURE__ */ e.jsx(n, { sx: r.buttonsContainer, children: /* @__PURE__ */ e.jsx(E, { sx: r.tryAgainButton, onClick: t.toggleTryAgain, children: /* @__PURE__ */ e.jsxs(n, { sx: r.tryAgainButtonContent, children: [
|
|
43
|
+
/* @__PURE__ */ e.jsx(D, { sx: r.tryAgainIcon }),
|
|
44
|
+
/* @__PURE__ */ e.jsx(s, { sx: r.tryAgainText, children: t.tryAgainButtonText })
|
|
45
|
+
] }) }) }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
46
|
+
return /* @__PURE__ */ e.jsxs(n, { sx: r.mainContainer, children: [
|
|
47
|
+
/* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(n, { sx: r.headlineSection, children: /* @__PURE__ */ e.jsx(n, { sx: r.headlineContent, children: /* @__PURE__ */ e.jsxs(n, { sx: r.headlineContentInner, children: [
|
|
48
|
+
/* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "center", gap: c["3xs"] }, children: [
|
|
49
|
+
/* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: r.headlineText, children: t.headline }),
|
|
50
|
+
/* @__PURE__ */ e.jsx(
|
|
51
|
+
z,
|
|
52
|
+
{
|
|
53
|
+
rulesDisplay: t.rulesDisplay,
|
|
54
|
+
isOverlayVariant: !0,
|
|
55
|
+
rules: t.entity.rules || ""
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ e.jsxs(n, { sx: r.contentContainer, children: [
|
|
60
|
+
/* @__PURE__ */ e.jsx(s, { level: "h4", sx: r.titleText, children: t.entity.title }),
|
|
61
|
+
/* @__PURE__ */ e.jsx(s, { level: "body-lg", sx: r.descriptionText, children: O(t.entity.description) })
|
|
62
|
+
] })
|
|
63
|
+
] }) }) }) }),
|
|
64
|
+
/* @__PURE__ */ e.jsxs(n, { sx: r.bottomSection, children: [
|
|
65
|
+
/* @__PURE__ */ e.jsx(
|
|
66
|
+
L,
|
|
67
|
+
{
|
|
68
|
+
variant: "error",
|
|
69
|
+
title: B,
|
|
70
|
+
message: I
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
p(),
|
|
74
|
+
g ? /* @__PURE__ */ e.jsx(n, { sx: r.footerContainer, children: t.renderPresentedBy(o.colorSchemes.dark.textColor) }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
|
|
75
|
+
] })
|
|
76
|
+
] });
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
oe as default
|
|
80
|
+
};
|
package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
const n = (e) => {
|
|
2
|
+
var t;
|
|
3
|
+
return {
|
|
4
|
+
// Main container with background overlay
|
|
5
|
+
mainContainer: {
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
gap: "40px",
|
|
10
|
+
p: e.spacingScale.xl,
|
|
11
|
+
boxShadow: "md",
|
|
12
|
+
border: (t = e.brandingColors) != null && t.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
13
|
+
overflow: "hidden",
|
|
14
|
+
backgroundImage: e.backgroundImage,
|
|
15
|
+
backgroundSize: "cover",
|
|
16
|
+
backgroundPosition: "center",
|
|
17
|
+
position: "relative",
|
|
18
|
+
borderRadius: e.borderRadius.md,
|
|
19
|
+
minHeight: "250px",
|
|
20
|
+
"&::before": {
|
|
21
|
+
content: '""',
|
|
22
|
+
position: "absolute",
|
|
23
|
+
background: e.imageBackgroundGradient,
|
|
24
|
+
top: 0,
|
|
25
|
+
left: 0,
|
|
26
|
+
right: 0,
|
|
27
|
+
bottom: 0,
|
|
28
|
+
borderRadius: "inherit",
|
|
29
|
+
zIndex: 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
// Headline section wrapper
|
|
33
|
+
headlineSection: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
justifyContent: "space-between",
|
|
36
|
+
flex: "1 0 0",
|
|
37
|
+
alignSelf: "stretch"
|
|
38
|
+
},
|
|
39
|
+
// Headline content container
|
|
40
|
+
headlineContent: {
|
|
41
|
+
display: "flex",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
alignItems: "flex-start",
|
|
44
|
+
flex: "1 0 0",
|
|
45
|
+
gap: "16px"
|
|
46
|
+
},
|
|
47
|
+
// Headline content with z-index
|
|
48
|
+
headlineContentInner: {
|
|
49
|
+
zIndex: 10
|
|
50
|
+
},
|
|
51
|
+
// Headline typography
|
|
52
|
+
headlineText: {
|
|
53
|
+
fontWeight: 500,
|
|
54
|
+
lineHeight: "166%",
|
|
55
|
+
letterSpacing: "1px",
|
|
56
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
57
|
+
color: e.secondaryColor,
|
|
58
|
+
opacity: "70%",
|
|
59
|
+
textTransform: "uppercase",
|
|
60
|
+
fontFamily: e.fontFamilySecondary,
|
|
61
|
+
fontSize: "0.75em"
|
|
62
|
+
},
|
|
63
|
+
// Content container
|
|
64
|
+
contentContainer: {
|
|
65
|
+
display: "flex",
|
|
66
|
+
flexDirection: "column",
|
|
67
|
+
gap: e.spacingScale["3xs"]
|
|
68
|
+
},
|
|
69
|
+
// Title typography
|
|
70
|
+
titleText: {
|
|
71
|
+
fontWeight: 700,
|
|
72
|
+
lineHeight: "133%",
|
|
73
|
+
letterSpacing: "0px",
|
|
74
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
75
|
+
fontSize: "1.5em",
|
|
76
|
+
color: e.darkTextColor,
|
|
77
|
+
fontFamily: e.fontFamilyPrimary
|
|
78
|
+
},
|
|
79
|
+
// Description typography
|
|
80
|
+
descriptionText: {
|
|
81
|
+
fontWeight: 400,
|
|
82
|
+
lineHeight: "140%",
|
|
83
|
+
letterSpacing: "0.15px",
|
|
84
|
+
fontSize: "1.25em",
|
|
85
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
86
|
+
color: e.secondaryColor,
|
|
87
|
+
opacity: "70%",
|
|
88
|
+
fontFamily: e.fontFamilyPrimary
|
|
89
|
+
},
|
|
90
|
+
// Bottom section container
|
|
91
|
+
bottomSection: {
|
|
92
|
+
display: "flex",
|
|
93
|
+
flexDirection: "column",
|
|
94
|
+
gap: "24px",
|
|
95
|
+
zIndex: 1
|
|
96
|
+
},
|
|
97
|
+
// Footer container
|
|
98
|
+
footerContainer: {
|
|
99
|
+
display: "flex",
|
|
100
|
+
alignItems: "center",
|
|
101
|
+
justifyContent: "space-between",
|
|
102
|
+
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
103
|
+
gap: e.spacingScale.md
|
|
104
|
+
},
|
|
105
|
+
ctaSection: {
|
|
106
|
+
borderRadius: e.borderRadius.md,
|
|
107
|
+
py: e.spacingScale.md,
|
|
108
|
+
display: "flex",
|
|
109
|
+
flexDirection: "column",
|
|
110
|
+
alignItems: "center",
|
|
111
|
+
alignSelf: "stretch",
|
|
112
|
+
gap: e.spacingScale.md,
|
|
113
|
+
backdropFilter: "blur(4px)",
|
|
114
|
+
position: "relative",
|
|
115
|
+
"&::before": {
|
|
116
|
+
content: '""',
|
|
117
|
+
position: "absolute",
|
|
118
|
+
top: 0,
|
|
119
|
+
left: 0,
|
|
120
|
+
right: 0,
|
|
121
|
+
bottom: 0,
|
|
122
|
+
backgroundColor: e.contentBgColor,
|
|
123
|
+
opacity: 0.25,
|
|
124
|
+
borderRadius: "inherit",
|
|
125
|
+
zIndex: 0,
|
|
126
|
+
backdropFilter: "blur(4px)"
|
|
127
|
+
},
|
|
128
|
+
"& > *": {
|
|
129
|
+
position: "relative",
|
|
130
|
+
zIndex: 1
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
// Buttons container
|
|
134
|
+
buttonsContainer: {
|
|
135
|
+
display: "flex",
|
|
136
|
+
flexDirection: "column",
|
|
137
|
+
gap: e.spacingScale.md
|
|
138
|
+
},
|
|
139
|
+
// Try again button
|
|
140
|
+
tryAgainButton: {
|
|
141
|
+
display: "flex",
|
|
142
|
+
minHeight: "48px",
|
|
143
|
+
py: "12px",
|
|
144
|
+
pr: "24px",
|
|
145
|
+
pl: "16px",
|
|
146
|
+
flexDirection: "column",
|
|
147
|
+
justifyContent: "center",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
gap: "8px",
|
|
150
|
+
borderRadius: e.borderRadius.xl,
|
|
151
|
+
bgcolor: e.onSurfaceColor,
|
|
152
|
+
"&:hover": {
|
|
153
|
+
bgcolor: e.surfaceVariantColor
|
|
154
|
+
},
|
|
155
|
+
fontSize: "0.9375em"
|
|
156
|
+
},
|
|
157
|
+
// Try again button content
|
|
158
|
+
tryAgainButtonContent: {
|
|
159
|
+
display: "flex",
|
|
160
|
+
justifyContent: "center",
|
|
161
|
+
alignItems: "center",
|
|
162
|
+
gap: "8px",
|
|
163
|
+
alignSelf: "stretch"
|
|
164
|
+
},
|
|
165
|
+
// Try again icon
|
|
166
|
+
tryAgainIcon: {
|
|
167
|
+
display: "flex",
|
|
168
|
+
width: "24px",
|
|
169
|
+
height: "24px",
|
|
170
|
+
justifyContent: "center",
|
|
171
|
+
alignItems: "center",
|
|
172
|
+
color: e.textPrimary
|
|
173
|
+
},
|
|
174
|
+
// Try again text
|
|
175
|
+
tryAgainText: {
|
|
176
|
+
color: e.textPrimary,
|
|
177
|
+
textAlign: "center",
|
|
178
|
+
fontFamily: e.fontFamilyPrimary,
|
|
179
|
+
fontSize: "0.9375em",
|
|
180
|
+
fontStyle: "normal",
|
|
181
|
+
fontWeight: 500,
|
|
182
|
+
lineHeight: "24px",
|
|
183
|
+
letterSpacing: "0.46px",
|
|
184
|
+
textTransform: "uppercase"
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
export {
|
|
189
|
+
n as createStyles
|
|
190
|
+
};
|