be-components 0.7.3 → 0.7.4

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 (426) hide show
  1. package/lib/commonjs/ApiOverrides/index.js +18 -0
  2. package/lib/commonjs/ApiOverrides/index.js.map +1 -1
  3. package/lib/commonjs/Authenticator/index.js.map +1 -1
  4. package/lib/commonjs/Checkout/api/index.js.map +1 -1
  5. package/lib/commonjs/Checkout/index.js.map +1 -1
  6. package/lib/commonjs/Competition/api/index.js +655 -0
  7. package/lib/commonjs/Competition/api/index.js.map +1 -0
  8. package/lib/commonjs/Competition/components/AthleteMarketCard.js +168 -0
  9. package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -0
  10. package/lib/commonjs/Competition/components/CompetitionCard.js +180 -0
  11. package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -0
  12. package/lib/commonjs/Competition/components/CompetitionInfoCard.js +264 -0
  13. package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -0
  14. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +281 -0
  15. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -0
  16. package/lib/commonjs/Competition/components/CompetitionPlay.js +1269 -0
  17. package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -0
  18. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +111 -0
  19. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -0
  20. package/lib/commonjs/Competition/components/CompetitionSelector.js +122 -0
  21. package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -0
  22. package/lib/commonjs/Competition/components/CompetitionTypeCard.js +380 -0
  23. package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -0
  24. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +237 -0
  25. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -0
  26. package/lib/commonjs/Competition/components/LeaderPicks.js +322 -0
  27. package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -0
  28. package/lib/commonjs/Competition/components/ManageSeasonForm.js +605 -0
  29. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +1 -0
  30. package/lib/commonjs/Competition/components/MarketsCard.js +148 -0
  31. package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -0
  32. package/lib/commonjs/Competition/components/MatchMarketCard.js +199 -0
  33. package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -0
  34. package/lib/commonjs/Competition/components/NavOutPrompt.js +159 -0
  35. package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -0
  36. package/lib/commonjs/Competition/components/SeasonInfoModal.js +400 -0
  37. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +1 -0
  38. package/lib/commonjs/Competition/components/TeamEventCard.js +217 -0
  39. package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -0
  40. package/lib/commonjs/Competition/components/WagerPickForm.js +278 -0
  41. package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -0
  42. package/lib/commonjs/Competition/index.js +42 -0
  43. package/lib/commonjs/Competition/index.js.map +1 -0
  44. package/lib/commonjs/Components/Icons.js.map +1 -1
  45. package/lib/commonjs/Components/Jerseys.js +713 -0
  46. package/lib/commonjs/Components/Jerseys.js.map +1 -0
  47. package/lib/commonjs/Components/LinearDiagnal.js +1 -1
  48. package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
  49. package/lib/commonjs/Components/Switch.js +81 -0
  50. package/lib/commonjs/Components/Switch.js.map +1 -0
  51. package/lib/commonjs/Components/index.js +14 -0
  52. package/lib/commonjs/Components/index.js.map +1 -1
  53. package/lib/commonjs/Poll/api/index.js +240 -0
  54. package/lib/commonjs/Poll/api/index.js.map +1 -0
  55. package/lib/commonjs/Poll/components/CampaignPlay.js +553 -0
  56. package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -0
  57. package/lib/commonjs/Poll/components/CampaignProgressBar.js +118 -0
  58. package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -0
  59. package/lib/commonjs/Poll/components/CampaignResult.js +382 -0
  60. package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -0
  61. package/lib/commonjs/Poll/components/CampaignSelector.js +124 -0
  62. package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -0
  63. package/lib/commonjs/Poll/components/PollCampaignCard.js +66 -0
  64. package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -0
  65. package/lib/commonjs/Poll/components/PollCard.js +480 -0
  66. package/lib/commonjs/Poll/components/PollCard.js.map +1 -0
  67. package/lib/commonjs/Poll/components/PollOptionCard.js +158 -0
  68. package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -0
  69. package/lib/commonjs/Poll/components/PollSelectCard.js +189 -0
  70. package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -0
  71. package/lib/commonjs/Poll/components/ResponseTimer.js +48 -0
  72. package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -0
  73. package/lib/commonjs/Poll/components/WidgetHeader.js +83 -0
  74. package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -0
  75. package/lib/commonjs/Poll/index.js +31 -0
  76. package/lib/commonjs/Poll/index.js.map +1 -0
  77. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  78. package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
  79. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
  80. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
  81. package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
  82. package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
  83. package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
  84. package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
  85. package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  86. package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  87. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +5 -0
  88. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
  89. package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
  90. package/lib/commonjs/ProfileManager/index.js +2 -0
  91. package/lib/commonjs/ProfileManager/index.js.map +1 -1
  92. package/lib/commonjs/Wallet/api/index.js +4 -1
  93. package/lib/commonjs/Wallet/api/index.js.map +1 -1
  94. package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
  95. package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
  96. package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
  97. package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
  98. package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
  99. package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
  100. package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
  101. package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
  102. package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
  103. package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
  104. package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
  105. package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
  106. package/lib/commonjs/Wallet/index.js.map +1 -1
  107. package/lib/commonjs/index.js +14 -0
  108. package/lib/commonjs/index.js.map +1 -1
  109. package/lib/module/ApiOverrides/index.js +18 -0
  110. package/lib/module/ApiOverrides/index.js.map +1 -1
  111. package/lib/module/Authenticator/index.js.map +1 -1
  112. package/lib/module/Checkout/api/index.js.map +1 -1
  113. package/lib/module/Checkout/index.js.map +1 -1
  114. package/lib/module/Competition/api/index.js +649 -0
  115. package/lib/module/Competition/api/index.js.map +1 -0
  116. package/lib/module/Competition/components/AthleteMarketCard.js +161 -0
  117. package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -0
  118. package/lib/module/Competition/components/CompetitionCard.js +173 -0
  119. package/lib/module/Competition/components/CompetitionCard.js.map +1 -0
  120. package/lib/module/Competition/components/CompetitionInfoCard.js +257 -0
  121. package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -0
  122. package/lib/module/Competition/components/CompetitionLeaderboard.js +272 -0
  123. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -0
  124. package/lib/module/Competition/components/CompetitionPlay.js +1260 -0
  125. package/lib/module/Competition/components/CompetitionPlay.js.map +1 -0
  126. package/lib/module/Competition/components/CompetitionSeasonCard.js +104 -0
  127. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -0
  128. package/lib/module/Competition/components/CompetitionSelector.js +113 -0
  129. package/lib/module/Competition/components/CompetitionSelector.js.map +1 -0
  130. package/lib/module/Competition/components/CompetitionTypeCard.js +371 -0
  131. package/lib/module/Competition/components/CompetitionTypeCard.js.map +1 -0
  132. package/lib/module/Competition/components/EnterCompetitionPrompt.js +228 -0
  133. package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -0
  134. package/lib/module/Competition/components/LeaderPicks.js +313 -0
  135. package/lib/module/Competition/components/LeaderPicks.js.map +1 -0
  136. package/lib/module/Competition/components/ManageSeasonForm.js +596 -0
  137. package/lib/module/Competition/components/ManageSeasonForm.js.map +1 -0
  138. package/lib/module/Competition/components/MarketsCard.js +139 -0
  139. package/lib/module/Competition/components/MarketsCard.js.map +1 -0
  140. package/lib/module/Competition/components/MatchMarketCard.js +192 -0
  141. package/lib/module/Competition/components/MatchMarketCard.js.map +1 -0
  142. package/lib/module/Competition/components/NavOutPrompt.js +152 -0
  143. package/lib/module/Competition/components/NavOutPrompt.js.map +1 -0
  144. package/lib/module/Competition/components/SeasonInfoModal.js +391 -0
  145. package/lib/module/Competition/components/SeasonInfoModal.js.map +1 -0
  146. package/lib/module/Competition/components/TeamEventCard.js +210 -0
  147. package/lib/module/Competition/components/TeamEventCard.js.map +1 -0
  148. package/lib/module/Competition/components/WagerPickForm.js +269 -0
  149. package/lib/module/Competition/components/WagerPickForm.js.map +1 -0
  150. package/lib/module/Competition/index.js +33 -0
  151. package/lib/module/Competition/index.js.map +1 -0
  152. package/lib/module/Components/Icons.js.map +1 -1
  153. package/lib/module/Components/Jerseys.js +705 -0
  154. package/lib/module/Components/Jerseys.js.map +1 -0
  155. package/lib/module/Components/LinearDiagnal.js +2 -3
  156. package/lib/module/Components/LinearDiagnal.js.map +1 -1
  157. package/lib/module/Components/Switch.js +74 -0
  158. package/lib/module/Components/Switch.js.map +1 -0
  159. package/lib/module/Components/index.js +3 -1
  160. package/lib/module/Components/index.js.map +1 -1
  161. package/lib/module/Poll/api/index.js +234 -0
  162. package/lib/module/Poll/api/index.js.map +1 -0
  163. package/lib/module/Poll/components/CampaignPlay.js +545 -0
  164. package/lib/module/Poll/components/CampaignPlay.js.map +1 -0
  165. package/lib/module/Poll/components/CampaignProgressBar.js +110 -0
  166. package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -0
  167. package/lib/module/Poll/components/CampaignResult.js +374 -0
  168. package/lib/module/Poll/components/CampaignResult.js.map +1 -0
  169. package/lib/module/Poll/components/CampaignSelector.js +115 -0
  170. package/lib/module/Poll/components/CampaignSelector.js.map +1 -0
  171. package/lib/module/Poll/components/PollCampaignCard.js +59 -0
  172. package/lib/module/Poll/components/PollCampaignCard.js.map +1 -0
  173. package/lib/module/Poll/components/PollCard.js +472 -0
  174. package/lib/module/Poll/components/PollCard.js.map +1 -0
  175. package/lib/module/Poll/components/PollOptionCard.js +149 -0
  176. package/lib/module/Poll/components/PollOptionCard.js.map +1 -0
  177. package/lib/module/Poll/components/PollSelectCard.js +182 -0
  178. package/lib/module/Poll/components/PollSelectCard.js.map +1 -0
  179. package/lib/module/Poll/components/ResponseTimer.js +39 -0
  180. package/lib/module/Poll/components/ResponseTimer.js.map +1 -0
  181. package/lib/module/Poll/components/WidgetHeader.js +76 -0
  182. package/lib/module/Poll/components/WidgetHeader.js.map +1 -0
  183. package/lib/module/Poll/index.js +22 -0
  184. package/lib/module/Poll/index.js.map +1 -0
  185. package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  186. package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
  187. package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
  188. package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
  189. package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
  190. package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
  191. package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
  192. package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
  193. package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  194. package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  195. package/lib/module/ProfileManager/Components/ProfileWizard.js +5 -0
  196. package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
  197. package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
  198. package/lib/module/ProfileManager/index.js +2 -0
  199. package/lib/module/ProfileManager/index.js.map +1 -1
  200. package/lib/module/Wallet/api/index.js +4 -1
  201. package/lib/module/Wallet/api/index.js.map +1 -1
  202. package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
  203. package/lib/module/Wallet/components/AddressManager.js.map +1 -1
  204. package/lib/module/Wallet/components/DepositCard.js.map +1 -1
  205. package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
  206. package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
  207. package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
  208. package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
  209. package/lib/module/Wallet/components/MyBalance.js.map +1 -1
  210. package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
  211. package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
  212. package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
  213. package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
  214. package/lib/module/Wallet/index.js.map +1 -1
  215. package/lib/module/index.js +3 -1
  216. package/lib/module/index.js.map +1 -1
  217. package/lib/typescript/src/ApiOverrides/index.d.ts +1 -0
  218. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  219. package/lib/typescript/src/Authenticator/api/index.d.ts +2 -2
  220. package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
  221. package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
  222. package/lib/typescript/src/Checkout/api/index.d.ts +1 -2
  223. package/lib/typescript/src/Checkout/api/index.d.ts.map +1 -1
  224. package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
  225. package/lib/typescript/src/Competition/api/index.d.ts +128 -0
  226. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -0
  227. package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts +19 -0
  228. package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -0
  229. package/lib/typescript/src/Competition/components/CompetitionCard.d.ts +12 -0
  230. package/lib/typescript/src/Competition/components/CompetitionCard.d.ts.map +1 -0
  231. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +16 -0
  232. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -0
  233. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +14 -0
  234. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -0
  235. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +20 -0
  236. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -0
  237. package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts +10 -0
  238. package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts.map +1 -0
  239. package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts +11 -0
  240. package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts.map +1 -0
  241. package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts +14 -0
  242. package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts.map +1 -0
  243. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +16 -0
  244. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -0
  245. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +22 -0
  246. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -0
  247. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +10 -0
  248. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +1 -0
  249. package/lib/typescript/src/Competition/components/MarketsCard.d.ts +15 -0
  250. package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -0
  251. package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts +21 -0
  252. package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts.map +1 -0
  253. package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts +23 -0
  254. package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts.map +1 -0
  255. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +14 -0
  256. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +1 -0
  257. package/lib/typescript/src/Competition/components/TeamEventCard.d.ts +17 -0
  258. package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -0
  259. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +15 -0
  260. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -0
  261. package/lib/typescript/src/Competition/index.d.ts +11 -0
  262. package/lib/typescript/src/Competition/index.d.ts.map +1 -0
  263. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  264. package/lib/typescript/src/Components/Jerseys.d.ts +16 -0
  265. package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -0
  266. package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -1
  267. package/lib/typescript/src/Components/Switch.d.ts +9 -0
  268. package/lib/typescript/src/Components/Switch.d.ts.map +1 -0
  269. package/lib/typescript/src/Components/index.d.ts +3 -1
  270. package/lib/typescript/src/Components/index.d.ts.map +1 -1
  271. package/lib/typescript/src/Poll/api/index.d.ts +61 -0
  272. package/lib/typescript/src/Poll/api/index.d.ts.map +1 -0
  273. package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +14 -0
  274. package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +1 -0
  275. package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts +12 -0
  276. package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -0
  277. package/lib/typescript/src/Poll/components/CampaignResult.d.ts +13 -0
  278. package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -0
  279. package/lib/typescript/src/Poll/components/CampaignSelector.d.ts +9 -0
  280. package/lib/typescript/src/Poll/components/CampaignSelector.d.ts.map +1 -0
  281. package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts +10 -0
  282. package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts.map +1 -0
  283. package/lib/typescript/src/Poll/components/PollCard.d.ts +16 -0
  284. package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -0
  285. package/lib/typescript/src/Poll/components/PollOptionCard.d.ts +14 -0
  286. package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -0
  287. package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +16 -0
  288. package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -0
  289. package/lib/typescript/src/Poll/components/ResponseTimer.d.ts +9 -0
  290. package/lib/typescript/src/Poll/components/ResponseTimer.d.ts.map +1 -0
  291. package/lib/typescript/src/Poll/components/WidgetHeader.d.ts +13 -0
  292. package/lib/typescript/src/Poll/components/WidgetHeader.d.ts.map +1 -0
  293. package/lib/typescript/src/Poll/index.d.ts +7 -0
  294. package/lib/typescript/src/Poll/index.d.ts.map +1 -0
  295. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +1 -1
  296. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  297. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +1 -2
  298. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  299. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +9 -2
  300. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  301. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +1 -1
  302. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  303. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +1 -1
  304. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  305. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +1 -1
  306. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  307. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +1 -1
  308. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  309. package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts +1 -1
  310. package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  311. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
  312. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  313. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +10 -3
  314. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  315. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +2 -2
  316. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  317. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +1 -2
  318. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  319. package/lib/typescript/src/ProfileManager/api/index.d.ts +2 -2
  320. package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
  321. package/lib/typescript/src/ProfileManager/index.d.ts +9 -2
  322. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  323. package/lib/typescript/src/Wallet/api/index.d.ts +2 -3
  324. package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
  325. package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts +1 -2
  326. package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
  327. package/lib/typescript/src/Wallet/components/AddressManager.d.ts +1 -2
  328. package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
  329. package/lib/typescript/src/Wallet/components/DepositCard.d.ts +1 -2
  330. package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
  331. package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts +1 -2
  332. package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
  333. package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts +1 -2
  334. package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  335. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +1 -2
  336. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  337. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +1 -2
  338. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  339. package/lib/typescript/src/Wallet/components/MyBalance.d.ts +1 -2
  340. package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
  341. package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +1 -2
  342. package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  343. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -2
  344. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
  345. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +1 -2
  346. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
  347. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +1 -2
  348. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
  349. package/lib/typescript/src/Wallet/index.d.ts +1 -2
  350. package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
  351. package/lib/typescript/src/index.d.ts +3 -1
  352. package/lib/typescript/src/index.d.ts.map +1 -1
  353. package/package.json +1 -1
  354. package/src/ApiOverrides/index.ts +19 -0
  355. package/src/Authenticator/api/index.ts +2 -2
  356. package/src/Authenticator/api/types.d.ts +1 -25
  357. package/src/Authenticator/index.tsx +2 -1
  358. package/src/Checkout/api/index.tsx +1 -2
  359. package/src/Checkout/index.tsx +1 -2
  360. package/src/Competition/api/index.ts +568 -0
  361. package/src/Competition/components/AthleteMarketCard.tsx +116 -0
  362. package/src/Competition/components/CompetitionCard.tsx +82 -0
  363. package/src/Competition/components/CompetitionInfoCard.tsx +149 -0
  364. package/src/Competition/components/CompetitionLeaderboard.tsx +183 -0
  365. package/src/Competition/components/CompetitionPlay.tsx +936 -0
  366. package/src/Competition/components/CompetitionSeasonCard.tsx +48 -0
  367. package/src/Competition/components/CompetitionSelector.tsx +91 -0
  368. package/src/Competition/components/CompetitionTypeCard.tsx +211 -0
  369. package/src/Competition/components/EnterCompetitionPrompt.tsx +127 -0
  370. package/src/Competition/components/LeaderPicks.tsx +214 -0
  371. package/src/Competition/components/ManageSeasonForm.tsx +271 -0
  372. package/src/Competition/components/MarketsCard.tsx +108 -0
  373. package/src/Competition/components/MatchMarketCard.tsx +126 -0
  374. package/src/Competition/components/NavOutPrompt.tsx +87 -0
  375. package/src/Competition/components/SeasonInfoModal.tsx +212 -0
  376. package/src/Competition/components/TeamEventCard.tsx +136 -0
  377. package/src/Competition/components/WagerPickForm.tsx +114 -0
  378. package/src/Competition/index.tsx +36 -0
  379. package/src/Components/Icons.tsx +0 -2
  380. package/src/Components/Jerseys.tsx +268 -0
  381. package/src/Components/LinearDiagnal.tsx +2 -3
  382. package/src/Components/Switch.tsx +55 -0
  383. package/src/Components/index.tsx +5 -1
  384. package/src/Poll/api/index.ts +178 -0
  385. package/src/Poll/components/CampaignPlay.tsx +407 -0
  386. package/src/Poll/components/CampaignProgressBar.tsx +70 -0
  387. package/src/Poll/components/CampaignResult.tsx +180 -0
  388. package/src/Poll/components/CampaignSelector.tsx +96 -0
  389. package/src/Poll/components/PollCampaignCard.tsx +35 -0
  390. package/src/Poll/components/PollCard.tsx +335 -0
  391. package/src/Poll/components/PollOptionCard.tsx +110 -0
  392. package/src/Poll/components/PollSelectCard.tsx +106 -0
  393. package/src/Poll/components/ResponseTimer.tsx +37 -0
  394. package/src/Poll/components/WidgetHeader.tsx +46 -0
  395. package/src/Poll/index.tsx +25 -0
  396. package/src/ProfileManager/Components/BasicInfoManager.tsx +1 -1
  397. package/src/ProfileManager/Components/BasicStatus.tsx +1 -2
  398. package/src/ProfileManager/Components/CodeRedeem.tsx +10 -3
  399. package/src/ProfileManager/Components/DOBManager.tsx +1 -1
  400. package/src/ProfileManager/Components/EmailManager.tsx +1 -1
  401. package/src/ProfileManager/Components/PasswordManager.tsx +2 -1
  402. package/src/ProfileManager/Components/PhoneManager.tsx +1 -1
  403. package/src/ProfileManager/Components/ProfilePicManager.tsx +1 -1
  404. package/src/ProfileManager/Components/ProfileWelcome.tsx +1 -2
  405. package/src/ProfileManager/Components/ProfileWizard.tsx +14 -3
  406. package/src/ProfileManager/Components/SettingsManager.tsx +2 -2
  407. package/src/ProfileManager/Components/VouchCard.tsx +1 -2
  408. package/src/ProfileManager/api/index.ts +2 -2
  409. package/src/ProfileManager/api/types.d.ts +0 -35
  410. package/src/ProfileManager/index.tsx +11 -3
  411. package/src/Wallet/api/index.ts +6 -4
  412. package/src/Wallet/components/ACHAddCard.tsx +1 -2
  413. package/src/Wallet/components/AddressManager.tsx +1 -2
  414. package/src/Wallet/components/DepositCard.tsx +1 -2
  415. package/src/Wallet/components/FundAccountCard.tsx +1 -2
  416. package/src/Wallet/components/ManageAccountCard.tsx +1 -2
  417. package/src/Wallet/components/ManualACHAdd.tsx +1 -2
  418. package/src/Wallet/components/ManualCardAdd.tsx +1 -2
  419. package/src/Wallet/components/MyBalance.tsx +1 -2
  420. package/src/Wallet/components/WalletActionSelector.tsx +1 -2
  421. package/src/Wallet/components/WalletSettings.tsx +1 -2
  422. package/src/Wallet/components/WalletSetup.tsx +1 -2
  423. package/src/Wallet/components/WithdrawCard.tsx +1 -2
  424. package/src/Wallet/index.tsx +1 -2
  425. package/src/index.tsx +5 -2
  426. package/src/types.d.ts +483 -0
@@ -0,0 +1,257 @@
1
+ import React from 'react';
2
+ import { Image, TouchableOpacity, View } from "react-native";
3
+ import moment from 'moment-mini';
4
+ import { Button, Icons, Text } from '../../Components';
5
+ import { CompetitionApi, CompetitionHelpers } from '../api';
6
+ import Colors from '../../constants/colors';
7
+ import { BELinkApi } from '../../Observer';
8
+ const CompetitionInfoCard = ({
9
+ player,
10
+ competition,
11
+ competition_type,
12
+ onViewEvents,
13
+ onEnter,
14
+ onLeave,
15
+ can_leave,
16
+ onViewRules
17
+ }) => {
18
+ const handleShare = async () => {
19
+ let redirect_url = `https://app.bettoredge.com/competition/play/${competition.competition_id}`;
20
+ if (player) {
21
+ const {
22
+ player_referral
23
+ } = await CompetitionApi.getMyReferralCode();
24
+ redirect_url += `?refer=${player_referral.referral_code}`;
25
+ }
26
+ const {
27
+ url
28
+ } = await BELinkApi.generateShortLink({
29
+ generator: 'player',
30
+ link_type: 'user_generated_link',
31
+ link_sub_type: 'competition_link',
32
+ type_id: competition.competition_id,
33
+ status: 'active',
34
+ redirect_url
35
+ });
36
+ BELinkApi.share(competition.competition_name, undefined, url);
37
+ };
38
+ const can_enter = moment().isBefore(moment(competition.scheduled_datetime));
39
+ const cl = competition.market_type == 'FOR_MONEY' ? '$' : 'E';
40
+ let potential_winnings = competition.ticket_revenue;
41
+ if (competition.promo_payout) {
42
+ potential_winnings += competition.promo_payout;
43
+ }
44
+ if (competition.guaranteed_payout) {
45
+ if (potential_winnings < competition.guaranteed_payout) {
46
+ potential_winnings = competition.guaranteed_payout;
47
+ }
48
+ }
49
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
50
+ nativeID: "competition_info"
51
+ }, /*#__PURE__*/React.createElement(View, {
52
+ style: {
53
+ padding: 10
54
+ }
55
+ }, /*#__PURE__*/React.createElement(Text, {
56
+ size: 16,
57
+ color: Colors.shades.white,
58
+ weight: "bold",
59
+ textAlign: "center"
60
+ }, competition.competition_name), competition_type ? /*#__PURE__*/React.createElement(View, {
61
+ style: {
62
+ flexDirection: 'row',
63
+ justifyContent: 'center',
64
+ padding: 10
65
+ }
66
+ }, /*#__PURE__*/React.createElement(View, {
67
+ style: {
68
+ padding: 10,
69
+ marginRight: 4,
70
+ justifyContent: 'center',
71
+ backgroundColor: CompetitionHelpers.getCompTypeColor(competition_type),
72
+ borderRadius: 4
73
+ }
74
+ }, /*#__PURE__*/React.createElement(Text, {
75
+ size: 12,
76
+ color: Colors.shades.white,
77
+ weight: "semibold"
78
+ }, competition_type.type_label)), /*#__PURE__*/React.createElement(View, {
79
+ style: {
80
+ flexDirection: 'row',
81
+ alignItems: 'center',
82
+ padding: 10,
83
+ marginLeft: 4,
84
+ backgroundColor: Colors.shades.white,
85
+ borderRadius: 4
86
+ }
87
+ }, /*#__PURE__*/React.createElement(Text, {
88
+ style: {
89
+ marginRight: 5
90
+ },
91
+ size: 12,
92
+ color: Colors.brand.midnight,
93
+ weight: "semibold"
94
+ }, competition.invite_only ? 'Private' : 'Public'), competition.invite_only ? /*#__PURE__*/React.createElement(Icons.EyeOffIcon, {
95
+ color: Colors.brand.midnight,
96
+ size: 14
97
+ }) : /*#__PURE__*/React.createElement(Icons.EyeOnIcon, {
98
+ color: Colors.brand.midnight,
99
+ size: 14
100
+ })), /*#__PURE__*/React.createElement(TouchableOpacity, {
101
+ style: {
102
+ flexDirection: 'row',
103
+ alignItems: 'center',
104
+ padding: 10,
105
+ marginLeft: 8,
106
+ backgroundColor: Colors.incentive.gold,
107
+ borderRadius: 4
108
+ },
109
+ onPress: () => onViewRules ? onViewRules() : console.log('')
110
+ }, competition.prize_image ? /*#__PURE__*/React.createElement(Image, {
111
+ source: {
112
+ uri: competition.prize_image.url
113
+ },
114
+ style: {
115
+ height: 20,
116
+ width: 20,
117
+ marginRight: 10
118
+ },
119
+ resizeMode: "center"
120
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(Text, {
121
+ size: 12,
122
+ color: Colors.shades.white,
123
+ weight: "semibold"
124
+ }, "VIEW RULES"))) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
125
+ style: {
126
+ flexDirection: 'row',
127
+ padding: 10,
128
+ justifyContent: 'center'
129
+ }
130
+ }, /*#__PURE__*/React.createElement(View, {
131
+ style: {
132
+ padding: 10,
133
+ borderRightWidth: 1,
134
+ borderColor: Colors.shades.shade600
135
+ }
136
+ }, /*#__PURE__*/React.createElement(Text, {
137
+ color: Colors.shades.white,
138
+ size: 16,
139
+ weight: "bold",
140
+ textAlign: "center"
141
+ }, cl, potential_winnings.toFixed(2)), /*#__PURE__*/React.createElement(Text, {
142
+ style: {
143
+ marginTop: 3
144
+ },
145
+ color: Colors.shades.white,
146
+ size: 12,
147
+ textAlign: "center"
148
+ }, "POT")), /*#__PURE__*/React.createElement(View, {
149
+ style: {
150
+ padding: 10,
151
+ borderRightWidth: 1,
152
+ borderColor: Colors.shades.shade600
153
+ }
154
+ }, /*#__PURE__*/React.createElement(Text, {
155
+ color: Colors.shades.white,
156
+ size: 16,
157
+ weight: "bold",
158
+ textAlign: "center"
159
+ }, competition.tickets_sold, " / ", competition.available_tickets), /*#__PURE__*/React.createElement(Text, {
160
+ style: {
161
+ marginTop: 3
162
+ },
163
+ color: Colors.shades.white,
164
+ size: 12,
165
+ textAlign: "center"
166
+ }, "ENTRIES")), competition_type?.type == 'pick' ? /*#__PURE__*/React.createElement(View, {
167
+ style: {
168
+ padding: 10
169
+ }
170
+ }, /*#__PURE__*/React.createElement(Text, {
171
+ color: Colors.shades.white,
172
+ size: 16,
173
+ weight: "bold",
174
+ textAlign: "center"
175
+ }, competition.max_pick_count), /*#__PURE__*/React.createElement(Text, {
176
+ style: {
177
+ marginTop: 3
178
+ },
179
+ color: Colors.shades.white,
180
+ size: 12,
181
+ textAlign: "center"
182
+ }, "PICKS")) : competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(View, {
183
+ style: {
184
+ padding: 10
185
+ }
186
+ }, /*#__PURE__*/React.createElement(Text, {
187
+ color: Colors.shades.white,
188
+ size: 16,
189
+ weight: "bold",
190
+ textAlign: "center"
191
+ }, competition.initial_balance), /*#__PURE__*/React.createElement(Text, {
192
+ style: {
193
+ marginTop: 3
194
+ },
195
+ color: Colors.shades.white,
196
+ size: 12,
197
+ textAlign: "center"
198
+ }, "INIT. BALANCE")) : /*#__PURE__*/React.createElement(React.Fragment, null)))), /*#__PURE__*/React.createElement(View, {
199
+ nativeID: "competition_actions",
200
+ style: {
201
+ flexDirection: 'row',
202
+ padding: 10
203
+ }
204
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
205
+ style: {
206
+ padding: 10,
207
+ borderRadius: 22,
208
+ borderWidth: 1,
209
+ borderColor: Colors.shades.white,
210
+ marginRight: 10,
211
+ justifyContent: 'center',
212
+ alignItems: 'center'
213
+ },
214
+ onPress: () => handleShare()
215
+ }, /*#__PURE__*/React.createElement(Icons.ShareIcon, {
216
+ size: 14,
217
+ color: Colors.shades.white
218
+ })), /*#__PURE__*/React.createElement(Button, {
219
+ title: competition.entered ? can_leave ? 'Leave' : 'My Picks' : 'Preview Events',
220
+ padding: 10,
221
+ style: {
222
+ flex: 1,
223
+ marginRight: 3
224
+ },
225
+ title_color: can_leave ? Colors.utility.error : Colors.shades.white,
226
+ onPress: () => {
227
+ if (can_leave && onLeave) {
228
+ return onLeave();
229
+ }
230
+ return onViewEvents();
231
+ },
232
+ borderRadius: 22,
233
+ borderWidth: 1,
234
+ backgroundColor: "transparent",
235
+ borderColor: can_leave ? Colors.utility.error : Colors.shades.white
236
+ }), /*#__PURE__*/React.createElement(Button, {
237
+ title: competition.entered || !can_enter ? 'In Progress' : 'Enter Competition',
238
+ padding: 10,
239
+ disabled: competition.entered || !can_enter,
240
+ style: {
241
+ flex: 1,
242
+ marginLeft: 3
243
+ },
244
+ title_color: Colors.shades.white,
245
+ onPress: () => {
246
+ if (competition.entered) {
247
+ return;
248
+ }
249
+ return onEnter(competition.competition_id);
250
+ },
251
+ borderRadius: 22,
252
+ backgroundColor: competition.entered ? Colors.accents.accent100 : Colors.utility.success,
253
+ borderWidth: 1
254
+ })));
255
+ };
256
+ export default CompetitionInfoCard;
257
+ //# sourceMappingURL=CompetitionInfoCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Image","TouchableOpacity","View","moment","Button","Icons","Text","CompetitionApi","CompetitionHelpers","Colors","BELinkApi","CompetitionInfoCard","player","competition","competition_type","onViewEvents","onEnter","onLeave","can_leave","onViewRules","handleShare","redirect_url","competition_id","player_referral","getMyReferralCode","referral_code","url","generateShortLink","generator","link_type","link_sub_type","type_id","status","share","competition_name","undefined","can_enter","isBefore","scheduled_datetime","cl","market_type","potential_winnings","ticket_revenue","promo_payout","guaranteed_payout","createElement","nativeID","style","padding","size","color","shades","white","weight","textAlign","flexDirection","justifyContent","marginRight","backgroundColor","getCompTypeColor","borderRadius","type_label","alignItems","marginLeft","brand","midnight","invite_only","EyeOffIcon","EyeOnIcon","incentive","gold","onPress","console","log","prize_image","source","uri","height","width","resizeMode","Fragment","borderRightWidth","borderColor","shade600","toFixed","marginTop","tickets_sold","available_tickets","type","max_pick_count","initial_balance","borderWidth","ShareIcon","title","entered","flex","title_color","utility","error","disabled","accents","accent100","success"],"sourceRoot":"../../../../src","sources":["Competition/components/CompetitionInfoCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAE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AU,EAAC;IAAE,CAAE;IAChCiC,WAAW,EAAEvF,MAAM,CAAC0C,MAAM,CAACC,KAAM;IACjCmB,OAAO,EAAEA,CAAA,KAAM;MACX,IAAG1D,WAAW,CAACiF,OAAO,EAAC;QAAE;MAAO;MAChC,OAAO9E,OAAO,CAACH,WAAW,CAACS,cAAc,CAAC;IAC9C,CAAE;IACFsC,YAAY,EAAE,EAAG;IACjBF,eAAe,EAAG7C,WAAW,CAACiF,OAAO,GAAGrF,MAAM,CAAC2F,OAAO,CAACC,SAAS,GAAG5F,MAAM,CAACwF,OAAO,CAACK,OAAQ;IAC1FX,WAAW,EAAE;EAAE,CAClB,CACC,CACJ,CAAC;AAEf,CAAC;AAED,eAAehF,mBAAmB","ignoreList":[]}
@@ -0,0 +1,272 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { FlatList, Image, ScrollView, TouchableOpacity, View, ActivityIndicator } from "react-native";
3
+ import { CompetitionApi, CompetitionResultApi } from "../api";
4
+ import { Button, Icons, Text } from "../../Components";
5
+ import Colors from "../../constants/colors";
6
+ const CompetitionLeaderboard = ({
7
+ competition,
8
+ competition_type,
9
+ height,
10
+ viewer_id,
11
+ view_mode,
12
+ onSeeFull,
13
+ onLeaderSelect
14
+ }) => {
15
+ const [data, setData] = useState({
16
+ loading: false,
17
+ competition_results: [],
18
+ competition_records: [],
19
+ players: [],
20
+ offset: 0
21
+ });
22
+ const {
23
+ loading,
24
+ competition_results,
25
+ competition_records,
26
+ players
27
+ } = data;
28
+ let results = [...competition_results];
29
+ if (view_mode == 'short') {
30
+ results = results.filter((r, i) => r ? i < 3 : i < 3);
31
+ }
32
+ let viewer = players.find(p => p.player_id == viewer_id);
33
+ let viewer_result = competition_results.find(r => r.player_id == viewer_id);
34
+ let viewer_record = competition_records.find(r => r.player_id == viewer_id);
35
+ const cl = competition?.market_type == 'FOR_MONEY' ? '$' : 'E';
36
+ useEffect(() => {
37
+ if (!competition) {
38
+ return;
39
+ }
40
+ getLeaderboardFromServer(competition.competition_id, 0);
41
+ }, [competition]);
42
+ const getLeaderboardFromServer = async (competition_id, offset) => {
43
+ setData({
44
+ ...data,
45
+ loading: true
46
+ });
47
+ const result_response = await CompetitionResultApi.getResultsByCompetition(competition_id, offset);
48
+ let player_ids = result_response.competition_results.map(cr => cr.player_id);
49
+ let players = [];
50
+ if (player_ids.length > 0) {
51
+ players = await CompetitionApi.getPlayersByPlayerIds(player_ids);
52
+ }
53
+ setData({
54
+ ...data,
55
+ players,
56
+ competition_records: result_response.competition_records,
57
+ competition_results: result_response.competition_results,
58
+ offset
59
+ });
60
+ };
61
+ const renderResults = data => {
62
+ let player = players.find(p => p.player_id == data.item.player_id);
63
+ let record = competition_records.find(r => r.player_id == data.item.player_id);
64
+ if (!player || !record) {
65
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
66
+ }
67
+ //let roi = 0
68
+ //if(record.completed_stakes > 0){
69
+ // roi = record.earnings / record.completed_stakes
70
+ //}
71
+ const is_pacer = competition.pacer_id == data.item.player_id ? true : false;
72
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
73
+ onPress: () => onLeaderSelect(player),
74
+ style: {
75
+ flexDirection: 'row',
76
+ margin: 5,
77
+ alignItems: 'center',
78
+ borderRadius: 22,
79
+ backgroundColor: is_pacer ? Colors.highlights.highlight400Faded : Colors.shades.white,
80
+ padding: 8,
81
+ paddingLeft: 15,
82
+ paddingRight: 15
83
+ }
84
+ }, is_pacer ? /*#__PURE__*/React.createElement(View, {
85
+ nativeID: "pacer",
86
+ style: {}
87
+ }, /*#__PURE__*/React.createElement(Icons.PacerCarIcon, {
88
+ size: 28
89
+ })) : /*#__PURE__*/React.createElement(View, {
90
+ nativeID: "place",
91
+ style: {
92
+ padding: 5
93
+ }
94
+ }, /*#__PURE__*/React.createElement(Text, {
95
+ size: 12,
96
+ color: Colors.brand.midnight,
97
+ weight: "bold"
98
+ }, data.item.place)), /*#__PURE__*/React.createElement(View, {
99
+ nativeID: "image",
100
+ style: {
101
+ paddingLeft: 10,
102
+ paddingRight: 10
103
+ }
104
+ }, /*#__PURE__*/React.createElement(Image, {
105
+ source: {
106
+ uri: player.profile_pic
107
+ },
108
+ style: {
109
+ height: 30,
110
+ width: 30,
111
+ borderRadius: 100
112
+ },
113
+ resizeMode: "cover"
114
+ })), /*#__PURE__*/React.createElement(View, {
115
+ nativeID: "details",
116
+ style: {
117
+ flex: 1
118
+ }
119
+ }, /*#__PURE__*/React.createElement(Text, {
120
+ size: 12,
121
+ color: Colors.brand.midnight,
122
+ weight: "semibold"
123
+ }, player.username), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(Text, {
124
+ style: {
125
+ marginTop: 3
126
+ },
127
+ size: 12,
128
+ color: Colors.brand.midnight,
129
+ weight: "regular"
130
+ }, record.earnings.toFixed(2), " Earned (", record.remaining_stakes.toFixed(2), " at risk)") : /*#__PURE__*/React.createElement(Text, {
131
+ style: {
132
+ marginTop: 3
133
+ },
134
+ size: 12,
135
+ color: Colors.brand.midnight,
136
+ weight: "regular"
137
+ }, record.wins, " - ", record.losses, " - ", record.draws, " (", record.remaining_picks, " Remaining)")), /*#__PURE__*/React.createElement(View, {
138
+ nativeID: "winnings"
139
+ }, /*#__PURE__*/React.createElement(Text, {
140
+ size: 12,
141
+ color: Colors.brand.slate,
142
+ weight: "regular"
143
+ }, cl, data.item.winnings.toFixed(2))));
144
+ };
145
+ return /*#__PURE__*/React.createElement(View, {
146
+ style: {
147
+ flex: 1,
148
+ height,
149
+ backgroundColor: Colors.shades.shade100
150
+ }
151
+ }, view_mode == 'full' && viewer_record && viewer_result && viewer ? /*#__PURE__*/React.createElement(View, null, competition ? /*#__PURE__*/React.createElement(Text, {
152
+ style: {
153
+ padding: 20
154
+ },
155
+ size: 18,
156
+ color: Colors.brand.midnight,
157
+ weight: "bold",
158
+ textAlign: "center"
159
+ }, competition.competition_name) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
160
+ style: {
161
+ backgroundColor: Colors.brand.midnight,
162
+ padding: 10,
163
+ marginBottom: 10
164
+ }
165
+ }, /*#__PURE__*/React.createElement(Text, {
166
+ size: 18,
167
+ color: Colors.shades.white,
168
+ weight: "bold",
169
+ textAlign: "center"
170
+ }, "Your Position"), /*#__PURE__*/React.createElement(TouchableOpacity, {
171
+ style: {
172
+ flexDirection: 'row',
173
+ marginTop: 15,
174
+ marginBottom: 10,
175
+ alignItems: 'center',
176
+ borderRadius: 22,
177
+ backgroundColor: Colors.shades.white,
178
+ padding: 8,
179
+ paddingLeft: 15,
180
+ paddingRight: 15
181
+ }
182
+ }, /*#__PURE__*/React.createElement(View, {
183
+ nativeID: "place",
184
+ style: {
185
+ padding: 5
186
+ }
187
+ }, /*#__PURE__*/React.createElement(Text, {
188
+ size: 12,
189
+ color: Colors.brand.midnight,
190
+ weight: "bold"
191
+ }, viewer_result.place)), /*#__PURE__*/React.createElement(View, {
192
+ nativeID: "image",
193
+ style: {
194
+ paddingLeft: 10,
195
+ paddingRight: 10
196
+ }
197
+ }, /*#__PURE__*/React.createElement(Image, {
198
+ source: {
199
+ uri: viewer.profile_pic
200
+ },
201
+ style: {
202
+ height: 30,
203
+ width: 30,
204
+ borderRadius: 100
205
+ },
206
+ resizeMode: "cover"
207
+ })), /*#__PURE__*/React.createElement(View, {
208
+ nativeID: "details",
209
+ style: {
210
+ flex: 1
211
+ }
212
+ }, /*#__PURE__*/React.createElement(Text, {
213
+ size: 12,
214
+ color: Colors.brand.midnight,
215
+ weight: "semibold"
216
+ }, viewer.username), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(Text, {
217
+ style: {
218
+ marginTop: 3
219
+ },
220
+ size: 12,
221
+ color: Colors.brand.midnight,
222
+ weight: "regular"
223
+ }, viewer_record.earnings.toFixed(2), " Earned (", viewer_record.remaining_stakes.toFixed(2), " at risk)") : /*#__PURE__*/React.createElement(Text, {
224
+ style: {
225
+ marginTop: 3
226
+ },
227
+ size: 12,
228
+ color: Colors.brand.midnight,
229
+ weight: "regular"
230
+ }, viewer_record.wins, " - ", viewer_record.losses, " - ", viewer_record.draws, " (", viewer_record.remaining_picks, " Remaining)")), /*#__PURE__*/React.createElement(View, {
231
+ nativeID: "winnings"
232
+ }, /*#__PURE__*/React.createElement(Text, {
233
+ size: 12,
234
+ color: Colors.brand.slate,
235
+ weight: "regular"
236
+ }, cl, viewer_result.winnings.toFixed(2)))))) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(ScrollView, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
237
+ style: {
238
+ alignSelf: 'center',
239
+ padding: 10
240
+ },
241
+ size: "large",
242
+ color: Colors.brand.midnight
243
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(FlatList, {
244
+ data: results,
245
+ renderItem: renderResults,
246
+ keyExtractor: (item, index) => item.competition_result_id ? item.competition_result_id.toString() : index.toString()
247
+ })), view_mode == 'short' ? /*#__PURE__*/React.createElement(Button, {
248
+ style: {
249
+ backgroundColor: undefined
250
+ },
251
+ title: "See Full Leaderboard",
252
+ title_color: Colors.brand.electric,
253
+ title_size: 14,
254
+ title_weight: "regular",
255
+ onPress: () => onSeeFull()
256
+ }) : /*#__PURE__*/React.createElement(Button, {
257
+ style: {
258
+ margin: 10
259
+ },
260
+ title: "Close",
261
+ title_color: Colors.brand.electric,
262
+ borderWidth: 1,
263
+ borderRadius: 22,
264
+ padding: 15,
265
+ borderColor: Colors.brand.electric,
266
+ title_size: 14,
267
+ title_weight: "regular",
268
+ onPress: () => onSeeFull()
269
+ }));
270
+ };
271
+ export default CompetitionLeaderboard;
272
+ //# sourceMappingURL=CompetitionLeaderboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","FlatList","Image","ScrollView","TouchableOpacity","View","ActivityIndicator","CompetitionApi","CompetitionResultApi","Button","Icons","Text","Colors","CompetitionLeaderboard","competition","competition_type","height","viewer_id","view_mode","onSeeFull","onLeaderSelect","data","setData","loading","competition_results","competition_records","players","offset","results","filter","r","i","viewer","find","p","player_id","viewer_result","viewer_record","cl","market_type","getLeaderboardFromServer","competition_id","result_response","getResultsByCompetition","player_ids","map","cr","length","getPlayersByPlayerIds","renderResults","player","item","record","createElement","Fragment","is_pacer","pacer_id","onPress","style","flexDirection","margin","alignItems","borderRadius","backgroundColor","highlights","highlight400Faded","shades","white","padding","paddingLeft","paddingRight","nativeID","PacerCarIcon","size","color","brand","midnight","weight","place","source","uri","profile_pic","width","resizeMode","flex","username","type","marginTop","earnings","toFixed","remaining_stakes","wins","losses","draws","remaining_picks","slate","winnings","shade100","textAlign","competition_name","marginBottom","alignSelf","renderItem","keyExtractor","index","competition_result_id","toString","undefined","title","title_color","electric","title_size","title_weight","borderWidth","borderColor"],"sourceRoot":"../../../../src","sources":["Competition/components/CompetitionLeaderboard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,QAAQ,EAAEC,KAAK,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,iBAAiB,QAAQ,cAAc;AAErG,SAASC,cAAc,EAAEC,oBAAoB,QAAQ,QAAQ;AAC7D,SAASC,MAAM,EAAEC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AACtD,OAAOC,MAAM,MAAM,wBAAwB;AAY3C,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC,WAAW;EAAEC,gBAAgB;EAAEC,MAAM;EAAEC,SAAS;EAAEC,SAAS;EAAEC,SAAS;EAAEC;AAA2C,CAAC,KAAK;EAEvJ,MAAM,CAAEC,IAAI,EAAEC,OAAO,CAAE,GAAGtB,QAAQ,CAM/B;IACCuB,OAAO,EAAC,KAAK;IACbC,mBAAmB,EAAC,EAAE;IACtBC,mBAAmB,EAAC,EAAE;IACtBC,OAAO,EAAC,EAAE;IACVC,MAAM,EAAC;EACX,CAAC,CAAC;EAEF,MAAM;IAAEJ,OAAO;IAAE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