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,301 +0,0 @@
|
|
|
1
|
-
import { useThemeMode as V } from "../hooks/useThemeMode.js";
|
|
2
|
-
import { WidgetTemplate as M } from "../enums/enums.js";
|
|
3
|
-
import { useContainerContext as i } from "../providers/ContainerProvider.js";
|
|
4
|
-
import g from "../../../../node_modules/@mui/joy/styles/extendTheme.js";
|
|
5
|
-
import { useTheme as o } from "../../../../node_modules/@mui/joy/styles/ThemeProvider.js";
|
|
6
|
-
import c from "../../../../node_modules/@mui/material/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js";
|
|
7
|
-
const z = {
|
|
8
|
-
values: {
|
|
9
|
-
xs: 0,
|
|
10
|
-
sm: 444,
|
|
11
|
-
md: 600,
|
|
12
|
-
lg: 900,
|
|
13
|
-
xl: 1200,
|
|
14
|
-
xxl: 1536
|
|
15
|
-
}
|
|
16
|
-
}, L = {
|
|
17
|
-
"3xs": "2px",
|
|
18
|
-
"2xs": "4px",
|
|
19
|
-
xs: "8px",
|
|
20
|
-
sm: "12px",
|
|
21
|
-
md: "16px",
|
|
22
|
-
lg: "24px",
|
|
23
|
-
xl: "32px",
|
|
24
|
-
"2xl": "40px",
|
|
25
|
-
"3xl": "48px"
|
|
26
|
-
}, n = {
|
|
27
|
-
light: {
|
|
28
|
-
palette: {
|
|
29
|
-
success: {
|
|
30
|
-
plainColor: "#4CAF50",
|
|
31
|
-
outlinedBorder: "#4CAF50",
|
|
32
|
-
softBg: "#E3FBE3"
|
|
33
|
-
},
|
|
34
|
-
danger: {
|
|
35
|
-
softBg: "#FEE4E2",
|
|
36
|
-
plainColor: "#F44336",
|
|
37
|
-
outlinedBorder: "#F44336"
|
|
38
|
-
},
|
|
39
|
-
primary: {
|
|
40
|
-
plainColor: "#1A77D2",
|
|
41
|
-
outlinedBorder: "#1A77D2",
|
|
42
|
-
onPrimary: "#FAFAFA",
|
|
43
|
-
primaryContainer: "#2397F3"
|
|
44
|
-
},
|
|
45
|
-
warning: {
|
|
46
|
-
softBg: "#FEF0C7",
|
|
47
|
-
plainColor: "#DC6803"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
textPrimary: "#212121",
|
|
51
|
-
textSecondary: "#212121",
|
|
52
|
-
textColor: "#212121",
|
|
53
|
-
textDisabled: "#212121",
|
|
54
|
-
surface: "#FFFFFF",
|
|
55
|
-
onSurface: "#F5F5F5",
|
|
56
|
-
surfaceVariant: "#EEEEEE",
|
|
57
|
-
surfaceTintDim: "#212121",
|
|
58
|
-
surfaceInverse: "#F5F5F5",
|
|
59
|
-
outlineEnabledBorder: "#E0E0E0",
|
|
60
|
-
secondaryContainer: "#BDBDBD"
|
|
61
|
-
},
|
|
62
|
-
dark: {
|
|
63
|
-
palette: {
|
|
64
|
-
primary: {
|
|
65
|
-
plainColor: "#1A77D2",
|
|
66
|
-
outlinedBorder: "#1A77D2",
|
|
67
|
-
onPrimary: "#FAFAFA",
|
|
68
|
-
primaryContainer: "#2397F3"
|
|
69
|
-
},
|
|
70
|
-
success: {
|
|
71
|
-
plainColor: "#4CAF50",
|
|
72
|
-
outlinedBorder: "#4CAF50",
|
|
73
|
-
softBg: "#042F04"
|
|
74
|
-
},
|
|
75
|
-
danger: {
|
|
76
|
-
softBg: "#430A0A",
|
|
77
|
-
plainColor: "#F44336",
|
|
78
|
-
outlinedBorder: "#F44336"
|
|
79
|
-
},
|
|
80
|
-
warning: {
|
|
81
|
-
softBg: "#FEF0C7",
|
|
82
|
-
plainColor: "#DC6803"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
textPrimary: "#FAFAFA",
|
|
86
|
-
textSecondary: "#FAFAFA",
|
|
87
|
-
textColor: "#FAFAFA",
|
|
88
|
-
textDisabled: "#FAFAFA",
|
|
89
|
-
surface: "#424242",
|
|
90
|
-
onSurface: "#212121",
|
|
91
|
-
surfaceVariant: "#616161",
|
|
92
|
-
surfaceTintDim: "#FAFAFA",
|
|
93
|
-
surfaceInverse: "#FAFAFA",
|
|
94
|
-
outlineEnabledBorder: "#757575",
|
|
95
|
-
secondaryContainer: "#757575"
|
|
96
|
-
}
|
|
97
|
-
}, N = {
|
|
98
|
-
light: {
|
|
99
|
-
primary: "Ubuntu, sans-serif",
|
|
100
|
-
secondary: "Roboto, sans-serif"
|
|
101
|
-
},
|
|
102
|
-
dark: {
|
|
103
|
-
primary: "Ubuntu, sans-serif",
|
|
104
|
-
secondary: "Roboto, sans-serif"
|
|
105
|
-
}
|
|
106
|
-
}, K = {
|
|
107
|
-
light: {
|
|
108
|
-
none: "0px",
|
|
109
|
-
"2xs": "2px",
|
|
110
|
-
xs: "4px",
|
|
111
|
-
sm: "8px",
|
|
112
|
-
md: "12px",
|
|
113
|
-
lg: "16px",
|
|
114
|
-
xl: "24px",
|
|
115
|
-
"2xl": "232px",
|
|
116
|
-
full: "1000px"
|
|
117
|
-
},
|
|
118
|
-
dark: {
|
|
119
|
-
none: "0px",
|
|
120
|
-
"2xs": "2px",
|
|
121
|
-
xs: "4px",
|
|
122
|
-
sm: "8px",
|
|
123
|
-
md: "12px",
|
|
124
|
-
lg: "16px",
|
|
125
|
-
xl: "24px",
|
|
126
|
-
"2xl": "232px",
|
|
127
|
-
full: "1000px"
|
|
128
|
-
}
|
|
129
|
-
}, U = {
|
|
130
|
-
light: {
|
|
131
|
-
size: "1px"
|
|
132
|
-
},
|
|
133
|
-
dark: {
|
|
134
|
-
size: "2px"
|
|
135
|
-
}
|
|
136
|
-
}, m = {
|
|
137
|
-
light: {
|
|
138
|
-
standard: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
139
|
-
split: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)"
|
|
140
|
-
},
|
|
141
|
-
dark: {
|
|
142
|
-
standard: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
143
|
-
split: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
144
|
-
overlay: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)"
|
|
145
|
-
}
|
|
146
|
-
}, Q = (e) => {
|
|
147
|
-
var t, d, s, h, F, u, x, p, k, y, f, S, B, A, C, b, T, D, E, v, w, R, j, W, G, P, I;
|
|
148
|
-
const r = g(), a = {
|
|
149
|
-
// Only add custom properties, don't override the entire palette
|
|
150
|
-
colorSchemes: {
|
|
151
|
-
light: {
|
|
152
|
-
palette: {
|
|
153
|
-
// Merge with existing palette
|
|
154
|
-
success: {
|
|
155
|
-
...r.colorSchemes.light.palette.success,
|
|
156
|
-
...((s = (d = (t = e == null ? void 0 : e.colorSchemes) == null ? void 0 : t.light) == null ? void 0 : d.palette) == null ? void 0 : s.success) || n.light.palette.success
|
|
157
|
-
},
|
|
158
|
-
danger: {
|
|
159
|
-
...r.colorSchemes.light.palette.danger,
|
|
160
|
-
...((u = (F = (h = e == null ? void 0 : e.colorSchemes) == null ? void 0 : h.light) == null ? void 0 : F.palette) == null ? void 0 : u.danger) || n.light.palette.danger
|
|
161
|
-
},
|
|
162
|
-
primary: {
|
|
163
|
-
...r.colorSchemes.light.palette.primary,
|
|
164
|
-
...((k = (p = (x = e == null ? void 0 : e.colorSchemes) == null ? void 0 : x.light) == null ? void 0 : p.palette) == null ? void 0 : k.primary) || n.light.palette.primary
|
|
165
|
-
},
|
|
166
|
-
warning: {
|
|
167
|
-
...r.colorSchemes.light.palette.warning,
|
|
168
|
-
...((S = (f = (y = e == null ? void 0 : e.colorSchemes) == null ? void 0 : y.light) == null ? void 0 : f.palette) == null ? void 0 : S.warning) || n.light.palette.warning
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
// Add custom properties
|
|
172
|
-
...((B = e == null ? void 0 : e.colorSchemes) == null ? void 0 : B.light) || n.light
|
|
173
|
-
},
|
|
174
|
-
dark: {
|
|
175
|
-
palette: {
|
|
176
|
-
primary: {
|
|
177
|
-
...r.colorSchemes.dark.palette.primary,
|
|
178
|
-
...((b = (C = (A = e == null ? void 0 : e.colorSchemes) == null ? void 0 : A.dark) == null ? void 0 : C.palette) == null ? void 0 : b.primary) || n.dark.palette.primary
|
|
179
|
-
},
|
|
180
|
-
success: {
|
|
181
|
-
...r.colorSchemes.dark.palette.success,
|
|
182
|
-
...((E = (D = (T = e == null ? void 0 : e.colorSchemes) == null ? void 0 : T.dark) == null ? void 0 : D.palette) == null ? void 0 : E.success) || n.dark.palette.success
|
|
183
|
-
},
|
|
184
|
-
danger: {
|
|
185
|
-
...r.colorSchemes.dark.palette.danger,
|
|
186
|
-
...((R = (w = (v = e == null ? void 0 : e.colorSchemes) == null ? void 0 : v.dark) == null ? void 0 : w.palette) == null ? void 0 : R.danger) || n.dark.palette.danger
|
|
187
|
-
},
|
|
188
|
-
warning: {
|
|
189
|
-
...r.colorSchemes.dark.palette.warning,
|
|
190
|
-
...((G = (W = (j = e == null ? void 0 : e.colorSchemes) == null ? void 0 : j.dark) == null ? void 0 : W.palette) == null ? void 0 : G.warning) || n.dark.palette.warning
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
// Add custom properties
|
|
194
|
-
...((P = e == null ? void 0 : e.colorSchemes) == null ? void 0 : P.dark) || n.dark
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
breakpoints: {
|
|
198
|
-
values: {
|
|
199
|
-
...r.breakpoints.values,
|
|
200
|
-
...((I = e == null ? void 0 : e.customBreakpoints) == null ? void 0 : I.values) || z.values
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
// Add other custom properties as needed
|
|
204
|
-
...e && {
|
|
205
|
-
spacingScale: e.spacingScale || L,
|
|
206
|
-
customFontFamily: e.customFontFamily || N,
|
|
207
|
-
customRadius: e.customRadius || K,
|
|
208
|
-
border: e.border || U,
|
|
209
|
-
imageBackgroundGradient: e.imageBackgroundGradient || m,
|
|
210
|
-
customBreakpoints: e.customBreakpoints || z
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
return g(a);
|
|
214
|
-
}, $ = (e) => {
|
|
215
|
-
const r = (e == null ? void 0 : e.mode) || "light", a = (e == null ? void 0 : e.modeStorageKey) || "theme-mode", t = Q(e);
|
|
216
|
-
return g({
|
|
217
|
-
...t,
|
|
218
|
-
mode: r,
|
|
219
|
-
modeStorageKey: a,
|
|
220
|
-
// Ensure Joy UI respects the provided mode
|
|
221
|
-
cssVarPrefix: "joy",
|
|
222
|
-
colorSchemeSelector: 'data-joy-color-scheme="%s"'
|
|
223
|
-
});
|
|
224
|
-
}, q = () => o().spacingScale, O = (e) => {
|
|
225
|
-
const r = q();
|
|
226
|
-
return r ? r[e] : "16px";
|
|
227
|
-
}, ee = () => {
|
|
228
|
-
const e = o(), { theme: r } = l(), { containerWidth: a, isContainerDetected: t } = i();
|
|
229
|
-
return t && a > 0 ? a < r.customBreakpoints.values.sm : c(
|
|
230
|
-
e.breakpoints.down(r.customBreakpoints.values.sm)
|
|
231
|
-
);
|
|
232
|
-
}, re = () => {
|
|
233
|
-
const e = o(), { theme: r } = l(), { containerWidth: a, isContainerDetected: t } = i();
|
|
234
|
-
return t && a > 0 ? a < r.customBreakpoints.values.md : c(
|
|
235
|
-
e.breakpoints.down(r.customBreakpoints.values.md)
|
|
236
|
-
);
|
|
237
|
-
}, ae = () => {
|
|
238
|
-
const e = o(), { theme: r } = l(), { containerWidth: a, isContainerDetected: t } = i();
|
|
239
|
-
return t && a > 0 ? a < r.customBreakpoints.values.lg : c(
|
|
240
|
-
e.breakpoints.down(r.customBreakpoints.values.lg)
|
|
241
|
-
);
|
|
242
|
-
}, te = () => {
|
|
243
|
-
const e = o(), { theme: r } = l(), { containerWidth: a, isContainerDetected: t } = i();
|
|
244
|
-
return t && a > 0 ? a >= r.customBreakpoints.values.md && a < r.customBreakpoints.values.lg : c(
|
|
245
|
-
e.breakpoints.between(
|
|
246
|
-
r.customBreakpoints.values.md,
|
|
247
|
-
r.customBreakpoints.values.lg
|
|
248
|
-
)
|
|
249
|
-
);
|
|
250
|
-
}, ne = () => {
|
|
251
|
-
const e = o(), { theme: r } = l(), { containerWidth: a, isContainerDetected: t } = i();
|
|
252
|
-
return t && a > 0 ? a >= r.customBreakpoints.values.lg : c(
|
|
253
|
-
e.breakpoints.up(r.customBreakpoints.values.lg)
|
|
254
|
-
);
|
|
255
|
-
}, le = () => o(), l = () => {
|
|
256
|
-
const e = o(), { mode: r } = V(
|
|
257
|
-
e.mode || "light",
|
|
258
|
-
e.modeStorageKey || "theme-mode"
|
|
259
|
-
);
|
|
260
|
-
return { theme: e, mode: r };
|
|
261
|
-
}, oe = () => {
|
|
262
|
-
var a, t, d, s;
|
|
263
|
-
const { theme: e, mode: r } = l();
|
|
264
|
-
return {
|
|
265
|
-
primary: ((t = (a = e.customFontFamily) == null ? void 0 : a[r]) == null ? void 0 : t.primary) || "Ubuntu, sans-serif",
|
|
266
|
-
secondary: ((s = (d = e.customFontFamily) == null ? void 0 : d[r]) == null ? void 0 : s.secondary) || "Roboto, sans-serif"
|
|
267
|
-
};
|
|
268
|
-
}, de = () => {
|
|
269
|
-
var a;
|
|
270
|
-
const { theme: e, mode: r } = l();
|
|
271
|
-
return ((a = e.customRadius) == null ? void 0 : a[r]) || K[r];
|
|
272
|
-
}, se = () => {
|
|
273
|
-
var a;
|
|
274
|
-
const { theme: e, mode: r } = l();
|
|
275
|
-
return ((a = e.colorSchemes) == null ? void 0 : a[r]) || n[r];
|
|
276
|
-
}, ie = () => {
|
|
277
|
-
var a;
|
|
278
|
-
const { theme: e, mode: r } = l();
|
|
279
|
-
return ((a = e.border) == null ? void 0 : a[r]) || U[r];
|
|
280
|
-
}, ce = (e) => {
|
|
281
|
-
const { theme: r, mode: a } = l();
|
|
282
|
-
return e === M.STANDARD || e === M.SPLIT ? r.imageBackgroundGradient[a][e] || m[a][e] : r.imageBackgroundGradient.dark.overlay || m.dark.overlay;
|
|
283
|
-
};
|
|
284
|
-
export {
|
|
285
|
-
Q as createCustomTheme,
|
|
286
|
-
$ as createEnhancedTheme,
|
|
287
|
-
O as getSpacing,
|
|
288
|
-
ne as isDesktop,
|
|
289
|
-
ee as isExtraSmall,
|
|
290
|
-
ae as isLarge,
|
|
291
|
-
re as isMobile,
|
|
292
|
-
te as isTablet,
|
|
293
|
-
ie as useBorderSize,
|
|
294
|
-
se as useColors,
|
|
295
|
-
de as useCornerRadius,
|
|
296
|
-
oe as useFontFamily,
|
|
297
|
-
ce as useImageBackgroundGradient,
|
|
298
|
-
le as useInternalTheme,
|
|
299
|
-
q as useSpacingScale,
|
|
300
|
-
l as useThemeWithMode
|
|
301
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WidgetTemplate as l } from "../enums/enums.js";
|
|
2
|
-
import { useImageUrl as o } from "./useImageUrl.js";
|
|
3
|
-
const t = (m, a) => {
|
|
4
|
-
var r;
|
|
5
|
-
const i = o(m.images);
|
|
6
|
-
let e = null;
|
|
7
|
-
return a !== l.OVERLAY ? e = i : e = ((r = m.images) == null ? void 0 : r.cover) || "", e || (e = m.imagePlaceholder), e;
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
t as useImageVariant
|
|
11
|
-
};
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { useState as m, useEffect as v } from "react";
|
|
2
|
-
import { ConstantsContext as z } from "../providers/ConstantsProvider.js";
|
|
3
|
-
import { useConstantContext as A } from "./useConstantContext.js";
|
|
4
|
-
import { countries as H } from "../constants/constants.js";
|
|
5
|
-
import { getDefaultCountryByCode as p, getDefaultCountryByLanguage as y, getCountryByCode as J } from "../functions/helpers.js";
|
|
6
|
-
function X(g) {
|
|
7
|
-
const {
|
|
8
|
-
sdk: d,
|
|
9
|
-
fields: r = ["fullName", "email"],
|
|
10
|
-
campaignId: b = "",
|
|
11
|
-
campaignName: F = "",
|
|
12
|
-
contentType: D = "",
|
|
13
|
-
contentId: P = "",
|
|
14
|
-
contentName: w = "",
|
|
15
|
-
syncWithProfile: I = !1
|
|
16
|
-
} = g, { leadPhoneCountryCode: i, language: f } = A(z), [e, s] = m({
|
|
17
|
-
firstName: "",
|
|
18
|
-
lastName: "",
|
|
19
|
-
fullName: "",
|
|
20
|
-
email: "",
|
|
21
|
-
gender: "",
|
|
22
|
-
country: "",
|
|
23
|
-
phoneCountryCode: i ? p(i) : y(f || "en"),
|
|
24
|
-
phoneNumber: "",
|
|
25
|
-
customFields: {}
|
|
26
|
-
});
|
|
27
|
-
v(() => {
|
|
28
|
-
const t = i ? p(i) : y(f || "en");
|
|
29
|
-
s((n) => !n.phoneNumber || !n.phoneCountryCode ? { ...n, phoneCountryCode: t } : n);
|
|
30
|
-
}, [i, f]);
|
|
31
|
-
const [N, L] = m({}), [E, h] = m(!1), [S, x] = m(!1), [B, C] = m(null), O = () => C(null), _ = (t) => (n) => {
|
|
32
|
-
s((o) => ({
|
|
33
|
-
...o,
|
|
34
|
-
[t]: n.target.value
|
|
35
|
-
}));
|
|
36
|
-
}, j = (t) => (n) => {
|
|
37
|
-
const o = n.target.value;
|
|
38
|
-
L((l) => ({ ...l, [t]: o }));
|
|
39
|
-
}, G = (t, n) => {
|
|
40
|
-
s((o) => ({
|
|
41
|
-
...o,
|
|
42
|
-
phoneCountryCode: n
|
|
43
|
-
}));
|
|
44
|
-
}, T = (t, n) => {
|
|
45
|
-
s((o) => ({
|
|
46
|
-
...o,
|
|
47
|
-
country: n || ""
|
|
48
|
-
}));
|
|
49
|
-
}, W = (t, n) => {
|
|
50
|
-
s((o) => ({
|
|
51
|
-
...o,
|
|
52
|
-
gender: n || ""
|
|
53
|
-
}));
|
|
54
|
-
}, q = async () => {
|
|
55
|
-
if (I)
|
|
56
|
-
try {
|
|
57
|
-
const t = d.profile.getOwn();
|
|
58
|
-
if (e.fullName && r.includes("fullName") ? t.setName(e.fullName.trim()) : e.firstName && r.includes("firstName") && e.lastName && r.includes("lastName") ? t.setName(
|
|
59
|
-
e.firstName.trim() + " " + e.lastName.trim()
|
|
60
|
-
) : e.firstName && r.includes("firstName") ? t.setName(e.firstName.trim()) : e.lastName && r.includes("lastName") && t.setName(e.lastName.trim()), e.email && r.includes("email") && t.setEmail(e.email.trim()), e.gender && r.includes("gender") && t.setGender(e.gender), e.country && r.includes("country")) {
|
|
61
|
-
const n = await d.profile.getCountries(), o = J(e.country), l = n.find((c) => c.name === (o == null ? void 0 : o.label));
|
|
62
|
-
l && t.setCountry(l.id);
|
|
63
|
-
}
|
|
64
|
-
e.phoneCountryCode && r.includes("phoneCountryCode") && t.setPhoneCountryCode(
|
|
65
|
-
"+" + e.phoneCountryCode.phone
|
|
66
|
-
), e.phoneNumber && r.includes("phoneNumber") && t.setPhoneNumber(e.phoneNumber.trim()), await t.update();
|
|
67
|
-
} catch (t) {
|
|
68
|
-
console.warn("[LeadForm] Failed to sync profile data:", t);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return {
|
|
72
|
-
formData: e,
|
|
73
|
-
setFormData: s,
|
|
74
|
-
isLoading: E,
|
|
75
|
-
isSuccess: S,
|
|
76
|
-
error: B,
|
|
77
|
-
clearError: O,
|
|
78
|
-
handleInputChange: _,
|
|
79
|
-
handleCustomFieldChange: j,
|
|
80
|
-
customFieldsData: N,
|
|
81
|
-
handlePhoneCountryChange: G,
|
|
82
|
-
handleCountryChange: T,
|
|
83
|
-
handleGenderChange: W,
|
|
84
|
-
handleSubmit: async (t) => {
|
|
85
|
-
var c;
|
|
86
|
-
t && t.preventDefault(), C(null);
|
|
87
|
-
const n = {
|
|
88
|
-
firstName: e.firstName,
|
|
89
|
-
lastName: e.lastName,
|
|
90
|
-
fullName: e.fullName,
|
|
91
|
-
email: e.email,
|
|
92
|
-
gender: e.gender,
|
|
93
|
-
country: e.country,
|
|
94
|
-
phoneCountryCode: "+" + (((c = e.phoneCountryCode) == null ? void 0 : c.phone) ?? ""),
|
|
95
|
-
phoneNumber: e.phoneNumber,
|
|
96
|
-
campaignId: b,
|
|
97
|
-
campaignName: F,
|
|
98
|
-
contentType: D,
|
|
99
|
-
contentId: P,
|
|
100
|
-
contentName: w,
|
|
101
|
-
customFields: N
|
|
102
|
-
}, o = [
|
|
103
|
-
"firstName",
|
|
104
|
-
"lastName",
|
|
105
|
-
"fullName",
|
|
106
|
-
"email",
|
|
107
|
-
"gender",
|
|
108
|
-
"country",
|
|
109
|
-
"phoneCountryCode",
|
|
110
|
-
"phoneNumber",
|
|
111
|
-
"customFields"
|
|
112
|
-
], l = Object.fromEntries(
|
|
113
|
-
Object.entries(n).map(([a, u]) => o.includes(a) ? a === "customFields" ? [a, u] : r.includes(a) && u !== "" && u !== null ? [a, u] : [a, null] : [a, u])
|
|
114
|
-
);
|
|
115
|
-
h(!0);
|
|
116
|
-
try {
|
|
117
|
-
await d.profile.collectLead(l), await q(), x(!0);
|
|
118
|
-
} catch {
|
|
119
|
-
C("leads.form.error");
|
|
120
|
-
} finally {
|
|
121
|
-
h(!1);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
countries: H
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
export {
|
|
128
|
-
X as useLeadForm
|
|
129
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useState as m, useCallback as f, useEffect as h } from "react";
|
|
2
|
-
import { useColorScheme as w } from "../../../../node_modules/@mui/joy/styles/CssVarsProvider.js";
|
|
3
|
-
const k = (d, r = "theme-mode") => {
|
|
4
|
-
const [l, u] = m(d), [o, c] = m(d), { mode: a, setMode: t } = w(), n = a || o, s = f(
|
|
5
|
-
(e) => {
|
|
6
|
-
c(e), t && t(e), typeof window < "u" && localStorage.setItem(r, e);
|
|
7
|
-
},
|
|
8
|
-
[t, r]
|
|
9
|
-
), M = f(() => {
|
|
10
|
-
s(n === "light" ? "dark" : "light");
|
|
11
|
-
}, [n, s]);
|
|
12
|
-
return h(() => {
|
|
13
|
-
if (typeof window < "u" && window.matchMedia) {
|
|
14
|
-
const e = window.matchMedia("(prefers-color-scheme: dark)"), i = (g) => {
|
|
15
|
-
u(g.matches ? "dark" : "light");
|
|
16
|
-
};
|
|
17
|
-
return e.addEventListener("change", i), () => e.removeEventListener("change", i);
|
|
18
|
-
}
|
|
19
|
-
}, []), h(() => {
|
|
20
|
-
t && a !== o && (t(o), c(o));
|
|
21
|
-
}, [t]), {
|
|
22
|
-
mode: n,
|
|
23
|
-
toggleMode: M,
|
|
24
|
-
setMode: s,
|
|
25
|
-
systemPreference: l
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
k as useThemeMode
|
|
30
|
-
};
|