fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC6
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 +4847 -3
- package/CollectLead.js +1253 -3
- package/EventGamePlay.js +7595 -3
- package/MatchQuizPlay.js +11002 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4167 -3
- package/chunks/CollectLeadForm-DtmR2Vuf.js +844 -0
- package/chunks/Error-DhQL89pn.js +120 -0
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +2425 -0
- package/chunks/OverlayLeadAfterCollection-DnqztPJ5.js +899 -0
- package/chunks/OverlayScoreStateSkeleton-C9FUhcnd.js +147 -0
- package/chunks/Portal-BWqqFvVm.js +13823 -0
- package/package.json +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -4
- package/_virtual/index2.js +0 -4
- package/_virtual/index3.js +0 -4
- package/_virtual/jsx-runtime.js +0 -4
- package/_virtual/react-is.development.js +0 -4
- package/_virtual/react-is.development2.js +0 -4
- package/_virtual/react-is.production.min.js +0 -4
- package/_virtual/react-is.production.min2.js +0 -4
- package/_virtual/react-jsx-runtime.development.js +0 -4
- package/_virtual/react-jsx-runtime.production.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
- package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
- package/packages/classic-quiz-play/src/constants/constants.js +0 -4
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
- package/packages/classic-quiz-play/src/index.js +0 -4
- package/packages/classic-quiz-play/src/main.js +0 -7
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/collect-lead/src/components/CollectLead.js +0 -18
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
- package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
- package/packages/collect-lead/src/index.js +0 -4
- package/packages/collect-lead/src/main.js +0 -39
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
- package/packages/common/src/components/AdditionalCTA.js +0 -24
- package/packages/common/src/components/AlertMessage.js +0 -88
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
- package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
- package/packages/common/src/components/Leads/LeadForm.js +0 -498
- package/packages/common/src/components/Portal.js +0 -62
- package/packages/common/src/components/Rules.js +0 -299
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
- package/packages/common/src/components/Spinner.js +0 -36
- package/packages/common/src/constants/constants.js +0 -457
- package/packages/common/src/enums/enums.js +0 -4
- package/packages/common/src/functions/helpers.js +0 -58
- package/packages/common/src/functions/i18n.js +0 -69
- package/packages/common/src/functions/theme.js +0 -301
- package/packages/common/src/hooks/useConstantContext.js +0 -10
- package/packages/common/src/hooks/useImageUrl.js +0 -8
- package/packages/common/src/hooks/useImageVariant.js +0 -11
- package/packages/common/src/hooks/useLeadForm.js +0 -129
- package/packages/common/src/hooks/useThemeMode.js +0 -30
- package/packages/common/src/locales/bg.json.js +0 -363
- package/packages/common/src/locales/de.json.js +0 -362
- package/packages/common/src/locales/el.json.js +0 -362
- package/packages/common/src/locales/en.json.js +0 -368
- package/packages/common/src/locales/es.json.js +0 -362
- package/packages/common/src/locales/fr-be.json.js +0 -362
- package/packages/common/src/locales/fr.json.js +0 -362
- package/packages/common/src/locales/it.json.js +0 -362
- package/packages/common/src/locales/pl.json.js +0 -362
- package/packages/common/src/locales/pt-br.json.js +0 -362
- package/packages/common/src/locales/pt.json.js +0 -362
- package/packages/common/src/locales/ro.json.js +0 -362
- package/packages/common/src/locales/sk.json.js +0 -362
- package/packages/common/src/locales/sr.json.js +0 -362
- package/packages/common/src/providers/ConstantsProvider.js +0 -29
- package/packages/common/src/providers/ContainerProvider.js +0 -35
- package/packages/common/src/providers/FontProvider.js +0 -25
- package/packages/common/src/providers/ThemeProvider.js +0 -80
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/event-game-play/src/assets/school.svg.js +0 -4
- package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
- package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
- package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
- package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
- package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
- package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
- package/packages/event-game-play/src/helpers/helpers.js +0 -11
- package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
- package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
- package/packages/event-game-play/src/index.js +0 -4
- package/packages/event-game-play/src/main.js +0 -7
- package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
- package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
- package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
- package/packages/match-quiz-play/src/index.js +0 -4
- package/packages/match-quiz-play/src/main.js +0 -7
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
- package/packages/poll-vote/src/components/PollNotFound.js +0 -23
- package/packages/poll-vote/src/components/PollVote.js +0 -270
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
- package/packages/poll-vote/src/components/Shared/Button.js +0 -76
- package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
- package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
- package/packages/poll-vote/src/hooks/usePollById.js +0 -16
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
- package/packages/poll-vote/src/index.js +0 -4
- package/packages/poll-vote/src/main.js +0 -7
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as g } from "react";
|
|
3
|
-
import { Box as s, Typography as m } from "@mui/joy";
|
|
4
|
-
import { useColors as f, useCornerRadius as j, useFontFamily as S, useSpacingScale as v, isMobile as w } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
import { createStyles as L } from "./BooleanSelector.styles.js";
|
|
10
|
-
import { useTranslation as b } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
11
|
-
const N = (i) => {
|
|
12
|
-
const { t: l } = b(), o = f(), C = j(), a = S(), u = v(), n = w(), [c, x] = g(
|
|
13
|
-
i.prediction
|
|
14
|
-
), t = L({
|
|
15
|
-
spacingScale: u,
|
|
16
|
-
borderRadius: C,
|
|
17
|
-
fontFamilyPrimary: a.primary,
|
|
18
|
-
fontFamilySecondary: a.secondary,
|
|
19
|
-
textPrimary: o.textPrimary,
|
|
20
|
-
textSecondary: o.textSecondary,
|
|
21
|
-
neutralSoftBg: o.palette.neutral.softBg,
|
|
22
|
-
neutralOutlinedBorder: o.palette.neutral.outlinedBorder,
|
|
23
|
-
neutralPlainHoverBg: o.palette.neutral.plainHoverBg,
|
|
24
|
-
primary: o.palette.primary.plainColor,
|
|
25
|
-
onPrimary: o.palette.primary.onPrimary,
|
|
26
|
-
successMain: o.palette.success.plainColor,
|
|
27
|
-
dangerMain: o.palette.danger.plainColor,
|
|
28
|
-
isMobile: n
|
|
29
|
-
}), p = (r) => {
|
|
30
|
-
x(r), i.onSelectionChange(r);
|
|
31
|
-
}, d = {
|
|
32
|
-
yes: l("eventGame.fixtures.yes"),
|
|
33
|
-
no: l("eventGame.fixtures.no")
|
|
34
|
-
}, y = ({ isSelected: r }) => /* @__PURE__ */ e.jsxs(s, { sx: t.optionContainer, children: [
|
|
35
|
-
/* @__PURE__ */ e.jsx(
|
|
36
|
-
s,
|
|
37
|
-
{
|
|
38
|
-
sx: {
|
|
39
|
-
...t.optionIcon,
|
|
40
|
-
...r ? t.selectedYesIcon : {},
|
|
41
|
-
cursor: "pointer"
|
|
42
|
-
},
|
|
43
|
-
onClick: () => p(!0),
|
|
44
|
-
children: /* @__PURE__ */ e.jsx(
|
|
45
|
-
"svg",
|
|
46
|
-
{
|
|
47
|
-
width: n ? "20" : "24",
|
|
48
|
-
height: n ? "20" : "24",
|
|
49
|
-
viewBox: "0 0 24 24",
|
|
50
|
-
fill: "none",
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
children: /* @__PURE__ */ e.jsx(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
d: "M7 22H4C3.46957 22 2.96086 21.7893 2.58579 21.4142C2.21071 21.0391 2 20.5304 2 20V13C2 12.4696 2.21071 11.9609 2.58579 11.5858C2.96086 11.2107 3.46957 11 4 11H7M14 9V5C14 4.20435 13.6839 3.44129 13.1213 2.87868C12.5587 2.31607 11.7956 2 11 2L7 11V22H18.28C18.7623 22.0055 19.2304 21.8364 19.5979 21.524C19.9654 21.2116 20.2077 20.7769 20.28 20.3L21.66 11.3C21.7035 11.0134 21.6842 10.7207 21.6033 10.4423C21.5225 10.1638 21.3821 9.90629 21.1919 9.68751C21.0016 9.46873 20.7661 9.29393 20.5016 9.17522C20.2371 9.0565 19.9499 8.99672 19.66 9H14Z",
|
|
56
|
-
stroke: "currentColor",
|
|
57
|
-
strokeWidth: "2",
|
|
58
|
-
strokeLinecap: "round",
|
|
59
|
-
strokeLinejoin: "round"
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ e.jsx(m, { level: "body-sm", sx: t.optionLabel, children: d.yes })
|
|
67
|
-
] }), h = ({ isSelected: r }) => /* @__PURE__ */ e.jsxs(s, { sx: t.optionContainer, children: [
|
|
68
|
-
/* @__PURE__ */ e.jsx(
|
|
69
|
-
s,
|
|
70
|
-
{
|
|
71
|
-
sx: {
|
|
72
|
-
...t.optionIcon,
|
|
73
|
-
...r ? t.selectedNoIcon : {},
|
|
74
|
-
cursor: "pointer"
|
|
75
|
-
},
|
|
76
|
-
onClick: () => p(!1),
|
|
77
|
-
children: /* @__PURE__ */ e.jsx(
|
|
78
|
-
"svg",
|
|
79
|
-
{
|
|
80
|
-
width: n ? "20" : "24",
|
|
81
|
-
height: n ? "20" : "24",
|
|
82
|
-
viewBox: "0 0 24 24",
|
|
83
|
-
fill: "none",
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
children: /* @__PURE__ */ e.jsx(
|
|
86
|
-
"path",
|
|
87
|
-
{
|
|
88
|
-
d: "M17 2H20C20.5304 2 21.0391 2.21071 21.4142 2.58579C21.7893 2.96086 22 3.46957 22 4V11C22 11.5304 21.7893 12.0391 21.4142 12.4142C21.0391 12.7893 20.5304 13 20 13H17M10 15V19C10 19.7956 10.3161 20.5587 10.8787 21.1213C11.4413 21.6839 12.2044 22 13 22L17 13V2H5.72C5.23766 1.99448 4.76962 2.16361 4.40206 2.47596C4.03451 2.78831 3.79232 3.22305 3.72 3.7L2.34 12.7C2.29648 12.9866 2.31583 13.2793 2.39668 13.5577C2.47753 13.8362 2.61793 14.0937 2.80816 14.3125C2.99839 14.5313 3.23394 14.7061 3.49843 14.8248C3.76291 14.9435 4.05011 15.0033 4.34 15H10Z",
|
|
89
|
-
stroke: "currentColor",
|
|
90
|
-
strokeWidth: "2",
|
|
91
|
-
strokeLinecap: "round",
|
|
92
|
-
strokeLinejoin: "round"
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
/* @__PURE__ */ e.jsx(m, { level: "body-sm", sx: t.optionLabel, children: d.no })
|
|
100
|
-
] });
|
|
101
|
-
return /* @__PURE__ */ e.jsxs(s, { sx: t.container, children: [
|
|
102
|
-
/* @__PURE__ */ e.jsx(y, { isSelected: c === !0 }),
|
|
103
|
-
/* @__PURE__ */ e.jsx(h, { isSelected: c === !1 })
|
|
104
|
-
] });
|
|
105
|
-
};
|
|
106
|
-
export {
|
|
107
|
-
N as default
|
|
108
|
-
};
|
package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { createOptionIconStyles as t } from "../shared.styles.js";
|
|
2
|
-
const a = (e) => {
|
|
3
|
-
const n = t({
|
|
4
|
-
spacingScale: e.spacingScale,
|
|
5
|
-
neutralSoftBg: e.neutralSoftBg,
|
|
6
|
-
neutralPlainHoverBg: e.neutralPlainHoverBg,
|
|
7
|
-
isMobile: e.isMobile,
|
|
8
|
-
primary: e.primary,
|
|
9
|
-
onPrimary: e.onPrimary,
|
|
10
|
-
successMain: e.successMain,
|
|
11
|
-
dangerMain: e.dangerMain
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
container: {
|
|
15
|
-
display: "flex",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
justifyContent: "center",
|
|
18
|
-
gap: e.isMobile ? e.spacingScale.xl : e.spacingScale["2xl"],
|
|
19
|
-
pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
20
|
-
},
|
|
21
|
-
optionContainer: {
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: "column",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
gap: e.spacingScale.sm
|
|
26
|
-
},
|
|
27
|
-
optionIcon: {
|
|
28
|
-
...n.base,
|
|
29
|
-
color: e.textSecondary
|
|
30
|
-
},
|
|
31
|
-
selectedYesIcon: n.selectedYes,
|
|
32
|
-
selectedNoIcon: n.selectedNo,
|
|
33
|
-
optionLabel: {
|
|
34
|
-
fontFamily: e.fontFamilySecondary,
|
|
35
|
-
color: e.textPrimary,
|
|
36
|
-
fontSize: e.isMobile ? "0.875em" : "1em",
|
|
37
|
-
fontWeight: 600,
|
|
38
|
-
textAlign: "center"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
a as createStyles
|
|
44
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as r, Typography as v } from "@mui/joy";
|
|
3
|
-
import { useColors as j, isExtraSmall as p, useCornerRadius as C, useFontFamily as b, useSpacingScale as D } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import { useConstantContext as F } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import P from "./NumberSelector.js";
|
|
11
|
-
import { createStyles as E } from "./NumberFixture.styles.js";
|
|
12
|
-
import O from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
-
import { EventGameConstantsContext as V } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
-
import { useTranslation as T } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
-
const Q = (t) => {
|
|
16
|
-
var u, d;
|
|
17
|
-
const { t: a } = T(), s = j(), S = p(), g = C(), l = b(), m = D(), { points: h } = F(V), x = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : S, o = E({
|
|
18
|
-
spacingScale: m,
|
|
19
|
-
borderRadius: g,
|
|
20
|
-
fontFamilyPrimary: l.primary,
|
|
21
|
-
fontFamilySecondary: l.secondary,
|
|
22
|
-
textPrimary: s.textPrimary,
|
|
23
|
-
textSecondary: s.textSecondary,
|
|
24
|
-
isExtraSmall: x
|
|
25
|
-
}), c = (() => {
|
|
26
|
-
if (!t.validOutcomes) return null;
|
|
27
|
-
const { min: i, max: n } = t.validOutcomes, f = i != null, y = n != null;
|
|
28
|
-
return f && y ? a("eventGame.fixtures.numberRangeDescription", { min: i, max: n }) : f ? a("eventGame.fixtures.numberMinDescription", { min: i }) : y ? a("eventGame.fixtures.numberMaxDescription", { max: n }) : null;
|
|
29
|
-
})();
|
|
30
|
-
return /* @__PURE__ */ e.jsxs(r, { sx: o.container, children: [
|
|
31
|
-
/* @__PURE__ */ e.jsxs(
|
|
32
|
-
r,
|
|
33
|
-
{
|
|
34
|
-
sx: {
|
|
35
|
-
display: "flex",
|
|
36
|
-
alignItems: "center",
|
|
37
|
-
justifyContent: "space-between",
|
|
38
|
-
width: "100%",
|
|
39
|
-
gap: m.sm
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
x ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(r, { sx: { flex: 1 } }),
|
|
43
|
-
/* @__PURE__ */ e.jsx(v, { level: "h3", sx: o.title, children: t.question }),
|
|
44
|
-
/* @__PURE__ */ e.jsx(r, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: t.showPoints !== !1 && h.length > 0 && /* @__PURE__ */ e.jsx(
|
|
45
|
-
O,
|
|
46
|
-
{
|
|
47
|
-
fixtureId: t.fixtureId,
|
|
48
|
-
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
49
|
-
isSplitVariant: t.isSplitVariant
|
|
50
|
-
}
|
|
51
|
-
) })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
c && /* @__PURE__ */ e.jsx(v, { level: "body-sm", sx: o.description, children: c }),
|
|
56
|
-
/* @__PURE__ */ e.jsx(
|
|
57
|
-
P,
|
|
58
|
-
{
|
|
59
|
-
onChange: t.onChange,
|
|
60
|
-
prediction: t.prediction,
|
|
61
|
-
minValue: ((u = t.validOutcomes) == null ? void 0 : u.min) ?? void 0,
|
|
62
|
-
maxValue: ((d = t.validOutcomes) == null ? void 0 : d.max) ?? void 0,
|
|
63
|
-
isOverlayVariant: t.isOverlayVariant
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] });
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
Q as default
|
|
70
|
-
};
|
package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { isMobile as i } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
3
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
4
|
-
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
5
|
-
import "@mui/joy";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
const x = (t) => {
|
|
10
|
-
const e = i();
|
|
11
|
-
return {
|
|
12
|
-
container: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
alignItems: "center"
|
|
16
|
-
},
|
|
17
|
-
title: {
|
|
18
|
-
fontFamily: t.fontFamilyPrimary,
|
|
19
|
-
fontWeight: 600,
|
|
20
|
-
fontSize: e ? "1.125em" : "1.25em",
|
|
21
|
-
lineHeight: 1.2,
|
|
22
|
-
color: t.textPrimary,
|
|
23
|
-
textAlign: t.isExtraSmall ? "left" : "center"
|
|
24
|
-
},
|
|
25
|
-
description: {
|
|
26
|
-
fontFamily: t.fontFamilySecondary,
|
|
27
|
-
fontSize: e ? "0.875em" : "0.9375em",
|
|
28
|
-
color: t.textSecondary,
|
|
29
|
-
textAlign: "center",
|
|
30
|
-
mt: t.spacingScale.xs,
|
|
31
|
-
mb: t.spacingScale.xs
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
x as createStyles
|
|
37
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as F, useRef as I } from "react";
|
|
3
|
-
import { Box as y, IconButton as p, Input as V } from "@mui/joy";
|
|
4
|
-
import { useColors as v, useCornerRadius as B, useFontFamily as j, useSpacingScale as P, isMobile as R, useInternalTheme as z } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
import M from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";
|
|
10
|
-
import k from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";
|
|
11
|
-
import { createStyles as w } from "./NumberSelector.styles.js";
|
|
12
|
-
const $ = (e) => {
|
|
13
|
-
const t = v(), h = B(), i = j(), g = P(), m = R(), S = z(), [o, u] = F(e.prediction), l = I(null), c = e.minValue !== void 0 ? e.minValue : -1 / 0, d = e.maxValue !== void 0 ? e.maxValue : 1 / 0, b = S.mode === "dark" || e.isOverlayVariant, a = w({
|
|
14
|
-
spacingScale: g,
|
|
15
|
-
borderRadius: h,
|
|
16
|
-
fontFamilyPrimary: i.primary,
|
|
17
|
-
fontFamilySecondary: i.secondary,
|
|
18
|
-
textPrimary: t.textPrimary,
|
|
19
|
-
textSecondary: t.textSecondary,
|
|
20
|
-
neutralSoftBg: t.palette.neutral.softBg,
|
|
21
|
-
neutralOutlinedBorder: t.palette.neutral.outlinedBorder,
|
|
22
|
-
neutralPlainHoverBg: t.palette.neutral.plainHoverBg,
|
|
23
|
-
primaryPlainColor: t.palette.primary.plainColor,
|
|
24
|
-
isMobile: m,
|
|
25
|
-
iconColor: b ? "#FFFFFF" : t.textPrimary
|
|
26
|
-
}), f = (s) => {
|
|
27
|
-
const n = s ? Math.min(o + 1, d) : Math.max(o - 1, c);
|
|
28
|
-
l.current && (l.current.value = String(n)), u(n), e.onChange(n);
|
|
29
|
-
}, C = (s) => {
|
|
30
|
-
const n = s.target.value;
|
|
31
|
-
if (n === "" || !/^\d+$/.test(n))
|
|
32
|
-
return;
|
|
33
|
-
const x = parseInt(n, 10);
|
|
34
|
-
u(x), e.onChange(x);
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ r.jsx(y, { sx: a.container, children: /* @__PURE__ */ r.jsxs(y, { sx: a.numberInputContainer, children: [
|
|
37
|
-
/* @__PURE__ */ r.jsx(
|
|
38
|
-
p,
|
|
39
|
-
{
|
|
40
|
-
size: "sm",
|
|
41
|
-
variant: "plain",
|
|
42
|
-
onClick: () => f(!1),
|
|
43
|
-
sx: a.numberButton,
|
|
44
|
-
disabled: o <= c,
|
|
45
|
-
children: /* @__PURE__ */ r.jsx(M, { fontSize: "small" })
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ r.jsx(
|
|
49
|
-
V,
|
|
50
|
-
{
|
|
51
|
-
value: o,
|
|
52
|
-
onChange: C,
|
|
53
|
-
sx: a.numberDisplay,
|
|
54
|
-
slotProps: {
|
|
55
|
-
input: {
|
|
56
|
-
ref: l,
|
|
57
|
-
style: {
|
|
58
|
-
textAlign: "center",
|
|
59
|
-
fontFamily: i.primary,
|
|
60
|
-
fontWeight: 600,
|
|
61
|
-
fontSize: m ? "0.75em" : "1em"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ r.jsx(
|
|
68
|
-
p,
|
|
69
|
-
{
|
|
70
|
-
size: "sm",
|
|
71
|
-
variant: "plain",
|
|
72
|
-
onClick: () => f(!0),
|
|
73
|
-
sx: a.numberButton,
|
|
74
|
-
disabled: o >= d,
|
|
75
|
-
children: /* @__PURE__ */ r.jsx(k, { fontSize: "small" })
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] }) });
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
$ as default
|
|
82
|
-
};
|
package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const i = (e) => ({
|
|
2
|
-
container: {
|
|
3
|
-
display: "flex",
|
|
4
|
-
alignItems: "center",
|
|
5
|
-
justifyContent: "center",
|
|
6
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg,
|
|
7
|
-
pt: e.isMobile ? e.spacingScale.xs : e.spacingScale.sm
|
|
8
|
-
},
|
|
9
|
-
numberInputContainer: {
|
|
10
|
-
display: "flex",
|
|
11
|
-
flexDirection: "row",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
gap: e.spacingScale.sm
|
|
14
|
-
},
|
|
15
|
-
numberButton: {
|
|
16
|
-
borderRadius: e.borderRadius.sm,
|
|
17
|
-
minHeight: e.isMobile ? "28px" : "32px",
|
|
18
|
-
minWidth: e.isMobile ? "28px" : "32px",
|
|
19
|
-
borderColor: e.neutralOutlinedBorder,
|
|
20
|
-
color: e.iconColor,
|
|
21
|
-
"&:hover": {
|
|
22
|
-
backgroundColor: e.neutralPlainHoverBg,
|
|
23
|
-
color: e.iconColor
|
|
24
|
-
},
|
|
25
|
-
"& svg": {
|
|
26
|
-
color: e.iconColor
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
numberDisplay: {
|
|
30
|
-
fontFamily: e.fontFamilyPrimary,
|
|
31
|
-
fontWeight: 600,
|
|
32
|
-
fontSize: e.isMobile ? "1.5em" : "2em",
|
|
33
|
-
color: e.textPrimary,
|
|
34
|
-
minWidth: e.isMobile ? "3.5rem" : "4.5rem",
|
|
35
|
-
maxWidth: e.isMobile ? "5rem" : "6rem",
|
|
36
|
-
textAlign: "center",
|
|
37
|
-
bgcolor: e.neutralSoftBg,
|
|
38
|
-
borderRadius: e.borderRadius.sm,
|
|
39
|
-
px: e.spacingScale.sm,
|
|
40
|
-
py: e.spacingScale.xs,
|
|
41
|
-
border: "none",
|
|
42
|
-
// Remove Joy UI's default focus outline
|
|
43
|
-
outline: "none",
|
|
44
|
-
"&:hover": {
|
|
45
|
-
bgcolor: e.neutralSoftBg
|
|
46
|
-
},
|
|
47
|
-
"&:focus-within": {
|
|
48
|
-
bgcolor: e.neutralSoftBg,
|
|
49
|
-
// Add primary color border on focus
|
|
50
|
-
outline: `2px solid ${e.primaryPlainColor}`,
|
|
51
|
-
outlineOffset: "2px"
|
|
52
|
-
},
|
|
53
|
-
// Override Joy UI Input's internal focus styles
|
|
54
|
-
"&::before": {
|
|
55
|
-
display: "none"
|
|
56
|
-
},
|
|
57
|
-
"&:focus-within::before": {
|
|
58
|
-
display: "none"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
i as createStyles
|
|
64
|
-
};
|
package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as b } from "react";
|
|
3
|
-
import { Tooltip as c, IconButton as v, Box as j, Typography as n } from "@mui/joy";
|
|
4
|
-
import { useColors as C, useCornerRadius as S, useFontFamily as h, useSpacingScale as B, isMobile as P } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
-
import { useConstantContext as T } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import g from "../../../../../../../node_modules/@mui/icons-material/esm/HelpOutline.js";
|
|
11
|
-
import { createStyles as F } from "./PointsDisplay.styles.js";
|
|
12
|
-
import { EventGameConstantsContext as I } from "../../../../providers/ConstantsProvider.js";
|
|
13
|
-
import { useTranslation as H } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
-
const J = (s) => {
|
|
15
|
-
const { t: i } = H(), o = C(), u = S(), l = h(), d = B(), x = P(), [a, p] = b(!1), { points: f } = T(I), t = F({
|
|
16
|
-
spacingScale: d,
|
|
17
|
-
borderRadius: u,
|
|
18
|
-
fontFamilyPrimary: l.primary,
|
|
19
|
-
fontFamilySecondary: l.secondary,
|
|
20
|
-
textPrimary: o.textPrimary,
|
|
21
|
-
textSecondary: o.textSecondary,
|
|
22
|
-
neutralSoftBg: o.palette.neutral.softBg,
|
|
23
|
-
neutralOutlinedBorder: o.palette.neutral.outlinedBorder,
|
|
24
|
-
neutralPlainHoverBg: o.palette.neutral.plainHoverBg
|
|
25
|
-
}), r = f.find((y) => y.id === s.fixtureId);
|
|
26
|
-
if (!r)
|
|
27
|
-
return null;
|
|
28
|
-
const m = () => /* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: t.tooltipText, children: i("eventGame.points.earnPointsForCorrect", {
|
|
29
|
-
points: r.points
|
|
30
|
-
}) });
|
|
31
|
-
return x || s.isSplitVariant ? /* @__PURE__ */ e.jsx(
|
|
32
|
-
c,
|
|
33
|
-
{
|
|
34
|
-
title: m(),
|
|
35
|
-
placement: "top-start",
|
|
36
|
-
variant: "soft",
|
|
37
|
-
sx: t.tooltip,
|
|
38
|
-
disablePortal: !0,
|
|
39
|
-
open: a,
|
|
40
|
-
onClose: () => p(!1),
|
|
41
|
-
disableHoverListener: !0,
|
|
42
|
-
disableFocusListener: !0,
|
|
43
|
-
disableTouchListener: !0,
|
|
44
|
-
children: /* @__PURE__ */ e.jsx(
|
|
45
|
-
v,
|
|
46
|
-
{
|
|
47
|
-
onClick: () => p(!a),
|
|
48
|
-
sx: t.mobileIconButton,
|
|
49
|
-
children: /* @__PURE__ */ e.jsx(g, { sx: t.mobileIcon })
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
) : /* @__PURE__ */ e.jsx(
|
|
54
|
-
c,
|
|
55
|
-
{
|
|
56
|
-
title: m(),
|
|
57
|
-
placement: "top-start",
|
|
58
|
-
variant: "soft",
|
|
59
|
-
sx: t.tooltip,
|
|
60
|
-
disablePortal: !0,
|
|
61
|
-
children: /* @__PURE__ */ e.jsxs(j, { sx: t.container, children: [
|
|
62
|
-
/* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: t.pointsText, children: r.points }),
|
|
63
|
-
/* @__PURE__ */ e.jsx(n, { level: "body-xs", sx: t.ptsLabel, children: i("eventGame.points.pts") })
|
|
64
|
-
] })
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
J as default
|
|
70
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
const e = (t) => ({
|
|
2
|
-
container: {
|
|
3
|
-
backgroundColor: t.neutralSoftBg,
|
|
4
|
-
color: t.textPrimary,
|
|
5
|
-
borderRadius: t.borderRadius.md,
|
|
6
|
-
border: `1px solid ${t.neutralOutlinedBorder}`,
|
|
7
|
-
padding: `${t.spacingScale.xs} ${t.spacingScale.sm}`,
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
gap: t.spacingScale.xs,
|
|
11
|
-
cursor: "default",
|
|
12
|
-
transition: "all 0.2s ease-in-out",
|
|
13
|
-
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
14
|
-
zIndex: 10,
|
|
15
|
-
minWidth: "56px",
|
|
16
|
-
justifyContent: "center",
|
|
17
|
-
"&:hover": {
|
|
18
|
-
backgroundColor: t.neutralPlainHoverBg,
|
|
19
|
-
transform: "scale(1.05)",
|
|
20
|
-
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
pointsText: {
|
|
24
|
-
fontFamily: t.fontFamilyPrimary,
|
|
25
|
-
fontWeight: 700,
|
|
26
|
-
fontSize: "0.875em",
|
|
27
|
-
lineHeight: 1,
|
|
28
|
-
color: t.textPrimary
|
|
29
|
-
},
|
|
30
|
-
ptsLabel: {
|
|
31
|
-
fontFamily: t.fontFamilySecondary,
|
|
32
|
-
fontWeight: 500,
|
|
33
|
-
fontSize: "0.75em",
|
|
34
|
-
lineHeight: 1,
|
|
35
|
-
color: t.textSecondary,
|
|
36
|
-
opacity: 0.9
|
|
37
|
-
},
|
|
38
|
-
tooltip: {
|
|
39
|
-
maxWidth: "280px",
|
|
40
|
-
backgroundColor: t.neutralSoftBg,
|
|
41
|
-
color: t.textPrimary,
|
|
42
|
-
border: `1px solid ${t.neutralOutlinedBorder}`,
|
|
43
|
-
borderRadius: t.borderRadius.sm,
|
|
44
|
-
p: t.spacingScale.xs
|
|
45
|
-
},
|
|
46
|
-
tooltipContainer: {
|
|
47
|
-
display: "flex",
|
|
48
|
-
flexDirection: "column",
|
|
49
|
-
gap: t.spacingScale.xs
|
|
50
|
-
},
|
|
51
|
-
tooltipText: {
|
|
52
|
-
fontFamily: t.fontFamilySecondary,
|
|
53
|
-
color: t.textPrimary,
|
|
54
|
-
fontSize: "0.875em",
|
|
55
|
-
lineHeight: 1.3
|
|
56
|
-
},
|
|
57
|
-
tooltipSubtext: {
|
|
58
|
-
fontFamily: t.fontFamilySecondary,
|
|
59
|
-
color: t.textSecondary,
|
|
60
|
-
fontSize: "0.75em",
|
|
61
|
-
lineHeight: 1.3
|
|
62
|
-
},
|
|
63
|
-
tooltipAlternative: {
|
|
64
|
-
fontFamily: t.fontFamilySecondary,
|
|
65
|
-
color: t.textPrimary,
|
|
66
|
-
fontSize: "0.75em",
|
|
67
|
-
lineHeight: 1.3,
|
|
68
|
-
paddingLeft: t.spacingScale.xs
|
|
69
|
-
},
|
|
70
|
-
// Mobile-specific styles
|
|
71
|
-
mobileIconButton: {
|
|
72
|
-
backgroundColor: "transparent",
|
|
73
|
-
color: t.textPrimary,
|
|
74
|
-
border: "none",
|
|
75
|
-
borderRadius: "50%",
|
|
76
|
-
width: "32px",
|
|
77
|
-
height: "32px",
|
|
78
|
-
minHeight: "32px",
|
|
79
|
-
minWidth: "32px",
|
|
80
|
-
padding: 0,
|
|
81
|
-
display: "flex",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "center",
|
|
84
|
-
transition: "all 0.2s ease-in-out",
|
|
85
|
-
zIndex: 10,
|
|
86
|
-
"&:hover": {
|
|
87
|
-
backgroundColor: "transparent",
|
|
88
|
-
transform: "scale(1.1)"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
mobileIcon: {
|
|
92
|
-
fontSize: "1em",
|
|
93
|
-
color: t.textPrimary
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
e as createStyles
|
|
98
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as o, Typography as c } from "@mui/joy";
|
|
3
|
-
import { useColors as y, isExtraSmall as d, useCornerRadius as u, useFontFamily as f, useSpacingScale 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 { useConstantContext as j } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import p from "./TextSelector.js";
|
|
11
|
-
import { createStyles as C } from "./TextFixture.styles.js";
|
|
12
|
-
import g from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
-
import { EventGameConstantsContext as h } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
-
const q = (t) => {
|
|
15
|
-
const i = y(), l = d(), m = u(), a = f(), r = S(), { points: x } = j(h), n = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : l, s = C({
|
|
16
|
-
spacingScale: r,
|
|
17
|
-
borderRadius: m,
|
|
18
|
-
fontFamilyPrimary: a.primary,
|
|
19
|
-
fontFamilySecondary: a.secondary,
|
|
20
|
-
textPrimary: i.textPrimary,
|
|
21
|
-
textSecondary: i.textSecondary,
|
|
22
|
-
isExtraSmall: n
|
|
23
|
-
});
|
|
24
|
-
return /* @__PURE__ */ e.jsxs(o, { sx: s.container, children: [
|
|
25
|
-
/* @__PURE__ */ e.jsxs(
|
|
26
|
-
o,
|
|
27
|
-
{
|
|
28
|
-
sx: {
|
|
29
|
-
display: "flex",
|
|
30
|
-
alignItems: "center",
|
|
31
|
-
justifyContent: "space-between",
|
|
32
|
-
width: "100%",
|
|
33
|
-
gap: r.sm
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
n ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(o, { sx: { flex: 1 } }),
|
|
37
|
-
/* @__PURE__ */ e.jsx(c, { level: "h3", sx: s.title, children: t.question }),
|
|
38
|
-
/* @__PURE__ */ e.jsx(o, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: t.showPoints !== !1 && x.length > 0 && /* @__PURE__ */ e.jsx(
|
|
39
|
-
g,
|
|
40
|
-
{
|
|
41
|
-
fixtureId: t.fixtureId,
|
|
42
|
-
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
43
|
-
isSplitVariant: t.isSplitVariant
|
|
44
|
-
}
|
|
45
|
-
) })
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ e.jsx(
|
|
50
|
-
p,
|
|
51
|
-
{
|
|
52
|
-
onTextChange: t.onTextChange,
|
|
53
|
-
prediction: t.prediction,
|
|
54
|
-
validOutcomes: t.validOutcomes,
|
|
55
|
-
optionsLayout: t.optionsLayout
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] });
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
q as default
|
|
62
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { isMobile as e } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
-
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
3
|
-
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
4
|
-
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
5
|
-
import "@mui/joy";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
-
const p = (t) => {
|
|
10
|
-
const i = e();
|
|
11
|
-
return {
|
|
12
|
-
container: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
alignItems: "center"
|
|
16
|
-
},
|
|
17
|
-
title: {
|
|
18
|
-
fontFamily: t.fontFamilyPrimary,
|
|
19
|
-
fontWeight: 600,
|
|
20
|
-
fontSize: i ? "1.125em" : "1.25em",
|
|
21
|
-
lineHeight: 1.2,
|
|
22
|
-
color: t.textPrimary,
|
|
23
|
-
textAlign: t.isExtraSmall ? "left" : "center"
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
p as createStyles
|
|
29
|
-
};
|