be-components 7.4.8 → 7.5.1

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 (575) hide show
  1. package/lib/commonjs/ApiOverrides/index.js +4 -0
  2. package/lib/commonjs/ApiOverrides/index.js.map +1 -1
  3. package/lib/commonjs/BetRouter/api/index.js +884 -0
  4. package/lib/commonjs/BetRouter/api/index.js.map +1 -0
  5. package/lib/commonjs/BetRouter/api/types.js +2 -0
  6. package/lib/commonjs/BetRouter/api/types.js.map +1 -0
  7. package/lib/commonjs/BetRouter/components/AccountManager.js +592 -0
  8. package/lib/commonjs/BetRouter/components/AccountManager.js.map +1 -0
  9. package/lib/commonjs/BetRouter/components/AdminPortal.js +51 -0
  10. package/lib/commonjs/BetRouter/components/AdminPortal.js.map +1 -0
  11. package/lib/commonjs/BetRouter/components/BuyOpportunities.js +550 -0
  12. package/lib/commonjs/BetRouter/components/BuyOpportunities.js.map +1 -0
  13. package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js +320 -0
  14. package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js.map +1 -0
  15. package/lib/commonjs/BetRouter/components/ContestLiquidity.js +666 -0
  16. package/lib/commonjs/BetRouter/components/ContestLiquidity.js.map +1 -0
  17. package/lib/commonjs/BetRouter/components/ContestSelector.js +193 -0
  18. package/lib/commonjs/BetRouter/components/ContestSelector.js.map +1 -0
  19. package/lib/commonjs/BetRouter/components/MyOpportunities.js +332 -0
  20. package/lib/commonjs/BetRouter/components/MyOpportunities.js.map +1 -0
  21. package/lib/commonjs/BetRouter/components/MyOpportunities.tsx.bak +440 -0
  22. package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js +545 -0
  23. package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js.map +1 -0
  24. package/lib/commonjs/BetRouter/components/OpportunityHistory.js +489 -0
  25. package/lib/commonjs/BetRouter/components/OpportunityHistory.js.map +1 -0
  26. package/lib/commonjs/BetRouter/components/PartnerCredentials.js +229 -0
  27. package/lib/commonjs/BetRouter/components/PartnerCredentials.js.map +1 -0
  28. package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js +262 -0
  29. package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
  30. package/lib/commonjs/BetRouter/components/admin/AutoFillView.js +380 -0
  31. package/lib/commonjs/BetRouter/components/admin/AutoFillView.js.map +1 -0
  32. package/lib/commonjs/BetRouter/components/admin/ConfigManager.js +814 -0
  33. package/lib/commonjs/BetRouter/components/admin/ConfigManager.js.map +1 -0
  34. package/lib/commonjs/BetRouter/components/admin/JobManager.js +895 -0
  35. package/lib/commonjs/BetRouter/components/admin/JobManager.js.map +1 -0
  36. package/lib/commonjs/BetRouter/components/admin/LeagueContests.js +2844 -0
  37. package/lib/commonjs/BetRouter/components/admin/LeagueContests.js.map +1 -0
  38. package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js +378 -0
  39. package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js.map +1 -0
  40. package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js +795 -0
  41. package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
  42. package/lib/commonjs/BetRouter/index.js +411 -0
  43. package/lib/commonjs/BetRouter/index.js.map +1 -0
  44. package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js +312 -0
  45. package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
  46. package/lib/commonjs/BetRouter/layouts/DesktopLayout.js +271 -0
  47. package/lib/commonjs/BetRouter/layouts/DesktopLayout.js.map +1 -0
  48. package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js +435 -0
  49. package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
  50. package/lib/commonjs/BetRouter/layouts/MobileLayout.js +293 -0
  51. package/lib/commonjs/BetRouter/layouts/MobileLayout.js.map +1 -0
  52. package/lib/commonjs/BetRouter/types/ADMIN_PORTAL.md +863 -0
  53. package/lib/commonjs/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
  54. package/lib/commonjs/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
  55. package/lib/commonjs/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
  56. package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
  57. package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
  58. package/lib/commonjs/BetRouter/types/README.md +249 -0
  59. package/lib/commonjs/BetRouter/types/accounts.js +2 -0
  60. package/lib/commonjs/BetRouter/types/accounts.js.map +1 -0
  61. package/lib/commonjs/BetRouter/types/api-contracts.js +776 -0
  62. package/lib/commonjs/BetRouter/types/api-contracts.js.map +1 -0
  63. package/lib/commonjs/BetRouter/types/config.js +2 -0
  64. package/lib/commonjs/BetRouter/types/config.js.map +1 -0
  65. package/lib/commonjs/BetRouter/types/contests.js +2 -0
  66. package/lib/commonjs/BetRouter/types/contests.js.map +1 -0
  67. package/lib/commonjs/BetRouter/types/credentials.js +90 -0
  68. package/lib/commonjs/BetRouter/types/credentials.js.map +1 -0
  69. package/lib/commonjs/BetRouter/types/index.js +149 -0
  70. package/lib/commonjs/BetRouter/types/index.js.map +1 -0
  71. package/lib/commonjs/BetRouter/types/jobs.js +2 -0
  72. package/lib/commonjs/BetRouter/types/jobs.js.map +1 -0
  73. package/lib/commonjs/BetRouter/types/leagues.js +2 -0
  74. package/lib/commonjs/BetRouter/types/leagues.js.map +1 -0
  75. package/lib/commonjs/BetRouter/types/liquidity.js +2 -0
  76. package/lib/commonjs/BetRouter/types/liquidity.js.map +1 -0
  77. package/lib/commonjs/BetRouter/types/markets.js +2 -0
  78. package/lib/commonjs/BetRouter/types/markets.js.map +1 -0
  79. package/lib/commonjs/BetRouter/types/opportunities.js +6 -0
  80. package/lib/commonjs/BetRouter/types/opportunities.js.map +1 -0
  81. package/lib/commonjs/BetRouter/types/orders.js +2 -0
  82. package/lib/commonjs/BetRouter/types/orders.js.map +1 -0
  83. package/lib/commonjs/BetRouter/types/participants.js +2 -0
  84. package/lib/commonjs/BetRouter/types/participants.js.map +1 -0
  85. package/lib/commonjs/BetRouter/types/partners.js +2 -0
  86. package/lib/commonjs/BetRouter/types/partners.js.map +1 -0
  87. package/lib/commonjs/Charts/README.md +310 -0
  88. package/lib/commonjs/Charts/adapters/TradeChartAdapter.js +406 -0
  89. package/lib/commonjs/Charts/adapters/TradeChartAdapter.js.map +1 -0
  90. package/lib/commonjs/Charts/components/BaseLineChart.js +285 -0
  91. package/lib/commonjs/Charts/components/BaseLineChart.js.map +1 -0
  92. package/lib/commonjs/Charts/components/LivePriceChart.js +504 -0
  93. package/lib/commonjs/Charts/components/LivePriceChart.js.map +1 -0
  94. package/lib/commonjs/Charts/index.js +126 -0
  95. package/lib/commonjs/Charts/index.js.map +1 -0
  96. package/lib/commonjs/Charts/themes/chartTheme.js +141 -0
  97. package/lib/commonjs/Charts/themes/chartTheme.js.map +1 -0
  98. package/lib/commonjs/Charts/types.js +2 -0
  99. package/lib/commonjs/Charts/types.js.map +1 -0
  100. package/lib/commonjs/Charts/utils/formatters.js +194 -0
  101. package/lib/commonjs/Charts/utils/formatters.js.map +1 -0
  102. package/lib/commonjs/Components/Dropdown.js +5 -3
  103. package/lib/commonjs/Components/Dropdown.js.map +1 -1
  104. package/lib/commonjs/Components/Icons.js +24 -0
  105. package/lib/commonjs/Components/Icons.js.map +1 -1
  106. package/lib/commonjs/Components/index.js +34 -0
  107. package/lib/commonjs/Components/index.js.map +1 -1
  108. package/lib/commonjs/index.js +28 -0
  109. package/lib/commonjs/index.js.map +1 -1
  110. package/lib/commonjs/types.d.js +16 -0
  111. package/lib/commonjs/types.d.js.map +1 -1
  112. package/lib/module/ApiOverrides/index.js +4 -0
  113. package/lib/module/ApiOverrides/index.js.map +1 -1
  114. package/lib/module/BetRouter/api/index.js +873 -0
  115. package/lib/module/BetRouter/api/index.js.map +1 -0
  116. package/lib/module/BetRouter/api/types.js +2 -0
  117. package/lib/module/BetRouter/api/types.js.map +1 -0
  118. package/lib/module/BetRouter/components/AccountManager.js +584 -0
  119. package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
  120. package/lib/module/BetRouter/components/AdminPortal.js +43 -0
  121. package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
  122. package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
  123. package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
  124. package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
  125. package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
  126. package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
  127. package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
  128. package/lib/module/BetRouter/components/ContestSelector.js +185 -0
  129. package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
  130. package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
  131. package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
  132. package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
  133. package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
  134. package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
  135. package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
  136. package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
  137. package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
  138. package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
  139. package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
  140. package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
  141. package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
  142. package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
  143. package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
  144. package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
  145. package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
  146. package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
  147. package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
  148. package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
  149. package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
  150. package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
  151. package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
  152. package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
  153. package/lib/module/BetRouter/index.js +399 -0
  154. package/lib/module/BetRouter/index.js.map +1 -0
  155. package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
  156. package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
  157. package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
  158. package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
  159. package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
  160. package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
  161. package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
  162. package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
  163. package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
  164. package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
  165. package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
  166. package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
  167. package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
  168. package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
  169. package/lib/module/BetRouter/types/README.md +249 -0
  170. package/lib/module/BetRouter/types/accounts.js +2 -0
  171. package/lib/module/BetRouter/types/accounts.js.map +1 -0
  172. package/lib/module/BetRouter/types/api-contracts.js +770 -0
  173. package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
  174. package/lib/module/BetRouter/types/config.js +2 -0
  175. package/lib/module/BetRouter/types/config.js.map +1 -0
  176. package/lib/module/BetRouter/types/contests.js +2 -0
  177. package/lib/module/BetRouter/types/contests.js.map +1 -0
  178. package/lib/module/BetRouter/types/credentials.js +78 -0
  179. package/lib/module/BetRouter/types/credentials.js.map +1 -0
  180. package/lib/module/BetRouter/types/index.js +17 -0
  181. package/lib/module/BetRouter/types/index.js.map +1 -0
  182. package/lib/module/BetRouter/types/jobs.js +2 -0
  183. package/lib/module/BetRouter/types/jobs.js.map +1 -0
  184. package/lib/module/BetRouter/types/leagues.js +2 -0
  185. package/lib/module/BetRouter/types/leagues.js.map +1 -0
  186. package/lib/module/BetRouter/types/liquidity.js +2 -0
  187. package/lib/module/BetRouter/types/liquidity.js.map +1 -0
  188. package/lib/module/BetRouter/types/markets.js +2 -0
  189. package/lib/module/BetRouter/types/markets.js.map +1 -0
  190. package/lib/module/BetRouter/types/opportunities.js +2 -0
  191. package/lib/module/BetRouter/types/opportunities.js.map +1 -0
  192. package/lib/module/BetRouter/types/orders.js +2 -0
  193. package/lib/module/BetRouter/types/orders.js.map +1 -0
  194. package/lib/module/BetRouter/types/participants.js +2 -0
  195. package/lib/module/BetRouter/types/participants.js.map +1 -0
  196. package/lib/module/BetRouter/types/partners.js +2 -0
  197. package/lib/module/BetRouter/types/partners.js.map +1 -0
  198. package/lib/module/Charts/README.md +310 -0
  199. package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
  200. package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
  201. package/lib/module/Charts/components/BaseLineChart.js +281 -0
  202. package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
  203. package/lib/module/Charts/components/LivePriceChart.js +497 -0
  204. package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
  205. package/lib/module/Charts/index.js +36 -0
  206. package/lib/module/Charts/index.js.map +1 -0
  207. package/lib/module/Charts/themes/chartTheme.js +134 -0
  208. package/lib/module/Charts/themes/chartTheme.js.map +1 -0
  209. package/lib/module/Charts/types.js +2 -0
  210. package/lib/module/Charts/types.js.map +1 -0
  211. package/lib/module/Charts/utils/formatters.js +178 -0
  212. package/lib/module/Charts/utils/formatters.js.map +1 -0
  213. package/lib/module/Components/Dropdown.js +5 -3
  214. package/lib/module/Components/Dropdown.js.map +1 -1
  215. package/lib/module/Components/Icons.js +24 -1
  216. package/lib/module/Components/Icons.js.map +1 -1
  217. package/lib/module/Components/index.js +3 -0
  218. package/lib/module/Components/index.js.map +1 -1
  219. package/lib/module/index.js +5 -1
  220. package/lib/module/index.js.map +1 -1
  221. package/lib/module/types.d.js +16 -0
  222. package/lib/module/types.d.js.map +1 -1
  223. package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
  224. package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
  225. package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
  226. package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
  227. package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
  228. package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
  229. package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
  230. package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
  231. package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
  232. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
  233. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  234. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
  235. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  236. package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
  237. package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  238. package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
  239. package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
  240. package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
  241. package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  242. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
  243. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  244. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
  245. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  246. package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
  247. package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  248. package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
  249. package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  250. package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  251. package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  252. package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  253. package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  254. package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
  255. package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  256. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
  257. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  258. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
  259. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  260. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
  261. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  262. package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
  263. package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
  264. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
  265. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  266. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
  267. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  268. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
  269. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  270. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
  271. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  272. package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
  273. package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
  274. package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
  275. package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
  276. package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
  277. package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
  278. package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
  279. package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
  280. package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
  281. package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
  282. package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
  283. package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
  284. package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
  285. package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
  286. package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
  287. package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
  288. package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
  289. package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
  290. package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
  291. package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
  292. package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
  293. package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
  294. package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
  295. package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
  296. package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
  297. package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
  298. package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
  299. package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
  300. package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
  301. package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  302. package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
  303. package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
  304. package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
  305. package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
  306. package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
  307. package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
  308. package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
  309. package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
  310. package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
  311. package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
  312. package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
  313. package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
  314. package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
  315. package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
  316. package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
  317. package/lib/typescript/lib/commonjs/index.d.ts +4 -0
  318. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  319. package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
  320. package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
  321. package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
  322. package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
  323. package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
  324. package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
  325. package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
  326. package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
  327. package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
  328. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
  329. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  330. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
  331. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  332. package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
  333. package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  334. package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
  335. package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
  336. package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
  337. package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  338. package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
  339. package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  340. package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
  341. package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  342. package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
  343. package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  344. package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
  345. package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  346. package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  347. package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  348. package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  349. package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  350. package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
  351. package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  352. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
  353. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  354. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
  355. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  356. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
  357. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  358. package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
  359. package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
  360. package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
  361. package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  362. package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
  363. package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  364. package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
  365. package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  366. package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
  367. package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  368. package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
  369. package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
  370. package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
  371. package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
  372. package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
  373. package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
  374. package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
  375. package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
  376. package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
  377. package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
  378. package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
  379. package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
  380. package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
  381. package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
  382. package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
  383. package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
  384. package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
  385. package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
  386. package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
  387. package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
  388. package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
  389. package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
  390. package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
  391. package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
  392. package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
  393. package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
  394. package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
  395. package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
  396. package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
  397. package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  398. package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
  399. package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
  400. package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
  401. package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
  402. package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
  403. package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
  404. package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
  405. package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
  406. package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
  407. package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
  408. package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
  409. package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
  410. package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
  411. package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
  412. package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
  413. package/lib/typescript/lib/module/Components/index.d.ts +1 -0
  414. package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
  415. package/lib/typescript/lib/module/index.d.ts +3 -1
  416. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  417. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  418. package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
  419. package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
  420. package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
  421. package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
  422. package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
  423. package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
  424. package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
  425. package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
  426. package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
  427. package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  428. package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
  429. package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  430. package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
  431. package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  432. package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
  433. package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
  434. package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
  435. package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  436. package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
  437. package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  438. package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
  439. package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  440. package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
  441. package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  442. package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
  443. package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  444. package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  445. package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  446. package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  447. package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  448. package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
  449. package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  450. package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
  451. package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  452. package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
  453. package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  454. package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
  455. package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  456. package/lib/typescript/src/BetRouter/index.d.ts +16 -0
  457. package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
  458. package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
  459. package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  460. package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
  461. package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  462. package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
  463. package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  464. package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
  465. package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  466. package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
  467. package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
  468. package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
  469. package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
  470. package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
  471. package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
  472. package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
  473. package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
  474. package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
  475. package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
  476. package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
  477. package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
  478. package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
  479. package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
  480. package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
  481. package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
  482. package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
  483. package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
  484. package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
  485. package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
  486. package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
  487. package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
  488. package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
  489. package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
  490. package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
  491. package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
  492. package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
  493. package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
  494. package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
  495. package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  496. package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
  497. package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
  498. package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
  499. package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
  500. package/lib/typescript/src/Charts/index.d.ts +28 -0
  501. package/lib/typescript/src/Charts/index.d.ts.map +1 -0
  502. package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
  503. package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
  504. package/lib/typescript/src/Charts/types.d.ts +155 -0
  505. package/lib/typescript/src/Charts/types.d.ts.map +1 -0
  506. package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
  507. package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
  508. package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
  509. package/lib/typescript/src/Components/Icons.d.ts +1 -0
  510. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  511. package/lib/typescript/src/Components/index.d.ts +1 -0
  512. package/lib/typescript/src/Components/index.d.ts.map +1 -1
  513. package/lib/typescript/src/index.d.ts +4 -1
  514. package/lib/typescript/src/index.d.ts.map +1 -1
  515. package/package.json +4 -2
  516. package/src/ApiOverrides/index.ts +4 -0
  517. package/src/BetRouter/api/index.ts +854 -0
  518. package/src/BetRouter/api/types.ts +0 -0
  519. package/src/BetRouter/components/AccountManager.tsx +533 -0
  520. package/src/BetRouter/components/AdminPortal.tsx +44 -0
  521. package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
  522. package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
  523. package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
  524. package/src/BetRouter/components/ContestSelector.tsx +179 -0
  525. package/src/BetRouter/components/MyOpportunities.tsx +279 -0
  526. package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
  527. package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
  528. package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
  529. package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
  530. package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
  531. package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
  532. package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
  533. package/src/BetRouter/components/admin/JobManager.tsx +758 -0
  534. package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
  535. package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
  536. package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
  537. package/src/BetRouter/index.tsx +453 -0
  538. package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
  539. package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
  540. package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
  541. package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
  542. package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
  543. package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
  544. package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
  545. package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
  546. package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
  547. package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
  548. package/src/BetRouter/types/README.md +249 -0
  549. package/src/BetRouter/types/accounts.ts +21 -0
  550. package/src/BetRouter/types/api-contracts.ts +1164 -0
  551. package/src/BetRouter/types/config.ts +12 -0
  552. package/src/BetRouter/types/contests.ts +37 -0
  553. package/src/BetRouter/types/credentials.ts +99 -0
  554. package/src/BetRouter/types/index.ts +16 -0
  555. package/src/BetRouter/types/jobs.ts +37 -0
  556. package/src/BetRouter/types/leagues.ts +29 -0
  557. package/src/BetRouter/types/liquidity.ts +15 -0
  558. package/src/BetRouter/types/markets.ts +94 -0
  559. package/src/BetRouter/types/opportunities.ts +107 -0
  560. package/src/BetRouter/types/orders.ts +51 -0
  561. package/src/BetRouter/types/participants.ts +34 -0
  562. package/src/BetRouter/types/partners.ts +10 -0
  563. package/src/Charts/README.md +310 -0
  564. package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
  565. package/src/Charts/components/BaseLineChart.tsx +293 -0
  566. package/src/Charts/components/LivePriceChart.tsx +521 -0
  567. package/src/Charts/index.tsx +62 -0
  568. package/src/Charts/themes/chartTheme.ts +113 -0
  569. package/src/Charts/types.ts +160 -0
  570. package/src/Charts/utils/formatters.ts +182 -0
  571. package/src/Components/Dropdown.tsx +6 -3
  572. package/src/Components/Icons.tsx +12 -0
  573. package/src/Components/index.tsx +4 -0
  574. package/src/index.tsx +6 -0
  575. package/src/types.d.ts +410 -2
@@ -0,0 +1,348 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { View, Text } from "../../Components/Themed";
3
+ import { ScrollView, TouchableOpacity } from 'react-native';
4
+ import { useColors } from '../../constants/useColors';
5
+ import { Icons, SearchBox } from '../../Components';
6
+ import { getLeagues } from '../api';
7
+ import type { RouterLeagueProps } from '../types';
8
+ import LeagueInfo from '../components/admin/LeagueInfo';
9
+ import LeagueContests from '../components/admin/LeagueContests';
10
+ import LeagueParticipants from '../components/admin/LeagueParticipants';
11
+ import AutoFillView from '../components/admin/AutoFillView';
12
+ import ConfigManager from '../components/admin/ConfigManager';
13
+ import JobManager from '../components/admin/JobManager';
14
+
15
+ type NavigationSection = 'info' | 'contests' | 'participants';
16
+ type GlobalTool = 'jobs' | 'auto-link' | 'auto-fill' | 'config';
17
+
18
+ type DesktopAdminLayoutProps = {
19
+ insets: { top: number; bottom: number; left: number; right: number };
20
+ onClose?: () => void;
21
+ initialContestId?: string; // Optional contest ID to deep link to
22
+ initialLeagueId?: string; // Optional league ID to deep link to
23
+ };
24
+
25
+ const DesktopAdminLayout = ({ insets, onClose, initialContestId, initialLeagueId }: DesktopAdminLayoutProps) => {
26
+ const Colors = useColors();
27
+
28
+ // Navigation state
29
+ const [leagues, setLeagues] = useState<RouterLeagueProps[]>([]);
30
+ const [expandedLeagueId, setExpandedLeagueId] = useState<string | null>(null);
31
+ const [selectedLeagueId, setSelectedLeagueId] = useState<string | null>(null);
32
+ const [selectedSection, setSelectedSection] = useState<NavigationSection>('info');
33
+ const [selectedTool, setSelectedTool] = useState<GlobalTool | null>(null);
34
+ const [searchText, setSearchText] = useState('');
35
+
36
+ // Load leagues on mount
37
+ useEffect(() => {
38
+ loadLeagues();
39
+ }, []);
40
+
41
+ // Handle deep linking to specific contest
42
+ useEffect(() => {
43
+ if (initialLeagueId && leagues.length > 0) {
44
+ console.log('Deep linking to league:', initialLeagueId);
45
+ // Select and expand the league
46
+ setSelectedLeagueId(initialLeagueId);
47
+ setExpandedLeagueId(initialLeagueId);
48
+ setSelectedSection('contests');
49
+ setSelectedTool(null);
50
+ }
51
+ }, [initialLeagueId, leagues]);
52
+
53
+ const loadLeagues = async () => {
54
+ try {
55
+ const response = await getLeagues('active');
56
+ const leaguesData = Array.isArray(response) ? response : [];
57
+
58
+ setLeagues(leaguesData);
59
+ // Auto-select first league if available (only if not deep linking)
60
+ if (leaguesData.length > 0 && !selectedLeagueId && !initialLeagueId) {
61
+ const firstLeague = leaguesData[0];
62
+ if(!firstLeague){ return }
63
+ setSelectedLeagueId(firstLeague.router_league_id);
64
+ setExpandedLeagueId(firstLeague.router_league_id);
65
+ }
66
+ } catch (error) {
67
+ console.error('Failed to load leagues:', error);
68
+ }
69
+ };
70
+
71
+ const toggleLeagueExpansion = (leagueId: string) => {
72
+ if (expandedLeagueId === leagueId) {
73
+ setExpandedLeagueId(null);
74
+ } else {
75
+ setExpandedLeagueId(leagueId);
76
+ setSelectedLeagueId(leagueId);
77
+ setSelectedSection('info');
78
+ setSelectedTool(null); // Clear any selected tool
79
+ }
80
+ };
81
+
82
+ const selectSection = (leagueId: string, section: NavigationSection) => {
83
+ setSelectedLeagueId(leagueId);
84
+ setSelectedSection(section);
85
+ setSelectedTool(null);
86
+ };
87
+
88
+ const selectTool = (tool: GlobalTool) => {
89
+ setSelectedTool(tool);
90
+ setSelectedSection('info'); // Reset section when selecting a tool
91
+ };
92
+
93
+ const filteredLeagues = leagues.filter(league =>
94
+ league.name.toLowerCase().includes(searchText.toLowerCase())
95
+ );
96
+
97
+ const selectedLeague = leagues.find(l => l.router_league_id === selectedLeagueId);
98
+
99
+ const renderLeagueNav = (league: RouterLeagueProps) => {
100
+ const isExpanded = expandedLeagueId === league.router_league_id;
101
+ const isSelected = selectedLeagueId === league.router_league_id;
102
+
103
+ return (
104
+ <View key={league.router_league_id} transparent style={{ marginBottom: 4 }}>
105
+ {/* League Header */}
106
+ <TouchableOpacity
107
+ onPress={() => toggleLeagueExpansion(league.router_league_id)}
108
+ style={{
109
+ flexDirection: 'row',
110
+ alignItems: 'center',
111
+ padding: 12,
112
+ backgroundColor: isSelected ? Colors.views.body : 'transparent',
113
+ borderRadius: 6,
114
+ }}
115
+ >
116
+ <Icons.ChevronIcon
117
+ direction={isExpanded ? 'down' : 'right'}
118
+ size={8}
119
+ color={Colors.text.h1}
120
+ />
121
+ <Text theme='h2' size={14} style={{ flex: 1, marginLeft:10 }}>
122
+ {league.name}
123
+ </Text>
124
+ </TouchableOpacity>
125
+
126
+ {/* Sub-sections */}
127
+ {isExpanded && (
128
+ <View transparent style={{ marginLeft: 24, marginTop: 4 }}>
129
+ {(['info', 'contests', 'participants'] as NavigationSection[]).map(section => {
130
+ const isActive = isSelected && selectedSection === section && !selectedTool;
131
+ return (
132
+ <TouchableOpacity
133
+ key={section}
134
+ onPress={() => selectSection(league.router_league_id, section)}
135
+ style={{
136
+ padding: 10,
137
+ paddingLeft: 16,
138
+ backgroundColor: isActive ? Colors.views.header : 'transparent',
139
+ borderRadius: 4,
140
+ marginBottom: 2,
141
+ }}
142
+ >
143
+ <Text
144
+ theme={isActive ? 'h2' : 'description'}
145
+ size={13}
146
+ >
147
+ {section.charAt(0).toUpperCase() + section.slice(1)}
148
+ </Text>
149
+ </TouchableOpacity>
150
+ );
151
+ })}
152
+ </View>
153
+ )}
154
+ </View>
155
+ );
156
+ };
157
+
158
+ return (
159
+ <View transparent style={{ flex: 1, flexDirection: 'row' }}>
160
+ {/* Left Navigation Sidebar */}
161
+ <View
162
+ type='body'
163
+ style={{
164
+ width: 280,
165
+ borderRightWidth: 2,
166
+ borderRightColor: Colors.borders.light,
167
+ }}
168
+ >
169
+ {/* Header with close button */}
170
+ <View
171
+ type='header'
172
+ style={{
173
+ padding: 16,
174
+ paddingTop: insets.top + 16,
175
+ borderBottomWidth: 2,
176
+ borderBottomColor: Colors.borders.light,
177
+ flexDirection: 'row',
178
+ alignItems: 'center',
179
+ justifyContent: 'space-between',
180
+ }}
181
+ >
182
+ <Text theme='h1' size={18}>Admin Portal</Text>
183
+ {onClose && (
184
+ <TouchableOpacity onPress={onClose}>
185
+ <Icons.CloseIcon size={24} color={Colors.text.h1} />
186
+ </TouchableOpacity>
187
+ )}
188
+ </View>
189
+
190
+ {/* Search */}
191
+ <View transparent style={{ padding: 12 }}>
192
+ <SearchBox
193
+ placeholder="Search leagues..."
194
+ onChange={setSearchText}
195
+ hide_search_button
196
+ />
197
+ </View>
198
+
199
+ {/* Leagues Navigation */}
200
+ <ScrollView style={{ flex: 1 }}>
201
+ <View transparent style={{ padding: 12, paddingTop: 4 }}>
202
+ {filteredLeagues.map(renderLeagueNav)}
203
+ </View>
204
+
205
+ {/* Divider */}
206
+ <View
207
+ transparent
208
+ style={{
209
+ height: 2,
210
+ backgroundColor: Colors.borders.light,
211
+ marginVertical: 12,
212
+ }}
213
+ />
214
+
215
+ {/* Global Tools */}
216
+ <View transparent style={{ padding: 12 }}>
217
+ <Text theme='description' size={11} style={{ marginBottom: 8, paddingLeft: 4 }}>
218
+ GLOBAL TOOLS
219
+ </Text>
220
+
221
+ <TouchableOpacity
222
+ onPress={() => selectTool('jobs')}
223
+ style={{
224
+ padding: 10,
225
+ paddingLeft: 16,
226
+ backgroundColor: selectedTool === 'jobs' ? Colors.views.header : 'transparent',
227
+ borderRadius: 4,
228
+ marginBottom: 2,
229
+ }}
230
+ >
231
+ <Text
232
+ theme={selectedTool === 'jobs' ? 'h2' : 'description'}
233
+ size={13}
234
+ >
235
+ Job Manager
236
+ </Text>
237
+ </TouchableOpacity>
238
+
239
+ <TouchableOpacity
240
+ onPress={() => selectTool('auto-link')}
241
+ style={{
242
+ padding: 10,
243
+ paddingLeft: 16,
244
+ backgroundColor: selectedTool === 'auto-link' ? Colors.views.header : 'transparent',
245
+ borderRadius: 4,
246
+ marginBottom: 2,
247
+ }}
248
+ >
249
+ <Text
250
+ theme={selectedTool === 'auto-link' ? 'h2' : 'description'}
251
+ size={13}
252
+ >
253
+ Auto-Link
254
+ </Text>
255
+ </TouchableOpacity>
256
+
257
+ <TouchableOpacity
258
+ onPress={() => selectTool('auto-fill')}
259
+ style={{
260
+ padding: 10,
261
+ paddingLeft: 16,
262
+ backgroundColor: selectedTool === 'auto-fill' ? Colors.views.header : 'transparent',
263
+ borderRadius: 4,
264
+ marginBottom: 2,
265
+ }}
266
+ >
267
+ <Text
268
+ theme={selectedTool === 'auto-fill' ? 'h2' : 'description'}
269
+ size={13}
270
+ >
271
+ Auto-Fill Manager
272
+ </Text>
273
+ </TouchableOpacity>
274
+
275
+ <TouchableOpacity
276
+ onPress={() => selectTool('config')}
277
+ style={{
278
+ padding: 10,
279
+ paddingLeft: 16,
280
+ backgroundColor: selectedTool === 'config' ? Colors.views.header : 'transparent',
281
+ borderRadius: 4,
282
+ }}
283
+ >
284
+ <Text
285
+ theme={selectedTool === 'config' ? 'h2' : 'description'}
286
+ size={13}
287
+ >
288
+ Config Manager
289
+ </Text>
290
+ </TouchableOpacity>
291
+ </View>
292
+ </ScrollView>
293
+ </View>
294
+
295
+ {/* Main Content Area */}
296
+ <View transparent style={{ flex: 1 }}>
297
+ <ScrollView style={{ flex: 1 }}>
298
+ <View transparent style={{ padding: 20 }}>
299
+ {/* Render content based on selection */}
300
+ {selectedTool === 'jobs' && (
301
+ <JobManager />
302
+ )}
303
+
304
+ {selectedTool === 'auto-link' && (
305
+ <View transparent>
306
+ <Text theme='h1' size={24}>Auto-Link</Text>
307
+ <Text theme='description' size={14} style={{ marginTop: 8 }}>
308
+ Automatic linking tools coming soon...
309
+ </Text>
310
+ </View>
311
+ )}
312
+
313
+ {selectedTool === 'auto-fill' && (
314
+ <AutoFillView />
315
+ )}
316
+
317
+ {selectedTool === 'config' && (
318
+ <ConfigManager />
319
+ )}
320
+
321
+ {!selectedTool && selectedLeague && selectedSection === 'info' && (
322
+ <LeagueInfo league={selectedLeague} />
323
+ )}
324
+
325
+ {!selectedTool && selectedLeague && selectedSection === 'contests' && (
326
+ <LeagueContests league={selectedLeague} initialContestId={initialContestId} />
327
+ )}
328
+
329
+ {!selectedTool && selectedLeague && selectedSection === 'participants' && (
330
+ <LeagueParticipants league={selectedLeague} />
331
+ )}
332
+
333
+ {!selectedTool && !selectedLeague && (
334
+ <View transparent style={{ alignItems: 'center', paddingTop: 60 }}>
335
+ <Icons.AlertIcon size={64} color={Colors.text.descriptionLight} />
336
+ <Text theme='description' size={16} style={{ marginTop: 16 }}>
337
+ Select a league to get started
338
+ </Text>
339
+ </View>
340
+ )}
341
+ </View>
342
+ </ScrollView>
343
+ </View>
344
+ </View>
345
+ );
346
+ };
347
+
348
+ export default DesktopAdminLayout;
@@ -0,0 +1,292 @@
1
+ import React, { useState } from 'react';
2
+ import { View, Text, Button } from "../../Components/Themed";
3
+ import type {
4
+ RouterMarketProps,
5
+ RouterMarketSideProps,
6
+ RouterMarketVariableProps,
7
+ RouterContestProps,
8
+ RouterLeagueProps,
9
+ RouterPartnerProps,
10
+ PartnerMarketProps,
11
+ BuyOpportunity
12
+ } from '../types';
13
+ import type { MyPlayerProps, GetContestResponse } from '../../types';
14
+ import { ScrollView, Modal } from 'react-native';
15
+ import { useColors } from '../../constants/useColors';
16
+ import BuyOpportunities from '../components/BuyOpportunities';
17
+ import MyOpportunities from '../components/MyOpportunities';
18
+ import OpportunityHistory from '../components/OpportunityHistory';
19
+ import ContestLiquidity from '../components/ContestLiquidity';
20
+ import AccountManager from '../components/AccountManager';
21
+ import ContestSelector from '../components/ContestSelector';
22
+ import moment from 'moment-mini';
23
+
24
+ type DesktopLayoutProps = {
25
+ me: MyPlayerProps;
26
+ partners: RouterPartnerProps[];
27
+ leagues: RouterLeagueProps[];
28
+ selectedLeague: RouterLeagueProps | null;
29
+ contests: RouterContestProps[];
30
+ filteredContests: RouterContestProps[];
31
+ selectedContest: RouterContestProps | null;
32
+ contestDetails: GetContestResponse | undefined;
33
+ opportunities: {
34
+ router_contests: RouterContestProps[];
35
+ contests_processed: number;
36
+ total_liquidity_count: number;
37
+ total_opportunities: number;
38
+ partner_markets: PartnerMarketProps[];
39
+ router_market_variables: RouterMarketVariableProps[];
40
+ router_markets: RouterMarketProps[];
41
+ router_market_sides: RouterMarketSideProps[];
42
+ partners: RouterPartnerProps[];
43
+ opportunities: BuyOpportunity[];
44
+ };
45
+ opps_loading: boolean;
46
+ size: { width: number; height: number };
47
+ insets: { top: number; bottom: number; left: number; right: number };
48
+ onSelectLeague: (league: RouterLeagueProps) => void;
49
+ onSelectContest: (contest: RouterContestProps) => void;
50
+ onOpenAdminPortal: (initialContestId?: string, initialLeagueId?: string) => void;
51
+ onBuyOpportunity: (opportunity: BuyOpportunity, legIndex?: number) => void;
52
+ onRefreshOpportunities?: () => Promise<void>;
53
+ };
54
+
55
+ const DesktopLayout = ({
56
+ me,
57
+ partners,
58
+ leagues,
59
+ selectedLeague,
60
+ //contests,
61
+ filteredContests,
62
+ selectedContest,
63
+ //contestDetails,
64
+ opportunities,
65
+ opps_loading,
66
+ size,
67
+ insets,
68
+ onSelectLeague,
69
+ onSelectContest,
70
+ onOpenAdminPortal,
71
+ onBuyOpportunity,
72
+ onRefreshOpportunities
73
+ }: DesktopLayoutProps) => {
74
+ const Colors = useColors();
75
+ const [collapsedPanels, setCollapsedPanels] = useState<Set<string>>(new Set());
76
+ //const [showContestModal, setShowContestModal] = useState(false);
77
+
78
+ const togglePanel = (panelKey: string) => {
79
+ const newSet = new Set(collapsedPanels);
80
+ if (newSet.has(panelKey)) {
81
+ newSet.delete(panelKey);
82
+ } else {
83
+ newSet.add(panelKey);
84
+ }
85
+ setCollapsedPanels(newSet);
86
+ };
87
+
88
+ const isCollapsed = (panelKey: string) => collapsedPanels.has(panelKey);
89
+
90
+ return (
91
+ <View style={{ flex: 1 }}>
92
+ {/* Main 3-Column Dashboard */}
93
+ <View style={{
94
+ flex: 1,
95
+ flexDirection: 'row'
96
+ }}>
97
+ {/* Left Column - 25% - My Bets + History */}
98
+ <View style={{
99
+ width: isCollapsed('left') ? 50 : '25%',
100
+ minWidth: isCollapsed('left') ? 50 : 300,
101
+ borderRightWidth: 1,
102
+ borderRightColor: Colors.borders.light
103
+ }}>
104
+ {isCollapsed('left') ? (
105
+ <View style={{ padding: 10, alignItems: 'center' }}>
106
+ <Button
107
+ type='text'
108
+ title='▶'
109
+ onPress={() => togglePanel('left')}
110
+ style={{ padding: 5 }}
111
+ />
112
+ </View>
113
+ ) : (
114
+ <View style={{ flex: 1 }}>
115
+ {/* Collapse button */}
116
+ <View transparent style={{
117
+ position: 'absolute',
118
+ top: 10,
119
+ right: 5,
120
+ zIndex: 10
121
+ }}>
122
+ <Button
123
+ type='text'
124
+ title='◀'
125
+ onPress={() => togglePanel('left')}
126
+ style={{ padding: 5, opacity: 0.5 }}
127
+ />
128
+ </View>
129
+
130
+ <ScrollView style={{ flex: 1 }}>
131
+ {/* Account Manager */}
132
+ <View float style={{ margin: 10 }}>
133
+ <AccountManager
134
+ me={me}
135
+ onOpenAdminPortal={onOpenAdminPortal}
136
+ />
137
+ </View>
138
+
139
+ {/* My Active Bets */}
140
+ <View float style={{ margin: 10, minHeight: 350 }}>
141
+ <MyOpportunities
142
+ partners={partners}
143
+ compact={true}
144
+ insets={insets}
145
+ onBuyOpportunity={onBuyOpportunity}
146
+ />
147
+ </View>
148
+
149
+ {/* History/Stats */}
150
+ <View float style={{ margin: 10, minHeight: 300 }}>
151
+ <OpportunityHistory
152
+ me={me}
153
+ compact={true}
154
+ insets={insets}
155
+ partners={partners}
156
+ />
157
+ </View>
158
+ </ScrollView>
159
+ </View>
160
+ )}
161
+ </View>
162
+
163
+ {/* Center Column - 50% - Buy Opportunities */}
164
+ <View style={{
165
+ flex: 1,
166
+ minWidth: 400
167
+ }}>
168
+ <View float style={{ margin: 10, flex: 1 }}>
169
+ <BuyOpportunities
170
+ loading={opps_loading}
171
+ router_markets={opportunities.router_markets}
172
+ router_market_sides={opportunities.router_market_sides}
173
+ router_market_variables={opportunities.router_market_variables}
174
+ partner_markets={opportunities.partner_markets}
175
+ buy_opportunities={opportunities.opportunities}
176
+ width={size.width}
177
+ partners={opportunities.partners}
178
+ router_contests={opportunities.router_contests}
179
+ insets={insets}
180
+ onBuyOpportunity={onBuyOpportunity}
181
+ onRefresh={onRefreshOpportunities}
182
+ />
183
+ </View>
184
+ </View>
185
+
186
+ {/* Right Column - 25% - Contest List */}
187
+ <View style={{
188
+ width: isCollapsed('right') ? 50 : '25%',
189
+ minWidth: isCollapsed('right') ? 50 : 300,
190
+ borderLeftWidth: 1,
191
+ borderLeftColor: Colors.borders.light
192
+ }}>
193
+ {isCollapsed('right') ? (
194
+ <View style={{ padding: 10, alignItems: 'center' }}>
195
+ <Button
196
+ type='text'
197
+ title='◀'
198
+ onPress={() => togglePanel('right')}
199
+ style={{ padding: 5 }}
200
+ />
201
+ </View>
202
+ ) : (
203
+ <View style={{ flex: 1 }}>
204
+ {/* Collapse button */}
205
+ <View transparent style={{
206
+ position: 'absolute',
207
+ top: 10,
208
+ left: 5,
209
+ zIndex: 10
210
+ }}>
211
+ <Button
212
+ type='text'
213
+ title='▶'
214
+ onPress={() => togglePanel('right')}
215
+ style={{ padding: 5, opacity: 0.5 }}
216
+ />
217
+ </View>
218
+
219
+ <ContestSelector
220
+ leagues={leagues}
221
+ selectedLeague={selectedLeague}
222
+ contests={filteredContests}
223
+ selectedContest={selectedContest}
224
+ onSelectLeague={onSelectLeague}
225
+ onSelectContest={onSelectContest}
226
+ />
227
+ </View>
228
+ )}
229
+ </View>
230
+ </View>
231
+
232
+ {/* Contest Liquidity Modal */}
233
+ {selectedContest && (
234
+ <Modal
235
+ visible={true}
236
+ transparent={true}
237
+ animationType="fade"
238
+ onRequestClose={() => onSelectContest(null as any)}
239
+ >
240
+ <View style={{
241
+ flex: 1,
242
+ backgroundColor: 'rgba(0,0,0,0.5)',
243
+ justifyContent: 'center',
244
+ alignItems: 'center',
245
+ padding: 20
246
+ }}>
247
+ <View float style={{
248
+ width: '95%',
249
+ height: '90%',
250
+ borderRadius: 8,
251
+ overflow: 'hidden'
252
+ }}>
253
+ <View type='header' style={{
254
+ flexDirection: 'row',
255
+ alignItems: 'center',
256
+ padding: 15,
257
+ borderBottomWidth: 1,
258
+ borderBottomColor: Colors.borders.light
259
+ }}>
260
+ <View transparent style={{ flex: 1 }}>
261
+ <Text theme='h1' style={{ fontSize: 18 }}>
262
+ {selectedContest.contest_label}
263
+ </Text>
264
+ <Text theme='description' style={{ fontSize: 12, marginTop: 2 }}>
265
+ {moment(selectedContest.scheduled_datetime).format('ddd, MMM D, YYYY [at] h:mm A')}
266
+ </Text>
267
+ </View>
268
+ <Button
269
+ type='text'
270
+ title='✕ Close'
271
+ onPress={() => onSelectContest(null as any)}
272
+ style={{ padding: 8 }}
273
+ />
274
+ </View>
275
+ <ScrollView style={{ flex: 1 }}>
276
+ <ContestLiquidity
277
+ router_contest_id={selectedContest.router_contest_id}
278
+ include_opportunities={true}
279
+ onBuyOpportunity={onBuyOpportunity}
280
+ me={me}
281
+ onOpenAdminPortal={onOpenAdminPortal}
282
+ />
283
+ </ScrollView>
284
+ </View>
285
+ </View>
286
+ </Modal>
287
+ )}
288
+ </View>
289
+ );
290
+ };
291
+
292
+ export default DesktopLayout;