be-components 7.4.7 → 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 (596) 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/LocationTracker/LocationStatus.js +5 -2
  109. package/lib/commonjs/LocationTracker/LocationStatus.js.map +1 -1
  110. package/lib/commonjs/LocationTracker/api/index.js +2 -2
  111. package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
  112. package/lib/commonjs/index.js +28 -0
  113. package/lib/commonjs/index.js.map +1 -1
  114. package/lib/commonjs/types.d.js +16 -0
  115. package/lib/commonjs/types.d.js.map +1 -1
  116. package/lib/module/ApiOverrides/index.js +4 -0
  117. package/lib/module/ApiOverrides/index.js.map +1 -1
  118. package/lib/module/BetRouter/api/index.js +873 -0
  119. package/lib/module/BetRouter/api/index.js.map +1 -0
  120. package/lib/module/BetRouter/api/types.js +2 -0
  121. package/lib/module/BetRouter/api/types.js.map +1 -0
  122. package/lib/module/BetRouter/components/AccountManager.js +584 -0
  123. package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
  124. package/lib/module/BetRouter/components/AdminPortal.js +43 -0
  125. package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
  126. package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
  127. package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
  128. package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
  129. package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
  130. package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
  131. package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
  132. package/lib/module/BetRouter/components/ContestSelector.js +185 -0
  133. package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
  134. package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
  135. package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
  136. package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
  137. package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
  138. package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
  139. package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
  140. package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
  141. package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
  142. package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
  143. package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
  144. package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
  145. package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
  146. package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
  147. package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
  148. package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
  149. package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
  150. package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
  151. package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
  152. package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
  153. package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
  154. package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
  155. package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
  156. package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
  157. package/lib/module/BetRouter/index.js +399 -0
  158. package/lib/module/BetRouter/index.js.map +1 -0
  159. package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
  160. package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
  161. package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
  162. package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
  163. package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
  164. package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
  165. package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
  166. package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
  167. package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
  168. package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
  169. package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
  170. package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
  171. package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
  172. package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
  173. package/lib/module/BetRouter/types/README.md +249 -0
  174. package/lib/module/BetRouter/types/accounts.js +2 -0
  175. package/lib/module/BetRouter/types/accounts.js.map +1 -0
  176. package/lib/module/BetRouter/types/api-contracts.js +770 -0
  177. package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
  178. package/lib/module/BetRouter/types/config.js +2 -0
  179. package/lib/module/BetRouter/types/config.js.map +1 -0
  180. package/lib/module/BetRouter/types/contests.js +2 -0
  181. package/lib/module/BetRouter/types/contests.js.map +1 -0
  182. package/lib/module/BetRouter/types/credentials.js +78 -0
  183. package/lib/module/BetRouter/types/credentials.js.map +1 -0
  184. package/lib/module/BetRouter/types/index.js +17 -0
  185. package/lib/module/BetRouter/types/index.js.map +1 -0
  186. package/lib/module/BetRouter/types/jobs.js +2 -0
  187. package/lib/module/BetRouter/types/jobs.js.map +1 -0
  188. package/lib/module/BetRouter/types/leagues.js +2 -0
  189. package/lib/module/BetRouter/types/leagues.js.map +1 -0
  190. package/lib/module/BetRouter/types/liquidity.js +2 -0
  191. package/lib/module/BetRouter/types/liquidity.js.map +1 -0
  192. package/lib/module/BetRouter/types/markets.js +2 -0
  193. package/lib/module/BetRouter/types/markets.js.map +1 -0
  194. package/lib/module/BetRouter/types/opportunities.js +2 -0
  195. package/lib/module/BetRouter/types/opportunities.js.map +1 -0
  196. package/lib/module/BetRouter/types/orders.js +2 -0
  197. package/lib/module/BetRouter/types/orders.js.map +1 -0
  198. package/lib/module/BetRouter/types/participants.js +2 -0
  199. package/lib/module/BetRouter/types/participants.js.map +1 -0
  200. package/lib/module/BetRouter/types/partners.js +2 -0
  201. package/lib/module/BetRouter/types/partners.js.map +1 -0
  202. package/lib/module/Charts/README.md +310 -0
  203. package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
  204. package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
  205. package/lib/module/Charts/components/BaseLineChart.js +281 -0
  206. package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
  207. package/lib/module/Charts/components/LivePriceChart.js +497 -0
  208. package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
  209. package/lib/module/Charts/index.js +36 -0
  210. package/lib/module/Charts/index.js.map +1 -0
  211. package/lib/module/Charts/themes/chartTheme.js +134 -0
  212. package/lib/module/Charts/themes/chartTheme.js.map +1 -0
  213. package/lib/module/Charts/types.js +2 -0
  214. package/lib/module/Charts/types.js.map +1 -0
  215. package/lib/module/Charts/utils/formatters.js +178 -0
  216. package/lib/module/Charts/utils/formatters.js.map +1 -0
  217. package/lib/module/Components/Dropdown.js +5 -3
  218. package/lib/module/Components/Dropdown.js.map +1 -1
  219. package/lib/module/Components/Icons.js +24 -1
  220. package/lib/module/Components/Icons.js.map +1 -1
  221. package/lib/module/Components/index.js +3 -0
  222. package/lib/module/Components/index.js.map +1 -1
  223. package/lib/module/LocationTracker/LocationStatus.js +5 -2
  224. package/lib/module/LocationTracker/LocationStatus.js.map +1 -1
  225. package/lib/module/LocationTracker/api/index.js +2 -2
  226. package/lib/module/LocationTracker/api/index.js.map +1 -1
  227. package/lib/module/index.js +5 -1
  228. package/lib/module/index.js.map +1 -1
  229. package/lib/module/types.d.js +16 -0
  230. package/lib/module/types.d.js.map +1 -1
  231. package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
  232. package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
  233. package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
  234. package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
  235. package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
  236. package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
  237. package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
  238. package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
  239. package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
  240. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
  241. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  242. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
  243. package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  244. package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
  245. package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  246. package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
  247. package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
  248. package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
  249. package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  250. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
  251. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  252. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
  253. package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  254. package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
  255. package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  256. package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
  257. package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  258. package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  259. package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  260. package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  261. package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  262. package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
  263. package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  264. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
  265. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  266. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
  267. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  268. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
  269. package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  270. package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
  271. package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
  272. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
  273. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  274. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
  275. package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  276. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
  277. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  278. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
  279. package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  280. package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
  281. package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
  282. package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
  283. package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
  284. package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
  285. package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
  286. package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
  287. package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
  288. package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
  289. package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
  290. package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
  291. package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
  292. package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
  293. package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
  294. package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
  295. package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
  296. package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
  297. package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
  298. package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
  299. package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
  300. package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
  301. package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
  302. package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
  303. package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
  304. package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
  305. package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
  306. package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
  307. package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
  308. package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
  309. package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  310. package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
  311. package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
  312. package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
  313. package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
  314. package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
  315. package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
  316. package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
  317. package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
  318. package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
  319. package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
  320. package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
  321. package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
  322. package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
  323. package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
  324. package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
  325. package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts +2 -1
  326. package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts.map +1 -1
  327. package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts +1 -1
  328. package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts.map +1 -1
  329. package/lib/typescript/lib/commonjs/index.d.ts +6 -1
  330. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  331. package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
  332. package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
  333. package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
  334. package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
  335. package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
  336. package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
  337. package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
  338. package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
  339. package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
  340. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
  341. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  342. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
  343. package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  344. package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
  345. package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  346. package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
  347. package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
  348. package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
  349. package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  350. package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
  351. package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  352. package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
  353. package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  354. package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
  355. package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  356. package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
  357. package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  358. package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  359. package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  360. package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  361. package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  362. package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
  363. package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  364. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
  365. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  366. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
  367. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  368. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
  369. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  370. package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
  371. package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
  372. package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
  373. package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  374. package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
  375. package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  376. package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
  377. package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  378. package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
  379. package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  380. package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
  381. package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
  382. package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
  383. package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
  384. package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
  385. package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
  386. package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
  387. package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
  388. package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
  389. package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
  390. package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
  391. package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
  392. package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
  393. package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
  394. package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
  395. package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
  396. package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
  397. package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
  398. package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
  399. package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
  400. package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
  401. package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
  402. package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
  403. package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
  404. package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
  405. package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
  406. package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
  407. package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
  408. package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
  409. package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  410. package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
  411. package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
  412. package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
  413. package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
  414. package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
  415. package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
  416. package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
  417. package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
  418. package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
  419. package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
  420. package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
  421. package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
  422. package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
  423. package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
  424. package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
  425. package/lib/typescript/lib/module/Components/index.d.ts +1 -0
  426. package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
  427. package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts +2 -1
  428. package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts.map +1 -1
  429. package/lib/typescript/lib/module/LocationTracker/api/index.d.ts +1 -1
  430. package/lib/typescript/lib/module/index.d.ts +3 -1
  431. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  432. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  433. package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
  434. package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
  435. package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
  436. package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
  437. package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
  438. package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
  439. package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
  440. package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
  441. package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
  442. package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
  443. package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
  444. package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
  445. package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
  446. package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
  447. package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
  448. package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
  449. package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
  450. package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
  451. package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
  452. package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
  453. package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
  454. package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
  455. package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
  456. package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
  457. package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
  458. package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
  459. package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
  460. package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
  461. package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
  462. package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
  463. package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
  464. package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
  465. package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
  466. package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
  467. package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
  468. package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
  469. package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
  470. package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
  471. package/lib/typescript/src/BetRouter/index.d.ts +16 -0
  472. package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
  473. package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
  474. package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
  475. package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
  476. package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
  477. package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
  478. package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
  479. package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
  480. package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
  481. package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
  482. package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
  483. package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
  484. package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
  485. package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
  486. package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
  487. package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
  488. package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
  489. package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
  490. package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
  491. package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
  492. package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
  493. package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
  494. package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
  495. package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
  496. package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
  497. package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
  498. package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
  499. package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
  500. package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
  501. package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
  502. package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
  503. package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
  504. package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
  505. package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
  506. package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
  507. package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
  508. package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
  509. package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
  510. package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
  511. package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
  512. package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
  513. package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
  514. package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
  515. package/lib/typescript/src/Charts/index.d.ts +28 -0
  516. package/lib/typescript/src/Charts/index.d.ts.map +1 -0
  517. package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
  518. package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
  519. package/lib/typescript/src/Charts/types.d.ts +155 -0
  520. package/lib/typescript/src/Charts/types.d.ts.map +1 -0
  521. package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
  522. package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
  523. package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
  524. package/lib/typescript/src/Components/Icons.d.ts +1 -0
  525. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  526. package/lib/typescript/src/Components/index.d.ts +1 -0
  527. package/lib/typescript/src/Components/index.d.ts.map +1 -1
  528. package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +2 -1
  529. package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
  530. package/lib/typescript/src/LocationTracker/api/index.d.ts +3 -1
  531. package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
  532. package/lib/typescript/src/index.d.ts +4 -1
  533. package/lib/typescript/src/index.d.ts.map +1 -1
  534. package/package.json +4 -2
  535. package/src/ApiOverrides/index.ts +4 -0
  536. package/src/BetRouter/api/index.ts +854 -0
  537. package/src/BetRouter/api/types.ts +0 -0
  538. package/src/BetRouter/components/AccountManager.tsx +533 -0
  539. package/src/BetRouter/components/AdminPortal.tsx +44 -0
  540. package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
  541. package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
  542. package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
  543. package/src/BetRouter/components/ContestSelector.tsx +179 -0
  544. package/src/BetRouter/components/MyOpportunities.tsx +279 -0
  545. package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
  546. package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
  547. package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
  548. package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
  549. package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
  550. package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
  551. package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
  552. package/src/BetRouter/components/admin/JobManager.tsx +758 -0
  553. package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
  554. package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
  555. package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
  556. package/src/BetRouter/index.tsx +453 -0
  557. package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
  558. package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
  559. package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
  560. package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
  561. package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
  562. package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
  563. package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
  564. package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
  565. package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
  566. package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
  567. package/src/BetRouter/types/README.md +249 -0
  568. package/src/BetRouter/types/accounts.ts +21 -0
  569. package/src/BetRouter/types/api-contracts.ts +1164 -0
  570. package/src/BetRouter/types/config.ts +12 -0
  571. package/src/BetRouter/types/contests.ts +37 -0
  572. package/src/BetRouter/types/credentials.ts +99 -0
  573. package/src/BetRouter/types/index.ts +16 -0
  574. package/src/BetRouter/types/jobs.ts +37 -0
  575. package/src/BetRouter/types/leagues.ts +29 -0
  576. package/src/BetRouter/types/liquidity.ts +15 -0
  577. package/src/BetRouter/types/markets.ts +94 -0
  578. package/src/BetRouter/types/opportunities.ts +107 -0
  579. package/src/BetRouter/types/orders.ts +51 -0
  580. package/src/BetRouter/types/participants.ts +34 -0
  581. package/src/BetRouter/types/partners.ts +10 -0
  582. package/src/Charts/README.md +310 -0
  583. package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
  584. package/src/Charts/components/BaseLineChart.tsx +293 -0
  585. package/src/Charts/components/LivePriceChart.tsx +521 -0
  586. package/src/Charts/index.tsx +62 -0
  587. package/src/Charts/themes/chartTheme.ts +113 -0
  588. package/src/Charts/types.ts +160 -0
  589. package/src/Charts/utils/formatters.ts +182 -0
  590. package/src/Components/Dropdown.tsx +6 -3
  591. package/src/Components/Icons.tsx +12 -0
  592. package/src/Components/index.tsx +4 -0
  593. package/src/LocationTracker/LocationStatus.tsx +4 -3
  594. package/src/LocationTracker/api/index.tsx +2 -2
  595. package/src/index.tsx +6 -0
  596. package/src/types.d.ts +410 -2
@@ -0,0 +1,504 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Themed = require("../../Components/Themed");
10
+ var _BaseLineChart = _interopRequireDefault(require("./BaseLineChart"));
11
+ var _chartTheme = require("../themes/chartTheme");
12
+ var _formatters = require("../utils/formatters");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ /**
16
+ * Live Price Chart Component
17
+ * Shows away/home side prices moving over time with live updates
18
+ */
19
+
20
+ /**
21
+ * LivePriceChart
22
+ * Beautiful real-time price chart showing away vs home odds movement
23
+ */
24
+ const LivePriceChart = ({
25
+ data,
26
+ height = 300,
27
+ width,
28
+ animated = true,
29
+ showTooltip = true,
30
+ showLegend = true,
31
+ legendPosition = 'top',
32
+ showTimeFilter = false,
33
+ initialTimeFilter = 'all_time',
34
+ yAxisPrefix = '',
35
+ yAxisSuffix = '',
36
+ yAxisLabelCount = 6,
37
+ xAxisLabelCount = 5,
38
+ showYAxis = true,
39
+ showXAxis = true,
40
+ yAxisColor = '#E5E7EB',
41
+ xAxisColor = '#E5E7EB',
42
+ yAxisThickness = 1,
43
+ xAxisThickness = 1,
44
+ yAxisTextColor = '#6B7280',
45
+ xAxisTextColor = '#6B7280',
46
+ gridColor = '#E5E7EB',
47
+ showGrid = true,
48
+ timeRange,
49
+ onPointPress,
50
+ yMin,
51
+ yMax,
52
+ useFixedYRange = false,
53
+ spacing,
54
+ backgroundColor = 'transparent',
55
+ displayAsPercentage = false,
56
+ hideDataPointText = false
57
+ }) => {
58
+ // Track container dimensions for responsive sizing
59
+ const [containerWidth, setContainerWidth] = (0, _react.useState)(width || _reactNative.Dimensions.get('window').width - 40 // Default with padding
60
+ );
61
+ const [containerHeight, setContainerHeight] = (0, _react.useState)(height || 300); // Default to 300 if no height provided
62
+
63
+ // Track selected time filter
64
+ const [selectedTimeFilter, setSelectedTimeFilter] = (0, _react.useState)(initialTimeFilter);
65
+
66
+ // Handle layout changes to update chart dimensions
67
+ const handleLayout = event => {
68
+ const {
69
+ width: layoutWidth,
70
+ height: layoutHeight
71
+ } = event.nativeEvent.layout;
72
+ if (layoutWidth > 0 && !width) {
73
+ // Only auto-size if width not explicitly set
74
+ // Account for Y-axis labels (if shown) and some padding
75
+ const yAxisOffset = showYAxis ? 50 : 20;
76
+ // For inline labels, we want to use more of the width but still reserve space
77
+ const inlineLabelOffset = showLegend && legendPosition === 'inline' ? 20 : 0;
78
+ setContainerWidth(layoutWidth - yAxisOffset - inlineLabelOffset);
79
+ }
80
+
81
+ // Auto-size height if container has height and chart doesn't have explicit height
82
+ if (layoutHeight > 0 && !height) {
83
+ // Reserve space for legend and time filters
84
+ const legendHeight = showLegend && legendPosition === 'top' ? 50 : 0;
85
+ const filterHeight = showTimeFilter ? 40 : 0;
86
+ const availableHeight = layoutHeight - legendHeight - filterHeight - 20; // 20px padding
87
+ setContainerHeight(Math.max(availableHeight, 100)); // Minimum 100px
88
+ }
89
+ };
90
+
91
+ // Determine available time filters based on data timespan
92
+ const availableTimeFilters = (0, _react.useMemo)(() => {
93
+ const allTimestamps = data.flatMap(series => series.data.map(point => point.timestamp));
94
+ if (allTimestamps.length === 0) return ['all_time'];
95
+ const minTime = Math.min(...allTimestamps);
96
+ const maxTime = Math.max(...allTimestamps);
97
+ const spanMs = maxTime - minTime;
98
+ const now = Date.now();
99
+ const filters = [];
100
+
101
+ // Check if data spans into today
102
+ const todayStart = new Date();
103
+ todayStart.setHours(0, 0, 0, 0);
104
+ if (maxTime >= todayStart.getTime()) {
105
+ filters.push('today');
106
+ }
107
+
108
+ // Check if data spans last 24 hours
109
+ if (maxTime >= now - 24 * 60 * 60 * 1000) {
110
+ filters.push('last_24h');
111
+ }
112
+
113
+ // Check if data spans last week
114
+ if (spanMs >= 24 * 60 * 60 * 1000 || maxTime >= now - 7 * 24 * 60 * 60 * 1000) {
115
+ filters.push('last_week');
116
+ }
117
+
118
+ // Check if data spans last month
119
+ if (spanMs >= 7 * 24 * 60 * 60 * 1000 || maxTime >= now - 30 * 24 * 60 * 60 * 1000) {
120
+ filters.push('last_month');
121
+ }
122
+
123
+ // Always include all_time
124
+ filters.push('all_time');
125
+ return filters;
126
+ }, [data]);
127
+
128
+ // Apply time filter to data
129
+ const filteredData = (0, _react.useMemo)(() => {
130
+ // If external timeRange prop is provided, use it
131
+ if (timeRange) {
132
+ return data.map(series => ({
133
+ ...series,
134
+ data: series.data.filter(point => point.timestamp >= timeRange.start && point.timestamp <= timeRange.end)
135
+ }));
136
+ }
137
+
138
+ // Otherwise, use internal time filter if enabled
139
+ if (!showTimeFilter) return data;
140
+ const now = Date.now();
141
+ let startTime;
142
+ let endTime = now;
143
+ switch (selectedTimeFilter) {
144
+ case 'today':
145
+ const today = new Date();
146
+ today.setHours(0, 0, 0, 0);
147
+ startTime = today.getTime();
148
+ break;
149
+ case 'last_24h':
150
+ startTime = now - 24 * 60 * 60 * 1000;
151
+ break;
152
+ case 'last_week':
153
+ startTime = now - 7 * 24 * 60 * 60 * 1000;
154
+ break;
155
+ case 'last_month':
156
+ startTime = now - 30 * 24 * 60 * 60 * 1000;
157
+ break;
158
+ case 'all_time':
159
+ default:
160
+ return data;
161
+ // No filtering
162
+ }
163
+ return data.map(series => ({
164
+ ...series,
165
+ data: series.data.filter(point => point.timestamp >= startTime && point.timestamp <= endTime)
166
+ }));
167
+ }, [data, timeRange, showTimeFilter, selectedTimeFilter]);
168
+
169
+ // Calculate responsive spacing based on container width and FILTERED data points
170
+ const calculatedSpacing = (0, _react.useMemo)(() => {
171
+ if (spacing !== undefined) return spacing; // Use explicit spacing if provided
172
+
173
+ // Use filtered data point count so spacing adjusts after filtering
174
+ const dataPointCount = filteredData[0]?.data.length || 20;
175
+ const chartWidth = width || containerWidth;
176
+
177
+ // When Y-axis is hidden, we add 60px to width (reclaiming full Y-axis space)
178
+ const effectiveWidth = !showYAxis ? chartWidth + 60 : chartWidth;
179
+
180
+ // Simple: divide container width by number of points to fit everything
181
+ // Subtract a buffer for padding
182
+ const buffer = showYAxis ? 60 : 20;
183
+ const availableWidth = effectiveWidth - buffer;
184
+
185
+ // Use number of points (not intervals) so chart doesn't overflow
186
+ const calculatedValue = availableWidth / dataPointCount;
187
+ return Math.max(calculatedValue, 3); // Minimum 3px spacing
188
+ }, [filteredData, width, containerWidth, spacing, showYAxis]);
189
+
190
+ // Calculate Y-axis bounds if not provided
191
+ const yBounds = (0, _react.useMemo)(() => {
192
+ // If displayAsPercentage, override bounds to 0-100
193
+ if (displayAsPercentage && !useFixedYRange && yMin === undefined && yMax === undefined) {
194
+ return {
195
+ min: 0,
196
+ max: 100
197
+ };
198
+ }
199
+
200
+ // If useFixedYRange is true and yMin/yMax are provided, use them directly
201
+ if (useFixedYRange && yMin !== undefined && yMax !== undefined) {
202
+ const min = displayAsPercentage ? yMin * 100 : yMin;
203
+ const max = displayAsPercentage ? yMax * 100 : yMax;
204
+ return {
205
+ min,
206
+ max
207
+ };
208
+ }
209
+
210
+ // If both yMin and yMax are provided (but not useFixedYRange), still use them
211
+ if (yMin !== undefined && yMax !== undefined) {
212
+ const min = displayAsPercentage ? yMin * 100 : yMin;
213
+ const max = displayAsPercentage ? yMax * 100 : yMax;
214
+ return {
215
+ min,
216
+ max
217
+ };
218
+ }
219
+
220
+ // Otherwise, auto-calculate from data
221
+ const allValues = filteredData.flatMap(series => series.data.map(point => point.value));
222
+ const bounds = (0, _formatters.calculateNiceYBounds)(allValues);
223
+ if (displayAsPercentage) {
224
+ return {
225
+ min: bounds.min * 100,
226
+ max: bounds.max * 100
227
+ };
228
+ }
229
+ return bounds;
230
+ }, [filteredData, yMin, yMax, useFixedYRange, displayAsPercentage]);
231
+
232
+ // Enhance data with smart time labels and percentage conversion
233
+ const enhancedData = (0, _react.useMemo)(() => {
234
+ const allTimestamps = filteredData.flatMap(series => series.data.map(point => point.timestamp));
235
+ const minTime = Math.min(...allTimestamps);
236
+ const maxTime = Math.max(...allTimestamps);
237
+ return filteredData.map(series => ({
238
+ ...series,
239
+ data: series.data.map((point, index) => {
240
+ // On native with small spacing, show fewer labels to prevent overlap
241
+ // Each label needs ~50px of space, so calculate how many we can fit
242
+ const minLabelSpacing = 50; // Minimum pixels needed per label
243
+ const maxLabelsWeCanFit = Math.floor((width || containerWidth) / minLabelSpacing);
244
+ const labelInterval = Math.max(1, Math.ceil(series.data.length / Math.min(xAxisLabelCount, maxLabelsWeCanFit)));
245
+ const shouldLabel = index % labelInterval === 0;
246
+ return {
247
+ ...point,
248
+ value: displayAsPercentage ? point.value * 100 : point.value,
249
+ label: shouldLabel ? (0, _formatters.getSmartTimeLabel)(point.timestamp, minTime, maxTime) : ''
250
+ };
251
+ })
252
+ }));
253
+ }, [filteredData, xAxisLabelCount, width, containerWidth, displayAsPercentage]);
254
+
255
+ // Get current prices for legend
256
+ const currentPrices = (0, _react.useMemo)(() => {
257
+ return filteredData.map(series => {
258
+ const latestPoint = series.data[series.data.length - 1];
259
+ const rawValue = latestPoint?.value || 0;
260
+ const displayValue = displayAsPercentage ? rawValue * 100 : rawValue;
261
+ const change = calculatePriceChange(series.data);
262
+ const displayChange = displayAsPercentage && change !== null ? change * 100 : change;
263
+ return {
264
+ series: series.series,
265
+ displayLabel: series.series,
266
+ // series.series is already the display label
267
+ color: series.color,
268
+ value: displayValue,
269
+ change: displayChange
270
+ };
271
+ });
272
+ }, [filteredData, displayAsPercentage]);
273
+
274
+ // Handle point press
275
+ const handlePointPress = (item, index) => {
276
+ if (onPointPress && item) {
277
+ // Find which series this point belongs to
278
+ const seriesIndex = filteredData.findIndex(s => s.data.some(p => p.value === item.value));
279
+ const series = filteredData[seriesIndex];
280
+ const point = series?.data[index];
281
+ if (point) {
282
+ onPointPress(point, series.series);
283
+ }
284
+ }
285
+ };
286
+
287
+ // Get friendly label for time filter
288
+ const getFilterLabel = filter => {
289
+ switch (filter) {
290
+ case 'today':
291
+ return 'Today';
292
+ case 'last_24h':
293
+ return '24H';
294
+ case 'last_week':
295
+ return '1W';
296
+ case 'last_month':
297
+ return '1M';
298
+ case 'all_time':
299
+ return 'All';
300
+ default:
301
+ return filter;
302
+ }
303
+ };
304
+ return /*#__PURE__*/_react.default.createElement(_Themed.View, {
305
+ transparent: true,
306
+ style: [styles.container, !height && {
307
+ flex: 1
308
+ }],
309
+ onLayout: handleLayout
310
+ }, showTimeFilter && availableTimeFilters.length > 1 && /*#__PURE__*/_react.default.createElement(_Themed.View, {
311
+ transparent: true,
312
+ style: styles.timeFilterContainer
313
+ }, availableTimeFilters.map(filter => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
314
+ key: filter,
315
+ onPress: () => setSelectedTimeFilter(filter),
316
+ style: [styles.filterButton, selectedTimeFilter === filter && styles.filterButtonActive]
317
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
318
+ style: [styles.filterButtonText, selectedTimeFilter === filter && styles.filterButtonTextActive]
319
+ }, getFilterLabel(filter))))), showLegend && legendPosition === 'top' && /*#__PURE__*/_react.default.createElement(_Themed.View, {
320
+ transparent: true,
321
+ style: styles.legend
322
+ }, currentPrices.map((price, index) => /*#__PURE__*/_react.default.createElement(_Themed.View, {
323
+ transparent: true,
324
+ key: index,
325
+ style: styles.legendItem
326
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
327
+ style: [styles.legendDot, {
328
+ backgroundColor: price.color
329
+ }]
330
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
331
+ style: styles.legendLabel
332
+ }, price.displayLabel), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
333
+ style: [styles.legendValue, {
334
+ color: price.color
335
+ }]
336
+ }, (0, _formatters.formatPrice)(price.value, 2)), price.change !== null && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
337
+ style: [styles.legendChange, {
338
+ color: price.change >= 0 ? _chartTheme.defaultChartTheme.success : _chartTheme.defaultChartTheme.error
339
+ }]
340
+ }, price.change >= 0 ? '▲' : '▼', " ", Math.abs(price.change).toFixed(2))))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
341
+ transparent: true,
342
+ style: {
343
+ position: 'relative',
344
+ paddingBottom: showXAxis ? 30 : 0,
345
+ overflow: 'visible',
346
+ marginLeft: !showYAxis ? -60 : 0
347
+ }
348
+ }, /*#__PURE__*/_react.default.createElement(_BaseLineChart.default, {
349
+ data: enhancedData,
350
+ height: _reactNative.Platform.OS === 'web' ? containerHeight : showXAxis ? containerHeight - 30 : containerHeight,
351
+ width: !showYAxis ? (width || containerWidth) + 60 : width || containerWidth,
352
+ spacing: calculatedSpacing,
353
+ yAxisPrefix: yAxisPrefix,
354
+ yAxisSuffix: displayAsPercentage ? '%' : yAxisSuffix,
355
+ yAxisLabelCount: yAxisLabelCount,
356
+ xAxisLabelCount: xAxisLabelCount,
357
+ showYAxis: showYAxis,
358
+ showXAxis: showXAxis,
359
+ yAxisColor: yAxisColor,
360
+ xAxisColor: xAxisColor,
361
+ yAxisThickness: yAxisThickness,
362
+ xAxisThickness: xAxisThickness,
363
+ yAxisTextColor: yAxisTextColor,
364
+ xAxisTextColor: xAxisTextColor,
365
+ gridColor: gridColor,
366
+ showGrid: showGrid,
367
+ yMin: yBounds.min,
368
+ yMax: yBounds.max,
369
+ backgroundColor: backgroundColor,
370
+ animated: animated,
371
+ onDataPointClick: showTooltip ? handlePointPress : undefined,
372
+ hideDataPointText: hideDataPointText
373
+ }), showLegend && legendPosition === 'inline' && /*#__PURE__*/_react.default.createElement(_Themed.View, {
374
+ transparent: true,
375
+ style: styles.inlineLabelsContainer
376
+ }, currentPrices.map((price, index) => {
377
+ // Stack labels vertically in the center-right
378
+ // Calculate spacing to distribute labels evenly
379
+ const totalLabels = currentPrices.length;
380
+ const labelHeight = 50; // Approximate height of each label (increased for more spacing)
381
+ const totalHeight = totalLabels * labelHeight;
382
+ const startY = (height - totalHeight) / 2; // Center vertically
383
+ const yPosition = startY + index * labelHeight;
384
+ return /*#__PURE__*/_react.default.createElement(_Themed.View, {
385
+ transparent: true,
386
+ key: index,
387
+ style: [styles.inlineLabel, {
388
+ top: yPosition,
389
+ right: 10
390
+ }]
391
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
392
+ type: "blur",
393
+ style: styles.inlineLabelContent
394
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
395
+ style: [styles.inlineLabelText, {
396
+ color: price.color
397
+ }]
398
+ }, price.displayLabel), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
399
+ style: [styles.inlineLabelValue, {
400
+ color: price.color
401
+ }]
402
+ }, displayAsPercentage ? `${Math.round(price.value)}%` : (0, _formatters.formatPrice)(price.value, 2))));
403
+ }))));
404
+ };
405
+
406
+ /**
407
+ * Calculate price change from first to last data point
408
+ */
409
+ const calculatePriceChange = data => {
410
+ if (data.length < 2) return null;
411
+ const first = data[0].value;
412
+ const last = data[data.length - 1].value;
413
+ return last - first;
414
+ };
415
+ const styles = _reactNative.StyleSheet.create({
416
+ container: {
417
+ width: '100%'
418
+ },
419
+ timeFilterContainer: {
420
+ flexDirection: 'row',
421
+ justifyContent: 'center',
422
+ alignItems: 'center',
423
+ marginBottom: 12,
424
+ gap: 8
425
+ },
426
+ filterButton: {
427
+ paddingHorizontal: 12,
428
+ paddingVertical: 6,
429
+ borderRadius: 6,
430
+ backgroundColor: '#F3F4F6'
431
+ },
432
+ filterButtonActive: {
433
+ backgroundColor: '#6366F1'
434
+ },
435
+ filterButtonText: {
436
+ fontSize: 12,
437
+ fontWeight: '600',
438
+ color: '#6B7280'
439
+ },
440
+ filterButtonTextActive: {
441
+ color: '#FFFFFF'
442
+ },
443
+ legend: {
444
+ flexDirection: 'row',
445
+ justifyContent: 'center',
446
+ alignItems: 'center',
447
+ marginBottom: 16,
448
+ gap: 20
449
+ },
450
+ legendItem: {
451
+ flexDirection: 'row',
452
+ alignItems: 'center',
453
+ gap: 6
454
+ },
455
+ legendDot: {
456
+ width: 10,
457
+ height: 10,
458
+ borderRadius: 5
459
+ },
460
+ legendLabel: {
461
+ fontSize: 12,
462
+ color: '#6B7280',
463
+ fontWeight: '500'
464
+ },
465
+ legendValue: {
466
+ fontSize: 14,
467
+ fontWeight: 'bold'
468
+ },
469
+ legendChange: {
470
+ fontSize: 11,
471
+ fontWeight: '600'
472
+ },
473
+ inlineLabelsContainer: {
474
+ position: 'absolute',
475
+ right: 0,
476
+ top: 0,
477
+ bottom: 0,
478
+ pointerEvents: 'none'
479
+ },
480
+ inlineLabel: {
481
+ position: 'absolute',
482
+ flexDirection: 'row',
483
+ alignItems: 'center'
484
+ },
485
+ inlineLabelContent: {
486
+ paddingHorizontal: 8,
487
+ paddingVertical: 4,
488
+ alignItems: 'flex-end',
489
+ borderRadius: 6
490
+ },
491
+ inlineLabelText: {
492
+ fontSize: 12,
493
+ fontWeight: '700',
494
+ marginBottom: 2,
495
+ textAlign: 'right'
496
+ },
497
+ inlineLabelValue: {
498
+ fontSize: 14,
499
+ fontWeight: 'bold',
500
+ textAlign: 'right'
501
+ }
502
+ });
503
+ var _default = exports.default = LivePriceChart;
504
+ //# sourceMappingURL=LivePriceChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Themed","_BaseLineChart","_interopRequireDefault","_chartTheme","_formatters","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LivePriceChart","data","height","width","animated","showTooltip","showLegend","legendPosition","showTimeFilter","initialTimeFilter","yAxisPrefix","yAxisSuffix","yAxisLabelCount","xAxisLabelCount","showYAxis","showXAxis","yAxisColor","xAxisColor","yAxisThickness","xAxisThickness","yAxisTextColor","xAxisTextColor","gridColor","showGrid","timeRange","onPointPress","yMin","yMax","useFixedYRange","spacing","backgroundColor","displayAsPercentage","hideDataPointText","containerWidth","setContainerWidth","useState","Dimensions","containerHeight","setContainerHeight","selectedTimeFilter","setSelectedTimeFilter","handleLayout","event","layoutWidth","layoutHeight","nativeEvent","layout","yAxisOffset","inlineLabelOffset","legendHeight","filterHeight","availableHeight","Math","max","availableTimeFilters","useMemo","allTimestamps","flatMap","series","map","point","timestamp","length","minTime","min","maxTime","spanMs","now","Date","filters","todayStart","setHours","getTime","push","filteredData","filter","start","end","startTime","endTime","today","calculatedSpacing","undefined","dataPointCount","chartWidth","effectiveWidth","buffer","availableWidth","calculatedValue","yBounds","allValues","value","bounds","calculateNiceYBounds","enhancedData","index","minLabelSpacing","maxLabelsWeCanFit","floor","labelInterval","ceil","shouldLabel","label","getSmartTimeLabel","currentPrices","latestPoint","rawValue","displayValue","change","calculatePriceChange","displayChange","displayLabel","color","handlePointPress","item","seriesIndex","findIndex","s","some","p","getFilterLabel","createElement","View","transparent","style","styles","container","flex","onLayout","timeFilterContainer","TouchableOpacity","key","onPress","filterButton","filterButtonActive","Text","filterButtonText","filterButtonTextActive","legend","price","legendItem","legendDot","legendLabel","legendValue","formatPrice","legendChange","defaultChartTheme","success","error","abs","toFixed","position","paddingBottom","overflow","marginLeft","Platform","OS","onDataPointClick","inlineLabelsContainer","totalLabels","labelHeight","totalHeight","startY","yPosition","inlineLabel","top","right","type","inlineLabelContent","inlineLabelText","inlineLabelValue","round","first","last","StyleSheet","create","flexDirection","justifyContent","alignItems","marginBottom","gap","paddingHorizontal","paddingVertical","borderRadius","fontSize","fontWeight","bottom","pointerEvents","textAlign","_default","exports"],"sourceRoot":"../../../../src","sources":["Charts/components/LivePriceChart.tsx"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAA2F,SAAAI,u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A/M,OAAA,GAEYiB,cAAc","ignoreList":[]}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BaseLineChart", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BaseLineChart.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "LivePriceChart", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _LivePriceChart.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "TradeChartAdapter", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _TradeChartAdapter.TradeChartAdapter;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "calculateNiceYBounds", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _formatters.calculateNiceYBounds;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "chartDimensions", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _chartTheme.chartDimensions;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "darkChartTheme", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _chartTheme.darkChartTheme;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "defaultChartTheme", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _chartTheme.defaultChartTheme;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "formatCurrency", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _formatters.formatCurrency;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "formatDate", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _formatters.formatDate;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "formatLargeNumber", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _formatters.formatLargeNumber;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "formatPercentage", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _formatters.formatPercentage;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "formatPrice", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _formatters.formatPrice;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "formatROI", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _formatters.formatROI;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "formatTime", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _formatters.formatTime;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "generateYAxisLabels", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _formatters.generateYAxisLabels;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "getAwayHomeGradients", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _chartTheme.getAwayHomeGradients;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "getSmartTimeLabel", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _formatters.getSmartTimeLabel;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "gradients", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _chartTheme.gradients;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "lineChartStyles", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _chartTheme.lineChartStyles;
118
+ }
119
+ });
120
+ var _LivePriceChart = _interopRequireDefault(require("./components/LivePriceChart"));
121
+ var _BaseLineChart = _interopRequireDefault(require("./components/BaseLineChart"));
122
+ var _TradeChartAdapter = require("./adapters/TradeChartAdapter");
123
+ var _chartTheme = require("./themes/chartTheme");
124
+ var _formatters = require("./utils/formatters");
125
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
126
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_LivePriceChart","_interopRequireDefault","require","_BaseLineChart","_TradeChartAdapter","_chartTheme","_formatters","e","__esModule","default"],"sourceRoot":"../../../src","sources":["Charts/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,sBAAA,CAAAC,OAAA;AAGA,IAAAE,kBAAA,GAAAF,OAAA;AAcA,IAAAG,WAAA,GAAAH,OAAA;AAUA,IAAAI,WAAA,GAAAJ,OAAA;AAW4B,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}