fansunited-frontend-components 0.0.31-RC3 → 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.d.ts +4 -0
- package/ClassicQuizPlay.d.ts.map +1 -0
- package/ClassicQuizPlay.js +5 -0
- package/CollectLead.d.ts +4 -0
- package/CollectLead.d.ts.map +1 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.d.ts +4 -0
- package/EventGamePlay.d.ts.map +1 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.d.ts +4 -0
- package/MatchQuizPlay.d.ts.map +1 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.d.ts +4 -0
- package/PersonalityQuizPlay.d.ts.map +1 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.d.ts +4 -0
- package/PollVote.d.ts.map +1 -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.d.ts +6 -1
- package/index.d.ts.map +1 -1
- 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 -105201
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { j as n } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as t, Typography as a } from "@mui/joy";
|
|
3
|
+
import { useFontFamily as d, isTablet as g, isMobile as f } from "../../../../common/src/functions/theme.js";
|
|
4
|
+
import { getBrandingClickUrl as h } from "../../../../common/src/functions/helpers.js";
|
|
5
|
+
import "../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
const z = (e) => {
|
|
11
|
+
const o = d().secondary, s = g(), x = e.isSplitVariant && s, c = f(), i = h(e.primaryUrl, e.secondaryUrl, "logo");
|
|
12
|
+
if (!e.brandingLogo)
|
|
13
|
+
return null;
|
|
14
|
+
const m = () => {
|
|
15
|
+
i && window.open(i, "_blank", "noopener,noreferrer");
|
|
16
|
+
}, l = /* @__PURE__ */ n.jsx(
|
|
17
|
+
"img",
|
|
18
|
+
{
|
|
19
|
+
src: e.brandingLogo,
|
|
20
|
+
alt: "branding-logo",
|
|
21
|
+
style: {
|
|
22
|
+
maxHeight: "50px",
|
|
23
|
+
maxWidth: "100px"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
), r = i ? typeof window > "u" ? /* @__PURE__ */ n.jsx(
|
|
27
|
+
t,
|
|
28
|
+
{
|
|
29
|
+
component: "a",
|
|
30
|
+
href: i,
|
|
31
|
+
target: "_blank",
|
|
32
|
+
rel: "noopener noreferrer",
|
|
33
|
+
sx: {
|
|
34
|
+
cursor: "pointer",
|
|
35
|
+
textDecoration: "none",
|
|
36
|
+
display: "inline-flex"
|
|
37
|
+
},
|
|
38
|
+
children: l
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ n.jsx(
|
|
41
|
+
t,
|
|
42
|
+
{
|
|
43
|
+
onClick: m,
|
|
44
|
+
sx: {
|
|
45
|
+
cursor: "pointer",
|
|
46
|
+
display: "inline-flex"
|
|
47
|
+
},
|
|
48
|
+
children: l
|
|
49
|
+
}
|
|
50
|
+
) : l;
|
|
51
|
+
return e.isCentered || x || c ? /* @__PURE__ */ n.jsxs(
|
|
52
|
+
t,
|
|
53
|
+
{
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
gap: "8px",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
minWidth: "180px",
|
|
60
|
+
fontSize: "1em",
|
|
61
|
+
zIndex: 1
|
|
62
|
+
},
|
|
63
|
+
children: [
|
|
64
|
+
e.label && /* @__PURE__ */ n.jsx(
|
|
65
|
+
a,
|
|
66
|
+
{
|
|
67
|
+
level: "body-sm",
|
|
68
|
+
sx: {
|
|
69
|
+
fontWeight: 400,
|
|
70
|
+
lineHeight: "166%",
|
|
71
|
+
letterSpacing: "0.4px",
|
|
72
|
+
fontSize: "1em",
|
|
73
|
+
color: e.textColor,
|
|
74
|
+
textAlign: "right",
|
|
75
|
+
fontFamily: o
|
|
76
|
+
},
|
|
77
|
+
children: e.label
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
r
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
) : /* @__PURE__ */ n.jsxs(
|
|
84
|
+
t,
|
|
85
|
+
{
|
|
86
|
+
sx: {
|
|
87
|
+
minWidth: "180px",
|
|
88
|
+
display: "flex",
|
|
89
|
+
gap: "8px",
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
zIndex: 10,
|
|
92
|
+
fontSize: "1em"
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
e.label && /* @__PURE__ */ n.jsx(
|
|
96
|
+
a,
|
|
97
|
+
{
|
|
98
|
+
level: "body-sm",
|
|
99
|
+
sx: {
|
|
100
|
+
fontWeight: 400,
|
|
101
|
+
lineHeight: "166%",
|
|
102
|
+
letterSpacing: "0.4px",
|
|
103
|
+
textAlign: "right",
|
|
104
|
+
fontSize: "1em",
|
|
105
|
+
color: e.textColor,
|
|
106
|
+
fontFamily: o
|
|
107
|
+
},
|
|
108
|
+
children: e.label
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
r
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
z as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useState as w, useEffect as v } from "react";
|
|
3
|
+
import { Box as n, AspectRatio as z, Typography as c } from "@mui/joy";
|
|
4
|
+
import { useInternalTheme as I, useColors as R, useCornerRadius as f, useFontFamily as W, useSpacingScale as P } from "../../../../../common/src/functions/theme.js";
|
|
5
|
+
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
import y from "../../../../../../node_modules/@mui/icons-material/esm/People.js";
|
|
10
|
+
const L = (t) => {
|
|
11
|
+
var g;
|
|
12
|
+
const [u, S] = w(0), r = I(), x = R(), j = f().sm, s = W(), d = f().xs, o = P(), h = t.optionsImages.get(t.option.id), i = t.selectedOptions.includes(t.option.id), C = ((g = t.brandingColors) == null ? void 0 : g.primaryColor) || x.palette.primary.plainColor, l = x.palette.primary.onPrimary, p = i ? l : r.colorSchemes.light.textColor, m = t.option.votes, a = t.totalVotes > 0 ? m / t.totalVotes * 100 : 0;
|
|
13
|
+
v(() => {
|
|
14
|
+
const b = setTimeout(() => {
|
|
15
|
+
S(a);
|
|
16
|
+
}, 100);
|
|
17
|
+
return () => clearTimeout(b);
|
|
18
|
+
}, [a]);
|
|
19
|
+
const F = () => h ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ e.jsx(
|
|
21
|
+
n,
|
|
22
|
+
{
|
|
23
|
+
sx: {
|
|
24
|
+
borderRadius: d,
|
|
25
|
+
overflow: "hidden",
|
|
26
|
+
flexGrow: 1,
|
|
27
|
+
mb: o["2xs"]
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ e.jsx(z, { ratio: "16/9", sx: { borderRadius: d }, children: /* @__PURE__ */ e.jsx(
|
|
30
|
+
"img",
|
|
31
|
+
{
|
|
32
|
+
src: h,
|
|
33
|
+
alt: "Option illustration",
|
|
34
|
+
style: {
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%",
|
|
37
|
+
objectFit: "cover"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
) })
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e.jsxs(
|
|
44
|
+
n,
|
|
45
|
+
{
|
|
46
|
+
sx: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
justifyContent: "center",
|
|
50
|
+
gap: o["2xs"],
|
|
51
|
+
my: o["2xs"]
|
|
52
|
+
},
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ e.jsx(
|
|
55
|
+
y,
|
|
56
|
+
{
|
|
57
|
+
sx: {
|
|
58
|
+
fontSize: 12,
|
|
59
|
+
color: i ? l : r.colorSchemes.light.textColor
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ e.jsxs(
|
|
64
|
+
c,
|
|
65
|
+
{
|
|
66
|
+
level: "body-sm",
|
|
67
|
+
sx: {
|
|
68
|
+
fontSize: "0.7em",
|
|
69
|
+
fontWeight: 500,
|
|
70
|
+
color: i ? l : r.colorSchemes.light.textColor,
|
|
71
|
+
fontFamily: s.secondary,
|
|
72
|
+
whiteSpace: "nowrap",
|
|
73
|
+
lineHeight: 1
|
|
74
|
+
},
|
|
75
|
+
children: [
|
|
76
|
+
m.toLocaleString(),
|
|
77
|
+
" (",
|
|
78
|
+
a.toFixed(1),
|
|
79
|
+
"%)"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ e.jsx(
|
|
87
|
+
c,
|
|
88
|
+
{
|
|
89
|
+
level: "body-md",
|
|
90
|
+
sx: {
|
|
91
|
+
fontFamily: s.primary,
|
|
92
|
+
fontWeight: 500,
|
|
93
|
+
fontSize: "0.935em",
|
|
94
|
+
lineHeight: "24px",
|
|
95
|
+
letterSpacing: "0.46px",
|
|
96
|
+
textAlign: "center",
|
|
97
|
+
color: p,
|
|
98
|
+
px: o["2xs"]
|
|
99
|
+
},
|
|
100
|
+
children: t.option.title
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] }) : /* @__PURE__ */ e.jsxs(
|
|
104
|
+
n,
|
|
105
|
+
{
|
|
106
|
+
sx: {
|
|
107
|
+
position: "relative",
|
|
108
|
+
zIndex: 1,
|
|
109
|
+
display: "flex",
|
|
110
|
+
gap: o.xs
|
|
111
|
+
},
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ e.jsxs(
|
|
114
|
+
n,
|
|
115
|
+
{
|
|
116
|
+
sx: {
|
|
117
|
+
display: "flex",
|
|
118
|
+
flexDirection: "column",
|
|
119
|
+
justifyContent: "center",
|
|
120
|
+
gap: o["2xs"],
|
|
121
|
+
flexShrink: 0,
|
|
122
|
+
minWidth: "fit-content"
|
|
123
|
+
},
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ e.jsxs(
|
|
126
|
+
n,
|
|
127
|
+
{
|
|
128
|
+
sx: {
|
|
129
|
+
display: "flex",
|
|
130
|
+
alignItems: "center",
|
|
131
|
+
gap: o["2xs"]
|
|
132
|
+
},
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ e.jsx(
|
|
135
|
+
y,
|
|
136
|
+
{
|
|
137
|
+
sx: {
|
|
138
|
+
fontSize: 12,
|
|
139
|
+
color: i ? l : r.colorSchemes.light.textColor
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ e.jsx(
|
|
144
|
+
c,
|
|
145
|
+
{
|
|
146
|
+
level: "body-sm",
|
|
147
|
+
sx: {
|
|
148
|
+
fontSize: "0.7em",
|
|
149
|
+
fontWeight: 500,
|
|
150
|
+
color: i ? l : r.colorSchemes.light.textColor,
|
|
151
|
+
fontFamily: s.secondary,
|
|
152
|
+
whiteSpace: "nowrap",
|
|
153
|
+
lineHeight: 0
|
|
154
|
+
},
|
|
155
|
+
children: m.toLocaleString()
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
/* @__PURE__ */ e.jsxs(
|
|
162
|
+
c,
|
|
163
|
+
{
|
|
164
|
+
level: "body-sm",
|
|
165
|
+
sx: {
|
|
166
|
+
fontSize: "0.65em",
|
|
167
|
+
fontWeight: 400,
|
|
168
|
+
color: i ? l : r.colorSchemes.light.textColor,
|
|
169
|
+
fontFamily: s.secondary,
|
|
170
|
+
whiteSpace: "nowrap",
|
|
171
|
+
lineHeight: 1,
|
|
172
|
+
textAlign: "center"
|
|
173
|
+
},
|
|
174
|
+
children: [
|
|
175
|
+
"(",
|
|
176
|
+
a.toFixed(1),
|
|
177
|
+
"%)"
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ e.jsx(
|
|
185
|
+
n,
|
|
186
|
+
{
|
|
187
|
+
sx: {
|
|
188
|
+
display: "flex",
|
|
189
|
+
alignItems: "center",
|
|
190
|
+
flex: 1,
|
|
191
|
+
minWidth: 0,
|
|
192
|
+
gap: o.xs
|
|
193
|
+
},
|
|
194
|
+
children: /* @__PURE__ */ e.jsx(
|
|
195
|
+
c,
|
|
196
|
+
{
|
|
197
|
+
level: "body-md",
|
|
198
|
+
sx: {
|
|
199
|
+
fontFamily: s.primary,
|
|
200
|
+
fontWeight: 500,
|
|
201
|
+
fontSize: "0.935em",
|
|
202
|
+
lineHeight: "16px",
|
|
203
|
+
letterSpacing: "0.46px",
|
|
204
|
+
color: p,
|
|
205
|
+
flex: 1,
|
|
206
|
+
minWidth: 0,
|
|
207
|
+
wordBreak: "break-word",
|
|
208
|
+
hyphens: "auto",
|
|
209
|
+
textAlign: "center"
|
|
210
|
+
},
|
|
211
|
+
children: t.option.title
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
return /* @__PURE__ */ e.jsxs(
|
|
220
|
+
n,
|
|
221
|
+
{
|
|
222
|
+
sx: {
|
|
223
|
+
borderRadius: j,
|
|
224
|
+
flex: 1,
|
|
225
|
+
p: o.xs,
|
|
226
|
+
bgcolor: i ? C : "#FFFFFF",
|
|
227
|
+
display: "flex",
|
|
228
|
+
flexDirection: "column",
|
|
229
|
+
position: "relative",
|
|
230
|
+
overflow: "hidden",
|
|
231
|
+
justifyContent: "center"
|
|
232
|
+
},
|
|
233
|
+
children: [
|
|
234
|
+
/* @__PURE__ */ e.jsx(
|
|
235
|
+
n,
|
|
236
|
+
{
|
|
237
|
+
sx: {
|
|
238
|
+
position: "absolute",
|
|
239
|
+
top: 0,
|
|
240
|
+
left: 0,
|
|
241
|
+
height: "100%",
|
|
242
|
+
width: `${u}%`,
|
|
243
|
+
bgcolor: i ? x.palette.primary.primaryContainer : r.mode === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.2)",
|
|
244
|
+
transition: "width 0.8s ease-out",
|
|
245
|
+
zIndex: 0
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
F()
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
t.option.id
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
export {
|
|
256
|
+
L as default
|
|
257
|
+
};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as l, Typography as p } from "@mui/joy";
|
|
3
|
+
import f from "./PollOptionResult.js";
|
|
4
|
+
import g from "../../../../../../node_modules/@mui/icons-material/esm/People.js";
|
|
5
|
+
import { useSpacingScale as y, useColors as a, useFontFamily as j, useBorderSize as b } from "../../../../../common/src/functions/theme.js";
|
|
6
|
+
import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
7
|
+
import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "../../../../../common/src/providers/ConstantsProvider.js";
|
|
10
|
+
import "../../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
+
import { useTranslation as h } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
12
|
+
const v = (e) => {
|
|
13
|
+
const { t: c } = h(), s = y(), i = a(), d = j(), x = b().size, r = e.options.reduce(
|
|
14
|
+
(t, n) => t + (n.votes || 0),
|
|
15
|
+
0
|
|
16
|
+
);
|
|
17
|
+
if (e.optionsLayout === "twoByTwo") {
|
|
18
|
+
const t = [];
|
|
19
|
+
for (let n = 0; n < e.options.length; n += 2) {
|
|
20
|
+
const m = e.options.slice(n, n + 2);
|
|
21
|
+
t.push(m);
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ o.jsxs(
|
|
24
|
+
l,
|
|
25
|
+
{
|
|
26
|
+
sx: { display: "flex", flexDirection: "column", gap: s.md },
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ o.jsx(l, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: t.map((n, m) => /* @__PURE__ */ o.jsx(
|
|
29
|
+
l,
|
|
30
|
+
{
|
|
31
|
+
sx: {
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: {
|
|
34
|
+
xs: "column",
|
|
35
|
+
md: "row"
|
|
36
|
+
},
|
|
37
|
+
gap: 2
|
|
38
|
+
},
|
|
39
|
+
children: n.map((u) => /* @__PURE__ */ o.jsx(
|
|
40
|
+
f,
|
|
41
|
+
{
|
|
42
|
+
option: u,
|
|
43
|
+
optionsImages: e.optionsImages,
|
|
44
|
+
selectedOptions: e.selectedOptions,
|
|
45
|
+
brandingColors: e.brandingColors,
|
|
46
|
+
totalVotes: r
|
|
47
|
+
},
|
|
48
|
+
u.id
|
|
49
|
+
))
|
|
50
|
+
},
|
|
51
|
+
`row-${m}`
|
|
52
|
+
)) }),
|
|
53
|
+
/* @__PURE__ */ o.jsxs(
|
|
54
|
+
l,
|
|
55
|
+
{
|
|
56
|
+
sx: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
justifyContent: "center",
|
|
60
|
+
gap: s.xs,
|
|
61
|
+
pt: s.md,
|
|
62
|
+
borderTop: `${x} solid`,
|
|
63
|
+
borderColor: a().outlineEnabledBorder
|
|
64
|
+
},
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ o.jsx(
|
|
67
|
+
g,
|
|
68
|
+
{
|
|
69
|
+
sx: {
|
|
70
|
+
fontSize: 18,
|
|
71
|
+
color: i.textColor
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ o.jsxs(
|
|
76
|
+
p,
|
|
77
|
+
{
|
|
78
|
+
level: "body-sm",
|
|
79
|
+
sx: {
|
|
80
|
+
color: i.textColor,
|
|
81
|
+
fontWeight: 500,
|
|
82
|
+
fontFamily: d.secondary
|
|
83
|
+
},
|
|
84
|
+
children: [
|
|
85
|
+
r.toLocaleString(),
|
|
86
|
+
" ",
|
|
87
|
+
c("poll.totalVotes")
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
return e.optionsLayout === "column" ? /* @__PURE__ */ o.jsxs(
|
|
99
|
+
l,
|
|
100
|
+
{
|
|
101
|
+
sx: { display: "flex", flexDirection: "column", gap: s.md },
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ o.jsx(l, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: e.options.map((t) => /* @__PURE__ */ o.jsx(
|
|
104
|
+
f,
|
|
105
|
+
{
|
|
106
|
+
option: t,
|
|
107
|
+
selectedOptions: e.selectedOptions,
|
|
108
|
+
optionsImages: e.optionsImages,
|
|
109
|
+
brandingColors: e.brandingColors,
|
|
110
|
+
totalVotes: r
|
|
111
|
+
},
|
|
112
|
+
t.id
|
|
113
|
+
)) }),
|
|
114
|
+
/* @__PURE__ */ o.jsxs(
|
|
115
|
+
l,
|
|
116
|
+
{
|
|
117
|
+
sx: {
|
|
118
|
+
display: "flex",
|
|
119
|
+
alignItems: "center",
|
|
120
|
+
justifyContent: "center",
|
|
121
|
+
gap: s.xs,
|
|
122
|
+
pt: s.md,
|
|
123
|
+
borderTop: `${x} solid`,
|
|
124
|
+
borderColor: a().outlineEnabledBorder
|
|
125
|
+
},
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ o.jsx(
|
|
128
|
+
g,
|
|
129
|
+
{
|
|
130
|
+
sx: {
|
|
131
|
+
fontSize: 18,
|
|
132
|
+
color: i.textColor
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ o.jsxs(
|
|
137
|
+
p,
|
|
138
|
+
{
|
|
139
|
+
level: "body-sm",
|
|
140
|
+
sx: {
|
|
141
|
+
color: i.textColor,
|
|
142
|
+
fontWeight: 500,
|
|
143
|
+
fontFamily: d.secondary
|
|
144
|
+
},
|
|
145
|
+
children: [
|
|
146
|
+
r.toLocaleString(),
|
|
147
|
+
" ",
|
|
148
|
+
c("poll.totalVotes")
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
) : /* @__PURE__ */ o.jsxs(
|
|
158
|
+
l,
|
|
159
|
+
{
|
|
160
|
+
sx: { display: "flex", flexDirection: "column", gap: s.md },
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ o.jsx(
|
|
163
|
+
l,
|
|
164
|
+
{
|
|
165
|
+
sx: {
|
|
166
|
+
py: 2,
|
|
167
|
+
display: "flex",
|
|
168
|
+
flexWrap: "wrap",
|
|
169
|
+
flexDirection: { xs: "column", md: "row" },
|
|
170
|
+
gap: 2
|
|
171
|
+
},
|
|
172
|
+
children: e.options.map((t) => /* @__PURE__ */ o.jsx(
|
|
173
|
+
f,
|
|
174
|
+
{
|
|
175
|
+
option: t,
|
|
176
|
+
selectedOptions: e.selectedOptions,
|
|
177
|
+
optionsImages: e.optionsImages,
|
|
178
|
+
brandingColors: e.brandingColors,
|
|
179
|
+
totalVotes: r
|
|
180
|
+
},
|
|
181
|
+
t.id
|
|
182
|
+
))
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ o.jsxs(
|
|
186
|
+
l,
|
|
187
|
+
{
|
|
188
|
+
sx: {
|
|
189
|
+
display: "flex",
|
|
190
|
+
alignItems: "center",
|
|
191
|
+
justifyContent: "center",
|
|
192
|
+
gap: s.xs,
|
|
193
|
+
pt: s.md,
|
|
194
|
+
borderTop: `${x} solid`,
|
|
195
|
+
borderColor: a().outlineEnabledBorder
|
|
196
|
+
},
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ o.jsx(
|
|
199
|
+
g,
|
|
200
|
+
{
|
|
201
|
+
sx: {
|
|
202
|
+
fontSize: 18,
|
|
203
|
+
color: i.textColor
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ o.jsxs(
|
|
208
|
+
p,
|
|
209
|
+
{
|
|
210
|
+
level: "body-sm",
|
|
211
|
+
sx: {
|
|
212
|
+
color: i.textColor,
|
|
213
|
+
fontWeight: 500,
|
|
214
|
+
fontFamily: d.secondary
|
|
215
|
+
},
|
|
216
|
+
children: [
|
|
217
|
+
r.toLocaleString(),
|
|
218
|
+
" ",
|
|
219
|
+
c("poll.totalVotes")
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
};
|
|
230
|
+
export {
|
|
231
|
+
v as default
|
|
232
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { isMobile as n } from "../../../../../../common/src/functions/theme.js";
|
|
3
|
+
import { extractBrandingProperties 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 "@mui/joy";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import g from "../../../../../../common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js";
|
|
10
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
11
|
+
import d from "../../../../assets/default-quiz-bg.png.js";
|
|
12
|
+
import p from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
13
|
+
import u from "../../../Shared/PresentedBy.js";
|
|
14
|
+
import { useTranslation as f } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
15
|
+
const D = (r) => {
|
|
16
|
+
const { t: e } = f(), t = n(), i = r.defaultImagePlaceholderUrl ? r.defaultImagePlaceholderUrl : t ? p : d, { brandingLogo: a } = s(
|
|
17
|
+
r.poll.branding || null
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ o.jsx(
|
|
20
|
+
g,
|
|
21
|
+
{
|
|
22
|
+
entity: r.poll,
|
|
23
|
+
headline: e("poll.headline"),
|
|
24
|
+
tryAgainButtonText: e("poll.buttons.tryAgain"),
|
|
25
|
+
defaultImagePlaceholderUrl: i,
|
|
26
|
+
isApiError: r.isApiError,
|
|
27
|
+
toggleTryAgain: r.toggleTryAgain,
|
|
28
|
+
rulesDisplay: r.rulesDisplay,
|
|
29
|
+
renderPresentedBy: (m) => {
|
|
30
|
+
var l;
|
|
31
|
+
return /* @__PURE__ */ o.jsx(
|
|
32
|
+
u,
|
|
33
|
+
{
|
|
34
|
+
brandingLogo: a,
|
|
35
|
+
textColor: m,
|
|
36
|
+
label: ((l = r.poll.labels) == null ? void 0 : l.sponsor) || null
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
D as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import "@mui/joy";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import m from "../../../../../../common/src/components/LeadCollection/OverlayLeadAfterCollection.js";
|
|
9
|
+
import i from "../../../Shared/PresentedBy.js";
|
|
10
|
+
import r from "../../../Leads/CollectLeadWrapper.js";
|
|
11
|
+
import l from "../../../../assets/default-quiz-bg.png.js";
|
|
12
|
+
import a from "../../../../assets/default-quiz-bg-vertical.jpg.js";
|
|
13
|
+
import { useTranslation as d } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
14
|
+
const S = (e) => {
|
|
15
|
+
const { t } = d();
|
|
16
|
+
return /* @__PURE__ */ o.jsx(
|
|
17
|
+
m,
|
|
18
|
+
{
|
|
19
|
+
entity: e.poll,
|
|
20
|
+
headline: t("poll.headline"),
|
|
21
|
+
sdk: e.sdk,
|
|
22
|
+
leads: e.leads,
|
|
23
|
+
defaultImagePlaceholder: l,
|
|
24
|
+
mobileImagePlaceholder: a,
|
|
25
|
+
onLeadSubmitted: e.onLeadSubmitted,
|
|
26
|
+
isSubmitting: e.isSubmitting,
|
|
27
|
+
PresentedBy: i,
|
|
28
|
+
CollectLeadWrapper: r
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
S as default
|
|
34
|
+
};
|