be-components 0.7.3 → 0.7.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/ApiOverrides/index.js +18 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Checkout/api/index.js.map +1 -1
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/api/index.js +655 -0
- package/lib/commonjs/Competition/api/index.js.map +1 -0
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +168 -0
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionCard.js +180 -0
- package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +264 -0
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +281 -0
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionPlay.js +1269 -0
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +111 -0
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionSelector.js +122 -0
- package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js +380 -0
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -0
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +237 -0
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -0
- package/lib/commonjs/Competition/components/LeaderPicks.js +322 -0
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -0
- package/lib/commonjs/Competition/components/ManageSeasonForm.js +605 -0
- package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +1 -0
- package/lib/commonjs/Competition/components/MarketsCard.js +148 -0
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -0
- package/lib/commonjs/Competition/components/MatchMarketCard.js +199 -0
- package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -0
- package/lib/commonjs/Competition/components/NavOutPrompt.js +159 -0
- package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -0
- package/lib/commonjs/Competition/components/SeasonInfoModal.js +400 -0
- package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +1 -0
- package/lib/commonjs/Competition/components/TeamEventCard.js +217 -0
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -0
- package/lib/commonjs/Competition/components/WagerPickForm.js +278 -0
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -0
- package/lib/commonjs/Competition/index.js +42 -0
- package/lib/commonjs/Competition/index.js.map +1 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +713 -0
- package/lib/commonjs/Components/Jerseys.js.map +1 -0
- package/lib/commonjs/Components/LinearDiagnal.js +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/Switch.js +81 -0
- package/lib/commonjs/Components/Switch.js.map +1 -0
- package/lib/commonjs/Components/index.js +14 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/Poll/api/index.js +240 -0
- package/lib/commonjs/Poll/api/index.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignPlay.js +553 -0
- package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignProgressBar.js +118 -0
- package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignResult.js +382 -0
- package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignSelector.js +124 -0
- package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -0
- package/lib/commonjs/Poll/components/PollCampaignCard.js +66 -0
- package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollCard.js +480 -0
- package/lib/commonjs/Poll/components/PollCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollOptionCard.js +158 -0
- package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollSelectCard.js +189 -0
- package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -0
- package/lib/commonjs/Poll/components/ResponseTimer.js +48 -0
- package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -0
- package/lib/commonjs/Poll/components/WidgetHeader.js +83 -0
- package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -0
- package/lib/commonjs/Poll/index.js +31 -0
- package/lib/commonjs/Poll/index.js.map +1 -0
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +5 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Wallet/api/index.js +4 -1
- package/lib/commonjs/Wallet/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +18 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Checkout/api/index.js.map +1 -1
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Competition/api/index.js +649 -0
- package/lib/module/Competition/api/index.js.map +1 -0
- package/lib/module/Competition/components/AthleteMarketCard.js +161 -0
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionCard.js +173 -0
- package/lib/module/Competition/components/CompetitionCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionInfoCard.js +257 -0
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionLeaderboard.js +272 -0
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionPlay.js +1260 -0
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -0
- package/lib/module/Competition/components/CompetitionSeasonCard.js +104 -0
- package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionSelector.js +113 -0
- package/lib/module/Competition/components/CompetitionSelector.js.map +1 -0
- package/lib/module/Competition/components/CompetitionTypeCard.js +371 -0
- package/lib/module/Competition/components/CompetitionTypeCard.js.map +1 -0
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +228 -0
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -0
- package/lib/module/Competition/components/LeaderPicks.js +313 -0
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -0
- package/lib/module/Competition/components/ManageSeasonForm.js +596 -0
- package/lib/module/Competition/components/ManageSeasonForm.js.map +1 -0
- package/lib/module/Competition/components/MarketsCard.js +139 -0
- package/lib/module/Competition/components/MarketsCard.js.map +1 -0
- package/lib/module/Competition/components/MatchMarketCard.js +192 -0
- package/lib/module/Competition/components/MatchMarketCard.js.map +1 -0
- package/lib/module/Competition/components/NavOutPrompt.js +152 -0
- package/lib/module/Competition/components/NavOutPrompt.js.map +1 -0
- package/lib/module/Competition/components/SeasonInfoModal.js +391 -0
- package/lib/module/Competition/components/SeasonInfoModal.js.map +1 -0
- package/lib/module/Competition/components/TeamEventCard.js +210 -0
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -0
- package/lib/module/Competition/components/WagerPickForm.js +269 -0
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -0
- package/lib/module/Competition/index.js +33 -0
- package/lib/module/Competition/index.js.map +1 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Jerseys.js +705 -0
- package/lib/module/Components/Jerseys.js.map +1 -0
- package/lib/module/Components/LinearDiagnal.js +2 -3
- package/lib/module/Components/LinearDiagnal.js.map +1 -1
- package/lib/module/Components/Switch.js +74 -0
- package/lib/module/Components/Switch.js.map +1 -0
- package/lib/module/Components/index.js +3 -1
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/Poll/api/index.js +234 -0
- package/lib/module/Poll/api/index.js.map +1 -0
- package/lib/module/Poll/components/CampaignPlay.js +545 -0
- package/lib/module/Poll/components/CampaignPlay.js.map +1 -0
- package/lib/module/Poll/components/CampaignProgressBar.js +110 -0
- package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -0
- package/lib/module/Poll/components/CampaignResult.js +374 -0
- package/lib/module/Poll/components/CampaignResult.js.map +1 -0
- package/lib/module/Poll/components/CampaignSelector.js +115 -0
- package/lib/module/Poll/components/CampaignSelector.js.map +1 -0
- package/lib/module/Poll/components/PollCampaignCard.js +59 -0
- package/lib/module/Poll/components/PollCampaignCard.js.map +1 -0
- package/lib/module/Poll/components/PollCard.js +472 -0
- package/lib/module/Poll/components/PollCard.js.map +1 -0
- package/lib/module/Poll/components/PollOptionCard.js +149 -0
- package/lib/module/Poll/components/PollOptionCard.js.map +1 -0
- package/lib/module/Poll/components/PollSelectCard.js +182 -0
- package/lib/module/Poll/components/PollSelectCard.js.map +1 -0
- package/lib/module/Poll/components/ResponseTimer.js +39 -0
- package/lib/module/Poll/components/ResponseTimer.js.map +1 -0
- package/lib/module/Poll/components/WidgetHeader.js +76 -0
- package/lib/module/Poll/components/WidgetHeader.js.map +1 -0
- package/lib/module/Poll/index.js +22 -0
- package/lib/module/Poll/index.js.map +1 -0
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +5 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Wallet/api/index.js +4 -1
- package/lib/module/Wallet/api/index.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts +1 -0
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/api/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/api/index.d.ts +1 -2
- package/lib/typescript/src/Checkout/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/api/index.d.ts +128 -0
- package/lib/typescript/src/Competition/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts +19 -0
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts +12 -0
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +16 -0
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +14 -0
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +20 -0
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts +10 -0
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts +11 -0
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts +14 -0
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +16 -0
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +22 -0
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +10 -0
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts +15 -0
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts +21 -0
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts +23 -0
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +14 -0
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts +17 -0
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +15 -0
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -0
- package/lib/typescript/src/Competition/index.d.ts +11 -0
- package/lib/typescript/src/Competition/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/Jerseys.d.ts +16 -0
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -0
- package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Switch.d.ts +9 -0
- package/lib/typescript/src/Components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/Components/index.d.ts +3 -1
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/Poll/api/index.d.ts +61 -0
- package/lib/typescript/src/Poll/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +14 -0
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts +12 -0
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts +13 -0
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts +9 -0
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts +10 -0
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollCard.d.ts +16 -0
- package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts +14 -0
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +16 -0
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts +9 -0
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts +13 -0
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts.map +1 -0
- package/lib/typescript/src/Poll/index.d.ts +7 -0
- package/lib/typescript/src/Poll/index.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +10 -3
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts +2 -3
- package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts +1 -2
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ApiOverrides/index.ts +19 -0
- package/src/Authenticator/api/index.ts +2 -2
- package/src/Authenticator/api/types.d.ts +1 -25
- package/src/Authenticator/index.tsx +2 -1
- package/src/Checkout/api/index.tsx +1 -2
- package/src/Checkout/index.tsx +1 -2
- package/src/Competition/api/index.ts +568 -0
- package/src/Competition/components/AthleteMarketCard.tsx +116 -0
- package/src/Competition/components/CompetitionCard.tsx +82 -0
- package/src/Competition/components/CompetitionInfoCard.tsx +149 -0
- package/src/Competition/components/CompetitionLeaderboard.tsx +183 -0
- package/src/Competition/components/CompetitionPlay.tsx +936 -0
- package/src/Competition/components/CompetitionSeasonCard.tsx +48 -0
- package/src/Competition/components/CompetitionSelector.tsx +91 -0
- package/src/Competition/components/CompetitionTypeCard.tsx +211 -0
- package/src/Competition/components/EnterCompetitionPrompt.tsx +127 -0
- package/src/Competition/components/LeaderPicks.tsx +214 -0
- package/src/Competition/components/ManageSeasonForm.tsx +271 -0
- package/src/Competition/components/MarketsCard.tsx +108 -0
- package/src/Competition/components/MatchMarketCard.tsx +126 -0
- package/src/Competition/components/NavOutPrompt.tsx +87 -0
- package/src/Competition/components/SeasonInfoModal.tsx +212 -0
- package/src/Competition/components/TeamEventCard.tsx +136 -0
- package/src/Competition/components/WagerPickForm.tsx +114 -0
- package/src/Competition/index.tsx +36 -0
- package/src/Components/Icons.tsx +0 -2
- package/src/Components/Jerseys.tsx +268 -0
- package/src/Components/LinearDiagnal.tsx +2 -3
- package/src/Components/Switch.tsx +55 -0
- package/src/Components/index.tsx +5 -1
- package/src/Poll/api/index.ts +178 -0
- package/src/Poll/components/CampaignPlay.tsx +407 -0
- package/src/Poll/components/CampaignProgressBar.tsx +70 -0
- package/src/Poll/components/CampaignResult.tsx +180 -0
- package/src/Poll/components/CampaignSelector.tsx +96 -0
- package/src/Poll/components/PollCampaignCard.tsx +35 -0
- package/src/Poll/components/PollCard.tsx +335 -0
- package/src/Poll/components/PollOptionCard.tsx +110 -0
- package/src/Poll/components/PollSelectCard.tsx +106 -0
- package/src/Poll/components/ResponseTimer.tsx +37 -0
- package/src/Poll/components/WidgetHeader.tsx +46 -0
- package/src/Poll/index.tsx +25 -0
- package/src/ProfileManager/Components/BasicInfoManager.tsx +1 -1
- package/src/ProfileManager/Components/BasicStatus.tsx +1 -2
- package/src/ProfileManager/Components/CodeRedeem.tsx +10 -3
- package/src/ProfileManager/Components/DOBManager.tsx +1 -1
- package/src/ProfileManager/Components/EmailManager.tsx +1 -1
- package/src/ProfileManager/Components/PasswordManager.tsx +2 -1
- package/src/ProfileManager/Components/PhoneManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfilePicManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfileWelcome.tsx +1 -2
- package/src/ProfileManager/Components/ProfileWizard.tsx +14 -3
- package/src/ProfileManager/Components/SettingsManager.tsx +2 -2
- package/src/ProfileManager/Components/VouchCard.tsx +1 -2
- package/src/ProfileManager/api/index.ts +2 -2
- package/src/ProfileManager/api/types.d.ts +0 -35
- package/src/ProfileManager/index.tsx +11 -3
- package/src/Wallet/api/index.ts +6 -4
- package/src/Wallet/components/ACHAddCard.tsx +1 -2
- package/src/Wallet/components/AddressManager.tsx +1 -2
- package/src/Wallet/components/DepositCard.tsx +1 -2
- package/src/Wallet/components/FundAccountCard.tsx +1 -2
- package/src/Wallet/components/ManageAccountCard.tsx +1 -2
- package/src/Wallet/components/ManualACHAdd.tsx +1 -2
- package/src/Wallet/components/ManualCardAdd.tsx +1 -2
- package/src/Wallet/components/MyBalance.tsx +1 -2
- package/src/Wallet/components/WalletActionSelector.tsx +1 -2
- package/src/Wallet/components/WalletSettings.tsx +1 -2
- package/src/Wallet/components/WalletSetup.tsx +1 -2
- package/src/Wallet/components/WithdrawCard.tsx +1 -2
- package/src/Wallet/index.tsx +1 -2
- package/src/index.tsx +5 -2
- package/src/types.d.ts +483 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image, TouchableOpacity, View } from "react-native"
|
|
3
|
+
import type { CompetitionResultTypeProps, CompetitionSeasonProps } from '../../types';
|
|
4
|
+
import Colors from '../../constants/colors';
|
|
5
|
+
import { Icons, Text } from '../../Components';
|
|
6
|
+
|
|
7
|
+
type CompetitionSeasonCardProps = {
|
|
8
|
+
competition_season:CompetitionSeasonProps,
|
|
9
|
+
competition_result_type:CompetitionResultTypeProps
|
|
10
|
+
onSelect: (competition_seasons:CompetitionSeasonProps) => void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const CompetitionSeasonCard = ({ competition_season, competition_result_type, onSelect }: CompetitionSeasonCardProps) => {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const comp_colors = { backgroundColor:Colors.highlights.highlight300Faded, borderColor:Colors.highlights.highlight300 }
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<TouchableOpacity style={{ flex:1, borderRadius:8, borderWidth:1, borderColor:Colors.shades.shade600, flexShrink:0 }} onPress={() => onSelect(competition_season)}>
|
|
20
|
+
<View nativeID="comp_info">
|
|
21
|
+
<View style={{flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
22
|
+
<View nativeID="comp_image" style={{ marginRight:5 }}>
|
|
23
|
+
<Image style={{height:35, width:35, borderRadius:4}} source={{ uri: competition_season.image?.url }} />
|
|
24
|
+
</View>
|
|
25
|
+
<View nativeID="comp_name_desc" style={{ flex:1 }}>
|
|
26
|
+
<Text size={12} color={Colors.brand.midnight} weight='semibold'>{competition_season.season_name}</Text>
|
|
27
|
+
<Text size={12} color={Colors.brand.midnight} weight='regular' style={{ marginTop:2 }}>{competition_season.season_description.substring(0,30)}...</Text>
|
|
28
|
+
</View>
|
|
29
|
+
<Icons.ChevronIcon direction="right" size={10} color={Colors.brand.midnight}/>
|
|
30
|
+
</View>
|
|
31
|
+
<View nativeID="comp_amounts" style={{ flexDirection:'row', padding:5 }}>
|
|
32
|
+
<View style={{ flex:1, flexDirection:'row' }}>
|
|
33
|
+
<View style={{ backgroundColor:comp_colors.backgroundColor, borderWidth:1, borderColor:comp_colors.borderColor, borderRadius:8, padding:5 }}>
|
|
34
|
+
<Text size={10} color={comp_colors.borderColor} weight='semibold'>{competition_season.payout_allocation*100}%</Text>
|
|
35
|
+
</View>
|
|
36
|
+
{competition_result_type ?
|
|
37
|
+
<View style={{ marginLeft: 5, backgroundColor:comp_colors.backgroundColor, borderWidth:1, borderColor:comp_colors.borderColor, borderRadius:8, padding:5 }}>
|
|
38
|
+
<Text size={10} color={comp_colors.borderColor} weight='semibold'>{competition_result_type.label}</Text>
|
|
39
|
+
</View>
|
|
40
|
+
:<></>}
|
|
41
|
+
</View>
|
|
42
|
+
</View>
|
|
43
|
+
</View>
|
|
44
|
+
</TouchableOpacity>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default CompetitionSeasonCard
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react"
|
|
2
|
+
import { ActivityIndicator, FlatList, Image, View } from "react-native"
|
|
3
|
+
import CompetitionCard from "./CompetitionCard"
|
|
4
|
+
import type { CompanyProps, CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps } from "../../types"
|
|
5
|
+
import Colors from "../../constants/colors"
|
|
6
|
+
import LinearGradient from "react-native-linear-gradient"
|
|
7
|
+
import { CompetitionApi } from "../api"
|
|
8
|
+
import { view_styles } from "../../constants/styles"
|
|
9
|
+
import { Text } from "../../Components"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
type CompetitionSelectorProps = {
|
|
13
|
+
company?:CompanyProps,
|
|
14
|
+
competition_types:CompetitionTypeProps[],
|
|
15
|
+
competition_result_types:CompetitionResultTypeProps[],
|
|
16
|
+
onCompetitionSelect:(competition:CompetitionProps) => void
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const CompetitionSelector = ({ company, competition_types, competition_result_types, onCompetitionSelect }:CompetitionSelectorProps) => {
|
|
20
|
+
const [ loading, setLoading ] = useState(false);
|
|
21
|
+
const [ competitions, setCompetitions ] = useState<CompetitionProps[]>([]);
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
getCompanyData(company);
|
|
25
|
+
},[company])
|
|
26
|
+
|
|
27
|
+
const getCompanyData = async(company?:CompanyProps) => {
|
|
28
|
+
setLoading(true)
|
|
29
|
+
if(!company){ return }
|
|
30
|
+
const competitions = await CompetitionApi.getCompetitionsByCompanyId(company.company_id, 0, 'active')
|
|
31
|
+
setCompetitions(competitions.filter(c => c.status == 'scheduled'))
|
|
32
|
+
setLoading(false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const renderCompetitions = (data: {item:CompetitionProps, index:number} ) => {
|
|
36
|
+
const competition_type = competition_types.find(ct => ct.competition_type_id == data.item.competition_type_id);
|
|
37
|
+
const competition_result_type = competition_result_types.find(ct => ct.competition_result_type_id == data.item.competition_result_type_id);
|
|
38
|
+
if(!competition_type || !competition_result_type){ return <></> }
|
|
39
|
+
return (
|
|
40
|
+
<View style={{ margin:5, backgroundColor:Colors.shades.white, ...view_styles.float, borderRadius:8 }}>
|
|
41
|
+
<CompetitionCard
|
|
42
|
+
backup_image_url={company?.company_image?.url}
|
|
43
|
+
competition={data.item}
|
|
44
|
+
competition_type={competition_type}
|
|
45
|
+
competition_result_type={competition_result_type}
|
|
46
|
+
onSelect={onCompetitionSelect}
|
|
47
|
+
/>
|
|
48
|
+
</View>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<LinearGradient
|
|
54
|
+
colors={[Colors.shades.shade100, Colors.shades.white]}
|
|
55
|
+
|
|
56
|
+
style={{ flex:1, width:'100%', padding:10 }}>
|
|
57
|
+
{company ?
|
|
58
|
+
<View nativeID="company_details" style={{ flexDirection:'row', padding:10, marginBottom:15, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
|
|
59
|
+
<View>
|
|
60
|
+
<Image
|
|
61
|
+
source={{ uri: company.company_image?.url }}
|
|
62
|
+
style={{ height:75, width:75, borderRadius:8 }}
|
|
63
|
+
resizeMode="center"
|
|
64
|
+
/>
|
|
65
|
+
</View>
|
|
66
|
+
<View style={{ flex:1, marginLeft:15 }}>
|
|
67
|
+
<Text size={14} color={company?.brand_primary ?? Colors.brand.midnight} weight='bold'>{company.company_name}</Text>
|
|
68
|
+
<Text style={{ marginTop:3 }} size={12} color={company?.brand_primary ?? Colors.brand.midnight} weight='semibold'>{company.company_description}</Text>
|
|
69
|
+
</View>
|
|
70
|
+
</View>
|
|
71
|
+
:<></>}
|
|
72
|
+
<View style={{ padding:10 }}>
|
|
73
|
+
<Text size={16} color={Colors.brand.midnight}>Available Competitions</Text>
|
|
74
|
+
</View>
|
|
75
|
+
{loading ?
|
|
76
|
+
<ActivityIndicator
|
|
77
|
+
color={Colors.brand.midnight}
|
|
78
|
+
size='large'
|
|
79
|
+
style={{ padding:20, alignSelf:'center' }}
|
|
80
|
+
/>
|
|
81
|
+
:<></>}
|
|
82
|
+
<FlatList
|
|
83
|
+
data={competitions}
|
|
84
|
+
renderItem={renderCompetitions}
|
|
85
|
+
keyExtractor={(item) => item.competition_id}
|
|
86
|
+
/>
|
|
87
|
+
</LinearGradient>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export default CompetitionSelector
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { FlatList, Image, View } from 'react-native';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import type { CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, PublicPlayerProps } from '../../types';
|
|
4
|
+
import { Button, Text } from '../../Components';
|
|
5
|
+
import Colors from '../../constants/colors';
|
|
6
|
+
import { CompetitionApi, CompetitionHelpers } from '../api';
|
|
7
|
+
|
|
8
|
+
type CompetitionResultCardProps = {
|
|
9
|
+
visible: boolean,
|
|
10
|
+
competition:CompetitionProps,
|
|
11
|
+
competition_payout_types:CompetitionPayoutTypeProps[],
|
|
12
|
+
competition_type: CompetitionTypeProps,
|
|
13
|
+
init_view: 'type'|'result'
|
|
14
|
+
onClose:() => void,
|
|
15
|
+
competition_result_type: CompetitionResultTypeProps
|
|
16
|
+
}
|
|
17
|
+
type CompetitionNavProps = {
|
|
18
|
+
step: number,
|
|
19
|
+
view: 'type'|'result'|'payout'|'prize'
|
|
20
|
+
label:string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const CompetitionTypeCard = ({ competition, competition_payout_types, visible, onClose, competition_type, competition_result_type }:CompetitionResultCardProps) => {
|
|
25
|
+
const [ data, setData ] = useState<{
|
|
26
|
+
loading:boolean,
|
|
27
|
+
pacer?:PublicPlayerProps
|
|
28
|
+
}>({
|
|
29
|
+
loading:false,
|
|
30
|
+
})
|
|
31
|
+
const [ active_nav, setActiveNav ] = useState(1);
|
|
32
|
+
const { pacer } = data;
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if(!competition){ return }
|
|
35
|
+
getDataFromServer(competition)
|
|
36
|
+
},[competition])
|
|
37
|
+
|
|
38
|
+
const getDataFromServer = async(comp:CompetitionProps) => {
|
|
39
|
+
let pcer:PublicPlayerProps|undefined = undefined
|
|
40
|
+
if(comp.pacer_id){
|
|
41
|
+
let players = await CompetitionApi.getPlayersByPlayerIds([comp.pacer_id])
|
|
42
|
+
pcer = players.find(p => p.player_id == comp.pacer_id)
|
|
43
|
+
}
|
|
44
|
+
setData({
|
|
45
|
+
...data,
|
|
46
|
+
loading:false,
|
|
47
|
+
pacer:pcer
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
let competition_navs:CompetitionNavProps[] = [
|
|
53
|
+
{ step:1, view: 'type', label: 'Competition Type' },
|
|
54
|
+
{ step:2, view: 'result', label: 'How are winners determined?' }
|
|
55
|
+
//{ step:3, view: 'payout', label: 'Payout Structure'}
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
if(competition.prize_override){
|
|
59
|
+
competition_navs = competition_navs.map(cn => {
|
|
60
|
+
return { ...cn, step: cn.step+1 }
|
|
61
|
+
})
|
|
62
|
+
competition_navs.push({
|
|
63
|
+
step:1, view: 'prize', label:'Additional Prize!'
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
const renderPayouts = (data: {item: CompetitionPayoutTypeProps}) => {
|
|
69
|
+
return (
|
|
70
|
+
<View style={{ padding:5, borderBottomColor:Colors.shades.shade600, borderBottomWidth:1, flexDirection:'row', alignItems:'center', width:100 }}>
|
|
71
|
+
<Text size={14} color={Colors.brand.midnight}>{CompetitionHelpers.formatPlace(data.item.tier)}</Text>
|
|
72
|
+
<Text style={{ flex:1 }} textAlign='center' weight='bold' color={Colors.brand.midnight}>-</Text>
|
|
73
|
+
<Text size={14} color={Colors.brand.midnight}>{data.item.payout}%</Text>
|
|
74
|
+
</View>
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const renderResult = (competition_result_type:CompetitionResultTypeProps) => {
|
|
79
|
+
switch(competition_result_type.type){
|
|
80
|
+
case 'battle_royale':
|
|
81
|
+
return (
|
|
82
|
+
<Text style={{ marginTop:10 }} size={14} color={Colors.brand.midnight} weight='semibold' textAlign='center'>Winner takes all. Ties for first will split the pot.</Text>
|
|
83
|
+
)
|
|
84
|
+
case 'double_up':
|
|
85
|
+
return (
|
|
86
|
+
<Text style={{ marginTop:10 }} size={14} color={Colors.brand.midnight} weight='semibold' textAlign='center'>Finish in the top half of all participants and split total pot.</Text>
|
|
87
|
+
)
|
|
88
|
+
case 'outpace':
|
|
89
|
+
return (
|
|
90
|
+
<View style={{ padding:5 }}>
|
|
91
|
+
{pacer?
|
|
92
|
+
<View nativeID='pacer'>
|
|
93
|
+
<View nativeID='profile_pic' style={{ padding:5, justifyContent:'center', alignItems:'center' }}>
|
|
94
|
+
<Image
|
|
95
|
+
source={{ uri: pacer.profile_pic }}
|
|
96
|
+
style={{ height:75, width:75, borderRadius:100 }}
|
|
97
|
+
resizeMode='cover'
|
|
98
|
+
/>
|
|
99
|
+
</View>
|
|
100
|
+
<View nativeID='username' style={{ marginTop:10 }}>
|
|
101
|
+
<Text size={18} color={Colors.brand.midnight} weight='bold' textAlign='center'>@{pacer.username}</Text>
|
|
102
|
+
</View>
|
|
103
|
+
</View>
|
|
104
|
+
:<></>}
|
|
105
|
+
<Text style={{ marginTop:10 }} size={14} color={Colors.brand.midnight} weight='semibold' textAlign='center'>Split the pot with anyone who finishes above the pacer. If the pacer wins, they take the whole pot!</Text>
|
|
106
|
+
</View>
|
|
107
|
+
)
|
|
108
|
+
default:
|
|
109
|
+
return (
|
|
110
|
+
<View>
|
|
111
|
+
<Text style={{ padding:10 }} size={14} color={Colors.brand.midnight} weight='bold' textAlign='center'>{competition_result_type.description}</Text>
|
|
112
|
+
<View style={{ margin:5, padding:10, backgroundColor:Colors.highlights.highlight400Faded, borderRadius:8, alignItems:'center' }}>
|
|
113
|
+
<Text style={{ marginBottom:10 }} size={14} color={Colors.brand.midnight} weight='bold'>Payout Tiers</Text>
|
|
114
|
+
<FlatList
|
|
115
|
+
data={competition_payout_types.sort((a,b) => a.tier - b.tier)}
|
|
116
|
+
renderItem={renderPayouts}
|
|
117
|
+
keyExtractor={(item) => item.competition_payout_type_id.toString()}
|
|
118
|
+
/>
|
|
119
|
+
</View>
|
|
120
|
+
</View>
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if(!visible || !competition){ return <></> }
|
|
126
|
+
const viewing_nav = competition_navs.find(cnv => cnv.step == active_nav) ?? { view: '', label: '' }
|
|
127
|
+
return (
|
|
128
|
+
<View style={{ backgroundColor:Colors.shades.white, width:350, minHeight:450, borderRadius:8 }}>
|
|
129
|
+
<View nativeID='competition_header' style={{ flexDirection:'row', alignItems:'center', padding:10, borderBottomColor:Colors.shades.shade600, borderBottomWidth:1 }}>
|
|
130
|
+
<Text style={{ flex:1 }} size={16} color={Colors.brand.midnight} weight='bold' textAlign='left'>RULES</Text>
|
|
131
|
+
<Button
|
|
132
|
+
title='X'
|
|
133
|
+
title_color={Colors.utility.error}
|
|
134
|
+
borderRadius={8}
|
|
135
|
+
onPress={() => onClose()}
|
|
136
|
+
/>
|
|
137
|
+
|
|
138
|
+
</View>
|
|
139
|
+
<View nativeID='nav_details' style={{ flex:1 }}>
|
|
140
|
+
{viewing_nav.view == 'prize' ?
|
|
141
|
+
<View>
|
|
142
|
+
<View nativeID='prize_image' style={{ justifyContent:'center', alignItems:'center' }}>
|
|
143
|
+
<Image
|
|
144
|
+
source={{ uri: competition.prize_image?.url }}
|
|
145
|
+
style={{ height:350, width:350, }}
|
|
146
|
+
resizeMode='cover'
|
|
147
|
+
/>
|
|
148
|
+
</View>
|
|
149
|
+
<View style={{ position:'absolute', left:0, right:0, bottom:0, top:0, backgroundColor:Colors.shades.black_faded, padding:20, justifyContent:'center', alignItems:'center' }}>
|
|
150
|
+
<View style={{ backgroundColor:Colors.shades.white, padding:20, borderRadius:8 }}>
|
|
151
|
+
<Text size={16} color={Colors.brand.midnight} weight='bold' textAlign='center'>COMPETITION PRIZE!</Text>
|
|
152
|
+
<Text style={{ marginTop:10 }} size={14} color={Colors.brand.midnight} weight='semibold' textAlign='center'>{competition.prize_override}</Text>
|
|
153
|
+
|
|
154
|
+
</View>
|
|
155
|
+
</View>
|
|
156
|
+
</View>
|
|
157
|
+
:<></>}
|
|
158
|
+
{viewing_nav.view == 'type' ?
|
|
159
|
+
<View nativeID='type_settings' style={{ padding:10 }}>
|
|
160
|
+
<Text size={22} color={Colors.brand.midnight} weight='bold' textAlign='center'>{competition_type.type_label}</Text>
|
|
161
|
+
{competition_type.type == 'pick' ?
|
|
162
|
+
<Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='semibold' textAlign='center'>Pick {competition.max_pick_count} separate outcomes across event or player level markets. Make more correct picks than other players in the competition to climb up the leaderboard.</Text>
|
|
163
|
+
:competition_type.type == 'wager' ?
|
|
164
|
+
<Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='semibold' textAlign='center'>Start with {competition.initial_balance} edge coins and use them to wager across event or player level markets. Continue to rollover earnings until the competition is completed. Earn more edge coins than other players to climb up the leaderboard</Text>
|
|
165
|
+
:<></>}
|
|
166
|
+
</View>
|
|
167
|
+
:viewing_nav.view == 'result' ?
|
|
168
|
+
<View nativeID='result_settings' style={{ padding:10 }}>
|
|
169
|
+
<Text size={22} color={Colors.brand.midnight} weight='bold' textAlign='center'>{competition_result_type.label}</Text>
|
|
170
|
+
{renderResult(competition_result_type)}
|
|
171
|
+
</View>
|
|
172
|
+
:<></>}
|
|
173
|
+
</View>
|
|
174
|
+
<View nativeID='view_nav' style={{ padding:10, flexDirection:'row', alignItems:'flex-end', borderTopColor:Colors.shades.shade600, borderTopWidth:1 }}>
|
|
175
|
+
<Button
|
|
176
|
+
title='PREV'
|
|
177
|
+
title_size={12}
|
|
178
|
+
title_weight='regular'
|
|
179
|
+
title_color={Colors.brand.electric}
|
|
180
|
+
onPress={() => {
|
|
181
|
+
if(active_nav == 1){ return setActiveNav(competition_navs.length) }
|
|
182
|
+
return setActiveNav(active_nav - 1)
|
|
183
|
+
}}
|
|
184
|
+
/>
|
|
185
|
+
<View style={{ flex:1 }}>
|
|
186
|
+
<Text style={{ paddingBottom:5 }} size={14} color={Colors.brand.slate} weight='bold' textAlign='center'>{viewing_nav.label}</Text>
|
|
187
|
+
<View style={{ flexDirection:'row', justifyContent:'center', alignItems:'center' }}>
|
|
188
|
+
{competition_navs.map(n => {
|
|
189
|
+
const active = n.step == active_nav ? true : false
|
|
190
|
+
return (
|
|
191
|
+
<View style={{ marginLeft:20, marginRight:20, height:10, width:10, borderRadius:100, backgroundColor:active?Colors.brand.electric:Colors.shades.shade300 }} />
|
|
192
|
+
)
|
|
193
|
+
})}
|
|
194
|
+
</View>
|
|
195
|
+
</View>
|
|
196
|
+
<Button
|
|
197
|
+
title='NEXT'
|
|
198
|
+
title_size={12}
|
|
199
|
+
title_weight='regular'
|
|
200
|
+
title_color={Colors.brand.electric}
|
|
201
|
+
onPress={() => {
|
|
202
|
+
if(active_nav == competition_navs.length){ return setActiveNav(1) }
|
|
203
|
+
return setActiveNav(active_nav + 1)
|
|
204
|
+
}}
|
|
205
|
+
/>
|
|
206
|
+
</View>
|
|
207
|
+
</View>
|
|
208
|
+
)
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export default CompetitionTypeCard
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from "react-native"
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useState } from "react"
|
|
4
|
+
import type { CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, MyPlayerProps, PlayerBalanceProps } from "../../types"
|
|
5
|
+
import Colors from "../../constants/colors"
|
|
6
|
+
import { Button, Icons, Text } from "../../Components"
|
|
7
|
+
import { CompetitionHelpers } from "../api"
|
|
8
|
+
import { view_styles } from "../../constants/styles"
|
|
9
|
+
import moment from "moment-mini"
|
|
10
|
+
|
|
11
|
+
type EnterCompetitionPromptProps = {
|
|
12
|
+
player?:MyPlayerProps,
|
|
13
|
+
player_balance?:PlayerBalanceProps,
|
|
14
|
+
competition:CompetitionProps,
|
|
15
|
+
competition_type:CompetitionTypeProps,
|
|
16
|
+
competition_result_type:CompetitionResultTypeProps,
|
|
17
|
+
width:number,
|
|
18
|
+
onVerify: () => void
|
|
19
|
+
onCancel:() => void,
|
|
20
|
+
onEnter: (promo_balance?:boolean) => void
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const EnterCompetitionPrompt = ({ player, player_balance, competition, competition_type, competition_result_type, width, onCancel, onEnter, onVerify }:EnterCompetitionPromptProps) => {
|
|
24
|
+
const [ use_promo_balance, setUsePromoBalance ] = useState(false)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if(!player){ return }
|
|
29
|
+
},[])
|
|
30
|
+
|
|
31
|
+
const requires_verification = competition?.buy_in > 0 && competition?.market_type == 'FOR_MONEY' && player?.vouched_status != 'verified' ? true : false
|
|
32
|
+
const cl = competition.market_type == 'FOR_MONEY'?'$':'E'
|
|
33
|
+
return (
|
|
34
|
+
<View style={{ width, backgroundColor:Colors.shades.white, borderTopRightRadius:22, borderTopLeftRadius:22, paddingTop:22 }}>
|
|
35
|
+
<View nativeID="competition_info">
|
|
36
|
+
<Text size={16} color={Colors.brand.midnight} weight='bold' textAlign="center">Competition Details</Text>
|
|
37
|
+
{competition_type ?
|
|
38
|
+
<View style={{ flexDirection:'row', justifyContent:'center', margin:10 }}>
|
|
39
|
+
<View style={{ padding:10, marginRight:4, backgroundColor: CompetitionHelpers.getCompColors(competition_type.type).borderColor, borderRadius:4 }}>
|
|
40
|
+
<Text size={12} color={Colors.shades.white} weight='semibold'>{competition_type.type_label}</Text>
|
|
41
|
+
</View>
|
|
42
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:4, backgroundColor: Colors.shades.white, borderRadius:4, ...view_styles.float }}>
|
|
43
|
+
<Text style={{ marginRight:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{competition.invite_only?'Private':'Public'}</Text>
|
|
44
|
+
{competition.invite_only ?
|
|
45
|
+
<Icons.EyeOffIcon color={Colors.brand.midnight} size={14}/>
|
|
46
|
+
:
|
|
47
|
+
<Icons.EyeOnIcon color={Colors.brand.midnight} size={14}/>
|
|
48
|
+
}
|
|
49
|
+
</View>
|
|
50
|
+
</View>
|
|
51
|
+
:<></>}
|
|
52
|
+
<Text size={14} color={Colors.brand.midnight} weight='bold' textAlign="center">{competition.competition_name}</Text>
|
|
53
|
+
</View>
|
|
54
|
+
<View>
|
|
55
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">{moment(competition.scheduled_datetime).format('MMM DD - hh:mm a')}</Text>
|
|
56
|
+
{competition.competition_description ?
|
|
57
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">{competition.competition_description}</Text>
|
|
58
|
+
:<></>}
|
|
59
|
+
{competition_result_type ?
|
|
60
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">{competition_result_type.label}</Text>
|
|
61
|
+
:<></>}
|
|
62
|
+
{competition_type?.type == 'pick' ?
|
|
63
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">Picks: {competition.max_pick_count}</Text>
|
|
64
|
+
:<></>}
|
|
65
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">Potential Winnings: {cl}{competition.ticket_revenue.toFixed(2)}</Text>
|
|
66
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">Ticket Price: {cl}{competition.buy_in.toFixed(2)}</Text>
|
|
67
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign="center">Entries: {competition.tickets_sold}/{competition.available_tickets}</Text>
|
|
68
|
+
</View>
|
|
69
|
+
<View nativeID="pick_actions" style={{ flexDirection:'row', padding:10 }}>
|
|
70
|
+
<Button
|
|
71
|
+
style={{ flex:1, marginRight:3 }}
|
|
72
|
+
borderRadius={4}
|
|
73
|
+
borderWidth={1}
|
|
74
|
+
borderColor={Colors.brand.electric}
|
|
75
|
+
padding={10}
|
|
76
|
+
title="Cancel"
|
|
77
|
+
title_color={Colors.brand.electric}
|
|
78
|
+
onPress={() => onCancel()}
|
|
79
|
+
/>
|
|
80
|
+
{requires_verification ?
|
|
81
|
+
<Button
|
|
82
|
+
borderRadius={4}
|
|
83
|
+
style={{ flex:2, marginLeft:2 }}
|
|
84
|
+
backgroundColor={Colors.utility.warning}
|
|
85
|
+
padding={10}
|
|
86
|
+
title={`Verify My Account`}
|
|
87
|
+
title_color={Colors.shades.white}
|
|
88
|
+
onPress={() => onVerify()}
|
|
89
|
+
/>
|
|
90
|
+
:
|
|
91
|
+
<Button
|
|
92
|
+
borderRadius={4}
|
|
93
|
+
style={{ flex:2, marginLeft:2 }}
|
|
94
|
+
backgroundColor={Colors.utility.success}
|
|
95
|
+
padding={10}
|
|
96
|
+
title={`Enter Competition${competition.buy_in == 0 ? ``:` ${cl}${competition.buy_in}`}`}
|
|
97
|
+
title_color={Colors.shades.white}
|
|
98
|
+
onPress={() => onEnter(use_promo_balance)}
|
|
99
|
+
/>
|
|
100
|
+
}
|
|
101
|
+
</View>
|
|
102
|
+
{player_balance && player_balance.promo_balance > 0 ?
|
|
103
|
+
<TouchableOpacity style={{ backgroundColor:Colors.incentive.gold, padding:10, flexDirection:'row', alignItems:'center' }} onPress={() => {
|
|
104
|
+
if(use_promo_balance){
|
|
105
|
+
//Remove promo balance and open_amt
|
|
106
|
+
setUsePromoBalance(false);
|
|
107
|
+
} else {
|
|
108
|
+
setUsePromoBalance(true);
|
|
109
|
+
}
|
|
110
|
+
}}>
|
|
111
|
+
<View style={{ marginRight:10, height:30, width:30, borderWidth:1, borderColor:Colors.brand.midnight, justifyContent:'center', alignItems:'center' }}>
|
|
112
|
+
{use_promo_balance ?
|
|
113
|
+
<View style={{ height:20, width:20, backgroundColor:Colors.brand.midnight }} />
|
|
114
|
+
:<></>}
|
|
115
|
+
</View>
|
|
116
|
+
<View>
|
|
117
|
+
<Text size={14} weight='bold' color={Colors.shades.white}>${player_balance?.promo_balance} Promotion Available</Text>
|
|
118
|
+
<Text style={{ marginTop:2}} size={12} color={Colors.shades.white} weight='regular'>Press / Click here to use promo balance</Text>
|
|
119
|
+
</View>
|
|
120
|
+
|
|
121
|
+
</TouchableOpacity>
|
|
122
|
+
:<></>}
|
|
123
|
+
</View>
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export default EnterCompetitionPrompt
|