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
package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const o = (r) => ({
|
|
2
|
-
// Pulse animation for buttons
|
|
3
|
-
pulseAnimation: {
|
|
4
|
-
"@keyframes pulse": {
|
|
5
|
-
"0%": { transform: "scale(1)" },
|
|
6
|
-
"50%": { transform: "scale(1.05)" },
|
|
7
|
-
"100%": { transform: "scale(1)" }
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
// Sign in button
|
|
11
|
-
signInButton: {
|
|
12
|
-
borderRadius: r.buttonRadius,
|
|
13
|
-
py: "10px",
|
|
14
|
-
px: "16px",
|
|
15
|
-
bgcolor: r.primaryColor,
|
|
16
|
-
color: r.onPrimaryColor,
|
|
17
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
18
|
-
transform: "scale(1)",
|
|
19
|
-
alignSelf: "center",
|
|
20
|
-
"&:hover": {
|
|
21
|
-
bgcolor: r.primaryColor,
|
|
22
|
-
transform: "scale(1.02)"
|
|
23
|
-
},
|
|
24
|
-
"&:active": {
|
|
25
|
-
color: r.onPrimaryColor,
|
|
26
|
-
transform: "scale(0.98)"
|
|
27
|
-
},
|
|
28
|
-
"&:disabled": {
|
|
29
|
-
bgcolor: r.primaryColor,
|
|
30
|
-
color: r.onPrimaryColor,
|
|
31
|
-
opacity: "12%"
|
|
32
|
-
},
|
|
33
|
-
animation: "pulse 1s infinite",
|
|
34
|
-
fontSize: "0.9375em"
|
|
35
|
-
},
|
|
36
|
-
// Sign in button text
|
|
37
|
-
signInButtonText: {
|
|
38
|
-
fontFamily: r.fontFamilyPrimary,
|
|
39
|
-
fontWeight: 500,
|
|
40
|
-
fontSize: "0.9375em",
|
|
41
|
-
lineHeight: "24px",
|
|
42
|
-
letterSpacing: "0.46px",
|
|
43
|
-
textTransform: "uppercase",
|
|
44
|
-
color: r.onPrimaryColor,
|
|
45
|
-
gap: "8px",
|
|
46
|
-
display: "flex",
|
|
47
|
-
alignItems: "center"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
o as createStyles
|
|
52
|
-
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import ce from "react";
|
|
3
|
-
import { Box as s, AspectRatio as W, Typography as O, Button as ue } from "@mui/joy";
|
|
4
|
-
import { useInternalTheme as me, isMobile as de, isExtraSmall as xe, useColors as m, useFontFamily as ge, useCornerRadius as h, useSpacingScale as he } from "../../../../../common/src/functions/theme.js";
|
|
5
|
-
import { hexToRgb as fe } from "../../../../../common/src/functions/helpers.js";
|
|
6
|
-
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
-
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
-
import { WidgetTemplate as Ce } from "../../../../../common/src/enums/enums.js";
|
|
9
|
-
import { useConstantContext as ye } from "../../../../../common/src/hooks/useConstantContext.js";
|
|
10
|
-
import { ConstantsContext as Qe } from "../../../../../common/src/providers/ConstantsProvider.js";
|
|
11
|
-
import je from "../../../../../common/src/components/Skeletons/Standard/StandardSkeleton.js";
|
|
12
|
-
import { useImageUrl as be } from "../../../../../common/src/hooks/useImageUrl.js";
|
|
13
|
-
import { useImageVariant as ze } from "../../../../../common/src/hooks/useImageVariant.js";
|
|
14
|
-
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
15
|
-
import M from "../../../../../../node_modules/@mui/icons-material/esm/ArrowRightAlt.js";
|
|
16
|
-
import Se from "../../Shared/Button.js";
|
|
17
|
-
import qe from "../../Shared/Answers/Answers.js";
|
|
18
|
-
import we from "../../Shared/Stepper.js";
|
|
19
|
-
import Te from "../../Shared/Stopwatch.js";
|
|
20
|
-
import Pe from "../../Shared/MainCard.js";
|
|
21
|
-
import Be from "../../Shared/PresentedBy.js";
|
|
22
|
-
import { quizTypes as Le } from "../../../constants/constants.js";
|
|
23
|
-
import { useEmbedCode as Ie } from "../../../hooks/useEmbedCodeContainer.js";
|
|
24
|
-
import { createStyles as Re } from "./StandardVariant.styles.js";
|
|
25
|
-
import Ae from "../../Leads/CollectLeadWrapper.js";
|
|
26
|
-
import { useTranslation as De } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
27
|
-
const ot = (e) => {
|
|
28
|
-
var C, y, Q, j, b, z, S, q, w, T, P, B, L, I, R, A, D, F;
|
|
29
|
-
const [V, _] = ce.useState(
|
|
30
|
-
((C = e.leads) == null ? void 0 : C.position) === "before" && e.classicQuiz.authRequirement === "LEAD"
|
|
31
|
-
), { optionsLayout: G } = ye(Qe), $ = Ie(
|
|
32
|
-
e.question.embedCode,
|
|
33
|
-
e.applyFilterScreen
|
|
34
|
-
), H = me(), d = be(e.question.images), { t: o } = De(), r = de(), J = xe(), i = ((y = e.classicQuiz.branding) == null ? void 0 : y.colors) || null, c = r ? ((Q = e.classicQuiz.branding) == null ? void 0 : Q.images.mobileLogo) || ((j = e.classicQuiz.branding) == null ? void 0 : j.images.mainLogo) || "" : ((b = e.classicQuiz.branding) == null ? void 0 : b.images.mainLogo) || "", K = e.imagePosition || "left", x = ze(
|
|
35
|
-
{
|
|
36
|
-
images: e.classicQuiz.images,
|
|
37
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
38
|
-
},
|
|
39
|
-
Ce.STANDARD
|
|
40
|
-
), X = e.currentQuestion === e.classicQuiz.questionsCount && ((z = e.leads) == null ? void 0 : z.position) === "after" ? o("classicQuiz.buttons.continue") : e.currentQuestion === e.classicQuiz.questionsCount ? o("classicQuiz.buttons.finish") : o("classicQuiz.buttons.next"), g = J || r && !!x, l = (i == null ? void 0 : i.contentColor) || m().textColor, Y = ge().primary, Z = (i == null ? void 0 : i.backgroundColor) || m().surfaceVariant, p = h().md, ee = h().sm, f = (i == null ? void 0 : i.primaryColor) || m().palette.primary.plainColor, te = m().palette.primary.onPrimary, ie = h().xl, ne = he(), n = Re({
|
|
41
|
-
spacingScale: ne,
|
|
42
|
-
fontFamilyPrimary: Y,
|
|
43
|
-
textColor: l,
|
|
44
|
-
bgcolor: fe(Z || ""),
|
|
45
|
-
mdBorderRadius: p,
|
|
46
|
-
smBorderRadius: ee,
|
|
47
|
-
primaryColor: f,
|
|
48
|
-
onPrimaryColor: te,
|
|
49
|
-
buttonRadius: ie,
|
|
50
|
-
isExtraSmall: g,
|
|
51
|
-
isMobile: r
|
|
52
|
-
}), se = () => {
|
|
53
|
-
_(!1);
|
|
54
|
-
}, ae = (a) => {
|
|
55
|
-
a.preventDefault(), a.stopPropagation(), e.startPlaying();
|
|
56
|
-
}, oe = () => /* @__PURE__ */ t.jsx(
|
|
57
|
-
ue,
|
|
58
|
-
{
|
|
59
|
-
variant: "soft",
|
|
60
|
-
sx: {
|
|
61
|
-
...n.startButton,
|
|
62
|
-
...n.pulseAnimation
|
|
63
|
-
},
|
|
64
|
-
endDecorator: /* @__PURE__ */ t.jsx(M, {}),
|
|
65
|
-
onClick: ae,
|
|
66
|
-
children: /* @__PURE__ */ t.jsx(O, { sx: n.startButtonText, children: o("classicQuiz.buttons.start") })
|
|
67
|
-
}
|
|
68
|
-
), u = (a, re) => {
|
|
69
|
-
var U, k, v, E, N;
|
|
70
|
-
return /* @__PURE__ */ t.jsx(
|
|
71
|
-
Be,
|
|
72
|
-
{
|
|
73
|
-
brandingLogo: c,
|
|
74
|
-
textColor: a,
|
|
75
|
-
label: ((U = e.classicQuiz.labels) == null ? void 0 : U.sponsor) || null,
|
|
76
|
-
primaryUrl: (v = (k = e.classicQuiz.branding) == null ? void 0 : k.urls) == null ? void 0 : v.primaryUrl,
|
|
77
|
-
secondaryUrl: (N = (E = e.classicQuiz.branding) == null ? void 0 : E.urls) == null ? void 0 : N.secondaryUrl,
|
|
78
|
-
isCentered: re
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}, le = (a) => /* @__PURE__ */ t.jsxs(s, { sx: n.startButtonContainer, children: [
|
|
82
|
-
oe(),
|
|
83
|
-
u(a || l, !0)
|
|
84
|
-
] });
|
|
85
|
-
return /* @__PURE__ */ t.jsx(Pe, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t.jsx(
|
|
86
|
-
je,
|
|
87
|
-
{
|
|
88
|
-
entity: e.classicQuiz,
|
|
89
|
-
headline: o("classicQuiz.headline"),
|
|
90
|
-
finalImage: x,
|
|
91
|
-
imagePosition: K,
|
|
92
|
-
rulesDisplay: e.rulesDisplay,
|
|
93
|
-
filterScreenContent: e.applyFilterScreen ? le(
|
|
94
|
-
x && r ? (i == null ? void 0 : i.contentColor) || H.colorSchemes.dark.textColor : void 0
|
|
95
|
-
) : void 0,
|
|
96
|
-
children: e.applyFilterScreen ? null : /* @__PURE__ */ t.jsx(t.Fragment, { children: V ? /* @__PURE__ */ t.jsx(s, { sx: n.leadCollectionContainer, children: /* @__PURE__ */ t.jsxs(s, { sx: n.leadQuestionContainer, children: [
|
|
97
|
-
/* @__PURE__ */ t.jsx(s, { sx: n.leadContentContainer, children: /* @__PURE__ */ t.jsx(
|
|
98
|
-
Ae,
|
|
99
|
-
{
|
|
100
|
-
sdk: e.sdk,
|
|
101
|
-
startGame: se,
|
|
102
|
-
contentId: e.classicQuiz.id,
|
|
103
|
-
contentName: e.classicQuiz.title,
|
|
104
|
-
brandingColors: (S = e.classicQuiz.branding) == null ? void 0 : S.colors,
|
|
105
|
-
brandingUrls: (q = e.classicQuiz.branding) == null ? void 0 : q.urls,
|
|
106
|
-
campaignId: (w = e.leads) == null ? void 0 : w.campaignId,
|
|
107
|
-
campaignName: (T = e.leads) == null ? void 0 : T.campaignName,
|
|
108
|
-
fields: (P = e.leads) == null ? void 0 : P.fields,
|
|
109
|
-
leadTitle: (B = e.classicQuiz.labels) == null ? void 0 : B.leadTitle,
|
|
110
|
-
leadDescription: (L = e.classicQuiz.labels) == null ? void 0 : L.leadDescription,
|
|
111
|
-
syncWithProfile: (I = e.leads) == null ? void 0 : I.syncWithProfile,
|
|
112
|
-
leadCta: (R = e.classicQuiz.labels) == null ? void 0 : R.leadCta,
|
|
113
|
-
leadSuccessTitle: (A = e.classicQuiz.labels) == null ? void 0 : A.leadSuccessTitle,
|
|
114
|
-
leadSuccessDescription: (D = e.classicQuiz.labels) == null ? void 0 : D.leadSuccessDescription
|
|
115
|
-
}
|
|
116
|
-
) }),
|
|
117
|
-
u(l, !1)
|
|
118
|
-
] }) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
119
|
-
Le.includes(
|
|
120
|
-
(F = e.classicQuiz.type) == null ? void 0 : F.toLocaleLowerCase()
|
|
121
|
-
) && /* @__PURE__ */ t.jsx(s, { sx: n.stopwatchContainer, children: /* @__PURE__ */ t.jsx(
|
|
122
|
-
Te,
|
|
123
|
-
{
|
|
124
|
-
isRunning: e.isStopwatchRunning,
|
|
125
|
-
timer: e.stopwatchTime,
|
|
126
|
-
quizType: e.classicQuiz.type,
|
|
127
|
-
initialTime: e.classicQuiz.time || 10,
|
|
128
|
-
brandingPrimaryColor: (i == null ? void 0 : i.primaryColor) || null,
|
|
129
|
-
onTimeUpdate: e.onTimeUpdate
|
|
130
|
-
}
|
|
131
|
-
) }),
|
|
132
|
-
/* @__PURE__ */ t.jsx(s, { sx: n.paginationContainer, children: /* @__PURE__ */ t.jsx(
|
|
133
|
-
we,
|
|
134
|
-
{
|
|
135
|
-
classicQuiz: e.classicQuiz,
|
|
136
|
-
currentQuestion: e.currentQuestion,
|
|
137
|
-
userParticipation: e.userParticipation,
|
|
138
|
-
brandingPrimaryColor: i == null ? void 0 : i.primaryColor
|
|
139
|
-
}
|
|
140
|
-
) }),
|
|
141
|
-
/* @__PURE__ */ t.jsx(s, { sx: n.questionArea, children: /* @__PURE__ */ t.jsxs(s, { sx: n.questionContainer, children: [
|
|
142
|
-
/* @__PURE__ */ t.jsxs(s, { sx: n.questionContentContainer, children: [
|
|
143
|
-
e.question.embedCode && /* @__PURE__ */ t.jsx(
|
|
144
|
-
W,
|
|
145
|
-
{
|
|
146
|
-
ratio: "16/9",
|
|
147
|
-
sx: n.aspectRatioContainer,
|
|
148
|
-
children: /* @__PURE__ */ t.jsx(s, { ref: $ })
|
|
149
|
-
}
|
|
150
|
-
),
|
|
151
|
-
!e.question.embedCode && d && /* @__PURE__ */ t.jsx(
|
|
152
|
-
W,
|
|
153
|
-
{
|
|
154
|
-
ratio: "16/9",
|
|
155
|
-
sx: n.questionImageContainer,
|
|
156
|
-
children: /* @__PURE__ */ t.jsx(s, { sx: n.questionImageBox, children: /* @__PURE__ */ t.jsx(
|
|
157
|
-
"img",
|
|
158
|
-
{
|
|
159
|
-
src: d,
|
|
160
|
-
alt: "Question illustration",
|
|
161
|
-
style: n.questionImage
|
|
162
|
-
}
|
|
163
|
-
) })
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
/* @__PURE__ */ t.jsx(s, { sx: n.questionTextContainer, children: /* @__PURE__ */ t.jsx(O, { level: "body-lg", sx: n.questionText, children: e.question.question }) }),
|
|
167
|
-
/* @__PURE__ */ t.jsx(
|
|
168
|
-
qe,
|
|
169
|
-
{
|
|
170
|
-
options: e.question.options || [],
|
|
171
|
-
answerQuestion: e.answerQuestion,
|
|
172
|
-
selectedOption: e.selectedOption,
|
|
173
|
-
showAnswer: e.showAnswer,
|
|
174
|
-
optionsLayout: G ?? "twoByTwo",
|
|
175
|
-
questionImage: d,
|
|
176
|
-
brandingColors: i
|
|
177
|
-
}
|
|
178
|
-
)
|
|
179
|
-
] }),
|
|
180
|
-
/* @__PURE__ */ t.jsxs(
|
|
181
|
-
s,
|
|
182
|
-
{
|
|
183
|
-
sx: c ? n.footerContainer : n.footerContainerNoLogo,
|
|
184
|
-
children: [
|
|
185
|
-
c && !g ? u(l, !1) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
|
186
|
-
/* @__PURE__ */ t.jsx(s, { sx: n.navigationContainer, children: /* @__PURE__ */ t.jsx(
|
|
187
|
-
Se,
|
|
188
|
-
{
|
|
189
|
-
showAnswer: e.showAnswer,
|
|
190
|
-
selectedOption: e.selectedOption,
|
|
191
|
-
endDecorator: /* @__PURE__ */ t.jsx(M, {}),
|
|
192
|
-
label: X,
|
|
193
|
-
buttonColor: f,
|
|
194
|
-
isSubmitting: e.isSubmitting,
|
|
195
|
-
onClick: e.handleNext
|
|
196
|
-
}
|
|
197
|
-
) })
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
|
-
c && g ? u(l, !1) : /* @__PURE__ */ t.jsx(t.Fragment, {})
|
|
202
|
-
] }) })
|
|
203
|
-
] }) })
|
|
204
|
-
}
|
|
205
|
-
) });
|
|
206
|
-
};
|
|
207
|
-
export {
|
|
208
|
-
ot as default
|
|
209
|
-
};
|
package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
const a = (e) => ({
|
|
2
|
-
// Pulse animation for buttons
|
|
3
|
-
pulseAnimation: {
|
|
4
|
-
"@keyframes pulse": {
|
|
5
|
-
"0%": { transform: "scale(1)" },
|
|
6
|
-
"50%": { transform: "scale(1.05)" },
|
|
7
|
-
"100%": { transform: "scale(1)" }
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
// Start button container
|
|
11
|
-
startButtonContainer: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
flexDirection: "column",
|
|
14
|
-
justifyContent: "space-between",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
gap: e.spacingScale["2xl"]
|
|
17
|
-
},
|
|
18
|
-
// Start button
|
|
19
|
-
startButton: {
|
|
20
|
-
borderRadius: e.buttonRadius,
|
|
21
|
-
py: "10px",
|
|
22
|
-
pr: "12px",
|
|
23
|
-
pl: "16px",
|
|
24
|
-
bgcolor: e.primaryColor,
|
|
25
|
-
color: e.onPrimaryColor,
|
|
26
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
27
|
-
transform: "scale(1)",
|
|
28
|
-
alignSelf: "center",
|
|
29
|
-
"&:hover": {
|
|
30
|
-
bgcolor: e.primaryColor,
|
|
31
|
-
transform: "scale(1.02)"
|
|
32
|
-
},
|
|
33
|
-
"&:active": {
|
|
34
|
-
color: e.onPrimaryColor,
|
|
35
|
-
transform: "scale(0.98)"
|
|
36
|
-
},
|
|
37
|
-
"&:disabled": {
|
|
38
|
-
bgcolor: e.primaryColor,
|
|
39
|
-
color: e.onPrimaryColor,
|
|
40
|
-
opacity: "12%"
|
|
41
|
-
},
|
|
42
|
-
"--Icon-color": e.onPrimaryColor,
|
|
43
|
-
animation: "pulse 1s infinite",
|
|
44
|
-
fontSize: "0.9375em"
|
|
45
|
-
},
|
|
46
|
-
// Start button text
|
|
47
|
-
startButtonText: {
|
|
48
|
-
fontFamily: e.fontFamilyPrimary,
|
|
49
|
-
fontWeight: 500,
|
|
50
|
-
fontSize: "0.9375em",
|
|
51
|
-
lineHeight: "24px",
|
|
52
|
-
letterSpacing: "0.46px",
|
|
53
|
-
textTransform: "uppercase",
|
|
54
|
-
color: e.onPrimaryColor,
|
|
55
|
-
gap: "8px",
|
|
56
|
-
display: "flex",
|
|
57
|
-
alignItems: "center"
|
|
58
|
-
},
|
|
59
|
-
// Stopwatch container
|
|
60
|
-
stopwatchContainer: {
|
|
61
|
-
display: "flex",
|
|
62
|
-
justifyContent: "center"
|
|
63
|
-
},
|
|
64
|
-
// Pagination container
|
|
65
|
-
paginationContainer: {
|
|
66
|
-
display: "flex",
|
|
67
|
-
flexDirection: "column",
|
|
68
|
-
alignItems: "centered",
|
|
69
|
-
gap: e.spacingScale.md
|
|
70
|
-
},
|
|
71
|
-
// Lead collection container
|
|
72
|
-
leadCollectionContainer: {
|
|
73
|
-
display: "flex",
|
|
74
|
-
flexDirection: "column",
|
|
75
|
-
p: e.spacingScale.md
|
|
76
|
-
},
|
|
77
|
-
// Lead question container
|
|
78
|
-
leadQuestionContainer: {
|
|
79
|
-
display: "flex",
|
|
80
|
-
flexDirection: "column",
|
|
81
|
-
gap: e.isMobile ? e.spacingScale.lg : e.spacingScale.md
|
|
82
|
-
},
|
|
83
|
-
// Lead content container
|
|
84
|
-
leadContentContainer: {
|
|
85
|
-
borderRadius: e.mdBorderRadius,
|
|
86
|
-
px: e.spacingScale.md,
|
|
87
|
-
pt: e.spacingScale.md,
|
|
88
|
-
pb: e.spacingScale.lg,
|
|
89
|
-
gap: e.spacingScale.md,
|
|
90
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
91
|
-
display: "flex",
|
|
92
|
-
flexDirection: "column",
|
|
93
|
-
backdropFilter: "blur(4px)"
|
|
94
|
-
},
|
|
95
|
-
// Question area
|
|
96
|
-
questionArea: {
|
|
97
|
-
display: "flex",
|
|
98
|
-
flexDirection: "column",
|
|
99
|
-
p: e.spacingScale.md
|
|
100
|
-
},
|
|
101
|
-
// Question container
|
|
102
|
-
questionContainer: {
|
|
103
|
-
display: "flex",
|
|
104
|
-
flexDirection: "column",
|
|
105
|
-
gap: e.isMobile ? e.spacingScale.lg : e.spacingScale.md
|
|
106
|
-
},
|
|
107
|
-
// Question content container
|
|
108
|
-
questionContentContainer: {
|
|
109
|
-
borderRadius: e.mdBorderRadius,
|
|
110
|
-
px: e.spacingScale.md,
|
|
111
|
-
pt: e.spacingScale.md,
|
|
112
|
-
pb: e.spacingScale.lg,
|
|
113
|
-
gap: e.spacingScale.md,
|
|
114
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
115
|
-
display: "flex",
|
|
116
|
-
flexDirection: "column",
|
|
117
|
-
backdropFilter: "blur(4px)"
|
|
118
|
-
},
|
|
119
|
-
// Aspect ratio container for embed/image
|
|
120
|
-
aspectRatioContainer: {
|
|
121
|
-
borderRadius: e.smBorderRadius
|
|
122
|
-
},
|
|
123
|
-
// Question image container
|
|
124
|
-
questionImageContainer: {
|
|
125
|
-
overflow: "hidden",
|
|
126
|
-
borderRadius: e.smBorderRadius
|
|
127
|
-
},
|
|
128
|
-
// Question image box
|
|
129
|
-
questionImageBox: {
|
|
130
|
-
borderRadius: e.smBorderRadius,
|
|
131
|
-
overflow: "hidden",
|
|
132
|
-
height: "auto"
|
|
133
|
-
},
|
|
134
|
-
// Question image
|
|
135
|
-
questionImage: {
|
|
136
|
-
width: "100%",
|
|
137
|
-
height: "100%",
|
|
138
|
-
objectFit: "cover"
|
|
139
|
-
},
|
|
140
|
-
// Question text container
|
|
141
|
-
questionTextContainer: {
|
|
142
|
-
gap: "8px",
|
|
143
|
-
display: "flex",
|
|
144
|
-
justifyContent: "center"
|
|
145
|
-
},
|
|
146
|
-
// Question text
|
|
147
|
-
questionText: {
|
|
148
|
-
fontFamily: e.fontFamilyPrimary,
|
|
149
|
-
lineHeight: "150%",
|
|
150
|
-
letterSpacing: "0.15px",
|
|
151
|
-
fontWeight: 500,
|
|
152
|
-
fontSize: "1.25em",
|
|
153
|
-
textAlign: "center",
|
|
154
|
-
color: e.textColor
|
|
155
|
-
},
|
|
156
|
-
// Footer container
|
|
157
|
-
footerContainer: {
|
|
158
|
-
display: "flex",
|
|
159
|
-
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
160
|
-
justifyContent: "space-between",
|
|
161
|
-
alignItems: "center",
|
|
162
|
-
gap: e.spacingScale.lg
|
|
163
|
-
},
|
|
164
|
-
// Footer container (no logo)
|
|
165
|
-
footerContainerNoLogo: {
|
|
166
|
-
display: "flex",
|
|
167
|
-
flexDirection: e.isExtraSmall ? "column" : "row",
|
|
168
|
-
justifyContent: "flex-end",
|
|
169
|
-
alignItems: "center",
|
|
170
|
-
gap: e.spacingScale.lg
|
|
171
|
-
},
|
|
172
|
-
// Navigation container
|
|
173
|
-
navigationContainer: {
|
|
174
|
-
display: "flex",
|
|
175
|
-
gap: e.spacingScale.md,
|
|
176
|
-
justifyContent: "center",
|
|
177
|
-
alignItems: "center"
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
export {
|
|
181
|
-
a as createStyles
|
|
182
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ClassicQuizFullModel as u } from "fansunited-sdk-esm";
|
|
2
|
-
import { useState as l, useEffect as o } from "react";
|
|
3
|
-
const m = (t, c) => {
|
|
4
|
-
const [i, s] = l(
|
|
5
|
-
null
|
|
6
|
-
), r = async () => {
|
|
7
|
-
try {
|
|
8
|
-
const e = await c.miniGames.getClassicQuizById(t, !0, !0);
|
|
9
|
-
s(e);
|
|
10
|
-
} catch (e) {
|
|
11
|
-
console.error(e), s(new u());
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
return o(() => (r(), () => s(null)), [t, c]), i;
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
m as useClassicQuizById
|
|
18
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useRef as f, useEffect as m } from "react";
|
|
2
|
-
const p = (c, a) => {
|
|
3
|
-
const r = f(null);
|
|
4
|
-
return m(() => {
|
|
5
|
-
var s;
|
|
6
|
-
if (c && r.current) {
|
|
7
|
-
r.current.innerHTML = c;
|
|
8
|
-
const i = r.current.getElementsByTagName("iframe");
|
|
9
|
-
for (let t = 0; t < i.length; t++) {
|
|
10
|
-
const e = i[t], n = e.src;
|
|
11
|
-
e.src = "", setTimeout(() => {
|
|
12
|
-
e.src = n;
|
|
13
|
-
}, 100);
|
|
14
|
-
}
|
|
15
|
-
const o = r.current.getElementsByTagName("script");
|
|
16
|
-
for (let t = 0; t < o.length; t++) {
|
|
17
|
-
const e = o[t], n = document.createElement("script");
|
|
18
|
-
Array.from(e.attributes).forEach((u) => {
|
|
19
|
-
n.setAttribute(u.name, u.value);
|
|
20
|
-
}), n.innerHTML = e.innerHTML, (s = e.parentNode) == null || s.replaceChild(n, e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return () => {
|
|
24
|
-
r.current && (r.current.innerHTML = "");
|
|
25
|
-
};
|
|
26
|
-
}, [c, a]), r;
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
p as useEmbedCode
|
|
30
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ClassicQuizUserParticipationModel as g } from "fansunited-sdk-esm";
|
|
2
|
-
import { useState as a, useEffect as m } from "react";
|
|
3
|
-
const P = (s, e, u) => {
|
|
4
|
-
const [f, o] = a(null), [p, r] = a(!1), [l, t] = a(!1), d = async () => {
|
|
5
|
-
try {
|
|
6
|
-
const i = await e.miniGames.getMyClassicQuizParticipations({
|
|
7
|
-
classicQuizIds: [s]
|
|
8
|
-
});
|
|
9
|
-
o(i);
|
|
10
|
-
} catch (i) {
|
|
11
|
-
if (o([new g()]), e.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
12
|
-
const c = i;
|
|
13
|
-
if (c.error.code === 401 || c.error.code === 403) {
|
|
14
|
-
r(!0);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
t(!0);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const n = i;
|
|
21
|
-
if (n.data.error.code === 401 || n.data.error.code === 403) {
|
|
22
|
-
r(!0);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
t(!0);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return m(() => (d(), () => {
|
|
29
|
-
o([]), r(!1), t(!1);
|
|
30
|
-
}), [s, e, u]), {
|
|
31
|
-
myParticipation: f,
|
|
32
|
-
isUnauthorized: p,
|
|
33
|
-
isApiError: l,
|
|
34
|
-
setIsUnauthorized: r,
|
|
35
|
-
setIsApiError: t
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
P as useMyParticipation
|
|
40
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { useMemo as g } from "react";
|
|
2
|
-
import "../../../common/src/providers/ContainerProvider.js";
|
|
3
|
-
import { isAndroid as S } from "../../../common/src/functions/helpers.js";
|
|
4
|
-
import "../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
-
import "../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
-
import "../../../../node_modules/react/jsx-runtime.js";
|
|
7
|
-
import "@mui/joy";
|
|
8
|
-
import "../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
-
import b from "../assets/hexagons/shape-hexagon-warning.svg.js";
|
|
10
|
-
import Q from "../assets/hexagons/shape-hexagon-danger.svg.js";
|
|
11
|
-
import D from "../assets/hexagons/shape-hexagon-success.svg.js";
|
|
12
|
-
import z from "../assets/emojis/sports-medal.svg.js";
|
|
13
|
-
import C from "../assets/emojis/trophy.svg.js";
|
|
14
|
-
import w from "../assets/emojis/crown.svg.js";
|
|
15
|
-
import x from "../assets/emojis/thumbs-down.svg.js";
|
|
16
|
-
import I from "../assets/emojis/person-facepalming.svg.js";
|
|
17
|
-
import k from "../assets/emojis/upside-down-face.svg.js";
|
|
18
|
-
import E from "../assets/emojis/hundred-points.svg.js";
|
|
19
|
-
import M from "../assets/emojis/direct-hit.svg.js";
|
|
20
|
-
import H from "../assets/emojis/bottle-with-popping-cork.svg.js";
|
|
21
|
-
import v from "../assets/emojis/3dicons-thumb-down-dynamic-color.svg.js";
|
|
22
|
-
import y from "../assets/emojis/3dicons-medal-dynamic-color.svg.js";
|
|
23
|
-
import R from "../assets/emojis/3dicons-flag-dynamic-color.svg.js";
|
|
24
|
-
import $ from "../assets/emojis/3dicons-target-dynamic-color.svg.js";
|
|
25
|
-
import B from "../assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js";
|
|
26
|
-
import T from "../assets/emojis/3dicons-rocket-dynamic-color.svg.js";
|
|
27
|
-
import A from "../assets/emojis/3dicons-crow-dynamic-color.svg.js";
|
|
28
|
-
import F from "../assets/emojis/3dicons-fire-dynamic-color.svg.js";
|
|
29
|
-
import { useTranslation as j } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
30
|
-
const p = {
|
|
31
|
-
perfectScore: {
|
|
32
|
-
light: [C, w, E],
|
|
33
|
-
dark: [T, A, F]
|
|
34
|
-
},
|
|
35
|
-
averageScore: {
|
|
36
|
-
light: [z, H, M],
|
|
37
|
-
dark: [y, B, $]
|
|
38
|
-
},
|
|
39
|
-
badScore: {
|
|
40
|
-
light: [x, I, k],
|
|
41
|
-
dark: [v, R]
|
|
42
|
-
}
|
|
43
|
-
}, u = {
|
|
44
|
-
danger: Q,
|
|
45
|
-
warning: b,
|
|
46
|
-
success: D
|
|
47
|
-
}, bo = ({
|
|
48
|
-
summary: s,
|
|
49
|
-
totalTime: n,
|
|
50
|
-
classicQuiz: c
|
|
51
|
-
}) => {
|
|
52
|
-
const { t: r } = j(), o = g(
|
|
53
|
-
() => Math.round(s.correct / s.classicQuizQuestions * 100),
|
|
54
|
-
[s.correct, s.classicQuizQuestions]
|
|
55
|
-
), f = () => o <= 30 ? u.danger : o === 100 ? u.success : u.warning, m = () => {
|
|
56
|
-
const t = Math.floor(n / 60), e = n % 60;
|
|
57
|
-
return t === 0 ? `${e} ${r("common.labels.sec")}` : `${t} ${r("common.labels.min")} ${e} ${r(
|
|
58
|
-
"common.labels.sec"
|
|
59
|
-
)}`;
|
|
60
|
-
};
|
|
61
|
-
return {
|
|
62
|
-
scorePercentage: o,
|
|
63
|
-
getHexagonBackground: f,
|
|
64
|
-
formatTime: m,
|
|
65
|
-
displayCongratulations: () => o <= 30 ? r("classicQuiz.congratulations.lowScore", {
|
|
66
|
-
score: s.correct,
|
|
67
|
-
questionsCount: s.classicQuizQuestions
|
|
68
|
-
}) : o === 100 ? r("classicQuiz.congratulations.perfectScore") : o >= 70 ? r("classicQuiz.congratulations.goodScore", {
|
|
69
|
-
score: s.correct,
|
|
70
|
-
questionsCount: s.classicQuizQuestions
|
|
71
|
-
}) : r("classicQuiz.congratulations.mediumScore"),
|
|
72
|
-
getRandomEmoji: (t) => {
|
|
73
|
-
let e;
|
|
74
|
-
o === 100 ? e = p.perfectScore[t] : o > 30 ? e = p.averageScore[t] : e = p.badScore[t];
|
|
75
|
-
const i = Math.floor(Math.random() * e.length);
|
|
76
|
-
return e[i];
|
|
77
|
-
},
|
|
78
|
-
shareResult: () => {
|
|
79
|
-
var h, d;
|
|
80
|
-
const t = window.location.href.split("?")[0], e = n ? r("classicQuiz.share.timedTitle", {
|
|
81
|
-
scorePercentage: o,
|
|
82
|
-
time: m()
|
|
83
|
-
}) : r("classicQuiz.share.title", {
|
|
84
|
-
scorePercentage: o
|
|
85
|
-
}), i = n ? r("classicQuiz.share.timedBody", {
|
|
86
|
-
scorePercentage: o,
|
|
87
|
-
titleQuiz: c.title,
|
|
88
|
-
time: m(),
|
|
89
|
-
hashtags: ((h = c.labels) == null ? void 0 : h.hashtags) || ""
|
|
90
|
-
}) : r("classicQuiz.share.body", {
|
|
91
|
-
scorePercentage: o,
|
|
92
|
-
titleQuiz: c.title,
|
|
93
|
-
hashtags: ((d = c.labels) == null ? void 0 : d.hashtags) || ""
|
|
94
|
-
});
|
|
95
|
-
if (navigator.share)
|
|
96
|
-
navigator.share({
|
|
97
|
-
title: e,
|
|
98
|
-
text: i,
|
|
99
|
-
url: t
|
|
100
|
-
}).then(() => console.log("Successfully shared")).catch((a) => console.error("Error sharing:", a));
|
|
101
|
-
else if (S())
|
|
102
|
-
try {
|
|
103
|
-
Android.shareData(e, i, t);
|
|
104
|
-
} catch (a) {
|
|
105
|
-
console.error("Error sharing on android:", a);
|
|
106
|
-
}
|
|
107
|
-
else
|
|
108
|
-
(() => {
|
|
109
|
-
const l = document.createElement("textarea");
|
|
110
|
-
l.value = i + " " + t, document.body.appendChild(l), l.select(), document.execCommand("copy"), document.body.removeChild(l);
|
|
111
|
-
})();
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
bo as useScoreStateHelpers
|
|
117
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import i from "./components/ClassicQuizPlay.js";
|
|
3
|
-
import s from "../../common/src/components/Portal.js";
|
|
4
|
-
const e = (a) => /* @__PURE__ */ r.jsx(s, { packageName: "classic-quiz-play", ...a, children: /* @__PURE__ */ r.jsx(i, { ...a }) });
|
|
5
|
-
export {
|
|
6
|
-
e as default
|
|
7
|
-
};
|