fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC6

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 (367) hide show
  1. package/ClassicQuizPlay.js +4847 -3
  2. package/CollectLead.js +1253 -3
  3. package/EventGamePlay.js +7595 -3
  4. package/MatchQuizPlay.js +11002 -3
  5. package/PersonalityQuizPlay.js +39512 -3
  6. package/PollVote.js +4167 -3
  7. package/chunks/CollectLeadForm-DtmR2Vuf.js +844 -0
  8. package/chunks/Error-DhQL89pn.js +120 -0
  9. package/chunks/NotFoundSkeleton-BYJTzYJR.js +2425 -0
  10. package/chunks/OverlayLeadAfterCollection-DnqztPJ5.js +899 -0
  11. package/chunks/OverlayScoreStateSkeleton-C9FUhcnd.js +147 -0
  12. package/chunks/Portal-BWqqFvVm.js +13823 -0
  13. package/package.json +1 -1
  14. package/_virtual/_commonjsHelpers.js +0 -6
  15. package/_virtual/index.js +0 -4
  16. package/_virtual/index2.js +0 -4
  17. package/_virtual/index3.js +0 -4
  18. package/_virtual/jsx-runtime.js +0 -4
  19. package/_virtual/react-is.development.js +0 -4
  20. package/_virtual/react-is.development2.js +0 -4
  21. package/_virtual/react-is.production.min.js +0 -4
  22. package/_virtual/react-is.production.min2.js +0 -4
  23. package/_virtual/react-jsx-runtime.development.js +0 -4
  24. package/_virtual/react-jsx-runtime.production.js +0 -4
  25. package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  26. package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  27. package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
  28. package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
  29. package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
  30. package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
  31. package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
  32. package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
  33. package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
  34. package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
  35. package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
  36. package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
  37. package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
  38. package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
  39. package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
  40. package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
  41. package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
  42. package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
  43. package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
  44. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
  45. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
  46. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
  47. package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
  48. package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
  49. package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
  50. package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
  51. package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
  52. package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  53. package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  54. package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
  55. package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
  56. package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
  57. package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
  58. package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
  59. package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
  60. package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
  61. package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
  62. package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
  63. package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  64. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
  65. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
  66. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
  67. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
  68. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
  69. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
  70. package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
  71. package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  72. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
  73. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
  74. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
  75. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
  76. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
  77. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
  78. package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
  79. package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  80. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
  81. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
  82. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
  83. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
  84. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
  85. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
  86. package/packages/classic-quiz-play/src/constants/constants.js +0 -4
  87. package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
  88. package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
  89. package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
  90. package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
  91. package/packages/classic-quiz-play/src/index.js +0 -4
  92. package/packages/classic-quiz-play/src/main.js +0 -7
  93. package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  94. package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
  95. package/packages/collect-lead/src/components/CollectLead.js +0 -18
  96. package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
  97. package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
  98. package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
  99. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
  100. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
  101. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
  102. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
  103. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
  104. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
  105. package/packages/collect-lead/src/index.js +0 -4
  106. package/packages/collect-lead/src/main.js +0 -39
  107. package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
  108. package/packages/common/src/components/AdditionalCTA.js +0 -24
  109. package/packages/common/src/components/AlertMessage.js +0 -88
  110. package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
  111. package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
  112. package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
  113. package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
  114. package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
  115. package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
  116. package/packages/common/src/components/Leads/LeadForm.js +0 -498
  117. package/packages/common/src/components/Portal.js +0 -62
  118. package/packages/common/src/components/Rules.js +0 -299
  119. package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
  120. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
  121. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
  122. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
  123. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
  124. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
  125. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
  126. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
  127. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
  128. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
  129. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
  130. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
  131. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
  132. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
  133. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
  134. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
  135. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
  136. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
  137. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
  138. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
  139. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
  140. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
  141. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
  142. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
  143. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
  144. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
  145. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
  146. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
  147. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
  148. package/packages/common/src/components/Spinner.js +0 -36
  149. package/packages/common/src/constants/constants.js +0 -457
  150. package/packages/common/src/enums/enums.js +0 -4
  151. package/packages/common/src/functions/helpers.js +0 -58
  152. package/packages/common/src/functions/i18n.js +0 -69
  153. package/packages/common/src/functions/theme.js +0 -301
  154. package/packages/common/src/hooks/useConstantContext.js +0 -10
  155. package/packages/common/src/hooks/useImageUrl.js +0 -8
  156. package/packages/common/src/hooks/useImageVariant.js +0 -11
  157. package/packages/common/src/hooks/useLeadForm.js +0 -129
  158. package/packages/common/src/hooks/useThemeMode.js +0 -30
  159. package/packages/common/src/locales/bg.json.js +0 -363
  160. package/packages/common/src/locales/de.json.js +0 -362
  161. package/packages/common/src/locales/el.json.js +0 -362
  162. package/packages/common/src/locales/en.json.js +0 -368
  163. package/packages/common/src/locales/es.json.js +0 -362
  164. package/packages/common/src/locales/fr-be.json.js +0 -362
  165. package/packages/common/src/locales/fr.json.js +0 -362
  166. package/packages/common/src/locales/it.json.js +0 -362
  167. package/packages/common/src/locales/pl.json.js +0 -362
  168. package/packages/common/src/locales/pt-br.json.js +0 -362
  169. package/packages/common/src/locales/pt.json.js +0 -362
  170. package/packages/common/src/locales/ro.json.js +0 -362
  171. package/packages/common/src/locales/sk.json.js +0 -362
  172. package/packages/common/src/locales/sr.json.js +0 -362
  173. package/packages/common/src/providers/ConstantsProvider.js +0 -29
  174. package/packages/common/src/providers/ContainerProvider.js +0 -35
  175. package/packages/common/src/providers/FontProvider.js +0 -25
  176. package/packages/common/src/providers/ThemeProvider.js +0 -80
  177. package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  178. package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
  179. package/packages/event-game-play/src/assets/school.svg.js +0 -4
  180. package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
  181. package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
  182. package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
  183. package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
  184. package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
  185. package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
  186. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
  187. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
  188. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
  189. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
  190. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
  191. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
  192. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
  193. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
  194. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
  195. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  196. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
  197. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
  198. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
  199. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
  200. package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  201. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  202. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
  203. package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
  204. package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
  205. package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
  206. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
  207. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
  208. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
  209. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
  210. package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
  211. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
  212. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
  213. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
  214. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
  215. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
  216. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
  217. package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
  218. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
  219. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
  220. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
  221. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
  222. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
  223. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
  224. package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
  225. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
  226. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
  227. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
  228. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
  229. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
  230. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
  231. package/packages/event-game-play/src/helpers/helpers.js +0 -11
  232. package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
  233. package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
  234. package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
  235. package/packages/event-game-play/src/index.js +0 -4
  236. package/packages/event-game-play/src/main.js +0 -7
  237. package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
  238. package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  239. package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  240. package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
  241. package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
  242. package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  243. package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
  244. package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
  245. package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  246. package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
  247. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
  248. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
  249. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
  250. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
  251. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
  252. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
  253. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
  254. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
  255. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
  256. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
  257. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
  258. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
  259. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
  260. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
  261. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
  262. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
  263. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
  264. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
  265. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
  266. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
  267. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
  268. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
  269. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
  270. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  271. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
  272. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
  273. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
  274. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
  275. package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  276. package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  277. package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
  278. package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
  279. package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
  280. package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
  281. package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
  282. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
  283. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
  284. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
  285. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
  286. package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
  287. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
  288. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
  289. package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  290. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
  291. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
  292. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
  293. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
  294. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
  295. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
  296. package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
  297. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
  298. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
  299. package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  300. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
  301. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
  302. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
  303. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
  304. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
  305. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
  306. package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
  307. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
  308. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
  309. package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  310. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
  311. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
  312. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
  313. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
  314. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
  315. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
  316. package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
  317. package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
  318. package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
  319. package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
  320. package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
  321. package/packages/match-quiz-play/src/index.js +0 -4
  322. package/packages/match-quiz-play/src/main.js +0 -7
  323. package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
  324. package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
  325. package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  326. package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
  327. package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
  328. package/packages/poll-vote/src/components/PollNotFound.js +0 -23
  329. package/packages/poll-vote/src/components/PollVote.js +0 -270
  330. package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
  331. package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
  332. package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
  333. package/packages/poll-vote/src/components/Shared/Button.js +0 -76
  334. package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
  335. package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
  336. package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
  337. package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
  338. package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
  339. package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
  340. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
  341. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
  342. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
  343. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
  344. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
  345. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
  346. package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
  347. package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
  348. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
  349. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
  350. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
  351. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
  352. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
  353. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
  354. package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
  355. package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
  356. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
  357. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
  358. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
  359. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
  360. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
  361. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
  362. package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
  363. package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
  364. package/packages/poll-vote/src/hooks/usePollById.js +0 -16
  365. package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
  366. package/packages/poll-vote/src/index.js +0 -4
  367. package/packages/poll-vote/src/main.js +0 -7
@@ -1,138 +0,0 @@
1
- import { j as l } from "../../../../../../node_modules/react/jsx-runtime.js";
2
- import M from "react";
3
- import { Box as n, Typography as oe } from "@mui/joy";
4
- import { isMobile as te, isExtraSmall as ne, useColors as c, useFontFamily as ie, useCornerRadius as ae, useSpacingScale as se } from "../../../../../common/src/functions/theme.js";
5
- import { hexToRgb as re } 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 me } from "../../../../../common/src/enums/enums.js";
9
- import { useConstantContext as de } from "../../../../../common/src/hooks/useConstantContext.js";
10
- import { ConstantsContext as ce } from "../../../../../common/src/providers/ConstantsProvider.js";
11
- import ue from "../../../../../common/src/components/Skeletons/Standard/StandardSkeleton.js";
12
- import { useImageVariant as ge } from "../../../../../common/src/hooks/useImageVariant.js";
13
- import "../../../../../common/src/providers/ContainerProvider.js";
14
- import xe from "../../Shared/Button.js";
15
- import fe from "../../Shared/MainCard.js";
16
- import Ce from "../../Shared/PresentedBy.js";
17
- import be from "../../Leads/CollectLeadWrapper.js";
18
- import { useEmbedCode as he } from "../../../hooks/useEmbedCodeContainer.js";
19
- import { createStyles as ye } from "./PollStandardVariant.styles.js";
20
- import je from "../../Shared/Answers/PollOptions.js";
21
- import { usePollOptionsImages as Se } from "../../../hooks/usePollOptionsImages.js";
22
- import { useTranslation as Pe } from "../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
23
- const Qe = (e) => {
24
- var C, b, h, y, j, S, P, L, T, D, E, F, R, I, q, B, U, V, k, v, w;
25
- const [u, g] = M.useState(
26
- ((C = e.leads) == null ? void 0 : C.position) === "before" && e.poll.authRequirement === "LEAD"
27
- );
28
- M.useEffect(() => {
29
- var s;
30
- g(
31
- ((s = e.leads) == null ? void 0 : s.position) === "before" && e.poll.authRequirement === "LEAD" || !1
32
- );
33
- }, [(b = e.leads) == null ? void 0 : b.position, e.poll.authRequirement]);
34
- const { optionsLayout: _ } = de(ce), G = he(e.poll.embedCode), Q = !u && !!e.poll.embedCode, z = Se(e.options), { t: r } = Pe(), x = te(), H = ne(), o = ((h = e.poll.branding) == null ? void 0 : h.colors) || null, i = x ? ((j = (y = e.poll.branding) == null ? void 0 : y.images) == null ? void 0 : j.mobileLogo) || ((P = (S = e.poll.branding) == null ? void 0 : S.images) == null ? void 0 : P.mainLogo) || "" : ((T = (L = e.poll.branding) == null ? void 0 : L.images) == null ? void 0 : T.mainLogo) || "", J = e.imagePosition || "left", f = ge(
35
- {
36
- images: e.poll.images,
37
- imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
38
- },
39
- me.STANDARD
40
- ), K = ((D = e.leads) == null ? void 0 : D.position) === "after" ? r("poll.buttons.continue") : r("poll.buttons.vote"), m = H || x && !!f, a = (o == null ? void 0 : o.contentColor) || c().textColor, X = ie().primary, Y = (o == null ? void 0 : o.backgroundColor) || c().surfaceVariant, Z = ae().md, $ = (o == null ? void 0 : o.primaryColor) || c().palette.primary.plainColor, ee = se(), t = ye({
41
- spacingScale: ee,
42
- fontFamilyPrimary: X,
43
- textColor: a,
44
- bgcolor: re(Y || ""),
45
- mdBorderRadius: Z,
46
- isExtraSmall: m
47
- }), le = () => {
48
- g(!1);
49
- }, d = (s) => {
50
- var O, p, A, N, W;
51
- return /* @__PURE__ */ l.jsx(
52
- Ce,
53
- {
54
- brandingLogo: i,
55
- textColor: s,
56
- label: ((O = e.poll.labels) == null ? void 0 : O.sponsor) || null,
57
- primaryUrl: (A = (p = e.poll.branding) == null ? void 0 : p.urls) == null ? void 0 : A.primaryUrl,
58
- secondaryUrl: (W = (N = e.poll.branding) == null ? void 0 : N.urls) == null ? void 0 : W.secondaryUrl
59
- }
60
- );
61
- };
62
- return /* @__PURE__ */ l.jsx(fe, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ l.jsx(
63
- ue,
64
- {
65
- entity: e.poll,
66
- headline: r("poll.headline"),
67
- finalImage: f,
68
- imagePosition: J,
69
- rulesDisplay: e.rulesDisplay,
70
- embedCodeContainerRef: G,
71
- hasEmbedCode: Q,
72
- children: /* @__PURE__ */ l.jsx(l.Fragment, { children: u ? /* @__PURE__ */ l.jsx(n, { sx: t.leadCollectionContainer, children: /* @__PURE__ */ l.jsxs(n, { sx: t.leadQuestionContainer, children: [
73
- /* @__PURE__ */ l.jsx(n, { sx: t.leadContentContainer, children: /* @__PURE__ */ l.jsx(
74
- be,
75
- {
76
- sdk: e.sdk,
77
- startGame: le,
78
- contentId: e.poll.id,
79
- contentName: e.poll.title,
80
- brandingColors: (E = e.poll.branding) == null ? void 0 : E.colors,
81
- brandingUrls: (F = e.poll.branding) == null ? void 0 : F.urls,
82
- campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
83
- campaignName: (I = e.leads) == null ? void 0 : I.campaignName,
84
- fields: (q = e.leads) == null ? void 0 : q.fields,
85
- leadTitle: (B = e.poll.labels) == null ? void 0 : B.leadTitle,
86
- leadDescription: (U = e.poll.labels) == null ? void 0 : U.leadDescription,
87
- leadCta: (V = e.poll.labels) == null ? void 0 : V.leadCta,
88
- leadSuccessTitle: (k = e.poll.labels) == null ? void 0 : k.leadSuccessTitle,
89
- leadSuccessDescription: (v = e.poll.labels) == null ? void 0 : v.leadSuccessDescription,
90
- syncWithProfile: (w = e.leads) == null ? void 0 : w.syncWithProfile
91
- }
92
- ) }),
93
- d(a)
94
- ] }) }) : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(n, { sx: t.questionArea, children: /* @__PURE__ */ l.jsxs(n, { sx: t.questionContainer, children: [
95
- /* @__PURE__ */ l.jsxs(n, { sx: t.questionContentContainer, children: [
96
- e.poll.alternativeTitle ? /* @__PURE__ */ l.jsx(n, { sx: t.questionTextContainer, children: /* @__PURE__ */ l.jsx(oe, { level: "body-lg", sx: t.questionText, children: e.poll.alternativeTitle }) }) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
97
- /* @__PURE__ */ l.jsx(
98
- je,
99
- {
100
- options: e.options || [],
101
- answerPoll: e.answerPoll,
102
- selectedOptions: e.selectedOptions,
103
- optionsLayout: _ ?? "twoByTwo",
104
- optionsImages: z,
105
- brandingColors: o,
106
- multipleChoice: e.poll.multipleChoice,
107
- maxChoices: e.optionChoices,
108
- isVoting: e.isVoting
109
- }
110
- )
111
- ] }),
112
- /* @__PURE__ */ l.jsxs(
113
- n,
114
- {
115
- sx: i ? t.footerContainer : t.footerContainerNoLogo,
116
- children: [
117
- i && !m ? d(a) : /* @__PURE__ */ l.jsx(l.Fragment, {}),
118
- /* @__PURE__ */ l.jsx(n, { sx: t.navigationContainer, children: /* @__PURE__ */ l.jsx(
119
- xe,
120
- {
121
- selectedOptions: e.selectedOptions,
122
- label: K,
123
- buttonColor: $,
124
- onClick: e.voteForPoll,
125
- isVoting: e.isVoting
126
- }
127
- ) })
128
- ]
129
- }
130
- ),
131
- i && m ? d(a) : /* @__PURE__ */ l.jsx(l.Fragment, {})
132
- ] }) }) }) })
133
- }
134
- ) });
135
- };
136
- export {
137
- Qe as default
138
- };
@@ -1,92 +0,0 @@
1
- const l = (e) => ({
2
- // Lead collection container
3
- leadCollectionContainer: {
4
- display: "flex",
5
- flexDirection: "column",
6
- p: e.spacingScale.md
7
- },
8
- // Lead question container
9
- leadQuestionContainer: {
10
- display: "flex",
11
- flexDirection: "column",
12
- gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
13
- },
14
- // Lead content container
15
- leadContentContainer: {
16
- borderRadius: e.mdBorderRadius,
17
- px: e.spacingScale.md,
18
- pt: e.spacingScale.md,
19
- pb: e.spacingScale.lg,
20
- gap: e.spacingScale.md,
21
- bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
22
- display: "flex",
23
- flexDirection: "column",
24
- backdropFilter: "blur(4px)"
25
- },
26
- // Question area
27
- questionArea: {
28
- display: "flex",
29
- flexDirection: "column",
30
- p: e.spacingScale.md
31
- },
32
- // Question container
33
- questionContainer: {
34
- display: "flex",
35
- flexDirection: "column",
36
- gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
37
- },
38
- // Question content container
39
- questionContentContainer: {
40
- borderRadius: e.mdBorderRadius,
41
- px: e.spacingScale.md,
42
- pt: e.spacingScale.md,
43
- pb: e.spacingScale.lg,
44
- gap: e.spacingScale.md,
45
- bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
46
- display: "flex",
47
- flexDirection: "column",
48
- backdropFilter: "blur(4px)"
49
- },
50
- // Question text container
51
- questionTextContainer: {
52
- gap: "8px",
53
- display: "flex",
54
- justifyContent: "center"
55
- },
56
- // Question text
57
- questionText: {
58
- fontFamily: e.fontFamilyPrimary,
59
- lineHeight: "150%",
60
- letterSpacing: "0.15px",
61
- fontWeight: 500,
62
- fontSize: "1.25em",
63
- textAlign: "center",
64
- color: e.textColor
65
- },
66
- // Footer container
67
- footerContainer: {
68
- display: "flex",
69
- flexDirection: e.isExtraSmall ? "column" : "row",
70
- justifyContent: "space-between",
71
- alignItems: "center",
72
- gap: e.spacingScale.lg
73
- },
74
- // Footer container (no logo)
75
- footerContainerNoLogo: {
76
- display: "flex",
77
- flexDirection: e.isExtraSmall ? "column" : "row",
78
- justifyContent: "flex-end",
79
- alignItems: "center",
80
- gap: e.spacingScale.lg
81
- },
82
- // Navigation container
83
- navigationContainer: {
84
- display: "flex",
85
- gap: e.spacingScale.md,
86
- justifyContent: "center",
87
- alignItems: "center"
88
- }
89
- });
90
- export {
91
- l as createStyles
92
- };
@@ -1,146 +0,0 @@
1
- import { j as t } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
- import { Box as n, Typography as C, Button as B } from "@mui/joy";
3
- import { isMobile as v, useColors as I, useSpacingScale as P } from "../../../../../../common/src/functions/theme.js";
4
- import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
5
- import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
6
- import { WidgetTemplate as F } from "../../../../../../common/src/enums/enums.js";
7
- import M from "../../../../../../common/src/components/AdditionalCTA.js";
8
- import "react";
9
- import { useConstantContext as L } from "../../../../../../common/src/hooks/useConstantContext.js";
10
- import { ConstantsContext as q } from "../../../../../../common/src/providers/ConstantsProvider.js";
11
- import R from "../../../../../../common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js";
12
- import D from "../../../../../../../node_modules/@mui/icons-material/esm/Replay.js";
13
- import { useImageVariant as O } from "../../../../../../common/src/hooks/useImageVariant.js";
14
- import "../../../../../../common/src/providers/ContainerProvider.js";
15
- import V from "../../../Shared/MainCard.js";
16
- import r from "../../../Shared/PresentedBy.js";
17
- import { createStyles as k } from "./PollStandardScoreState.styles.js";
18
- import U from "../../../Shared/AlertMessage.js";
19
- import { usePollOptionsImages as w } from "../../../../hooks/usePollOptionsImages.js";
20
- import N from "../../../Shared/Results/PollOptionsResults.js";
21
- import { useTranslation as z } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
22
- const dt = (e) => {
23
- var m, d, x, c;
24
- const f = O(
25
- {
26
- images: e.poll.images,
27
- imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
28
- },
29
- F.STANDARD
30
- ), { optionsLayout: y } = L(q), { t: a } = z(), i = ((m = e.poll.branding) == null ? void 0 : m.colors) || null, l = v() ? ((d = e.poll.branding) == null ? void 0 : d.images.mobileLogo) || ((x = e.poll.branding) == null ? void 0 : x.images.mainLogo) || "" : ((c = e.poll.branding) == null ? void 0 : c.images.mainLogo) || "", b = e.imagePosition || "left", A = w(e.poll.options), s = (i == null ? void 0 : i.contentColor) || I().textColor, T = P(), o = k({
31
- spacingScale: T,
32
- textColor: s
33
- }), S = () => {
34
- var g, u, j, h, p;
35
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: e.isUnauthorized ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
36
- /* @__PURE__ */ t.jsx(
37
- U,
38
- {
39
- variant: "error",
40
- title: a("common.authentication.accessRequired"),
41
- message: a("common.authentication.invalidOrMissingAuth")
42
- }
43
- ),
44
- l ? /* @__PURE__ */ t.jsx(
45
- r,
46
- {
47
- brandingLogo: l,
48
- textColor: s,
49
- label: ((p = e.poll.labels) == null ? void 0 : p.sponsor) || null
50
- }
51
- ) : /* @__PURE__ */ t.jsx(t.Fragment, {})
52
- ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
53
- /* @__PURE__ */ t.jsx(n, { sx: o.questionArea, children: /* @__PURE__ */ t.jsx(n, { sx: o.questionContainer, children: /* @__PURE__ */ t.jsxs(n, { sx: o.questionContentContainer, children: [
54
- e.poll.alternativeTitle ? /* @__PURE__ */ t.jsx(n, { sx: o.alternativeTitleSection, children: /* @__PURE__ */ t.jsx(
55
- C,
56
- {
57
- level: "body-lg",
58
- sx: o.alternativeTitleText,
59
- children: e.poll.alternativeTitle
60
- }
61
- ) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
62
- /* @__PURE__ */ t.jsx(
63
- N,
64
- {
65
- options: e.poll.options,
66
- selectedOptions: ((g = e.userVote) == null ? void 0 : g.optionIds) || [],
67
- optionsLayout: y ?? "twoByTwo",
68
- optionsImages: A,
69
- brandingColors: ((u = e.poll.branding) == null ? void 0 : u.colors) || null
70
- }
71
- )
72
- ] }) }) }),
73
- /* @__PURE__ */ t.jsx(n, { sx: o.questionArea, children: /* @__PURE__ */ t.jsxs(n, { sx: o.questionContainer, children: [
74
- /* @__PURE__ */ t.jsxs(
75
- n,
76
- {
77
- sx: l ? o.footerContainer : o.footerContainerNoLogo,
78
- children: [
79
- l ? /* @__PURE__ */ t.jsx(n, { sx: o.presentedByDesktop, children: /* @__PURE__ */ t.jsx(
80
- r,
81
- {
82
- brandingLogo: l,
83
- textColor: s,
84
- label: ((j = e.poll.labels) == null ? void 0 : j.sponsor) || null
85
- }
86
- ) }) : /* @__PURE__ */ t.jsx(t.Fragment, {}),
87
- /* @__PURE__ */ t.jsxs(
88
- n,
89
- {
90
- sx: {
91
- display: "flex",
92
- gap: "16px"
93
- },
94
- children: [
95
- /* @__PURE__ */ t.jsx(
96
- M,
97
- {
98
- additionalCTA: e.additionalCTA,
99
- buttonStyle: o.additionalCTAButton,
100
- buttonContentStyle: o.additionalCTAButtonContent,
101
- textStyle: o.additionalCTAText
102
- }
103
- ),
104
- e.maxAttemptsReached ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : /* @__PURE__ */ t.jsx(
105
- B,
106
- {
107
- sx: o.voteAgainButton,
108
- onClick: e.voteAgain,
109
- children: /* @__PURE__ */ t.jsxs(n, { sx: o.playAgainButtonContent, children: [
110
- /* @__PURE__ */ t.jsx(D, { sx: o.playAgainIcon }),
111
- /* @__PURE__ */ t.jsx(C, { sx: o.playAgainText, children: a("poll.buttons.voteAgain") })
112
- ] })
113
- }
114
- )
115
- ]
116
- }
117
- )
118
- ]
119
- }
120
- ),
121
- l ? /* @__PURE__ */ t.jsx(n, { sx: o.presentedByMobile, children: /* @__PURE__ */ t.jsx(
122
- r,
123
- {
124
- brandingLogo: l,
125
- textColor: s,
126
- label: ((h = e.poll.labels) == null ? void 0 : h.sponsor) || null
127
- }
128
- ) }) : /* @__PURE__ */ t.jsx(t.Fragment, {})
129
- ] }) })
130
- ] }) });
131
- };
132
- return /* @__PURE__ */ t.jsx(V, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t.jsx(
133
- R,
134
- {
135
- entity: e.poll,
136
- headline: a("poll.headline"),
137
- finalImage: f,
138
- imagePosition: b,
139
- rulesDisplay: e.rulesDisplay,
140
- children: S()
141
- }
142
- ) });
143
- };
144
- export {
145
- dt as default
146
- };
@@ -1,164 +0,0 @@
1
- import { useCornerRadius as m, isMobile as f, useBorderSize as d, useColors as y, useFontFamily as u } from "../../../../../../common/src/functions/theme.js";
2
- import { hexToRgb as S } from "../../../../../../common/src/functions/helpers.js";
3
- import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
4
- import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
5
- import "../../../../../../../node_modules/react/jsx-runtime.js";
6
- import "@mui/joy";
7
- import "react";
8
- import "../../../../../../common/src/providers/ConstantsProvider.js";
9
- import "../../../../../../common/src/providers/ContainerProvider.js";
10
- const I = (e) => {
11
- const o = m(), n = f(), a = d().size, t = y(), i = u(), r = t.palette.primary.plainColor, c = t.textPrimary, s = t.textSecondary, l = t.secondaryContainer, p = t.surface, g = t.onSurface, x = `rgba(${S(t.surfaceVariant)}, 0.5)`;
12
- return {
13
- // Question area
14
- questionArea: {
15
- display: "flex",
16
- flexDirection: "column",
17
- px: e.spacingScale.md
18
- },
19
- // Question container
20
- questionContainer: {
21
- display: "flex",
22
- flexDirection: "column",
23
- gap: n ? e.spacingScale.lg : e.spacingScale.md
24
- },
25
- // Question content container
26
- questionContentContainer: {
27
- borderRadius: o.md,
28
- px: e.spacingScale.md,
29
- pt: e.spacingScale.md,
30
- pb: e.spacingScale.lg,
31
- gap: e.spacingScale.md,
32
- bgcolor: x,
33
- display: "flex",
34
- flexDirection: "column",
35
- backdropFilter: "blur(4px)"
36
- },
37
- // Vote again button
38
- voteAgainButton: {
39
- display: "flex",
40
- py: e.spacingScale.xs,
41
- px: "16px",
42
- flexDirection: "column",
43
- justifyContent: "center",
44
- alignItems: "center",
45
- gap: "8px",
46
- borderRadius: o.xl,
47
- border: a + " solid " + r,
48
- bgcolor: p,
49
- "&:hover": {
50
- bgcolor: g,
51
- borderColor: r
52
- },
53
- fontSize: "0.8125em"
54
- },
55
- // Play again button content
56
- playAgainButtonContent: {
57
- display: "flex",
58
- justifyContent: "center",
59
- alignItems: "center",
60
- gap: "8px",
61
- alignSelf: "stretch"
62
- },
63
- // Play again icon
64
- playAgainIcon: {
65
- display: "flex",
66
- width: "16px",
67
- height: "16px",
68
- justifyContent: "flex-end",
69
- alignItems: "center",
70
- color: c
71
- },
72
- // Play again text
73
- playAgainText: {
74
- color: c,
75
- textAlign: "center",
76
- fontFamily: i.primary,
77
- fontSize: "0.8125em",
78
- fontStyle: "normal",
79
- fontWeight: 500,
80
- lineHeight: "22px",
81
- letterSpacing: "0.46px",
82
- textTransform: "uppercase"
83
- },
84
- // Additional CTA button (secondary style)
85
- additionalCTAButton: {
86
- display: "flex",
87
- py: e.spacingScale.xs,
88
- px: e.spacingScale.md,
89
- flexDirection: "column",
90
- justifyContent: "center",
91
- alignItems: "center",
92
- gap: "8px",
93
- borderRadius: o.xl,
94
- border: a + " solid " + l,
95
- bgcolor: l,
96
- "&:hover": {
97
- bgcolor: l,
98
- opacity: 0.9
99
- },
100
- fontSize: "0.8125em"
101
- },
102
- // Additional CTA button content
103
- additionalCTAButtonContent: {
104
- display: "flex",
105
- justifyContent: "center",
106
- alignItems: "center",
107
- gap: "8px"
108
- },
109
- // Additional CTA text
110
- additionalCTAText: {
111
- color: s,
112
- fontFamily: i.primary,
113
- fontSize: "0.8125em",
114
- fontStyle: "normal",
115
- fontWeight: 500,
116
- lineHeight: "22px",
117
- letterSpacing: "0.46px",
118
- textTransform: "uppercase"
119
- },
120
- // Footer container
121
- footerContainer: {
122
- display: "flex",
123
- flexDirection: n ? "column" : "row",
124
- justifyContent: "space-between",
125
- alignItems: "center",
126
- gap: e.spacingScale.lg
127
- },
128
- // Footer container (no logo)
129
- footerContainerNoLogo: {
130
- display: "flex",
131
- flexDirection: n ? "column" : "row",
132
- justifyContent: "flex-end",
133
- alignItems: "center",
134
- gap: e.spacingScale.lg
135
- },
136
- // Presented by desktop
137
- presentedByDesktop: {
138
- display: n ? "none" : "block"
139
- },
140
- // Presented by mobile
141
- presentedByMobile: {
142
- display: n ? "block" : "none"
143
- },
144
- // Alternative title section
145
- alternativeTitleSection: {
146
- gap: "8px",
147
- display: "flex",
148
- justifyContent: "center"
149
- },
150
- // Alternative title text
151
- alternativeTitleText: {
152
- fontFamily: i.primary,
153
- lineHeight: "150%",
154
- letterSpacing: "0.15px",
155
- fontWeight: 500,
156
- fontSize: "1.25em",
157
- textAlign: "center",
158
- color: e.textColor
159
- }
160
- };
161
- };
162
- export {
163
- I as createStyles
164
- };
@@ -1,129 +0,0 @@
1
- import { j as o } from "../../../../../../../node_modules/react/jsx-runtime.js";
2
- import U from "../../../Shared/MainCard.js";
3
- import E from "../../../Shared/PresentedBy.js";
4
- import { isMobile as V, useInternalTheme as W, useSpacingScale as q, useFontFamily as S, useCornerRadius as b, useColors as r, useImageBackgroundGradient as z } from "../../../../../../common/src/functions/theme.js";
5
- import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
6
- import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
7
- import { WidgetTemplate as k } from "../../../../../../common/src/enums/enums.js";
8
- import { Button as a, Typography as l, Box as H } from "@mui/joy";
9
- import "react";
10
- import "../../../../../../common/src/providers/ConstantsProvider.js";
11
- import J from "../../../../../../common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js";
12
- import { useImageVariant as K } from "../../../../../../common/src/hooks/useImageVariant.js";
13
- import "../../../../../../common/src/providers/ContainerProvider.js";
14
- import { createStyles as O } from "./PollStandardSignIn.styles.js";
15
- import { useTranslation as Q } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
16
- const un = (n) => {
17
- var d, u, x, I, f;
18
- const t = ((d = n.poll.branding) == null ? void 0 : d.colors) || null, m = V(), c = W(), s = K(
19
- {
20
- images: n.poll.images,
21
- imagePlaceholder: n.defaultImagePlaceholderUrl ? n.defaultImagePlaceholderUrl : ""
22
- },
23
- k.STANDARD
24
- ), P = q(), L = S().primary, D = S().secondary, w = b(), R = b().xl, v = (t == null ? void 0 : t.primaryColor) || r().palette.primary.plainColor, F = r().palette.primary.onPrimary, g = (t == null ? void 0 : t.contentColor) || r().textColor, _ = (t == null ? void 0 : t.secondaryColor) || r().textColor, p = z(
25
- k.STANDARD
26
- ), G = m ? ((u = n.poll.branding) == null ? void 0 : u.images.mobileLogo) || ((x = n.poll.branding) == null ? void 0 : x.images.mainLogo) || "" : ((I = n.poll.branding) == null ? void 0 : I.images.mainLogo) || "", { t: i } = Q(), M = n.imagePosition || "left", e = O({
27
- finalImage: s,
28
- spacingScale: P,
29
- borderRadius: w,
30
- fontFamilyPrimary: L,
31
- fontFamilySecondary: D,
32
- textColor: g,
33
- secondaryColor: _,
34
- brandingColors: t,
35
- darkTextColor: c.colorSchemes.dark.textColor,
36
- opacity: "60%",
37
- imageBackgroundGradient: p,
38
- buttonRadius: R,
39
- primaryColor: v,
40
- onPrimaryColor: F
41
- }), N = () => {
42
- var C, y, T, h;
43
- return n.signInCTA ? (C = n.signInCTA) != null && C.component ? n.signInCTA.component : (y = n.signInCTA) != null && y.onClick ? /* @__PURE__ */ o.jsx(
44
- a,
45
- {
46
- variant: "soft",
47
- sx: {
48
- ...e.signInButton,
49
- ...e.pulseAnimation
50
- },
51
- onClick: n.signInCTA.onClick,
52
- children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
53
- }
54
- ) : (T = n.signInCTA) != null && T.url ? typeof window > "u" ? /* @__PURE__ */ o.jsx(
55
- H,
56
- {
57
- component: "a",
58
- href: n.signInCTA.url,
59
- target: ((h = n.signInCTA) == null ? void 0 : h.target) || "_self",
60
- sx: {
61
- ...e.signInButton,
62
- ...e.pulseAnimation,
63
- textDecoration: "none",
64
- display: "inline-flex",
65
- alignItems: "center",
66
- justifyContent: "center"
67
- },
68
- children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
69
- }
70
- ) : /* @__PURE__ */ o.jsx(
71
- a,
72
- {
73
- variant: "soft",
74
- sx: {
75
- ...e.signInButton,
76
- ...e.pulseAnimation
77
- },
78
- onClick: () => {
79
- var A, j, B;
80
- ((A = n.signInCTA) == null ? void 0 : A.target) === "_blank" ? window.open((j = n.signInCTA) == null ? void 0 : j.url, "_blank") : window.location.href = (B = n.signInCTA) == null ? void 0 : B.url;
81
- },
82
- children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
83
- }
84
- ) : /* @__PURE__ */ o.jsx(
85
- a,
86
- {
87
- variant: "soft",
88
- sx: {
89
- ...e.signInButton
90
- },
91
- disabled: !0,
92
- children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: n.signInCTA.defaultLabel || i("common.signIn") })
93
- }
94
- ) : /* @__PURE__ */ o.jsx(
95
- a,
96
- {
97
- variant: "soft",
98
- sx: {
99
- ...e.signInButton
100
- },
101
- disabled: !0,
102
- children: /* @__PURE__ */ o.jsx(l, { sx: e.signInButtonText, children: i("common.signIn") })
103
- }
104
- );
105
- };
106
- return /* @__PURE__ */ o.jsx(U, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: /* @__PURE__ */ o.jsx(
107
- J,
108
- {
109
- entity: n.poll,
110
- headline: i("poll.headline"),
111
- finalImage: s,
112
- imagePosition: M,
113
- signInContent: N(),
114
- rulesDisplay: n.rulesDisplay,
115
- brandingContent: /* @__PURE__ */ o.jsx(
116
- E,
117
- {
118
- brandingLogo: G,
119
- textColor: m && s ? (t == null ? void 0 : t.contentColor) || c.colorSchemes.dark.textColor : g,
120
- label: ((f = n.poll.labels) == null ? void 0 : f.sponsor) || null,
121
- isCentered: !0
122
- }
123
- )
124
- }
125
- ) });
126
- };
127
- export {
128
- un as default
129
- };