fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7

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 (369) hide show
  1. package/ClassicQuizPlay.js +4846 -3
  2. package/CollectLead.js +1252 -3
  3. package/EventGamePlay.js +7594 -3
  4. package/MatchQuizPlay.js +11001 -3
  5. package/PersonalityQuizPlay.js +39512 -3
  6. package/PollVote.js +4165 -3
  7. package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
  8. package/chunks/Error-BurPfBJw.js +1739 -0
  9. package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
  10. package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
  11. package/chunks/Portal-DegkUXpU.js +21877 -0
  12. package/chunks/Tabs-leN3Fb8D.js +1079 -0
  13. package/chunks/index-DUQ2LFod.js +5492 -0
  14. package/index.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/_virtual/_commonjsHelpers.js +0 -6
  17. package/_virtual/index.js +0 -4
  18. package/_virtual/index2.js +0 -4
  19. package/_virtual/index3.js +0 -4
  20. package/_virtual/jsx-runtime.js +0 -4
  21. package/_virtual/react-is.development.js +0 -4
  22. package/_virtual/react-is.development2.js +0 -4
  23. package/_virtual/react-is.production.min.js +0 -4
  24. package/_virtual/react-is.production.min2.js +0 -4
  25. package/_virtual/react-jsx-runtime.development.js +0 -4
  26. package/_virtual/react-jsx-runtime.production.js +0 -4
  27. package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  28. package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  29. package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
  30. package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
  31. package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
  32. package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
  33. package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
  34. package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
  35. package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
  36. package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
  37. package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
  38. package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
  39. package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
  40. package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
  41. package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
  42. package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
  43. package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
  44. package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
  45. package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
  46. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
  47. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
  48. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
  49. package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
  50. package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
  51. package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
  52. package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
  53. package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
  54. package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  55. package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  56. package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
  57. package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
  58. package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
  59. package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
  60. package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
  61. package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
  62. package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
  63. package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
  64. package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
  65. package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  66. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
  67. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
  68. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
  69. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
  70. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
  71. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
  72. package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
  73. package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  74. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
  75. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
  76. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
  77. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
  78. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
  79. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
  80. package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
  81. package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  82. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
  83. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
  84. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
  85. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
  86. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
  87. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
  88. package/packages/classic-quiz-play/src/constants/constants.js +0 -4
  89. package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
  90. package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
  91. package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
  92. package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
  93. package/packages/classic-quiz-play/src/index.js +0 -4
  94. package/packages/classic-quiz-play/src/main.js +0 -7
  95. package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  96. package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
  97. package/packages/collect-lead/src/components/CollectLead.js +0 -18
  98. package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
  99. package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
  100. package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
  101. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
  102. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
  103. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
  104. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
  105. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
  106. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
  107. package/packages/collect-lead/src/index.js +0 -4
  108. package/packages/collect-lead/src/main.js +0 -39
  109. package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
  110. package/packages/common/src/components/AdditionalCTA.js +0 -24
  111. package/packages/common/src/components/AlertMessage.js +0 -88
  112. package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
  113. package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
  114. package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
  115. package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
  116. package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
  117. package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
  118. package/packages/common/src/components/Leads/LeadForm.js +0 -498
  119. package/packages/common/src/components/Portal.js +0 -62
  120. package/packages/common/src/components/Rules.js +0 -299
  121. package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
  122. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
  123. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
  124. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
  125. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
  126. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
  127. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
  128. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
  129. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
  130. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
  131. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
  132. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
  133. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
  134. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
  135. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
  136. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
  137. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
  138. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
  139. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
  140. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
  141. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
  142. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
  143. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
  144. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
  145. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
  146. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
  147. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
  148. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
  149. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
  150. package/packages/common/src/components/Spinner.js +0 -36
  151. package/packages/common/src/constants/constants.js +0 -457
  152. package/packages/common/src/enums/enums.js +0 -4
  153. package/packages/common/src/functions/helpers.js +0 -58
  154. package/packages/common/src/functions/i18n.js +0 -69
  155. package/packages/common/src/functions/theme.js +0 -301
  156. package/packages/common/src/hooks/useConstantContext.js +0 -10
  157. package/packages/common/src/hooks/useImageUrl.js +0 -8
  158. package/packages/common/src/hooks/useImageVariant.js +0 -11
  159. package/packages/common/src/hooks/useLeadForm.js +0 -129
  160. package/packages/common/src/hooks/useThemeMode.js +0 -30
  161. package/packages/common/src/locales/bg.json.js +0 -363
  162. package/packages/common/src/locales/de.json.js +0 -362
  163. package/packages/common/src/locales/el.json.js +0 -362
  164. package/packages/common/src/locales/en.json.js +0 -368
  165. package/packages/common/src/locales/es.json.js +0 -362
  166. package/packages/common/src/locales/fr-be.json.js +0 -362
  167. package/packages/common/src/locales/fr.json.js +0 -362
  168. package/packages/common/src/locales/it.json.js +0 -362
  169. package/packages/common/src/locales/pl.json.js +0 -362
  170. package/packages/common/src/locales/pt-br.json.js +0 -362
  171. package/packages/common/src/locales/pt.json.js +0 -362
  172. package/packages/common/src/locales/ro.json.js +0 -362
  173. package/packages/common/src/locales/sk.json.js +0 -362
  174. package/packages/common/src/locales/sr.json.js +0 -362
  175. package/packages/common/src/providers/ConstantsProvider.js +0 -29
  176. package/packages/common/src/providers/ContainerProvider.js +0 -35
  177. package/packages/common/src/providers/FontProvider.js +0 -25
  178. package/packages/common/src/providers/ThemeProvider.js +0 -80
  179. package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  180. package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
  181. package/packages/event-game-play/src/assets/school.svg.js +0 -4
  182. package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
  183. package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
  184. package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
  185. package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
  186. package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
  187. package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
  188. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
  189. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
  190. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
  191. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
  192. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
  193. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
  194. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
  195. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
  196. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
  197. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  198. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
  199. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
  200. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
  201. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
  202. package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  203. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  204. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
  205. package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
  206. package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
  207. package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
  208. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
  209. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
  210. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
  211. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
  212. package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
  213. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
  214. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
  215. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
  216. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
  217. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
  218. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
  219. package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
  220. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
  221. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
  222. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
  223. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
  224. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
  225. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
  226. package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
  227. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
  228. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
  229. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
  230. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
  231. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
  232. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
  233. package/packages/event-game-play/src/helpers/helpers.js +0 -11
  234. package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
  235. package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
  236. package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
  237. package/packages/event-game-play/src/index.js +0 -4
  238. package/packages/event-game-play/src/main.js +0 -7
  239. package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
  240. package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  241. package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  242. package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
  243. package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
  244. package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  245. package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
  246. package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
  247. package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  248. package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
  249. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
  250. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
  251. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
  252. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
  253. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
  254. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
  255. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
  256. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
  257. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
  258. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
  259. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
  260. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
  261. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
  262. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
  263. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
  264. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
  265. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
  266. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
  267. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
  268. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
  269. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
  270. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
  271. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
  272. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  273. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
  274. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
  275. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
  276. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
  277. package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  278. package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  279. package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
  280. package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
  281. package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
  282. package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
  283. package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
  284. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
  285. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
  286. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
  287. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
  288. package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
  289. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
  290. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
  291. package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  292. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
  293. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
  294. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
  295. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
  296. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
  297. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
  298. package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
  299. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
  300. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
  301. package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  302. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
  303. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
  304. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
  305. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
  306. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
  307. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
  308. package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
  309. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
  310. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
  311. package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  312. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
  313. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
  314. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
  315. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
  316. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
  317. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
  318. package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
  319. package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
  320. package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
  321. package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
  322. package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
  323. package/packages/match-quiz-play/src/index.js +0 -4
  324. package/packages/match-quiz-play/src/main.js +0 -7
  325. package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
  326. package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
  327. package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  328. package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
  329. package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
  330. package/packages/poll-vote/src/components/PollNotFound.js +0 -23
  331. package/packages/poll-vote/src/components/PollVote.js +0 -270
  332. package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
  333. package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
  334. package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
  335. package/packages/poll-vote/src/components/Shared/Button.js +0 -76
  336. package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
  337. package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
  338. package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
  339. package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
  340. package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
  341. package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
  342. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
  343. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
  344. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
  345. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
  346. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
  347. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
  348. package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
  349. package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
  350. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
  351. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
  352. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
  353. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
  354. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
  355. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
  356. package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
  357. package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
  358. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
  359. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
  360. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
  361. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
  362. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
  363. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
  364. package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
  365. package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
  366. package/packages/poll-vote/src/hooks/usePollById.js +0 -16
  367. package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
  368. package/packages/poll-vote/src/index.js +0 -4
  369. package/packages/poll-vote/src/main.js +0 -7
@@ -1,118 +0,0 @@
1
- import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
2
- import { useState as y } from "react";
3
- import { Box as m, Typography as u, Sheet as O, Table as F, IconButton as M } from "@mui/joy";
4
- import { useColors as R, useCornerRadius as V, useFontFamily as g, useSpacingScale as w, isMobile as I } 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 G } from "./PredictionSummary.styles.js";
10
- import { EventGameOutcomeTypeEnum as h } from "fansunited-sdk-esm";
11
- import U from "../../../../../../node_modules/@mui/icons-material/esm/Edit.js";
12
- import A from "./EditPredictionModal.js";
13
- import { clampNumberPrediction as N } from "../../../helpers/helpers.js";
14
- import { useTranslation as k } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
15
- const ee = (i) => {
16
- const { t: c } = k(), o = R(), j = V(), x = g(), v = w(), P = I(), [b, f] = y(!1), [s, p] = y(null), t = G({
17
- spacingScale: v,
18
- borderRadius: j,
19
- fontFamilyPrimary: x.primary,
20
- fontFamilySecondary: x.secondary,
21
- textPrimary: o.textPrimary,
22
- textSecondary: o.textSecondary,
23
- primaryColor: o.palette.primary.plainColor,
24
- surfaceVariant: o.surfaceVariant,
25
- outlineEnabledBorder: o.outlineEnabledBorder,
26
- outlinedBorder: o.palette.neutral.outlinedBorder,
27
- neutralSoftBg: o.palette.neutral.softBg,
28
- isMobile: P,
29
- isSplitVariant: i.isSplitVariant || !1
30
- }), B = (r) => {
31
- const n = i.fixtures[r];
32
- p(n), f(!0);
33
- }, C = () => {
34
- if (i.view === "play" && s && s.outcomeType === h.NUMBER) {
35
- const r = s.validOutcomes, n = i.prediction.fixtures.find(
36
- (a) => a.id === s.id
37
- );
38
- if (n && typeof n.prediction == "number") {
39
- const a = N(n.prediction, r);
40
- if (a !== n.prediction) {
41
- const l = { ...i.prediction }, d = l.fixtures.findIndex(
42
- (E) => E.id === s.id
43
- );
44
- d !== -1 && (l.fixtures[d] = {
45
- ...l.fixtures[d],
46
- prediction: a
47
- }, i.onPredictionUpdate(l));
48
- }
49
- }
50
- }
51
- f(!1), p(null);
52
- }, S = (r) => {
53
- i.onPredictionUpdate(r);
54
- }, T = (r) => {
55
- var l;
56
- const n = (l = i.prediction.fixtures) == null ? void 0 : l.find(
57
- (d) => d.id === r.id
58
- );
59
- if (!n) return null;
60
- if (r.outcomeType === h.BOOLEAN) {
61
- const d = n.prediction === !0;
62
- return /* @__PURE__ */ e.jsx(m, { sx: t.predictionBox, children: /* @__PURE__ */ e.jsx(u, { sx: t.selectionText, children: c(d ? "eventGame.fixtures.yes" : "eventGame.fixtures.no") }) });
63
- }
64
- return /* @__PURE__ */ e.jsx(m, { sx: t.predictionBox, children: /* @__PURE__ */ e.jsx(u, { sx: t.selectionText, children: n.prediction }) });
65
- };
66
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(m, { sx: t.container, children: [
67
- /* @__PURE__ */ e.jsx(u, { sx: t.title, children: c("eventGame.summary.title") }),
68
- /* @__PURE__ */ e.jsx(O, { sx: t.tableContainer, children: /* @__PURE__ */ e.jsxs(
69
- F,
70
- {
71
- variant: "outlined",
72
- hoverRow: !1,
73
- borderAxis: "bothBetween",
74
- size: "sm",
75
- sx: t.table,
76
- children: [
77
- /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
78
- /* @__PURE__ */ e.jsx("th", { style: t.headerCell, children: c("eventGame.summary.prediction") }),
79
- /* @__PURE__ */ e.jsx("th", { style: t.headerCellAction })
80
- ] }) }),
81
- /* @__PURE__ */ e.jsx("tbody", { children: i.fixtures.map((r, n) => /* @__PURE__ */ e.jsxs("tr", { children: [
82
- /* @__PURE__ */ e.jsx("td", { style: t.predictionCell, children: /* @__PURE__ */ e.jsxs(m, { sx: t.predictionContent, children: [
83
- /* @__PURE__ */ e.jsx(u, { sx: t.questionText, children: r.question }),
84
- T(r)
85
- ] }) }),
86
- /* @__PURE__ */ e.jsx("td", { style: t.actionCell, children: /* @__PURE__ */ e.jsx(
87
- M,
88
- {
89
- variant: "plain",
90
- size: "sm",
91
- sx: t.editIconButton,
92
- onClick: () => B(n),
93
- children: /* @__PURE__ */ e.jsx(U, {})
94
- }
95
- ) })
96
- ] }, `${r.id}-${n}`)) })
97
- ]
98
- }
99
- ) }),
100
- s && /* @__PURE__ */ e.jsx(
101
- A,
102
- {
103
- isOpen: b,
104
- onClose: C,
105
- fixture: s,
106
- prediction: i.prediction,
107
- onPredictionUpdate: S,
108
- play: i.play,
109
- view: i.view,
110
- isOverlayVariant: i.isOverlayVariant,
111
- onPlayResult: i.onPlayResult
112
- }
113
- )
114
- ] }) });
115
- };
116
- export {
117
- ee as default
118
- };
@@ -1,180 +0,0 @@
1
- const t = (e) => ({
2
- container: {
3
- display: "flex",
4
- flexDirection: "column",
5
- gap: e.spacingScale.sm,
6
- width: "100%"
7
- },
8
- title: {
9
- fontFamily: e.fontFamilyPrimary,
10
- fontWeight: 600,
11
- fontSize: "1em",
12
- lineHeight: "1.25em",
13
- color: e.textPrimary,
14
- textAlign: "center",
15
- marginBottom: e.spacingScale.sm
16
- },
17
- predictionsList: {
18
- display: "flex",
19
- flexDirection: "column",
20
- gap: e.spacingScale.xs,
21
- backgroundColor: e.surfaceVariant,
22
- borderRadius: e.borderRadius.md,
23
- border: `1px solid ${e.outlineEnabledBorder}`,
24
- overflow: "hidden"
25
- },
26
- predictionItem: {
27
- display: "flex",
28
- alignItems: "center",
29
- justifyContent: "space-between",
30
- padding: `${e.spacingScale.sm} ${e.spacingScale.md}`,
31
- borderBottom: `1px solid ${e.outlineEnabledBorder}`,
32
- minHeight: "48px",
33
- "&:last-child": {
34
- borderBottom: "none"
35
- }
36
- },
37
- questionText: {
38
- fontFamily: e.fontFamilySecondary,
39
- fontWeight: 400,
40
- fontSize: "1em",
41
- lineHeight: "1em",
42
- color: e.textSecondary,
43
- marginBottom: "2px"
44
- },
45
- answerContainer: {
46
- display: "flex",
47
- alignItems: "center",
48
- gap: e.spacingScale.md
49
- },
50
- answerContent: {
51
- display: "flex",
52
- alignItems: "center",
53
- gap: e.spacingScale.xs,
54
- minWidth: "120px"
55
- },
56
- teamLogo: {
57
- width: "20px",
58
- height: "20px",
59
- borderRadius: "50%",
60
- overflow: "hidden",
61
- flexShrink: 0
62
- },
63
- selectionText: {
64
- fontFamily: e.fontFamilyPrimary,
65
- fontWeight: 500,
66
- color: e.textPrimary
67
- },
68
- editButton: {
69
- padding: "2px 6px",
70
- fontSize: "0.75em",
71
- fontWeight: 500,
72
- color: e.primaryColor,
73
- backgroundColor: "transparent",
74
- border: "none",
75
- borderRadius: e.borderRadius.sm,
76
- cursor: "pointer",
77
- transition: "all 0.2s ease",
78
- fontFamily: e.fontFamilySecondary,
79
- textDecoration: "underline",
80
- minWidth: "auto",
81
- "&:hover": {
82
- backgroundColor: `${e.primaryColor}10`
83
- }
84
- },
85
- // Table styles
86
- tableContainer: {
87
- overflowX: "auto",
88
- borderRadius: e.borderRadius.md,
89
- border: `1px solid ${e.outlineEnabledBorder}`
90
- },
91
- table: {
92
- backgroundColor: e.surfaceVariant,
93
- "--TableCell-paddingX": "0.5em",
94
- "--TableCell-paddingY": "0.375em",
95
- cursor: "default",
96
- fontSize: "1em",
97
- "& > tbody > tr:hover": {
98
- backgroundColor: "transparent"
99
- },
100
- "& > thead > tr > th": {
101
- backgroundColor: e.surfaceVariant,
102
- verticalAlign: "middle",
103
- fontFamily: e.fontFamilyPrimary,
104
- fontWeight: 600,
105
- color: e.textPrimary
106
- },
107
- "& > tbody > tr > td": {
108
- verticalAlign: "middle",
109
- borderBottom: `1px solid ${e.outlineEnabledBorder}`
110
- },
111
- "& > tbody > tr:last-child > td": {
112
- borderBottom: "none"
113
- }
114
- },
115
- headerCell: {
116
- textAlign: "left",
117
- padding: "0.375em 0.5em",
118
- fontSize: "0.75em"
119
- },
120
- headerCellAction: {
121
- textAlign: "center",
122
- padding: "0.375em 0.5em",
123
- width: "30px"
124
- },
125
- predictionCell: {
126
- width: "calc(100% - 30px)"
127
- },
128
- actionCell: {
129
- textAlign: "center",
130
- width: "30px",
131
- verticalAlign: "middle"
132
- },
133
- predictionContent: {
134
- display: "flex",
135
- gap: e.isMobile || e.isSplitVariant ? e.spacingScale["2xs"] : e.spacingScale.sm,
136
- alignItems: "center",
137
- flexWrap: "wrap"
138
- },
139
- predictionBox: {
140
- display: "flex",
141
- alignItems: "center",
142
- gap: e.spacingScale.xs,
143
- fontSize: "0.75em",
144
- padding: "2px 6px",
145
- minHeight: "20px",
146
- borderRadius: e.borderRadius.sm,
147
- border: `1px solid ${e.outlineEnabledBorder}`,
148
- backgroundColor: e.neutralSoftBg,
149
- width: "fit-content"
150
- },
151
- predictionChip: {
152
- display: "flex",
153
- alignItems: "center",
154
- gap: e.spacingScale.xs,
155
- fontSize: "0.75em",
156
- padding: "2px 6px",
157
- minHeight: "20px"
158
- },
159
- editIconButton: {
160
- padding: "4px",
161
- minHeight: "24px",
162
- minWidth: "24px",
163
- color: e.textPrimary,
164
- backgroundColor: "transparent",
165
- border: "none",
166
- borderRadius: e.borderRadius.sm,
167
- cursor: "pointer",
168
- transition: "all 0.2s ease",
169
- "&:hover": {
170
- backgroundColor: `${e.textPrimary}15`
171
- },
172
- "& svg": {
173
- fontSize: "1em",
174
- color: e.textPrimary
175
- }
176
- }
177
- });
178
- export {
179
- t as createStyles
180
- };
@@ -1,30 +0,0 @@
1
- import { j as r } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
- import { isMobile as m } 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 i from "../../../../../../common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js";
9
- import "../../../../../../common/src/providers/ContainerProvider.js";
10
- import l from "../../../../assets/default-quiz-bg.png.js";
11
- import n from "../../../../assets/default-quiz-bg-vertical.jpg.js";
12
- import { useTranslation as g } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
13
- const E = (e) => {
14
- const { t } = g(), o = m(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? n : l;
15
- return /* @__PURE__ */ r.jsx(
16
- i,
17
- {
18
- entity: { ...e.eventGame, labels: null },
19
- headline: t("eventGame.headline"),
20
- tryAgainButtonText: t("eventGame.buttons.tryAgain"),
21
- defaultImagePlaceholderUrl: a,
22
- isApiError: e.isApiError,
23
- toggleTryAgain: e.toggleTryAgain,
24
- renderPresentedBy: () => /* @__PURE__ */ r.jsx(r.Fragment, {})
25
- }
26
- );
27
- };
28
- export {
29
- E as default
30
- };
@@ -1,348 +0,0 @@
1
- import { j as t } from "../../../../../../node_modules/react/jsx-runtime.js";
2
- import { Box as s, Button as J, Typography as u } from "@mui/joy";
3
- import ye, { useCallback as ve, useMemo as Se } from "react";
4
- import { useSpacingScale as je, useInternalTheme as Ce, isMobile as be, isExtraSmall as Ge } 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 { WidgetTemplate as Ee } from "../../../../../common/src/enums/enums.js";
8
- import "../../../../../common/src/providers/ConstantsProvider.js";
9
- import Te from "../../../../../common/src/components/Skeletons/Overlay/OverlaySkeleton.js";
10
- import { useImageVariant as we } from "../../../../../common/src/hooks/useImageVariant.js";
11
- import "../../../../../common/src/providers/ContainerProvider.js";
12
- import Oe from "../../../assets/default-quiz-bg.png.js";
13
- import Pe from "../../../assets/default-quiz-bg-vertical.jpg.js";
14
- import { createStyles as Ie } from "./EventGameOverlayVariant.styles.js";
15
- import { EventGameOutcomeTypeEnum as p } from "fansunited-sdk-esm";
16
- import ke from "../../Shared/Fixtures/Number/NumberFixture.js";
17
- import Fe from "../../Shared/Fixtures/Boolean/BooleanFixture.js";
18
- import K from "../../Shared/Fixtures/Text/TextFixture.js";
19
- import Ne from "../../Shared/Stepper.js";
20
- import Be from "../../Shared/Countdown.js";
21
- import Re from "../../Shared/Summary/PredictionSummary.js";
22
- import { isPredictionsCutoffPassed as $e, clampNumberPrediction as Ue } from "../../../helpers/helpers.js";
23
- import { useTranslation as Le } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
24
- const dt = (i) => {
25
- var I, k, F, N, B, R, $, U, L, q, D, M, V, W, z, _;
26
- const [o, G] = ye.useState(1), Q = je(), x = Ce(), { t: c } = Le(), P = be(), X = Ge(), Z = i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : P ? Pe : Oe, ee = we(
27
- {
28
- images: i.eventGame.images,
29
- imagePlaceholder: Z
30
- },
31
- Ee.OVERLAY
32
- ), te = x.customRadius.dark.md, ie = (k = (I = x.colorSchemes) == null ? void 0 : I.dark) == null ? void 0 : k.surfaceVariant, E = (N = (F = x.customRadius) == null ? void 0 : F.light) == null ? void 0 : N.xl, g = (U = ($ = (R = (B = x.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : R.palette) == null ? void 0 : $.primary) == null ? void 0 : U.plainColor, h = (M = (D = (q = (L = x.colorSchemes) == null ? void 0 : L.light) == null ? void 0 : q.palette) == null ? void 0 : D.primary) == null ? void 0 : M.onPrimary, T = x.customFontFamily.dark.primary, ne = x.colorSchemes.dark.textColor, oe = (_ = (z = (W = (V = x.colorSchemes) == null ? void 0 : V.light) == null ? void 0 : W.palette) == null ? void 0 : z.danger) == null ? void 0 : _.plainColor, re = x.colorSchemes.dark.textColor, n = Ie({
33
- spacingScale: Q,
34
- mdBorderRadius: te,
35
- contentBgColor: ie,
36
- buttonRadius: E,
37
- primaryColor: g,
38
- onPrimaryColor: h,
39
- fontFamilyPrimary: T,
40
- darkTextColor: ne,
41
- isMobile: P,
42
- isExtraSmall: X,
43
- dangerColor: oe,
44
- textColor: re,
45
- opacity: "60%"
46
- }), v = ve(
47
- (e, r) => {
48
- i.setPrediction((l) => {
49
- const m = { ...l }, d = m.fixtures.find((f) => f.id === e);
50
- return d && (d.prediction = r), m;
51
- });
52
- },
53
- [i.setPrediction]
54
- ), y = i.eventGame.fixtures.length + 1, w = i.eventGame.status === "OPEN" && $e(i.eventGame.predictionsCutoff || ""), ae = () => {
55
- var r, l;
56
- const e = i.eventGame.fixtures[o - 1];
57
- if (e && e.outcomeType === p.NUMBER) {
58
- const m = e.validOutcomes, d = (l = (r = i.prediction) == null ? void 0 : r.fixtures) == null ? void 0 : l.find(
59
- (f) => f.id === e.id
60
- );
61
- if (d && typeof d.prediction == "number") {
62
- const f = Ue(
63
- d.prediction,
64
- m
65
- );
66
- f !== d.prediction && v(e.id, f);
67
- }
68
- }
69
- o < y ? G(o + 1) : i.play();
70
- }, O = () => {
71
- var l, m;
72
- if (o === y) return !0;
73
- const e = i.eventGame.fixtures[o - 1];
74
- if (!e) return !1;
75
- const r = (m = (l = i.prediction) == null ? void 0 : l.fixtures) == null ? void 0 : m.find(
76
- (d) => d.id === e.id
77
- );
78
- if (!r) return !1;
79
- switch (e.outcomeType) {
80
- case p.BOOLEAN:
81
- return typeof r.prediction == "boolean";
82
- case p.NUMBER:
83
- return typeof r.prediction == "number";
84
- case p.FREE_INPUT:
85
- return typeof r.prediction == "string" && r.prediction.trim().length > 0;
86
- case p.ENUM:
87
- return typeof r.prediction == "string" && r.prediction.trim().length > 0;
88
- default:
89
- return !1;
90
- }
91
- }, se = () => {
92
- o > 1 && G(o - 1);
93
- }, ce = (e) => {
94
- G(e + 1);
95
- }, de = () => /* @__PURE__ */ t.jsx(s, { sx: n.contentContainerWithBackdrop, children: /* @__PURE__ */ t.jsxs(s, { sx: n.gameStateContainer, children: [
96
- /* @__PURE__ */ t.jsx(u, { component: "h5", sx: n.stateTitle, children: c("eventGame.states.pending.title") }),
97
- /* @__PURE__ */ t.jsx(u, { sx: n.stateDescription, children: c("eventGame.states.pending.description") })
98
- ] }) }), le = () => /* @__PURE__ */ t.jsx(s, { sx: n.contentContainerWithBackdrop, children: /* @__PURE__ */ t.jsxs(s, { sx: n.gameStateContainer, children: [
99
- /* @__PURE__ */ t.jsxs(s, { sx: n.liveIndicatorContainer, children: [
100
- /* @__PURE__ */ t.jsx(s, { sx: n.liveIndicator }),
101
- /* @__PURE__ */ t.jsx(u, { component: "h5", sx: n.liveText, children: c("eventGame.states.live.indicator") })
102
- ] }),
103
- /* @__PURE__ */ t.jsx(u, { sx: n.stateDescription, children: c("eventGame.states.live.description") })
104
- ] }) }), me = () => /* @__PURE__ */ t.jsx(s, { sx: n.contentContainerWithBackdrop, children: /* @__PURE__ */ t.jsxs(s, { sx: n.gameStateContainer, children: [
105
- /* @__PURE__ */ t.jsx(s, { sx: n.closedStateHeader, children: /* @__PURE__ */ t.jsx(u, { component: "h5", sx: n.stateTitle, children: c("eventGame.states.closed.title") }) }),
106
- /* @__PURE__ */ t.jsx(u, { sx: n.stateDescription, children: c("eventGame.states.closed.description") })
107
- ] }) }), ue = () => /* @__PURE__ */ t.jsxs(s, { sx: n.gameStateContainer, children: [
108
- /* @__PURE__ */ t.jsx(u, { component: "h5", sx: n.stateTitle, children: c("eventGame.states.open.title") }),
109
- /* @__PURE__ */ t.jsx(u, { sx: n.stateDescription, children: c("eventGame.states.open.description") })
110
- ] }), xe = Se(() => i.eventGame.fixtures[o - 1], [i.eventGame.fixtures, o]), fe = () => {
111
- var r, l, m, d, f, A, H, Y;
112
- const e = xe;
113
- if (w)
114
- return ue();
115
- if (e)
116
- switch (e.outcomeType) {
117
- case p.BOOLEAN:
118
- const S = (l = (r = i.prediction) == null ? void 0 : r.fixtures) == null ? void 0 : l.find(
119
- (a) => a.id === e.id
120
- );
121
- return /* @__PURE__ */ t.jsx(
122
- Fe,
123
- {
124
- prediction: typeof (S == null ? void 0 : S.prediction) == "boolean" ? S.prediction : null,
125
- onSelectionChange: (a) => {
126
- v(e.id, a);
127
- },
128
- question: e.question,
129
- fixtureId: e.id
130
- },
131
- `${e.outcomeType}-${o}-${e.id}`
132
- );
133
- case p.NUMBER:
134
- const j = (d = (m = i.prediction) == null ? void 0 : m.fixtures) == null ? void 0 : d.find(
135
- (a) => a.id === e.id
136
- ), ge = e.validOutcomes;
137
- return /* @__PURE__ */ t.jsx(
138
- ke,
139
- {
140
- prediction: typeof (j == null ? void 0 : j.prediction) == "number" ? j.prediction : 0,
141
- onChange: (a) => {
142
- v(e.id, a);
143
- },
144
- question: e.question,
145
- validOutcomes: ge || null,
146
- fixtureId: e.id,
147
- isOverlayVariant: !0
148
- },
149
- `${e.outcomeType}-${o}-${e.id}`
150
- );
151
- case p.FREE_INPUT:
152
- const C = (A = (f = i.prediction) == null ? void 0 : f.fixtures) == null ? void 0 : A.find(
153
- (a) => a.id === e.id
154
- );
155
- return /* @__PURE__ */ t.jsx(
156
- K,
157
- {
158
- question: e.question,
159
- prediction: typeof (C == null ? void 0 : C.prediction) == "string" ? C.prediction : null,
160
- validOutcomes: null,
161
- onTextChange: (a) => {
162
- v(e.id, a);
163
- },
164
- fixtureId: e.id
165
- },
166
- `${e.outcomeType}-${o}-${e.id}`
167
- );
168
- case p.ENUM:
169
- const b = (Y = (H = i.prediction) == null ? void 0 : H.fixtures) == null ? void 0 : Y.find(
170
- (a) => a.id === e.id
171
- );
172
- return /* @__PURE__ */ t.jsx(
173
- K,
174
- {
175
- question: e.question,
176
- prediction: typeof (b == null ? void 0 : b.prediction) == "string" ? b.prediction : null,
177
- validOutcomes: e.validOutcomes,
178
- onTextChange: (a) => {
179
- v(e.id, a);
180
- },
181
- fixtureId: e.id,
182
- optionsLayout: i.optionsLayout
183
- },
184
- `${e.id}-${o}`
185
- );
186
- default:
187
- return /* @__PURE__ */ t.jsx(t.Fragment, {});
188
- }
189
- }, pe = () => {
190
- switch (i.eventGame.status) {
191
- case "PENDING":
192
- return de();
193
- case "LIVE":
194
- return le();
195
- case "CLOSED":
196
- return me();
197
- default:
198
- return he();
199
- }
200
- }, he = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
201
- i.showCountdown && i.eventGame.status === "OPEN" && /* @__PURE__ */ t.jsx(
202
- Be,
203
- {
204
- predictionsCutoffTime: i.eventGame.predictionsCutoff || ""
205
- }
206
- ),
207
- !w && /* @__PURE__ */ t.jsx(
208
- Ne,
209
- {
210
- eventGame: i.eventGame,
211
- currentStep: o,
212
- totalSteps: y
213
- }
214
- ),
215
- /* @__PURE__ */ t.jsx(s, { sx: n.contentContainerWithBackdrop, children: o === y ? /* @__PURE__ */ t.jsx(
216
- Re,
217
- {
218
- fixtures: i.eventGame.fixtures,
219
- prediction: i.prediction,
220
- onEditPrediction: ce,
221
- onPredictionUpdate: i.setPrediction,
222
- view: "play",
223
- play: async () => i.play(),
224
- isOverlayVariant: !0
225
- }
226
- ) : fe() }),
227
- /* @__PURE__ */ t.jsx(s, { sx: n.footerContainerNoLogo, children: /* @__PURE__ */ t.jsxs(s, { sx: n.navigationContainer, children: [
228
- o > 1 && o < y && /* @__PURE__ */ t.jsx(
229
- J,
230
- {
231
- variant: "outlined",
232
- onClick: se,
233
- sx: {
234
- borderRadius: E,
235
- py: "10px",
236
- px: "16px",
237
- borderColor: g,
238
- color: h,
239
- transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
240
- transform: "scale(1)",
241
- alignSelf: "center",
242
- "&:hover": {
243
- borderColor: g,
244
- backgroundColor: `${g}10`,
245
- transform: "scale(1.02)",
246
- boxShadow: "var(--joy-shadow-md)"
247
- },
248
- "&:active": {
249
- transform: "scale(0.98)",
250
- boxShadow: "var(--joy-shadow-md)"
251
- },
252
- fontSize: "0.9375em",
253
- boxShadow: "var(--joy-shadow-md)"
254
- },
255
- children: /* @__PURE__ */ t.jsx(
256
- u,
257
- {
258
- sx: {
259
- fontFamily: T,
260
- fontWeight: 500,
261
- fontSize: "0.9375em",
262
- lineHeight: "24px",
263
- letterSpacing: "0.46px",
264
- textTransform: "uppercase",
265
- color: h,
266
- gap: "8px",
267
- display: "flex",
268
- alignItems: "center"
269
- },
270
- children: c("eventGame.buttons.back")
271
- }
272
- )
273
- }
274
- ),
275
- !w && /* @__PURE__ */ t.jsx(
276
- J,
277
- {
278
- variant: "soft",
279
- onClick: O() ? ae : () => {
280
- },
281
- loading: i.isPlaying,
282
- sx: {
283
- borderRadius: E,
284
- py: "10px",
285
- px: "16px",
286
- bgcolor: g,
287
- color: h,
288
- transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
289
- transform: "scale(1)",
290
- alignSelf: "center",
291
- cursor: O() ? "pointer" : "not-allowed",
292
- opacity: O() ? "1" : "0.5",
293
- "&:hover": {
294
- bgcolor: g,
295
- boxShadow: "var(--joy-shadow-md)",
296
- transform: "scale(1.02)"
297
- },
298
- "&:active": {
299
- color: h,
300
- transform: "scale(0.98)",
301
- boxShadow: "var(--joy-shadow-md)"
302
- },
303
- "&:disabled": {
304
- bgcolor: g,
305
- color: h,
306
- opacity: "12%",
307
- boxShadow: "var(--joy-shadow-md)"
308
- },
309
- "--Icon-color": h,
310
- fontSize: "0.9375em",
311
- boxShadow: "var(--joy-shadow-md)"
312
- },
313
- children: /* @__PURE__ */ t.jsx(
314
- u,
315
- {
316
- sx: {
317
- fontFamily: T,
318
- fontWeight: 500,
319
- fontSize: "0.9375em",
320
- lineHeight: "24px",
321
- letterSpacing: "0.46px",
322
- textTransform: "uppercase",
323
- color: h,
324
- gap: "8px",
325
- display: "flex",
326
- alignItems: "center"
327
- },
328
- children: c(o === y ? "eventGame.buttons.play" : "eventGame.buttons.next")
329
- }
330
- )
331
- }
332
- )
333
- ] }) })
334
- ] });
335
- return /* @__PURE__ */ t.jsx(
336
- Te,
337
- {
338
- entity: { ...i.eventGame, labels: null },
339
- headline: c("eventGame.headline"),
340
- finalImage: ee,
341
- rulesDisplay: i.rulesDisplay,
342
- children: pe()
343
- }
344
- );
345
- };
346
- export {
347
- dt as default
348
- };