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,513 +0,0 @@
1
- import { j as e } from "../../../../../../node_modules/react/jsx-runtime.js";
2
- import Y, { useCallback as b, useMemo as q } from "react";
3
- import { Box as o, Typography as f, Button as fe } from "@mui/joy";
4
- import { useInternalTheme as We, isMobile as Ue, isExtraSmall as Ke, useColors as O, useFontFamily as Se, useCornerRadius as Re, useSpacingScale as Xe, useImageBackgroundGradient as Je } from "../../../../../common/src/functions/theme.js";
5
- import { hexToRgb as Ze } from "../../../../../common/src/functions/helpers.js";
6
- import "../../../../../../node_modules/i18next/dist/esm/i18next.js";
7
- import "../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
8
- import { WidgetTemplate as ge } from "../../../../../common/src/enums/enums.js";
9
- import "../../../../../common/src/providers/ConstantsProvider.js";
10
- import et from "../../../../../common/src/components/Skeletons/Standard/StandardSkeleton.js";
11
- import { useImageVariant as tt } from "../../../../../common/src/hooks/useImageVariant.js";
12
- import "../../../../../common/src/providers/ContainerProvider.js";
13
- import at from "../../Shared/MainCard.js";
14
- import it from "../../Shared/PresentedBy.js";
15
- import rt from "../../Leads/CollectLeadWrapper.js";
16
- import { createStyles as nt } from "./MatchQuizStandardVariant.styles.js";
17
- import { MarketEnum as n } from "fansunited-sdk-esm";
18
- import ot from "../../Shared/Fixtures/CorrectScore/CorrectScoreFixture.js";
19
- import st from "../../Shared/Fixtures/1X2/OneXTwoFixture.js";
20
- import ct from "../../Shared/Fixtures/Corners/CornersFixture.js";
21
- import lt from "../../Shared/Fixtures/YesNo/YesNoFixture.js";
22
- import mt from "../../Shared/Fixtures/Players/PlayersFixture.js";
23
- import dt from "../../Shared/Stepper.js";
24
- import ut from "../../Shared/Countdown.js";
25
- import xt from "../../Shared/Summary/PredictionSummary.js";
26
- import { isPredictionsCutoffPassed as ht } from "../../../helpers/helpers.js";
27
- import { useTranslation as Ct } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
28
- const Yt = (a) => {
29
- var J, Z, ee, te, ae, ie, re, ne, oe, se, ce, le, me, de;
30
- const [x, D] = Y.useState(1), [Ee, H] = Y.useState(
31
- ((J = a.leads) == null ? void 0 : J.position) === "before" && a.matchQuiz.authRequirement === "LEAD"
32
- ), _e = We(), { t: C } = Ct();
33
- Y.useEffect(() => {
34
- var t;
35
- H(
36
- ((t = a.leads) == null ? void 0 : t.position) === "before" && a.matchQuiz.authRequirement === "LEAD" || !1
37
- );
38
- }, [(Z = a.leads) == null ? void 0 : Z.position, a.matchQuiz.authRequirement]);
39
- const p = Ue(), ye = Ke(), r = ((ee = a.matchQuiz.branding) == null ? void 0 : ee.colors) || null, E = p ? ((ae = (te = a.matchQuiz.branding) == null ? void 0 : te.images) == null ? void 0 : ae.mobileLogo) || ((re = (ie = a.matchQuiz.branding) == null ? void 0 : ie.images) == null ? void 0 : re.mainLogo) || "" : ((oe = (ne = a.matchQuiz.branding) == null ? void 0 : ne.images) == null ? void 0 : oe.mainLogo) || "", je = a.imagePosition || "left", v = tt(
40
- {
41
- images: a.matchQuiz.images,
42
- imagePlaceholder: a.defaultImagePlaceholderUrl ? a.defaultImagePlaceholderUrl : ""
43
- },
44
- ge.STANDARD
45
- ), R = ye || p && !!v, ke = O().palette.danger.plainColor, _ = (r == null ? void 0 : r.contentColor) || O().textColor, Oe = (r == null ? void 0 : r.secondaryColor) || O().textColor, Pe = Se().secondary, Te = "60%", I = Se().primary, ze = (r == null ? void 0 : r.backgroundColor) || O().surfaceVariant, Ae = Re(), g = (r == null ? void 0 : r.primaryColor) || O().palette.primary.plainColor, P = O().palette.primary.onPrimary, $ = Re().xl, Le = Xe(), Qe = Je(
46
- ge.STANDARD
47
- ), i = nt({
48
- finalImage: v,
49
- spacingScale: Le,
50
- borderRadius: Ae,
51
- fontFamilyPrimary: I,
52
- fontFamilySecondary: Pe,
53
- textColor: _,
54
- secondaryColor: Oe,
55
- bgcolor: Ze(ze || ""),
56
- opacity: Te,
57
- brandingColors: r,
58
- darkTextColor: _e.colorSchemes.dark.textColor,
59
- imageBackgroundGradient: Qe,
60
- isMobile: p,
61
- isExtraSmall: R,
62
- dangerColor: ke
63
- }), be = () => {
64
- H(!1);
65
- }, B = b(
66
- (t, l, m) => {
67
- const s = `${l}:${m}`;
68
- a.setPrediction((c) => {
69
- const d = { ...c }, h = d.fixtures.find((y) => y.market === t);
70
- return h && (h.prediction.value = s), d;
71
- });
72
- },
73
- [a.setPrediction]
74
- ), W = b(
75
- (t, l) => {
76
- a.setPrediction((m) => {
77
- const s = { ...m }, c = s.fixtures.find(
78
- (d) => d.market === t
79
- );
80
- return c && (c.prediction.value = l), s;
81
- });
82
- },
83
- [a.setPrediction]
84
- ), U = b(
85
- (t, l) => {
86
- a.setPrediction((m) => {
87
- const s = { ...m }, c = s.fixtures.find(
88
- (d) => d.market === t
89
- );
90
- return c && (c.prediction.playerId = l), s;
91
- });
92
- },
93
- [a.setPrediction]
94
- ), K = b(
95
- (t, l) => {
96
- a.setPrediction((m) => {
97
- const s = { ...m }, c = s.fixtures.find((d) => d.market === t);
98
- return c && (c.prediction.value = l), s;
99
- });
100
- },
101
- [a.setPrediction]
102
- ), j = a.matchQuiz.fixtures.length + 1, N = a.matchQuiz.status === "OPEN" && ht(a.matchQuiz.predictionsCutoff), De = x === j && ((se = a.leads) == null ? void 0 : se.position) !== "after" ? C("matchQuiz.buttons.play") : C("matchQuiz.buttons.next"), pe = () => {
103
- x < j ? D(x + 1) : a.play();
104
- }, ve = (t) => {
105
- D(t + 1);
106
- }, Ie = () => {
107
- var m, s;
108
- if (x === j) return !0;
109
- const t = a.matchQuiz.fixtures[x - 1];
110
- if (!t) return !1;
111
- const l = (s = (m = a.prediction) == null ? void 0 : m.fixtures) == null ? void 0 : s.find(
112
- (c) => c.market === t.market
113
- );
114
- return l ? t.market === n.CORRECT_SCORE || t.market === n.CORRECT_SCORE_HT || t.market === n.CORRECT_SCORE_ADVANCED || t.market === n.CORNERS_MATCH ? !0 : t.market === n.PLAYER_SCORE || t.market === n.PLAYER_YELLOW_CARD || t.market === n.PLAYER_RED_CARD || t.market === n.PLAYER_SCORE_FIRST_GOAL || t.market === n.PLAYER_SCORE_HATTRICK || t.market === n.PLAYER_SCORE_TWICE ? l.prediction.playerId !== void 0 : l.prediction.value !== null : !1;
115
- }, Ne = () => {
116
- x > 1 && D(x - 1);
117
- }, we = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
118
- /* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
119
- /* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.pending.title") }),
120
- /* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.pending.description") })
121
- ] }) }),
122
- E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
123
- ] }) }), X = () => {
124
- var s, c, d, h;
125
- const t = (s = a.matchQuiz.fixtures[0]) == null ? void 0 : s.matchModel;
126
- if (!t || !((c = t.scores) != null && c.ftScore)) return null;
127
- const l = t.scores.ftScore.homeGoals || 0, m = t.scores.ftScore.awayGoals || 0;
128
- return /* @__PURE__ */ e.jsxs(o, { sx: i.matchResultBadge, children: [
129
- ((d = t.homeTeam.assets) == null ? void 0 : d.logo) && /* @__PURE__ */ e.jsx(o, { sx: i.matchResultTeamLogo, children: /* @__PURE__ */ e.jsx(
130
- "img",
131
- {
132
- src: t.homeTeam.assets.logo,
133
- alt: t.homeTeam.name,
134
- style: {
135
- width: "100%",
136
- height: "100%",
137
- borderRadius: "50%",
138
- objectFit: "cover"
139
- }
140
- }
141
- ) }),
142
- /* @__PURE__ */ e.jsxs(f, { sx: i.matchResultScoreText, children: [
143
- l,
144
- " - ",
145
- m
146
- ] }),
147
- ((h = t.awayTeam.assets) == null ? void 0 : h.logo) && /* @__PURE__ */ e.jsx(o, { sx: i.matchResultTeamLogo, children: /* @__PURE__ */ e.jsx(
148
- "img",
149
- {
150
- src: t.awayTeam.assets.logo,
151
- alt: t.awayTeam.name,
152
- style: {
153
- width: "100%",
154
- height: "100%",
155
- borderRadius: "50%",
156
- objectFit: "cover"
157
- }
158
- }
159
- ) })
160
- ] });
161
- }, Me = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
162
- /* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
163
- X(),
164
- /* @__PURE__ */ e.jsxs(o, { sx: i.liveIndicatorContainer, children: [
165
- /* @__PURE__ */ e.jsx(o, { sx: i.liveIndicator }),
166
- /* @__PURE__ */ e.jsx(f, { sx: i.liveText, children: C("matchQuiz.states.live.indicator") })
167
- ] }),
168
- /* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.live.description") })
169
- ] }) }),
170
- E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
171
- ] }) }), Ve = () => /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
172
- /* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
173
- X(),
174
- /* @__PURE__ */ e.jsx(o, { sx: i.closedStateHeader, children: /* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.closed.title") }) }),
175
- /* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.closed.description") })
176
- ] }) }),
177
- E && /* @__PURE__ */ e.jsx(o, { sx: i.footerContainer, children: k(_) })
178
- ] }) }), Fe = () => /* @__PURE__ */ e.jsxs(o, { sx: i.gameStateContainer, children: [
179
- /* @__PURE__ */ e.jsx(f, { sx: i.stateTitle, children: C("matchQuiz.states.open.title") }),
180
- /* @__PURE__ */ e.jsx(f, { sx: i.stateDescription, children: C("matchQuiz.states.open.description") })
181
- ] }), Ge = () => {
182
- var t, l, m, s, c, d, h, y, A, L, Q;
183
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: Ee ? /* @__PURE__ */ e.jsx(o, { sx: i.leadCollectionContainer, children: /* @__PURE__ */ e.jsxs(o, { sx: i.leadQuestionContainer, children: [
184
- /* @__PURE__ */ e.jsx(o, { sx: i.leadContentContainer, children: /* @__PURE__ */ e.jsx(
185
- rt,
186
- {
187
- sdk: a.sdk,
188
- startGame: be,
189
- contentId: a.matchQuiz.id,
190
- contentName: a.matchQuiz.title,
191
- brandingColors: (t = a.matchQuiz.branding) == null ? void 0 : t.colors,
192
- brandingUrls: (l = a.matchQuiz.branding) == null ? void 0 : l.urls,
193
- campaignId: (m = a.leads) == null ? void 0 : m.campaignId,
194
- campaignName: (s = a.leads) == null ? void 0 : s.campaignName,
195
- fields: (c = a.leads) == null ? void 0 : c.fields,
196
- leadTitle: (d = a.matchQuiz.labels) == null ? void 0 : d.leadTitle,
197
- leadDescription: (h = a.matchQuiz.labels) == null ? void 0 : h.leadDescription,
198
- leadCta: (y = a.matchQuiz.labels) == null ? void 0 : y.leadCta,
199
- leadSuccessTitle: (A = a.matchQuiz.labels) == null ? void 0 : A.leadSuccessTitle,
200
- leadSuccessDescription: (L = a.matchQuiz.labels) == null ? void 0 : L.leadSuccessDescription,
201
- syncWithProfile: (Q = a.leads) == null ? void 0 : Q.syncWithProfile
202
- }
203
- ) }),
204
- k(_)
205
- ] }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
206
- a.showCountdown && a.matchQuiz.status === "OPEN" && /* @__PURE__ */ e.jsx(
207
- ut,
208
- {
209
- predictionsCutoffTime: a.matchQuiz.predictionsCutoff,
210
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor
211
- }
212
- ),
213
- /* @__PURE__ */ e.jsx(o, { sx: i.questionArea, children: /* @__PURE__ */ e.jsxs(o, { sx: i.questionContainer, children: [
214
- !N && /* @__PURE__ */ e.jsx(o, { sx: i.paginationContainer, children: /* @__PURE__ */ e.jsx(
215
- dt,
216
- {
217
- matchQuiz: a.matchQuiz,
218
- currentStep: x,
219
- totalSteps: j,
220
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor
221
- }
222
- ) }),
223
- x === j ? /* @__PURE__ */ e.jsx(
224
- xt,
225
- {
226
- fixtures: a.matchQuiz.fixtures,
227
- prediction: a.prediction,
228
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
229
- onEditPrediction: ve,
230
- onPredictionUpdate: a.setPrediction,
231
- view: "play",
232
- play: async () => a.play()
233
- }
234
- ) : /* @__PURE__ */ e.jsx(o, { sx: i.questionContentContainer, children: qe() }),
235
- /* @__PURE__ */ e.jsxs(
236
- o,
237
- {
238
- sx: E ? i.footerContainer : i.footerContainerNoLogo,
239
- children: [
240
- E && !R ? k(_, "row") : /* @__PURE__ */ e.jsx(e.Fragment, {}),
241
- /* @__PURE__ */ e.jsxs(o, { sx: i.navigationContainer, children: [
242
- x > 1 && x < j && /* @__PURE__ */ e.jsx(
243
- fe,
244
- {
245
- variant: "outlined",
246
- onClick: Ne,
247
- sx: {
248
- borderRadius: $,
249
- py: "10px",
250
- px: "16px",
251
- borderColor: g,
252
- color: g,
253
- transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
254
- transform: "scale(1)",
255
- alignSelf: "center",
256
- "&:hover": {
257
- borderColor: g,
258
- backgroundColor: `${g}10`,
259
- transform: "scale(1.02)"
260
- },
261
- "&:active": {
262
- transform: "scale(0.98)"
263
- },
264
- fontSize: "0.9375em"
265
- },
266
- children: /* @__PURE__ */ e.jsx(
267
- f,
268
- {
269
- sx: {
270
- fontFamily: I,
271
- fontWeight: 500,
272
- fontSize: "0.9375em",
273
- lineHeight: "24px",
274
- letterSpacing: "0.46px",
275
- textTransform: "uppercase",
276
- color: g,
277
- gap: "8px",
278
- display: "flex",
279
- alignItems: "center"
280
- },
281
- children: C("matchQuiz.buttons.back")
282
- }
283
- )
284
- }
285
- ),
286
- !N && /* @__PURE__ */ e.jsx(
287
- fe,
288
- {
289
- variant: "soft",
290
- onClick: pe,
291
- disabled: !Ie(),
292
- loading: a.isPlaying,
293
- sx: {
294
- borderRadius: $,
295
- py: "10px",
296
- px: "16px",
297
- bgcolor: g,
298
- color: P,
299
- transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
300
- transform: "scale(1)",
301
- alignSelf: "center",
302
- "&:hover": {
303
- bgcolor: g,
304
- transform: "scale(1.02)"
305
- },
306
- "&:active": {
307
- color: P,
308
- transform: "scale(0.98)"
309
- },
310
- "&:disabled": {
311
- bgcolor: g,
312
- color: P,
313
- opacity: "12%"
314
- },
315
- "--Icon-color": P,
316
- fontSize: "0.9375em"
317
- },
318
- children: /* @__PURE__ */ e.jsx(
319
- f,
320
- {
321
- sx: {
322
- fontFamily: I,
323
- fontWeight: 500,
324
- fontSize: "0.9375em",
325
- lineHeight: "24px",
326
- letterSpacing: "0.46px",
327
- textTransform: "uppercase",
328
- color: P,
329
- gap: "8px",
330
- display: "flex",
331
- alignItems: "center"
332
- },
333
- children: De
334
- }
335
- )
336
- }
337
- )
338
- ] })
339
- ]
340
- }
341
- ),
342
- E && R ? k(_) : /* @__PURE__ */ e.jsx(e.Fragment, {})
343
- ] }) })
344
- ] }) });
345
- }, Ye = () => {
346
- switch (a.matchQuiz.status) {
347
- case "PENDING":
348
- return we();
349
- case "LIVE":
350
- return Me();
351
- case "CLOSED":
352
- return Ve();
353
- default:
354
- return Ge();
355
- }
356
- }, k = (t, l) => {
357
- var m, s, c, d, h;
358
- return /* @__PURE__ */ e.jsx(
359
- it,
360
- {
361
- brandingLogo: E,
362
- textColor: t,
363
- label: ((m = a.matchQuiz.labels) == null ? void 0 : m.sponsor) || null,
364
- flexDirection: l,
365
- primaryUrl: (c = (s = a.matchQuiz.branding) == null ? void 0 : s.urls) == null ? void 0 : c.primaryUrl,
366
- secondaryUrl: (h = (d = a.matchQuiz.branding) == null ? void 0 : d.urls) == null ? void 0 : h.secondaryUrl
367
- }
368
- );
369
- }, u = q(() => a.matchQuiz.fixtures[x - 1], [a.matchQuiz.fixtures, x]), T = q(() => u == null ? void 0 : u.matchModel, [
370
- (le = (ce = u == null ? void 0 : u.matchModel) == null ? void 0 : ce.homeTeam) == null ? void 0 : le.id,
371
- (de = (me = u == null ? void 0 : u.matchModel) == null ? void 0 : me.awayTeam) == null ? void 0 : de.id
372
- ]), z = q(() => u ? {
373
- onScoreChange: (t, l) => B(u.market, t, l),
374
- onSelectionChange: (t) => W(u.market, t),
375
- onCornersChange: (t) => K(u.market, t),
376
- onPlayerSelection: (t) => U(u.market, t)
377
- } : {}, [
378
- u == null ? void 0 : u.market,
379
- B,
380
- W,
381
- K,
382
- U
383
- ]), qe = () => {
384
- var l, m, s, c, d, h, y, A, L, Q, ue, xe, he, Ce;
385
- const t = u;
386
- if (N)
387
- return Fe();
388
- if (t)
389
- switch (t.market) {
390
- case n.CORRECT_SCORE:
391
- case n.CORRECT_SCORE_HT:
392
- case n.CORRECT_SCORE_ADVANCED:
393
- const w = (m = (l = a.prediction) == null ? void 0 : l.fixtures) == null ? void 0 : m.find(
394
- (S) => S.market === t.market
395
- ), He = (w == null ? void 0 : w.prediction.value) || "0:0", [$e, Be] = He.split(":").map(Number);
396
- return /* @__PURE__ */ e.jsx(
397
- ot,
398
- {
399
- matchModel: T,
400
- market: t.market,
401
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
402
- onScoreChange: z.onScoreChange,
403
- initialHomeScore: $e,
404
- initialAwayScore: Be,
405
- useExtraSmallLayout: R
406
- },
407
- `${t.market}-${x}`
408
- );
409
- case n.FT_1X2:
410
- case n.HT_1X2:
411
- const M = (c = (s = a.prediction) == null ? void 0 : s.fixtures) == null ? void 0 : c.find(
412
- (S) => S.market === t.market
413
- );
414
- return /* @__PURE__ */ e.jsx(
415
- st,
416
- {
417
- matchModel: T,
418
- market: t.market,
419
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
420
- prediction: ((d = M == null ? void 0 : M.prediction) == null ? void 0 : d.value) || null,
421
- onSelectionChange: z.onSelectionChange,
422
- useExtraSmallLayout: R
423
- },
424
- `${t.market}-${x}`
425
- );
426
- case n.CORNERS_MATCH:
427
- const V = (y = (h = a.prediction) == null ? void 0 : h.fixtures) == null ? void 0 : y.find(
428
- (S) => S.market === t.market
429
- );
430
- return /* @__PURE__ */ e.jsx(
431
- ct,
432
- {
433
- matchModel: T,
434
- market: t.market,
435
- prediction: (A = V == null ? void 0 : V.prediction) == null ? void 0 : A.value,
436
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
437
- onCornersChange: z.onCornersChange,
438
- useExtraSmallLayout: R
439
- },
440
- `${t.market}-${x}`
441
- );
442
- case n.OVER_GOALS_0_5:
443
- case n.OVER_GOALS_1_5:
444
- case n.OVER_GOALS_2_5:
445
- case n.OVER_GOALS_3_5:
446
- case n.OVER_GOALS_4_5:
447
- case n.OVER_GOALS_5_5:
448
- case n.OVER_GOALS_6_5:
449
- case n.OVER_CORNERS_6_5:
450
- case n.OVER_CORNERS_7_5:
451
- case n.OVER_CORNERS_8_5:
452
- case n.OVER_CORNERS_9_5:
453
- case n.OVER_CORNERS_10_5:
454
- case n.OVER_CORNERS_11_5:
455
- case n.OVER_CORNERS_12_5:
456
- case n.OVER_CORNERS_13_5:
457
- case n.RED_CARD_MATCH:
458
- case n.PENALTY_MATCH:
459
- const F = (Q = (L = a.prediction) == null ? void 0 : L.fixtures) == null ? void 0 : Q.find(
460
- (S) => S.market === t.market
461
- );
462
- return /* @__PURE__ */ e.jsx(
463
- lt,
464
- {
465
- matchModel: T,
466
- market: t.market,
467
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
468
- prediction: (ue = F == null ? void 0 : F.prediction) == null ? void 0 : ue.value,
469
- onSelectionChange: z.onSelectionChange,
470
- useExtraSmallLayout: R
471
- },
472
- t.market
473
- );
474
- case n.PLAYER_SCORE:
475
- case n.PLAYER_YELLOW_CARD:
476
- case n.PLAYER_RED_CARD:
477
- case n.PLAYER_SCORE_FIRST_GOAL:
478
- case n.PLAYER_SCORE_HATTRICK:
479
- case n.PLAYER_SCORE_TWICE:
480
- const G = (he = (xe = a.prediction) == null ? void 0 : xe.fixtures) == null ? void 0 : he.find(
481
- (S) => S.market === t.market
482
- );
483
- return /* @__PURE__ */ e.jsx(
484
- mt,
485
- {
486
- matchModel: T,
487
- market: t.market,
488
- brandingPrimaryColor: r == null ? void 0 : r.primaryColor,
489
- prediction: (Ce = G == null ? void 0 : G.prediction) == null ? void 0 : Ce.playerId,
490
- onPlayerSelection: z.onPlayerSelection,
491
- useExtraSmallLayout: R
492
- },
493
- `${t.market}-${x}`
494
- );
495
- default:
496
- return /* @__PURE__ */ e.jsx(e.Fragment, {});
497
- }
498
- };
499
- return /* @__PURE__ */ e.jsx(at, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ e.jsx(
500
- et,
501
- {
502
- entity: a.matchQuiz,
503
- headline: C("matchQuiz.headline"),
504
- finalImage: v,
505
- imagePosition: je,
506
- rulesDisplay: a.rulesDisplay,
507
- children: Ye()
508
- }
509
- ) });
510
- };
511
- export {
512
- Yt as default
513
- };