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,108 @@
1
+ import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { useState as g } from "react";
3
+ import { Box as s, Typography as m } from "@mui/joy";
4
+ import { useColors as f, useCornerRadius as j, useFontFamily as S, useSpacingScale as v, isMobile as w } from "../../../../../../common/src/functions/theme.js";
5
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
6
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
7
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
8
+ import "../../../../../../common/src/providers/ContainerProvider.js";
9
+ import { createStyles as L } from "./BooleanSelector.styles.js";
10
+ import { useTranslation as b } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
11
+ const N = (i) => {
12
+ const { t: l } = b(), o = f(), C = j(), a = S(), u = v(), n = w(), [c, x] = g(
13
+ i.prediction
14
+ ), t = L({
15
+ spacingScale: u,
16
+ borderRadius: C,
17
+ fontFamilyPrimary: a.primary,
18
+ fontFamilySecondary: a.secondary,
19
+ textPrimary: o.textPrimary,
20
+ textSecondary: o.textSecondary,
21
+ neutralSoftBg: o.palette.neutral.softBg,
22
+ neutralOutlinedBorder: o.palette.neutral.outlinedBorder,
23
+ neutralPlainHoverBg: o.palette.neutral.plainHoverBg,
24
+ primary: o.palette.primary.plainColor,
25
+ onPrimary: o.palette.primary.onPrimary,
26
+ successMain: o.palette.success.plainColor,
27
+ dangerMain: o.palette.danger.plainColor,
28
+ isMobile: n
29
+ }), p = (r) => {
30
+ x(r), i.onSelectionChange(r);
31
+ }, d = {
32
+ yes: l("eventGame.fixtures.yes"),
33
+ no: l("eventGame.fixtures.no")
34
+ }, y = ({ isSelected: r }) => /* @__PURE__ */ e.jsxs(s, { sx: t.optionContainer, children: [
35
+ /* @__PURE__ */ e.jsx(
36
+ s,
37
+ {
38
+ sx: {
39
+ ...t.optionIcon,
40
+ ...r ? t.selectedYesIcon : {},
41
+ cursor: "pointer"
42
+ },
43
+ onClick: () => p(!0),
44
+ children: /* @__PURE__ */ e.jsx(
45
+ "svg",
46
+ {
47
+ width: n ? "20" : "24",
48
+ height: n ? "20" : "24",
49
+ viewBox: "0 0 24 24",
50
+ fill: "none",
51
+ xmlns: "http://www.w3.org/2000/svg",
52
+ children: /* @__PURE__ */ e.jsx(
53
+ "path",
54
+ {
55
+ d: "M7 22H4C3.46957 22 2.96086 21.7893 2.58579 21.4142C2.21071 21.0391 2 20.5304 2 20V13C2 12.4696 2.21071 11.9609 2.58579 11.5858C2.96086 11.2107 3.46957 11 4 11H7M14 9V5C14 4.20435 13.6839 3.44129 13.1213 2.87868C12.5587 2.31607 11.7956 2 11 2L7 11V22H18.28C18.7623 22.0055 19.2304 21.8364 19.5979 21.524C19.9654 21.2116 20.2077 20.7769 20.28 20.3L21.66 11.3C21.7035 11.0134 21.6842 10.7207 21.6033 10.4423C21.5225 10.1638 21.3821 9.90629 21.1919 9.68751C21.0016 9.46873 20.7661 9.29393 20.5016 9.17522C20.2371 9.0565 19.9499 8.99672 19.66 9H14Z",
56
+ stroke: "currentColor",
57
+ strokeWidth: "2",
58
+ strokeLinecap: "round",
59
+ strokeLinejoin: "round"
60
+ }
61
+ )
62
+ }
63
+ )
64
+ }
65
+ ),
66
+ /* @__PURE__ */ e.jsx(m, { level: "body-sm", sx: t.optionLabel, children: d.yes })
67
+ ] }), h = ({ isSelected: r }) => /* @__PURE__ */ e.jsxs(s, { sx: t.optionContainer, children: [
68
+ /* @__PURE__ */ e.jsx(
69
+ s,
70
+ {
71
+ sx: {
72
+ ...t.optionIcon,
73
+ ...r ? t.selectedNoIcon : {},
74
+ cursor: "pointer"
75
+ },
76
+ onClick: () => p(!1),
77
+ children: /* @__PURE__ */ e.jsx(
78
+ "svg",
79
+ {
80
+ width: n ? "20" : "24",
81
+ height: n ? "20" : "24",
82
+ viewBox: "0 0 24 24",
83
+ fill: "none",
84
+ xmlns: "http://www.w3.org/2000/svg",
85
+ children: /* @__PURE__ */ e.jsx(
86
+ "path",
87
+ {
88
+ d: "M17 2H20C20.5304 2 21.0391 2.21071 21.4142 2.58579C21.7893 2.96086 22 3.46957 22 4V11C22 11.5304 21.7893 12.0391 21.4142 12.4142C21.0391 12.7893 20.5304 13 20 13H17M10 15V19C10 19.7956 10.3161 20.5587 10.8787 21.1213C11.4413 21.6839 12.2044 22 13 22L17 13V2H5.72C5.23766 1.99448 4.76962 2.16361 4.40206 2.47596C4.03451 2.78831 3.79232 3.22305 3.72 3.7L2.34 12.7C2.29648 12.9866 2.31583 13.2793 2.39668 13.5577C2.47753 13.8362 2.61793 14.0937 2.80816 14.3125C2.99839 14.5313 3.23394 14.7061 3.49843 14.8248C3.76291 14.9435 4.05011 15.0033 4.34 15H10Z",
89
+ stroke: "currentColor",
90
+ strokeWidth: "2",
91
+ strokeLinecap: "round",
92
+ strokeLinejoin: "round"
93
+ }
94
+ )
95
+ }
96
+ )
97
+ }
98
+ ),
99
+ /* @__PURE__ */ e.jsx(m, { level: "body-sm", sx: t.optionLabel, children: d.no })
100
+ ] });
101
+ return /* @__PURE__ */ e.jsxs(s, { sx: t.container, children: [
102
+ /* @__PURE__ */ e.jsx(y, { isSelected: c === !0 }),
103
+ /* @__PURE__ */ e.jsx(h, { isSelected: c === !1 })
104
+ ] });
105
+ };
106
+ export {
107
+ N as default
108
+ };
@@ -0,0 +1,44 @@
1
+ import { createOptionIconStyles as t } from "../shared.styles.js";
2
+ const a = (e) => {
3
+ const n = t({
4
+ spacingScale: e.spacingScale,
5
+ neutralSoftBg: e.neutralSoftBg,
6
+ neutralPlainHoverBg: e.neutralPlainHoverBg,
7
+ isMobile: e.isMobile,
8
+ primary: e.primary,
9
+ onPrimary: e.onPrimary,
10
+ successMain: e.successMain,
11
+ dangerMain: e.dangerMain
12
+ });
13
+ return {
14
+ container: {
15
+ display: "flex",
16
+ alignItems: "center",
17
+ justifyContent: "center",
18
+ gap: e.isMobile ? e.spacingScale.xl : e.spacingScale["2xl"],
19
+ pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
20
+ },
21
+ optionContainer: {
22
+ display: "flex",
23
+ flexDirection: "column",
24
+ alignItems: "center",
25
+ gap: e.spacingScale.sm
26
+ },
27
+ optionIcon: {
28
+ ...n.base,
29
+ color: e.textSecondary
30
+ },
31
+ selectedYesIcon: n.selectedYes,
32
+ selectedNoIcon: n.selectedNo,
33
+ optionLabel: {
34
+ fontFamily: e.fontFamilySecondary,
35
+ color: e.textPrimary,
36
+ fontSize: e.isMobile ? "0.875em" : "1em",
37
+ fontWeight: 600,
38
+ textAlign: "center"
39
+ }
40
+ };
41
+ };
42
+ export {
43
+ a as createStyles
44
+ };
@@ -0,0 +1,70 @@
1
+ import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { Box as r, Typography as v } from "@mui/joy";
3
+ import { useColors as j, isExtraSmall as p, useCornerRadius as C, useFontFamily as b, useSpacingScale as D } 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 "react";
7
+ import { useConstantContext as F } from "../../../../../../common/src/hooks/useConstantContext.js";
8
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
9
+ import "../../../../../../common/src/providers/ContainerProvider.js";
10
+ import P from "./NumberSelector.js";
11
+ import { createStyles as E } from "./NumberFixture.styles.js";
12
+ import O from "../PointsDisplay/PointsDisplay.js";
13
+ import { EventGameConstantsContext as V } from "../../../../providers/ConstantsProvider.js";
14
+ import { useTranslation as T } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
15
+ const Q = (t) => {
16
+ var u, d;
17
+ const { t: a } = T(), s = j(), S = p(), g = C(), l = b(), m = D(), { points: h } = F(V), x = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : S, o = E({
18
+ spacingScale: m,
19
+ borderRadius: g,
20
+ fontFamilyPrimary: l.primary,
21
+ fontFamilySecondary: l.secondary,
22
+ textPrimary: s.textPrimary,
23
+ textSecondary: s.textSecondary,
24
+ isExtraSmall: x
25
+ }), c = (() => {
26
+ if (!t.validOutcomes) return null;
27
+ const { min: i, max: n } = t.validOutcomes, f = i != null, y = n != null;
28
+ return f && y ? a("eventGame.fixtures.numberRangeDescription", { min: i, max: n }) : f ? a("eventGame.fixtures.numberMinDescription", { min: i }) : y ? a("eventGame.fixtures.numberMaxDescription", { max: n }) : null;
29
+ })();
30
+ return /* @__PURE__ */ e.jsxs(r, { sx: o.container, children: [
31
+ /* @__PURE__ */ e.jsxs(
32
+ r,
33
+ {
34
+ sx: {
35
+ display: "flex",
36
+ alignItems: "center",
37
+ justifyContent: "space-between",
38
+ width: "100%",
39
+ gap: m.sm
40
+ },
41
+ children: [
42
+ x ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(r, { sx: { flex: 1 } }),
43
+ /* @__PURE__ */ e.jsx(v, { level: "h3", sx: o.title, children: t.question }),
44
+ /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: t.showPoints !== !1 && h.length > 0 && /* @__PURE__ */ e.jsx(
45
+ O,
46
+ {
47
+ fixtureId: t.fixtureId,
48
+ brandingPrimaryColor: t.brandingPrimaryColor,
49
+ isSplitVariant: t.isSplitVariant
50
+ }
51
+ ) })
52
+ ]
53
+ }
54
+ ),
55
+ c && /* @__PURE__ */ e.jsx(v, { level: "body-sm", sx: o.description, children: c }),
56
+ /* @__PURE__ */ e.jsx(
57
+ P,
58
+ {
59
+ onChange: t.onChange,
60
+ prediction: t.prediction,
61
+ minValue: ((u = t.validOutcomes) == null ? void 0 : u.min) ?? void 0,
62
+ maxValue: ((d = t.validOutcomes) == null ? void 0 : d.max) ?? void 0,
63
+ isOverlayVariant: t.isOverlayVariant
64
+ }
65
+ )
66
+ ] });
67
+ };
68
+ export {
69
+ Q as default
70
+ };
@@ -0,0 +1,37 @@
1
+ import { isMobile as i } from "../../../../../../common/src/functions/theme.js";
2
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
3
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
4
+ import "../../../../../../../node_modules/react/jsx-runtime.js";
5
+ import "@mui/joy";
6
+ import "react";
7
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
8
+ import "../../../../../../common/src/providers/ContainerProvider.js";
9
+ const x = (t) => {
10
+ const e = i();
11
+ return {
12
+ container: {
13
+ display: "flex",
14
+ flexDirection: "column",
15
+ alignItems: "center"
16
+ },
17
+ title: {
18
+ fontFamily: t.fontFamilyPrimary,
19
+ fontWeight: 600,
20
+ fontSize: e ? "1.125em" : "1.25em",
21
+ lineHeight: 1.2,
22
+ color: t.textPrimary,
23
+ textAlign: t.isExtraSmall ? "left" : "center"
24
+ },
25
+ description: {
26
+ fontFamily: t.fontFamilySecondary,
27
+ fontSize: e ? "0.875em" : "0.9375em",
28
+ color: t.textSecondary,
29
+ textAlign: "center",
30
+ mt: t.spacingScale.xs,
31
+ mb: t.spacingScale.xs
32
+ }
33
+ };
34
+ };
35
+ export {
36
+ x as createStyles
37
+ };
@@ -0,0 +1,82 @@
1
+ import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { useState as F, useRef as I } from "react";
3
+ import { Box as y, IconButton as p, Input as V } from "@mui/joy";
4
+ import { useColors as v, useCornerRadius as B, useFontFamily as j, useSpacingScale as P, isMobile as R, useInternalTheme as z } from "../../../../../../common/src/functions/theme.js";
5
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
6
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
7
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
8
+ import "../../../../../../common/src/providers/ContainerProvider.js";
9
+ import M from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";
10
+ import k from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";
11
+ import { createStyles as w } from "./NumberSelector.styles.js";
12
+ const $ = (e) => {
13
+ const t = v(), h = B(), i = j(), g = P(), m = R(), S = z(), [o, u] = F(e.prediction), l = I(null), c = e.minValue !== void 0 ? e.minValue : -1 / 0, d = e.maxValue !== void 0 ? e.maxValue : 1 / 0, b = S.mode === "dark" || e.isOverlayVariant, a = w({
14
+ spacingScale: g,
15
+ borderRadius: h,
16
+ fontFamilyPrimary: i.primary,
17
+ fontFamilySecondary: i.secondary,
18
+ textPrimary: t.textPrimary,
19
+ textSecondary: t.textSecondary,
20
+ neutralSoftBg: t.palette.neutral.softBg,
21
+ neutralOutlinedBorder: t.palette.neutral.outlinedBorder,
22
+ neutralPlainHoverBg: t.palette.neutral.plainHoverBg,
23
+ primaryPlainColor: t.palette.primary.plainColor,
24
+ isMobile: m,
25
+ iconColor: b ? "#FFFFFF" : t.textPrimary
26
+ }), f = (s) => {
27
+ const n = s ? Math.min(o + 1, d) : Math.max(o - 1, c);
28
+ l.current && (l.current.value = String(n)), u(n), e.onChange(n);
29
+ }, C = (s) => {
30
+ const n = s.target.value;
31
+ if (n === "" || !/^\d+$/.test(n))
32
+ return;
33
+ const x = parseInt(n, 10);
34
+ u(x), e.onChange(x);
35
+ };
36
+ return /* @__PURE__ */ r.jsx(y, { sx: a.container, children: /* @__PURE__ */ r.jsxs(y, { sx: a.numberInputContainer, children: [
37
+ /* @__PURE__ */ r.jsx(
38
+ p,
39
+ {
40
+ size: "sm",
41
+ variant: "plain",
42
+ onClick: () => f(!1),
43
+ sx: a.numberButton,
44
+ disabled: o <= c,
45
+ children: /* @__PURE__ */ r.jsx(M, { fontSize: "small" })
46
+ }
47
+ ),
48
+ /* @__PURE__ */ r.jsx(
49
+ V,
50
+ {
51
+ value: o,
52
+ onChange: C,
53
+ sx: a.numberDisplay,
54
+ slotProps: {
55
+ input: {
56
+ ref: l,
57
+ style: {
58
+ textAlign: "center",
59
+ fontFamily: i.primary,
60
+ fontWeight: 600,
61
+ fontSize: m ? "0.75em" : "1em"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ ),
67
+ /* @__PURE__ */ r.jsx(
68
+ p,
69
+ {
70
+ size: "sm",
71
+ variant: "plain",
72
+ onClick: () => f(!0),
73
+ sx: a.numberButton,
74
+ disabled: o >= d,
75
+ children: /* @__PURE__ */ r.jsx(k, { fontSize: "small" })
76
+ }
77
+ )
78
+ ] }) });
79
+ };
80
+ export {
81
+ $ as default
82
+ };
@@ -0,0 +1,64 @@
1
+ const i = (e) => ({
2
+ container: {
3
+ display: "flex",
4
+ alignItems: "center",
5
+ justifyContent: "center",
6
+ gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg,
7
+ pt: e.isMobile ? e.spacingScale.xs : e.spacingScale.sm
8
+ },
9
+ numberInputContainer: {
10
+ display: "flex",
11
+ flexDirection: "row",
12
+ alignItems: "center",
13
+ gap: e.spacingScale.sm
14
+ },
15
+ numberButton: {
16
+ borderRadius: e.borderRadius.sm,
17
+ minHeight: e.isMobile ? "28px" : "32px",
18
+ minWidth: e.isMobile ? "28px" : "32px",
19
+ borderColor: e.neutralOutlinedBorder,
20
+ color: e.iconColor,
21
+ "&:hover": {
22
+ backgroundColor: e.neutralPlainHoverBg,
23
+ color: e.iconColor
24
+ },
25
+ "& svg": {
26
+ color: e.iconColor
27
+ }
28
+ },
29
+ numberDisplay: {
30
+ fontFamily: e.fontFamilyPrimary,
31
+ fontWeight: 600,
32
+ fontSize: e.isMobile ? "1.5em" : "2em",
33
+ color: e.textPrimary,
34
+ minWidth: e.isMobile ? "3.5rem" : "4.5rem",
35
+ maxWidth: e.isMobile ? "5rem" : "6rem",
36
+ textAlign: "center",
37
+ bgcolor: e.neutralSoftBg,
38
+ borderRadius: e.borderRadius.sm,
39
+ px: e.spacingScale.sm,
40
+ py: e.spacingScale.xs,
41
+ border: "none",
42
+ // Remove Joy UI's default focus outline
43
+ outline: "none",
44
+ "&:hover": {
45
+ bgcolor: e.neutralSoftBg
46
+ },
47
+ "&:focus-within": {
48
+ bgcolor: e.neutralSoftBg,
49
+ // Add primary color border on focus
50
+ outline: `2px solid ${e.primaryPlainColor}`,
51
+ outlineOffset: "2px"
52
+ },
53
+ // Override Joy UI Input's internal focus styles
54
+ "&::before": {
55
+ display: "none"
56
+ },
57
+ "&:focus-within::before": {
58
+ display: "none"
59
+ }
60
+ }
61
+ });
62
+ export {
63
+ i as createStyles
64
+ };
@@ -0,0 +1,70 @@
1
+ import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { useState as b } from "react";
3
+ import { Tooltip as c, IconButton as v, Box as j, Typography as n } from "@mui/joy";
4
+ import { useColors as C, useCornerRadius as S, useFontFamily as h, useSpacingScale as B, isMobile as P } from "../../../../../../common/src/functions/theme.js";
5
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
6
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
7
+ import { useConstantContext as T } from "../../../../../../common/src/hooks/useConstantContext.js";
8
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
9
+ import "../../../../../../common/src/providers/ContainerProvider.js";
10
+ import g from "../../../../../../../node_modules/@mui/icons-material/esm/HelpOutline.js";
11
+ import { createStyles as F } from "./PointsDisplay.styles.js";
12
+ import { EventGameConstantsContext as I } from "../../../../providers/ConstantsProvider.js";
13
+ import { useTranslation as H } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
14
+ const J = (s) => {
15
+ const { t: i } = H(), o = C(), u = S(), l = h(), d = B(), x = P(), [a, p] = b(!1), { points: f } = T(I), t = F({
16
+ spacingScale: d,
17
+ borderRadius: u,
18
+ fontFamilyPrimary: l.primary,
19
+ fontFamilySecondary: l.secondary,
20
+ textPrimary: o.textPrimary,
21
+ textSecondary: o.textSecondary,
22
+ neutralSoftBg: o.palette.neutral.softBg,
23
+ neutralOutlinedBorder: o.palette.neutral.outlinedBorder,
24
+ neutralPlainHoverBg: o.palette.neutral.plainHoverBg
25
+ }), r = f.find((y) => y.id === s.fixtureId);
26
+ if (!r)
27
+ return null;
28
+ const m = () => /* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: t.tooltipText, children: i("eventGame.points.earnPointsForCorrect", {
29
+ points: r.points
30
+ }) });
31
+ return x || s.isSplitVariant ? /* @__PURE__ */ e.jsx(
32
+ c,
33
+ {
34
+ title: m(),
35
+ placement: "top-start",
36
+ variant: "soft",
37
+ sx: t.tooltip,
38
+ disablePortal: !0,
39
+ open: a,
40
+ onClose: () => p(!1),
41
+ disableHoverListener: !0,
42
+ disableFocusListener: !0,
43
+ disableTouchListener: !0,
44
+ children: /* @__PURE__ */ e.jsx(
45
+ v,
46
+ {
47
+ onClick: () => p(!a),
48
+ sx: t.mobileIconButton,
49
+ children: /* @__PURE__ */ e.jsx(g, { sx: t.mobileIcon })
50
+ }
51
+ )
52
+ }
53
+ ) : /* @__PURE__ */ e.jsx(
54
+ c,
55
+ {
56
+ title: m(),
57
+ placement: "top-start",
58
+ variant: "soft",
59
+ sx: t.tooltip,
60
+ disablePortal: !0,
61
+ children: /* @__PURE__ */ e.jsxs(j, { sx: t.container, children: [
62
+ /* @__PURE__ */ e.jsx(n, { level: "body-sm", sx: t.pointsText, children: r.points }),
63
+ /* @__PURE__ */ e.jsx(n, { level: "body-xs", sx: t.ptsLabel, children: i("eventGame.points.pts") })
64
+ ] })
65
+ }
66
+ );
67
+ };
68
+ export {
69
+ J as default
70
+ };
@@ -0,0 +1,98 @@
1
+ const e = (t) => ({
2
+ container: {
3
+ backgroundColor: t.neutralSoftBg,
4
+ color: t.textPrimary,
5
+ borderRadius: t.borderRadius.md,
6
+ border: `1px solid ${t.neutralOutlinedBorder}`,
7
+ padding: `${t.spacingScale.xs} ${t.spacingScale.sm}`,
8
+ display: "flex",
9
+ alignItems: "center",
10
+ gap: t.spacingScale.xs,
11
+ cursor: "default",
12
+ transition: "all 0.2s ease-in-out",
13
+ boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
14
+ zIndex: 10,
15
+ minWidth: "56px",
16
+ justifyContent: "center",
17
+ "&:hover": {
18
+ backgroundColor: t.neutralPlainHoverBg,
19
+ transform: "scale(1.05)",
20
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
21
+ }
22
+ },
23
+ pointsText: {
24
+ fontFamily: t.fontFamilyPrimary,
25
+ fontWeight: 700,
26
+ fontSize: "0.875em",
27
+ lineHeight: 1,
28
+ color: t.textPrimary
29
+ },
30
+ ptsLabel: {
31
+ fontFamily: t.fontFamilySecondary,
32
+ fontWeight: 500,
33
+ fontSize: "0.75em",
34
+ lineHeight: 1,
35
+ color: t.textSecondary,
36
+ opacity: 0.9
37
+ },
38
+ tooltip: {
39
+ maxWidth: "280px",
40
+ backgroundColor: t.neutralSoftBg,
41
+ color: t.textPrimary,
42
+ border: `1px solid ${t.neutralOutlinedBorder}`,
43
+ borderRadius: t.borderRadius.sm,
44
+ p: t.spacingScale.xs
45
+ },
46
+ tooltipContainer: {
47
+ display: "flex",
48
+ flexDirection: "column",
49
+ gap: t.spacingScale.xs
50
+ },
51
+ tooltipText: {
52
+ fontFamily: t.fontFamilySecondary,
53
+ color: t.textPrimary,
54
+ fontSize: "0.875em",
55
+ lineHeight: 1.3
56
+ },
57
+ tooltipSubtext: {
58
+ fontFamily: t.fontFamilySecondary,
59
+ color: t.textSecondary,
60
+ fontSize: "0.75em",
61
+ lineHeight: 1.3
62
+ },
63
+ tooltipAlternative: {
64
+ fontFamily: t.fontFamilySecondary,
65
+ color: t.textPrimary,
66
+ fontSize: "0.75em",
67
+ lineHeight: 1.3,
68
+ paddingLeft: t.spacingScale.xs
69
+ },
70
+ // Mobile-specific styles
71
+ mobileIconButton: {
72
+ backgroundColor: "transparent",
73
+ color: t.textPrimary,
74
+ border: "none",
75
+ borderRadius: "50%",
76
+ width: "32px",
77
+ height: "32px",
78
+ minHeight: "32px",
79
+ minWidth: "32px",
80
+ padding: 0,
81
+ display: "flex",
82
+ alignItems: "center",
83
+ justifyContent: "center",
84
+ transition: "all 0.2s ease-in-out",
85
+ zIndex: 10,
86
+ "&:hover": {
87
+ backgroundColor: "transparent",
88
+ transform: "scale(1.1)"
89
+ }
90
+ },
91
+ mobileIcon: {
92
+ fontSize: "1em",
93
+ color: t.textPrimary
94
+ }
95
+ });
96
+ export {
97
+ e as createStyles
98
+ };
@@ -0,0 +1,62 @@
1
+ import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
+ import { Box as o, Typography as c } from "@mui/joy";
3
+ import { useColors as y, isExtraSmall as d, useCornerRadius as u, useFontFamily as f, useSpacingScale as S } 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 "react";
7
+ import { useConstantContext as j } from "../../../../../../common/src/hooks/useConstantContext.js";
8
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
9
+ import "../../../../../../common/src/providers/ContainerProvider.js";
10
+ import p from "./TextSelector.js";
11
+ import { createStyles as C } from "./TextFixture.styles.js";
12
+ import g from "../PointsDisplay/PointsDisplay.js";
13
+ import { EventGameConstantsContext as h } from "../../../../providers/ConstantsProvider.js";
14
+ const q = (t) => {
15
+ const i = y(), l = d(), m = u(), a = f(), r = S(), { points: x } = j(h), n = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : l, s = C({
16
+ spacingScale: r,
17
+ borderRadius: m,
18
+ fontFamilyPrimary: a.primary,
19
+ fontFamilySecondary: a.secondary,
20
+ textPrimary: i.textPrimary,
21
+ textSecondary: i.textSecondary,
22
+ isExtraSmall: n
23
+ });
24
+ return /* @__PURE__ */ e.jsxs(o, { sx: s.container, children: [
25
+ /* @__PURE__ */ e.jsxs(
26
+ o,
27
+ {
28
+ sx: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ justifyContent: "space-between",
32
+ width: "100%",
33
+ gap: r.sm
34
+ },
35
+ children: [
36
+ n ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(o, { sx: { flex: 1 } }),
37
+ /* @__PURE__ */ e.jsx(c, { level: "h3", sx: s.title, children: t.question }),
38
+ /* @__PURE__ */ e.jsx(o, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: t.showPoints !== !1 && x.length > 0 && /* @__PURE__ */ e.jsx(
39
+ g,
40
+ {
41
+ fixtureId: t.fixtureId,
42
+ brandingPrimaryColor: t.brandingPrimaryColor,
43
+ isSplitVariant: t.isSplitVariant
44
+ }
45
+ ) })
46
+ ]
47
+ }
48
+ ),
49
+ /* @__PURE__ */ e.jsx(
50
+ p,
51
+ {
52
+ onTextChange: t.onTextChange,
53
+ prediction: t.prediction,
54
+ validOutcomes: t.validOutcomes,
55
+ optionsLayout: t.optionsLayout
56
+ }
57
+ )
58
+ ] });
59
+ };
60
+ export {
61
+ q as default
62
+ };
@@ -0,0 +1,29 @@
1
+ import { isMobile as e } from "../../../../../../common/src/functions/theme.js";
2
+ import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
3
+ import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
4
+ import "../../../../../../../node_modules/react/jsx-runtime.js";
5
+ import "@mui/joy";
6
+ import "react";
7
+ import "../../../../../../common/src/providers/ConstantsProvider.js";
8
+ import "../../../../../../common/src/providers/ContainerProvider.js";
9
+ const p = (t) => {
10
+ const i = e();
11
+ return {
12
+ container: {
13
+ display: "flex",
14
+ flexDirection: "column",
15
+ alignItems: "center"
16
+ },
17
+ title: {
18
+ fontFamily: t.fontFamilyPrimary,
19
+ fontWeight: 600,
20
+ fontSize: i ? "1.125em" : "1.25em",
21
+ lineHeight: 1.2,
22
+ color: t.textPrimary,
23
+ textAlign: t.isExtraSmall ? "left" : "center"
24
+ }
25
+ };
26
+ };
27
+ export {
28
+ p as createStyles
29
+ };