be-components 3.3.6 → 3.3.7
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/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +53 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +54 -70
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +35 -45
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +15 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +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.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
- package/src/Authenticator/Components/LoginForm.tsx +50 -54
- package/src/Authenticator/Components/StrategyForm.tsx +135 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +50 -59
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import Colors from "../../constants/colors";
|
|
2
|
+
import { Checkbox, Icons, TextInput } from "../../Components";
|
|
4
3
|
import { AuthenticateApi, AuthenticateHelpers } from '../api';
|
|
5
|
-
import { Linking, TouchableOpacity,
|
|
6
|
-
import { view_styles } from '../../constants/styles';
|
|
4
|
+
import { Linking, TouchableOpacity, FlatList } from 'react-native';
|
|
7
5
|
import { ProfileHelpers } from '../../ProfileManager/api';
|
|
8
6
|
import AuthStrategyIdentifier from './AuthStrategyIdentifier';
|
|
9
|
-
|
|
7
|
+
import { useColors } from '../../constants/useColors';
|
|
8
|
+
import { Text, View, Button } from '../../Components/Themed';
|
|
9
|
+
//const mini_steps = ['intro', 'execution', 'verify']
|
|
10
|
+
|
|
10
11
|
const StrategyForm = ({
|
|
11
12
|
visible,
|
|
12
|
-
company,
|
|
13
|
-
theme,
|
|
14
13
|
strategy,
|
|
15
14
|
auth_strategy_id,
|
|
16
15
|
company_id,
|
|
@@ -18,17 +17,18 @@ const StrategyForm = ({
|
|
|
18
17
|
source,
|
|
19
18
|
show_referral,
|
|
20
19
|
referral_code,
|
|
21
|
-
|
|
20
|
+
maxWidth,
|
|
22
21
|
opt_in_url,
|
|
23
22
|
onAuthenticated,
|
|
24
23
|
onLogin
|
|
25
24
|
}) => {
|
|
25
|
+
const C = useColors();
|
|
26
26
|
const [action_loading, setActionLoading] = useState(false);
|
|
27
27
|
const [active_view, setActiveView] = useState('authenticate');
|
|
28
28
|
const [code_details, setCodeDetails] = useState({});
|
|
29
|
-
const [active_mini_index, setActiveMiniIndex] = useState(0);
|
|
29
|
+
//const [ active_mini_index, setActiveMiniIndex ] = useState(0);
|
|
30
30
|
const [opted_in, setOptedIn] = useState(true);
|
|
31
|
-
const [active_index, setActiveIndex] = useState(0)
|
|
31
|
+
//const [ active_index, setActiveIndex ] = useState<number>(0)
|
|
32
32
|
const [token, setToken] = useState('');
|
|
33
33
|
const [verify_error, setVerifyError] = useState();
|
|
34
34
|
const [verify_attempt_allowed, setVeryAttemptAllowed] = useState(true);
|
|
@@ -55,7 +55,6 @@ const StrategyForm = ({
|
|
|
55
55
|
setUpWizard(auth_strategy.auth_strategy_id);
|
|
56
56
|
}, [auth_strategy, referral_code]);
|
|
57
57
|
const setUpWizard = async auth_strategy_id => {
|
|
58
|
-
console.log('setting up wizard!!');
|
|
59
58
|
//Get auth strategy from server
|
|
60
59
|
if (referral_code && show_referral) {
|
|
61
60
|
const code_response = await AuthenticateApi.getReferralByCode(referral_code);
|
|
@@ -80,8 +79,6 @@ const StrategyForm = ({
|
|
|
80
79
|
});
|
|
81
80
|
};
|
|
82
81
|
const verifyAuthStrategyIdentifier = async () => {
|
|
83
|
-
console.log(`verifying strategy!`);
|
|
84
|
-
console.log(authenticated);
|
|
85
82
|
if (authenticated) {
|
|
86
83
|
return;
|
|
87
84
|
}
|
|
@@ -96,7 +93,6 @@ const StrategyForm = ({
|
|
|
96
93
|
}
|
|
97
94
|
setVeryAttemptAllowed(false);
|
|
98
95
|
setActionLoading(true);
|
|
99
|
-
console.log('Submitting password!!!');
|
|
100
96
|
const {
|
|
101
97
|
result,
|
|
102
98
|
player_id,
|
|
@@ -104,7 +100,6 @@ const StrategyForm = ({
|
|
|
104
100
|
refresh_token,
|
|
105
101
|
expire_datetime
|
|
106
102
|
} = await AuthenticateApi.verifyAuthStrategyIdentifier(verify_state.auth_strategy_identifier_id, verify_state.verification_session_id, token, distinct_id);
|
|
107
|
-
console.log(result);
|
|
108
103
|
if (result == 'fail' || !access_token || !refresh_token || !player_id || !auth_strategy_id) {
|
|
109
104
|
setVerifyError(`Invalid code / password. Please try again after 10 seconds`);
|
|
110
105
|
setTimeout(() => {
|
|
@@ -127,7 +122,6 @@ const StrategyForm = ({
|
|
|
127
122
|
}
|
|
128
123
|
};
|
|
129
124
|
const executeAuthStrategy = async () => {
|
|
130
|
-
console.log('exeuting strategy!!!');
|
|
131
125
|
setActionLoading(true);
|
|
132
126
|
const {
|
|
133
127
|
result,
|
|
@@ -177,269 +171,24 @@ const StrategyForm = ({
|
|
|
177
171
|
if (!visible || !auth_strategy) {
|
|
178
172
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
179
173
|
}
|
|
180
|
-
if (theme == 'mini') {
|
|
181
|
-
const active_mini_step = mini_steps[active_mini_index];
|
|
182
|
-
const active_strategy_identifier = auth_strategy_identifiers[active_index];
|
|
183
|
-
const auth_request = auth_execution_request.attributes.find(a => a.attribute == active_strategy_identifier?.auth_identifier?.attribute);
|
|
184
|
-
const last_index = auth_strategy_identifiers.length - 1 == active_index ? true : false;
|
|
185
|
-
if (!auth_request || !active_mini_step) {
|
|
186
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
187
|
-
}
|
|
188
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
189
|
-
style: {
|
|
190
|
-
width
|
|
191
|
-
}
|
|
192
|
-
}, active_mini_step == 'intro' ? /*#__PURE__*/React.createElement(View, {
|
|
193
|
-
style: {
|
|
194
|
-
flex: 1
|
|
195
|
-
}
|
|
196
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
197
|
-
style: {
|
|
198
|
-
flexDirection: 'row'
|
|
199
|
-
}
|
|
200
|
-
}, company ? /*#__PURE__*/React.createElement(View, {
|
|
201
|
-
style: {
|
|
202
|
-
padding: 10
|
|
203
|
-
}
|
|
204
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
205
|
-
source: {
|
|
206
|
-
uri: company.company_image?.url
|
|
207
|
-
},
|
|
208
|
-
style: {
|
|
209
|
-
height: 60,
|
|
210
|
-
width: 60
|
|
211
|
-
},
|
|
212
|
-
resizeMode: "cover"
|
|
213
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
|
|
214
|
-
style: {
|
|
215
|
-
flex: 1,
|
|
216
|
-
padding: 10
|
|
217
|
-
}
|
|
218
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
219
|
-
size: 16,
|
|
220
|
-
color: Colors.brand.midnight,
|
|
221
|
-
weight: "bold"
|
|
222
|
-
}, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
|
|
223
|
-
style: {
|
|
224
|
-
marginTop: 4
|
|
225
|
-
},
|
|
226
|
-
size: 14,
|
|
227
|
-
color: Colors.brand.midnight
|
|
228
|
-
}, "Please complete the required steps to participate with ", company?.company_name ?? 'Bettoredge'))), /*#__PURE__*/React.createElement(View, {
|
|
229
|
-
style: {
|
|
230
|
-
flexDirection: 'row',
|
|
231
|
-
padding: 10,
|
|
232
|
-
paddingTop: 0
|
|
233
|
-
}
|
|
234
|
-
}, opt_in_url ? /*#__PURE__*/React.createElement(View, {
|
|
235
|
-
style: {
|
|
236
|
-
flex: 1,
|
|
237
|
-
flexDirection: 'row',
|
|
238
|
-
alignItems: 'center'
|
|
239
|
-
}
|
|
240
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
241
|
-
size: 20,
|
|
242
|
-
checked: opted_in,
|
|
243
|
-
onSelect: checked => setOptedIn(checked)
|
|
244
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
245
|
-
style: {
|
|
246
|
-
marginLeft: 15
|
|
247
|
-
},
|
|
248
|
-
size: 14,
|
|
249
|
-
color: Colors.brand.midnight
|
|
250
|
-
}, "By continuing, you agree to the terms and conditions outlined", /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
251
|
-
onPress: () => Linking.openURL(opt_in_url)
|
|
252
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
253
|
-
size: 14,
|
|
254
|
-
color: Colors.brand.electric,
|
|
255
|
-
weight: "bold"
|
|
256
|
-
}, " here.")))) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(Button, {
|
|
257
|
-
title: `Next`,
|
|
258
|
-
style: {
|
|
259
|
-
opacity: opt_in_url && !opted_in ? 0.5 : 1
|
|
260
|
-
},
|
|
261
|
-
disabled: opt_in_url && !opted_in ? true : false,
|
|
262
|
-
title_color: Colors.shades.white,
|
|
263
|
-
backgroundColor: Colors.brand.electric
|
|
264
|
-
//borderRadius={8}
|
|
265
|
-
,
|
|
266
|
-
padding: 15,
|
|
267
|
-
onPress: () => {
|
|
268
|
-
setActiveMiniIndex(active_mini_index + 1);
|
|
269
|
-
}
|
|
270
|
-
}))) : active_mini_step == 'execution' ? /*#__PURE__*/React.createElement(View, null, active_view == 'authenticate' && active_strategy_identifier ? /*#__PURE__*/React.createElement(View, {
|
|
271
|
-
style: {
|
|
272
|
-
maxWidth: 600
|
|
273
|
-
}
|
|
274
|
-
}, /*#__PURE__*/React.createElement(AuthStrategyIdentifier, {
|
|
275
|
-
auth_strategy_identifier: active_strategy_identifier,
|
|
276
|
-
auth_request: auth_request,
|
|
277
|
-
auto_focus: true,
|
|
278
|
-
onChangeIdentifier: (text, is_valid, pretty_value) => {
|
|
279
|
-
setAuthExecutionRequest({
|
|
280
|
-
...auth_execution_request,
|
|
281
|
-
attributes: auth_execution_request.attributes.filter(a => a.attribute != auth_request.attribute).concat({
|
|
282
|
-
attribute: auth_request.attribute,
|
|
283
|
-
value: text,
|
|
284
|
-
pretty_value,
|
|
285
|
-
is_valid
|
|
286
|
-
})
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
290
|
-
style: {
|
|
291
|
-
flexDirection: 'row',
|
|
292
|
-
alignItems: 'center',
|
|
293
|
-
padding: 10,
|
|
294
|
-
paddingTop: 0
|
|
295
|
-
}
|
|
296
|
-
}, active_index != 0 ? /*#__PURE__*/React.createElement(Button, {
|
|
297
|
-
title: `Back`,
|
|
298
|
-
style: {
|
|
299
|
-
flex: 1,
|
|
300
|
-
marginRight: 5
|
|
301
|
-
},
|
|
302
|
-
title_color: Colors.brand.electric,
|
|
303
|
-
borderWidth: 1,
|
|
304
|
-
borderColor: Colors.brand.electric,
|
|
305
|
-
backgroundColor: Colors.shades.white
|
|
306
|
-
//borderRadius={8}
|
|
307
|
-
,
|
|
308
|
-
padding: 15,
|
|
309
|
-
onPress: () => {
|
|
310
|
-
setActiveIndex(active_index - 1);
|
|
311
|
-
}
|
|
312
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null), last_index ? /*#__PURE__*/React.createElement(Button, {
|
|
313
|
-
title: `Let's Go!`,
|
|
314
|
-
loading: action_loading,
|
|
315
|
-
style: {
|
|
316
|
-
flex: 3,
|
|
317
|
-
opacity: strategy_valid && opted_in && !action_loading ? 1 : 0.5
|
|
318
|
-
},
|
|
319
|
-
disabled: action_loading || !strategy_valid || !opted_in,
|
|
320
|
-
title_color: Colors.shades.white,
|
|
321
|
-
backgroundColor: Colors.brand.electric
|
|
322
|
-
//borderRadius={8}
|
|
323
|
-
,
|
|
324
|
-
padding: 15,
|
|
325
|
-
onPress: () => {
|
|
326
|
-
executeAuthStrategy();
|
|
327
|
-
}
|
|
328
|
-
}) : /*#__PURE__*/React.createElement(Button, {
|
|
329
|
-
title: `Next`,
|
|
330
|
-
style: {
|
|
331
|
-
flex: 3,
|
|
332
|
-
opacity: auth_request?.is_valid ? 1 : 0.5
|
|
333
|
-
},
|
|
334
|
-
disabled: !auth_request?.is_valid,
|
|
335
|
-
title_color: Colors.shades.white,
|
|
336
|
-
backgroundColor: Colors.brand.electric
|
|
337
|
-
//borderRadius={8}
|
|
338
|
-
,
|
|
339
|
-
padding: 15,
|
|
340
|
-
onPress: () => {
|
|
341
|
-
setActiveIndex(active_index + 1);
|
|
342
|
-
}
|
|
343
|
-
}))) : active_view == 'verify' && verify_strategy_identifier ? /*#__PURE__*/React.createElement(View, {
|
|
344
|
-
nativeID: "sign_up",
|
|
345
|
-
style: {
|
|
346
|
-
flex: 1,
|
|
347
|
-
maxWidth: 600
|
|
348
|
-
}
|
|
349
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
350
|
-
style: {
|
|
351
|
-
padding: 10
|
|
352
|
-
}
|
|
353
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
354
|
-
size: 18,
|
|
355
|
-
color: Colors.brand.midnight,
|
|
356
|
-
weight: "semibold"
|
|
357
|
-
}, verify_strategy_identifier.verify_label ?? 'Enter Verification Code'), /*#__PURE__*/React.createElement(View, {
|
|
358
|
-
style: {
|
|
359
|
-
padding: 10
|
|
360
|
-
}
|
|
361
|
-
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
362
|
-
style: {
|
|
363
|
-
textAlign: 'center',
|
|
364
|
-
fontFamily: 'barlow-bold',
|
|
365
|
-
fontSize: 14,
|
|
366
|
-
borderWidth: 1,
|
|
367
|
-
borderColor: Colors.shades.shade600
|
|
368
|
-
},
|
|
369
|
-
value: token,
|
|
370
|
-
keyboardType: "default",
|
|
371
|
-
placeholder: "Enter Code",
|
|
372
|
-
autoFocus: true,
|
|
373
|
-
textContentType: verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode',
|
|
374
|
-
secureTextEntry: verify_strategy_identifier.secure_text_entry,
|
|
375
|
-
placeholderTextColor: Colors.brand.slate,
|
|
376
|
-
onChangeText: text => {
|
|
377
|
-
setToken(text);
|
|
378
|
-
}
|
|
379
|
-
})), verify_error ? /*#__PURE__*/React.createElement(Text, {
|
|
380
|
-
style: {
|
|
381
|
-
marginTop: 10
|
|
382
|
-
},
|
|
383
|
-
size: 14,
|
|
384
|
-
color: Colors.utility.warning
|
|
385
|
-
}, verify_error) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
|
|
386
|
-
nativeID: "action_row",
|
|
387
|
-
style: {
|
|
388
|
-
flexDirection: 'row',
|
|
389
|
-
padding: 10,
|
|
390
|
-
paddingTop: 0
|
|
391
|
-
}
|
|
392
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
393
|
-
title: 'BACK',
|
|
394
|
-
loading: action_loading,
|
|
395
|
-
style: {
|
|
396
|
-
flex: 1,
|
|
397
|
-
marginRight: 5
|
|
398
|
-
},
|
|
399
|
-
title_color: Colors.brand.electric,
|
|
400
|
-
borderColor: Colors.brand.electric,
|
|
401
|
-
borderWidth: 1,
|
|
402
|
-
padding: 15,
|
|
403
|
-
onPress: () => {
|
|
404
|
-
setActiveView('authenticate');
|
|
405
|
-
setVerifyState(undefined);
|
|
406
|
-
}
|
|
407
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
408
|
-
title: verify_attempt_allowed && !action_loading ? 'Verify' : 'Retry in 10 seconds',
|
|
409
|
-
loading: action_loading,
|
|
410
|
-
style: {
|
|
411
|
-
flex: 3,
|
|
412
|
-
opacity: token && verify_attempt_allowed ? 1 : 0.5
|
|
413
|
-
},
|
|
414
|
-
disabled: !token || action_loading || !verify_attempt_allowed,
|
|
415
|
-
title_color: Colors.shades.white,
|
|
416
|
-
backgroundColor: Colors.utility.success
|
|
417
|
-
//borderRadius={8}
|
|
418
|
-
,
|
|
419
|
-
padding: 15,
|
|
420
|
-
onPress: () => {
|
|
421
|
-
verifyAuthStrategyIdentifier();
|
|
422
|
-
}
|
|
423
|
-
}))) : /*#__PURE__*/React.createElement(React.Fragment, null)) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
424
|
-
}
|
|
425
174
|
return /*#__PURE__*/React.createElement(View, {
|
|
426
175
|
style: {
|
|
427
|
-
|
|
428
|
-
|
|
176
|
+
maxWidth,
|
|
177
|
+
flexGrow: 1
|
|
429
178
|
}
|
|
430
179
|
}, active_view == 'authenticate' ? /*#__PURE__*/React.createElement(View, {
|
|
431
180
|
nativeID: "sign_up",
|
|
432
181
|
style: {
|
|
433
|
-
|
|
182
|
+
flexGrow: 1
|
|
434
183
|
}
|
|
435
184
|
}, show_referral && code_details.player_referral && code_details.promo ? /*#__PURE__*/React.createElement(View, {
|
|
436
185
|
style: {
|
|
437
186
|
margin: 15,
|
|
438
187
|
flexDirection: 'row',
|
|
439
|
-
backgroundColor:
|
|
440
|
-
borderRadius: 8
|
|
441
|
-
|
|
442
|
-
|
|
188
|
+
backgroundColor: C.views.background,
|
|
189
|
+
borderRadius: 8
|
|
190
|
+
},
|
|
191
|
+
float: true
|
|
443
192
|
}, /*#__PURE__*/React.createElement(View, {
|
|
444
193
|
style: {
|
|
445
194
|
padding: 10,
|
|
@@ -447,44 +196,32 @@ const StrategyForm = ({
|
|
|
447
196
|
}
|
|
448
197
|
}, /*#__PURE__*/React.createElement(Icons.GiftIcon, {
|
|
449
198
|
size: 40,
|
|
450
|
-
color:
|
|
199
|
+
color: C.text.gold
|
|
451
200
|
})), /*#__PURE__*/React.createElement(View, {
|
|
452
201
|
style: {
|
|
453
202
|
flex: 1,
|
|
454
|
-
backgroundColor:
|
|
203
|
+
backgroundColor: C.views.gold,
|
|
455
204
|
padding: 10
|
|
456
205
|
}
|
|
457
206
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
458
|
-
|
|
459
|
-
paddingBottom: 10,
|
|
460
|
-
borderBottomWidth: 1,
|
|
461
|
-
borderBottomColor: Colors.shades.shade600
|
|
462
|
-
},
|
|
463
|
-
size: 16,
|
|
464
|
-
color: Colors.brand.midnight,
|
|
465
|
-
weight: "bold"
|
|
207
|
+
theme: "h1"
|
|
466
208
|
}, "@", code_details.referrer?.username, " has a gift for you"), /*#__PURE__*/React.createElement(Text, {
|
|
467
209
|
style: {
|
|
468
210
|
paddingTop: 5
|
|
469
211
|
},
|
|
470
|
-
|
|
471
|
-
color: Colors.brand.midnight,
|
|
472
|
-
weight: "semibold"
|
|
212
|
+
theme: "h2"
|
|
473
213
|
}, ProfileHelpers.getReferralDescription(code_details.promo)))) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
|
|
474
214
|
style: {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
479
|
-
style: {
|
|
480
|
-
padding: 10
|
|
215
|
+
padding: 20,
|
|
216
|
+
flexGrow: 1
|
|
481
217
|
}
|
|
482
218
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
483
219
|
data: auth_strategy_identifiers.sort((a, b) => a.priority - b.priority),
|
|
484
220
|
renderItem: renderAuthStrategyIdentifiers,
|
|
485
221
|
keyExtractor: item => item.auth_strategy_identifier_id.toString()
|
|
486
|
-
}))
|
|
222
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
487
223
|
nativeID: "action_row",
|
|
224
|
+
type: "footer",
|
|
488
225
|
style: {
|
|
489
226
|
padding: 10,
|
|
490
227
|
paddingLeft: 20,
|
|
@@ -497,23 +234,17 @@ const StrategyForm = ({
|
|
|
497
234
|
opacity: strategy_valid && opted_in ? 1 : 0.5
|
|
498
235
|
},
|
|
499
236
|
disabled: action_loading || !strategy_valid || !opted_in,
|
|
500
|
-
|
|
501
|
-
backgroundColor: Colors.brand.electric
|
|
502
|
-
//borderRadius={8}
|
|
503
|
-
,
|
|
504
|
-
padding: 15,
|
|
237
|
+
type: "success",
|
|
505
238
|
onPress: () => {
|
|
506
239
|
executeAuthStrategy();
|
|
507
240
|
}
|
|
508
241
|
})), auth_strategy?.allow_login ? /*#__PURE__*/React.createElement(View, {
|
|
509
242
|
style: {
|
|
510
|
-
padding: 10
|
|
511
|
-
backgroundColor: Colors.shades.shade100
|
|
243
|
+
padding: 10
|
|
512
244
|
}
|
|
513
245
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
514
246
|
title: "Already Signed Up? Login Here",
|
|
515
|
-
|
|
516
|
-
backgroundColor: "transparent",
|
|
247
|
+
type: "text",
|
|
517
248
|
onPress: () => onLogin()
|
|
518
249
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null), active_view == 'authenticate' && opt_in_url ? /*#__PURE__*/React.createElement(View, {
|
|
519
250
|
style: {
|
|
@@ -529,13 +260,12 @@ const StrategyForm = ({
|
|
|
529
260
|
style: {
|
|
530
261
|
marginLeft: 15
|
|
531
262
|
},
|
|
532
|
-
|
|
533
|
-
color: Colors.brand.midnight
|
|
263
|
+
theme: "h2"
|
|
534
264
|
}, "By continuing, you agree to the terms and conditions outlined", /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
535
265
|
onPress: () => Linking.openURL(opt_in_url)
|
|
536
266
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
537
267
|
size: 14,
|
|
538
|
-
color:
|
|
268
|
+
color: C.text.action,
|
|
539
269
|
weight: "bold"
|
|
540
270
|
}, " here.")))) : /*#__PURE__*/React.createElement(React.Fragment, null)) : active_view == 'verify' && verify_strategy_identifier ? /*#__PURE__*/React.createElement(View, {
|
|
541
271
|
nativeID: "sign_up",
|
|
@@ -550,9 +280,7 @@ const StrategyForm = ({
|
|
|
550
280
|
padding: 20
|
|
551
281
|
}
|
|
552
282
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
553
|
-
|
|
554
|
-
color: Colors.brand.midnight,
|
|
555
|
-
weight: "semibold",
|
|
283
|
+
theme: "h2",
|
|
556
284
|
textAlign: "center"
|
|
557
285
|
}, verify_strategy_identifier.verify_label ?? 'Enter Verification Code'), /*#__PURE__*/React.createElement(View, {
|
|
558
286
|
style: {
|
|
@@ -564,14 +292,15 @@ const StrategyForm = ({
|
|
|
564
292
|
fontFamily: 'barlow-bold',
|
|
565
293
|
fontSize: 14,
|
|
566
294
|
borderWidth: 1,
|
|
567
|
-
borderColor:
|
|
295
|
+
borderColor: C.borders.light,
|
|
296
|
+
minWidth: 175
|
|
568
297
|
},
|
|
569
298
|
value: token,
|
|
570
299
|
keyboardType: "default",
|
|
571
300
|
autoFocus: true,
|
|
572
301
|
textContentType: verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode',
|
|
573
302
|
secureTextEntry: verify_strategy_identifier.secure_text_entry,
|
|
574
|
-
placeholderTextColor:
|
|
303
|
+
placeholderTextColor: C.text.description,
|
|
575
304
|
onChangeText: text => {
|
|
576
305
|
setToken(text);
|
|
577
306
|
}
|
|
@@ -579,8 +308,7 @@ const StrategyForm = ({
|
|
|
579
308
|
style: {
|
|
580
309
|
marginTop: 10
|
|
581
310
|
},
|
|
582
|
-
|
|
583
|
-
color: Colors.utility.warning
|
|
311
|
+
theme: "warning"
|
|
584
312
|
}, verify_error) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
|
|
585
313
|
nativeID: "action_row",
|
|
586
314
|
style: {
|
|
@@ -595,16 +323,8 @@ const StrategyForm = ({
|
|
|
595
323
|
style: {
|
|
596
324
|
flex: 1,
|
|
597
325
|
marginRight: 5
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
,
|
|
601
|
-
title_color: Colors.brand.electric,
|
|
602
|
-
borderColor: Colors.brand.electric,
|
|
603
|
-
borderWidth: 1
|
|
604
|
-
//backgroundColor={Colors.utility.success}
|
|
605
|
-
//borderRadius={8}
|
|
606
|
-
,
|
|
607
|
-
padding: 15,
|
|
326
|
+
},
|
|
327
|
+
type: "close",
|
|
608
328
|
onPress: () => {
|
|
609
329
|
setActiveView('authenticate');
|
|
610
330
|
setVerifyState(undefined);
|
|
@@ -617,15 +337,200 @@ const StrategyForm = ({
|
|
|
617
337
|
opacity: token && verify_attempt_allowed ? 1 : 0.5
|
|
618
338
|
},
|
|
619
339
|
disabled: !token || action_loading || !verify_attempt_allowed,
|
|
620
|
-
|
|
621
|
-
backgroundColor: Colors.utility.success
|
|
622
|
-
//borderRadius={8}
|
|
623
|
-
,
|
|
624
|
-
padding: 15,
|
|
340
|
+
type: "success",
|
|
625
341
|
onPress: () => {
|
|
626
342
|
verifyAuthStrategyIdentifier();
|
|
627
343
|
}
|
|
628
344
|
}))) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
629
345
|
};
|
|
630
346
|
export default StrategyForm;
|
|
347
|
+
|
|
348
|
+
/*
|
|
349
|
+
|
|
350
|
+
if(theme == 'mini'){
|
|
351
|
+
const active_mini_step = mini_steps[active_mini_index];
|
|
352
|
+
const active_strategy_identifier = auth_strategy_identifiers[active_index]
|
|
353
|
+
const auth_request = auth_execution_request.attributes.find(a => a.attribute == active_strategy_identifier?.auth_identifier?.attribute)
|
|
354
|
+
const last_index = auth_strategy_identifiers.length - 1 == active_index ? true : false
|
|
355
|
+
if(!auth_request || !active_mini_step){ return <></> }
|
|
356
|
+
return (
|
|
357
|
+
<View style={{ maxWidth }}>
|
|
358
|
+
{active_mini_step == 'intro' ?
|
|
359
|
+
<View style={{ }}>
|
|
360
|
+
<View style={{ flexDirection:'row' }}>
|
|
361
|
+
{company ?
|
|
362
|
+
<View style={{ padding:10 }}>
|
|
363
|
+
<Image
|
|
364
|
+
source={{ uri: company.company_image?.url }}
|
|
365
|
+
style={{ height:60, width:60 }}
|
|
366
|
+
resizeMode='cover'
|
|
367
|
+
/>
|
|
368
|
+
</View>
|
|
369
|
+
:<></>}
|
|
370
|
+
<View style={{ flex:1, padding:10 }}>
|
|
371
|
+
<Text size={16} color={Colors.brand.midnight} weight='bold'>Welcome!</Text>
|
|
372
|
+
<Text style={{ marginTop:4 }} size={14} color={Colors.brand.midnight}>Please complete the required steps to participate with {company?.company_name ?? 'Bettoredge'}</Text>
|
|
373
|
+
</View>
|
|
374
|
+
</View>
|
|
375
|
+
<View style={{ flexDirection:'row', padding:10, paddingTop:0 }}>
|
|
376
|
+
{opt_in_url ?
|
|
377
|
+
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
378
|
+
<Checkbox
|
|
379
|
+
size={20}
|
|
380
|
+
checked={opted_in}
|
|
381
|
+
onSelect={(checked) => setOptedIn(checked)}
|
|
382
|
+
/>
|
|
383
|
+
<Text style={{ marginLeft:15 }} size={14} color={Colors.brand.midnight}>By continuing, you agree to the terms and conditions outlined
|
|
384
|
+
<TouchableOpacity onPress={() => Linking.openURL(opt_in_url) }>
|
|
385
|
+
<Text size={14} color={Colors.brand.electric} weight='bold'> here.</Text>
|
|
386
|
+
</TouchableOpacity>
|
|
387
|
+
</Text>
|
|
388
|
+
</View>
|
|
389
|
+
:<></>}
|
|
390
|
+
<Button
|
|
391
|
+
title={`Next`}
|
|
392
|
+
style={{ opacity:opt_in_url && !opted_in ? 0.5:1 }}
|
|
393
|
+
disabled={opt_in_url && !opted_in ? true : false}
|
|
394
|
+
title_color={Colors.shades.white}
|
|
395
|
+
backgroundColor={Colors.brand.electric}
|
|
396
|
+
//borderRadius={8}
|
|
397
|
+
padding={15}
|
|
398
|
+
onPress={() => {
|
|
399
|
+
setActiveMiniIndex(active_mini_index + 1)
|
|
400
|
+
}}
|
|
401
|
+
/>
|
|
402
|
+
</View>
|
|
403
|
+
</View>
|
|
404
|
+
:active_mini_step == 'execution' ?
|
|
405
|
+
<View>
|
|
406
|
+
|
|
407
|
+
{active_view == 'authenticate' && active_strategy_identifier?
|
|
408
|
+
<View style={{ maxWidth: 600 }}>
|
|
409
|
+
<AuthStrategyIdentifier
|
|
410
|
+
auth_strategy_identifier={active_strategy_identifier}
|
|
411
|
+
auth_request={auth_request}
|
|
412
|
+
auto_focus={true}
|
|
413
|
+
onChangeIdentifier={(text, is_valid, pretty_value) => {
|
|
414
|
+
setAuthExecutionRequest({
|
|
415
|
+
...auth_execution_request,
|
|
416
|
+
attributes: auth_execution_request.attributes.filter(a => a.attribute != auth_request.attribute).concat({
|
|
417
|
+
attribute: auth_request.attribute,
|
|
418
|
+
value: text,
|
|
419
|
+
pretty_value,
|
|
420
|
+
is_valid
|
|
421
|
+
})
|
|
422
|
+
})
|
|
423
|
+
}}
|
|
424
|
+
/>
|
|
425
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:10, paddingTop:0 }}>
|
|
426
|
+
{active_index != 0 ?
|
|
427
|
+
<Button
|
|
428
|
+
title={`Back`}
|
|
429
|
+
style={{ flex:1, marginRight:5}}
|
|
430
|
+
title_color={Colors.brand.electric}
|
|
431
|
+
borderWidth={1}
|
|
432
|
+
borderColor={Colors.brand.electric}
|
|
433
|
+
backgroundColor={Colors.shades.white}
|
|
434
|
+
//borderRadius={8}
|
|
435
|
+
padding={15}
|
|
436
|
+
onPress={() => {
|
|
437
|
+
setActiveIndex(active_index - 1)
|
|
438
|
+
}}
|
|
439
|
+
/>
|
|
440
|
+
:<></>}
|
|
441
|
+
{last_index ?
|
|
442
|
+
<Button
|
|
443
|
+
title={`Let's Go!`}
|
|
444
|
+
loading={action_loading}
|
|
445
|
+
|
|
446
|
+
style={{ flex:3, opacity:strategy_valid && opted_in && !action_loading?1:0.5 }}
|
|
447
|
+
disabled={action_loading || !strategy_valid || !opted_in}
|
|
448
|
+
title_color={Colors.shades.white}
|
|
449
|
+
backgroundColor={Colors.brand.electric}
|
|
450
|
+
//borderRadius={8}
|
|
451
|
+
padding={15}
|
|
452
|
+
onPress={() => {
|
|
453
|
+
executeAuthStrategy()
|
|
454
|
+
}}
|
|
455
|
+
/>
|
|
456
|
+
:
|
|
457
|
+
|
|
458
|
+
<Button
|
|
459
|
+
title={`Next`}
|
|
460
|
+
style={{ flex:3, opacity:auth_request?.is_valid?1:0.5 }}
|
|
461
|
+
disabled={!auth_request?.is_valid}
|
|
462
|
+
title_color={Colors.shades.white}
|
|
463
|
+
backgroundColor={Colors.brand.electric}
|
|
464
|
+
//borderRadius={8}
|
|
465
|
+
padding={15}
|
|
466
|
+
onPress={() => {
|
|
467
|
+
setActiveIndex(active_index + 1)
|
|
468
|
+
}}
|
|
469
|
+
/>
|
|
470
|
+
}
|
|
471
|
+
</View>
|
|
472
|
+
</View>
|
|
473
|
+
: active_view == 'verify' && verify_strategy_identifier ?
|
|
474
|
+
<View nativeID="sign_up" style={{ maxWidth:600 }}>
|
|
475
|
+
<View style={{ padding:10 }}>
|
|
476
|
+
<Text size={18} color={Colors.brand.midnight} weight='semibold'>{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
|
|
477
|
+
<View style={{ padding:10 }}>
|
|
478
|
+
<TextInput
|
|
479
|
+
style={{ textAlign:'center', fontFamily:'barlow-bold', fontSize:14, borderWidth:1, borderColor:Colors.shades.shade600 }}
|
|
480
|
+
value={token}
|
|
481
|
+
keyboardType='default'
|
|
482
|
+
placeholder='Enter Code'
|
|
483
|
+
autoFocus
|
|
484
|
+
textContentType={verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode'}
|
|
485
|
+
secureTextEntry={verify_strategy_identifier.secure_text_entry}
|
|
486
|
+
placeholderTextColor={Colors.brand.slate}
|
|
487
|
+
onChangeText={(text) => {
|
|
488
|
+
setToken(text);
|
|
489
|
+
}}
|
|
490
|
+
/>
|
|
491
|
+
</View>
|
|
492
|
+
{verify_error ?
|
|
493
|
+
<Text style={{ marginTop:10 }} size={14} color={Colors.utility.warning}>{verify_error}</Text>
|
|
494
|
+
:<></>}
|
|
495
|
+
</View>
|
|
496
|
+
<View nativeID="action_row" style={{ flexDirection:'row', padding:10, paddingTop:0 }}>
|
|
497
|
+
<Button
|
|
498
|
+
title={'BACK'}
|
|
499
|
+
loading={action_loading}
|
|
500
|
+
style={{ flex:1, marginRight:5 }}
|
|
501
|
+
title_color={Colors.brand.electric}
|
|
502
|
+
borderColor={Colors.brand.electric}
|
|
503
|
+
borderWidth={1}
|
|
504
|
+
padding={15}
|
|
505
|
+
onPress={() => {
|
|
506
|
+
setActiveView('authenticate');
|
|
507
|
+
setVerifyState(undefined)
|
|
508
|
+
}}
|
|
509
|
+
/>
|
|
510
|
+
<Button
|
|
511
|
+
title={verify_attempt_allowed && !action_loading? 'Verify': 'Retry in 10 seconds'}
|
|
512
|
+
loading={action_loading}
|
|
513
|
+
style={{ flex:3, opacity:token&&verify_attempt_allowed?1:0.5 }}
|
|
514
|
+
disabled={!token || action_loading || !verify_attempt_allowed}
|
|
515
|
+
title_color={Colors.shades.white}
|
|
516
|
+
backgroundColor={Colors.utility.success}
|
|
517
|
+
//borderRadius={8}
|
|
518
|
+
padding={15}
|
|
519
|
+
onPress={() => {
|
|
520
|
+
verifyAuthStrategyIdentifier()
|
|
521
|
+
}}
|
|
522
|
+
/>
|
|
523
|
+
</View>
|
|
524
|
+
</View>
|
|
525
|
+
:<></> }
|
|
526
|
+
|
|
527
|
+
</View>
|
|
528
|
+
:<></>}
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
</View>
|
|
532
|
+
)
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
*/
|
|
631
536
|
//# sourceMappingURL=StrategyForm.js.map
|