fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -86783
package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
};
|