be-components 1.0.9 → 1.1.0
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/AdServer/components/CompanyAdCard.js +3 -5
- package/lib/commonjs/AdServer/components/CompanyAdCard.js.map +1 -1
- package/lib/commonjs/AdServer/index.js +8 -10
- package/lib/commonjs/AdServer/index.js.map +1 -1
- package/lib/commonjs/ApiOverrides/index.js +6 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +16 -17
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +58 -60
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +67 -69
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +14 -16
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/BettorSearch/index.js +8 -10
- package/lib/commonjs/BettorSearch/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js +92 -94
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js +37 -39
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js +18 -19
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js +7 -8
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js +45 -46
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/index.js +27 -29
- package/lib/commonjs/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketSelector.js +21 -22
- package/lib/commonjs/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js +34 -36
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js +20 -22
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js +6 -7
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js +75 -77
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBrackets.js +27 -28
- package/lib/commonjs/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/commonjs/Bracket/components/RoomMenu.js +15 -16
- package/lib/commonjs/Bracket/components/RoomMenu.js.map +1 -1
- package/lib/commonjs/Bracket/index.js +9 -11
- package/lib/commonjs/Bracket/index.js.map +1 -1
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +43 -44
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +7 -8
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +12 -13
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +2 -4
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +7 -8
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +58 -60
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +20 -21
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionCard.js +25 -26
- package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +31 -32
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +34 -36
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +116 -118
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +16 -17
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSelector.js +14 -16
- package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js +43 -45
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +29 -31
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +39 -41
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/ManageSeasonForm.js +85 -87
- package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +17 -19
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/MatchMarketCard.js +25 -26
- package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/NavOutPrompt.js +18 -19
- package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/SeasonInfoModal.js +52 -54
- package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +30 -31
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +30 -32
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +3 -5
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +7 -8
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +3 -4
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +650 -373
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/ImageUploader.js +3 -5
- package/lib/commonjs/Components/ImageUploader.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +124 -125
- package/lib/commonjs/Components/Jerseys.js.map +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js +7 -9
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/Spring.js +1 -3
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/Components/Switch.js +8 -9
- package/lib/commonjs/Components/Switch.js.map +1 -1
- package/lib/commonjs/Components/Text.js +33 -5
- package/lib/commonjs/Components/Text.js.map +1 -1
- package/lib/commonjs/Components/TextInput.js +1 -2
- package/lib/commonjs/Components/TextInput.js.map +1 -1
- package/lib/commonjs/LocationTracker/index.js +27 -28
- package/lib/commonjs/LocationTracker/index.js.map +1 -1
- package/lib/commonjs/Observer/Observer.js +2 -4
- package/lib/commonjs/Observer/Observer.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignPlay.js +56 -58
- package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignProgressBar.js +11 -13
- package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignResult.js +56 -58
- package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignSelector.js +12 -14
- package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCampaignCard.js +7 -8
- package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCard.js +49 -51
- package/lib/commonjs/Poll/components/PollCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollOptionCard.js +14 -16
- package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollSelectCard.js +25 -26
- package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/commonjs/Poll/components/ResponseTimer.js +3 -5
- package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -1
- package/lib/commonjs/Poll/components/WidgetHeader.js +11 -12
- package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/ResultCard.js +47 -49
- package/lib/commonjs/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/index.js +52 -54
- package/lib/commonjs/Poll/flashmarket/index.js.map +1 -1
- package/lib/commonjs/Poll/index.js +6 -8
- package/lib/commonjs/Poll/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +35 -37
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +35 -36
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +50 -52
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +24 -26
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +17 -19
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +15 -16
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +66 -68
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +29 -31
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +63 -65
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +16 -18
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js +11 -12
- package/lib/commonjs/SocialComponents/PlayerCard.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js +3 -4
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerList.js +4 -6
- package/lib/commonjs/SocialComponents/PlayerList.js.map +1 -1
- package/lib/commonjs/Socket/api/index.js +18 -0
- package/lib/commonjs/Socket/api/index.js.map +1 -0
- package/lib/commonjs/Socket/index.js +120 -0
- package/lib/commonjs/Socket/index.js.map +1 -0
- package/lib/commonjs/Squares/api/index.js +97 -0
- package/lib/commonjs/Squares/api/index.js.map +1 -0
- package/lib/commonjs/Squares/components/BidForm.js +173 -0
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -0
- package/lib/commonjs/Squares/components/BidToggle.js +63 -0
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -0
- package/lib/commonjs/Squares/components/BoardStats.js +144 -0
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -0
- package/lib/commonjs/Squares/components/EventCard.js +132 -0
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -0
- package/lib/commonjs/Squares/components/MySquaresCard.js +109 -0
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -0
- package/lib/commonjs/Squares/components/OfferForm.js +181 -0
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -0
- package/lib/commonjs/Squares/components/ResultsCard.js +108 -0
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareCard.js +337 -0
- package/lib/commonjs/Squares/components/SquareCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareOfferCard.js +266 -0
- package/lib/commonjs/Squares/components/SquareOfferCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareOwners.js +123 -0
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -0
- package/lib/commonjs/Squares/components/SquaresBoard.js +209 -0
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquaresDetails.js +90 -0
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -0
- package/lib/commonjs/Squares/index.js +568 -0
- package/lib/commonjs/Squares/index.js.map +1 -0
- package/lib/commonjs/Wallet/components/ACHAddCard.js +38 -39
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js +17 -18
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js +32 -34
- package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +31 -32
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +31 -33
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +7 -8
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +44 -46
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +41 -43
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +54 -55
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +15 -17
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +23 -25
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +40 -42
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js +36 -38
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +33 -35
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +47 -49
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +34 -35
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +15 -17
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js +10 -12
- package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js +20 -22
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +49 -51
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js +98 -100
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +58 -60
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +46 -48
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +45 -47
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +86 -0
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/AdServer/components/CompanyAdCard.js +1 -1
- package/lib/module/AdServer/components/CompanyAdCard.js.map +1 -1
- package/lib/module/AdServer/index.js +1 -1
- package/lib/module/AdServer/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +6 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +0 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +1 -1
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/BettorSearch/index.js +1 -1
- package/lib/module/BettorSearch/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketCompetitionCard.js +1 -1
- package/lib/module/Bracket/components/BracketCompetitionCard.js.map +1 -1
- package/lib/module/Bracket/components/BracketCompetitionSelector.js +1 -1
- package/lib/module/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/BracketNavigator.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/BracketNavigator.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/BracketRound.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/BracketRound.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/RoundEvent.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/RoundEvent.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/index.js +1 -1
- package/lib/module/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketSelector.js +0 -1
- package/lib/module/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/module/Bracket/components/CompetitionLeaderboard.js +1 -1
- package/lib/module/Bracket/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Bracket/components/JoinCompetitionCard.js +1 -1
- package/lib/module/Bracket/components/JoinCompetitionCard.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBalanceCard.js +0 -1
- package/lib/module/Bracket/components/PlayerBalanceCard.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBracketManager.js +1 -1
- package/lib/module/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBrackets.js +0 -1
- package/lib/module/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/module/Bracket/components/RoomMenu.js +0 -1
- package/lib/module/Bracket/components/RoomMenu.js.map +1 -1
- package/lib/module/Bracket/index.js +1 -1
- package/lib/module/Bracket/index.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +0 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js +0 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js +0 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js +0 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js +0 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +1 -1
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +0 -1
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionCard.js +0 -1
- package/lib/module/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +0 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js +0 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionSelector.js +1 -1
- package/lib/module/Competition/components/CompetitionSelector.js.map +1 -1
- package/lib/module/Competition/components/CompetitionTypeCard.js +1 -1
- package/lib/module/Competition/components/CompetitionTypeCard.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +1 -1
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/ManageSeasonForm.js +1 -1
- package/lib/module/Competition/components/ManageSeasonForm.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +1 -1
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/MatchMarketCard.js +0 -1
- package/lib/module/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/module/Competition/components/NavOutPrompt.js +0 -1
- package/lib/module/Competition/components/NavOutPrompt.js.map +1 -1
- package/lib/module/Competition/components/SeasonInfoModal.js +1 -1
- package/lib/module/Competition/components/SeasonInfoModal.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +0 -1
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +1 -1
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +1 -1
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +0 -1
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/Checkbox.js +0 -1
- package/lib/module/Components/Checkbox.js.map +1 -1
- package/lib/module/Components/Icons.js +279 -2
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/ImageUploader.js +1 -1
- package/lib/module/Components/ImageUploader.js.map +1 -1
- package/lib/module/Components/Jerseys.js +0 -1
- package/lib/module/Components/Jerseys.js.map +1 -1
- package/lib/module/Components/LinearDiagnal.js +1 -1
- package/lib/module/Components/LinearDiagnal.js.map +1 -1
- package/lib/module/Components/Spring.js +0 -1
- package/lib/module/Components/Spring.js.map +1 -1
- package/lib/module/Components/Switch.js +0 -1
- package/lib/module/Components/Switch.js.map +1 -1
- package/lib/module/Components/Text.js +33 -5
- package/lib/module/Components/Text.js.map +1 -1
- package/lib/module/Components/TextInput.js +0 -1
- package/lib/module/Components/TextInput.js.map +1 -1
- package/lib/module/LocationTracker/index.js +0 -1
- package/lib/module/LocationTracker/index.js.map +1 -1
- package/lib/module/Observer/Observer.js +0 -1
- package/lib/module/Observer/Observer.js.map +1 -1
- package/lib/module/Poll/components/CampaignPlay.js +0 -1
- package/lib/module/Poll/components/CampaignPlay.js.map +1 -1
- package/lib/module/Poll/components/CampaignProgressBar.js +0 -1
- package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -1
- package/lib/module/Poll/components/CampaignResult.js +0 -1
- package/lib/module/Poll/components/CampaignResult.js.map +1 -1
- package/lib/module/Poll/components/CampaignSelector.js +1 -1
- package/lib/module/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/module/Poll/components/PollCampaignCard.js +0 -1
- package/lib/module/Poll/components/PollCampaignCard.js.map +1 -1
- package/lib/module/Poll/components/PollCard.js +0 -1
- package/lib/module/Poll/components/PollCard.js.map +1 -1
- package/lib/module/Poll/components/PollOptionCard.js +1 -1
- package/lib/module/Poll/components/PollOptionCard.js.map +1 -1
- package/lib/module/Poll/components/PollSelectCard.js +0 -1
- package/lib/module/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/module/Poll/components/ResponseTimer.js +1 -1
- package/lib/module/Poll/components/ResponseTimer.js.map +1 -1
- package/lib/module/Poll/components/WidgetHeader.js +0 -1
- package/lib/module/Poll/components/WidgetHeader.js.map +1 -1
- package/lib/module/Poll/flashmarket/ResultCard.js +1 -1
- package/lib/module/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/module/Poll/flashmarket/index.js +1 -1
- package/lib/module/Poll/flashmarket/index.js.map +1 -1
- package/lib/module/Poll/index.js +1 -1
- package/lib/module/Poll/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +0 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +0 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +1 -1
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/SocialComponents/PlayerCard.js +0 -1
- package/lib/module/SocialComponents/PlayerCard.js.map +1 -1
- package/lib/module/SocialComponents/PlayerFollowButton.js +0 -1
- package/lib/module/SocialComponents/PlayerFollowButton.js.map +1 -1
- package/lib/module/SocialComponents/PlayerList.js +1 -1
- package/lib/module/SocialComponents/PlayerList.js.map +1 -1
- package/lib/module/Socket/api/index.js +13 -0
- package/lib/module/Socket/api/index.js.map +1 -0
- package/lib/module/Socket/index.js +113 -0
- package/lib/module/Socket/index.js.map +1 -0
- package/lib/module/Squares/api/index.js +91 -0
- package/lib/module/Squares/api/index.js.map +1 -0
- package/lib/module/Squares/components/BidForm.js +166 -0
- package/lib/module/Squares/components/BidForm.js.map +1 -0
- package/lib/module/Squares/components/BidToggle.js +56 -0
- package/lib/module/Squares/components/BidToggle.js.map +1 -0
- package/lib/module/Squares/components/BoardStats.js +137 -0
- package/lib/module/Squares/components/BoardStats.js.map +1 -0
- package/lib/module/Squares/components/EventCard.js +125 -0
- package/lib/module/Squares/components/EventCard.js.map +1 -0
- package/lib/module/Squares/components/MySquaresCard.js +102 -0
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -0
- package/lib/module/Squares/components/OfferForm.js +174 -0
- package/lib/module/Squares/components/OfferForm.js.map +1 -0
- package/lib/module/Squares/components/ResultsCard.js +101 -0
- package/lib/module/Squares/components/ResultsCard.js.map +1 -0
- package/lib/module/Squares/components/SquareCard.js +330 -0
- package/lib/module/Squares/components/SquareCard.js.map +1 -0
- package/lib/module/Squares/components/SquareOfferCard.js +259 -0
- package/lib/module/Squares/components/SquareOfferCard.js.map +1 -0
- package/lib/module/Squares/components/SquareOwners.js +116 -0
- package/lib/module/Squares/components/SquareOwners.js.map +1 -0
- package/lib/module/Squares/components/SquaresBoard.js +202 -0
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -0
- package/lib/module/Squares/components/SquaresDetails.js +83 -0
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -0
- package/lib/module/Squares/index.js +561 -0
- package/lib/module/Squares/index.js.map +1 -0
- package/lib/module/Wallet/components/ACHAddCard.js +0 -1
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountCard.js +0 -1
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +0 -1
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/module/Wallet/components/AddressCard.js +0 -1
- package/lib/module/Wallet/components/AddressCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +1 -1
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +1 -1
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +0 -1
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js +0 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +0 -1
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/OrderManager.js +1 -1
- package/lib/module/Wallet/components/OrderManager.js.map +1 -1
- package/lib/module/Wallet/components/RemoveAccount.js +0 -1
- package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js +0 -1
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +1 -1
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +1 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/styles.js +86 -0
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/AdServer/components/CompanyAdCard.d.ts +1 -2
- package/lib/typescript/src/AdServer/components/CompanyAdCard.d.ts.map +1 -1
- package/lib/typescript/src/AdServer/index.d.ts +2 -3
- package/lib/typescript/src/AdServer/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +1 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/index.d.ts +1 -2
- package/lib/typescript/src/BettorSearch/index.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketCompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketCompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketCompetitionSelector.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketCompetitionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketNavigator.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketNavigator.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketRound.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketRound.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/RoundEvent.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/RoundEvent.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/index.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/index.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketSelector.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketSelector.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/CompetitionLeaderboard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/JoinCompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/JoinCompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBalanceCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBalanceCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBracketManager.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBracketManager.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBrackets.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBrackets.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/RoomMenu.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/RoomMenu.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/index.d.ts +1 -2
- package/lib/typescript/src/Bracket/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts +1 -2
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -2
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +1 -2
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts +1 -2
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +1 -2
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts +1 -2
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +1 -2
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/Checkbox.d.ts +1 -2
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +57 -53
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts +1 -2
- package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/src/Components/Jerseys.d.ts +2 -3
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/src/Components/LinearDiagnal.d.ts +1 -2
- package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Spring.d.ts +1 -2
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/src/Components/Switch.d.ts +1 -2
- package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
- package/lib/typescript/src/Components/Text.d.ts +3 -2
- package/lib/typescript/src/Components/Text.d.ts.map +1 -1
- package/lib/typescript/src/Components/TextInput.d.ts +1 -2
- package/lib/typescript/src/Components/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/index.d.ts +1 -2
- package/lib/typescript/src/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/src/Observer/Observer.d.ts +1 -2
- package/lib/typescript/src/Observer/Observer.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts +1 -2
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts +1 -2
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts.map +1 -1
- package/lib/typescript/src/Poll/flashmarket/ResultCard.d.ts +1 -2
- package/lib/typescript/src/Poll/flashmarket/ResultCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/flashmarket/index.d.ts +1 -2
- package/lib/typescript/src/Poll/flashmarket/index.d.ts.map +1 -1
- package/lib/typescript/src/Poll/index.d.ts +1 -2
- package/lib/typescript/src/Poll/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +1 -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/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts.map +1 -1
- package/lib/typescript/src/Socket/api/index.d.ts +6 -0
- package/lib/typescript/src/Socket/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Socket/index.d.ts +11 -0
- package/lib/typescript/src/Socket/index.d.ts.map +1 -0
- package/lib/typescript/src/Squares/api/index.d.ts +29 -0
- package/lib/typescript/src/Squares/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BidForm.d.ts +21 -0
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BidToggle.d.ts +9 -0
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BoardStats.d.ts +10 -0
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/EventCard.d.ts +8 -0
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts +13 -0
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/OfferForm.d.ts +22 -0
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts +11 -0
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareCard.d.ts +20 -0
- package/lib/typescript/src/Squares/components/SquareCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts +12 -0
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts +9 -0
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts +18 -0
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts +9 -0
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -0
- package/lib/typescript/src/Squares/index.d.ts +14 -0
- package/lib/typescript/src/Squares/index.d.ts.map +1 -0
- 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/AccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AddressCard.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/ItemOrderCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/LinkAccountManager.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/OrderManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.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/constants/styles.d.ts +86 -0
- package/lib/typescript/src/constants/styles.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/AdServer/components/CompanyAdCard.tsx +1 -1
- package/src/AdServer/index.tsx +1 -1
- package/src/ApiOverrides/index.ts +6 -3
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +0 -1
- package/src/Authenticator/Components/LoginForm.tsx +1 -1
- package/src/Authenticator/Components/StrategyForm.tsx +1 -1
- package/src/Authenticator/index.tsx +1 -1
- package/src/BettorSearch/index.tsx +1 -1
- package/src/Bracket/components/BracketCompetitionCard.tsx +1 -1
- package/src/Bracket/components/BracketCompetitionSelector.tsx +1 -1
- package/src/Bracket/components/BracketPlay/BracketNavigator.tsx +0 -1
- package/src/Bracket/components/BracketPlay/BracketRound.tsx +0 -1
- package/src/Bracket/components/BracketPlay/RoundEvent.tsx +0 -1
- package/src/Bracket/components/BracketPlay/index.tsx +1 -1
- package/src/Bracket/components/BracketSelector.tsx +0 -1
- package/src/Bracket/components/CompetitionLeaderboard.tsx +1 -1
- package/src/Bracket/components/JoinCompetitionCard.tsx +1 -1
- package/src/Bracket/components/PlayerBalanceCard.tsx +0 -1
- package/src/Bracket/components/PlayerBracketManager.tsx +1 -1
- package/src/Bracket/components/PlayerBrackets.tsx +0 -1
- package/src/Bracket/components/RoomMenu.tsx +0 -1
- package/src/Bracket/index.tsx +1 -1
- package/src/Checkout/components/AccountSummaryCard.tsx +0 -1
- package/src/Checkout/components/ItemSummaryCard.tsx +0 -1
- package/src/Checkout/components/OrderSummaryCard.tsx +0 -1
- package/src/Checkout/components/PayPalOrderCapture.tsx +0 -1
- package/src/Checkout/components/ShippingSummaryCard.tsx +0 -1
- package/src/Checkout/index.tsx +1 -1
- package/src/Competition/components/AthleteMarketCard.tsx +0 -1
- package/src/Competition/components/CompetitionCard.tsx +0 -1
- package/src/Competition/components/CompetitionInfoCard.tsx +0 -1
- package/src/Competition/components/CompetitionLeaderboard.tsx +1 -1
- package/src/Competition/components/CompetitionPlay.tsx +1 -1
- package/src/Competition/components/CompetitionSeasonCard.tsx +0 -1
- package/src/Competition/components/CompetitionSelector.tsx +1 -1
- package/src/Competition/components/CompetitionTypeCard.tsx +1 -1
- package/src/Competition/components/EnterCompetitionPrompt.tsx +1 -1
- package/src/Competition/components/LeaderPicks.tsx +1 -1
- package/src/Competition/components/ManageSeasonForm.tsx +1 -1
- package/src/Competition/components/MarketsCard.tsx +1 -1
- package/src/Competition/components/MatchMarketCard.tsx +0 -1
- package/src/Competition/components/NavOutPrompt.tsx +0 -1
- package/src/Competition/components/SeasonInfoModal.tsx +1 -1
- package/src/Competition/components/TeamEventCard.tsx +0 -1
- package/src/Competition/components/WagerPickForm.tsx +1 -1
- package/src/Competition/index.tsx +1 -1
- package/src/Components/Button.tsx +0 -1
- package/src/Components/Checkbox.tsx +0 -1
- package/src/Components/Icons.tsx +76 -2
- package/src/Components/ImageUploader.tsx +1 -1
- package/src/Components/Jerseys.tsx +0 -1
- package/src/Components/LinearDiagnal.tsx +1 -1
- package/src/Components/Spring.tsx +0 -1
- package/src/Components/Switch.tsx +0 -1
- package/src/Components/Text.tsx +23 -3
- package/src/Components/TextInput.tsx +0 -1
- package/src/LocationTracker/index.tsx +0 -1
- package/src/Observer/Observer.tsx +0 -1
- package/src/Poll/components/CampaignPlay.tsx +0 -1
- package/src/Poll/components/CampaignProgressBar.tsx +0 -1
- package/src/Poll/components/CampaignResult.tsx +0 -1
- package/src/Poll/components/CampaignSelector.tsx +1 -1
- package/src/Poll/components/PollCampaignCard.tsx +0 -1
- package/src/Poll/components/PollCard.tsx +0 -1
- package/src/Poll/components/PollOptionCard.tsx +1 -1
- package/src/Poll/components/PollSelectCard.tsx +0 -1
- package/src/Poll/components/ResponseTimer.tsx +1 -1
- package/src/Poll/components/WidgetHeader.tsx +0 -1
- package/src/Poll/flashmarket/ResultCard.tsx +1 -1
- package/src/Poll/flashmarket/index.tsx +1 -1
- package/src/Poll/index.tsx +1 -1
- package/src/ProfileManager/Components/BasicInfoManager.tsx +1 -1
- package/src/ProfileManager/Components/BasicStatus.tsx +0 -1
- package/src/ProfileManager/Components/CodeRedeem.tsx +1 -1
- package/src/ProfileManager/Components/DOBManager.tsx +1 -1
- package/src/ProfileManager/Components/EmailManager.tsx +1 -1
- package/src/ProfileManager/Components/PasswordManager.tsx +1 -1
- package/src/ProfileManager/Components/PhoneManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfilePicManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfileWelcome.tsx +0 -1
- package/src/ProfileManager/Components/ProfileWizard.tsx +1 -1
- package/src/ProfileManager/Components/SettingsManager.tsx +1 -1
- package/src/ProfileManager/Components/VouchCard.tsx +1 -1
- package/src/ProfileManager/index.tsx +1 -1
- package/src/SocialComponents/PlayerCard.tsx +0 -1
- package/src/SocialComponents/PlayerFollowButton.tsx +0 -1
- package/src/SocialComponents/PlayerList.tsx +1 -1
- package/src/Socket/api/index.ts +15 -0
- package/src/Socket/index.tsx +96 -0
- package/src/Squares/api/index.ts +69 -0
- package/src/Squares/components/BidForm.tsx +85 -0
- package/src/Squares/components/BidToggle.tsx +27 -0
- package/src/Squares/components/BoardStats.tsx +70 -0
- package/src/Squares/components/EventCard.tsx +77 -0
- package/src/Squares/components/MySquaresCard.tsx +80 -0
- package/src/Squares/components/OfferForm.tsx +94 -0
- package/src/Squares/components/ResultsCard.tsx +67 -0
- package/src/Squares/components/SquareCard.tsx +190 -0
- package/src/Squares/components/SquareOfferCard.tsx +101 -0
- package/src/Squares/components/SquareOwners.tsx +69 -0
- package/src/Squares/components/SquaresBoard.tsx +161 -0
- package/src/Squares/components/SquaresDetails.tsx +54 -0
- package/src/Squares/index.tsx +398 -0
- package/src/Wallet/components/ACHAddCard.tsx +0 -1
- package/src/Wallet/components/AccountCard.tsx +0 -1
- package/src/Wallet/components/AccountLimitManager.tsx +1 -1
- package/src/Wallet/components/AccountManager.tsx +0 -1
- package/src/Wallet/components/AccountSnoozeManager.tsx +1 -1
- package/src/Wallet/components/AddressCard.tsx +0 -1
- package/src/Wallet/components/AddressManager.tsx +1 -1
- package/src/Wallet/components/DepositCard.tsx +1 -1
- package/src/Wallet/components/FundAccountCard.tsx +0 -1
- package/src/Wallet/components/ItemOrderCard.tsx +1 -1
- package/src/Wallet/components/ItemOrderDetailCard.tsx +0 -1
- package/src/Wallet/components/LinkAccountManager.tsx +1 -1
- package/src/Wallet/components/ManageAccountCard.tsx +1 -1
- package/src/Wallet/components/ManualACHAdd.tsx +1 -1
- package/src/Wallet/components/ManualCardAdd.tsx +1 -1
- package/src/Wallet/components/MyBalance.tsx +0 -1
- package/src/Wallet/components/OrderManager.tsx +1 -1
- package/src/Wallet/components/RemoveAccount.tsx +0 -1
- package/src/Wallet/components/VerifyACHAccount.tsx +1 -1
- package/src/Wallet/components/WalletActionSelector.tsx +1 -1
- package/src/Wallet/components/WalletSettings.tsx +0 -1
- package/src/Wallet/components/WalletSetup.tsx +1 -1
- package/src/Wallet/components/WithdrawCard.tsx +1 -1
- package/src/Wallet/index.tsx +1 -1
- package/src/constants/styles.ts +15 -2
- package/src/index.tsx +6 -1
- package/src/types.d.ts +52 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { APIOverrides } from '../../ApiOverrides/index';
|
|
3
|
+
let WS_SVC_API = '';
|
|
4
|
+
|
|
5
|
+
export { SocketAPI }
|
|
6
|
+
|
|
7
|
+
const SocketAPI = {
|
|
8
|
+
setEnvironment: () => {
|
|
9
|
+
const endpoints = APIOverrides.getEndpoints();
|
|
10
|
+
WS_SVC_API = endpoints['WS_SVC_API'] as string;
|
|
11
|
+
},
|
|
12
|
+
socketConnect: () => {
|
|
13
|
+
return new WebSocket(WS_SVC_API)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { SocketAPI } from './api/index';
|
|
2
|
+
import { useEffect, useState } from "react"
|
|
3
|
+
import { AppState, ActivityIndicator } from 'react-native';
|
|
4
|
+
import Colors from '../constants/colors';
|
|
5
|
+
|
|
6
|
+
type SocketManagerProps = {
|
|
7
|
+
access_token?:string,
|
|
8
|
+
distinct_id?:string,
|
|
9
|
+
onConnect:() => void,
|
|
10
|
+
onDisconnect:() => void,
|
|
11
|
+
onSocketEvent:(event:any) => void,
|
|
12
|
+
subscribed_events: string[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const SocketManager = ({ access_token, distinct_id, onSocketEvent, subscribed_events, onConnect, onDisconnect }:SocketManagerProps) => {
|
|
16
|
+
const [ visible, setVisible ] = useState(true);
|
|
17
|
+
const [ ws, setWs ] = useState<any>();
|
|
18
|
+
const [ connected, setConnected ] = useState(false);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
SocketAPI.setEnvironment();
|
|
22
|
+
AppState.addEventListener('change', handleEventChange)
|
|
23
|
+
return () => {
|
|
24
|
+
console.log('closed!!!')
|
|
25
|
+
}
|
|
26
|
+
},[])
|
|
27
|
+
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if(visible){
|
|
30
|
+
console.log(ws?.readyState)
|
|
31
|
+
if(!ws || ws.readyState != 1) { return connectSocket(access_token, distinct_id) }
|
|
32
|
+
if(access_token && distinct_id){ socketAuthenticate(access_token, distinct_id) }
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
if(ws){ ws.close() }
|
|
36
|
+
}
|
|
37
|
+
},[visible, access_token, distinct_id])
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const handleEventChange = (state:string) => {
|
|
41
|
+
if(state == 'active'){ setVisible(true) }
|
|
42
|
+
else { setVisible(false) }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const connectSocket = (access_token?:string, distinct_id?:string) => {
|
|
46
|
+
let new_ws = SocketAPI.socketConnect();
|
|
47
|
+
let sub:any = undefined
|
|
48
|
+
new_ws.onopen = async() => {
|
|
49
|
+
setConnected(true)
|
|
50
|
+
onConnect();
|
|
51
|
+
new_ws.send(JSON.stringify({ type: 'PING', data: new Date().toTimeString() }));
|
|
52
|
+
if(access_token && distinct_id){
|
|
53
|
+
new_ws.send(JSON.stringify({
|
|
54
|
+
type: 'AUTHENTICATE',
|
|
55
|
+
access_token,
|
|
56
|
+
device_id: distinct_id
|
|
57
|
+
}))
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
new_ws.onmessage = (body:any) => {
|
|
62
|
+
let message = JSON.parse(body.data);
|
|
63
|
+
if(message.type == 'PONG' && new_ws && new_ws.readyState == 1){
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
if(new_ws && new_ws.readyState == 1){
|
|
66
|
+
new_ws.send(JSON.stringify({ type: 'PING', data: new Date().toTimeString() }))
|
|
67
|
+
}
|
|
68
|
+
}, 10000);
|
|
69
|
+
}
|
|
70
|
+
if(subscribed_events.includes(message.type)){ onSocketEvent(message) }
|
|
71
|
+
}
|
|
72
|
+
new_ws.onclose = () => {
|
|
73
|
+
//setWs(undefined);
|
|
74
|
+
if(sub){ sub.remove() }
|
|
75
|
+
setConnected(false)
|
|
76
|
+
onDisconnect();
|
|
77
|
+
}
|
|
78
|
+
setWs(new_ws);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const socketAuthenticate = (access_token:string, device_id:string) => {
|
|
82
|
+
if(!ws || ws.readyState !== 1){ return } //Cannot set authenticate without a connected websocket
|
|
83
|
+
ws.send(JSON.stringify({
|
|
84
|
+
type: 'AUTHENTICATE',
|
|
85
|
+
access_token,
|
|
86
|
+
device_id
|
|
87
|
+
}))
|
|
88
|
+
}
|
|
89
|
+
if(ws && connected){ return <></> }
|
|
90
|
+
return (
|
|
91
|
+
<ActivityIndicator style={{ position:'absolute', bottom:5, right:5 }} size='large' color={Colors.brand.midnight}/>
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export default SocketManager
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import axios from "axios"
|
|
2
|
+
import { APIOverrides } from "../../ApiOverrides"
|
|
3
|
+
import type { BuySquaresResponseProps, EventProps, LeagueProps, OfferResponseProps, PlayerSquareProps, PublicPlayerProps, SquareOfferProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../../types"
|
|
4
|
+
import moment from "moment-mini"
|
|
5
|
+
|
|
6
|
+
let AUTH_SVC_API = ''
|
|
7
|
+
let TP_SVC_API = ''
|
|
8
|
+
let EVENT_SVC_API = ''
|
|
9
|
+
//let MK_SVC_API = ''
|
|
10
|
+
|
|
11
|
+
export { SquaresApi, SqauresHelpers }
|
|
12
|
+
|
|
13
|
+
const SquaresApi = {
|
|
14
|
+
setEnvironment: () => {
|
|
15
|
+
const endpoints = APIOverrides.getEndpoints();
|
|
16
|
+
TP_SVC_API = endpoints['TP_SVC_API'] as string;
|
|
17
|
+
EVENT_SVC_API = endpoints['EVENT_SVC_API'] as string;
|
|
18
|
+
//MK_SVC_API = endpoints['MK_SVC_API'] as string;
|
|
19
|
+
AUTH_SVC_API = endpoints['AUTH_SVC_API'] as string;
|
|
20
|
+
},
|
|
21
|
+
getSquareCompetitionById: async(sq_comp_id:string):Promise<{ squares_competition:SquaresCompetitionProps, square_results:SquareResultProps[], squares:SquareProps[], player_squares:PlayerSquareProps[], square_offers:SquareOfferProps[], squares_type:SquaresTypeProps, squares_payout_type: SquaresPayoutProps, player_square_history:PlayerSquareProps[] }> => {
|
|
22
|
+
const resp = await axios.get(`${TP_SVC_API}/tp/squares/comp/details/${sq_comp_id}`)
|
|
23
|
+
return resp.data
|
|
24
|
+
},
|
|
25
|
+
getEventsByEventIds: async(event_ids:string[]):Promise<EventProps[]> => {
|
|
26
|
+
const resp = await axios.post(`${EVENT_SVC_API}/v1/events/bulk/get`, { attribute:'event_id', values: event_ids })
|
|
27
|
+
return resp.data.events
|
|
28
|
+
},
|
|
29
|
+
getLeagueById: async(league_id:string):Promise<LeagueProps> => {
|
|
30
|
+
const resp = await axios.get(`${EVENT_SVC_API}/v1/leagues/league/${league_id}`)
|
|
31
|
+
return resp.data.league
|
|
32
|
+
},
|
|
33
|
+
buySquares: async(sq_comp_id:string, player_squares:PlayerSquareProps[]):Promise<BuySquaresResponseProps> => {
|
|
34
|
+
const resp = await axios.post(`${TP_SVC_API}/tp/squares/square/buy`, { sq_comp_id, player_squares })
|
|
35
|
+
return resp.data
|
|
36
|
+
},
|
|
37
|
+
offserSquare: async(square_offer:SquareOfferProps):Promise<OfferResponseProps> => {
|
|
38
|
+
const resp = await axios.post(`${TP_SVC_API}/tp/squares/square/offer`, { square_offer })
|
|
39
|
+
return resp.data
|
|
40
|
+
},
|
|
41
|
+
getPlayersByPlayerIds : async(player_ids:string[]):Promise<PublicPlayerProps[]> => {
|
|
42
|
+
if(player_ids.length == 0){ return [] }
|
|
43
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/players/bulk/get`, { player_ids })
|
|
44
|
+
return resp.data.players
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
const SqauresHelpers = {
|
|
50
|
+
getCompStatus:(event?:EventProps, squares_competition?:SquaresCompetitionProps) => {
|
|
51
|
+
if(!event){ return 'closed' }
|
|
52
|
+
if(['complete','closed','postponed','cancelled'].includes(event?.status)){ return 'closed' }
|
|
53
|
+
if(!squares_competition){ return 'not_started' }
|
|
54
|
+
let now = moment()
|
|
55
|
+
if(moment(squares_competition.begin_datetime).isAfter(now)){ return 'not_started' }
|
|
56
|
+
if(squares_competition.complete_ind){ return 'closed' }
|
|
57
|
+
return 'in_progress'
|
|
58
|
+
},
|
|
59
|
+
getOwnerShipPercents : (ps:PlayerSquareProps[]) => {
|
|
60
|
+
let active_ps = ps.filter(p => p.status == 'active');
|
|
61
|
+
const unique_players = [ ...new Set(active_ps.map(s => s.player_id)) ];
|
|
62
|
+
const ownerships: { player_id: string, owned_squares: number, owned_pct: number }[] = []
|
|
63
|
+
unique_players.map(id => {
|
|
64
|
+
let id_ps = active_ps.filter(p => p.player_id == id);
|
|
65
|
+
ownerships.push({ player_id: id, owned_squares:id_ps.length, owned_pct: id_ps.length / active_ps.length })
|
|
66
|
+
})
|
|
67
|
+
return ownerships.sort((a,b) => b.owned_squares - a.owned_squares)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ActivityIndicator, FlatList, TouchableOpacity, View, ScrollView } from 'react-native';
|
|
2
|
+
import { view_styles } from '../../constants/styles';
|
|
3
|
+
import { Text } from '../../Components';
|
|
4
|
+
import Colors from '../../constants/colors';
|
|
5
|
+
import type { PlayerSquareProps, SquareProps } from '../../types';
|
|
6
|
+
import BidToggle from './BidToggle';
|
|
7
|
+
|
|
8
|
+
type BidFormProps = {
|
|
9
|
+
player_id?:string,
|
|
10
|
+
market_type:string,
|
|
11
|
+
home_abbr?:string,
|
|
12
|
+
width:number,
|
|
13
|
+
away_abbr?:string,
|
|
14
|
+
submit_ready: { is_loading:boolean, is_ready:Boolean }
|
|
15
|
+
onSubmitBid: () => void,
|
|
16
|
+
onClearBids: () => void,
|
|
17
|
+
onBidAmountChange: (player_bid:PlayerSquareProps, square:SquareProps, direction: 'increase'|'decrease') => void,
|
|
18
|
+
onRequestAuthenticate: () => void,
|
|
19
|
+
square_bids:PlayerSquareProps[],
|
|
20
|
+
squares:SquareProps[]
|
|
21
|
+
}
|
|
22
|
+
const BidForm = ({ player_id, width, market_type, home_abbr, away_abbr, submit_ready, square_bids, squares, onSubmitBid, onClearBids, onBidAmountChange, onRequestAuthenticate }:BidFormProps) => {
|
|
23
|
+
const cl = market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
24
|
+
const total_bid_amount = square_bids.reduce((a,b) => a + b.purchase_price, 0)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const renderBids = (data: { item:PlayerSquareProps, index:number }) => {
|
|
28
|
+
let square = squares.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
29
|
+
if(!square){ return ( <></> ) }
|
|
30
|
+
return (
|
|
31
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
32
|
+
<View style={{flex:1}}>
|
|
33
|
+
<Text theme="body">SQUARE: {home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
34
|
+
<Text theme="body_2">Current Bid: {cl}{square.last_purchase_price.toFixed(2)}</Text>
|
|
35
|
+
</View>
|
|
36
|
+
<View>
|
|
37
|
+
<BidToggle sq_square_id={data.item.sq_square_id} amount={data.item.purchase_price} cl={cl} onAmountChange={(dir) => onBidAmountChange(data.item, square, dir)}/>
|
|
38
|
+
</View>
|
|
39
|
+
</View>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<View style={{ ...view_styles.section, width, padding:0, maxHeight:550, maxWidth:600 }}>
|
|
45
|
+
<ScrollView style={{ flex:1 }}>
|
|
46
|
+
<View style={ view_styles.section_header }>
|
|
47
|
+
<View style={{ flex:1 }}>
|
|
48
|
+
<Text theme="header">SET BID AMOUNTS</Text>
|
|
49
|
+
<Text style={{ marginTop:3 }} color={Colors.utility.error} size={12} weight='regular'>All purchases are final and cannot be removed</Text>
|
|
50
|
+
</View>
|
|
51
|
+
<View style={{ height:24, width:24, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center', marginLeft: 5 }}>
|
|
52
|
+
<Text size={12} color={Colors.shades.white} textAlign='center'>{square_bids.length}</Text>
|
|
53
|
+
</View>
|
|
54
|
+
</View>
|
|
55
|
+
<View style={{ ...view_styles.section_body }}>
|
|
56
|
+
<FlatList data={square_bids.sort((a,b) => parseInt(a.sq_square_id) - parseInt(b.sq_square_id))} renderItem={renderBids} keyExtractor={(item) => `b-${item.sq_square_id}`}/>
|
|
57
|
+
<View style={view_styles.body_row}>
|
|
58
|
+
<Text style={{ flex:1 }} theme='body'>Total</Text>
|
|
59
|
+
<Text theme='header_2'>{cl}{total_bid_amount.toFixed(2)}</Text>
|
|
60
|
+
</View>
|
|
61
|
+
<View style={{ ...view_styles.body_row }}>
|
|
62
|
+
<TouchableOpacity style={{ flex:1/3, padding:12, borderRadius:4, borderWidth:1, borderColor:Colors.brand.cobalt, justifyContent:'center', alignItems:'center', marginRight:4 }} onPress={() => onClearBids()}>
|
|
63
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.brand.cobalt}>Clear</Text>
|
|
64
|
+
</TouchableOpacity>
|
|
65
|
+
{player_id ?
|
|
66
|
+
<TouchableOpacity style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:submit_ready.is_ready?Colors.highlights.highlight400:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center', marginLeft:4, opacity:submit_ready.is_loading?0.5:1 }} onPress={() => onSubmitBid()}>
|
|
67
|
+
{submit_ready.is_loading ?
|
|
68
|
+
<ActivityIndicator size='small' color={Colors.shades.white}/>
|
|
69
|
+
:
|
|
70
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>{submit_ready.is_ready?'Submit Bids':'Review Bids'}</Text>
|
|
71
|
+
}
|
|
72
|
+
</TouchableOpacity>
|
|
73
|
+
:
|
|
74
|
+
<TouchableOpacity style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:Colors.highlights.highlight400, justifyContent:'center', alignItems:'center', marginLeft:4 }} onPress={() => onRequestAuthenticate()}>
|
|
75
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>Sign Up</Text>
|
|
76
|
+
</TouchableOpacity>
|
|
77
|
+
}
|
|
78
|
+
</View>
|
|
79
|
+
</View>
|
|
80
|
+
</ScrollView>
|
|
81
|
+
</View>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default BidForm
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from "react-native"
|
|
2
|
+
import { Text } from "../../Components"
|
|
3
|
+
import Colors from "../../constants/colors"
|
|
4
|
+
import { view_styles } from "../../constants/styles"
|
|
5
|
+
|
|
6
|
+
type BidToggleProps = {
|
|
7
|
+
cl: string,
|
|
8
|
+
sq_square_id:string,
|
|
9
|
+
amount:number,
|
|
10
|
+
onAmountChange:(dir:'increase'|'decrease') => void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const BidToggle = ({ cl, amount, onAmountChange }:BidToggleProps) => {
|
|
14
|
+
return (
|
|
15
|
+
<View style={{ ...view_styles.body_row, borderWidth:1, borderColor:Colors.accents.accent200, borderRadius:4, padding:0 }}>
|
|
16
|
+
<TouchableOpacity style={{ justifyContent:'center', alignItems:'center', padding:12, borderRightWidth:1, borderRightColor:Colors.accents.accent200}} onPress={() => onAmountChange('decrease')}>
|
|
17
|
+
<Text size={16} weight='semibold' color={Colors.brand.electric} textAlign='center'>-</Text>
|
|
18
|
+
</TouchableOpacity>
|
|
19
|
+
<Text style={{ flex:1, marginLeft:4, marginRight:4 }} theme="header_2">{cl}{amount.toFixed(2)}</Text>
|
|
20
|
+
<TouchableOpacity style={{ justifyContent:'center', alignItems:'center', padding:12, borderLeftWidth:1, borderLeftColor:Colors.accents.accent200}} onPress={() => onAmountChange('increase')}>
|
|
21
|
+
<Text size={16} weight='semibold' color={Colors.brand.electric} textAlign='center'>+</Text>
|
|
22
|
+
</TouchableOpacity>
|
|
23
|
+
</View>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default BidToggle
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { View, TouchableOpacity } from "react-native"
|
|
2
|
+
import { Icons, Text } from "../../Components"
|
|
3
|
+
import { view_styles } from "../../constants/styles"
|
|
4
|
+
import Colors from "../../constants/colors"
|
|
5
|
+
import type { PlayerSquareProps, SquareProps, SquaresCompetitionProps } from "../../types"
|
|
6
|
+
import { useState } from "react"
|
|
7
|
+
|
|
8
|
+
type BoardStatsProps = {
|
|
9
|
+
player_id?:string,
|
|
10
|
+
squares_competition:SquaresCompetitionProps,
|
|
11
|
+
squares:SquareProps[],
|
|
12
|
+
player_squares:PlayerSquareProps[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const BoardStats = ({ player_id, squares_competition, squares, player_squares }:BoardStatsProps) => {
|
|
16
|
+
const [ expanded, setExpanded ] = useState(false);
|
|
17
|
+
|
|
18
|
+
let total_payout = squares_competition.potential_winnings
|
|
19
|
+
if(squares_competition.guaranteed_payout && squares_competition.guaranteed_payout > total_payout){ total_payout = squares_competition.guaranteed_payout }
|
|
20
|
+
let iteration_payout = total_payout / squares_competition.payout_frequency
|
|
21
|
+
let active_ps = player_squares.filter(ps => ps.status == 'active');
|
|
22
|
+
const ownership_pct = active_ps.length / squares.length * 100
|
|
23
|
+
const my_ownership = active_ps.filter(ps => ps.player_id == player_id).length / active_ps.length * 100
|
|
24
|
+
return (
|
|
25
|
+
<View style={{ ...view_styles.section, minWidth:350 }}>
|
|
26
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
27
|
+
<Icons.PieIcon color={Colors.brand.midnight} size={18} />
|
|
28
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
29
|
+
<Text theme="header">BOARD STATS</Text>
|
|
30
|
+
<Text style={{ marginTop: 4 }} theme="body_2">Current statistics from the squares board</Text>
|
|
31
|
+
</View>
|
|
32
|
+
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} color={Colors.brand.midnight} size={8} />
|
|
33
|
+
</TouchableOpacity>
|
|
34
|
+
{expanded ?
|
|
35
|
+
<View style={view_styles.section_body}>
|
|
36
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
37
|
+
<View style={{flex:1, marginRight:10}}>
|
|
38
|
+
<Text theme="header_2">Unbid Squares</Text>
|
|
39
|
+
<Text style={{ marginTop:3 }} theme="body_2">Percent of the board that has no bids</Text>
|
|
40
|
+
</View>
|
|
41
|
+
<Text theme="header_2">{(squares.length - active_ps.length).toFixed()} ({(100 - ownership_pct).toFixed(2)}%)</Text>
|
|
42
|
+
</View>
|
|
43
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
44
|
+
<View style={{flex:1, marginRight:10}}>
|
|
45
|
+
<Text theme="header_2">My Ownership Pct</Text>
|
|
46
|
+
<Text style={{ marginTop:3 }} theme="body_2">How much of the total board do I own? (All unbid squares will be extrapolated based on this ownership pct)</Text>
|
|
47
|
+
</View>
|
|
48
|
+
<Text theme="header_2">{(my_ownership).toFixed()}%</Text>
|
|
49
|
+
</View>
|
|
50
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
51
|
+
<View style={{flex:1, marginRight:10}}>
|
|
52
|
+
<Text theme="header_2">Current Total Payout</Text>
|
|
53
|
+
<Text style={{ marginTop:3 }} theme="body_2">The current total amount to be paid out to the winners</Text>
|
|
54
|
+
</View>
|
|
55
|
+
<Text size={16} color={Colors.utility.success} weight='bold'>${total_payout.toFixed(2)}</Text>
|
|
56
|
+
</View>
|
|
57
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
58
|
+
<View style={{flex:1, marginRight:10}}>
|
|
59
|
+
<Text theme="header_2">Current Iteration Payout</Text>
|
|
60
|
+
<Text style={{ marginTop:3 }} theme="body_2">The current amount to be paid out per quarter</Text>
|
|
61
|
+
</View>
|
|
62
|
+
<Text size={16} color={Colors.utility.success} weight='bold'>${iteration_payout.toFixed(2)}</Text>
|
|
63
|
+
</View>
|
|
64
|
+
</View>
|
|
65
|
+
:<></>}
|
|
66
|
+
</View>
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default BoardStats
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Image, View, TouchableOpacity } from "react-native"
|
|
2
|
+
import { view_styles } from "../../constants/styles"
|
|
3
|
+
import { Icons, Text } from "../../Components"
|
|
4
|
+
import type { EventProps, LeagueProps } from "../../types"
|
|
5
|
+
import moment from "moment-mini"
|
|
6
|
+
import Colors from "../../constants/colors"
|
|
7
|
+
import { useState } from "react"
|
|
8
|
+
|
|
9
|
+
type EventCardProps = {
|
|
10
|
+
league?:LeagueProps,
|
|
11
|
+
event:EventProps
|
|
12
|
+
}
|
|
13
|
+
const EventCard = ({ event, league }:EventCardProps) => {
|
|
14
|
+
const [ expanded, setExpanded ] = useState(true);
|
|
15
|
+
const overtime_occurred = event.event_scoring && event.event_scoring.length > 4 ? true : false;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<View style={{ ...view_styles.section, minWidth:350 }}>
|
|
19
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
20
|
+
<View style={{ flexDirection:'row', alignItems:'center', paddingRight:5, borderRightWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
21
|
+
{league ?
|
|
22
|
+
<Image
|
|
23
|
+
source={{ uri: league.league_image }}
|
|
24
|
+
style={{ height:30, width:30, borderRadius:4, marginRight:5 }}
|
|
25
|
+
resizeMode="cover"
|
|
26
|
+
/>
|
|
27
|
+
:<></>}
|
|
28
|
+
</View>
|
|
29
|
+
<View style={{ flex:1, marginLeft:5 }}>
|
|
30
|
+
<Text theme="header">{event.away?.market_name} {event.away?.name} vs {event.home?.market_name} {event.home?.name}</Text>
|
|
31
|
+
<Text style={{ marginTop:3 }} theme="body_2">{event.time_detail == 'scheduled' ? moment(event.scheduled_datetime).add(10, 'days').format('MMM D - hh:mm a') : event.time_detail}</Text>
|
|
32
|
+
</View>
|
|
33
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={Colors.brand.midnight} size={8} />
|
|
34
|
+
</TouchableOpacity>
|
|
35
|
+
{event.event_scoring && expanded ?
|
|
36
|
+
<View style={view_styles.section_body}>
|
|
37
|
+
<View style={view_styles.body_row}>
|
|
38
|
+
<Image
|
|
39
|
+
source={{ uri: event.away?.image?.url }}
|
|
40
|
+
style={{ height:20, width:20, borderRadius:4, marginRight:5 }}
|
|
41
|
+
resizeMode="cover"
|
|
42
|
+
/>
|
|
43
|
+
<Text style={{ flex:1 }} theme="body">{event.away?.abbr}</Text>
|
|
44
|
+
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
45
|
+
{event.event_scoring.map(s => {
|
|
46
|
+
return (
|
|
47
|
+
<View style={{ flex:1 }}>
|
|
48
|
+
<Text theme={overtime_occurred && s.period == 4 ? 'error_header_2': 'header_2'}>{s.away_cumulative_score}</Text>
|
|
49
|
+
</View>
|
|
50
|
+
)
|
|
51
|
+
})}
|
|
52
|
+
</View>
|
|
53
|
+
</View>
|
|
54
|
+
<View style={view_styles.body_row}>
|
|
55
|
+
<Image
|
|
56
|
+
source={{ uri: event.home?.image?.url }}
|
|
57
|
+
style={{ height:20, width:20, borderRadius:4, marginRight:5 }}
|
|
58
|
+
resizeMode="cover"
|
|
59
|
+
/>
|
|
60
|
+
<Text style={{ flex:1 }} theme="body">{event.home?.abbr}</Text>
|
|
61
|
+
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
62
|
+
{event.event_scoring.map(s => {
|
|
63
|
+
return (
|
|
64
|
+
<View style={{ flex:1 }}>
|
|
65
|
+
<Text theme={overtime_occurred && s.period == 4 ? 'error_header_2': 'header_2'}>{s.home_cumulative_score}</Text>
|
|
66
|
+
</View>
|
|
67
|
+
)
|
|
68
|
+
})}
|
|
69
|
+
</View>
|
|
70
|
+
</View>
|
|
71
|
+
</View>
|
|
72
|
+
:<></>}
|
|
73
|
+
</View>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export default EventCard
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { View, TouchableOpacity, FlatList } from 'react-native';
|
|
2
|
+
import type { PlayerSquareProps, SquareOfferProps, SquareProps } from '../../types';
|
|
3
|
+
import { view_styles } from '../../constants/styles';
|
|
4
|
+
import { Button, Icons, Text } from '../../Components';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import Colors from '../../constants/colors';
|
|
7
|
+
import { SquaresApi } from '../api';
|
|
8
|
+
|
|
9
|
+
type MySquaresCardProps = {
|
|
10
|
+
player_squares:PlayerSquareProps[],
|
|
11
|
+
squares:SquareProps[],
|
|
12
|
+
square_offers:SquareOfferProps[],
|
|
13
|
+
away_abbr?:string,
|
|
14
|
+
home_abbr?:string,
|
|
15
|
+
comp_status: string,
|
|
16
|
+
onSquareOffer: (square:SquareProps, action:'add'|'remove') => void
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const MySquaresCard = ({ player_squares, squares, away_abbr, home_abbr, square_offers, comp_status, onSquareOffer }: MySquaresCardProps) => {
|
|
20
|
+
const [ expanded, setExpanded ] = useState(false);
|
|
21
|
+
const renderPlayerSquares = (data: { item:PlayerSquareProps, index: number }) => {
|
|
22
|
+
const square = squares.find(s => s.sq_square_id == data.item.sq_square_id);
|
|
23
|
+
if(!square){ return <></> }
|
|
24
|
+
const square_offer = square_offers.find(so => so.sq_player_square_id == data.item.sq_player_square_id && so.status == 'offered');
|
|
25
|
+
return (
|
|
26
|
+
<View style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
27
|
+
<View style={{ flex:1 }}>
|
|
28
|
+
<Text theme='header_2'>SQUARE: {home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
29
|
+
<Text style={{ marginTop:3 }} theme='body_2'>${data.item.purchase_price.toFixed(2)}</Text>
|
|
30
|
+
</View>
|
|
31
|
+
{comp_status == 'not_started' ?
|
|
32
|
+
<View>
|
|
33
|
+
{square_offer ?
|
|
34
|
+
<Button
|
|
35
|
+
title='WITHDRAW'
|
|
36
|
+
title_color={Colors.shades.white}
|
|
37
|
+
backgroundColor={Colors.utility.warning}
|
|
38
|
+
onPress={async() => await SquaresApi.offserSquare({ ...square_offer, status: 'withdrawn' })}
|
|
39
|
+
/>
|
|
40
|
+
:
|
|
41
|
+
<Button
|
|
42
|
+
title='SELL'
|
|
43
|
+
title_color={Colors.shades.white}
|
|
44
|
+
backgroundColor={Colors.brand.electric}
|
|
45
|
+
onPress={() => onSquareOffer(square, 'add')}
|
|
46
|
+
/>
|
|
47
|
+
}
|
|
48
|
+
</View>
|
|
49
|
+
:<></>}
|
|
50
|
+
</View>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<View style={{ ...view_styles.section, minWidth:350 }}>
|
|
57
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
58
|
+
<View style={{ height:18, width:18, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center' }}>
|
|
59
|
+
<Text size={10} weight='bold' color={Colors.shades.white} textAlign='center'>{player_squares.length}</Text>
|
|
60
|
+
</View>
|
|
61
|
+
<View style={{flex:1, marginLeft:10}}>
|
|
62
|
+
<Text theme='header'>MY SQUARES</Text>
|
|
63
|
+
<Text style={{ marginTop:3 }} theme='body_2'>Square you either own or have the highest bid on</Text>
|
|
64
|
+
</View>
|
|
65
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} size={8} color={Colors.brand.midnight}/>
|
|
66
|
+
</TouchableOpacity>
|
|
67
|
+
{expanded ?
|
|
68
|
+
<View style={view_styles.section_body}>
|
|
69
|
+
<FlatList
|
|
70
|
+
data={player_squares.sort((a,b) => b.purchase_price - a.purchase_price)}
|
|
71
|
+
renderItem={renderPlayerSquares}
|
|
72
|
+
keyExtractor={(item) => item.sq_player_square_id.toString()}
|
|
73
|
+
/>
|
|
74
|
+
</View>
|
|
75
|
+
:<></>}
|
|
76
|
+
</View>
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default MySquaresCard
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ActivityIndicator, FlatList, TouchableOpacity, View } from "react-native"
|
|
2
|
+
import { Text } from "../../Components"
|
|
3
|
+
import type { PlayerSquareProps, SquareOfferProps, SquareProps } from "../../types"
|
|
4
|
+
import BidToggle from "./BidToggle"
|
|
5
|
+
import { view_styles } from "../../constants/styles"
|
|
6
|
+
import Colors from "../../constants/colors"
|
|
7
|
+
|
|
8
|
+
type OfferFormProps = {
|
|
9
|
+
player_id?:string,
|
|
10
|
+
market_type:string,
|
|
11
|
+
home_abbr?:string,
|
|
12
|
+
away_abbr?:string,
|
|
13
|
+
width:number
|
|
14
|
+
submit_ready: { is_loading:boolean, is_ready:Boolean }
|
|
15
|
+
onSubmitOffer: () => void,
|
|
16
|
+
onClearOffers: () => void,
|
|
17
|
+
onOfferAmountChange: (offer:SquareOfferProps, player_square:PlayerSquareProps, direction: 'increase'|'decrease') => void,
|
|
18
|
+
onRequestAuthenticate: () => void,
|
|
19
|
+
draft_square_offers:SquareOfferProps[],
|
|
20
|
+
player_squares:PlayerSquareProps[],
|
|
21
|
+
squares:SquareProps[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const OfferForm = ({ player_id, market_type, width, squares, submit_ready, home_abbr, away_abbr, player_squares, draft_square_offers, onRequestAuthenticate, onOfferAmountChange, onClearOffers, onSubmitOffer }:OfferFormProps) => {
|
|
25
|
+
const cl = market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
26
|
+
const total_offer_amount = draft_square_offers.reduce((a,b) => a + b.amount, 0)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const renderDraftOffers = (data: { item:SquareOfferProps, index:number }) => {
|
|
30
|
+
let ps = player_squares.find(psQ => psQ.sq_player_square_id == data.item.sq_player_square_id)
|
|
31
|
+
if(!ps){ return (<></>) }
|
|
32
|
+
let square = squares.find(s => s.sq_square_id == ps?.sq_square_id)
|
|
33
|
+
if(!square){ return ( <></> ) }
|
|
34
|
+
return (
|
|
35
|
+
<View style={{flex:1, flexDirection:'row', alignItems:'center', marginBottom:8}}>
|
|
36
|
+
<View style={{flex:1}}>
|
|
37
|
+
<Text theme='body'>SQUARE: {home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
38
|
+
<Text theme='body_2'>Purchased Price: {cl}{ps.purchase_price.toFixed(2)}</Text>
|
|
39
|
+
</View>
|
|
40
|
+
<View>
|
|
41
|
+
<BidToggle sq_square_id={square.sq_square_id} amount={data.item.amount} cl={cl} onAmountChange={(dir) => onOfferAmountChange(data.item, ps, dir)}/>
|
|
42
|
+
</View>
|
|
43
|
+
</View>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if(!draft_square_offers[0]){ return <></> }
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<View style={{ ...view_styles.section, width, padding:0, maxHeight:550, maxWidth:600 }}>
|
|
51
|
+
<View style={ view_styles.section_header }>
|
|
52
|
+
<View style={{ flex:1 }}>
|
|
53
|
+
<Text theme="header">SET YOUR {draft_square_offers[0].buy_sell_ind==='buy'?'OFFER AMOUNTS':'SELL PRICE'}</Text>
|
|
54
|
+
{draft_square_offers[0].buy_sell_ind === 'buy' ?
|
|
55
|
+
<Text style={{ marginTop:3 }} theme="body_2">How much are you willing to offer the current square owner</Text>
|
|
56
|
+
:
|
|
57
|
+
<Text style={{ marginTop:3 }} theme="body_2">How much are you willing to sell the selected square for?</Text>
|
|
58
|
+
}
|
|
59
|
+
</View>
|
|
60
|
+
<View style={{ height:24, width:24, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center', marginLeft: 5 }}>
|
|
61
|
+
<Text size={12} color={Colors.shades.white} textAlign='center'>{draft_square_offers.length}</Text>
|
|
62
|
+
</View>
|
|
63
|
+
</View>
|
|
64
|
+
|
|
65
|
+
<View style={{ ...view_styles.section_body }}>
|
|
66
|
+
<FlatList data={draft_square_offers.sort((a,b) => parseInt(a.sq_player_square_id) - parseInt(b.sq_player_square_id))} renderItem={renderDraftOffers} keyExtractor={(item) => `o-${item.sq_player_square_id}`}/>
|
|
67
|
+
<View style={view_styles.body_row}>
|
|
68
|
+
<Text style={{ flex:1 }} theme='body'>Total</Text>
|
|
69
|
+
<Text theme='header_2'>{cl}{total_offer_amount.toFixed(2)}</Text>
|
|
70
|
+
</View>
|
|
71
|
+
<View style={{ ...view_styles.body_row }}>
|
|
72
|
+
<TouchableOpacity style={{ flex:1/3, padding:12, borderRadius:4, borderWidth:1, borderColor:Colors.brand.cobalt, justifyContent:'center', alignItems:'center', marginRight:4 }} onPress={() => onClearOffers()}>
|
|
73
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.brand.cobalt}>Clear</Text>
|
|
74
|
+
</TouchableOpacity>
|
|
75
|
+
{player_id ?
|
|
76
|
+
<TouchableOpacity style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:submit_ready.is_ready?Colors.highlights.highlight400:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center', marginLeft:4, opacity:submit_ready.is_loading?0.5:1 }} onPress={() => onSubmitOffer()}>
|
|
77
|
+
{submit_ready.is_loading ?
|
|
78
|
+
<ActivityIndicator size='small' color={Colors.shades.white}/>
|
|
79
|
+
:
|
|
80
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>{submit_ready.is_ready?'Submit Offers':'Review Offers'}</Text>
|
|
81
|
+
}
|
|
82
|
+
</TouchableOpacity>
|
|
83
|
+
:
|
|
84
|
+
<TouchableOpacity style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:Colors.highlights.highlight400, justifyContent:'center', alignItems:'center', marginLeft:4 }} onPress={() => onRequestAuthenticate()}>
|
|
85
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>Sign Up</Text>
|
|
86
|
+
</TouchableOpacity>
|
|
87
|
+
}
|
|
88
|
+
</View>
|
|
89
|
+
</View>
|
|
90
|
+
</View>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default OfferForm
|