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,181 @@
|
|
|
1
|
+
const o = (e) => {
|
|
2
|
+
var i, t, n, l;
|
|
3
|
+
return {
|
|
4
|
+
// Main headline section with background image
|
|
5
|
+
headlineSection: {
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
gap: "10px",
|
|
10
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
11
|
+
width: e.isMobile ? "100%" : "50%",
|
|
12
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
13
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
14
|
+
backgroundImage: e.finalImage ? `url(${e.finalImage})` : "none",
|
|
15
|
+
backgroundSize: "cover",
|
|
16
|
+
backgroundPosition: "center",
|
|
17
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
18
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
19
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
height: "auto",
|
|
22
|
+
position: "relative",
|
|
23
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
24
|
+
"&::before": e.finalImage ? {
|
|
25
|
+
content: '""',
|
|
26
|
+
position: "absolute",
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: "100%",
|
|
29
|
+
background: e.imageBackgroundGradient,
|
|
30
|
+
borderTopLeftRadius: "5px",
|
|
31
|
+
borderTopRightRadius: "5px"
|
|
32
|
+
} : {}
|
|
33
|
+
},
|
|
34
|
+
// Headline section without image
|
|
35
|
+
headlineSectionNoImage: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
justifyContent: "space-between",
|
|
39
|
+
gap: "10px",
|
|
40
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
41
|
+
width: e.isMobile ? "100%" : "50%",
|
|
42
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
43
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
44
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
45
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
46
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
47
|
+
overflow: "hidden",
|
|
48
|
+
height: "auto",
|
|
49
|
+
position: "relative",
|
|
50
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
51
|
+
backgroundColor: ((i = e.brandingColors) == null ? void 0 : i.backgroundColor) || e.textColor + "10"
|
|
52
|
+
},
|
|
53
|
+
// Embed code headline section (for poll-vote and classic-quiz-play)
|
|
54
|
+
embedCodeHeadlineSection: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
justifyContent: "space-between",
|
|
58
|
+
gap: "10px",
|
|
59
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
60
|
+
width: e.isMobile ? "100%" : "50%",
|
|
61
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
62
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
63
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
64
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
65
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
66
|
+
overflow: "hidden",
|
|
67
|
+
height: "auto",
|
|
68
|
+
position: "relative",
|
|
69
|
+
minHeight: e.isMobile ? "210px" : "430px"
|
|
70
|
+
},
|
|
71
|
+
// AspectRatio container for embed code
|
|
72
|
+
aspectRatioContainer: {
|
|
73
|
+
borderRadius: 0,
|
|
74
|
+
width: "100%",
|
|
75
|
+
height: "100%"
|
|
76
|
+
},
|
|
77
|
+
// Headline content wrapper
|
|
78
|
+
headlineContent: {
|
|
79
|
+
zIndex: 1,
|
|
80
|
+
height: "100%",
|
|
81
|
+
p: e.spacingScale.xl,
|
|
82
|
+
gap: e.spacingScale.xl,
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
justifyContent: "space-between"
|
|
86
|
+
},
|
|
87
|
+
// Embed code headline content (shown in question area when embed code is present)
|
|
88
|
+
embedCodeHeadlineContent: {
|
|
89
|
+
px: e.spacingScale.lg,
|
|
90
|
+
pt: e.spacingScale.lg,
|
|
91
|
+
display: "flex",
|
|
92
|
+
flexDirection: "column",
|
|
93
|
+
gap: e.spacingScale.md
|
|
94
|
+
},
|
|
95
|
+
// Headline typography (with image background)
|
|
96
|
+
headlineText: {
|
|
97
|
+
fontWeight: 500,
|
|
98
|
+
lineHeight: "166%",
|
|
99
|
+
letterSpacing: "1px",
|
|
100
|
+
fontSize: "0.75em",
|
|
101
|
+
color: ((t = e.brandingColors) == null ? void 0 : t.secondaryColor) || e.darkTextColor,
|
|
102
|
+
opacity: "70%",
|
|
103
|
+
textTransform: "uppercase",
|
|
104
|
+
fontFamily: e.fontFamilySecondary,
|
|
105
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
106
|
+
},
|
|
107
|
+
// Headline typography (without image background)
|
|
108
|
+
headlineTextNoImage: {
|
|
109
|
+
fontWeight: 500,
|
|
110
|
+
lineHeight: "166%",
|
|
111
|
+
letterSpacing: "1px",
|
|
112
|
+
fontSize: "0.75em",
|
|
113
|
+
color: e.secondaryColor,
|
|
114
|
+
opacity: "70%",
|
|
115
|
+
textTransform: "uppercase",
|
|
116
|
+
fontFamily: e.fontFamilySecondary,
|
|
117
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
118
|
+
},
|
|
119
|
+
// Content container
|
|
120
|
+
contentContainer: {
|
|
121
|
+
display: "flex",
|
|
122
|
+
flexDirection: "column",
|
|
123
|
+
gap: e.spacingScale["3xs"]
|
|
124
|
+
},
|
|
125
|
+
// Title typography (with image background)
|
|
126
|
+
titleText: {
|
|
127
|
+
fontWeight: 700,
|
|
128
|
+
lineHeight: "133%",
|
|
129
|
+
fontSize: "1.5em",
|
|
130
|
+
letterSpacing: "0.15px",
|
|
131
|
+
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
132
|
+
fontFamily: e.fontFamilyPrimary,
|
|
133
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
134
|
+
},
|
|
135
|
+
// Title typography (without image background)
|
|
136
|
+
titleTextNoImage: {
|
|
137
|
+
fontWeight: 700,
|
|
138
|
+
lineHeight: "133%",
|
|
139
|
+
fontSize: "1.5em",
|
|
140
|
+
letterSpacing: "0.15px",
|
|
141
|
+
color: e.textColor,
|
|
142
|
+
fontFamily: e.fontFamilyPrimary,
|
|
143
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
144
|
+
},
|
|
145
|
+
// Description typography (with image background)
|
|
146
|
+
descriptionText: {
|
|
147
|
+
fontWeight: 400,
|
|
148
|
+
lineHeight: "140%",
|
|
149
|
+
fontSize: "1.25em",
|
|
150
|
+
letterSpacing: "0.15px",
|
|
151
|
+
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
152
|
+
opacity: "70%",
|
|
153
|
+
fontFamily: e.fontFamilyPrimary,
|
|
154
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
155
|
+
},
|
|
156
|
+
// Description typography (without image background)
|
|
157
|
+
descriptionTextNoImage: {
|
|
158
|
+
fontWeight: 400,
|
|
159
|
+
lineHeight: "140%",
|
|
160
|
+
fontSize: "1.25em",
|
|
161
|
+
letterSpacing: "0.15px",
|
|
162
|
+
color: e.secondaryColor,
|
|
163
|
+
opacity: "70%",
|
|
164
|
+
fontFamily: e.fontFamilyPrimary,
|
|
165
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
166
|
+
},
|
|
167
|
+
// Question area / content section
|
|
168
|
+
questionArea: {
|
|
169
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
170
|
+
width: e.isMobile ? "100%" : "50%",
|
|
171
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
172
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
173
|
+
display: "flex",
|
|
174
|
+
flexDirection: "column",
|
|
175
|
+
justifyContent: "center"
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export {
|
|
180
|
+
o as createStyles
|
|
181
|
+
};
|
package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import F from "../../../AlertMessage.js";
|
|
3
|
+
import { useInternalTheme as E, isMobile as H, useSpacingScale as W, useFontFamily as g, useCornerRadius as q, useColors as o, useBorderSize as z, useImageBackgroundGradient as G } from "../../../../functions/theme.js";
|
|
4
|
+
import { stripHtmlTags as m } from "../../../../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 { WidgetTemplate as u } from "../../../../enums/enums.js";
|
|
8
|
+
import { Box as r, Typography as s, Button as N } from "@mui/joy";
|
|
9
|
+
import y from "../../../Rules.js";
|
|
10
|
+
import "react";
|
|
11
|
+
import "../../../../providers/ConstantsProvider.js";
|
|
12
|
+
import { createStyles as U } from "./StandardApiErrorSkeleton.styles.js";
|
|
13
|
+
import L from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
|
|
14
|
+
import { useImageVariant as O } from "../../../../hooks/useImageVariant.js";
|
|
15
|
+
import "../../../../providers/ContainerProvider.js";
|
|
16
|
+
import { useTranslation as V } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
17
|
+
const oe = (i) => {
|
|
18
|
+
var h;
|
|
19
|
+
const n = ((h = i.entity.branding) == null ? void 0 : h.colors) || null, j = E(), f = H(), l = O(
|
|
20
|
+
{
|
|
21
|
+
images: i.entity.images || null,
|
|
22
|
+
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
23
|
+
},
|
|
24
|
+
u.STANDARD
|
|
25
|
+
), a = W(), p = g().primary, C = g().secondary, T = q(), x = (n == null ? void 0 : n.contentColor) || o().textColor, A = o().textPrimary, I = (n == null ? void 0 : n.primaryColor) || o().palette.primary.plainColor, b = (n == null ? void 0 : n.secondaryColor) || o().textColor, S = z().size, D = o().surface, B = o().onSurface, v = G(
|
|
26
|
+
u.STANDARD
|
|
27
|
+
), { t: c } = V(), d = i.imagePosition || "left", P = "60%", k = i.isApiError ? c("common.error.title") : c("common.authentication.accessRequired"), M = i.isApiError ? i.apiErrorMessage || c("common.error.message") : c("common.authentication.invalidOrMissingAuth"), t = U({
|
|
28
|
+
finalImage: l,
|
|
29
|
+
spacingScale: a,
|
|
30
|
+
borderRadius: T,
|
|
31
|
+
fontFamilyPrimary: p,
|
|
32
|
+
fontFamilySecondary: C,
|
|
33
|
+
textColor: x,
|
|
34
|
+
secondaryColor: b,
|
|
35
|
+
brandingColors: n,
|
|
36
|
+
darkTextColor: j.colorSchemes.dark.textColor,
|
|
37
|
+
opacity: P,
|
|
38
|
+
imagePosition: d,
|
|
39
|
+
imageBackgroundGradient: v,
|
|
40
|
+
textPrimary: A,
|
|
41
|
+
primaryColor: I,
|
|
42
|
+
borderSize: S,
|
|
43
|
+
buttonBgColor: D,
|
|
44
|
+
onSurfaceColor: B,
|
|
45
|
+
isMobile: f
|
|
46
|
+
}), R = () => i.isApiError ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
47
|
+
/* @__PURE__ */ e.jsx(r, { sx: t.ctaContainer, children: /* @__PURE__ */ e.jsx(r, { sx: t.ctaContentWrapper, children: /* @__PURE__ */ e.jsx(r, { sx: t.buttonsContainer, children: /* @__PURE__ */ e.jsx(N, { sx: t.tryAgainButton, onClick: i.toggleTryAgain, children: /* @__PURE__ */ e.jsxs(r, { sx: t.tryAgainButtonContent, children: [
|
|
48
|
+
/* @__PURE__ */ e.jsx(L, { sx: t.tryAgainIcon }),
|
|
49
|
+
/* @__PURE__ */ e.jsx(s, { sx: t.tryAgainText, children: i.tryAgainButtonText })
|
|
50
|
+
] }) }) }) }) }),
|
|
51
|
+
/* @__PURE__ */ e.jsx(r, { sx: t.presentedByContainer, children: i.renderPresentedBy(x) })
|
|
52
|
+
] }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
|
|
53
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
54
|
+
l ? /* @__PURE__ */ e.jsx(r, { sx: t.mobileHeadlineWithImage, children: /* @__PURE__ */ e.jsx(r, { sx: t.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(r, { children: [
|
|
55
|
+
/* @__PURE__ */ e.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: a["3xs"] }, children: [
|
|
56
|
+
/* @__PURE__ */ e.jsx(
|
|
57
|
+
s,
|
|
58
|
+
{
|
|
59
|
+
level: "body-sm",
|
|
60
|
+
sx: t.headlineTypographyMobileImage,
|
|
61
|
+
children: i.headline
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ e.jsx(
|
|
65
|
+
y,
|
|
66
|
+
{
|
|
67
|
+
rulesDisplay: i.rulesDisplay,
|
|
68
|
+
rules: i.entity.rules || ""
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ e.jsxs(r, { sx: t.contentContainer, children: [
|
|
73
|
+
/* @__PURE__ */ e.jsx(
|
|
74
|
+
s,
|
|
75
|
+
{
|
|
76
|
+
level: "body-lg",
|
|
77
|
+
sx: t.titleTypographyMobileImage,
|
|
78
|
+
children: i.entity.title
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ e.jsx(
|
|
82
|
+
s,
|
|
83
|
+
{
|
|
84
|
+
level: "body-md",
|
|
85
|
+
sx: t.descriptionTypographyMobileImage,
|
|
86
|
+
children: m(i.entity.description)
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] })
|
|
90
|
+
] }) }) }) : /* @__PURE__ */ e.jsx(r, { sx: t.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(r, { children: [
|
|
91
|
+
/* @__PURE__ */ e.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: a["3xs"] }, children: [
|
|
92
|
+
/* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: t.headlineTypography, children: i.headline }),
|
|
93
|
+
/* @__PURE__ */ e.jsx(
|
|
94
|
+
y,
|
|
95
|
+
{
|
|
96
|
+
rulesDisplay: i.rulesDisplay,
|
|
97
|
+
rules: i.entity.rules || ""
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ e.jsxs(r, { sx: t.contentContainer, children: [
|
|
102
|
+
/* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypography, children: i.entity.title }),
|
|
103
|
+
/* @__PURE__ */ e.jsx(s, { level: "body-md", sx: t.descriptionTypography, children: m(i.entity.description) })
|
|
104
|
+
] })
|
|
105
|
+
] }) }),
|
|
106
|
+
l && d === "left" && /* @__PURE__ */ e.jsx(r, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(
|
|
107
|
+
"img",
|
|
108
|
+
{
|
|
109
|
+
src: l,
|
|
110
|
+
alt: "illustration",
|
|
111
|
+
style: t.image
|
|
112
|
+
}
|
|
113
|
+
) }),
|
|
114
|
+
/* @__PURE__ */ e.jsxs(r, { sx: t.mainContentArea, children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(r, { sx: { px: a.md }, children: /* @__PURE__ */ e.jsx(r, { sx: t.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsxs(
|
|
116
|
+
r,
|
|
117
|
+
{
|
|
118
|
+
sx: {
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexDirection: "column",
|
|
121
|
+
alignItems: "center"
|
|
122
|
+
},
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ e.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: a["3xs"] }, children: [
|
|
125
|
+
/* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: t.headlineTypography, children: i.headline }),
|
|
126
|
+
/* @__PURE__ */ e.jsx(
|
|
127
|
+
y,
|
|
128
|
+
{
|
|
129
|
+
rulesDisplay: i.rulesDisplay,
|
|
130
|
+
rules: i.entity.rules || ""
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ e.jsxs(r, { sx: t.contentContainer, children: [
|
|
135
|
+
/* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypographyDesktop, children: i.entity.title }),
|
|
136
|
+
/* @__PURE__ */ e.jsx(
|
|
137
|
+
s,
|
|
138
|
+
{
|
|
139
|
+
level: "body-md",
|
|
140
|
+
sx: t.descriptionTypographyDesktop,
|
|
141
|
+
children: m(i.entity.description)
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
) }) }),
|
|
148
|
+
/* @__PURE__ */ e.jsx(r, { sx: t.questionArea, children: /* @__PURE__ */ e.jsxs(r, { sx: t.questionContainer, children: [
|
|
149
|
+
/* @__PURE__ */ e.jsx(r, { sx: t.alertContainer, children: /* @__PURE__ */ e.jsx(
|
|
150
|
+
F,
|
|
151
|
+
{
|
|
152
|
+
variant: "error",
|
|
153
|
+
title: k,
|
|
154
|
+
message: M
|
|
155
|
+
}
|
|
156
|
+
) }),
|
|
157
|
+
i.isApiError ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : i.renderPresentedBy(x)
|
|
158
|
+
] }) }),
|
|
159
|
+
R()
|
|
160
|
+
] }),
|
|
161
|
+
l && d === "right" && /* @__PURE__ */ e.jsx(r, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(
|
|
162
|
+
"img",
|
|
163
|
+
{
|
|
164
|
+
src: l,
|
|
165
|
+
alt: "illustration",
|
|
166
|
+
style: t.image
|
|
167
|
+
}
|
|
168
|
+
) })
|
|
169
|
+
] });
|
|
170
|
+
};
|
|
171
|
+
export {
|
|
172
|
+
oe as default
|
|
173
|
+
};
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
const l = (e) => {
|
|
2
|
+
var i, t, n;
|
|
3
|
+
return {
|
|
4
|
+
// Mobile headline with image background
|
|
5
|
+
mobileHeadlineWithImage: {
|
|
6
|
+
display: e.isMobile ? "flex" : "none",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
gap: "10px",
|
|
10
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
11
|
+
backgroundSize: "cover",
|
|
12
|
+
backgroundPosition: "center",
|
|
13
|
+
borderTopLeftRadius: "5px",
|
|
14
|
+
borderTopRightRadius: "5px",
|
|
15
|
+
position: "relative",
|
|
16
|
+
minHeight: "210px",
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
height: "auto",
|
|
19
|
+
"&::before": {
|
|
20
|
+
content: '""',
|
|
21
|
+
position: "absolute",
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "100%",
|
|
24
|
+
background: e.imageBackgroundGradient,
|
|
25
|
+
borderTopLeftRadius: "5px",
|
|
26
|
+
borderTopRightRadius: "5px"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
// Content inside mobile headline with image
|
|
30
|
+
mobileHeadlineContent: {
|
|
31
|
+
zIndex: 1,
|
|
32
|
+
height: "100%",
|
|
33
|
+
p: e.spacingScale.xl,
|
|
34
|
+
gap: e.spacingScale["2xl"],
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
justifyContent: "space-between"
|
|
38
|
+
},
|
|
39
|
+
// Mobile headline without image
|
|
40
|
+
mobileHeadlineWithoutImage: {
|
|
41
|
+
display: e.isMobile ? "flex" : "none",
|
|
42
|
+
flex: "0.5",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
justifyContent: "space-between",
|
|
45
|
+
p: e.spacingScale.lg,
|
|
46
|
+
gap: e.spacingScale["2xl"]
|
|
47
|
+
},
|
|
48
|
+
// Headline typography (mobile with image)
|
|
49
|
+
headlineTypographyMobileImage: {
|
|
50
|
+
fontWeight: 500,
|
|
51
|
+
lineHeight: "166%",
|
|
52
|
+
letterSpacing: "1px",
|
|
53
|
+
fontSize: "0.75em",
|
|
54
|
+
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
55
|
+
opacity: "70%",
|
|
56
|
+
textTransform: "uppercase",
|
|
57
|
+
fontFamily: e.fontFamilySecondary,
|
|
58
|
+
textAlign: "center"
|
|
59
|
+
},
|
|
60
|
+
// Headline typography (mobile without image & desktop)
|
|
61
|
+
headlineTypography: {
|
|
62
|
+
fontWeight: 500,
|
|
63
|
+
lineHeight: "166%",
|
|
64
|
+
letterSpacing: "1px",
|
|
65
|
+
textTransform: "uppercase",
|
|
66
|
+
fontSize: "0.75em",
|
|
67
|
+
color: e.secondaryColor,
|
|
68
|
+
opacity: e.opacity,
|
|
69
|
+
fontFamily: e.fontFamilySecondary,
|
|
70
|
+
textAlign: "center"
|
|
71
|
+
},
|
|
72
|
+
// Title typography (mobile with image)
|
|
73
|
+
titleTypographyMobileImage: {
|
|
74
|
+
fontWeight: 700,
|
|
75
|
+
lineHeight: "133%",
|
|
76
|
+
fontSize: "1.5em",
|
|
77
|
+
letterSpacing: "0.15px",
|
|
78
|
+
color: ((t = e.brandingColors) == null ? void 0 : t.contentColor) || e.darkTextColor,
|
|
79
|
+
fontFamily: e.fontFamilyPrimary,
|
|
80
|
+
textAlign: "center"
|
|
81
|
+
},
|
|
82
|
+
// Title typography (mobile without image & desktop)
|
|
83
|
+
titleTypography: {
|
|
84
|
+
fontWeight: 700,
|
|
85
|
+
lineHeight: "133%",
|
|
86
|
+
letterSpacing: "0px",
|
|
87
|
+
fontSize: "1.5em",
|
|
88
|
+
color: e.textColor,
|
|
89
|
+
fontFamily: e.fontFamilyPrimary,
|
|
90
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
91
|
+
},
|
|
92
|
+
// Description typography (mobile with image)
|
|
93
|
+
descriptionTypographyMobileImage: {
|
|
94
|
+
fontWeight: 400,
|
|
95
|
+
lineHeight: "140%",
|
|
96
|
+
fontSize: "1.25em",
|
|
97
|
+
letterSpacing: "0.15px",
|
|
98
|
+
color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
|
|
99
|
+
opacity: "70%",
|
|
100
|
+
fontFamily: e.fontFamilyPrimary,
|
|
101
|
+
textAlign: "center"
|
|
102
|
+
},
|
|
103
|
+
// Description typography (mobile without image & desktop)
|
|
104
|
+
descriptionTypography: {
|
|
105
|
+
fontWeight: 400,
|
|
106
|
+
lineHeight: "140%",
|
|
107
|
+
letterSpacing: "0.15px",
|
|
108
|
+
fontSize: "1.25em",
|
|
109
|
+
color: e.secondaryColor,
|
|
110
|
+
opacity: e.opacity,
|
|
111
|
+
fontFamily: e.fontFamilyPrimary,
|
|
112
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
113
|
+
},
|
|
114
|
+
// Desktop title typography (centered)
|
|
115
|
+
titleTypographyDesktop: {
|
|
116
|
+
fontWeight: 700,
|
|
117
|
+
lineHeight: "133%",
|
|
118
|
+
letterSpacing: "0px",
|
|
119
|
+
fontSize: "1.5em",
|
|
120
|
+
color: e.textColor,
|
|
121
|
+
fontFamily: e.fontFamilyPrimary
|
|
122
|
+
},
|
|
123
|
+
// Desktop description typography (centered)
|
|
124
|
+
descriptionTypographyDesktop: {
|
|
125
|
+
fontWeight: 400,
|
|
126
|
+
lineHeight: "140%",
|
|
127
|
+
letterSpacing: "0.15px",
|
|
128
|
+
fontSize: "1.25em",
|
|
129
|
+
color: e.secondaryColor,
|
|
130
|
+
opacity: e.opacity,
|
|
131
|
+
fontFamily: e.fontFamilyPrimary
|
|
132
|
+
},
|
|
133
|
+
// Image container (left position)
|
|
134
|
+
imageContainerLeft: {
|
|
135
|
+
display: e.isMobile ? "none" : "block",
|
|
136
|
+
flex: "0.3",
|
|
137
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
138
|
+
borderBottomLeftRadius: e.borderRadius.md,
|
|
139
|
+
overflow: "hidden",
|
|
140
|
+
height: "auto",
|
|
141
|
+
position: "relative"
|
|
142
|
+
},
|
|
143
|
+
// Image container (right position)
|
|
144
|
+
imageContainerRight: {
|
|
145
|
+
display: e.isMobile ? "none" : "block",
|
|
146
|
+
flex: "0.3",
|
|
147
|
+
borderTopRightRadius: "5px",
|
|
148
|
+
borderBottomRightRadius: "5px",
|
|
149
|
+
overflow: "hidden",
|
|
150
|
+
height: "auto",
|
|
151
|
+
position: "relative"
|
|
152
|
+
},
|
|
153
|
+
// Main content area
|
|
154
|
+
mainContentArea: {
|
|
155
|
+
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
156
|
+
// display: props.isMobile ? "block" : "flex",
|
|
157
|
+
display: "flex",
|
|
158
|
+
flexDirection: "column",
|
|
159
|
+
p: e.spacingScale.md,
|
|
160
|
+
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
161
|
+
},
|
|
162
|
+
// Desktop headline container
|
|
163
|
+
desktopHeadlineContainer: {
|
|
164
|
+
display: e.isMobile ? "none" : "flex",
|
|
165
|
+
flexDirection: "column",
|
|
166
|
+
justifyContent: "space-between",
|
|
167
|
+
gap: e.spacingScale["2xl"],
|
|
168
|
+
textAlign: "center"
|
|
169
|
+
},
|
|
170
|
+
// Content container
|
|
171
|
+
contentContainer: {
|
|
172
|
+
display: "flex",
|
|
173
|
+
flexDirection: "column",
|
|
174
|
+
gap: e.spacingScale["3xs"]
|
|
175
|
+
},
|
|
176
|
+
// Question area
|
|
177
|
+
questionArea: {
|
|
178
|
+
display: "flex",
|
|
179
|
+
flexDirection: "column",
|
|
180
|
+
px: e.spacingScale.md
|
|
181
|
+
},
|
|
182
|
+
// Question container
|
|
183
|
+
questionContainer: {
|
|
184
|
+
display: "flex",
|
|
185
|
+
flexDirection: "column",
|
|
186
|
+
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
187
|
+
},
|
|
188
|
+
// Alert container
|
|
189
|
+
alertContainer: {
|
|
190
|
+
// py: props.spacingScale.md,
|
|
191
|
+
display: "flex",
|
|
192
|
+
flexDirection: "column",
|
|
193
|
+
backdropFilter: "blur(4px)"
|
|
194
|
+
},
|
|
195
|
+
image: {
|
|
196
|
+
width: "100%",
|
|
197
|
+
height: "100%",
|
|
198
|
+
objectFit: "cover"
|
|
199
|
+
},
|
|
200
|
+
// CTA container
|
|
201
|
+
ctaContainer: {
|
|
202
|
+
display: "flex",
|
|
203
|
+
flexDirection: "column",
|
|
204
|
+
alignItems: "center"
|
|
205
|
+
},
|
|
206
|
+
// CTA content wrapper
|
|
207
|
+
ctaContentWrapper: {
|
|
208
|
+
display: "flex",
|
|
209
|
+
flexDirection: "column",
|
|
210
|
+
justifyContent: "center",
|
|
211
|
+
alignItems: "center",
|
|
212
|
+
gap: e.spacingScale.lg
|
|
213
|
+
},
|
|
214
|
+
// Buttons container
|
|
215
|
+
buttonsContainer: {
|
|
216
|
+
display: "flex",
|
|
217
|
+
flexDirection: e.isMobile ? "column" : "row",
|
|
218
|
+
gap: e.spacingScale.md
|
|
219
|
+
},
|
|
220
|
+
// Try again button
|
|
221
|
+
tryAgainButton: {
|
|
222
|
+
display: "flex",
|
|
223
|
+
py: e.spacingScale.xs,
|
|
224
|
+
px: "16px",
|
|
225
|
+
flexDirection: "column",
|
|
226
|
+
justifyContent: "center",
|
|
227
|
+
alignItems: "center",
|
|
228
|
+
gap: "8px",
|
|
229
|
+
borderRadius: e.borderRadius.xl,
|
|
230
|
+
border: e.borderSize + " solid " + e.primaryColor,
|
|
231
|
+
bgcolor: e.buttonBgColor,
|
|
232
|
+
"&:hover": {
|
|
233
|
+
bgcolor: e.onSurfaceColor,
|
|
234
|
+
borderColor: e.primaryColor
|
|
235
|
+
},
|
|
236
|
+
fontSize: "0.8125em"
|
|
237
|
+
},
|
|
238
|
+
// Try again button content
|
|
239
|
+
tryAgainButtonContent: {
|
|
240
|
+
display: "flex",
|
|
241
|
+
justifyContent: "center",
|
|
242
|
+
alignItems: "center",
|
|
243
|
+
gap: "8px",
|
|
244
|
+
alignSelf: "stretch"
|
|
245
|
+
},
|
|
246
|
+
// Try again icon
|
|
247
|
+
tryAgainIcon: {
|
|
248
|
+
display: "flex",
|
|
249
|
+
width: "16px",
|
|
250
|
+
height: "16px",
|
|
251
|
+
justifyContent: "flex-end",
|
|
252
|
+
alignItems: "center",
|
|
253
|
+
color: e.textPrimary
|
|
254
|
+
},
|
|
255
|
+
// Try again text
|
|
256
|
+
tryAgainText: {
|
|
257
|
+
color: e.textPrimary,
|
|
258
|
+
textAlign: "center",
|
|
259
|
+
fontFamily: e.fontFamilyPrimary,
|
|
260
|
+
fontSize: "0.8125em",
|
|
261
|
+
fontStyle: "normal",
|
|
262
|
+
fontWeight: 500,
|
|
263
|
+
lineHeight: "22px",
|
|
264
|
+
letterSpacing: "0.46px",
|
|
265
|
+
textTransform: "uppercase"
|
|
266
|
+
},
|
|
267
|
+
// Presented by container
|
|
268
|
+
presentedByContainer: {
|
|
269
|
+
px: e.spacingScale.md
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
export {
|
|
274
|
+
l as createStyles
|
|
275
|
+
};
|
package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as r } from "@mui/joy";
|
|
3
|
+
import { createStyles as i } from "./StandardContentSkeleton.styles.js";
|
|
4
|
+
import { isMobile as x } from "../../../../functions/theme.js";
|
|
5
|
+
const j = ({
|
|
6
|
+
finalImage: s,
|
|
7
|
+
imagePosition: o = "left",
|
|
8
|
+
children: n
|
|
9
|
+
}) => {
|
|
10
|
+
const l = x(), t = i({
|
|
11
|
+
finalImage: s,
|
|
12
|
+
imagePosition: o,
|
|
13
|
+
isMobile: l
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
16
|
+
o === "left" && s ? /* @__PURE__ */ e.jsx(r, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(r, { sx: t.imageSafeArea }) }) : null,
|
|
17
|
+
n,
|
|
18
|
+
o === "right" && s ? /* @__PURE__ */ e.jsx(r, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(r, { sx: t.imageSafeArea }) }) : null
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
j as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
// Image container (left position)
|
|
3
|
+
imageContainerLeft: {
|
|
4
|
+
display: e.isMobile ? "none" : "block",
|
|
5
|
+
flex: "0.3",
|
|
6
|
+
overflow: "hidden",
|
|
7
|
+
height: "auto",
|
|
8
|
+
position: "relative",
|
|
9
|
+
minHeight: "auto",
|
|
10
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
11
|
+
backgroundSize: "cover",
|
|
12
|
+
backgroundPosition: "center center",
|
|
13
|
+
backgroundRepeat: "no-repeat",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "center"
|
|
16
|
+
},
|
|
17
|
+
// Image container (right position)
|
|
18
|
+
imageContainerRight: {
|
|
19
|
+
display: e.isMobile ? "none" : "block",
|
|
20
|
+
flex: "0.3",
|
|
21
|
+
overflow: "hidden",
|
|
22
|
+
height: "auto",
|
|
23
|
+
position: "relative",
|
|
24
|
+
minHeight: "auto",
|
|
25
|
+
backgroundImage: `url(${e.finalImage})`,
|
|
26
|
+
backgroundSize: "cover",
|
|
27
|
+
backgroundPosition: "center center",
|
|
28
|
+
backgroundRepeat: "no-repeat",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
justifyContent: "center"
|
|
31
|
+
},
|
|
32
|
+
// Image safe area (placeholder for image space)
|
|
33
|
+
imageSafeArea: {
|
|
34
|
+
width: "100%",
|
|
35
|
+
height: "100%"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
t as createStyles
|
|
40
|
+
};
|