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.
Files changed (377) hide show
  1. package/ClassicQuizPlay.d.ts +4 -0
  2. package/ClassicQuizPlay.d.ts.map +1 -0
  3. package/ClassicQuizPlay.js +5 -0
  4. package/CollectLead.d.ts +4 -0
  5. package/CollectLead.d.ts.map +1 -0
  6. package/CollectLead.js +5 -0
  7. package/EventGamePlay.d.ts +4 -0
  8. package/EventGamePlay.d.ts.map +1 -0
  9. package/EventGamePlay.js +5 -0
  10. package/MatchQuizPlay.d.ts +4 -0
  11. package/MatchQuizPlay.d.ts.map +1 -0
  12. package/MatchQuizPlay.js +5 -0
  13. package/PersonalityQuizPlay.d.ts +4 -0
  14. package/PersonalityQuizPlay.d.ts.map +1 -0
  15. package/PersonalityQuizPlay.js +5 -0
  16. package/PollVote.d.ts +4 -0
  17. package/PollVote.d.ts.map +1 -0
  18. package/PollVote.js +5 -0
  19. package/_virtual/_commonjsHelpers.js +6 -0
  20. package/_virtual/index.js +4 -0
  21. package/_virtual/index2.js +4 -0
  22. package/_virtual/index3.js +4 -0
  23. package/_virtual/jsx-runtime.js +4 -0
  24. package/_virtual/react-is.development.js +4 -0
  25. package/_virtual/react-is.development2.js +4 -0
  26. package/_virtual/react-is.production.min.js +4 -0
  27. package/_virtual/react-is.production.min2.js +4 -0
  28. package/_virtual/react-jsx-runtime.development.js +4 -0
  29. package/_virtual/react-jsx-runtime.production.js +4 -0
  30. package/index.d.ts +6 -1
  31. package/index.d.ts.map +1 -1
  32. package/index.js +14 -0
  33. package/package.json +37 -4
  34. package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
  35. package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
  36. package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
  37. package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
  38. package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
  39. package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
  40. package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
  41. package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
  42. package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
  43. package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
  44. package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
  45. package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
  46. package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
  47. package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
  48. package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
  49. package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
  50. package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
  51. package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
  52. package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
  53. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
  54. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
  55. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
  56. package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
  57. package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
  58. package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
  59. package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
  60. package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
  61. package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
  62. package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
  63. package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
  64. package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
  65. package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
  66. package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
  67. package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
  68. package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
  69. package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
  70. package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
  71. package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
  72. package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
  73. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
  74. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
  75. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
  76. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
  77. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
  78. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
  79. package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
  80. package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
  81. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
  82. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
  83. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
  84. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
  85. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
  86. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
  87. package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
  88. package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
  89. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
  90. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
  91. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
  92. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
  93. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
  94. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
  95. package/packages/classic-quiz-play/src/constants/constants.js +4 -0
  96. package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
  97. package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
  98. package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
  99. package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
  100. package/packages/classic-quiz-play/src/index.js +4 -0
  101. package/packages/classic-quiz-play/src/main.js +7 -0
  102. package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
  103. package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
  104. package/packages/collect-lead/src/components/CollectLead.js +18 -0
  105. package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
  106. package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
  107. package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
  108. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
  109. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
  110. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
  111. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
  112. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
  113. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
  114. package/packages/collect-lead/src/index.js +4 -0
  115. package/packages/collect-lead/src/main.js +39 -0
  116. package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
  117. package/packages/common/src/components/AdditionalCTA.js +24 -0
  118. package/packages/common/src/components/AlertMessage.js +88 -0
  119. package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
  120. package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
  121. package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
  122. package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
  123. package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
  124. package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
  125. package/packages/common/src/components/Leads/LeadForm.js +498 -0
  126. package/packages/common/src/components/Portal.js +62 -0
  127. package/packages/common/src/components/Rules.js +299 -0
  128. package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
  129. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
  130. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
  131. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
  132. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
  133. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
  134. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
  135. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
  136. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
  137. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
  138. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
  139. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
  140. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
  141. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
  142. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
  143. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
  144. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
  145. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
  146. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
  147. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
  148. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
  149. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
  150. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
  151. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
  152. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
  153. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
  154. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
  155. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
  156. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
  157. package/packages/common/src/components/Spinner.js +36 -0
  158. package/packages/common/src/constants/constants.js +457 -0
  159. package/packages/common/src/enums/enums.js +4 -0
  160. package/packages/common/src/functions/helpers.js +58 -0
  161. package/packages/common/src/functions/i18n.js +69 -0
  162. package/packages/common/src/functions/theme.js +301 -0
  163. package/packages/common/src/hooks/useConstantContext.js +10 -0
  164. package/packages/common/src/hooks/useImageUrl.js +8 -0
  165. package/packages/common/src/hooks/useImageVariant.js +11 -0
  166. package/packages/common/src/hooks/useLeadForm.js +129 -0
  167. package/packages/common/src/hooks/useThemeMode.js +30 -0
  168. package/packages/common/src/locales/bg.json.js +363 -0
  169. package/packages/common/src/locales/de.json.js +362 -0
  170. package/packages/common/src/locales/el.json.js +362 -0
  171. package/packages/common/src/locales/en.json.js +368 -0
  172. package/packages/common/src/locales/es.json.js +362 -0
  173. package/packages/common/src/locales/fr-be.json.js +362 -0
  174. package/packages/common/src/locales/fr.json.js +362 -0
  175. package/packages/common/src/locales/it.json.js +362 -0
  176. package/packages/common/src/locales/pl.json.js +362 -0
  177. package/packages/common/src/locales/pt-br.json.js +362 -0
  178. package/packages/common/src/locales/pt.json.js +362 -0
  179. package/packages/common/src/locales/ro.json.js +362 -0
  180. package/packages/common/src/locales/sk.json.js +362 -0
  181. package/packages/common/src/locales/sr.json.js +362 -0
  182. package/packages/common/src/providers/ConstantsProvider.js +29 -0
  183. package/packages/common/src/providers/ContainerProvider.js +35 -0
  184. package/packages/common/src/providers/FontProvider.js +25 -0
  185. package/packages/common/src/providers/ThemeProvider.js +80 -0
  186. package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
  187. package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
  188. package/packages/event-game-play/src/assets/school.svg.js +4 -0
  189. package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
  190. package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
  191. package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
  192. package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
  193. package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
  194. package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
  195. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
  196. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
  197. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
  198. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
  199. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
  200. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
  201. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
  202. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
  203. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
  204. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
  205. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
  206. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
  207. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
  208. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
  209. package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
  210. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
  211. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
  212. package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
  213. package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
  214. package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
  215. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
  216. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
  217. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
  218. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
  219. package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
  220. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
  221. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
  222. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
  223. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
  224. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
  225. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
  226. package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
  227. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
  228. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
  229. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
  230. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
  231. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
  232. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
  233. package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
  234. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
  235. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
  236. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
  237. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
  238. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
  239. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
  240. package/packages/event-game-play/src/helpers/helpers.js +11 -0
  241. package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
  242. package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
  243. package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
  244. package/packages/event-game-play/src/index.js +4 -0
  245. package/packages/event-game-play/src/main.js +7 -0
  246. package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
  247. package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
  248. package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
  249. package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
  250. package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
  251. package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
  252. package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
  253. package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
  254. package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
  255. package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
  256. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
  257. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
  258. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
  259. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
  260. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
  261. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
  262. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
  263. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
  264. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
  265. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
  266. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
  267. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
  268. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
  269. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
  270. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
  271. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
  272. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
  273. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
  274. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
  275. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
  276. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
  277. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
  278. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
  279. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
  280. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
  281. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
  282. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
  283. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
  284. package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
  285. package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
  286. package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
  287. package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
  288. package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
  289. package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
  290. package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
  291. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
  292. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
  293. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
  294. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
  295. package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
  296. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
  297. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
  298. package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
  299. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
  300. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
  301. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
  302. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
  303. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
  304. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
  305. package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
  306. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
  307. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
  308. package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
  309. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
  310. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
  311. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
  312. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
  313. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
  314. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
  315. package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
  316. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
  317. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
  318. package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
  319. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
  320. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
  321. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
  322. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
  323. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
  324. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
  325. package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
  326. package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
  327. package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
  328. package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
  329. package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
  330. package/packages/match-quiz-play/src/index.js +4 -0
  331. package/packages/match-quiz-play/src/main.js +7 -0
  332. package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
  333. package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
  334. package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
  335. package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
  336. package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
  337. package/packages/poll-vote/src/components/PollNotFound.js +23 -0
  338. package/packages/poll-vote/src/components/PollVote.js +270 -0
  339. package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
  340. package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
  341. package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
  342. package/packages/poll-vote/src/components/Shared/Button.js +76 -0
  343. package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
  344. package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
  345. package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
  346. package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
  347. package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
  348. package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
  349. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
  350. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
  351. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
  352. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
  353. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
  354. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
  355. package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
  356. package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
  357. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
  358. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
  359. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
  360. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
  361. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
  362. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
  363. package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
  364. package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
  365. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
  366. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
  367. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
  368. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
  369. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
  370. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
  371. package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
  372. package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
  373. package/packages/poll-vote/src/hooks/usePollById.js +16 -0
  374. package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
  375. package/packages/poll-vote/src/index.js +4 -0
  376. package/packages/poll-vote/src/main.js +7 -0
  377. package/components.js +0 -105201
@@ -0,0 +1,164 @@
1
+ import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { Box as n } from "@mui/joy";
3
+ import { useInternalTheme as O, isMobile as H, isLarge as N, useColors as s, useFontFamily as G, useCornerRadius as J, useSpacingScale as K, useBorderSize as X } from "../../../../../../common/src/functions/theme.js";
4
+ import { hexToRgb as I } 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 { WidgetTemplate as Y } from "../../../../../../common/src/enums/enums.js";
8
+ import Z from "../../../../../../common/src/components/AdditionalCTA.js";
9
+ import "react";
10
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
11
+ import _ from "../../../../../../common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js";
12
+ import { useImageVariant as ee } from "../../../../../../common/src/hooks/useImageVariant.js";
13
+ import "../../../../../../common/src/providers/ContainerProvider.js";
14
+ import te from "../../../Shared/MainCard.js";
15
+ import ie from "../../../../assets/default-quiz-bg.png.js";
16
+ import oe from "../../../../assets/default-quiz-bg-vertical.jpg.js";
17
+ import M from "../../../Shared/PresentedBy.js";
18
+ import { createStyles as re } from "./MatchQuizSplitScoreState.styles.js";
19
+ import ne from "../../../Shared/AlertMessage.js";
20
+ import ae from "../../../Shared/Summary/PredictionSummary.js";
21
+ import { useTranslation as le } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
22
+ const Me = (e) => {
23
+ var x, f, h, S, b, p, z, C, j;
24
+ const A = O(), { t: c } = le(), r = H(), y = N(), R = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? oe : ie, v = ee(
25
+ {
26
+ images: e.matchQuiz.images,
27
+ imagePlaceholder: R
28
+ },
29
+ Y.SPLIT
30
+ ), t = ((x = e.matchQuiz.branding) == null ? void 0 : x.colors) || null, B = (t == null ? void 0 : t.secondaryColor) || s().textSecondary, m = s().secondaryContainer, L = G().primary, d = (t == null ? void 0 : t.backgroundColor) || s().surfaceVariant, u = J(), w = s().textColor, o = K(), E = X().size, a = r ? ((f = e.matchQuiz.branding) == null ? void 0 : f.images.mobileLogo) || ((h = e.matchQuiz.branding) == null ? void 0 : h.images.mainLogo) || "" : ((S = e.matchQuiz.branding) == null ? void 0 : S.images.mainLogo) || "", F = e.matchQuiz.status === "OPEN" && e.prediction && e.squads && e.onPredictionUpdate, k = (l) => {
31
+ console.log(`Edit prediction for fixture at index: ${l}`);
32
+ }, D = !y && a ? /* @__PURE__ */ i.jsx(
33
+ M,
34
+ {
35
+ brandingLogo: a,
36
+ textColor: (t == null ? void 0 : t.contentColor) || A.colorSchemes.dark.textColor,
37
+ label: ((b = e.matchQuiz.labels) == null ? void 0 : b.sponsor) || null,
38
+ primaryUrl: (z = (p = e.matchQuiz.branding) == null ? void 0 : p.urls) == null ? void 0 : z.primaryUrl,
39
+ secondaryUrl: (j = (C = e.matchQuiz.branding) == null ? void 0 : C.urls) == null ? void 0 : j.secondaryUrl
40
+ }
41
+ ) : null, g = re({
42
+ spacingScale: o,
43
+ borderRadius: u,
44
+ bgcolor: I(d || ""),
45
+ isMobile: r
46
+ }), $ = {
47
+ display: "flex",
48
+ py: r ? o.xs : o.sm,
49
+ px: r ? o.sm : o.md,
50
+ flexDirection: "row",
51
+ justifyContent: "center",
52
+ alignItems: "center",
53
+ gap: "8px",
54
+ borderRadius: u.xl,
55
+ bgcolor: m,
56
+ border: `${E} solid ${m}`,
57
+ "&:hover": {
58
+ bgcolor: m,
59
+ opacity: 0.9
60
+ },
61
+ fontSize: r ? "0.750em" : "0.8125em",
62
+ textTransform: "uppercase"
63
+ }, q = {
64
+ display: "flex",
65
+ justifyContent: "center",
66
+ alignItems: "center",
67
+ gap: "8px"
68
+ }, V = {
69
+ color: B,
70
+ fontFamily: L,
71
+ fontStyle: "normal",
72
+ fontWeight: 500,
73
+ lineHeight: "22px",
74
+ letterSpacing: "0.46px",
75
+ textTransform: "uppercase"
76
+ }, W = () => {
77
+ var l, P, Q, T, U;
78
+ return /* @__PURE__ */ i.jsx(
79
+ _,
80
+ {
81
+ entity: e.matchQuiz,
82
+ headline: c("matchQuiz.headline"),
83
+ finalImage: v,
84
+ brandingContent: D,
85
+ isTabulated: !1,
86
+ alwaysShowImage: !0,
87
+ rulesDisplay: e.rulesDisplay,
88
+ children: e.isUnauthorized ? /* @__PURE__ */ i.jsx(n, { sx: g.alertMessageArea, children: /* @__PURE__ */ i.jsx(n, { sx: g.alertMessageWrapper, children: /* @__PURE__ */ i.jsx(
89
+ ne,
90
+ {
91
+ variant: "error",
92
+ title: c("common.authentication.accessRequired"),
93
+ message: c("common.authentication.invalidOrMissingAuth")
94
+ }
95
+ ) }) }) : /* @__PURE__ */ i.jsxs(n, { sx: g.questionAreaContent, children: [
96
+ /* @__PURE__ */ i.jsx(
97
+ n,
98
+ {
99
+ sx: {
100
+ p: o.lg,
101
+ gap: o.lg,
102
+ display: "flex",
103
+ flexDirection: "column",
104
+ backdropFilter: "blur(4px)",
105
+ bgcolor: `rgba(${d ? I(d || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
106
+ borderRadius: u.sm,
107
+ position: "relative",
108
+ overflow: "visible"
109
+ },
110
+ children: F ? /* @__PURE__ */ i.jsx(
111
+ ae,
112
+ {
113
+ fixtures: e.matchQuiz.fixtures,
114
+ prediction: e.prediction,
115
+ brandingPrimaryColor: t == null ? void 0 : t.primaryColor,
116
+ onEditPrediction: k,
117
+ onPredictionUpdate: e.onPredictionUpdate,
118
+ play: e.play,
119
+ view: "score",
120
+ isSplitVariant: !0,
121
+ onPlayResult: e.onPlayResult
122
+ }
123
+ ) : null
124
+ }
125
+ ),
126
+ e.additionalCTA && /* @__PURE__ */ i.jsx(
127
+ n,
128
+ {
129
+ sx: {
130
+ display: "flex",
131
+ justifyContent: "center",
132
+ alignItems: "center",
133
+ padding: r ? o.sm : o.md
134
+ },
135
+ children: /* @__PURE__ */ i.jsx(
136
+ Z,
137
+ {
138
+ additionalCTA: e.additionalCTA,
139
+ buttonStyle: $,
140
+ buttonContentStyle: q,
141
+ textStyle: V
142
+ }
143
+ )
144
+ }
145
+ ),
146
+ y && a && /* @__PURE__ */ i.jsx(
147
+ M,
148
+ {
149
+ brandingLogo: a,
150
+ textColor: (t == null ? void 0 : t.contentColor) || w,
151
+ label: ((l = e.matchQuiz.labels) == null ? void 0 : l.sponsor) || null,
152
+ primaryUrl: (Q = (P = e.matchQuiz.branding) == null ? void 0 : P.urls) == null ? void 0 : Q.primaryUrl,
153
+ secondaryUrl: (U = (T = e.matchQuiz.branding) == null ? void 0 : T.urls) == null ? void 0 : U.secondaryUrl
154
+ }
155
+ )
156
+ ] })
157
+ }
158
+ );
159
+ };
160
+ return /* @__PURE__ */ i.jsx(te, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: W() });
161
+ };
162
+ export {
163
+ Me as default
164
+ };
@@ -0,0 +1,27 @@
1
+ const i = (e) => ({
2
+ // Question area content wrapper
3
+ questionAreaContent: {
4
+ p: e.spacingScale.lg,
5
+ display: "flex",
6
+ flexDirection: "column",
7
+ justifyContent: "center",
8
+ gap: e.spacingScale.lg,
9
+ flex: 1,
10
+ height: "100%"
11
+ },
12
+ alertMessageArea: {
13
+ flex: e.isMobile ? 1 : "0 0 50%",
14
+ width: e.isMobile ? "100%" : "50%",
15
+ minWidth: e.isMobile ? "100%" : "50%",
16
+ maxWidth: e.isMobile ? "100%" : "50%",
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ justifyContent: "center"
20
+ },
21
+ alertMessageWrapper: {
22
+ p: e.spacingScale.lg
23
+ }
24
+ });
25
+ export {
26
+ i as createStyles
27
+ };
@@ -0,0 +1,118 @@
1
+ import { j as i } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { Button as a, Typography as r, Box as P } from "@mui/joy";
3
+ import { useInternalTheme as w, isMobile as v, useFontFamily as D, useCornerRadius as F, useColors as y } from "../../../../../../common/src/functions/theme.js";
4
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
5
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
6
+ import { WidgetTemplate as M } from "../../../../../../common/src/enums/enums.js";
7
+ import "react";
8
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
9
+ import R from "../../../../../../common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js";
10
+ import { useImageVariant as _ } from "../../../../../../common/src/hooks/useImageVariant.js";
11
+ import "../../../../../../common/src/providers/ContainerProvider.js";
12
+ import U from "../../../Shared/MainCard.js";
13
+ import E from "../../../../assets/default-quiz-bg.png.js";
14
+ import V from "../../../../assets/default-quiz-bg-vertical.jpg.js";
15
+ import W from "../../../Shared/PresentedBy.js";
16
+ import { createStyles as q } from "./MatchQuizSplitSignIn.styles.js";
17
+ import { useTranslation as G } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
18
+ const sn = (n) => {
19
+ var s, m, g, u, c;
20
+ const b = w(), l = v(), A = n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : l ? V : E, j = _(
21
+ {
22
+ images: n.matchQuiz.images,
23
+ imagePlaceholder: A
24
+ },
25
+ M.SPLIT
26
+ ), { t: o } = G(), e = ((s = n.matchQuiz.branding) == null ? void 0 : s.colors) || null, B = l ? ((m = n.matchQuiz.branding) == null ? void 0 : m.images.mobileLogo) || ((g = n.matchQuiz.branding) == null ? void 0 : g.images.mainLogo) || "" : ((u = n.matchQuiz.branding) == null ? void 0 : u.images.mainLogo) || "", z = D().primary, L = F().xl, Q = (e == null ? void 0 : e.primaryColor) || y().palette.primary.plainColor, S = y().palette.primary.onPrimary, t = q({
27
+ fontFamilyPrimary: z,
28
+ buttonRadius: L,
29
+ primaryColor: Q,
30
+ onPrimaryColor: S
31
+ }), k = () => {
32
+ var d, I, f, x;
33
+ return n.signInCTA ? (d = n.signInCTA) != null && d.component ? n.signInCTA.component : (I = n.signInCTA) != null && I.onClick ? /* @__PURE__ */ i.jsx(
34
+ a,
35
+ {
36
+ variant: "soft",
37
+ sx: {
38
+ ...t.signInButton,
39
+ ...t.pulseAnimation
40
+ },
41
+ onClick: n.signInCTA.onClick,
42
+ children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
43
+ }
44
+ ) : (f = n.signInCTA) != null && f.url ? typeof window > "u" ? /* @__PURE__ */ i.jsx(
45
+ P,
46
+ {
47
+ component: "a",
48
+ href: n.signInCTA.url,
49
+ target: ((x = n.signInCTA) == null ? void 0 : x.target) || "_self",
50
+ sx: {
51
+ ...t.signInButton,
52
+ ...t.pulseAnimation,
53
+ textDecoration: "none",
54
+ display: "inline-flex",
55
+ alignItems: "center",
56
+ justifyContent: "center"
57
+ },
58
+ children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
59
+ }
60
+ ) : /* @__PURE__ */ i.jsx(
61
+ a,
62
+ {
63
+ variant: "soft",
64
+ sx: {
65
+ ...t.signInButton,
66
+ ...t.pulseAnimation
67
+ },
68
+ onClick: () => {
69
+ var h, C, T;
70
+ ((h = n.signInCTA) == null ? void 0 : h.target) === "_blank" ? window.open((C = n.signInCTA) == null ? void 0 : C.url, "_blank") : window.location.href = (T = n.signInCTA) == null ? void 0 : T.url;
71
+ },
72
+ children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
73
+ }
74
+ ) : /* @__PURE__ */ i.jsx(
75
+ a,
76
+ {
77
+ variant: "soft",
78
+ sx: {
79
+ ...t.signInButton
80
+ },
81
+ disabled: !0,
82
+ children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: n.signInCTA.defaultLabel || o("common.signIn") })
83
+ }
84
+ ) : /* @__PURE__ */ i.jsx(
85
+ a,
86
+ {
87
+ variant: "soft",
88
+ sx: {
89
+ ...t.signInButton
90
+ },
91
+ disabled: !0,
92
+ children: /* @__PURE__ */ i.jsx(r, { sx: t.signInButtonText, children: o("common.signIn") })
93
+ }
94
+ );
95
+ };
96
+ return /* @__PURE__ */ i.jsx(U, { brandingBorderColor: (e == null ? void 0 : e.borderColor) || null, children: /* @__PURE__ */ i.jsx(
97
+ R,
98
+ {
99
+ entity: n.matchQuiz,
100
+ headline: o("matchQuiz.headline"),
101
+ finalImage: j,
102
+ signInContent: k(),
103
+ brandingContent: /* @__PURE__ */ i.jsx(
104
+ W,
105
+ {
106
+ brandingLogo: B,
107
+ textColor: (e == null ? void 0 : e.contentColor) || b.colorSchemes.dark.textColor,
108
+ label: ((c = n.matchQuiz.labels) == null ? void 0 : c.sponsor) || null,
109
+ isCentered: l
110
+ }
111
+ ),
112
+ rulesDisplay: n.rulesDisplay
113
+ }
114
+ ) });
115
+ };
116
+ export {
117
+ sn as default
118
+ };
@@ -0,0 +1,52 @@
1
+ const o = (r) => ({
2
+ // Pulse animation for buttons
3
+ pulseAnimation: {
4
+ "@keyframes pulse": {
5
+ "0%": { transform: "scale(1)" },
6
+ "50%": { transform: "scale(1.05)" },
7
+ "100%": { transform: "scale(1)" }
8
+ }
9
+ },
10
+ // Sign in button
11
+ signInButton: {
12
+ borderRadius: r.buttonRadius,
13
+ py: "10px",
14
+ px: "16px",
15
+ bgcolor: r.primaryColor,
16
+ color: r.onPrimaryColor,
17
+ transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
18
+ transform: "scale(1)",
19
+ alignSelf: "center",
20
+ "&:hover": {
21
+ bgcolor: r.primaryColor,
22
+ transform: "scale(1.02)"
23
+ },
24
+ "&:active": {
25
+ color: r.onPrimaryColor,
26
+ transform: "scale(0.98)"
27
+ },
28
+ "&:disabled": {
29
+ bgcolor: r.primaryColor,
30
+ color: r.onPrimaryColor,
31
+ opacity: "12%"
32
+ },
33
+ animation: "pulse 1s infinite",
34
+ fontSize: "0.9375em"
35
+ },
36
+ // Sign in button text
37
+ signInButtonText: {
38
+ fontFamily: r.fontFamilyPrimary,
39
+ fontWeight: 500,
40
+ fontSize: "0.9375em",
41
+ lineHeight: "24px",
42
+ letterSpacing: "0.46px",
43
+ textTransform: "uppercase",
44
+ color: r.onPrimaryColor,
45
+ gap: "8px",
46
+ display: "flex",
47
+ alignItems: "center"
48
+ }
49
+ });
50
+ export {
51
+ o as createStyles
52
+ };
@@ -0,0 +1,43 @@
1
+ import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { isMobile as u } from "../../../../../../common/src/functions/theme.js";
3
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
4
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
5
+ import "@mui/joy";
6
+ import "react";
7
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
8
+ import s from "../../../../../../common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js";
9
+ import "../../../../../../common/src/providers/ContainerProvider.js";
10
+ import c from "../../../Shared/MainCard.js";
11
+ import h from "../../../Shared/PresentedBy.js";
12
+ import { useTranslation as b } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
13
+ const M = (i) => {
14
+ var o, e, n, m;
15
+ const r = ((o = i.matchQuiz.branding) == null ? void 0 : o.colors) || null, g = u() ? ((e = i.matchQuiz.branding) == null ? void 0 : e.images.mobileLogo) || ((n = i.matchQuiz.branding) == null ? void 0 : n.images.mainLogo) || "" : ((m = i.matchQuiz.branding) == null ? void 0 : m.images.mainLogo) || "", { t: a } = b();
16
+ return /* @__PURE__ */ t.jsx(c, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t.jsx(
17
+ s,
18
+ {
19
+ entity: i.matchQuiz,
20
+ headline: a("matchQuiz.headline"),
21
+ tryAgainButtonText: a("matchQuiz.buttons.tryAgain"),
22
+ defaultImagePlaceholderUrl: i.defaultImagePlaceholderUrl,
23
+ imagePosition: i.imagePosition || "left",
24
+ isApiError: i.isApiError,
25
+ toggleTryAgain: i.toggleTryAgain,
26
+ renderPresentedBy: (d) => {
27
+ var l;
28
+ return /* @__PURE__ */ t.jsx(
29
+ h,
30
+ {
31
+ brandingLogo: g,
32
+ textColor: d,
33
+ label: ((l = i.matchQuiz.labels) == null ? void 0 : l.sponsor) || null
34
+ }
35
+ );
36
+ },
37
+ rulesDisplay: i.rulesDisplay
38
+ }
39
+ ) });
40
+ };
41
+ export {
42
+ M as default
43
+ };
@@ -0,0 +1,234 @@
1
+ import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { Box as a, Typography as s } from "@mui/joy";
3
+ import { useInternalTheme as J, isMobile as K, isExtraSmall as X, useColors as n, useFontFamily as D, useCornerRadius as Y, useBorderSize as Z, useSpacingScale as _, useImageBackgroundGradient as ee } from "../../../../../../common/src/functions/theme.js";
4
+ import { hexToRgb as k, stripHtmlTags as y } 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 { WidgetTemplate as I } from "../../../../../../common/src/enums/enums.js";
8
+ import f from "../../../../../../common/src/components/Rules.js";
9
+ import "react";
10
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
11
+ import { useImageVariant as ie } from "../../../../../../common/src/hooks/useImageVariant.js";
12
+ import "../../../../../../common/src/providers/ContainerProvider.js";
13
+ import te from "../../../Shared/MainCard.js";
14
+ import ae from "../../../Shared/PresentedBy.js";
15
+ import { createStyles as re } from "./MatchQuizStandardFinishedGame.styles.js";
16
+ import { useMatchQuizLeaderboard as se } from "../../../../hooks/useMatchQuizLeaderboard.js";
17
+ import ne from "../../../Shared/Leaderboard/LeaderboardComponent.js";
18
+ import oe from "../../../Shared/Leaderboard/RoundedPagination.js";
19
+ import le from "../../../Shared/FinishedGameWrapper/FinishedGameWrapper.js";
20
+ import { useMatchQuizMarketsResults as ce } from "../../../../hooks/useMatchQuizMarketsResults.js";
21
+ import { useTranslation as me } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
22
+ const Fe = (i) => {
23
+ var b, z, Q, S, P;
24
+ const d = J(), l = ie(
25
+ {
26
+ images: i.matchQuiz.images,
27
+ imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
28
+ },
29
+ I.STANDARD
30
+ ), { t: x } = me(), r = ((b = i.matchQuiz.branding) == null ? void 0 : b.colors) || null, o = K(), j = X(), u = o ? ((z = i.matchQuiz.branding) == null ? void 0 : z.images.mobileLogo) || ((Q = i.matchQuiz.branding) == null ? void 0 : Q.images.mainLogo) || "" : ((S = i.matchQuiz.branding) == null ? void 0 : S.images.mainLogo) || "", c = i.imagePosition || "left", M = n().textPrimary, R = (r == null ? void 0 : r.primaryColor) || n().palette.primary.plainColor, p = (r == null ? void 0 : r.contentColor) || n().textColor, F = D().secondary, A = D().primary, B = n().surface, L = `rgba(${k(
31
+ (r == null ? void 0 : r.backgroundColor) || n().surfaceVariant
32
+ )}, 0.5)`, v = n().onSurface, V = Y(), w = Z().size, h = _(), H = `rgba(${k(
33
+ n().surfaceVariant || ""
34
+ )}, 0.5)`, O = ee(
35
+ I.STANDARD
36
+ ), W = "60%", G = (r == null ? void 0 : r.secondaryColor) || n().textColor, { leaderboard: q, userRankings: g, pagination: m, currentPage: E, goToPage: N } = se(i.matchQuiz.id, i.sdk), U = ce(
37
+ i.matchQuiz.id,
38
+ i.sdk,
39
+ i.showPredictionDetails || !1
40
+ ), t = re({
41
+ finalImage: l,
42
+ spacingScale: h,
43
+ borderRadius: V,
44
+ fontFamilyPrimary: A,
45
+ fontFamilySecondary: F,
46
+ textPrimary: M,
47
+ primaryColor: R,
48
+ textColor: p,
49
+ bgcolor: L,
50
+ buttonBgColor: B,
51
+ onSurfaceColor: v,
52
+ borderSize: w,
53
+ surfaceVariant: H,
54
+ brandingColors: r,
55
+ imagePosition: c,
56
+ successColor: d.colorSchemes.light.palette.success.plainColor,
57
+ dangerColor: d.colorSchemes.light.palette.danger.plainColor,
58
+ onPrimaryColor: d.colorSchemes.light.palette.primary.onPrimary,
59
+ isMobile: o,
60
+ imageBackgroundGradient: O,
61
+ darkTextColor: d.colorSchemes.dark.textColor,
62
+ opacity: W,
63
+ secondaryColor: G,
64
+ isExtraSmall: j
65
+ }), C = () => {
66
+ var T;
67
+ return /* @__PURE__ */ e.jsxs(a, { sx: t.mainContentArea, children: [
68
+ !o && /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(a, { sx: t.desktopHeadlineContainer, children: /* @__PURE__ */ e.jsxs(a, { children: [
69
+ /* @__PURE__ */ e.jsxs(
70
+ a,
71
+ {
72
+ sx: {
73
+ display: "flex",
74
+ alignItems: "center",
75
+ justifyContent: "center",
76
+ gap: h["3xs"]
77
+ },
78
+ children: [
79
+ /* @__PURE__ */ e.jsx(
80
+ s,
81
+ {
82
+ level: "body-sm",
83
+ sx: t.headlineTypographyDesktop,
84
+ children: x("matchQuiz.headline")
85
+ }
86
+ ),
87
+ /* @__PURE__ */ e.jsx(
88
+ f,
89
+ {
90
+ rules: i.matchQuiz.rules || "",
91
+ rulesDisplay: i.rulesDisplay,
92
+ isOverlayVariant: !1
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ ),
98
+ /* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
99
+ /* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypographyDesktop, children: i.matchQuiz.title }),
100
+ /* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypographyDesktop, children: y(i.matchQuiz.description) })
101
+ ] })
102
+ ] }) }) }),
103
+ /* @__PURE__ */ e.jsx(a, { sx: t.questionArea, children: /* @__PURE__ */ e.jsx(a, { sx: t.questionContainer, children: /* @__PURE__ */ e.jsx(a, { sx: t.questionContentContainer, children: /* @__PURE__ */ e.jsx(
104
+ ne,
105
+ {
106
+ leaderboard: q,
107
+ userRankings: g,
108
+ matchQuiz: i.matchQuiz,
109
+ showHeading: !i.showPredictionDetails
110
+ }
111
+ ) }) }) }),
112
+ u || g && m && m.numberOfPages > 1 ? /* @__PURE__ */ e.jsxs(a, { sx: t.presentedByContainer, children: [
113
+ u ? /* @__PURE__ */ e.jsx(
114
+ ae,
115
+ {
116
+ brandingLogo: u,
117
+ textColor: p,
118
+ label: ((T = i.matchQuiz.labels) == null ? void 0 : T.sponsor) || null
119
+ }
120
+ ) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
121
+ g && m && m.numberOfPages > 1 && /* @__PURE__ */ e.jsx(
122
+ a,
123
+ {
124
+ sx: {
125
+ ...t.paginationContainer,
126
+ ml: j ? "0" : "auto"
127
+ },
128
+ children: /* @__PURE__ */ e.jsx(
129
+ oe,
130
+ {
131
+ count: m.numberOfPages,
132
+ page: E,
133
+ onChange: N,
134
+ size: o ? "sm" : "md",
135
+ showFirstButton: !1,
136
+ showLastButton: !1,
137
+ siblingCount: o ? 0 : 1
138
+ }
139
+ )
140
+ }
141
+ )
142
+ ] }) : /* @__PURE__ */ e.jsx(e.Fragment, {})
143
+ ] });
144
+ }, $ = () => o ? l ? /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineWithImage, children: /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineContent, children: /* @__PURE__ */ e.jsxs(a, { children: [
145
+ /* @__PURE__ */ e.jsxs(
146
+ a,
147
+ {
148
+ sx: {
149
+ display: "flex",
150
+ alignItems: "center",
151
+ justifyContent: "center",
152
+ gap: h["3xs"]
153
+ },
154
+ children: [
155
+ /* @__PURE__ */ e.jsx(
156
+ s,
157
+ {
158
+ level: "body-sm",
159
+ sx: t.headlineTypographyMobileImage,
160
+ children: x("matchQuiz.headline")
161
+ }
162
+ ),
163
+ /* @__PURE__ */ e.jsx(
164
+ f,
165
+ {
166
+ rules: i.matchQuiz.rules || "",
167
+ rulesDisplay: i.rulesDisplay,
168
+ isOverlayVariant: !1
169
+ }
170
+ )
171
+ ]
172
+ }
173
+ ),
174
+ /* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
175
+ /* @__PURE__ */ e.jsx(s, { sx: t.titleTypographyMobileImage, children: i.matchQuiz.title }),
176
+ /* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypographyMobileImage, children: y(i.matchQuiz.description) })
177
+ ] })
178
+ ] }) }) }) : /* @__PURE__ */ e.jsx(a, { sx: t.mobileHeadlineWithoutImage, children: /* @__PURE__ */ e.jsxs(a, { children: [
179
+ /* @__PURE__ */ e.jsxs(
180
+ a,
181
+ {
182
+ sx: {
183
+ display: "flex",
184
+ alignItems: "center",
185
+ justifyContent: "center",
186
+ gap: h["3xs"]
187
+ },
188
+ children: [
189
+ /* @__PURE__ */ e.jsx(s, { level: "body-sm", sx: t.headlineTypography, children: x("matchQuiz.headline") }),
190
+ /* @__PURE__ */ e.jsx(
191
+ f,
192
+ {
193
+ rules: i.matchQuiz.rules || "",
194
+ rulesDisplay: i.rulesDisplay,
195
+ isOverlayVariant: !1
196
+ }
197
+ )
198
+ ]
199
+ }
200
+ ),
201
+ /* @__PURE__ */ e.jsxs(a, { sx: t.contentContainer, children: [
202
+ /* @__PURE__ */ e.jsx(s, { level: "h4", sx: t.titleTypography, children: i.matchQuiz.title }),
203
+ /* @__PURE__ */ e.jsx(s, { sx: t.descriptionTypography, children: y(i.matchQuiz.description) })
204
+ ] })
205
+ ] }) }) : /* @__PURE__ */ e.jsx(e.Fragment, {});
206
+ return /* @__PURE__ */ e.jsx(te, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: i.showPredictionDetails ? /* @__PURE__ */ e.jsx(
207
+ le,
208
+ {
209
+ prediction: i.prediction,
210
+ marketsResults: U,
211
+ brandingColors: (P = i.matchQuiz.branding) == null ? void 0 : P.colors,
212
+ resultsTabPanelSxProps: {
213
+ display: "flex",
214
+ flexDirection: o ? "column" : "row",
215
+ px: 0,
216
+ pb: 0,
217
+ pt: 0
218
+ },
219
+ children: /* @__PURE__ */ e.jsxs(a, { sx: t.scoreStateWrapperContainer, children: [
220
+ l && c === "left" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) }),
221
+ C(),
222
+ l && c === "right" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) })
223
+ ] })
224
+ }
225
+ ) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
226
+ $(),
227
+ l && c === "left" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerLeft, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) }),
228
+ C(),
229
+ l && c === "right" && /* @__PURE__ */ e.jsx(a, { sx: t.imageContainerRight, children: /* @__PURE__ */ e.jsx(a, { sx: t.imageSafeArea }) })
230
+ ] }) });
231
+ };
232
+ export {
233
+ Fe as default
234
+ };