be-components 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AdServer/api/index.js +1 -1
- package/lib/commonjs/AdServer/api/index.js.map +1 -1
- package/lib/commonjs/AdServer/index.js +1 -1
- package/lib/commonjs/AdServer/index.js.map +1 -1
- package/lib/commonjs/ApiOverrides/index.js +1 -1
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +1 -1
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/api/index.js +1 -1
- package/lib/commonjs/Authenticator/api/index.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +1 -1
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/BettorSearch/api/index.js +1 -1
- package/lib/commonjs/BettorSearch/api/index.js.map +1 -1
- package/lib/commonjs/BettorSearch/index.js +1 -1
- package/lib/commonjs/BettorSearch/index.js.map +1 -1
- package/lib/commonjs/Bracket/api/index.js +1 -1
- package/lib/commonjs/Bracket/api/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/index.js +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketSelector.js +1 -1
- package/lib/commonjs/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js +1 -1
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js +1 -1
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js +1 -1
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js +1 -1
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBrackets.js +1 -1
- package/lib/commonjs/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/commonjs/Bracket/components/RoomMenu.js +1 -1
- package/lib/commonjs/Bracket/components/RoomMenu.js.map +1 -1
- package/lib/commonjs/Bracket/index.js +1 -1
- package/lib/commonjs/Bracket/index.js.map +1 -1
- package/lib/commonjs/Checkout/api/index.js +1 -1
- package/lib/commonjs/Checkout/api/index.js.map +1 -1
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +1 -1
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +1 -1
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/api/index.js +1 -1
- package/lib/commonjs/Competition/api/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionCard.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +3 -3
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSelector.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/MatchMarketCard.js +1 -1
- package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/NavOutPrompt.js +1 -1
- package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/SeasonCard.js +1 -1
- package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +1 -1
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/CompetitionManager/api/index.js +1 -1
- package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/AdminCompetitionList.js +1 -1
- package/lib/commonjs/CompetitionManager/components/AdminCompetitionList.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js +1 -1
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +72 -4
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionMatchMarketCard.js +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionMatchMarketCard.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +38 -2
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +1 -1
- package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js +1 -1
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js +1 -1
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/index.js +1 -1
- package/lib/commonjs/CompetitionManager/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/api/index.js +1 -1
- package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +1 -1
- package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +1 -1
- package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +1 -1
- package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/index.js +1 -1
- package/lib/commonjs/CompetitionSeason/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/api/index.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/index.js +1 -1
- package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +1 -1
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +1 -1
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Dropdown.js +1 -1
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +1 -1
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +1 -1
- package/lib/commonjs/Components/Jerseys.js.map +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/SearchBox.js +1 -1
- package/lib/commonjs/Components/SearchBox.js.map +1 -1
- package/lib/commonjs/Components/Spring.js +1 -1
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/Components/Switch.js +1 -1
- package/lib/commonjs/Components/Switch.js.map +1 -1
- package/lib/commonjs/Components/Text.js +1 -1
- package/lib/commonjs/Components/Text.js.map +1 -1
- package/lib/commonjs/Components/TextInput.js +1 -1
- package/lib/commonjs/Components/TextInput.js.map +1 -1
- package/lib/commonjs/Components/index.js +1 -1
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/Engage/api/index.js +1 -1
- package/lib/commonjs/Engage/api/index.js.map +1 -1
- package/lib/commonjs/Engage/components/BracketCompetitionCard.js +1 -1
- package/lib/commonjs/Engage/components/BracketCompetitionCard.js.map +1 -1
- package/lib/commonjs/Engage/components/CompanyCard.js +1 -1
- package/lib/commonjs/Engage/components/CompanyCard.js.map +1 -1
- package/lib/commonjs/Engage/components/CompetitionCard.js +3 -3
- package/lib/commonjs/Engage/components/CompetitionCard.js.map +1 -1
- package/lib/commonjs/Engage/components/EngageHeader.js +1 -1
- package/lib/commonjs/Engage/components/EngageHeader.js.map +1 -1
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js +1 -1
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js.map +1 -1
- package/lib/commonjs/Engage/components/SeasonCard.js +1 -1
- package/lib/commonjs/Engage/components/SeasonCard.js.map +1 -1
- package/lib/commonjs/Engage/components/SquaresCompetitionCard.js +1 -1
- package/lib/commonjs/Engage/components/SquaresCompetitionCard.js.map +1 -1
- package/lib/commonjs/Engage/index.js +1 -1
- package/lib/commonjs/Engage/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +1 -1
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/index.js +1 -1
- package/lib/commonjs/LocationTracker/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/api/index.js +1 -1
- package/lib/commonjs/MarketComponents/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/OrderGradeBar.js +1 -1
- package/lib/commonjs/MarketComponents/components/OrderGradeBar.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js +47 -3
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +27 -6
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/index.js +1 -1
- package/lib/commonjs/MarketComponents/index.js.map +1 -1
- package/lib/commonjs/Observer/api/index.js +1 -1
- package/lib/commonjs/Observer/api/index.js.map +1 -1
- package/lib/commonjs/Observer/index.js +1 -1
- package/lib/commonjs/Observer/index.js.map +1 -1
- package/lib/commonjs/Poll/api/index.js +1 -1
- package/lib/commonjs/Poll/api/index.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignPlay.js +1 -1
- package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignProgressBar.js +1 -1
- package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignResult.js +1 -1
- package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignSelector.js +1 -1
- package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCampaignCard.js +1 -1
- package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCard.js +1 -1
- package/lib/commonjs/Poll/components/PollCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollOptionCard.js +1 -1
- package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollSelectCard.js +1 -1
- package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/commonjs/Poll/components/ResponseTimer.js +1 -1
- package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -1
- package/lib/commonjs/Poll/components/WidgetHeader.js +1 -1
- package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/ResultCard.js +1 -1
- package/lib/commonjs/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/index.js +1 -1
- package/lib/commonjs/Poll/flashmarket/index.js.map +1 -1
- package/lib/commonjs/Poll/index.js +1 -1
- package/lib/commonjs/Poll/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/api/index.js +1 -1
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +1 -1
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/PromotedOrder/api/index.js +1 -1
- package/lib/commonjs/PromotedOrder/api/index.js.map +1 -1
- package/lib/commonjs/PromotedOrder/index.js +1 -1
- package/lib/commonjs/PromotedOrder/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js +1 -1
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerList.js +1 -1
- package/lib/commonjs/SocialComponents/PlayerList.js.map +1 -1
- package/lib/commonjs/SocialComponents/api/index.js +1 -1
- package/lib/commonjs/SocialComponents/api/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/index.js +1 -1
- package/lib/commonjs/SocialComponents/index.js.map +1 -1
- package/lib/commonjs/Socket/index.js +1 -1
- package/lib/commonjs/Socket/index.js.map +1 -1
- package/lib/commonjs/Squares/api/index.js +1 -1
- package/lib/commonjs/Squares/api/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +1 -1
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/Countdown.js +1 -1
- package/lib/commonjs/Squares/components/Countdown.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +1 -1
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareCard.js +1 -1
- package/lib/commonjs/Squares/components/SquareCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOfferCard.js +1 -1
- package/lib/commonjs/Squares/components/SquareOfferCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +1 -1
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/Wallet/api/index.js +1 -1
- package/lib/commonjs/Wallet/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js +1 -1
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +1 -1
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +1 -1
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/AdServer/api/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/api/index.js.map +1 -1
- package/lib/module/BettorSearch/api/index.js.map +1 -1
- package/lib/module/Bracket/api/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/module/Checkout/api/index.js.map +1 -1
- package/lib/module/Competition/api/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +2 -2
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/CompetitionManager/api/index.js.map +1 -1
- package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +71 -3
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +37 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/module/CompetitionManager/index.js.map +1 -1
- package/lib/module/CompetitionSeason/api/index.js.map +1 -1
- package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -1
- package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Jerseys.js.map +1 -1
- package/lib/module/Engage/api/index.js.map +1 -1
- package/lib/module/Engage/components/CompanyCard.js.map +1 -1
- package/lib/module/Engage/components/CompetitionCard.js +2 -2
- package/lib/module/Engage/components/CompetitionCard.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/LocationTracker/index.js.map +1 -1
- package/lib/module/MarketComponents/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js +46 -2
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +26 -5
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/Observer/api/index.js.map +1 -1
- package/lib/module/Poll/api/index.js.map +1 -1
- package/lib/module/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/module/Poll/components/PollCard.js.map +1 -1
- package/lib/module/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/module/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/module/Poll/flashmarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/PromotedOrder/api/index.js.map +1 -1
- package/lib/module/SocialComponents/api/index.js.map +1 -1
- package/lib/module/Squares/api/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/SquareCard.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Wallet/api/index.js.map +1 -1
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/typescript/src/AdServer/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts +4 -4
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/api/index.d.ts +6 -6
- package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/api/index.d.ts +1 -1
- package/lib/typescript/src/Bracket/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/api/index.d.ts +2 -2
- package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/api/index.d.ts +3 -3
- package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +6 -6
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/api/index.d.ts +5 -2
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +31 -31
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/Observer/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Poll/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/PromotedOrder/api/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Competition/components/CompetitionInfoCard.tsx +1 -1
- package/src/CompetitionManager/components/CompetitionInfoForm.tsx +31 -3
- package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +16 -0
- package/src/Engage/components/CompetitionCard.tsx +1 -1
- package/src/MarketComponents/components/TeamEventMarket/api/index.ts +37 -2
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +19 -3
- package/src/types.d.ts +3 -1
|
@@ -6,7 +6,7 @@ import type { CompetitionProps, MyPlayerProps } from '../../types';
|
|
|
6
6
|
import { Button, Icons, Switch, Text, TextInput } from '../../Components';
|
|
7
7
|
import Colors from '../../constants/colors';
|
|
8
8
|
import ImageUploader from '../../Components/ImageUploader';
|
|
9
|
-
|
|
9
|
+
import DropDown from '../../Components/Dropdown';
|
|
10
10
|
|
|
11
11
|
type CompetitionInfoFormProps = {
|
|
12
12
|
competition:CompetitionProps,
|
|
@@ -98,7 +98,36 @@ const CompetitionInfoForm = ({ is_valid, player, competition, width, onCompetiti
|
|
|
98
98
|
placeholderTextColor={Colors.brand.slate}
|
|
99
99
|
/>
|
|
100
100
|
</View>
|
|
101
|
-
|
|
101
|
+
{player?.role == 'admin' ?
|
|
102
|
+
<View nativeID="competition_description" style={{ ...view_styles.body_row, flexWrap:'wrap', maxWidth:width, marginTop:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
103
|
+
<View style={{ flex:1, margin:5, minWidth:200 }}>
|
|
104
|
+
<Text theme='header_2'>Linked Event</Text>
|
|
105
|
+
<Text style={{ marginTop:3 }} theme='body'>Is this competitions a same game pick-em or wager? If so, add the event here.</Text>
|
|
106
|
+
</View>
|
|
107
|
+
<TextInput
|
|
108
|
+
style={{ ...view_styles.input, flexGrow:1, margin:5 }}
|
|
109
|
+
onChangeText={(text) => setDraftCompetition({ ...draft_competition, linked_event_id:text })}
|
|
110
|
+
value={draft_competition.linked_event_id}
|
|
111
|
+
placeholder="Enter the event id"
|
|
112
|
+
placeholderTextColor={Colors.brand.slate}
|
|
113
|
+
/>
|
|
114
|
+
</View>
|
|
115
|
+
:<></>}
|
|
116
|
+
{draft_competition.linked_event_id ?
|
|
117
|
+
<View nativeID="competition_description" style={{ ...view_styles.body_row, flexWrap:'wrap', maxWidth:width, marginTop:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
118
|
+
<View style={{ flex:1, margin:5, minWidth:200 }}>
|
|
119
|
+
<Text theme='header_2'>Linked Event</Text>
|
|
120
|
+
<Text style={{ marginTop:3 }} theme='body'>Is this competitions a same game pick-em or wager? If so, add the event here.</Text>
|
|
121
|
+
</View>
|
|
122
|
+
<DropDown
|
|
123
|
+
dropdown_options={[
|
|
124
|
+
{ value: 'linked_event_type', eligible_options: ['team','tournament','match'] }
|
|
125
|
+
]}
|
|
126
|
+
selected_value={draft_competition.linked_event_type ?? ''}
|
|
127
|
+
onOptionSelect={(value) => onCompetitionUpdate({ ...draft_competition, linked_event_type:value })}
|
|
128
|
+
/>
|
|
129
|
+
</View>
|
|
130
|
+
:<></>}
|
|
102
131
|
<View nativeID="invite_only" style={{ ...view_styles.body_row, flexWrap:'wrap', marginTop:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
103
132
|
<View style={{ flex:1, margin:5, marginRight:15 }}>
|
|
104
133
|
<Text theme='header_2'>Make Private</Text>
|
|
@@ -118,7 +147,6 @@ const CompetitionInfoForm = ({ is_valid, player, competition, width, onCompetiti
|
|
|
118
147
|
<Text style={{ marginTop:3 }} theme='body'>This will allow for other users to copy this competition and create it for themselves.</Text>
|
|
119
148
|
</View>
|
|
120
149
|
<Switch
|
|
121
|
-
|
|
122
150
|
value={competition.template ? true : false}
|
|
123
151
|
switch_type="on_off"
|
|
124
152
|
onChange={(value) => onCompetitionUpdate({ ...draft_competition, template: value })}
|
|
@@ -178,6 +178,22 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
|
|
|
178
178
|
placeholderTextColor={Colors.brand.slate}
|
|
179
179
|
/>
|
|
180
180
|
</View>
|
|
181
|
+
{player?.role == 'admin' ?
|
|
182
|
+
<View nativeID="buy_in" style={{ ...view_styles.body_row, flexWrap:'wrap', maxWidth:width}}>
|
|
183
|
+
<View style={{ flex:1, margin:5, minWidth:200 }}>
|
|
184
|
+
<Text theme="header_2">Guaranteed Payout</Text>
|
|
185
|
+
<Text style={{ marginTop:3 }} theme="body">ADMIN ONLY - How much is guaranteed to be paid out?</Text>
|
|
186
|
+
</View>
|
|
187
|
+
<TextInput
|
|
188
|
+
style={{ ...view_styles.input, textAlign:'center', margin:5, width:100, backgroundColor:Colors.shades.white }}
|
|
189
|
+
onChangeText={(text) => setDraftCompetition({ ...draft_competition, guaranteed_payout: text })}
|
|
190
|
+
placeholder="0"
|
|
191
|
+
editable={competition.competition_season_id ? false : true}
|
|
192
|
+
value={draft_competition.guaranteed_payout as string}
|
|
193
|
+
placeholderTextColor={Colors.brand.slate}
|
|
194
|
+
/>
|
|
195
|
+
</View>
|
|
196
|
+
:<></>}
|
|
181
197
|
|
|
182
198
|
<View nativeID="Max Tickets" style={{ flexDirection:'row', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
|
|
183
199
|
<View style={{ flex:1, marginRight:5 }}>
|
|
@@ -19,7 +19,7 @@ const CompetitionCard = ({ competition, competition_type, company, admin, onComp
|
|
|
19
19
|
const cl = competition.market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
20
20
|
let current_payout = competition.ticket_revenue
|
|
21
21
|
if(competition.promo_payout){ current_payout += competition.promo_payout }
|
|
22
|
-
if(competition.guaranteed_payout && competition.guaranteed_payout > current_payout){ current_payout = competition.guaranteed_payout }
|
|
22
|
+
if(competition.guaranteed_payout && parseFloat(competition.guaranteed_payout as string) > current_payout){ current_payout = parseFloat(competition.guaranteed_payout as string) }
|
|
23
23
|
|
|
24
24
|
const tickets_available = parseFloat(competition.available_tickets as string) - competition.tickets_sold
|
|
25
25
|
const is_live = moment().isAfter(moment(competition.scheduled_datetime)) ? true : false
|
|
@@ -17,9 +17,44 @@ const TeamEventMarketHelpers = {
|
|
|
17
17
|
if(['scheduled','created'].includes(event.status)){ return moment(event.scheduled_datetime).format('MM/DD @ hh:mm a') }
|
|
18
18
|
return event.time_detail
|
|
19
19
|
},
|
|
20
|
-
sortNonPrimaryMarkets: (markets:MarketProps[], event_order_stats:EventOrderStatProps[]) => {
|
|
20
|
+
sortNonPrimaryMarkets: (markets:MarketProps[], event_order_stats:EventOrderStatProps[], latest_trades:TradeProps[]) => {
|
|
21
|
+
let available = false
|
|
21
22
|
let sorted_stats = event_order_stats.filter(s => s.market_type == 'FOR_MONEY' && markets.map(m => m.market_id.toString()).includes(s.market_id.toString()));
|
|
22
|
-
|
|
23
|
+
//Now need to combine event level markets
|
|
24
|
+
let event_level_markets:EventOrderStatProps[] = []
|
|
25
|
+
let non_event_level_markets:EventOrderStatProps[] = []
|
|
26
|
+
sorted_stats.map(ss => {
|
|
27
|
+
let market = markets.find(m => m.market_id == ss.market_id);
|
|
28
|
+
if(!market){ return }
|
|
29
|
+
if(!available){
|
|
30
|
+
let trade = latest_trades.find(t => t.market_id == ss.market_id)
|
|
31
|
+
if(trade){ available = true }
|
|
32
|
+
}
|
|
33
|
+
if(market.level == 'event'){ return event_level_markets.push(ss) }
|
|
34
|
+
return non_event_level_markets.push(ss)
|
|
35
|
+
})
|
|
36
|
+
let unique_ev_markets = [ ...new Set(event_level_markets.map(m => m.market_id)) ]
|
|
37
|
+
let combined_ev_marktes:EventOrderStatProps[] = []
|
|
38
|
+
unique_ev_markets.map(ss => {
|
|
39
|
+
let find_one = event_level_markets.find(m => m.market_id == ss)
|
|
40
|
+
if(!find_one){ return }
|
|
41
|
+
let markets_need_combined = event_level_markets.filter(m => m.market_id == ss)
|
|
42
|
+
let ss_market:EventOrderStatProps = {
|
|
43
|
+
market_id: ss,
|
|
44
|
+
open_order_count: markets_need_combined.reduce((a,b) => a + parseInt(b.open_order_count as string), 0),
|
|
45
|
+
open_order_amount: markets_need_combined.reduce((a,b) => a + b.open_order_amount, 0),
|
|
46
|
+
event_id: find_one.event_id,
|
|
47
|
+
event_type: find_one.event_type,
|
|
48
|
+
side_id: find_one.side_id,
|
|
49
|
+
side_type: find_one.side_type,
|
|
50
|
+
market_type: find_one.market_type
|
|
51
|
+
}
|
|
52
|
+
combined_ev_marktes.push(ss_market)
|
|
53
|
+
})
|
|
54
|
+
sorted_stats = non_event_level_markets.concat(combined_ev_marktes)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
return { non_primary_markets: sorted_stats.sort((a,b) => parseInt(b.open_order_count as string) - parseInt(a.open_order_count as string)), available }
|
|
23
58
|
},
|
|
24
59
|
sortAthleteMarkets: (market:MarketProps, event_order_stats:EventOrderStatProps[], latest_trades:TradeProps[], athletes:AthleteProps[]):AthleteProps[] => {
|
|
25
60
|
if(!market){ return [] }
|
|
@@ -17,6 +17,7 @@ type TeamEventMarketProps = {
|
|
|
17
17
|
markets:MarketProps[],
|
|
18
18
|
init_expanded?:boolean,
|
|
19
19
|
competition?:CompetitionProps,
|
|
20
|
+
show_id?:string,
|
|
20
21
|
squares_competition?:SquaresCompetitionProps,
|
|
21
22
|
latest_trades:TradeProps[],
|
|
22
23
|
best_available_orders:BestAvailableOrderProps[],
|
|
@@ -33,7 +34,7 @@ type TeamEventMarketProps = {
|
|
|
33
34
|
onActivate?:(event_id:string, event_type:string) => void
|
|
34
35
|
activate_loading?:boolean
|
|
35
36
|
}
|
|
36
|
-
const TeamEventMarket = ({ event, init_expanded, activate_loading, competition, squares_competition, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate }:TeamEventMarketProps) => {
|
|
37
|
+
const TeamEventMarket = ({ event, init_expanded, show_id, activate_loading, competition, squares_competition, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate }:TeamEventMarketProps) => {
|
|
37
38
|
const [ expanded_data, setExpandedData ] = useState<{
|
|
38
39
|
expanded:boolean,
|
|
39
40
|
loaded:boolean,
|
|
@@ -54,8 +55,11 @@ const TeamEventMarket = ({ event, init_expanded, activate_loading, competition,
|
|
|
54
55
|
},[])
|
|
55
56
|
|
|
56
57
|
const expandedEvent = async() => {
|
|
58
|
+
if(!event){ return }
|
|
57
59
|
if(onExpand){ onExpand(expanded ? false : true) }
|
|
58
60
|
if(expanded){ return setExpandedData({ ...expanded_data, expanded: false }) }
|
|
61
|
+
//Check if we have any non-primary markets sorted
|
|
62
|
+
|
|
59
63
|
if(loaded){ return setExpandedData({ ...expanded_data, expanded: true }) }
|
|
60
64
|
setExpandedData({ ...expanded_data, expanded:true, loading:true });
|
|
61
65
|
|
|
@@ -182,7 +186,7 @@ const TeamEventMarket = ({ event, init_expanded, activate_loading, competition,
|
|
|
182
186
|
|
|
183
187
|
const { liquidity, open_order_count } = MarketComponentHelpers.getLiqudity(event_order_stats);
|
|
184
188
|
|
|
185
|
-
const non_primary_markets = TeamEventMarketHelpers.sortNonPrimaryMarkets(TeamEventMarketHelpers.getNonPrimaryMarkets(event, markets), event_order_stats)
|
|
189
|
+
const { non_primary_markets, available } = TeamEventMarketHelpers.sortNonPrimaryMarkets(TeamEventMarketHelpers.getNonPrimaryMarkets(event, markets), event_order_stats, latest_trades)
|
|
186
190
|
|
|
187
191
|
return (
|
|
188
192
|
<View style={{ ...view_styles.section, borderWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
@@ -198,7 +202,10 @@ const TeamEventMarket = ({ event, init_expanded, activate_loading, competition,
|
|
|
198
202
|
onPress={() => onActivate(event.event_id, 'team')}
|
|
199
203
|
/>
|
|
200
204
|
:<></>}
|
|
201
|
-
<View style={{ flex:1 }}>
|
|
205
|
+
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
206
|
+
{!show_id ?
|
|
207
|
+
<Text size={12} color={Colors.brand.midnight} weight='semibold' selectable>{event.event_id} </Text>
|
|
208
|
+
:<></>}
|
|
202
209
|
{event.event_sub_title ?
|
|
203
210
|
<Text size={12} color={Colors.brand.midnight} weight='semibold'>{event.event_sub_title}</Text>
|
|
204
211
|
:<></>}
|
|
@@ -308,9 +315,18 @@ const TeamEventMarket = ({ event, init_expanded, activate_loading, competition,
|
|
|
308
315
|
<Text style={{ marginLeft:5 }} size={14} color={Colors.shades.white} weight='semibold'>Pick 6</Text>
|
|
309
316
|
</TouchableOpacity>
|
|
310
317
|
:<></>}
|
|
318
|
+
{non_primary_markets.length > 0 ?
|
|
311
319
|
<TouchableOpacity style={{ height:35, width:35, justifyContent:'center', borderRadius:100, alignItems:'center', backgroundColor:Colors.shades.white, ...view_styles.float }} onPress={() => expandedEvent()}>
|
|
312
320
|
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.brand.midnight} />
|
|
313
321
|
</TouchableOpacity>
|
|
322
|
+
:available ?
|
|
323
|
+
<Button
|
|
324
|
+
title='MORE'
|
|
325
|
+
title_color={Colors.shades.white}
|
|
326
|
+
backgroundColor={Colors.brand.electric}
|
|
327
|
+
onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
|
|
328
|
+
/>
|
|
329
|
+
:<></>}
|
|
314
330
|
</View>
|
|
315
331
|
:<></>}
|
|
316
332
|
{expanded ?
|
package/src/types.d.ts
CHANGED
|
@@ -1040,12 +1040,14 @@ export interface CompetitionProps {
|
|
|
1040
1040
|
competition_description:string,
|
|
1041
1041
|
template?:boolean,
|
|
1042
1042
|
buy_in:number | string,
|
|
1043
|
+
linked_event_id?:string,
|
|
1044
|
+
linked_event_type?:string,
|
|
1043
1045
|
league_name?:string,
|
|
1044
1046
|
template_competition_id?:string,
|
|
1045
1047
|
admin_id:string,
|
|
1046
1048
|
company_id?:string,
|
|
1047
1049
|
admin?:PublicPlayerProps,
|
|
1048
|
-
guaranteed_payout?:number,
|
|
1050
|
+
guaranteed_payout?:number | string,
|
|
1049
1051
|
winner_id?:string,
|
|
1050
1052
|
image?:{url:string},
|
|
1051
1053
|
winner?:PublicPlayerProps,
|