be-components 6.8.2 → 6.8.4
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/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/Squares/index.js +12 -1
- package/lib/commonjs/Squares/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/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/Squares/index.js +12 -1
- package/lib/module/Squares/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/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/Squares/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Squares/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/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/Squares/index.d.ts +2 -1
- package/lib/typescript/lib/module/Squares/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/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/Squares/index.d.ts +2 -1
- package/lib/typescript/src/Squares/index.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/index.tsx +69 -49
- package/src/Components/ImageUploader.tsx +4 -3
- package/src/CreateEngagement/index.tsx +6 -2
- package/src/Squares/index.tsx +7 -1
- 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,OAAO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AM,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,CAAC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AAS,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":"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"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default SquaresModule;
|
|
3
|
-
declare function SquaresModule({ sq_comp_id, view_mode, insets, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: {
|
|
3
|
+
declare function SquaresModule({ sq_comp_id, view_mode, insets, player_id, distinct_id, onManageSquares, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: {
|
|
4
4
|
sq_comp_id: any;
|
|
5
5
|
view_mode: any;
|
|
6
6
|
insets: any;
|
|
7
7
|
player_id: any;
|
|
8
8
|
distinct_id: any;
|
|
9
|
+
onManageSquares: any;
|
|
9
10
|
onRequestAuthenticate: any;
|
|
10
11
|
onShareCompetition: any;
|
|
11
12
|
onPlayerSelect: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/Squares/index.js"],"names":[],"mappings":";;AA6BA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/Squares/index.js"],"names":[],"mappings":";;AA6BA;;;;;;;;;;QAy2BC"}
|
|
@@ -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":"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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export default SquaresModule;
|
|
2
|
-
declare function SquaresModule({ sq_comp_id, view_mode, insets, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: {
|
|
2
|
+
declare function SquaresModule({ sq_comp_id, view_mode, insets, player_id, distinct_id, onManageSquares, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: {
|
|
3
3
|
sq_comp_id: any;
|
|
4
4
|
view_mode: any;
|
|
5
5
|
insets: any;
|
|
6
6
|
player_id: any;
|
|
7
7
|
distinct_id: any;
|
|
8
|
+
onManageSquares: any;
|
|
8
9
|
onRequestAuthenticate: any;
|
|
9
10
|
onShareCompetition: any;
|
|
10
11
|
onPlayerSelect: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Squares/index.js"],"names":[],"mappings":";AAqBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Squares/index.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;kGAy2BC;kBA93B0C,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,cAA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AC3D,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"}
|
|
@@ -5,6 +5,7 @@ type SquaresModuleProps = {
|
|
|
5
5
|
distinct_id: string;
|
|
6
6
|
view_mode: 'desktop' | 'mobile';
|
|
7
7
|
sq_comp_id: string;
|
|
8
|
+
onManageSquares?: (sc: SquaresCompetitionProps) => void;
|
|
8
9
|
insets?: {
|
|
9
10
|
top: number;
|
|
10
11
|
bottom: number;
|
|
@@ -14,6 +15,6 @@ type SquaresModuleProps = {
|
|
|
14
15
|
onPlayerSelect: (player: PublicPlayerProps) => void;
|
|
15
16
|
onEvent: (ev: BEEventProps) => void;
|
|
16
17
|
};
|
|
17
|
-
declare const SquaresModule: ({ sq_comp_id, view_mode, insets, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: SquaresModuleProps) => React.JSX.Element;
|
|
18
|
+
declare const SquaresModule: ({ sq_comp_id, view_mode, insets, player_id, distinct_id, onManageSquares, onRequestAuthenticate, onShareCompetition, onPlayerSelect }: SquaresModuleProps) => React.JSX.Element;
|
|
18
19
|
export default SquaresModule;
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Squares/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,YAAY,EAA+G,iBAAiB,EAAsE,uBAAuB,EAAwC,MAAM,UAAU,CAAA;AAoB/S,KAAK,kBAAkB,GAAG;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,EAAC,MAAM,CAAC;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AC,CAAC,EAAE,EAAC,YAAY,KAAK,IAAI,CAAA;CACpC,CAAA;AAID,QAAA,MAAM,aAAa,GAAI,uIAAsI,kBAAkB,sBA0lB9K,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -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,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE7P,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAG5B,QAAA,MAAM,iBAAiB;;sBASC,OAAO,CAAC,WAAW,EAAE,CAAC;qCAQL,MAAM,EAAE,KAAE,OAAO,CAAC,UAAU,EAAE,CAAC;2CASzB,MAAM,KAAE,OAAO,CAAC,SAAS,GAAG;QAAE,mBAAmB,EAAC,uBAAuB,CAAC;QAAC,cAAc,EAAC,iBAAiB,EAAE,CAAC;QAAC,OAAO,EAAC,WAAW,EAAE,CAAC;QAAC,cAAc,EAAC,iBAAiB,EAAE,CAAC;QAAC,aAAa,EAAC,gBAAgB,EAAE,CAAC;QAAC,YAAY,EAAC,gBAAgB,CAAC;QAAC,mBAAmB,EAAE,kBAAkB,CAAC;QAAC,qBAAqB,EAAC,iBAAiB,EAAE,CAAC;QAAC,aAAa,EAAC,gBAAgB,EAAE,CAAA;KAAE,CAAC;oDAQzV,uBAAuB,KAAE,OAAO,CAAC,uBAAuB,GAAC,SAAS,CAAC;0BAQ9F,OAAO,CAAC;QAAC,SAAS,EAAC,YAAY,EAAE,CAAC;QAAC,eAAe,EAAC,kBAAkB,EAAE,CAAA;KAAC,CAAC;0BAKxE,MAAM,KAAE,OAAO,CAAC;QAAC,MAAM,EAAE,UAAU,EAAE,CAAC;QAAC,aAAa,EAAC,gBAAgB,EAAE,CAAA;KAAC,CAAC;oDAS/C,uBAAuB,KAAE,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC;kCASvF,MAAM,KAAE,OAAO,CAAC,SAAS,GAAG;QAAE,mBAAmB,EAAC,uBAAuB,CAAA;KAAE,CAAC;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,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAC9C,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,WAAW,MAAM,WAAW,CAAC;AACpC,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,aAAa,MAAM,WAAW,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,qBA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,CAAC;AAChC,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,SAAS,CAAC;AAChC,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,iBAAiB,MAAM,sCAAsC,CAAC;AACrE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,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"}
|
|
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,C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AAQ,EACR,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,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
|
@@ -31,7 +31,7 @@ type CompetitionModuleProps = {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
const competition_sections = ['header','join','test','details','leaderboard','play']
|
|
34
|
+
const competition_sections = ['header','pending','join','test','details','leaderboard','play']
|
|
35
35
|
|
|
36
36
|
const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confirm_padding, onManageCompetition, onFocusPosition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
|
|
37
37
|
const C = useColors();
|
|
@@ -370,6 +370,23 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
|
|
|
370
370
|
</Button>
|
|
371
371
|
</View>
|
|
372
372
|
)
|
|
373
|
+
case 'pending':
|
|
374
|
+
if(competition.status != 'pending' || !onManageCompetition){ return <></> }
|
|
375
|
+
return (
|
|
376
|
+
<View type='header' style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
377
|
+
<View transparent style={{ flex:1 }}>
|
|
378
|
+
<Text theme='h1' color={Colors.text.error}>Competition Is Pending</Text>
|
|
379
|
+
<Text theme='description' color={Colors.text.error} style={{ marginTop:4 }}>This competition is not yet active</Text>
|
|
380
|
+
</View>
|
|
381
|
+
<Button
|
|
382
|
+
title='FINISH SET UP'
|
|
383
|
+
backgroundColor={Colors.text.warning}
|
|
384
|
+
title_color={Colors.text.white}
|
|
385
|
+
style={{ padding:10 }}
|
|
386
|
+
onPress={() => onManageCompetition(competition.competition_id)}
|
|
387
|
+
/>
|
|
388
|
+
</View>
|
|
389
|
+
)
|
|
373
390
|
case 'join':
|
|
374
391
|
return (
|
|
375
392
|
<View transparent>
|
|
@@ -473,29 +490,56 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
|
|
|
473
490
|
case 'play':
|
|
474
491
|
if(!competition || !competition_type){ return <></> }
|
|
475
492
|
return (
|
|
476
|
-
<
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
493
|
+
<View transparent>
|
|
494
|
+
<CompetitionPlay
|
|
495
|
+
hidden={active_tab == 'play' ? false : true}
|
|
496
|
+
competition={competition}
|
|
497
|
+
disable_collapse
|
|
498
|
+
competition_type={competition_type}
|
|
499
|
+
competition_matches={competition_matches}
|
|
500
|
+
competition_match_markets={competition_match_markets}
|
|
501
|
+
leagues={leagues}
|
|
502
|
+
events={events}
|
|
503
|
+
pick_loading={pick_loading}
|
|
504
|
+
athletes={athletes}
|
|
505
|
+
markets={markets}
|
|
506
|
+
tournaments={tournaments}
|
|
507
|
+
matches={matches}
|
|
508
|
+
player_picks={player_picks}
|
|
509
|
+
player_id={player_id}
|
|
510
|
+
competition_players={competition_players}
|
|
511
|
+
authenticated_competition_player={authenticated_competition_player}
|
|
512
|
+
height={module_size.height}
|
|
513
|
+
width={module_size.width}
|
|
514
|
+
onPick={handlePick}
|
|
515
|
+
onRequestAuthentication={() => onRequestAuthentication(competition.auth_strategy_id)}
|
|
516
|
+
/>
|
|
517
|
+
{active_tab == 'play' && (competition.status == 'paused' || competition.status =='pending') ?
|
|
518
|
+
<View type='blur' style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
|
|
519
|
+
<View style={{ ...view_styles.section, width: '70%' }}>
|
|
520
|
+
<View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center' }}>
|
|
521
|
+
<Text theme='h1'>Competition is {competition.status}</Text>
|
|
522
|
+
</View>
|
|
523
|
+
<View style={{ ...view_styles.section_body, justifyContent:'center', alignItems:'center' }}>
|
|
524
|
+
<Image
|
|
525
|
+
source={{ uri: competition.image?.url }}
|
|
526
|
+
style={{ height:75, width: 75 }}
|
|
527
|
+
resizeMode='cover'
|
|
528
|
+
/>
|
|
529
|
+
<Text theme='h2'>{competition.competition_name}</Text>
|
|
530
|
+
</View>
|
|
531
|
+
<View style={{ ...view_styles.section_footer }}>
|
|
532
|
+
<Button
|
|
533
|
+
title='CLOSE'
|
|
534
|
+
style={{ flex:1 }}
|
|
535
|
+
type='close'
|
|
536
|
+
onPress={() => onClose()}
|
|
537
|
+
/>
|
|
538
|
+
</View>
|
|
539
|
+
</View>
|
|
540
|
+
</View>
|
|
541
|
+
:<></>}
|
|
542
|
+
</View>
|
|
499
543
|
)
|
|
500
544
|
default: return <></>
|
|
501
545
|
}
|
|
@@ -653,31 +697,7 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
|
|
|
653
697
|
</View>
|
|
654
698
|
</View>
|
|
655
699
|
:<></>}
|
|
656
|
-
|
|
657
|
-
<View type='blur' style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
|
|
658
|
-
<View style={{ ...view_styles.section, width: '70%' }}>
|
|
659
|
-
<View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center' }}>
|
|
660
|
-
<Text theme='h1'>Competition Is Paused</Text>
|
|
661
|
-
</View>
|
|
662
|
-
<View style={{ ...view_styles.section_body, justifyContent:'center', alignItems:'center' }}>
|
|
663
|
-
<Image
|
|
664
|
-
source={{ uri: competition.image?.url }}
|
|
665
|
-
style={{ height:75, width: 75 }}
|
|
666
|
-
resizeMode='cover'
|
|
667
|
-
/>
|
|
668
|
-
<Text theme='h2'>{competition.competition_name}</Text>
|
|
669
|
-
</View>
|
|
670
|
-
<View style={{ ...view_styles.section_footer }}>
|
|
671
|
-
<Button
|
|
672
|
-
title='CLOSE'
|
|
673
|
-
style={{ flex:1 }}
|
|
674
|
-
type='close'
|
|
675
|
-
onPress={() => onClose()}
|
|
676
|
-
/>
|
|
677
|
-
</View>
|
|
678
|
-
</View>
|
|
679
|
-
</View>
|
|
680
|
-
:<></>}
|
|
700
|
+
|
|
681
701
|
</View>
|
|
682
702
|
)
|
|
683
703
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import { TouchableOpacity } from "react-native";
|
|
7
|
+
import { TouchableOpacity, type ViewStyle } from "react-native";
|
|
8
8
|
import * as ImagePicker from 'expo-image-picker';
|
|
9
9
|
import axios from 'axios';
|
|
10
10
|
|
|
@@ -12,11 +12,12 @@ import axios from 'axios';
|
|
|
12
12
|
type CldUploaderProps = {
|
|
13
13
|
onFinishUpload : (obj:any | undefined) => void
|
|
14
14
|
onStartUpload?: () => void,
|
|
15
|
+
style?:ViewStyle,
|
|
15
16
|
onCancelUpload?: () => void,
|
|
16
17
|
children?:any,
|
|
17
18
|
public_id: string
|
|
18
19
|
}
|
|
19
|
-
const ImageUploader = ({ onStartUpload, onFinishUpload, public_id, children }:CldUploaderProps) => {
|
|
20
|
+
const ImageUploader = ({ style, onStartUpload, onFinishUpload, public_id, children }:CldUploaderProps) => {
|
|
20
21
|
|
|
21
22
|
/*
|
|
22
23
|
const processFile = async (file:any) => {
|
|
@@ -138,7 +139,7 @@ const ImageUploader = ({ onStartUpload, onFinishUpload, public_id, children }:Cl
|
|
|
138
139
|
return onFinishUpload(object)
|
|
139
140
|
}
|
|
140
141
|
return (
|
|
141
|
-
<TouchableOpacity style={{ padding:10 }} onPress={() => handleClick()}>
|
|
142
|
+
<TouchableOpacity style={{ padding:10, ...style }} onPress={() => handleClick()}>
|
|
142
143
|
{children}
|
|
143
144
|
</TouchableOpacity>
|
|
144
145
|
);
|