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,175 @@
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 _styles = require("../../constants/styles");
10
+ var _Components = require("../../Components");
11
+ var _api = require("../api");
12
+ var _colors = _interopRequireDefault(require("../../constants/colors"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ const SeasonSettingsSection = ({
17
+ width,
18
+ competition_season,
19
+ competition_type,
20
+ competition_result_type,
21
+ competition_payouts
22
+ }) => {
23
+ const [expanded, setExpanded] = (0, _react.useState)(true);
24
+ const {
25
+ season_payout,
26
+ competition_payout
27
+ } = _api.SeasonHelpers.getPayoutAmounts(competition_season);
28
+ const cl = competition_season.market_type == 'FOR_MONEY' ? '$' : 'E';
29
+ const renderPayouts = data => {
30
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
31
+ style: {
32
+ ..._styles.view_styles.body_row,
33
+ padding: 8,
34
+ borderBottomWidth: 1,
35
+ borderColor: _colors.default.shades.shade600
36
+ }
37
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
38
+ style: {
39
+ flex: 1
40
+ },
41
+ theme: "header_2"
42
+ }, _api.SeasonHelpers.formatPlace(data.item.tier), data.item.tier != 1 ? ' Or Better' : ''), /*#__PURE__*/_react.default.createElement(_Components.Text, {
43
+ theme: "header_2"
44
+ }, "Split ", data.item.payout, "%"));
45
+ };
46
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
47
+ style: {
48
+ ..._styles.view_styles.section,
49
+ maxWidth: width
50
+ }
51
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
52
+ style: {
53
+ ..._styles.view_styles.section_header
54
+ },
55
+ onPress: () => setExpanded(!expanded)
56
+ }, /*#__PURE__*/_react.default.createElement(_Components.Icons.SettingsIcon, {
57
+ size: 18,
58
+ color: _colors.default.brand.midnight
59
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
60
+ style: {
61
+ flex: 1,
62
+ marginLeft: 10
63
+ }
64
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
65
+ theme: "header"
66
+ }, "Season Details"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
67
+ style: {
68
+ marginTop: 3
69
+ },
70
+ theme: "body"
71
+ }, "View important details about this season.")), /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
72
+ direction: expanded ? 'up' : 'down',
73
+ size: 8,
74
+ color: _colors.default.brand.midnight
75
+ })), expanded ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
76
+ style: {
77
+ ..._styles.view_styles.section_body
78
+ }
79
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
80
+ style: _styles.view_styles.body_row
81
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
82
+ style: {
83
+ flex: 1
84
+ }
85
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
86
+ theme: "header_2"
87
+ }, "Competition Type"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
88
+ style: {
89
+ marginTop: 3
90
+ },
91
+ theme: "body_2"
92
+ }, "Each competition within this season will use this type")), /*#__PURE__*/_react.default.createElement(_Components.Text, {
93
+ theme: "header"
94
+ }, competition_type.type_label.toUpperCase())), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
95
+ style: _styles.view_styles.body_row
96
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
97
+ style: {
98
+ flex: 1
99
+ }
100
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
101
+ theme: "header_2"
102
+ }, "Season Winner Allocation"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
103
+ style: {
104
+ marginTop: 3
105
+ },
106
+ theme: "body_2"
107
+ }, "How much of the total pot is dedicated to the season winner?")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
108
+ style: {
109
+ justifyContent: 'center',
110
+ alignItems: 'center'
111
+ }
112
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
113
+ theme: "header_2"
114
+ }, cl, season_payout.toFixed(2)), /*#__PURE__*/_react.default.createElement(_Components.Text, {
115
+ style: {
116
+ marginTop: 3
117
+ },
118
+ theme: "body"
119
+ }, (parseFloat(competition_season.payout_allocation) * 100).toFixed(2), "%"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
120
+ style: _styles.view_styles.body_row
121
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
122
+ style: {
123
+ flex: 1
124
+ }
125
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
126
+ theme: "header_2"
127
+ }, "Each Competition Allocation"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
128
+ style: {
129
+ marginTop: 3
130
+ },
131
+ theme: "body_2"
132
+ }, "How much of the total pot is dedicated to each competition winner?")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
133
+ style: {
134
+ justifyContent: 'center',
135
+ alignItems: 'center'
136
+ }
137
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
138
+ theme: "header_2"
139
+ }, cl, competition_payout.toFixed(2)), /*#__PURE__*/_react.default.createElement(_Components.Text, {
140
+ style: {
141
+ marginTop: 3
142
+ },
143
+ theme: "body"
144
+ }, ((1 - parseFloat(competition_season.payout_allocation)) * 100).toFixed(2), "%"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
145
+ style: _styles.view_styles.body_row
146
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
147
+ style: {
148
+ flex: 1
149
+ },
150
+ theme: "header_2"
151
+ }, "Payout Type"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
152
+ theme: "header_2"
153
+ }, competition_result_type.label.toUpperCase())), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
154
+ style: {
155
+ padding: 10,
156
+ borderRadius: 8,
157
+ backgroundColor: _colors.default.shades.shade100
158
+ }
159
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
160
+ style: {
161
+ padding: 5
162
+ },
163
+ theme: "header_2"
164
+ }, competition_result_type.description), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
165
+ style: {
166
+ padding: 10
167
+ }
168
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
169
+ data: competition_payouts.filter(cp => cp.competition_result_type_id == competition_season.competition_result_type_id).sort((a, b) => b.tier - a.tier),
170
+ renderItem: renderPayouts,
171
+ keyExtractor: item => item.competition_payout_type_id.toString()
172
+ })))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
173
+ };
174
+ var _default = exports.default = SeasonSettingsSection;
175
+ //# sourceMappingURL=SeasonSettingsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_Components","_api","_colors","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SeasonSettingsSection","width","competition_season","competition_type","competition_result_type","competition_payouts","expanded","setExpanded","useState","season_payout","competition_payout","SeasonHelpers","getPayoutAmounts","cl","market_type","renderPayouts","data","createElement","View","style","view_styles","body_row","padding","borderBottomWidth","borderColor","Colors","shades","shade600","Text","flex","theme","formatPlace","item","tier","payout","section","maxWidth","TouchableOpacity","section_header","onPress","Icons","SettingsIcon","size","color","brand","midnight","marginLeft","marginTop","ChevronIcon","direction","section_body","type_label","toUpperCase","justifyContent","alignItems","toFixed","parseFloat","payout_allocation","label","borderRadius","backgroundColor","shade100","description","FlatList","filter","cp","competition_result_type_id","sort","b","renderItem","keyExtractor","competition_payout_type_id","toString","Fragment","_default","exports"],"sourceRoot":"../../../../src","sources":["Compet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AAE;MAAEG,OAAO,EAAC,EAAE;MAAEqC,YAAY,EAAC,CAAC;MAAEC,eAAe,EAACnC,eAAM,CAACC,MAAM,CAACmC;IAAS;EAAE,gBAChF3F,MAAA,CAAAW,OAAA,CAAAoC,aAAA,CAAC1C,WAAA,CAAAqD,IAAI;IAACT,KAAK,EAAE;MAAEG,OAAO,EAAC;IAAE,CAAE;IAACQ,KAAK,EAAC;EAAU,GAAE1B,uBAAuB,CAAC0D,WAAkB,CAAC,eACzF5F,MAAA,CAAAW,OAAA,CAAAoC,aAAA,CAAC5C,YAAA,CAAA6C,IAAI;IAACC,KAAK,EAAE;MAAEG,OAAO,EAAC;IAAG;EAAE,gBACxBpD,MAAA,CAAAW,OAAA,CAAAoC,aAAA,CAAC5C,YAAA,CAAA0F,QAAQ;IACL/C,IAAI,EAAEX,mBAAmB,CAAC2D,MAAM,CAACC,EAAE,IAAIA,EAAE,CAACC,0BAA0B,IAAIhE,kBAAkB,CAACgE,0BAA0B,CAAC,CAACC,IAAI,CAAC,CAAC5E,CAAC,EAAC6E,CAAC,KAAKA,CAAC,CAACnC,IAAI,GAAG1C,CAAC,CAAC0C,IAAI,CAAE;IACtJoC,UAAU,EAAEtD,aAAc;IAC1BuD,YAAY,EAAGtC,IAAI,IAAKA,IAAI,CAACuC,0BAA0B,CAACC,QAAQ,CAAC;EAAE,CACtE,CACC,CACJ,CACJ,CAAC,gBACNtG,MAAA,CAAAW,OAAA,CAAAoC,aAAA,CAAA/C,MAAA,CAAAW,OAAA,CAAA4F,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAA9F,OAAA,GAEcmB,qBAAqB","ignoreList":[]}
@@ -0,0 +1,278 @@
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 _colors = _interopRequireDefault(require("../constants/colors"));
10
+ var _SeasonHeader = _interopRequireDefault(require("./components/SeasonHeader"));
11
+ var _api = require("./api");
12
+ var _CompetitionsSection = _interopRequireDefault(require("./components/CompetitionsSection"));
13
+ var _SeasonSettingsSection = _interopRequireDefault(require("./components/SeasonSettingsSection"));
14
+ var _EnterSeasonPrompt = _interopRequireDefault(require("./components/EnterSeasonPrompt"));
15
+ var _SeasonLeaderboard = _interopRequireDefault(require("./components/SeasonLeaderboard"));
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ const SeasonModule = ({
20
+ competition_season_id,
21
+ player_id,
22
+ onShareSeason,
23
+ onRequestAuthenticate,
24
+ onCompetitionSelect
25
+ }) => {
26
+ const [module_size, setModuleSize] = (0, _react.useState)({
27
+ width: 0,
28
+ height: 0
29
+ });
30
+ const [show_leaderboard, setShowLeaderboard] = (0, _react.useState)(false);
31
+ const [show_enter, setShowEnter] = (0, _react.useState)(false);
32
+ const [my_data, setMyData] = (0, _react.useState)({
33
+ my_loading: false
34
+ });
35
+ const [module_data, setData] = (0, _react.useState)({
36
+ loading: false,
37
+ action_loading: false,
38
+ competitions: [],
39
+ offset: 0,
40
+ competition_season_players: [],
41
+ competition_season_results: [],
42
+ competition_types: [],
43
+ players: [],
44
+ competition_result_types: [],
45
+ competition_payout_types: []
46
+ });
47
+ const {
48
+ action_loading,
49
+ competition_season,
50
+ competitions,
51
+ competition_season_players,
52
+ competition_season_results,
53
+ competition_types,
54
+ competition_payout_types,
55
+ competition_result_types
56
+ } = module_data;
57
+ const {
58
+ player,
59
+ player_balance
60
+ } = my_data;
61
+ (0, _react.useEffect)(() => {
62
+ if (!competition_season_id) {
63
+ return;
64
+ }
65
+ _api.SeasonApi.setEnvironment();
66
+ getSeasonData(competition_season_id);
67
+ }, [competition_season_id]);
68
+ (0, _react.useEffect)(() => {
69
+ getMyDetails();
70
+ }, [player_id]);
71
+ const getMyDetails = async () => {
72
+ if (!player_id) {
73
+ return setMyData({
74
+ ...my_data,
75
+ player: undefined,
76
+ player_balance: undefined
77
+ });
78
+ }
79
+ setMyData({
80
+ ...my_data,
81
+ my_loading: true
82
+ });
83
+ let me = await _api.SeasonApi.getMyDetails();
84
+ let pb = await _api.SeasonApi.getMyBalance();
85
+ setMyData({
86
+ ...my_data,
87
+ my_loading: false,
88
+ player: me,
89
+ player_balance: pb
90
+ });
91
+ };
92
+ const getSeasonData = async id => {
93
+ setData({
94
+ ...module_data,
95
+ loading: true
96
+ });
97
+ const season = await _api.SeasonApi.getSeasonById(id);
98
+ const comps = await _api.SeasonApi.getCompetitionsBySeasonId(id);
99
+ const opts = await _api.SeasonApi.getCompetitionOptions();
100
+ const season_player_resp = await _api.SeasonApi.getSeasonPlayersBySeasonId(id, 0);
101
+ const players = await _api.SeasonApi.getPlayersByPlayerIds([season.admin_id]);
102
+ let cmpny = undefined;
103
+ if (season.company_id) {
104
+ const companies = await _api.SeasonApi.getCompaniesByIds([season.company_id]);
105
+ cmpny = companies[0];
106
+ }
107
+ setData({
108
+ ...module_data,
109
+ loading: false,
110
+ competition_season: season,
111
+ competitions: comps,
112
+ admin: players[0],
113
+ company: cmpny,
114
+ competition_payout_types: opts.competition_payout_types,
115
+ competition_result_types: opts.competition_result_types,
116
+ competition_types: opts.competition_types,
117
+ competition_season_players: season_player_resp.competition_season_players,
118
+ competition_season_results: season_player_resp.competition_season_results
119
+ });
120
+ };
121
+ const handleJoin = async () => {
122
+ if (action_loading) {
123
+ return;
124
+ } //No mashy
125
+ if (!player_id) {
126
+ return onRequestAuthenticate();
127
+ }
128
+ setData({
129
+ ...module_data,
130
+ action_loading: true
131
+ });
132
+ const resp = await _api.SeasonApi.joinSeason(competition_season_id);
133
+ setData({
134
+ ...module_data,
135
+ action_loading: false,
136
+ competition_season: resp.competition_season,
137
+ competition_season_players: competition_season_players.filter(cp => cp.competition_season_player_id != resp.competition_season_player.competition_season_player_id).concat(resp.competition_season_player),
138
+ competition_season_results: competition_season_results.filter(cr => cr.competition_season_result_id != resp.competition_season_result.competition_season_result_id).concat(resp.competition_season_result),
139
+ competitions: competitions.filter(c => !resp.competitions.find(nc => nc.competition_id == c.competition_id)).concat(resp.competitions)
140
+ });
141
+ };
142
+ const handleLeave = async competition_season_player_id => {
143
+ if (action_loading) {
144
+ return;
145
+ }
146
+ if (!player_id) {
147
+ return onRequestAuthenticate();
148
+ }
149
+ setData({
150
+ ...module_data,
151
+ action_loading: true
152
+ });
153
+ const resp = await _api.SeasonApi.leaveSeason(competition_season_player_id);
154
+ setData({
155
+ ...module_data,
156
+ action_loading: false,
157
+ competition_season: resp.competition_season,
158
+ competition_season_players: competition_season_players.filter(cp => cp.competition_season_player_id != resp.competition_season_player.competition_season_player_id),
159
+ competition_season_results: competition_season_results.filter(cr => cr.competition_season_result_id != resp.competition_season_result.competition_season_result_id).concat(resp.competition_season_result),
160
+ competitions: competitions.filter(c => !resp.competitions.find(nc => nc.competition_id == c.competition_id)).concat(resp.competitions)
161
+ });
162
+ };
163
+ if (!competition_season) {
164
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
165
+ style: {
166
+ flex: 1
167
+ }
168
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
169
+ size: "large",
170
+ style: {
171
+ padding: 20,
172
+ alignSelf: 'center'
173
+ },
174
+ color: _colors.default.brand.midnight
175
+ }));
176
+ }
177
+ const selected_season_type = competition_types.find(ct => ct.competition_type_id == competition_season.competition_type_id);
178
+ const selected_season_result_type = competition_result_types.find(crt => crt.competition_result_type_id == competition_season.competition_result_type_id);
179
+ const authenticated_season_player = competition_season_players.find(csp => csp.player_id == player_id);
180
+ const authenticated_season_result = competition_season_results.find(csp => csp.player_id == player_id);
181
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
182
+ style: {
183
+ flex: 1
184
+ }
185
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
186
+ style: {
187
+ flex: 1
188
+ },
189
+ onLayout: ev => {
190
+ const {
191
+ width,
192
+ height
193
+ } = ev.nativeEvent.layout;
194
+ setModuleSize({
195
+ width,
196
+ height
197
+ });
198
+ }
199
+ }, /*#__PURE__*/_react.default.createElement(_SeasonHeader.default, {
200
+ competition_season: competition_season,
201
+ competitions: competitions,
202
+ action_loading: action_loading,
203
+ authenticated_season_player: authenticated_season_player,
204
+ onShareSeason: onShareSeason,
205
+ onJoin: () => setShowEnter(true),
206
+ onLeave: competition_season_player_id => handleLeave(competition_season_player_id)
207
+ }), selected_season_type ? /*#__PURE__*/_react.default.createElement(_SeasonLeaderboard.default, {
208
+ authenticated_player: player,
209
+ authenticated_season_player: authenticated_season_player,
210
+ authenticated_season_result: authenticated_season_result,
211
+ width: module_size.width,
212
+ onLeaderSelect: p => console.log(p),
213
+ view_mode: "short",
214
+ height: module_size.height,
215
+ competition_season: competition_season,
216
+ competition_type: selected_season_type,
217
+ onSeeFull: () => setShowLeaderboard(true)
218
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), selected_season_type && selected_season_result_type ? /*#__PURE__*/_react.default.createElement(_SeasonSettingsSection.default, {
219
+ competition_season: competition_season,
220
+ competition_result_type: selected_season_result_type,
221
+ competition_type: selected_season_type,
222
+ competition_payouts: competition_payout_types,
223
+ width: module_size.width
224
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), selected_season_type && selected_season_result_type ? /*#__PURE__*/_react.default.createElement(_CompetitionsSection.default, {
225
+ competitions: competitions,
226
+ competition_result_type: selected_season_result_type,
227
+ competition_type: selected_season_type,
228
+ onCompetitionSelect: c => onCompetitionSelect(c),
229
+ width: module_size.width
230
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), show_enter && selected_season_result_type && selected_season_type ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
231
+ style: {
232
+ position: 'absolute',
233
+ top: 0,
234
+ left: 0,
235
+ right: 0,
236
+ bottom: 0,
237
+ backgroundColor: _colors.default.shades.black_faded,
238
+ justifyContent: 'flex-end'
239
+ }
240
+ }, /*#__PURE__*/_react.default.createElement(_EnterSeasonPrompt.default, {
241
+ width: module_size.width,
242
+ competition_season: competition_season,
243
+ competition_result_type: selected_season_result_type,
244
+ competition_type: selected_season_type,
245
+ player_balance: player_balance,
246
+ player: player,
247
+ onEnter: promo => {
248
+ console.log(promo);
249
+ handleJoin();
250
+ setShowEnter(false);
251
+ },
252
+ onCancel: () => setShowEnter(false),
253
+ onVerify: () => console.log('VERIFY!')
254
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), show_leaderboard && selected_season_type ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
255
+ style: {
256
+ position: 'absolute',
257
+ top: 0,
258
+ left: 0,
259
+ right: 0,
260
+ bottom: 0,
261
+ backgroundColor: _colors.default.shades.black_faded
262
+ }
263
+ }, /*#__PURE__*/_react.default.createElement(_SeasonLeaderboard.default, {
264
+ authenticated_player: player,
265
+ authenticated_season_player: authenticated_season_player,
266
+ authenticated_season_result: authenticated_season_result,
267
+ width: module_size.width,
268
+ onLeaderSelect: p => console.log(p),
269
+ view_mode: "full",
270
+ height: module_size.height,
271
+ competition_season: competition_season,
272
+ competition_type: selected_season_type,
273
+ onSeeFull: () => console.log('See full'),
274
+ onClose: () => setShowLeaderboard(false)
275
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
276
+ };
277
+ var _default = exports.default = SeasonModule;
278
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_colors","_interopRequireDefault","_SeasonHeader","_api","_CompetitionsSection","_SeasonSettingsSection","_EnterSeasonPrompt","_SeasonLeaderboard","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SeasonModule","competition_season_id","player_id","onShareSeason","onRequestAuthenticate","onCompetitionSelect","module_size","setModuleSize","useState","width","height","show_leaderboard","setShowLeaderboard","show_enter","setShowEnter","my_data","setMyData","my_loading","module_data","setData","loading","action_loading","competitions","offset","competition_season_players","competition_season_results","competition_types","players","competition_result_types","competition_payout_types","competition_season","player","player_balance","useEffect","SeasonApi","setEnvironment","getSeasonData","getMyDetails","undefined","me","pb","getMyBalance","id","season","getSeasonById","comps","getCompetitionsBySeasonId","opts","getCompetitionOptions","season_player_resp","getSeasonPlayersBySeasonId","getPlayersByPlayerIds","admin_id","cmpny","company_id","companies","getCompaniesByIds","admin","company","handleJoin","resp","joinSeason","filter","cp","competition_season_player_id","competition_season_player","concat","cr","competition_season_result_id","competition_season_result","c","find","nc","competition_id","handleLeave","leaveSeason","createElement","View","style","flex","ActivityIndicator","size","padding","alignSelf","color","Colors","brand","midnight","selected_season_type","ct","competition_type_id","selected_season_result_type","crt","competition_result_type_id","authenticated_season_player","csp","authenticated_season_result","ScrollView","onLayout","ev","nativeEvent","layout","onJoin","onLeave","authenticated_player","onLeaderSelect","p","console","log","view_mode","competition_type","onSeeFull","Fragment","competition_result_type","competition_payouts","position","top","left","right","bottom","backgroundColor","shades","black_faded","justifyContent","onEnter","promo","onCancel","onVerify","onClose","_default","exports"],"sourceRoot":"../../../src","sources":["CompetitionSeason/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAA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