be-components 1.4.9 → 1.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 (214) hide show
  1. package/lib/commonjs/Competition/api/index.js +15 -0
  2. package/lib/commonjs/Competition/api/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
  4. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/SeasonCard.js +61 -0
  6. package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -0
  7. package/lib/commonjs/Competition/index.js +23 -3
  8. package/lib/commonjs/Competition/index.js.map +1 -1
  9. package/lib/commonjs/CompetitionManager/api/index.js +3 -5
  10. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  11. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +1 -61
  12. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  13. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  14. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  15. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +4 -0
  16. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  17. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  18. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  19. package/lib/commonjs/CompetitionSeason/api/index.js +134 -0
  20. package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -0
  21. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +127 -0
  22. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  23. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +253 -0
  24. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  25. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +126 -0
  26. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  27. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +324 -0
  28. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  29. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +175 -0
  30. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  31. package/lib/commonjs/CompetitionSeason/index.js +278 -0
  32. package/lib/commonjs/CompetitionSeason/index.js.map +1 -0
  33. package/lib/commonjs/CompetitionSeasonManager/api/index.js +182 -0
  34. package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -0
  35. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  36. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  37. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +153 -0
  38. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  39. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +388 -0
  40. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  41. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +108 -0
  42. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  43. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +242 -0
  44. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  45. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +352 -0
  46. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  47. package/lib/commonjs/CompetitionSeasonManager/index.js +190 -0
  48. package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -0
  49. package/lib/commonjs/Components/Switch.js +3 -0
  50. package/lib/commonjs/Components/Switch.js.map +1 -1
  51. package/lib/commonjs/Engage/api/index.js +25 -0
  52. package/lib/commonjs/Engage/api/index.js.map +1 -1
  53. package/lib/commonjs/Engage/components/SeasonCard.js +78 -0
  54. package/lib/commonjs/Engage/components/SeasonCard.js.map +1 -0
  55. package/lib/commonjs/Engage/index.js +52 -1
  56. package/lib/commonjs/Engage/index.js.map +1 -1
  57. package/lib/commonjs/index.js +14 -0
  58. package/lib/commonjs/index.js.map +1 -1
  59. package/lib/module/Competition/api/index.js +15 -0
  60. package/lib/module/Competition/api/index.js.map +1 -1
  61. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  62. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  63. package/lib/module/Competition/components/SeasonCard.js +54 -0
  64. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  65. package/lib/module/Competition/index.js +23 -3
  66. package/lib/module/Competition/index.js.map +1 -1
  67. package/lib/module/CompetitionManager/api/index.js +3 -5
  68. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  69. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  70. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  71. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  72. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  73. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  74. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  75. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  76. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  77. package/lib/module/CompetitionSeason/api/index.js +128 -0
  78. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  79. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  80. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  81. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  82. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  83. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  84. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  85. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  86. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  87. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  88. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  89. package/lib/module/CompetitionSeason/index.js +269 -0
  90. package/lib/module/CompetitionSeason/index.js.map +1 -0
  91. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  92. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  93. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  94. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  95. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  96. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  97. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  98. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  100. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  101. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  102. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  103. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  104. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  105. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  106. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  107. package/lib/module/Components/Switch.js +3 -0
  108. package/lib/module/Components/Switch.js.map +1 -1
  109. package/lib/module/Engage/api/index.js +25 -0
  110. package/lib/module/Engage/api/index.js.map +1 -1
  111. package/lib/module/Engage/components/SeasonCard.js +71 -0
  112. package/lib/module/Engage/components/SeasonCard.js.map +1 -0
  113. package/lib/module/Engage/index.js +52 -1
  114. package/lib/module/Engage/index.js.map +1 -1
  115. package/lib/module/index.js +3 -1
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  118. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  119. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  120. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  121. package/lib/typescript/src/Competition/index.d.ts +3 -2
  122. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  123. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  124. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  125. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  126. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  127. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  128. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  129. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  130. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  131. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  133. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  135. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  137. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  139. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  141. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  143. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  150. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  151. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  152. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  153. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  154. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  155. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  156. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  157. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  158. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  159. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  160. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  161. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  162. package/lib/typescript/src/Engage/api/index.d.ts +6 -1
  163. package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
  164. package/lib/typescript/src/Engage/components/SeasonCard.d.ts +10 -0
  165. package/lib/typescript/src/Engage/components/SeasonCard.d.ts.map +1 -0
  166. package/lib/typescript/src/Engage/index.d.ts +3 -2
  167. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  168. package/lib/typescript/src/index.d.ts +3 -1
  169. package/lib/typescript/src/index.d.ts.map +1 -1
  170. package/package.json +1 -1
  171. package/src/Competition/api/index.ts +15 -0
  172. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  173. package/src/Competition/components/SeasonCard.tsx +46 -0
  174. package/src/Competition/index.tsx +45 -27
  175. package/src/CompetitionManager/api/index.ts +2 -5
  176. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  177. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  178. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  179. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  180. package/src/CompetitionSeason/api/index.ts +111 -0
  181. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  182. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  183. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  184. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  185. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  186. package/src/CompetitionSeason/index.tsx +244 -0
  187. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  188. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  189. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  190. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  191. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  192. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  193. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  194. package/src/CompetitionSeasonManager/index.tsx +151 -0
  195. package/src/Components/Switch.tsx +8 -3
  196. package/src/Engage/api/index.ts +21 -2
  197. package/src/Engage/components/SeasonCard.tsx +42 -0
  198. package/src/Engage/index.tsx +44 -7
  199. package/src/index.tsx +4 -1
  200. package/src/types.d.ts +48 -5
  201. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  202. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  203. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  204. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  205. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  206. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  207. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  208. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  209. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  210. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  211. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  212. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  213. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  214. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { CompetitionPlayerProps, CompetitionSeasonProps } from "../../types";
3
+ type SeasonCardProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ authenticated_competition_player?: CompetitionPlayerProps;
6
+ onViewSeason: (competition_season: CompetitionSeasonProps) => void;
7
+ };
8
+ declare const SeasonCard: ({ competition_season, authenticated_competition_player, onViewSeason }: SeasonCardProps) => React.JSX.Element;
9
+ export default SeasonCard;
10
+ //# sourceMappingURL=SeasonCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonCard.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/SeasonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAKjF,KAAK,eAAe,GAAG;IACnB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gCAAgC,CAAC,EAAC,sBAAsB,CAAC;IACzD,YAAY,EAAE,CAAC,kBAAkB,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACpE,CAAA;AAED,QAAA,MAAM,UAAU,2EAA2E,eAAe,sBA8BzG,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { BEEventProps } from '../Observer/api/types';
3
- import type { CompetitionProps } from '../types';
3
+ import type { CompetitionProps, CompetitionSeasonProps } from '../types';
4
4
  type CompetitionModuleProps = {
5
5
  player_id?: string;
6
6
  competition_id: string;
@@ -9,7 +9,8 @@ type CompetitionModuleProps = {
9
9
  onManageCompetition: (competition_id: string) => void;
10
10
  onRequestAuthentication: (auth_strategy_id?: string) => void;
11
11
  onShareCompetition: (competition: CompetitionProps) => void;
12
+ onViewCompetitionSeason: (cs: CompetitionSeasonProps) => void;
12
13
  };
13
- declare const CompetitionModule: ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose }: CompetitionModuleProps) => React.JSX.Element;
14
+ declare const CompetitionModule: ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }: CompetitionModuleProps) => React.JSX.Element;
14
15
  export default CompetitionModule;
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Competition/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KA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AC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CAC9D,CAAA;AAED,QAAA,MAAM,iBAAiB,sIAAsI,sBAAsB,sBAilBlL,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -37,7 +37,7 @@ declare const ManageCompetitionApi: {
37
37
  }>;
38
38
  getMyBalance: () => Promise<PlayerBalanceProps>;
39
39
  getTemplateCompetitions: () => Promise<CompetitionProps[]>;
40
- createCompetition: (company_id?: string, sponsor_id?: string, competition_name?: string, template_competition_id?: string) => Promise<CompetitionProps>;
40
+ createCompetition: (company_id?: string, sponsor_id?: string, competition_name?: string, template_competition_id?: string, competition_season_id?: string) => Promise<CompetitionProps>;
41
41
  updateCompetition: (competition: CompetitionProps) => Promise<CompetitionProps>;
42
42
  searchPlayers: (search_value: string, offset: number) => Promise<PublicPlayerProps[]>;
43
43
  activateCompetition: (competition_id: string) => Promise<CompetitionProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzgB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAOxE,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,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,KAAE,2BAA2B;IAiBpG;;;;;OAKG;yBACiB,MAAM,YAAW,MAAM,KAAE,MAAM;0BAK7B,MAAM,UAAS,WAAW,KAAE,MAAM;oCAMxB,MAAM;mDAWS,MAAM;+BAa5B,gBAAgB;uCA8BP,gBAAgB,uBAAsB,qBAAqB,EAAE,6BAA4B,2BAA2B,EAAE,UAAS,UAAU,EAAE;oBAKrI,MAAM;eAAQ,MAAM;;gCAuBhC,gBAAgB;oCAUZ,gBAAgB,MAAK,oBAAoB,MAAK,0BAA0B;gCAQ5E,gBAAgB,oBAAmB,oBAAoB,2BAA0B,0BAA0B;mCAkBxG,gBAAgB,uBAAsB,qBAAqB,EAAE,6BAA4B,2BAA2B,EAAE,UAAS,UAAU,EAAE;yBAarJ,MAAM,KAAE,MAAM;CAclC,CAAA;AAED,eAAO,MAAM,kBAAkB,UAO9B,CAAA;AAED,eAAO,MAAM,oBAAoB,UAIhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CompetitionInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMnE,KAAK,wBAAwB,GAAG;IAC5B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAA;CAC7D,CAAA;AAED,QAAA,MAAM,mBAAmB,kEAAkE,wBAAwB,sBA+GlH,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"CompetitionInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMnE,KAAK,wBAAwB,GAAG;IAC5B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAA;CAC7D,CAAA;AAED,QAAA,MAAM,mBAAmB,kEAAkE,wBAAwB,sBAiHlH,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CompetitionSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionSettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAQnG,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,YAAY,EAAC,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACnD,CAAA;AAID,QAAA,MAAM,uBAAuB,0GAA2G,4BAA4B,sBA0KnK,CAAA;AAED,eAAe,uBAAuB,CAAA"}
1
+ {"version":3,"file":"CompetitionSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionSettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAQnG,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,YAAY,EAAC,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACnD,CAAA;AAID,QAAA,MAAM,uBAAuB,0GAA2G,4BAA4B,sBAiLnK,CAAA;AAED,eAAe,uBAAuB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContestSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSettingsForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO1I,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,WAAW,EAAC,gBAAgB,CAAC;IAC7B,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,qIAAqI,wBAAwB,sBA2JrL,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"ContestSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSettingsForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO1I,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,WAAW,EAAC,gBAAgB,CAAC;IAC7B,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,qIAAqI,wBAAwB,sBAiKrL,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -1,11 +1,12 @@
1
- import type { CompetitionProps } from "../../types";
1
+ import type { CompetitionProps, CompetitionSeasonProps } from "../../types";
2
2
  import React from 'react';
3
3
  type CreateCompetitionFormProps = {
4
4
  width: number;
5
+ competition_season?: CompetitionSeasonProps;
5
6
  max_height?: number;
6
7
  onCreate: (competition: CompetitionProps) => void;
7
8
  onClose: () => void;
8
9
  };
9
- declare const CreateCompetitionForm: ({ width, max_height, onCreate, onClose }: CreateCompetitionFormProps) => React.JSX.Element;
10
+ declare const CreateCompetitionForm: ({ competition_season, width, max_height, onCreate, onClose }: CreateCompetitionFormProps) => React.JSX.Element;
10
11
  export default CreateCompetitionForm;
11
12
  //# sourceMappingURL=CreateCompetitionForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCompetitionForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CreateCompetitionForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,KAAK,0BAA0B,GAAG;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,qBAAqB,6CAA6C,0BAA0B,sBAsNjG,CAAA;AAED,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"CreateCompetitionForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CreateCompetitionForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACzF,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,KAAK,0BAA0B,GAAG;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAC,sBAAsB,CAAC;IAC3C,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,qBAAqB,iEAAiE,0BAA0B,sBAqOrH,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,41 @@
1
+ import type { CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonPlayerProps, CompetitionSeasonProps, CompetitionSeasonResultProps, CompetitionTypeProps, MyPlayerProps, PlayerBalanceProps, PublicPlayerProps } from "../../types";
2
+ export { SeasonApi, SeasonHelpers };
3
+ declare const SeasonApi: {
4
+ setEnvironment: () => void;
5
+ getPlayersByPlayerIds: (player_ids: string[]) => Promise<PublicPlayerProps[]>;
6
+ getCompaniesByIds: (company_ids: string[]) => Promise<CompanyProps[]>;
7
+ getMyDetails: () => Promise<MyPlayerProps>;
8
+ getMyBalance: () => Promise<PlayerBalanceProps>;
9
+ getSeasonById: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
10
+ getCompetitionsBySeasonId: (competition_season_id: string) => Promise<CompetitionProps[]>;
11
+ getCompetitionOptions: () => Promise<{
12
+ competition_types: CompetitionTypeProps[];
13
+ competition_result_types: CompetitionResultTypeProps[];
14
+ competition_payout_types: CompetitionPayoutTypeProps[];
15
+ }>;
16
+ getSeasonPlayersBySeasonId: (competition_season_id: string, offset: number) => Promise<{
17
+ competition_season_players: CompetitionSeasonPlayerProps[];
18
+ competition_season_results: CompetitionSeasonResultProps[];
19
+ }>;
20
+ joinSeason: (competition_season_id: string) => Promise<{
21
+ competition_season: CompetitionSeasonProps;
22
+ competition_season_player: CompetitionSeasonPlayerProps;
23
+ competition_season_result: CompetitionSeasonResultProps;
24
+ competitions: CompetitionProps[];
25
+ }>;
26
+ leaveSeason: (competition_season_player_id: string) => Promise<{
27
+ competition_season: CompetitionSeasonProps;
28
+ competition_season_player: CompetitionSeasonPlayerProps;
29
+ competition_season_result: CompetitionSeasonResultProps;
30
+ competitions: CompetitionProps[];
31
+ }>;
32
+ };
33
+ declare const SeasonHelpers: {
34
+ canJoin: (competition_season: CompetitionSeasonProps, competitions: CompetitionProps[]) => boolean;
35
+ getPayoutAmounts: (competition_season: CompetitionSeasonProps) => {
36
+ season_payout: number;
37
+ competition_payout: number;
38
+ };
39
+ formatPlace: (place: number) => string;
40
+ };
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,4BAA4B,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1,14 @@
1
+ import React from 'react';
2
+ import type { CompanyProps, CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, PublicPlayerProps } from "../../types";
3
+ type CompetitionsSectionProps = {
4
+ width: number;
5
+ competitions: CompetitionProps[];
6
+ competition_result_type: CompetitionResultTypeProps;
7
+ competition_type: CompetitionTypeProps;
8
+ admin?: PublicPlayerProps;
9
+ company?: CompanyProps;
10
+ onCompetitionSelect: (c: CompetitionProps) => void;
11
+ };
12
+ declare const CompetitionsSection: ({ competitions, width, admin, company, competition_result_type, competition_type, onCompetitionSelect }: CompetitionsSectionProps) => React.JSX.Element;
13
+ export default CompetitionsSection;
14
+ //# sourceMappingURL=CompetitionsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompetitionsSection.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/CompetitionsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAOtI,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAC,MAAM,CAAC;IACb,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,uBAAuB,EAAC,0BAA0B,CAAC;IACnD,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,KAAK,CAAC,EAAC,iBAAiB,CAAC;IACzB,OAAO,CAAC,EAAC,YAAY,CAAC;IACtB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACnD,CAAA;AAED,QAAA,MAAM,mBAAmB,4GAA4G,wBAAwB,sBA6E5J,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, MyPlayerProps, PlayerBalanceProps } from "../../types";
3
+ type EnterSeasonPromptProps = {
4
+ player?: MyPlayerProps;
5
+ player_balance?: PlayerBalanceProps;
6
+ competition_season: CompetitionSeasonProps;
7
+ competition_type: CompetitionTypeProps;
8
+ competition_result_type: CompetitionResultTypeProps;
9
+ width: number;
10
+ onVerify: () => void;
11
+ onCancel: () => void;
12
+ onEnter: (promo_balance?: boolean) => void;
13
+ };
14
+ declare const EnterSeasonPrompt: ({ player, player_balance, competition_season, competition_type, competition_result_type, width, onCancel, onEnter, onVerify }: EnterSeasonPromptProps) => React.JSX.Element;
15
+ export default EnterSeasonPrompt;
16
+ //# sourceMappingURL=EnterSeasonPrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterSeasonPrompt.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/EnterSeasonPrompt.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAO9I,KAAK,sBAAsB,GAAG;IAC1B,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,cAAc,CAAC,EAAC,kBAAkB,CAAC;IACnC,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,uBAAuB,EAAC,0BAA0B,CAAC;IACnD,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,CAAC,aAAa,CAAC,EAAC,OAAO,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED,QAAA,MAAM,iBAAiB,kIAAkI,sBAAsB,sBA8G9K,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { CompetitionProps, CompetitionSeasonPlayerProps, CompetitionSeasonProps, MyPlayerProps } from '../../types';
3
+ type SeasonHeaderProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ competitions: CompetitionProps[];
6
+ player?: MyPlayerProps;
7
+ action_loading: boolean;
8
+ authenticated_season_player?: CompetitionSeasonPlayerProps;
9
+ onShareSeason: (cs: CompetitionSeasonProps) => void;
10
+ onJoin: (competition_season: CompetitionSeasonProps) => void;
11
+ onLeave: (competition_season_player_id: string) => void;
12
+ };
13
+ declare const SeasonHeader: ({ action_loading, authenticated_season_player, competition_season, competitions, onShareSeason, onJoin, onLeave }: SeasonHeaderProps) => React.JSX.Element;
14
+ export default SeasonHeader;
15
+ //# sourceMappingURL=SeasonHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonHeader.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/SeasonHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKzH,KAAK,iBAAiB,GAAG;IACrB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,cAAc,EAAC,OAAO,CAAC;IACvB,2BAA2B,CAAC,EAAC,4BAA4B,CAAC;IAC1D,aAAa,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAC;IAClD,MAAM,EAAC,CAAC,kBAAkB,EAAC,sBAAsB,KAAK,IAAI,CAAC;IAC3D,OAAO,EAAC,CAAC,4BAA4B,EAAC,MAAM,KAAK,IAAI,CAAA;CAExD,CAAA;AACD,QAAA,MAAM,YAAY,sHAAsH,iBAAiB,sBA2DxJ,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { CompetitionSeasonPlayerProps, CompetitionSeasonProps, CompetitionSeasonResultProps, CompetitionTypeProps, MyPlayerProps, PublicPlayerProps } from "../../types";
3
+ type SeasonLeaderboardProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ competition_type: CompetitionTypeProps;
6
+ height: number;
7
+ authenticated_player?: MyPlayerProps;
8
+ authenticated_season_player?: CompetitionSeasonPlayerProps;
9
+ authenticated_season_result?: CompetitionSeasonResultProps;
10
+ width: number;
11
+ view_mode: 'short' | 'full';
12
+ onClose?: () => void;
13
+ onSeeFull: () => void;
14
+ onLeaderSelect: (player: PublicPlayerProps) => void;
15
+ };
16
+ declare const SeasonLeaderboard: ({ competition_season, authenticated_player, authenticated_season_player, authenticated_season_result, competition_type, width, height, view_mode, onSeeFull, onClose, onLeaderSelect }: SeasonLeaderboardProps) => React.JSX.Element;
17
+ export default SeasonLeaderboard;
18
+ //# sourceMappingURL=SeasonLeaderboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/SeasonLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAM7K,KAAK,sBAAsB,GAAG;IAC1B,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAC,aAAa,CAAC;IACpC,2BAA2B,CAAC,EAAC,4BAA4B,CAAC;IAC1D,2BAA2B,CAAC,EAAC,4BAA4B,CAAC;IAC1D,KAAK,EAAC,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,GAAC,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAC,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,iBAAiB,2LAA2L,sBAAsB,sBAoLvO,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionPayoutTypeProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from "../../types";
3
+ type SeasonSettingsSectionProps = {
4
+ width: number;
5
+ competition_season: CompetitionSeasonProps;
6
+ competition_type: CompetitionTypeProps;
7
+ competition_result_type: CompetitionResultTypeProps;
8
+ competition_payouts: CompetitionPayoutTypeProps[];
9
+ };
10
+ declare const SeasonSettingsSection: ({ width, competition_season, competition_type, competition_result_type, competition_payouts }: SeasonSettingsSectionProps) => React.JSX.Element;
11
+ export default SeasonSettingsSection;
12
+ //# sourceMappingURL=SeasonSettingsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonSettingsSection.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/SeasonSettingsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMvI,KAAK,0BAA0B,GAAG;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,uBAAuB,EAAC,0BAA0B,CAAC;IACnD,mBAAmB,EAAC,0BAA0B,EAAE,CAAA;CACnD,CAAA;AAED,QAAA,MAAM,qBAAqB,kGAAkG,0BAA0B,sBAwEtJ,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionProps, CompetitionSeasonProps } from '../types';
3
+ type SeasonModuleProps = {
4
+ competition_season_id: string;
5
+ onShareSeason: (competition_season: CompetitionSeasonProps) => void;
6
+ player_id?: string;
7
+ onRequestAuthenticate: (auth_strategy_id?: string) => void;
8
+ onCompetitionSelect: (c: CompetitionProps) => void;
9
+ };
10
+ declare const SeasonModule: ({ competition_season_id, player_id, onShareSeason, onRequestAuthenticate, onCompetitionSelect }: SeasonModuleProps) => React.JSX.Element;
11
+ export default SeasonModule;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionSeason/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAA4C,gBAAgB,EAA4D,sBAAsB,EAA4G,MAAM,UAAU,CAAC;AASvR,KAAK,iBAAiB,GAAG;IACrB,qBAAqB,EAAC,MAAM,CAAC;IAC7B,aAAa,EAAE,CAAC,kBAAkB,EAAC,sBAAsB,KAAK,IAAI,CAAC;IACnE,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,qBAAqB,EAAE,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC1D,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,YAAY,oGAAoG,iBAAiB,sBA8NtI,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, MyPlayerProps } from "../../types";
2
+ import type { CompanyMemberProps } from "../../Authenticator/api/types";
3
+ export { ManageSeasonApi, ManageSeasonHelpers };
4
+ declare const ManageSeasonApi: {
5
+ setEnvironment: () => void;
6
+ getCompetitionOptions: () => Promise<{
7
+ competition_types: CompetitionTypeProps[];
8
+ competition_result_types: CompetitionResultTypeProps[];
9
+ competition_payout_types: CompetitionPayoutTypeProps[];
10
+ }>;
11
+ getSeasonTemplates: () => Promise<CompetitionSeasonProps[]>;
12
+ getMyDetails: () => Promise<MyPlayerProps>;
13
+ getMyCompanies: () => Promise<{
14
+ companies: CompanyProps[];
15
+ company_members: CompanyMemberProps[];
16
+ }>;
17
+ activateSeason: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
18
+ deleteSeason: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
19
+ getSeasonById: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
20
+ getCompetitionsBySeasonId: (competition_season_id: string) => Promise<CompetitionProps[]>;
21
+ createSeason: (competition_season: CompetitionSeasonProps) => Promise<CompetitionSeasonProps>;
22
+ updateSeason: (competition_season: CompetitionSeasonProps) => Promise<CompetitionSeasonProps>;
23
+ };
24
+ declare const ManageSeasonHelpers: {
25
+ getPendingSeason: () => CompetitionSeasonProps;
26
+ isSeasonValid: (cs: CompetitionSeasonProps) => string[];
27
+ isInfoChanged: (cs: CompetitionSeasonProps, ds: CompetitionSeasonProps) => boolean;
28
+ isSettingsChanged: (cs: CompetitionSeasonProps, ds: CompetitionSeasonProps) => boolean;
29
+ isSettingsValid: (ds: CompetitionSeasonProps) => boolean;
30
+ };
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACvL,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAA;AAE/C,QAAA,MAAM,eAAe;;iCAQc,QAAQ;QAAC,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;QAAC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;QAAC,wBAAwB,EAAC,0BAA0B,EAAE,CAAA;KAAC,CAAC;8BAIpK,QAAQ,sBAAsB,EAAE,CAAC;wBAIvC,QAAQ,aAAa,CAAC;0BAInB,QAAQ;QAAC,SAAS,EAAC,YAAY,EAAE,CAAC;QAAC,eAAe,EAAC,kBAAkB,EAAE,CAAA;KAAC,CAAC;4CAKtD,MAAM,KAAE,QAAQ,sBAAsB,CAAC;0CAIzC,MAAM,KAAE,QAAQ,sBAAsB,CAAC;2CAItC,MAAM,KAAE,QAAQ,sBAAsB,CAAC;uDAI3B,MAAM,KAAE,QAAQ,gBAAgB,EAAE,CAAC;uCAInD,sBAAsB,KAAE,QAAQ,sBAAsB,CAAC;uCAKvD,sBAAsB,KAAE,QAAQ,sBAAsB,CAAC;CAIjG,CAAA;AAGD,QAAA,MAAM,mBAAmB;4BACA,sBAAsB;wBA6BxB,sBAAsB,KAAE,MAAM,EAAE;wBAMhC,sBAAsB,MAAK,sBAAsB;4BAK7C,sBAAsB,MAAK,sBAAsB;0BAKnD,sBAAsB;CAY9C,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=CompetitionSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompetitionSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CompetitionSelector.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from '../../types';
3
+ type CompetitionsFormProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ competitions: CompetitionProps[];
6
+ competition_types: CompetitionTypeProps[];
7
+ competition_result_types: CompetitionResultTypeProps[];
8
+ onAddCompetition: () => void;
9
+ };
10
+ declare const CompetitionsForm: ({ competition_season, competitions, competition_result_types, competition_types, onAddCompetition }: CompetitionsFormProps) => React.JSX.Element;
11
+ export default CompetitionsForm;
12
+ //# sourceMappingURL=CompetitionsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompetitionsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CompetitionsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAM9H,KAAK,qBAAqB,GAAG;IACzB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,gBAAgB,EAAC,MAAM,IAAI,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,gBAAgB,wGAAwG,qBAAqB,sBA6FlJ,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps } from '../../types';
3
+ type CreateSeasonFormProps = {
4
+ width: number;
5
+ max_height?: number;
6
+ onCreateSeason: (cs: CompetitionSeasonProps) => void;
7
+ onClose: () => void;
8
+ };
9
+ declare const CreateSeasonForm: ({ width, max_height, onCreateSeason, onClose }: CreateSeasonFormProps) => React.JSX.Element;
10
+ export default CreateSeasonForm;
11
+ //# sourceMappingURL=CreateSeasonForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSeasonForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CreateSeasonForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIxE,KAAK,qBAAqB,GAAG;IACzB,KAAK,EAAC,MAAM,CAAC;IACb,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,cAAc,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,gBAAgB,mDAAmD,qBAAqB,sBA4N7F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps } from '../../types';
3
+ type CompetitionHeaderProps = {
4
+ width: number;
5
+ action_loading: boolean;
6
+ competition_season: CompetitionSeasonProps;
7
+ season_valid: boolean;
8
+ onDelete: () => void;
9
+ onActivate: () => void;
10
+ };
11
+ declare const SeasonHeader: ({ width, action_loading, competition_season, season_valid, onDelete, onActivate }: CompetitionHeaderProps) => React.JSX.Element;
12
+ export default SeasonHeader;
13
+ //# sourceMappingURL=SeasonHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonHeader.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAK1D,KAAK,sBAAsB,GAAG;IAC1B,KAAK,EAAC,MAAM,CAAC;IACb,cAAc,EAAC,OAAO,CAAC;IACvB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,YAAY,EAAC,OAAO,CAAC;IACrB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,YAAY,sFAAsF,sBAAsB,sBAwD7H,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps, MyPlayerProps } from '../../types';
3
+ type SeasonInfoFormProps = {
4
+ width: number;
5
+ player?: MyPlayerProps;
6
+ competition_season: CompetitionSeasonProps;
7
+ onSeasonUpdate: (cs: CompetitionSeasonProps) => void;
8
+ };
9
+ declare const SeasonInfoForm: ({ competition_season, player, width, onSeasonUpdate }: SeasonInfoFormProps) => React.JSX.Element;
10
+ export default SeasonInfoForm;
11
+ //# sourceMappingURL=SeasonInfoForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGzE,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,cAAc,EAAE,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,QAAA,MAAM,cAAc,0DAA0D,mBAAmB,sBAyGhG,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from '../../types';
3
+ type SeasonSettingsFormProps = {
4
+ width: number;
5
+ competition_season: CompetitionSeasonProps;
6
+ competition_types: CompetitionTypeProps[];
7
+ competition_result_types: CompetitionResultTypeProps[];
8
+ onSeasonUpdate: (cs: CompetitionSeasonProps) => void;
9
+ };
10
+ declare const SeasonSettingsForm: ({ competition_season, width, competition_types, competition_result_types, onSeasonUpdate }: SeasonSettingsFormProps) => React.JSX.Element;
11
+ export default SeasonSettingsForm;
12
+ //# sourceMappingURL=SeasonSettingsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI5G,KAAK,uBAAuB,GAAG;IAC3B,KAAK,EAAC,MAAM,CAAC;IACb,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,cAAc,EAAE,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,QAAA,MAAM,kBAAkB,+FAA+F,uBAAuB,sBAqK7I,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type SeasonManagerProps = {
3
+ competition_season_id: string;
4
+ player_id?: string;
5
+ };
6
+ declare const SeasonManager: ({ competition_season_id }: SeasonManagerProps) => React.JSX.Element;
7
+ export default SeasonManager;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionSeasonManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,KAAK,kBAAkB,GAAG;IACtB,qBAAqB,EAAC,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAC,MAAM,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,aAAa,8BAA8B,kBAAkB,sBAoIlE,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  type SwitchProps = {
3
3
  value: boolean;
4
4
  switch_type: 'binary' | 'on_off';
5
+ disabled?: boolean;
5
6
  onChange: (value: boolean) => void;
6
7
  };
7
- declare const Switch: ({ value, switch_type, onChange }: SwitchProps) => React.JSX.Element;
8
+ declare const Switch: ({ value, disabled, switch_type, onChange }: SwitchProps) => React.JSX.Element;
8
9
  export default Switch;
9
10
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/Components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,QAAQ,EAAC,CAAC,KAAK,EAAC,OAAO,KAAK,IAAI,CAAA;CACnC,CAAA;AACD,QAAA,MAAM,MAAM,qCAAqC,WAAW,sBAyC3D,CAAA;AAGD,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/Components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,QAAQ,EAAC,CAAC,KAAK,EAAC,OAAO,KAAK,IAAI,CAAA;CACnC,CAAA;AACD,QAAA,MAAM,MAAM,+CAA+C,WAAW,sBA6CrE,CAAA;AAGD,eAAe,MAAM,CAAA"}
@@ -1,8 +1,9 @@
1
- import type { BracketCompetitionProps, BracketProps, CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, EventProps, LeagueProps, PublicPlayerProps, SquaresCompetitionProps } from '../../types';
1
+ import type { BracketCompetitionProps, BracketProps, CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, EventProps, LeagueProps, PublicPlayerProps, SquaresCompetitionProps } from '../../types';
2
2
  export { EngageApi, EngageHelpers };
3
3
  declare const EngageApi: {
4
4
  setEnvironment: () => void;
5
5
  getActivePublicCompetitions: () => Promise<CompetitionProps[]>;
6
+ getActivePublicSeasons: () => Promise<CompetitionSeasonProps[]>;
6
7
  getActivePublicSquares: () => Promise<SquaresCompetitionProps[]>;
7
8
  getLeagues: () => Promise<LeagueProps[]>;
8
9
  getBracketsByIds: (bracket_ids: string[]) => Promise<BracketProps[]>;
@@ -21,5 +22,9 @@ declare const EngageHelpers: {
21
22
  getPlayerIdsFromEngage: (comps: CompetitionProps[], sq_comps: SquaresCompetitionProps[], brackets: BracketCompetitionProps[]) => string[];
22
23
  getEventIdsFromSquares: (squares: SquaresCompetitionProps[]) => string[];
23
24
  getBracketIdsFromBracketComps: (bc: BracketCompetitionProps[]) => string[];
25
+ getSeasonPayoutAmounts: (competition_season: CompetitionSeasonProps) => {
26
+ season_payout: number;
27
+ competition_payout: number;
28
+ };
24
29
  };
25
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Engage/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,YAAY,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAM5P,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,CAAA;AAEnC,QAAA,MAAM,SAAS;;uCAO0B,QAAQ,gBAAgB,EAAE,CAAC;kCAShC,QAAQ,uBAAuB,EAAE,CAAC;sBAQ9C,QAAQ,WAAW,EAAE,CAAC;oCAUN,MAAM,EAAE,KAAE,QAAQ,YAAY,EAAE,CAAC;qCAWhC,MAAM,EAAE,KAAE,QAAQ,UAAU,EAAE,CAAC;iCASrC,QAAQ;QAAC,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;QAAC,wBAAwB,EAAC,0BAA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MAAM,EAAE,KAAE,QAAQ,YAAY,EAAE,CAAC;wCAU7B,MAAM,EAAE,KAAE,QAAQ,iBAAiB,EAAE,CAAC;CAWlF,CAAA;AAGD,QAAA,MAAM,aAAa;qCACiB,gBAAgB,EAAE,YAAW,uBAAuB,EAAE,YAAW,uBAAuB,EAAE;oCAM3F,gBAAgB,EAAE,YAAW,uBAAuB,EAAE,YAAW,uBAAuB,EAAE;sCAOxF,uBAAuB,EAAE;wCAIvB,uBAAuB,EAAE;iDAIhB,sBAAsB;;;;CASrE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps } from '../../types';
3
+ type SeasonCardProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ width: number;
6
+ onSelectSeason: (cs: CompetitionSeasonProps) => void;
7
+ };
8
+ declare const SeasonCard: ({ competition_season, width, onSelectSeason }: SeasonCardProps) => React.JSX.Element;
9
+ export default SeasonCard;
10
+ //# sourceMappingURL=SeasonCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonCard.d.ts","sourceRoot":"","sources":["../../../../../src/Engage/components/SeasonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAM1D,KAAK,eAAe,GAAG;IACnB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACtD,CAAA;AAGD,QAAA,MAAM,UAAU,kDAAkD,eAAe,sBAwBhF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- import type { BracketCompetitionProps, CompetitionProps, SquaresCompetitionProps } from '../types';
2
+ import type { BracketCompetitionProps, CompetitionProps, CompetitionSeasonProps, SquaresCompetitionProps } from '../types';
3
3
  type EngageModuleProps = {
4
4
  player_id?: string;
5
5
  onSelectCompetition: (c: CompetitionProps) => void;
6
6
  onSelectBracketCompetition: (bc: BracketCompetitionProps) => void;
7
7
  onSelectSquaresCompetition: (sc: SquaresCompetitionProps) => void;
8
+ onSelectCompetitionSeason: (cs: CompetitionSeasonProps) => void;
8
9
  };
9
- declare const EngageModule: ({ onSelectBracketCompetition, onSelectCompetition, onSelectSquaresCompetition }: EngageModuleProps) => React.JSX.Element;
10
+ declare const EngageModule: ({ onSelectBracketCompetition, onSelectCompetition, onSelectSquaresCompetition, onSelectCompetitionSeason }: EngageModuleProps) => React.JSX.Element;
10
11
  export default EngageModule;
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Engage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,uBAAuB,EAA0D,gBAAgB,EAAgG,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAYzP,KAAK,iBAAiB,GAAG;IACrB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChE,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAA;CAClE,CAAA;AAED,QAAA,MAAM,YAAY,oFAAoF,iBAAiB,sBAoQtH,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Engage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,uBAAuB,EAA0D,gBAAgB,EAA8B,sBAAsB,EAAoE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAajR,KAAK,iBAAiB,GAAG;IACrB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChE,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChE,yBAAyB,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CAChE,CAAA;AAED,QAAA,MAAM,YAAY,+GAA+G,iBAAiB,sBAuSjJ,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -22,5 +22,7 @@ import CompetitionManager from "./CompetitionManager";
22
22
  import CreateCompetitionForm from "./CompetitionManager/components/CreateCompetitionForm";
23
23
  import AdminCompetitionList from "./CompetitionManager/components/AdminCompetitionList";
24
24
  import EngageModule from "./Engage";
25
- export { Authenticator, Observer, BEEventApi, BELinkApi, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Checkout, PollCampaign, PollCampaignApi, PollApi, CompetitionModule, CreateCompetitionForm, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule };
25
+ import SeasonManager from "./CompetitionSeasonManager";
26
+ import SeasonModule from "./CompetitionSeason";
27
+ export { Authenticator, Observer, BEEventApi, BELinkApi, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Checkout, PollCampaign, PollCampaignApi, PollApi, CompetitionModule, SeasonManager, CreateCompetitionForm, SeasonModule, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule };
26
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,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AM,sDAAsD,CAAC;AACxF,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACb,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-components",
3
- "version": "1.4.9",
3
+ "version": "1.5.1",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -53,6 +53,10 @@ const CompetitionApi = {
53
53
  const resp = await axios.post(`${AUTH_SVC_API}/v1/players/bulk/get`, { player_ids })
54
54
  return resp.data.players
55
55
  },
56
+ getSeasonById: async(competition_season_id:string):Promise<CompetitionSeasonProps> => {
57
+ const resp = await axios.get(`${TP_SVC_API}/v2/competitions/seasons/season/${competition_season_id}`);
58
+ return resp.data.competition_season
59
+ },
56
60
  getLeagues: async():Promise<LeagueProps[]> => {
57
61
  const resp = await axios.get(`${EVENT_SVC_API}/v1/leagues?status=active`)
58
62
  return resp.data.leagues
@@ -223,6 +227,17 @@ const CompetitionHelpers = {
223
227
  return {
224
228
  competition_season_id:'',
225
229
  season_name:'',
230
+ ticket_price:0,
231
+ max_picks:0,
232
+ ticket_revenue: 0,
233
+ tickets_available:10,
234
+ tickets_sold: 0,
235
+ unallocated_funds: 0,
236
+ competition_type_id: '1',
237
+ expected_competition_count: 0,
238
+ initial_balance: 1000,
239
+ balance_rollover: false,
240
+ invite_only: true,
226
241
  season_description: '',
227
242
  image: { url: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1635988385/be_notify_icon_nqplfc.png' },
228
243
  payout_allocation:0,