be-components 6.8.1 → 6.8.3
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.
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +244 -143
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/index.js +91 -55
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/ImageUploader.js +3 -1
- package/lib/commonjs/Components/ImageUploader.js.map +1 -1
- package/lib/commonjs/CreateEngagement/index.js +4 -3
- package/lib/commonjs/CreateEngagement/index.js.map +1 -1
- package/lib/commonjs/SquaresManager/api/index.js +129 -0
- package/lib/commonjs/SquaresManager/api/index.js.map +1 -0
- package/lib/commonjs/SquaresManager/index.js +629 -0
- package/lib/commonjs/SquaresManager/index.js.map +1 -0
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +244 -143
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/index.js +91 -55
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/ImageUploader.js +3 -1
- package/lib/module/Components/ImageUploader.js.map +1 -1
- package/lib/module/CreateEngagement/index.js +4 -3
- package/lib/module/CreateEngagement/index.js.map +1 -1
- package/lib/module/SquaresManager/api/index.js +123 -0
- package/lib/module/SquaresManager/api/index.js.map +1 -0
- package/lib/module/SquaresManager/index.js +621 -0
- package/lib/module/SquaresManager/index.js.map +1 -0
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ImageUploader.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CreateEngagement/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SquaresManager/api/index.d.ts +19 -0
- package/lib/typescript/lib/commonjs/SquaresManager/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SquaresManager/index.d.ts +13 -0
- package/lib/typescript/lib/commonjs/SquaresManager/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ImageUploader.d.ts +2 -1
- package/lib/typescript/lib/module/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/lib/module/CreateEngagement/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SquaresManager/api/index.d.ts +18 -0
- package/lib/typescript/lib/module/SquaresManager/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/SquaresManager/index.d.ts +13 -0
- package/lib/typescript/lib/module/SquaresManager/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +2 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts +3 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/src/SquaresManager/api/index.d.ts +36 -0
- package/lib/typescript/src/SquaresManager/api/index.d.ts.map +1 -0
- package/lib/typescript/src/SquaresManager/index.d.ts +16 -0
- package/lib/typescript/src/SquaresManager/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Competition/components/CompetitionLeaderboard.tsx +115 -62
- package/src/Competition/index.tsx +69 -49
- package/src/Components/ImageUploader.tsx +4 -3
- package/src/CreateEngagement/index.tsx +6 -2
- package/src/SquaresManager/api/index.ts +99 -0
- package/src/SquaresManager/index.tsx +395 -0
- package/src/index.tsx +2 -0
- package/src/types.d.ts +1 -1
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LogBox","ignoreAllLogs","Authenticator","ProfileManager","Components","SocialComponents","APIOverrides","LinearGradient","Colors","Observer","BEEventApi","BELinkApi","BettorSearch","MyWallet","Checkout","usePlayerLocation","PollCampaign","PollCampaignApi","PollApi","CompetitionModule","AdServer","AdProvider","BracketRoom","SocketManager","SquaresModule","PromotedOrder","CompetitionManager","CreateCompetitionForm","AdminCompetitionList","EngageModule","SeasonManager","SeasonModule","CreateSeasonForm","MarketComponents","EventComponents","Share","LocationTracker","MarketMaker","CompetitionCard","SquaresCompetitionCard","BracketCompetitionCard","SeasonCard","NotificationModule","useNotifications","ManageBracketCompetitionForm","Campaign","Ticker","Leaderboard","LeaderboardCard","PlayerRecommender","ContactsCard","ContactsSelector","GolfScoreboard","FlashMarket","FlashHolder","BEPostHog","BEClarity","BetMatch","Premium","ManageFilter","ClaritySmartEvents","RankingsCard","GuideView","GroupComponent","CreateGroupWizard","CreateEngagement"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,MAAM,QAAQ,cAAc;AACrCA,MAAM,CAACC,aAAa,CAAC,CAAC;AACtB,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAO,KAAKC,UAAU,MAAM,cAAc;AAC1C,OAAO,KAAKC,gBAAgB,MAAM,oBAAoB;AACtD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAAQC,cAAc,QAAO,sBAAsB;AACnD,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,QAAQ,IAAIC,UAAU,EAAEC,SAAS,QAAQ,YAAY;AAC5D,OAAOC,YAAY,MAAM,gBAAgB;AACzC,O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,MAAM,4CAA4C;AACrE,OAAOC,gBAAgB,MAAM,iDAAiD;AAC9E,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,WAAW,MAAM,2BAA2B;AACnD,OAAOC,SAAS,MAAM,WAAW;AACjC,OAAOC,SAAS,MAAM,WAAW;AACjC,OAAOC,QAAQ,MAAM,YAAY;AACjC,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,YAAY,MAAM,oCAAoC;AAC7D,OAAOC,kBAAkB,MAAM,uBAAuB;AACtD,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,SAAS,MAAM,SAAS;AAC/B,OAAOC,cAAc,MAAM,SAAS;AACpC,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,
|
|
1
|
+
{"version":3,"names":["LogBox","ignoreAllLogs","Authenticator","ProfileManager","Components","SocialComponents","APIOverrides","LinearGradient","Colors","Observer","BEEventApi","BELinkApi","BettorSearch","MyWallet","Checkout","usePlayerLocation","PollCampaign","PollCampaignApi","PollApi","CompetitionModule","AdServer","AdProvider","BracketRoom","SocketManager","SquaresModule","PromotedOrder","CompetitionManager","CreateCompetitionForm","AdminCompetitionList","EngageModule","SeasonManager","SeasonModule","CreateSeasonForm","MarketComponents","EventComponents","Share","LocationTracker","MarketMaker","CompetitionCard","SquaresCompetitionCard","BracketCompetitionCard","SeasonCard","NotificationModule","useNotifications","ManageBracketCompetitionForm","Campaign","Ticker","Leaderboard","LeaderboardCard","PlayerRecommender","ContactsCard","ContactsSelector","GolfScoreboard","FlashMarket","FlashHolder","BEPostHog","BEClarity","BetMatch","Premium","ManageFilter","ClaritySmartEvents","RankingsCard","GuideView","GroupComponent","CreateGroupWizard","CreateEngagement","SquaresManager"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,MAAM,QAAQ,cAAc;AACrCA,MAAM,CAACC,aAAa,CAAC,C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U,SAAS,EACTX,4BAA4B,EAC5BF,kBAAkB,EAClBY,WAAW,EACXX,gBAAgB,EAChBiB,kBAAkB,EAClBzD,cAAc,EACduB,kBAAkB,EAClBtB,UAAU,EACVC,gBAAgB,EAChBC,YAAY,EACZC,cAAc,EACdQ,iBAAiB,EACjBH,YAAY,EACZJ,MAAM,EACNK,QAAQ,EACRsB,KAAK,EACLrB,QAAQ,EACRmB,gBAAgB,EAChBC,eAAe,EACflB,YAAY,EACZC,eAAe,EACfC,OAAO,EACPmB,WAAW,EACXlB,iBAAiB,EACjBW,aAAa,EACbH,qBAAqB,EACrBK,gBAAgB,EAChBD,YAAY,EACZH,oBAAoB,EACpBR,QAAQ,EACR2B,WAAW,EACX1B,UAAU,EACVC,WAAW,EACXE,aAAa,EACbD,aAAa,EACbE,aAAa,EACbI,YAAY,EACZS,eAAe,EACfC,sBAAsB,EACtBC,sBAAsB,EACtBC,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/Competition/components/CompetitionLeaderboard.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/Competition/components/CompetitionLeaderboard.js"],"names":[],"mappings":";;AAiBA;;;;;;;;;;QAyZC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/Competition/index.js"],"names":[],"mappings":";;AAwBA;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/Competition/index.js"],"names":[],"mappings":";;AAwBA;;;;;;;;;;;;QAw3BC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default ImageUploader;
|
|
3
|
-
declare function ImageUploader({ onStartUpload, onFinishUpload, public_id, children }: {
|
|
3
|
+
declare function ImageUploader({ style, onStartUpload, onFinishUpload, public_id, children }: {
|
|
4
|
+
style: any;
|
|
4
5
|
onStartUpload: any;
|
|
5
6
|
onFinishUpload: any;
|
|
6
7
|
public_id: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../commonjs/Components/ImageUploader.js"],"names":[],"mappings":";;AAeA
|
|
1
|
+
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../commonjs/Components/ImageUploader.js"],"names":[],"mappings":";;AAeA;;;;;;QA6HC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/CreateEngagement/index.js"],"names":[],"mappings":";;AAsDA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/CreateEngagement/index.js"],"names":[],"mappings":";;AAsDA;;;;;;;;;;;;;;QA4fC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export namespace SquaresManagerApi {
|
|
3
|
+
function setEnvironment(): void;
|
|
4
|
+
function getLeagues(): Promise<any>;
|
|
5
|
+
function getEventsByEventIds(event_ids: any): Promise<any>;
|
|
6
|
+
function getSquareCompetitionById(sq_comp_id: any): Promise<any>;
|
|
7
|
+
function updateSquaresCompetition(squares_competition: any): Promise<any>;
|
|
8
|
+
function getMyCompanies(): Promise<{
|
|
9
|
+
companies: any;
|
|
10
|
+
company_members: any;
|
|
11
|
+
}>;
|
|
12
|
+
function getMyGroups(offset: any): Promise<any>;
|
|
13
|
+
function createSquaresCompetition(squares_competition: any): Promise<any>;
|
|
14
|
+
function activateSquares(sq_comp_id: any): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
export namespace SquaresManagerHelpers {
|
|
17
|
+
function isValid(draft_squares: any): string[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commonjs/SquaresManager/api/index.js"],"names":[],"mappings":";;IAckB,gCAOf;IACW,oCAOX;IACoB,2DAapB;IACyB,iEAOzB;IACyB,0EASzB;IACe;;;OAUf;IACY,gDAUZ;IACyB,0EAUzB;IACgB,wDAShB;;;IAGQ,+CAmBR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export default SquaresManager;
|
|
3
|
+
declare function SquaresManager({ sq_comp_id, float, player, header_style, onFocusPosition, footer_style, onClose, onActivate }: {
|
|
4
|
+
sq_comp_id: any;
|
|
5
|
+
float: any;
|
|
6
|
+
player: any;
|
|
7
|
+
header_style: any;
|
|
8
|
+
onFocusPosition: any;
|
|
9
|
+
footer_style: any;
|
|
10
|
+
onClose: any;
|
|
11
|
+
onActivate: any;
|
|
12
|
+
}): any;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/SquaresManager/index.js"],"names":[],"mappings":";;AAoBA;;;;;;;;;QA8lBC"}
|
|
@@ -121,6 +121,7 @@ export const SeasonModule: any;
|
|
|
121
121
|
export const Share: any;
|
|
122
122
|
export const SocketManager: any;
|
|
123
123
|
export const SquaresCompetitionCard: any;
|
|
124
|
+
export const SquaresManager: any;
|
|
124
125
|
export const SquaresModule: any;
|
|
125
126
|
export const Ticker: any;
|
|
126
127
|
export const useNotifications: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commonjs/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commonjs/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoYA,2BAAkE;AAElE,iCAA8E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../module/Competition/components/CompetitionLeaderboard.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../module/Competition/components/CompetitionLeaderboard.js"],"names":[],"mappings":";AASA;;;;;;;;;;;;mGAyZC;kBAla0C,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Competition/index.js"],"names":[],"mappings":";AAgBA;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Competition/index.js"],"names":[],"mappings":";AAgBA;;;;;;;;;;;;kGAw3BC;kBAx4B0C,OAAO"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default ImageUploader;
|
|
2
|
-
declare function ImageUploader({ onStartUpload, onFinishUpload, public_id, children }: {
|
|
2
|
+
declare function ImageUploader({ style, onStartUpload, onFinishUpload, public_id, children }: {
|
|
3
|
+
style: any;
|
|
3
4
|
onStartUpload: any;
|
|
4
5
|
onFinishUpload: any;
|
|
5
6
|
public_id: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../module/Components/ImageUploader.js"],"names":[],"mappings":";AAOA
|
|
1
|
+
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../module/Components/ImageUploader.js"],"names":[],"mappings":";AAOA;;;;;;oIA6HC;kBAjIiB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/CreateEngagement/index.js"],"names":[],"mappings":";AA8CA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/CreateEngagement/index.js"],"names":[],"mappings":";AA8CA;;;;;;;;;;;;;;kGA4fC;kBA1iB0C,OAAO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export namespace SquaresManagerHelpers {
|
|
2
|
+
function isValid(draft_squares: any): string[];
|
|
3
|
+
}
|
|
4
|
+
export namespace SquaresManagerApi {
|
|
5
|
+
function setEnvironment(): void;
|
|
6
|
+
function getLeagues(): Promise<any>;
|
|
7
|
+
function getEventsByEventIds(event_ids: any): Promise<any>;
|
|
8
|
+
function getSquareCompetitionById(sq_comp_id: any): Promise<any>;
|
|
9
|
+
function updateSquaresCompetition(squares_competition: any): Promise<any>;
|
|
10
|
+
function getMyCompanies(): Promise<{
|
|
11
|
+
companies: any;
|
|
12
|
+
company_members: any;
|
|
13
|
+
}>;
|
|
14
|
+
function getMyGroups(offset: any): Promise<any>;
|
|
15
|
+
function createSquaresCompetition(squares_competition: any): Promise<any>;
|
|
16
|
+
function activateSquares(sq_comp_id: any): Promise<any>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../module/SquaresManager/api/index.js"],"names":[],"mappings":";IAqGW,+CAmBR;;;IAhHe,gCAOf;IACW,oCAOX;IACoB,2DAapB;IACyB,iEAOzB;IACyB,0EASzB;IACe;;;OAUf;IACY,gDAUZ;IACyB,0EAUzB;IACgB,wDAShB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default SquaresManager;
|
|
2
|
+
declare function SquaresManager({ sq_comp_id, float, player, header_style, onFocusPosition, footer_style, onClose, onActivate }: {
|
|
3
|
+
sq_comp_id: any;
|
|
4
|
+
float: any;
|
|
5
|
+
player: any;
|
|
6
|
+
header_style: any;
|
|
7
|
+
onFocusPosition: any;
|
|
8
|
+
footer_style: any;
|
|
9
|
+
onClose: any;
|
|
10
|
+
onActivate: any;
|
|
11
|
+
}): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
12
|
+
import React from "react";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/SquaresManager/index.js"],"names":[],"mappings":";AAYA;;;;;;;;;kGA8lBC;kBA1mB0C,OAAO"}
|
|
@@ -4,6 +4,7 @@ import CreateEngagement from './CreateEngagement';
|
|
|
4
4
|
import { BEEventApi } from './Observer';
|
|
5
5
|
import RankingsCard from './RankingsCard';
|
|
6
6
|
import { BELinkApi } from './Observer';
|
|
7
|
+
import SquaresManager from './SquaresManager';
|
|
7
8
|
import GuideView from './Guide';
|
|
8
9
|
import BetMatch from './BetMatch';
|
|
9
10
|
import ManageFilter from './BetMatch/components/ManageFilter';
|
|
@@ -62,5 +63,5 @@ import CompetitionCard from './Engage/components/CompetitionCard';
|
|
|
62
63
|
import SquaresCompetitionCard from './Engage/components/SquaresCompetitionCard';
|
|
63
64
|
import BracketCompetitionCard from './Engage/components/BracketCompetitionCard';
|
|
64
65
|
import SeasonCard from './Engage/components/SeasonCard';
|
|
65
|
-
export { Authenticator, Observer, CreateEngagement, BEEventApi, RankingsCard, BELinkApi, GuideView, BetMatch, ManageFilter, Ticker, Premium, CreateGroupWizard, LeaderboardCard, GroupComponent, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
66
|
+
export { Authenticator, Observer, CreateEngagement, BEEventApi, RankingsCard, BELinkApi, SquaresManager, GuideView, BetMatch, ManageFilter, Ticker, Premium, CreateGroupWizard, LeaderboardCard, GroupComponent, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
66
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../module/index.js"],"names":[],"mappings":"0BAE0B,iBAAiB;qBAOK,YAAY;6BAoD/B,oBAAoB;2BApDD,YAAY;yBAgDnC,gBAAgB;0BAhDO,YAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../module/index.js"],"names":[],"mappings":"0BAE0B,iBAAiB;qBAOK,YAAY;6BAoD/B,oBAAoB;2BApDD,YAAY;yBAgDnC,gBAAgB;0BAhDO,YAAY;2BAqDjC,kBAAkB;sBAJvB,SAAS;qBALV,YAAY;yBAER,oCAAoC;mBAb1C,UAAU;oBAYT,WAAW;8BAMD,sCAAsC;4BAhBxC,sCAAsC;2BAevC,SAAS;4BA3BR,mBAAmB;sBAoBzB,WAAW;wBAHT,eAAe;yBAHd,4CAA4C;8BADvC,qBAAqB;2BAGxB,kBAAkB;6BADhB,iDAAiD;qBANzD,YAAY;sBAUX,WAAW;yCAXQ,mDAAmD;+BAF7D,iBAAiB;wBAYxB,2BAA2B;iCAXlB,kCAAkC;+BAiBpC,uBAAuB;2BArD3B,kBAAkB;+BAmBd,sBAAsB;4BAlBzB,cAAc;kCACR,oBAAoB;6BACzB,gBAAgB;+BACd,sBAAsB;kCAMnB,kCAAkC;yBAH3C,gBAAgB;mBAFtB,oBAAoB;qBAGlB,UAAU;kBAoBb,SAAS;qBAnBN,YAAY;6BAiBJ,oBAAoB;4BACrB,mBAAmB;yBAhBtB,QAAQ;gCACQ,YAAY;wBAAZ,YAAY;wBAkB7B,eAAe;8BAjBT,eAAe;0BAUnB,4BAA4B;kCAHpB,uDAAuD;6BAK5D,wDAAwD;yBAD5D,qBAAqB;iCAHb,sDAAsD;qBAPlD,YAAY;wBA0BzB,WAAW;2BA1BE,YAAY;wBACzB,WAAW;0BAET,WAAW;0BADX,UAAU;0BAEV,iBAAiB;yBAIlB,UAAU;4BASP,qCAAqC;mCAC9B,4CAA4C;mCAC5C,4CAA4C;uBACxD,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/CompetitionLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAkD,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQ5I,KAAK,2BAA2B,GAAG;IAC/B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,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,sBAAsB,GAAI,uHAAsH,2BAA2B,
|
|
1
|
+
{"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/CompetitionLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAkD,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQ5I,KAAK,2BAA2B,GAAG;IAC/B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,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,sBAAsB,GAAI,uHAAsH,2BAA2B,sBA8OhL,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Competition/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAgB,YAAY,EAA4H,gBAAgB,EAA8B,sBAAsB,EAAoC,kBAAkB,EAA+L,MAAM,UAAU,CAAC;AAY9e,KAAK,sBAAsB,GAAG;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,SAAS,EAAC,SAAS,GAAC,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAE,CAAA;IAChE,eAAe,CAAC,EAAC,MAAM,CAAC;IACxB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAC,CAAC,KAAK,EAAC,YAAY,KAAK,IAAI,CAAC;IACtC,mBAAmB,CAAC,EAAC,CAAC,cAAc,EAAC,MAAM,KAAK,IAAI,CAAC;IACrD,uBAAuB,EAAC,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CAC9D,CAAA;AAKD,QAAA,MAAM,iBAAiB,GAAI,wLAAuL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Competition/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAgB,YAAY,EAA4H,gBAAgB,EAA8B,sBAAsB,EAAoC,kBAAkB,EAA+L,MAAM,UAAU,CAAC;AAY9e,KAAK,sBAAsB,GAAG;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,SAAS,EAAC,SAAS,GAAC,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAE,CAAA;IAChE,eAAe,CAAC,EAAC,MAAM,CAAC;IACxB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAC,CAAC,KAAK,EAAC,YAAY,KAAK,IAAI,CAAC;IACtC,mBAAmB,CAAC,EAAC,CAAC,cAAc,EAAC,MAAM,KAAK,IAAI,CAAC;IACrD,uBAAuB,EAAC,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CAC9D,CAAA;AAKD,QAAA,MAAM,iBAAiB,GAAI,wLAAuL,sBAAsB,sBA2pBvO,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { type ViewStyle } from "react-native";
|
|
2
3
|
type CldUploaderProps = {
|
|
3
4
|
onFinishUpload: (obj: any | undefined) => void;
|
|
4
5
|
onStartUpload?: () => void;
|
|
6
|
+
style?: ViewStyle;
|
|
5
7
|
onCancelUpload?: () => void;
|
|
6
8
|
children?: any;
|
|
7
9
|
public_id: string;
|
|
8
10
|
};
|
|
9
|
-
declare const ImageUploader: ({ onStartUpload, onFinishUpload, public_id, children }: CldUploaderProps) => React.JSX.Element;
|
|
11
|
+
declare const ImageUploader: ({ style, onStartUpload, onFinishUpload, public_id, children }: CldUploaderProps) => React.JSX.Element;
|
|
10
12
|
export default ImageUploader;
|
|
11
13
|
//# sourceMappingURL=ImageUploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../src/Components/ImageUploader.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../src/Components/ImageUploader.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhE,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAG,CAAC,GAAG,EAAC,GAAG,GAAG,SAAS,KAAK,IAAI,CAAA;IAC5C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAC,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAC,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,QAAA,MAAM,aAAa,GAAI,+DAA8D,gBAAgB,sBA+HpG,CAAA;AAMD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CompanyProps, EventProps, GroupPlayerProps, GroupProps, LeagueProps, PlayerSquareProps, SquareOfferProps, SquarePrizeProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../../types";
|
|
2
|
+
import type { CompanyMemberProps } from "../../Authenticator/api/types";
|
|
3
|
+
export { SquaresManagerApi };
|
|
4
|
+
declare const SquaresManagerApi: {
|
|
5
|
+
setEnvironment: () => void;
|
|
6
|
+
getLeagues: () => Promise<LeagueProps[]>;
|
|
7
|
+
getEventsByEventIds: (event_ids: string[]) => Promise<EventProps[]>;
|
|
8
|
+
getSquareCompetitionById: (sq_comp_id: string) => Promise<undefined | {
|
|
9
|
+
squares_competition: SquaresCompetitionProps;
|
|
10
|
+
square_results: SquareResultProps[];
|
|
11
|
+
squares: SquareProps[];
|
|
12
|
+
player_squares: PlayerSquareProps[];
|
|
13
|
+
square_offers: SquareOfferProps[];
|
|
14
|
+
squares_type: SquaresTypeProps;
|
|
15
|
+
squares_payout_type: SquaresPayoutProps;
|
|
16
|
+
player_square_history: PlayerSquareProps[];
|
|
17
|
+
square_prizes: SquarePrizeProps[];
|
|
18
|
+
}>;
|
|
19
|
+
updateSquaresCompetition: (squares_competition: SquaresCompetitionProps) => Promise<SquaresCompetitionProps | undefined>;
|
|
20
|
+
getMyCompanies: () => Promise<{
|
|
21
|
+
companies: CompanyProps[];
|
|
22
|
+
company_members: CompanyMemberProps[];
|
|
23
|
+
}>;
|
|
24
|
+
getMyGroups: (offset: number) => Promise<{
|
|
25
|
+
groups: GroupProps[];
|
|
26
|
+
group_players: GroupPlayerProps[];
|
|
27
|
+
}>;
|
|
28
|
+
createSquaresCompetition: (squares_competition: SquaresCompetitionProps) => Promise<SquaresCompetitionProps | undefined>;
|
|
29
|
+
activateSquares: (sq_comp_id: string) => Promise<undefined | {
|
|
30
|
+
squares_competition: SquaresCompetitionProps;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
export declare const SquaresManagerHelpers: {
|
|
34
|
+
isValid: (draft_squares?: SquaresCompetitionProps) => string[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SquaresManager/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE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CAQjH,CAAA;AAGD,eAAO,MAAM,qBAAqB;8BACL,uBAAuB;CASnD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ViewStyle } from "react-native";
|
|
3
|
+
import type { FocusPositionProps, MyPlayerProps, SquaresCompetitionProps } from "../types";
|
|
4
|
+
type SquaresManagerProps = {
|
|
5
|
+
sq_comp_id: string;
|
|
6
|
+
onFocusPosition?: (pos: FocusPositionProps) => void;
|
|
7
|
+
float?: boolean;
|
|
8
|
+
player?: MyPlayerProps;
|
|
9
|
+
onActivate: (sq: SquaresCompetitionProps) => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
header_style?: ViewStyle;
|
|
12
|
+
footer_style?: ViewStyle;
|
|
13
|
+
};
|
|
14
|
+
declare const SquaresManager: ({ sq_comp_id, float, player, header_style, onFocusPosition, footer_style, onClose, onActivate }: SquaresManagerProps) => React.JSX.Element;
|
|
15
|
+
export default SquaresManager;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SquaresManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAA4B,kBAAkB,EAA2B,aAAa,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAS9I,KAAK,mBAAmB,GAAG;IACvB,UAAU,EAAC,MAAM,CAAC;IAClB,eAAe,CAAC,EAAC,CAAC,GAAG,EAAC,kBAAkB,KAAK,IAAI,CAAC;IAClD,KAAK,CAAC,EAAC,OAAO,CAAC;IACf,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,UAAU,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAC,SAAS,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,iGAAgG,mBAAmB,sBAgX1I,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -58,5 +58,6 @@ import GuideView from './Guide';
|
|
|
58
58
|
import GroupComponent from './Group';
|
|
59
59
|
import CreateGroupWizard from './Group/components/CreateGroupWizard';
|
|
60
60
|
import CreateEngagement from './CreateEngagement';
|
|
61
|
-
|
|
61
|
+
import SquaresManager from './SquaresManager';
|
|
62
|
+
export { Authenticator, Observer, CreateEngagement, BEEventApi, RankingsCard, BELinkApi, SquaresManager, GuideView, BetMatch, ManageFilter, Ticker, Premium, CreateGroupWizard, LeaderboardCard, GroupComponent, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
62
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM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Y,EACZ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACX,CAAA"}
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ type CompetitionLeaderboardProps = {
|
|
|
21
21
|
onSeeFull: () => void,
|
|
22
22
|
onLeaderSelect:(player:PublicPlayerProps) => void
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
const sections = [ 'my_result','header', 'leaders' ]
|
|
25
25
|
const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
|
|
26
26
|
const C = useColors();
|
|
27
27
|
const [ expanded, setExpanded ] = useState(true);
|
|
@@ -113,64 +113,109 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
|
|
|
113
113
|
)
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
const renderSections = (data: { item:string, index:number }) => {
|
|
117
|
+
switch(data.item){
|
|
118
|
+
case 'my_result':
|
|
119
|
+
if(!viewer_record || !viewer_result || !viewer){ return <></> }
|
|
120
|
+
return (
|
|
121
|
+
<View transparent style={{ padding:10, marginBottom:10, borderTopRightRadius:8, borderTopLeftRadius:8, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
122
|
+
<Text size={14} theme="h1">MY RESULTS</Text>
|
|
123
|
+
<Button
|
|
124
|
+
float
|
|
125
|
+
style={{ flexDirection:'row', marginTop:10, marginBottom:10, alignItems:'center', borderRadius:22, padding:12, paddingLeft:15, paddingRight:15 }}>
|
|
126
|
+
<View transparent nativeID="place" style={{ padding:5 }}>
|
|
127
|
+
<Text size={12} theme='h2'>{CompetitionHelpers.formatPlace(viewer_result.place)}</Text>
|
|
128
|
+
</View>
|
|
129
|
+
<View transparent nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
130
|
+
<Image
|
|
131
|
+
source={{ uri: viewer.profile_pic }}
|
|
132
|
+
style={{ height:30, width:30, borderRadius:100 }}
|
|
133
|
+
resizeMode="cover"
|
|
134
|
+
/>
|
|
135
|
+
</View>
|
|
136
|
+
<View transparent nativeID="details" style={{ flex:1 }}>
|
|
137
|
+
<Text size={12} theme="h2">{viewer.username}</Text>
|
|
138
|
+
{competition_type?.type == 'wager' ?
|
|
139
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.earnings.toFixed(2)} Earned ({viewer_record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
140
|
+
:
|
|
141
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.wins} - {viewer_record.losses} - {viewer_record.draws} ({viewer_record.remaining_picks} Remaining)</Text>
|
|
142
|
+
}
|
|
143
|
+
</View>
|
|
144
|
+
<View nativeID="winnings">
|
|
145
|
+
<Text size={12} theme="light" weight='bold'>{cl}{viewer_result.winnings.toFixed(2)}</Text>
|
|
146
|
+
</View>
|
|
147
|
+
</Button>
|
|
148
|
+
</View>
|
|
149
|
+
)
|
|
150
|
+
case 'leaders':
|
|
151
|
+
return (
|
|
152
|
+
<FlatList
|
|
153
|
+
data={results}
|
|
154
|
+
renderItem={renderResults}
|
|
155
|
+
keyExtractor={(item, index) => item.competition_result_id ? item.competition_result_id.toString() : index.toString()}
|
|
156
|
+
/>
|
|
157
|
+
)
|
|
158
|
+
default: return <></>
|
|
159
|
+
}
|
|
160
|
+
}
|
|
117
161
|
|
|
118
|
-
return
|
|
119
|
-
<View float nativeID="leaderboard" style={{flex:1, borderRadius: view_mode == 'full' ? 22 : undefined}}>
|
|
120
|
-
{view_mode == 'short' ?
|
|
121
|
-
<Button
|
|
122
|
-
disabled={disable_collapse}
|
|
123
|
-
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
|
|
124
|
-
transparent
|
|
125
|
-
onPress={() => setExpanded(!expanded)}>
|
|
126
|
-
<Icons.SettingsIcon size={18} color={C.text.h1} />
|
|
127
|
-
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
128
|
-
<Text theme="h1">COMPETITION LEADERBOARD</Text>
|
|
129
|
-
<Text style={{ marginTop: 4 }} theme="description">Leaderboard showing current standings</Text>
|
|
130
|
-
</View>
|
|
131
|
-
{!disable_collapse ?
|
|
132
|
-
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
133
|
-
:<></>}
|
|
134
|
-
</Button>
|
|
162
|
+
if(hidden){ return <></> }
|
|
135
163
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<View
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<View transparent
|
|
146
|
-
<Text
|
|
147
|
-
|
|
148
|
-
<View transparent nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
149
|
-
<Image
|
|
150
|
-
source={{ uri: viewer.profile_pic }}
|
|
151
|
-
style={{ height:30, width:30, borderRadius:100 }}
|
|
152
|
-
resizeMode="cover"
|
|
153
|
-
/>
|
|
154
|
-
</View>
|
|
155
|
-
<View transparent nativeID="details" style={{ flex:1 }}>
|
|
156
|
-
<Text size={12} theme="h2">{viewer.username}</Text>
|
|
157
|
-
{competition_type?.type == 'wager' ?
|
|
158
|
-
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.earnings.toFixed(2)} Earned ({viewer_record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
159
|
-
:
|
|
160
|
-
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.wins} - {viewer_record.losses} - {viewer_record.draws} ({viewer_record.remaining_picks} Remaining)</Text>
|
|
161
|
-
}
|
|
162
|
-
</View>
|
|
163
|
-
<View nativeID="winnings">
|
|
164
|
-
<Text size={12} theme="light" weight='bold'>{cl}{viewer_result.winnings.toFixed(2)}</Text>
|
|
164
|
+
if(view_mode == 'short'){
|
|
165
|
+
return (
|
|
166
|
+
<View float nativeID="leaderboard">
|
|
167
|
+
<Button
|
|
168
|
+
disabled={disable_collapse}
|
|
169
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
|
|
170
|
+
transparent
|
|
171
|
+
onPress={() => setExpanded(!expanded)}>
|
|
172
|
+
<Icons.SettingsIcon size={18} color={C.text.h1} />
|
|
173
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
174
|
+
<Text theme="h1">COMPETITION LEADERBOARD</Text>
|
|
175
|
+
<Text style={{ marginTop: 4 }} theme="description">Leaderboard showing current standings</Text>
|
|
165
176
|
</View>
|
|
177
|
+
{!disable_collapse ?
|
|
178
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
179
|
+
:<></>}
|
|
166
180
|
</Button>
|
|
181
|
+
{expanded ?
|
|
182
|
+
<View transparent type='body' style={{ flex:1 }}>
|
|
183
|
+
{viewer_record && viewer_result && viewer ?
|
|
184
|
+
<View transparent style={{ padding:10, marginBottom:10, borderTopRightRadius:8, borderTopLeftRadius:8, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
185
|
+
<Text size={14} theme="h1">MY RESULTS</Text>
|
|
186
|
+
<Button
|
|
187
|
+
float
|
|
188
|
+
style={{ flexDirection:'row', marginTop:10, marginBottom:10, alignItems:'center', borderRadius:22, padding:12, paddingLeft:15, paddingRight:15 }}>
|
|
189
|
+
<View transparent nativeID="place" style={{ padding:5 }}>
|
|
190
|
+
<Text size={12} theme='h2'>{CompetitionHelpers.formatPlace(viewer_result.place)}</Text>
|
|
191
|
+
</View>
|
|
192
|
+
<View transparent nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
193
|
+
<Image
|
|
194
|
+
source={{ uri: viewer.profile_pic }}
|
|
195
|
+
style={{ height:30, width:30, borderRadius:100 }}
|
|
196
|
+
resizeMode="cover"
|
|
197
|
+
/>
|
|
198
|
+
</View>
|
|
199
|
+
<View transparent nativeID="details" style={{ flex:1 }}>
|
|
200
|
+
<Text size={12} theme="h2">{viewer.username}</Text>
|
|
201
|
+
{competition_type?.type == 'wager' ?
|
|
202
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.earnings.toFixed(2)} Earned ({viewer_record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
203
|
+
:
|
|
204
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.wins} - {viewer_record.losses} - {viewer_record.draws} ({viewer_record.remaining_picks} Remaining)</Text>
|
|
205
|
+
}
|
|
206
|
+
</View>
|
|
207
|
+
<View nativeID="winnings">
|
|
208
|
+
<Text size={12} theme="light" weight='bold'>{cl}{viewer_result.winnings.toFixed(2)}</Text>
|
|
209
|
+
</View>
|
|
210
|
+
</Button>
|
|
211
|
+
</View>
|
|
212
|
+
:<></>}
|
|
167
213
|
</View>
|
|
168
214
|
:<></>}
|
|
169
|
-
|
|
215
|
+
<View transparent style={{ padding:10, flex:1 }}>
|
|
170
216
|
{loading ?
|
|
171
217
|
<ActivityIndicator style={{ alignSelf:'center', padding:10 }} size='large' color={C.text.h1} />
|
|
172
218
|
:<></>}
|
|
173
|
-
<Text size={14} theme="h1" style={{ marginBottom:10 }}>COMPETITION LEADERS</Text>
|
|
174
219
|
<FlatList
|
|
175
220
|
data={results}
|
|
176
221
|
renderItem={renderResults}
|
|
@@ -178,17 +223,27 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
|
|
|
178
223
|
/>
|
|
179
224
|
|
|
180
225
|
</View>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
226
|
+
|
|
227
|
+
<Button
|
|
228
|
+
style={{ backgroundColor:undefined }}
|
|
229
|
+
title='View Full Leaderboard'
|
|
230
|
+
type='text'
|
|
231
|
+
onPress={() => onSeeFull()}
|
|
232
|
+
/>
|
|
233
|
+
</View>
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return (
|
|
238
|
+
<View float style={{ flex:1 }}>
|
|
239
|
+
<View style={{ flex:1 }}>
|
|
240
|
+
<FlatList
|
|
241
|
+
data={sections}
|
|
242
|
+
key={'full_leaders_list'}
|
|
243
|
+
keyExtractor={item => item}
|
|
244
|
+
renderItem={renderSections}
|
|
187
245
|
/>
|
|
188
|
-
:<></>}
|
|
189
246
|
</View>
|
|
190
|
-
:<></>}
|
|
191
|
-
{onClose ?
|
|
192
247
|
<View type='footer' style={{ padding:10, borderBottomRightRadius:22, borderBottomLeftRadius:22 }}>
|
|
193
248
|
<Pagination
|
|
194
249
|
offset={offset}
|
|
@@ -200,11 +255,9 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
|
|
|
200
255
|
title='Close'
|
|
201
256
|
style={{ padding:15 }}
|
|
202
257
|
type='close'
|
|
203
|
-
onPress={() => onClose()}
|
|
258
|
+
onPress={() => onClose ? onClose() : console.log('')}
|
|
204
259
|
/>
|
|
205
260
|
</View>
|
|
206
|
-
:<></>}
|
|
207
|
-
|
|
208
261
|
</View>
|
|
209
262
|
)
|
|
210
263
|
}
|