fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7
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 +4846 -3
- package/CollectLead.js +1252 -3
- package/EventGamePlay.js +7594 -3
- package/MatchQuizPlay.js +11001 -3
- package/PersonalityQuizPlay.js +39512 -3
- package/PollVote.js +4165 -3
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
- package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- 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,63 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as i, Typography as d } from "@mui/joy";
|
|
3
|
-
import { useColors as f, useCornerRadius as S, useFontFamily as h, useSpacingScale as C, isExtraSmall as g } 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 T from "./OneXTwoSelector.js";
|
|
11
|
-
import { createStyles as p } from "./OneXTwoFixture.styles.js";
|
|
12
|
-
import P from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
-
import { MatchQuizConstantsContext as F } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
-
import { useTranslation as w } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
-
const B = (t) => {
|
|
16
|
-
const { t: r } = w(), o = f(), l = S(), n = h(), m = C(), x = g(), { points: c } = j(F), a = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : x, u = t.showPoints === void 0, s = p({
|
|
17
|
-
spacingScale: m,
|
|
18
|
-
borderRadius: l,
|
|
19
|
-
fontFamilyPrimary: n.primary,
|
|
20
|
-
fontFamilySecondary: n.secondary,
|
|
21
|
-
textPrimary: o.textPrimary,
|
|
22
|
-
textSecondary: o.textSecondary,
|
|
23
|
-
ixExtraSmall: a
|
|
24
|
-
}), y = () => t.market === "HT_1X2" ? r("matchQuiz.fixtures.oneXTwoFixtureTitleHT") : r("matchQuiz.fixtures.oneXTwoFixtureTitle");
|
|
25
|
-
return /* @__PURE__ */ e.jsxs(i, { sx: s.container, children: [
|
|
26
|
-
/* @__PURE__ */ e.jsxs(
|
|
27
|
-
i,
|
|
28
|
-
{
|
|
29
|
-
sx: {
|
|
30
|
-
display: "flex",
|
|
31
|
-
alignItems: "center",
|
|
32
|
-
justifyContent: "space-between",
|
|
33
|
-
width: "100%"
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
a ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(i, { sx: { flex: 1 } }),
|
|
37
|
-
/* @__PURE__ */ e.jsx(d, { level: "h3", sx: s.title, children: y() }),
|
|
38
|
-
/* @__PURE__ */ e.jsx(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: u && c.length > 0 && /* @__PURE__ */ e.jsx(
|
|
39
|
-
P,
|
|
40
|
-
{
|
|
41
|
-
market: t.market,
|
|
42
|
-
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
43
|
-
isSplitVariant: t.isSplitVariant
|
|
44
|
-
}
|
|
45
|
-
) })
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ e.jsx(
|
|
50
|
-
T,
|
|
51
|
-
{
|
|
52
|
-
matchModel: t.matchModel,
|
|
53
|
-
onSelectionChange: t.onSelectionChange,
|
|
54
|
-
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
55
|
-
prediction: t.prediction,
|
|
56
|
-
isSplitVariant: t.isSplitVariant
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] });
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
B as default
|
|
63
|
-
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js
DELETED
|
@@ -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 x = (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.ixExtraSmall ? "left" : "center"
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
x as createStyles
|
|
29
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { memo as j, useState as b } from "react";
|
|
3
|
-
import { Box as a, Typography as s } from "@mui/joy";
|
|
4
|
-
import { useColors as T, useCornerRadius as f, useFontFamily as w, useSpacingScale as M, 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 I } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import { createStyles as L } from "./OneXTwoSelector.styles.js";
|
|
11
|
-
import { MatchQuizConstantsContext as B } from "../../../../providers/ConstantsProvider.js";
|
|
12
|
-
import v from "./OneXTwoSelectorSplit.js";
|
|
13
|
-
import { useTranslation as F } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
-
const h = j(({ team: o, option: t, isSelected: i, styles: r, handleSelection: m }) => {
|
|
15
|
-
var l;
|
|
16
|
-
return /* @__PURE__ */ e.jsx(a, { sx: r.iconContainer, children: /* @__PURE__ */ e.jsx(
|
|
17
|
-
a,
|
|
18
|
-
{
|
|
19
|
-
sx: {
|
|
20
|
-
...r.teamLogo,
|
|
21
|
-
...i ? r.selectedTeamLogo : {},
|
|
22
|
-
cursor: "pointer"
|
|
23
|
-
},
|
|
24
|
-
onClick: () => m(t),
|
|
25
|
-
children: (l = o.assets) != null && l.logo ? /* @__PURE__ */ e.jsx(
|
|
26
|
-
"img",
|
|
27
|
-
{
|
|
28
|
-
src: o.assets.logo,
|
|
29
|
-
alt: o.name,
|
|
30
|
-
style: {
|
|
31
|
-
width: "100%",
|
|
32
|
-
height: "100%",
|
|
33
|
-
objectFit: "contain"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
) : /* @__PURE__ */ e.jsx(
|
|
37
|
-
s,
|
|
38
|
-
{
|
|
39
|
-
level: "body-sm",
|
|
40
|
-
sx: {
|
|
41
|
-
...r.teamLogoText,
|
|
42
|
-
...i ? r.selectedTeamLogoText : {}
|
|
43
|
-
},
|
|
44
|
-
children: o.name
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
});
|
|
50
|
-
h.displayName = "TeamIcon";
|
|
51
|
-
const y = j(({ isSelected: o, styles: t, handleSelection: i }) => /* @__PURE__ */ e.jsx(a, { sx: t.iconContainer, children: /* @__PURE__ */ e.jsx(
|
|
52
|
-
a,
|
|
53
|
-
{
|
|
54
|
-
sx: {
|
|
55
|
-
...t.drawIcon,
|
|
56
|
-
...o ? t.selectedDrawIcon : {},
|
|
57
|
-
cursor: "pointer"
|
|
58
|
-
},
|
|
59
|
-
onClick: () => i("x"),
|
|
60
|
-
children: /* @__PURE__ */ e.jsx(
|
|
61
|
-
s,
|
|
62
|
-
{
|
|
63
|
-
level: "h4",
|
|
64
|
-
sx: {
|
|
65
|
-
...t.drawIconText,
|
|
66
|
-
...o ? t.selectedDrawIconText : {}
|
|
67
|
-
},
|
|
68
|
-
children: "X"
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
) }));
|
|
73
|
-
y.displayName = "DrawIcon";
|
|
74
|
-
const G = (o) => {
|
|
75
|
-
if (o.isSplitVariant)
|
|
76
|
-
return /* @__PURE__ */ e.jsx(
|
|
77
|
-
v,
|
|
78
|
-
{
|
|
79
|
-
matchModel: o.matchModel,
|
|
80
|
-
onSelectionChange: o.onSelectionChange,
|
|
81
|
-
brandingPrimaryColor: o.brandingPrimaryColor,
|
|
82
|
-
prediction: o.prediction
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
const t = T(), i = f(), r = w(), m = M(), l = P(), { t: g } = F(), { showTeamLabels: p } = I(B), [d, C] = b(
|
|
86
|
-
o.prediction
|
|
87
|
-
), n = L({
|
|
88
|
-
spacingScale: m,
|
|
89
|
-
borderRadius: i,
|
|
90
|
-
fontFamilyPrimary: r.primary,
|
|
91
|
-
fontFamilySecondary: r.secondary,
|
|
92
|
-
textPrimary: t.textPrimary,
|
|
93
|
-
textSecondary: t.textSecondary,
|
|
94
|
-
neutralSoftBg: t.palette.neutral.softBg,
|
|
95
|
-
neutralOutlinedBorder: t.palette.neutral.outlinedBorder,
|
|
96
|
-
neutralPlainHoverBg: t.palette.neutral.plainHoverBg,
|
|
97
|
-
primary: o.brandingPrimaryColor || t.palette.primary.plainColor,
|
|
98
|
-
onPrimary: t.palette.primary.onPrimary,
|
|
99
|
-
isMobile: l
|
|
100
|
-
}), x = (c) => {
|
|
101
|
-
C(c), o.onSelectionChange(c);
|
|
102
|
-
}, u = ({ team: c }) => /* @__PURE__ */ e.jsx(a, { sx: n.labelContainer, children: /* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: n.teamName, children: c.name }) }), S = () => /* @__PURE__ */ e.jsx(a, { sx: n.labelContainer, children: /* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: n.drawLabel, children: g("matchQuiz.fixtures.draw") }) });
|
|
103
|
-
return /* @__PURE__ */ e.jsxs(a, { sx: n.container, children: [
|
|
104
|
-
/* @__PURE__ */ e.jsxs(a, { sx: n.iconsRow, children: [
|
|
105
|
-
/* @__PURE__ */ e.jsx(
|
|
106
|
-
h,
|
|
107
|
-
{
|
|
108
|
-
team: o.matchModel.homeTeam,
|
|
109
|
-
option: "1",
|
|
110
|
-
isSelected: d === "1",
|
|
111
|
-
styles: n,
|
|
112
|
-
handleSelection: x
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ e.jsx(
|
|
116
|
-
y,
|
|
117
|
-
{
|
|
118
|
-
isSelected: d === "x",
|
|
119
|
-
styles: n,
|
|
120
|
-
handleSelection: x
|
|
121
|
-
}
|
|
122
|
-
),
|
|
123
|
-
/* @__PURE__ */ e.jsx(
|
|
124
|
-
h,
|
|
125
|
-
{
|
|
126
|
-
team: o.matchModel.awayTeam,
|
|
127
|
-
option: "2",
|
|
128
|
-
isSelected: d === "2",
|
|
129
|
-
styles: n,
|
|
130
|
-
handleSelection: x
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }),
|
|
134
|
-
p && /* @__PURE__ */ e.jsxs(a, { sx: n.labelsRow, children: [
|
|
135
|
-
/* @__PURE__ */ e.jsx(u, { team: o.matchModel.homeTeam }),
|
|
136
|
-
/* @__PURE__ */ e.jsx(S, {}),
|
|
137
|
-
/* @__PURE__ */ e.jsx(u, { team: o.matchModel.awayTeam })
|
|
138
|
-
] })
|
|
139
|
-
] });
|
|
140
|
-
};
|
|
141
|
-
export {
|
|
142
|
-
G as default
|
|
143
|
-
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { createTeamLogoStyles as a } from "../shared.styles.js";
|
|
2
|
-
const l = (e) => {
|
|
3
|
-
const t = a({
|
|
4
|
-
spacingScale: e.spacingScale,
|
|
5
|
-
neutralSoftBg: e.neutralSoftBg,
|
|
6
|
-
neutralPlainHoverBg: e.neutralPlainHoverBg,
|
|
7
|
-
isMobile: e.isMobile,
|
|
8
|
-
primary: e.primary,
|
|
9
|
-
onPrimary: e.onPrimary
|
|
10
|
-
});
|
|
11
|
-
return {
|
|
12
|
-
container: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
gap: e.spacingScale.md,
|
|
16
|
-
pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
17
|
-
},
|
|
18
|
-
iconsRow: {
|
|
19
|
-
display: "flex",
|
|
20
|
-
alignItems: "center",
|
|
21
|
-
justifyContent: "center",
|
|
22
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
23
|
-
},
|
|
24
|
-
labelsRow: {
|
|
25
|
-
display: "flex",
|
|
26
|
-
alignItems: "flex-start",
|
|
27
|
-
justifyContent: "center",
|
|
28
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
29
|
-
},
|
|
30
|
-
iconContainer: {
|
|
31
|
-
display: "flex",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
justifyContent: "center",
|
|
34
|
-
flex: 1
|
|
35
|
-
},
|
|
36
|
-
labelContainer: {
|
|
37
|
-
display: "flex",
|
|
38
|
-
alignItems: "flex-start",
|
|
39
|
-
justifyContent: "center",
|
|
40
|
-
flex: 1
|
|
41
|
-
},
|
|
42
|
-
teamLogo: t.base,
|
|
43
|
-
selectedTeamLogo: t.selected,
|
|
44
|
-
teamLogoText: {
|
|
45
|
-
...t.text,
|
|
46
|
-
fontFamily: e.fontFamilySecondary,
|
|
47
|
-
color: e.textSecondary
|
|
48
|
-
},
|
|
49
|
-
selectedTeamLogoText: t.selectedText,
|
|
50
|
-
drawIcon: {
|
|
51
|
-
width: e.isMobile ? "48px" : "64px",
|
|
52
|
-
height: e.isMobile ? "48px" : "64px",
|
|
53
|
-
backgroundColor: e.neutralSoftBg,
|
|
54
|
-
display: "flex",
|
|
55
|
-
alignItems: "center",
|
|
56
|
-
justifyContent: "center",
|
|
57
|
-
overflow: "hidden",
|
|
58
|
-
padding: e.isMobile ? e.spacingScale.xs : e.spacingScale.sm,
|
|
59
|
-
borderRadius: e.spacingScale.sm,
|
|
60
|
-
boxShadow: "0 5px 15px 0 rgba(49, 84, 139, .1)",
|
|
61
|
-
flexShrink: 0,
|
|
62
|
-
transition: "all 0.2s ease-in-out",
|
|
63
|
-
"&:hover": {
|
|
64
|
-
backgroundColor: e.neutralPlainHoverBg
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
selectedDrawIcon: {
|
|
68
|
-
backgroundColor: e.primary,
|
|
69
|
-
borderColor: e.primary,
|
|
70
|
-
"&:hover": {
|
|
71
|
-
backgroundColor: e.primary
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
drawIconText: {
|
|
75
|
-
fontFamily: e.fontFamilyPrimary,
|
|
76
|
-
color: e.textPrimary,
|
|
77
|
-
fontSize: e.isMobile ? "1.25em" : "1.5em",
|
|
78
|
-
fontWeight: 600
|
|
79
|
-
},
|
|
80
|
-
selectedDrawIconText: {
|
|
81
|
-
color: e.onPrimary
|
|
82
|
-
},
|
|
83
|
-
teamName: {
|
|
84
|
-
fontFamily: e.fontFamilySecondary,
|
|
85
|
-
color: e.textPrimary,
|
|
86
|
-
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
87
|
-
fontWeight: 600,
|
|
88
|
-
textAlign: "center"
|
|
89
|
-
},
|
|
90
|
-
drawLabel: {
|
|
91
|
-
fontFamily: e.fontFamilySecondary,
|
|
92
|
-
color: e.textPrimary,
|
|
93
|
-
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
94
|
-
fontWeight: 600,
|
|
95
|
-
textAlign: "center"
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
l as createStyles
|
|
101
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as b } from "react";
|
|
3
|
-
import { Box as n, Typography as p } from "@mui/joy";
|
|
4
|
-
import { useColors as C, useCornerRadius as w, useFontFamily as T, useSpacingScale as B } 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 O } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import { createSplitStyles as P } from "./OneXTwoSelectorSplit.styles.js";
|
|
11
|
-
import { MatchQuizConstantsContext as F } from "../../../../providers/ConstantsProvider.js";
|
|
12
|
-
import { useTranslation as R } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
13
|
-
const G = (a) => {
|
|
14
|
-
const r = C(), x = w(), s = T(), y = B(), { t: u } = R(), { showTeamLabels: m } = O(F), [i, h] = b(
|
|
15
|
-
a.prediction
|
|
16
|
-
), t = P({
|
|
17
|
-
spacingScale: y,
|
|
18
|
-
borderRadius: x,
|
|
19
|
-
fontFamilyPrimary: s.primary,
|
|
20
|
-
fontFamilySecondary: s.secondary,
|
|
21
|
-
textPrimary: r.textPrimary,
|
|
22
|
-
textSecondary: r.textSecondary,
|
|
23
|
-
neutralSoftBg: r.palette.neutral.softBg,
|
|
24
|
-
neutralOutlinedBorder: r.palette.neutral.outlinedBorder,
|
|
25
|
-
neutralPlainHoverBg: r.palette.neutral.plainHoverBg,
|
|
26
|
-
primary: a.brandingPrimaryColor || r.palette.primary.plainColor,
|
|
27
|
-
onPrimary: r.palette.primary.onPrimary
|
|
28
|
-
}), S = (o) => {
|
|
29
|
-
h(o), a.onSelectionChange(o);
|
|
30
|
-
}, l = ({ team: o, option: f, label: g, isSelected: c, isDraw: j = !1 }) => {
|
|
31
|
-
var d;
|
|
32
|
-
return /* @__PURE__ */ e.jsx(
|
|
33
|
-
n,
|
|
34
|
-
{
|
|
35
|
-
sx: {
|
|
36
|
-
...t.optionRow,
|
|
37
|
-
...c ? t.selectedOptionRow : {},
|
|
38
|
-
cursor: "pointer"
|
|
39
|
-
},
|
|
40
|
-
onClick: () => S(f),
|
|
41
|
-
children: /* @__PURE__ */ e.jsxs(n, { sx: t.optionContent, children: [
|
|
42
|
-
!j && o && /* @__PURE__ */ e.jsx(n, { sx: t.teamLogo, children: (d = o.assets) != null && d.logo ? /* @__PURE__ */ e.jsx(
|
|
43
|
-
"img",
|
|
44
|
-
{
|
|
45
|
-
src: o.assets.logo,
|
|
46
|
-
alt: o.name,
|
|
47
|
-
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
48
|
-
}
|
|
49
|
-
) : /* @__PURE__ */ e.jsx(p, { level: "body-sm", sx: t.teamLogoText, children: o.name }) }),
|
|
50
|
-
/* @__PURE__ */ e.jsx(
|
|
51
|
-
p,
|
|
52
|
-
{
|
|
53
|
-
level: "body-md",
|
|
54
|
-
sx: {
|
|
55
|
-
...t.optionLabel,
|
|
56
|
-
...c ? t.selectedOptionLabel : {}
|
|
57
|
-
},
|
|
58
|
-
children: g
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] })
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
return /* @__PURE__ */ e.jsxs(n, { sx: t.container, children: [
|
|
66
|
-
/* @__PURE__ */ e.jsx(
|
|
67
|
-
l,
|
|
68
|
-
{
|
|
69
|
-
team: a.matchModel.homeTeam,
|
|
70
|
-
option: "1",
|
|
71
|
-
label: m ? a.matchModel.homeTeam.name || "" : "1",
|
|
72
|
-
isSelected: i === "1"
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
/* @__PURE__ */ e.jsx(
|
|
76
|
-
l,
|
|
77
|
-
{
|
|
78
|
-
option: "x",
|
|
79
|
-
label: u("matchQuiz.fixtures.draw"),
|
|
80
|
-
isSelected: i === "x",
|
|
81
|
-
isDraw: !0
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
/* @__PURE__ */ e.jsx(
|
|
85
|
-
l,
|
|
86
|
-
{
|
|
87
|
-
team: a.matchModel.awayTeam,
|
|
88
|
-
option: "2",
|
|
89
|
-
label: m ? a.matchModel.awayTeam.name || "" : "2",
|
|
90
|
-
isSelected: i === "2"
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] });
|
|
94
|
-
};
|
|
95
|
-
export {
|
|
96
|
-
G as default
|
|
97
|
-
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
const t = (e) => ({
|
|
2
|
-
// Split variant layout container: stacked rows
|
|
3
|
-
container: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
flexDirection: "column",
|
|
6
|
-
gap: e.spacingScale.sm,
|
|
7
|
-
pt: e.spacingScale.md,
|
|
8
|
-
width: "100%"
|
|
9
|
-
},
|
|
10
|
-
// Each option row: full width, bordered box
|
|
11
|
-
optionRow: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
justifyContent: "flex-start",
|
|
15
|
-
minHeight: "26px",
|
|
16
|
-
backgroundColor: e.neutralSoftBg,
|
|
17
|
-
border: `1px solid ${e.neutralOutlinedBorder}`,
|
|
18
|
-
borderRadius: e.borderRadius.sm,
|
|
19
|
-
padding: e.spacingScale.sm,
|
|
20
|
-
transition: "all 0.2s ease-in-out",
|
|
21
|
-
"&:hover": {
|
|
22
|
-
backgroundColor: e.neutralPlainHoverBg,
|
|
23
|
-
borderColor: e.primary
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
// Selected option row styling
|
|
27
|
-
selectedOptionRow: {
|
|
28
|
-
backgroundColor: e.primary,
|
|
29
|
-
borderColor: e.primary,
|
|
30
|
-
"&:hover": {
|
|
31
|
-
backgroundColor: e.primary,
|
|
32
|
-
borderColor: e.primary
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
// Content within each option row
|
|
36
|
-
optionContent: {
|
|
37
|
-
display: "flex",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
gap: e.spacingScale.md,
|
|
40
|
-
width: "100%"
|
|
41
|
-
},
|
|
42
|
-
// Team logo styling
|
|
43
|
-
teamLogo: {
|
|
44
|
-
width: "26px",
|
|
45
|
-
height: "26px",
|
|
46
|
-
backgroundColor: "transparent",
|
|
47
|
-
display: "flex",
|
|
48
|
-
alignItems: "center",
|
|
49
|
-
justifyContent: "center",
|
|
50
|
-
overflow: "hidden",
|
|
51
|
-
borderRadius: e.borderRadius.xs,
|
|
52
|
-
flexShrink: 0
|
|
53
|
-
},
|
|
54
|
-
// Team logo text fallback
|
|
55
|
-
teamLogoText: {
|
|
56
|
-
fontFamily: e.fontFamilySecondary,
|
|
57
|
-
color: e.textSecondary,
|
|
58
|
-
fontSize: "0.75em",
|
|
59
|
-
fontWeight: 600,
|
|
60
|
-
textAlign: "center"
|
|
61
|
-
},
|
|
62
|
-
// Option label styling
|
|
63
|
-
optionLabel: {
|
|
64
|
-
fontFamily: e.fontFamilySecondary,
|
|
65
|
-
color: e.textPrimary,
|
|
66
|
-
fontSize: "0.875em",
|
|
67
|
-
fontWeight: 600,
|
|
68
|
-
flex: 1
|
|
69
|
-
},
|
|
70
|
-
// Selected option label styling
|
|
71
|
-
selectedOptionLabel: {
|
|
72
|
-
color: e.onPrimary
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
t as createSplitStyles
|
|
77
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Box as o, Typography as d } from "@mui/joy";
|
|
3
|
-
import { useColors as u, isExtraSmall as f, useCornerRadius as h, useFontFamily as C, 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 p } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
-
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
-
import j from "./CornersSelector.js";
|
|
11
|
-
import { createStyles as g } from "./CornersFixture.styles.js";
|
|
12
|
-
import F from "../PointsDisplay/PointsDisplay.js";
|
|
13
|
-
import { MatchQuizConstantsContext as P } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
-
import { useTranslation as E } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
-
const q = (t) => {
|
|
16
|
-
const { t: a } = E(), e = u(), l = f(), m = h(), i = C(), x = S(), { points: c } = p(P), n = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : l, y = t.showPoints === void 0, s = g({
|
|
17
|
-
spacingScale: x,
|
|
18
|
-
borderRadius: m,
|
|
19
|
-
fontFamilyPrimary: i.primary,
|
|
20
|
-
fontFamilySecondary: i.secondary,
|
|
21
|
-
textPrimary: e.textPrimary,
|
|
22
|
-
textSecondary: e.textSecondary,
|
|
23
|
-
isExtraSmall: n
|
|
24
|
-
});
|
|
25
|
-
return /* @__PURE__ */ r.jsxs(o, { sx: s.container, children: [
|
|
26
|
-
/* @__PURE__ */ r.jsxs(
|
|
27
|
-
o,
|
|
28
|
-
{
|
|
29
|
-
sx: {
|
|
30
|
-
display: "flex",
|
|
31
|
-
alignItems: "center",
|
|
32
|
-
justifyContent: "space-between",
|
|
33
|
-
width: "100%"
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
n ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsx(o, { sx: { flex: 1 } }),
|
|
37
|
-
/* @__PURE__ */ r.jsx(d, { level: "h3", sx: s.title, children: a("matchQuiz.fixtures.cornersFixtureTitle") }),
|
|
38
|
-
/* @__PURE__ */ r.jsx(o, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: y && c.length > 0 && /* @__PURE__ */ r.jsx(
|
|
39
|
-
F,
|
|
40
|
-
{
|
|
41
|
-
market: t.market,
|
|
42
|
-
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
43
|
-
isSplitVariant: t.isSplitVariant
|
|
44
|
-
}
|
|
45
|
-
) })
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ r.jsx(
|
|
50
|
-
j,
|
|
51
|
-
{
|
|
52
|
-
matchModel: t.matchModel,
|
|
53
|
-
onCornersChange: t.onCornersChange,
|
|
54
|
-
prediction: t.prediction
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
] });
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
q as default
|
|
61
|
-
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js
DELETED
|
@@ -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
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as h } from "react";
|
|
3
|
-
import { Box as m, IconButton as u, Typography as C } from "@mui/joy";
|
|
4
|
-
import { useColors as S, useCornerRadius as g, useFontFamily as j, useSpacingScale as B, isMobile as b } 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 I from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";
|
|
10
|
-
import v from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";
|
|
11
|
-
import { createStyles as F } from "./CornersSelector.styles.js";
|
|
12
|
-
const L = (t) => {
|
|
13
|
-
const e = S(), d = g(), l = j(), x = B(), y = b(), [i, p] = h(t.prediction || 6), o = F({
|
|
14
|
-
spacingScale: x,
|
|
15
|
-
borderRadius: d,
|
|
16
|
-
fontFamilyPrimary: l.primary,
|
|
17
|
-
fontFamilySecondary: l.secondary,
|
|
18
|
-
textPrimary: e.textPrimary,
|
|
19
|
-
textSecondary: e.textSecondary,
|
|
20
|
-
neutralSoftBg: e.palette.neutral.softBg,
|
|
21
|
-
neutralOutlinedBorder: e.palette.neutral.outlinedBorder,
|
|
22
|
-
neutralPlainHoverBg: e.palette.neutral.plainHoverBg,
|
|
23
|
-
isMobile: y
|
|
24
|
-
}), c = (n) => {
|
|
25
|
-
var a;
|
|
26
|
-
const s = n ? Math.min(i + 1, 99) : Math.max(i - 1, 0);
|
|
27
|
-
p(s), (a = t.onCornersChange) == null || a.call(t, s);
|
|
28
|
-
}, f = ({ corners: n, onIncrement: s, onDecrement: a }) => /* @__PURE__ */ r.jsxs(m, { sx: o.cornersInputContainer, children: [
|
|
29
|
-
/* @__PURE__ */ r.jsx(
|
|
30
|
-
u,
|
|
31
|
-
{
|
|
32
|
-
size: "sm",
|
|
33
|
-
variant: "plain",
|
|
34
|
-
onClick: a,
|
|
35
|
-
sx: o.cornersButton,
|
|
36
|
-
disabled: n === 0,
|
|
37
|
-
children: /* @__PURE__ */ r.jsx(I, { fontSize: "small" })
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ r.jsx(C, { level: "h2", sx: o.cornersDisplay, children: n }),
|
|
41
|
-
/* @__PURE__ */ r.jsx(
|
|
42
|
-
u,
|
|
43
|
-
{
|
|
44
|
-
size: "sm",
|
|
45
|
-
variant: "plain",
|
|
46
|
-
onClick: s,
|
|
47
|
-
sx: o.cornersButton,
|
|
48
|
-
children: /* @__PURE__ */ r.jsx(v, { fontSize: "small" })
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] });
|
|
52
|
-
return /* @__PURE__ */ r.jsx(m, { sx: o.container, children: /* @__PURE__ */ r.jsx(
|
|
53
|
-
f,
|
|
54
|
-
{
|
|
55
|
-
corners: i,
|
|
56
|
-
onIncrement: () => c(!0),
|
|
57
|
-
onDecrement: () => c(!1)
|
|
58
|
-
}
|
|
59
|
-
) });
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
L as default
|
|
63
|
-
};
|