@agg-build/ui 4.26.0 → 4.27.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/dist/event-trading-state.utils-B3my25Re.mjs +789 -0
- package/dist/event-trading-state.utils-s4DEc4iA.js +921 -0
- package/dist/events.js +23 -17650
- package/dist/events.mjs +3 -50
- package/dist/index.js +811 -47144
- package/dist/index.mjs +584 -1204
- package/dist/list-D8v2SmY1.js +6989 -0
- package/dist/list-DD7roCVl.mjs +6838 -0
- package/dist/manage-betdex-account-modal-21ZVLsz0.js +2390 -0
- package/dist/manage-betdex-account-modal-D2vKHird.mjs +2294 -0
- package/dist/modals-BReGwJzz.mjs +2993 -0
- package/dist/modals-CSexQO1C.js +3077 -0
- package/dist/modals.js +24 -11810
- package/dist/modals.mjs +3 -49
- package/dist/pages-CMlCYngA.mjs +7846 -0
- package/dist/pages-xvAzj6c2.js +7955 -0
- package/dist/pages.js +25 -42383
- package/dist/pages.mjs +3 -57
- package/dist/primitives-CqxNeV7H.js +9930 -0
- package/dist/primitives-Dz5aF8ma.mjs +8928 -0
- package/dist/primitives.js +102 -11079
- package/dist/primitives.mjs +1 -204
- package/dist/trading-CDkNdjGx.mjs +7086 -0
- package/dist/trading-CXsZFd3l.js +7217 -0
- package/dist/trading.js +39 -18215
- package/dist/trading.mjs +3 -68
- package/dist/types/agg-provider.d.mts +1 -1
- package/dist/types/agg-provider.d.ts +1 -1
- package/dist/types/auth/connect-button-view/index.d.mts +4 -5
- package/dist/types/auth/connect-button-view/index.d.ts +4 -5
- package/dist/types/deposit/components/DepositQRCode.d.mts +2 -2
- package/dist/types/deposit/components/DepositQRCode.d.ts +2 -2
- package/dist/types/deposit/index.d.mts +4 -4
- package/dist/types/deposit/index.d.ts +4 -4
- package/dist/types/deposit/steps/card-deposit.d.mts +1 -1
- package/dist/types/deposit/steps/card-deposit.d.ts +1 -1
- package/dist/types/deposit/steps/card-payment-pending.d.mts +1 -1
- package/dist/types/deposit/steps/card-payment-pending.d.ts +1 -1
- package/dist/types/deposit/steps/card-provider.d.mts +1 -1
- package/dist/types/deposit/steps/card-provider.d.ts +1 -1
- package/dist/types/deposit/steps/card-purchase-success.d.mts +1 -1
- package/dist/types/deposit/steps/card-purchase-success.d.ts +1 -1
- package/dist/types/deposit/steps/card-widget.d.mts +1 -1
- package/dist/types/deposit/steps/card-widget.d.ts +1 -1
- package/dist/types/deposit/steps/crypto-transfer.d.mts +1 -1
- package/dist/types/deposit/steps/crypto-transfer.d.ts +1 -1
- package/dist/types/deposit/steps/deposit-method.d.mts +2 -1
- package/dist/types/deposit/steps/deposit-method.d.ts +2 -1
- package/dist/types/deposit/steps/venue-selection.d.mts +1 -1
- package/dist/types/deposit/steps/venue-selection.d.ts +1 -1
- package/dist/types/deposit/steps/wallet-form.d.mts +1 -1
- package/dist/types/deposit/steps/wallet-form.d.ts +1 -1
- package/dist/types/deposit/steps/wallet-processing.d.mts +1 -1
- package/dist/types/deposit/steps/wallet-processing.d.ts +1 -1
- package/dist/types/deposit/steps/wallet-success.d.mts +1 -1
- package/dist/types/deposit/steps/wallet-success.d.ts +1 -1
- package/dist/types/events/item/event-list-item.utils.d.mts +1 -1
- package/dist/types/events/item/event-list-item.utils.d.ts +1 -1
- package/dist/types/events/item/index.d.mts +8 -8
- package/dist/types/events/item/index.d.ts +8 -8
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +1 -1
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +1 -1
- package/dist/types/events/item-details/event-markets-chart.d.mts +1 -1
- package/dist/types/events/item-details/event-markets-chart.d.ts +1 -1
- package/dist/types/events/item-details/event-markets-chart.utils.d.mts +1 -1
- package/dist/types/events/item-details/event-markets-chart.utils.d.ts +1 -1
- package/dist/types/events/item-details/index.d.mts +4 -4
- package/dist/types/events/item-details/index.d.ts +4 -4
- package/dist/types/events/item-details/settlement-summary.d.mts +4 -4
- package/dist/types/events/item-details/settlement-summary.d.ts +4 -4
- package/dist/types/events/list/category-sidebar.d.mts +4 -4
- package/dist/types/events/list/category-sidebar.d.ts +4 -4
- package/dist/types/events/list/event-list-tabs.d.mts +4 -8
- package/dist/types/events/list/event-list-tabs.d.ts +4 -8
- package/dist/types/events/list/event-list-venue-strip.d.mts +4 -11
- package/dist/types/events/list/event-list-venue-strip.d.ts +4 -11
- package/dist/types/events/list/index.d.mts +4 -4
- package/dist/types/events/list/index.d.ts +4 -4
- package/dist/types/events/market-details/index.d.mts +8 -8
- package/dist/types/events/market-details/index.d.ts +8 -8
- package/dist/types/events/market-details/market-details-graph-panel.d.mts +4 -14
- package/dist/types/events/market-details/market-details-graph-panel.d.ts +4 -14
- package/dist/types/events/market-details/market-details-outcome-button.d.mts +4 -4
- package/dist/types/events/market-details/market-details-outcome-button.d.ts +4 -4
- package/dist/types/events/market-details/orderbook-aggregation.d.mts +3 -1
- package/dist/types/events/market-details/orderbook-aggregation.d.ts +3 -1
- package/dist/types/events/market-details/use-visible-market-streams.d.mts +1 -1
- package/dist/types/events/market-details/use-visible-market-streams.d.ts +1 -1
- package/dist/types/events/orderbook/index.d.mts +4 -4
- package/dist/types/events/orderbook/index.d.ts +4 -4
- package/dist/types/events/orderbook/orderbook-with-states.d.mts +4 -4
- package/dist/types/events/orderbook/orderbook-with-states.d.ts +4 -4
- package/dist/types/events/shared/chart-source-caption.d.mts +1 -1
- package/dist/types/events/shared/chart-source-caption.d.ts +1 -1
- package/dist/types/events/shared/sports-live-score.d.mts +4 -4
- package/dist/types/events/shared/sports-live-score.d.ts +4 -4
- package/dist/types/events/shared/use-chart-orderbook.d.mts +3 -3
- package/dist/types/events/shared/use-chart-orderbook.d.ts +3 -3
- package/dist/types/geo-block-banner/index.d.mts +4 -4
- package/dist/types/geo-block-banner/index.d.ts +4 -4
- package/dist/types/geo-block-modal/index.d.mts +4 -4
- package/dist/types/geo-block-modal/index.d.ts +4 -4
- package/dist/types/kyc/shared-kyc-modal.d.mts +4 -4
- package/dist/types/kyc/shared-kyc-modal.d.ts +4 -4
- package/dist/types/notifications/agg-notification-events-provider.d.mts +1 -1
- package/dist/types/notifications/agg-notification-events-provider.d.ts +1 -1
- package/dist/types/notifications/agg-toast-provider.d.mts +1 -1
- package/dist/types/notifications/agg-toast-provider.d.ts +1 -1
- package/dist/types/onboarding/index.d.mts +4 -4
- package/dist/types/onboarding/index.d.ts +4 -4
- package/dist/types/onboarding/steps/connect-accounts.d.mts +4 -4
- package/dist/types/onboarding/steps/connect-accounts.d.ts +4 -4
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +4 -4
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +4 -4
- package/dist/types/onboarding/steps/connect-novig-modal.d.mts +1 -1
- package/dist/types/onboarding/steps/connect-novig-modal.d.ts +1 -1
- package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +4 -4
- package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +4 -4
- package/dist/types/onboarding/steps/connect-prophetx-modal.d.mts +1 -1
- package/dist/types/onboarding/steps/connect-prophetx-modal.d.ts +1 -1
- package/dist/types/onboarding/steps/how-it-works.d.mts +4 -4
- package/dist/types/onboarding/steps/how-it-works.d.ts +4 -4
- package/dist/types/onboarding/steps/profile-setup.d.mts +4 -4
- package/dist/types/onboarding/steps/profile-setup.d.ts +4 -4
- package/dist/types/pages/event-market/event-market.shared.d.mts +4 -4
- package/dist/types/pages/event-market/event-market.shared.d.ts +4 -4
- package/dist/types/pages/event-market/event-market.types.d.mts +2 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +2 -0
- package/dist/types/pages/event-market/event-open-orders.d.mts +8 -27
- package/dist/types/pages/event-market/event-open-orders.d.ts +8 -27
- package/dist/types/pages/event-market/index.d.mts +6 -6
- package/dist/types/pages/event-market/index.d.ts +6 -6
- package/dist/types/pages/event-market/sports-event-market-page.d.mts +6 -6
- package/dist/types/pages/event-market/sports-event-market-page.d.ts +6 -6
- package/dist/types/pages/event-market/sports-line-rail.d.mts +2 -1
- package/dist/types/pages/event-market/sports-line-rail.d.ts +2 -1
- package/dist/types/pages/event-market/sports-market-card.d.mts +4 -4
- package/dist/types/pages/event-market/sports-market-card.d.ts +4 -4
- package/dist/types/pages/event-market/sports-markets.d.mts +4 -4
- package/dist/types/pages/event-market/sports-markets.d.ts +4 -4
- package/dist/types/pages/home/index.d.mts +6 -6
- package/dist/types/pages/home/index.d.ts +6 -6
- package/dist/types/pages/leaderboard/components/leaderboard-header-row.d.mts +1 -1
- package/dist/types/pages/leaderboard/components/leaderboard-header-row.d.ts +1 -1
- package/dist/types/pages/leaderboard/components/leaderboard-row.d.mts +1 -1
- package/dist/types/pages/leaderboard/components/leaderboard-row.d.ts +1 -1
- package/dist/types/pages/leaderboard/components/leaderboard-skeleton.d.mts +1 -1
- package/dist/types/pages/leaderboard/components/leaderboard-skeleton.d.ts +1 -1
- package/dist/types/pages/leaderboard/components/segmented-control.d.mts +1 -1
- package/dist/types/pages/leaderboard/components/segmented-control.d.ts +1 -1
- package/dist/types/pages/leaderboard/index.d.mts +1 -1
- package/dist/types/pages/leaderboard/index.d.ts +1 -1
- package/dist/types/pages/user-profile/components/activity-row.d.mts +4 -4
- package/dist/types/pages/user-profile/components/activity-row.d.ts +4 -4
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +4 -4
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +4 -4
- package/dist/types/pages/user-profile/components/balance-display.d.mts +4 -4
- package/dist/types/pages/user-profile/components/balance-display.d.ts +4 -4
- package/dist/types/pages/user-profile/components/balances-card.d.mts +4 -4
- package/dist/types/pages/user-profile/components/balances-card.d.ts +4 -4
- package/dist/types/pages/user-profile/components/betdex-account-activity.d.mts +1 -1
- package/dist/types/pages/user-profile/components/betdex-account-activity.d.ts +1 -1
- package/dist/types/pages/user-profile/components/betdex-account-card.d.mts +1 -1
- package/dist/types/pages/user-profile/components/betdex-account-card.d.ts +1 -1
- package/dist/types/pages/user-profile/components/betdex-account-transfers.d.mts +1 -1
- package/dist/types/pages/user-profile/components/betdex-account-transfers.d.ts +1 -1
- package/dist/types/pages/user-profile/components/betdex-wallet-deposit.d.mts +1 -1
- package/dist/types/pages/user-profile/components/betdex-wallet-deposit.d.ts +1 -1
- package/dist/types/pages/user-profile/components/claim-activity-breakdown-modal.d.mts +1 -1
- package/dist/types/pages/user-profile/components/claim-activity-breakdown-modal.d.ts +1 -1
- package/dist/types/pages/user-profile/components/empty-state.d.mts +4 -4
- package/dist/types/pages/user-profile/components/empty-state.d.ts +4 -4
- package/dist/types/pages/user-profile/components/manage-balances-modal.d.mts +4 -4
- package/dist/types/pages/user-profile/components/manage-balances-modal.d.ts +4 -4
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +4 -4
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +4 -4
- package/dist/types/pages/user-profile/components/position-row.d.mts +4 -4
- package/dist/types/pages/user-profile/components/position-row.d.ts +4 -4
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +4 -4
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +4 -4
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +4 -4
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +4 -4
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +4 -4
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +4 -4
- package/dist/types/pages/user-profile/index.d.mts +6 -6
- package/dist/types/pages/user-profile/index.d.ts +6 -6
- package/dist/types/paper-trading/paper-onboarding-modal.d.mts +4 -14
- package/dist/types/paper-trading/paper-onboarding-modal.d.ts +4 -14
- package/dist/types/paper-trading/paper-trading-badge.d.mts +4 -16
- package/dist/types/paper-trading/paper-trading-badge.d.ts +4 -16
- package/dist/types/paper-trading/paper-trading-onboarding.d.mts +4 -12
- package/dist/types/paper-trading/paper-trading-onboarding.d.ts +4 -12
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.mts +1 -1
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.ts +1 -1
- package/dist/types/primitives/agg-logo/index.d.mts +4 -5
- package/dist/types/primitives/agg-logo/index.d.ts +4 -5
- package/dist/types/primitives/autocomplete-select/index.d.mts +4 -5
- package/dist/types/primitives/autocomplete-select/index.d.ts +4 -5
- package/dist/types/primitives/badge/index.d.mts +1 -1
- package/dist/types/primitives/badge/index.d.ts +1 -1
- package/dist/types/primitives/button/button.types.d.mts +2 -2
- package/dist/types/primitives/button/button.types.d.ts +2 -2
- package/dist/types/primitives/button/index.d.mts +4 -5
- package/dist/types/primitives/button/index.d.ts +4 -5
- package/dist/types/primitives/calendar/index.d.mts +4 -4
- package/dist/types/primitives/calendar/index.d.ts +4 -4
- package/dist/types/primitives/card/index.d.mts +4 -5
- package/dist/types/primitives/card/index.d.ts +4 -5
- package/dist/types/primitives/chart/chart-type-switch.d.mts +4 -5
- package/dist/types/primitives/chart/chart-type-switch.d.ts +4 -5
- package/dist/types/primitives/chart/index.d.mts +4 -5
- package/dist/types/primitives/chart/index.d.ts +4 -5
- package/dist/types/primitives/chart/probability-chart.d.mts +2 -2
- package/dist/types/primitives/chart/probability-chart.d.ts +2 -2
- package/dist/types/primitives/chart/probability-live-tail.d.mts +1 -1
- package/dist/types/primitives/chart/probability-live-tail.d.ts +1 -1
- package/dist/types/primitives/conditional-wrapper.d.mts +6 -7
- package/dist/types/primitives/conditional-wrapper.d.ts +6 -7
- package/dist/types/primitives/copy-button/index.d.mts +4 -5
- package/dist/types/primitives/copy-button/index.d.ts +4 -5
- package/dist/types/primitives/currency-input/index.d.mts +4 -5
- package/dist/types/primitives/currency-input/index.d.ts +4 -5
- package/dist/types/primitives/footer/agg-build-logo.d.mts +12 -15
- package/dist/types/primitives/footer/agg-build-logo.d.ts +12 -15
- package/dist/types/primitives/footer/index.d.mts +4 -6
- package/dist/types/primitives/footer/index.d.ts +4 -6
- package/dist/types/primitives/header/index.d.mts +4 -6
- package/dist/types/primitives/header/index.d.ts +4 -6
- package/dist/types/primitives/icon/index.d.mts +4 -5
- package/dist/types/primitives/icon/index.d.ts +4 -5
- package/dist/types/primitives/icon/registry.d.mts +180 -351
- package/dist/types/primitives/icon/registry.d.ts +180 -351
- package/dist/types/primitives/icon/svg/activity-chart.d.mts +4 -4
- package/dist/types/primitives/icon/svg/activity-chart.d.ts +4 -4
- package/dist/types/primitives/icon/svg/activity.d.mts +4 -4
- package/dist/types/primitives/icon/svg/activity.d.ts +4 -4
- package/dist/types/primitives/icon/svg/apple.d.mts +4 -4
- package/dist/types/primitives/icon/svg/apple.d.ts +4 -4
- package/dist/types/primitives/icon/svg/apps.d.mts +4 -4
- package/dist/types/primitives/icon/svg/apps.d.ts +4 -4
- package/dist/types/primitives/icon/svg/arbitrum.d.mts +4 -4
- package/dist/types/primitives/icon/svg/arbitrum.d.ts +4 -4
- package/dist/types/primitives/icon/svg/arrow-right.d.mts +4 -4
- package/dist/types/primitives/icon/svg/arrow-right.d.ts +4 -4
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +4 -4
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +4 -4
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +4 -4
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +4 -4
- package/dist/types/primitives/icon/svg/badge-check-thin.d.mts +4 -4
- package/dist/types/primitives/icon/svg/badge-check-thin.d.ts +4 -4
- package/dist/types/primitives/icon/svg/bank.d.mts +4 -4
- package/dist/types/primitives/icon/svg/bank.d.ts +4 -4
- package/dist/types/primitives/icon/svg/base.d.mts +4 -4
- package/dist/types/primitives/icon/svg/base.d.ts +4 -4
- package/dist/types/primitives/icon/svg/best-prices.d.mts +4 -4
- package/dist/types/primitives/icon/svg/best-prices.d.ts +4 -4
- package/dist/types/primitives/icon/svg/bnb.d.mts +4 -4
- package/dist/types/primitives/icon/svg/bnb.d.ts +4 -4
- package/dist/types/primitives/icon/svg/bolt.d.mts +4 -4
- package/dist/types/primitives/icon/svg/bolt.d.ts +4 -4
- package/dist/types/primitives/icon/svg/calendar.d.mts +1 -1
- package/dist/types/primitives/icon/svg/calendar.d.ts +1 -1
- package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +4 -4
- package/dist/types/primitives/icon/svg/chart-line.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chart-line.d.ts +4 -4
- package/dist/types/primitives/icon/svg/check-badge.d.mts +4 -4
- package/dist/types/primitives/icon/svg/check-badge.d.ts +4 -4
- package/dist/types/primitives/icon/svg/check-circle.d.mts +4 -4
- package/dist/types/primitives/icon/svg/check-circle.d.ts +4 -4
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.mts +4 -5
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.ts +4 -5
- package/dist/types/primitives/icon/svg/chevron-down.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chevron-down.d.ts +4 -4
- package/dist/types/primitives/icon/svg/chevron-left.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chevron-left.d.ts +4 -4
- package/dist/types/primitives/icon/svg/chevron-right.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chevron-right.d.ts +4 -4
- package/dist/types/primitives/icon/svg/chevron-up.d.mts +4 -4
- package/dist/types/primitives/icon/svg/chevron-up.d.ts +4 -4
- package/dist/types/primitives/icon/svg/circle-overlap.d.mts +4 -4
- package/dist/types/primitives/icon/svg/circle-overlap.d.ts +4 -4
- package/dist/types/primitives/icon/svg/circle-xmark.d.mts +4 -4
- package/dist/types/primitives/icon/svg/circle-xmark.d.ts +4 -4
- package/dist/types/primitives/icon/svg/close.d.mts +4 -4
- package/dist/types/primitives/icon/svg/close.d.ts +4 -4
- package/dist/types/primitives/icon/svg/copy.d.mts +4 -4
- package/dist/types/primitives/icon/svg/copy.d.ts +4 -4
- package/dist/types/primitives/icon/svg/create-account.d.mts +4 -4
- package/dist/types/primitives/icon/svg/create-account.d.ts +4 -4
- package/dist/types/primitives/icon/svg/credit-card.d.mts +4 -4
- package/dist/types/primitives/icon/svg/credit-card.d.ts +4 -4
- package/dist/types/primitives/icon/svg/cross-circle.d.mts +4 -4
- package/dist/types/primitives/icon/svg/cross-circle.d.ts +4 -4
- package/dist/types/primitives/icon/svg/disconnect.d.mts +4 -4
- package/dist/types/primitives/icon/svg/disconnect.d.ts +4 -4
- package/dist/types/primitives/icon/svg/discord.d.mts +4 -4
- package/dist/types/primitives/icon/svg/discord.d.ts +4 -4
- package/dist/types/primitives/icon/svg/document.d.mts +4 -4
- package/dist/types/primitives/icon/svg/document.d.ts +4 -4
- package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +4 -4
- package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +4 -4
- package/dist/types/primitives/icon/svg/download.d.mts +4 -4
- package/dist/types/primitives/icon/svg/download.d.ts +4 -4
- package/dist/types/primitives/icon/svg/email.d.mts +4 -4
- package/dist/types/primitives/icon/svg/email.d.ts +4 -4
- package/dist/types/primitives/icon/svg/error-filled.d.mts +4 -4
- package/dist/types/primitives/icon/svg/error-filled.d.ts +4 -4
- package/dist/types/primitives/icon/svg/ethereum.d.mts +4 -4
- package/dist/types/primitives/icon/svg/ethereum.d.ts +4 -4
- package/dist/types/primitives/icon/svg/external-link.d.mts +4 -4
- package/dist/types/primitives/icon/svg/external-link.d.ts +4 -4
- package/dist/types/primitives/icon/svg/gift-bonus.d.mts +4 -4
- package/dist/types/primitives/icon/svg/gift-bonus.d.ts +4 -4
- package/dist/types/primitives/icon/svg/google.d.mts +4 -4
- package/dist/types/primitives/icon/svg/google.d.ts +4 -4
- package/dist/types/primitives/icon/svg/hourglass-start.d.mts +4 -4
- package/dist/types/primitives/icon/svg/hourglass-start.d.ts +4 -4
- package/dist/types/primitives/icon/svg/image.d.mts +4 -4
- package/dist/types/primitives/icon/svg/image.d.ts +4 -4
- package/dist/types/primitives/icon/svg/info.d.mts +4 -4
- package/dist/types/primitives/icon/svg/info.d.ts +4 -4
- package/dist/types/primitives/icon/svg/internet-security.d.mts +4 -4
- package/dist/types/primitives/icon/svg/internet-security.d.ts +4 -4
- package/dist/types/primitives/icon/svg/link-accounts.d.mts +4 -4
- package/dist/types/primitives/icon/svg/link-accounts.d.ts +4 -4
- package/dist/types/primitives/icon/svg/lock.d.mts +4 -4
- package/dist/types/primitives/icon/svg/lock.d.ts +4 -4
- package/dist/types/primitives/icon/svg/minus.d.mts +1 -1
- package/dist/types/primitives/icon/svg/minus.d.ts +1 -1
- package/dist/types/primitives/icon/svg/paper-buying-power.d.mts +4 -10
- package/dist/types/primitives/icon/svg/paper-buying-power.d.ts +4 -10
- package/dist/types/primitives/icon/svg/paper-earnings.d.mts +4 -10
- package/dist/types/primitives/icon/svg/paper-earnings.d.ts +4 -10
- package/dist/types/primitives/icon/svg/paper-mode.d.mts +4 -4
- package/dist/types/primitives/icon/svg/paper-mode.d.ts +4 -4
- package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.mts +4 -11
- package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.ts +4 -11
- package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.mts +4 -11
- package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.ts +4 -11
- package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.mts +4 -11
- package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.ts +4 -11
- package/dist/types/primitives/icon/svg/paper-plane.d.mts +4 -4
- package/dist/types/primitives/icon/svg/paper-plane.d.ts +4 -4
- package/dist/types/primitives/icon/svg/pencil.d.mts +4 -4
- package/dist/types/primitives/icon/svg/pencil.d.ts +4 -4
- package/dist/types/primitives/icon/svg/play-square.d.mts +4 -4
- package/dist/types/primitives/icon/svg/play-square.d.ts +4 -4
- package/dist/types/primitives/icon/svg/plus.d.mts +1 -1
- package/dist/types/primitives/icon/svg/plus.d.ts +1 -1
- package/dist/types/primitives/icon/svg/polygon.d.mts +4 -4
- package/dist/types/primitives/icon/svg/polygon.d.ts +4 -4
- package/dist/types/primitives/icon/svg/profile-about-tab.d.mts +4 -5
- package/dist/types/primitives/icon/svg/profile-about-tab.d.ts +4 -5
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.mts +4 -5
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.ts +4 -5
- package/dist/types/primitives/icon/svg/profile.d.mts +4 -4
- package/dist/types/primitives/icon/svg/profile.d.ts +4 -4
- package/dist/types/primitives/icon/svg/quotes-warning.d.mts +4 -5
- package/dist/types/primitives/icon/svg/quotes-warning.d.ts +4 -5
- package/dist/types/primitives/icon/svg/recenter.d.mts +4 -4
- package/dist/types/primitives/icon/svg/recenter.d.ts +4 -4
- package/dist/types/primitives/icon/svg/revenue-alt.d.mts +4 -4
- package/dist/types/primitives/icon/svg/revenue-alt.d.ts +4 -4
- package/dist/types/primitives/icon/svg/search.d.mts +4 -4
- package/dist/types/primitives/icon/svg/search.d.ts +4 -4
- package/dist/types/primitives/icon/svg/shield-trust.d.mts +4 -4
- package/dist/types/primitives/icon/svg/shield-trust.d.ts +4 -4
- package/dist/types/primitives/icon/svg/solana.d.mts +4 -4
- package/dist/types/primitives/icon/svg/solana.d.ts +4 -4
- package/dist/types/primitives/icon/svg/sort-end-date.d.mts +4 -4
- package/dist/types/primitives/icon/svg/sort-end-date.d.ts +4 -4
- package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.mts +4 -4
- package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.ts +4 -4
- package/dist/types/primitives/icon/svg/sort-volume-24hr.d.mts +4 -4
- package/dist/types/primitives/icon/svg/sort-volume-24hr.d.ts +4 -4
- package/dist/types/primitives/icon/svg/sort-volume.d.mts +4 -4
- package/dist/types/primitives/icon/svg/sort-volume.d.ts +4 -4
- package/dist/types/primitives/icon/svg/sparkles-filled.d.mts +4 -4
- package/dist/types/primitives/icon/svg/sparkles-filled.d.ts +4 -4
- package/dist/types/primitives/icon/svg/spinner.d.mts +4 -4
- package/dist/types/primitives/icon/svg/spinner.d.ts +4 -4
- package/dist/types/primitives/icon/svg/stay-in-control.d.mts +4 -4
- package/dist/types/primitives/icon/svg/stay-in-control.d.ts +4 -4
- package/dist/types/primitives/icon/svg/success-check.d.mts +4 -4
- package/dist/types/primitives/icon/svg/success-check.d.ts +4 -4
- package/dist/types/primitives/icon/svg/telegram.d.mts +4 -4
- package/dist/types/primitives/icon/svg/telegram.d.ts +4 -4
- package/dist/types/primitives/icon/svg/triangle-down.d.mts +4 -4
- package/dist/types/primitives/icon/svg/triangle-down.d.ts +4 -4
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +4 -4
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +4 -4
- package/dist/types/primitives/icon/svg/triangle-up.d.mts +4 -4
- package/dist/types/primitives/icon/svg/triangle-up.d.ts +4 -4
- package/dist/types/primitives/icon/svg/twitter.d.mts +4 -4
- package/dist/types/primitives/icon/svg/twitter.d.ts +4 -4
- package/dist/types/primitives/icon/svg/upload.d.mts +4 -4
- package/dist/types/primitives/icon/svg/upload.d.ts +4 -4
- package/dist/types/primitives/icon/svg/usdc.d.mts +4 -4
- package/dist/types/primitives/icon/svg/usdc.d.ts +4 -4
- package/dist/types/primitives/icon/svg/user-trust.d.mts +4 -4
- package/dist/types/primitives/icon/svg/user-trust.d.ts +4 -4
- package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +1 -1
- package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +1 -1
- package/dist/types/primitives/icon/svg/wallet-filled.d.mts +4 -4
- package/dist/types/primitives/icon/svg/wallet-filled.d.ts +4 -4
- package/dist/types/primitives/icon/svg/wallet.d.mts +4 -4
- package/dist/types/primitives/icon/svg/wallet.d.ts +4 -4
- package/dist/types/primitives/icon/svg/warning-filled.d.mts +4 -4
- package/dist/types/primitives/icon/svg/warning-filled.d.ts +4 -4
- package/dist/types/primitives/icon/svg/warning.d.mts +4 -4
- package/dist/types/primitives/icon/svg/warning.d.ts +4 -4
- package/dist/types/primitives/inline-alert/index.d.mts +4 -5
- package/dist/types/primitives/inline-alert/index.d.ts +4 -5
- package/dist/types/primitives/loading-icon/index.d.mts +4 -5
- package/dist/types/primitives/loading-icon/index.d.ts +4 -5
- package/dist/types/primitives/modal/index.d.mts +12 -9
- package/dist/types/primitives/modal/index.d.ts +12 -9
- package/dist/types/primitives/number-value.d.mts +4 -4
- package/dist/types/primitives/number-value.d.ts +4 -4
- package/dist/types/primitives/remote-image/index.d.mts +4 -5
- package/dist/types/primitives/remote-image/index.d.ts +4 -5
- package/dist/types/primitives/search/index.d.mts +4 -5
- package/dist/types/primitives/search/index.d.ts +4 -5
- package/dist/types/primitives/search/search-empty-icon.d.mts +4 -4
- package/dist/types/primitives/search/search-empty-icon.d.ts +4 -4
- package/dist/types/primitives/select/index.d.mts +4 -5
- package/dist/types/primitives/select/index.d.ts +4 -5
- package/dist/types/primitives/skeleton/index.d.mts +4 -5
- package/dist/types/primitives/skeleton/index.d.ts +4 -5
- package/dist/types/primitives/skeleton/skeleton-block.d.mts +4 -4
- package/dist/types/primitives/skeleton/skeleton-block.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +4 -10
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +4 -10
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +5 -5
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +5 -5
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +8 -8
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +8 -8
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.mts +4 -4
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.ts +4 -4
- package/dist/types/primitives/state-message/index.d.mts +4 -5
- package/dist/types/primitives/state-message/index.d.ts +4 -5
- package/dist/types/primitives/switch-button/index.d.mts +4 -5
- package/dist/types/primitives/switch-button/index.d.ts +4 -5
- package/dist/types/primitives/tabs/index.d.mts +4 -5
- package/dist/types/primitives/tabs/index.d.ts +4 -5
- package/dist/types/primitives/toast/index.d.mts +1 -1
- package/dist/types/primitives/toast/index.d.ts +1 -1
- package/dist/types/primitives/tooltip/index.d.mts +4 -5
- package/dist/types/primitives/tooltip/index.d.ts +4 -5
- package/dist/types/primitives/typography/index.d.mts +4 -5
- package/dist/types/primitives/typography/index.d.ts +4 -5
- package/dist/types/primitives/typography/typography.types.d.mts +1 -1
- package/dist/types/primitives/typography/typography.types.d.ts +1 -1
- package/dist/types/primitives/venue-logo/index.d.mts +4 -5
- package/dist/types/primitives/venue-logo/index.d.ts +4 -5
- package/dist/types/primitives/venue-logo/svg/default-venue.d.mts +1 -1
- package/dist/types/primitives/venue-logo/svg/default-venue.d.ts +1 -1
- package/dist/types/primitives/venue-logo/svg/logo-betdex.d.mts +1 -1
- package/dist/types/primitives/venue-logo/svg/logo-betdex.d.ts +1 -1
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-novig.d.mts +4 -23
- package/dist/types/primitives/venue-logo/svg/logo-novig.d.ts +4 -23
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-pred.d.mts +4 -5
- package/dist/types/primitives/venue-logo/svg/logo-pred.d.ts +4 -5
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +4 -4
- package/dist/types/primitives/venue-logo/svg/logo-prophetx.d.mts +4 -26
- package/dist/types/primitives/venue-logo/svg/logo-prophetx.d.ts +4 -26
- package/dist/types/primitives/venue-logo/svg/logo-tiprun.d.mts +4 -5
- package/dist/types/primitives/venue-logo/svg/logo-tiprun.d.ts +4 -5
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +1 -1
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +1 -1
- package/dist/types/profile/index.d.mts +4 -4
- package/dist/types/profile/index.d.ts +4 -4
- package/dist/types/profile/tabs/about-tab.d.mts +4 -4
- package/dist/types/profile/tabs/about-tab.d.ts +4 -4
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +4 -4
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +4 -4
- package/dist/types/profile/tabs/trading-access-tab.d.mts +4 -4
- package/dist/types/profile/tabs/trading-access-tab.d.ts +4 -4
- package/dist/types/shared/default-avatar.d.mts +4 -4
- package/dist/types/shared/default-avatar.d.ts +4 -4
- package/dist/types/shared/open-orders.d.mts +1 -1
- package/dist/types/shared/open-orders.d.ts +1 -1
- package/dist/types/shared/react-inert.d.mts +1 -0
- package/dist/types/shared/react-inert.d.ts +1 -0
- package/dist/types/shared/transfer-fee-summary.d.mts +1 -1
- package/dist/types/shared/transfer-fee-summary.d.ts +1 -1
- package/dist/types/trading/fund-kalshi-modal.d.mts +4 -4
- package/dist/types/trading/fund-kalshi-modal.d.ts +4 -4
- package/dist/types/trading/manage-betdex-account-modal.d.mts +1 -1
- package/dist/types/trading/manage-betdex-account-modal.d.ts +1 -1
- package/dist/types/trading/place-order/index.d.mts +4 -4
- package/dist/types/trading/place-order/index.d.ts +4 -4
- package/dist/types/trading/place-order/index.place-order.execution-view.d.mts +6 -6
- package/dist/types/trading/place-order/index.place-order.execution-view.d.ts +6 -6
- package/dist/types/trading/place-order/index.place-order.failure.d.mts +4 -4
- package/dist/types/trading/place-order/index.place-order.failure.d.ts +4 -4
- package/dist/types/trading/place-order/index.place-order.success.d.mts +4 -4
- package/dist/types/trading/place-order/index.place-order.success.d.ts +4 -4
- package/dist/types/trading/settlement/index.d.mts +4 -4
- package/dist/types/trading/settlement/index.d.ts +4 -4
- package/dist/types/trading/settlement/settlement-details.d.mts +4 -4
- package/dist/types/trading/settlement/settlement-details.d.ts +4 -4
- package/dist/types/trading/settlement/settlement-text-renderer.d.mts +4 -4
- package/dist/types/trading/settlement/settlement-text-renderer.d.ts +4 -4
- package/dist/types/withdraw/index.d.mts +4 -4
- package/dist/types/withdraw/index.d.ts +4 -4
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +1 -1
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +1 -1
- package/dist/types/withdraw/steps/withdraw-method.d.mts +1 -1
- package/dist/types/withdraw/steps/withdraw-method.d.ts +1 -1
- package/dist/types/withdraw/steps/withdraw-provider.d.mts +1 -1
- package/dist/types/withdraw/steps/withdraw-provider.d.ts +1 -1
- package/dist/types/withdraw/steps/withdraw-success.d.mts +2 -2
- package/dist/types/withdraw/steps/withdraw-success.d.ts +2 -2
- package/package.json +9 -8
- package/dist/chunk-4X7OLBO6.mjs +0 -3551
- package/dist/chunk-7ORC3TUJ.mjs +0 -2883
- package/dist/chunk-JH4B3ZHQ.mjs +0 -1
- package/dist/chunk-KN7JN7F5.mjs +0 -8303
- package/dist/chunk-MDCFCGA3.mjs +0 -2377
- package/dist/chunk-PHT5VLGB.mjs +0 -5789
- package/dist/chunk-W2LCFCW3.mjs +0 -2879
- package/dist/chunk-WOCZ4TVT.mjs +0 -1645
- package/dist/chunk-XZVGHKMW.mjs +0 -11426
- package/dist/chunk-YYGS6S7N.mjs +0 -5180
- package/dist/event-market-Q2LBJJ5E.mjs +0 -21
package/dist/index.mjs
CHANGED
|
@@ -1,1212 +1,592 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
PaperTradingBadge,
|
|
32
|
-
PaperTradingOnboarding,
|
|
33
|
-
ProfileModal,
|
|
34
|
-
clearPendingCardSession,
|
|
35
|
-
getPendingCardSession
|
|
36
|
-
} from "./chunk-W2LCFCW3.mjs";
|
|
37
|
-
import {
|
|
38
|
-
EventMarketPage,
|
|
39
|
-
EventOpenOrders,
|
|
40
|
-
EventOpenOrdersCard,
|
|
41
|
-
formatRecurringCountdown,
|
|
42
|
-
useEventOpenOrders
|
|
43
|
-
} from "./chunk-4X7OLBO6.mjs";
|
|
44
|
-
import {
|
|
45
|
-
EventListItemDetails,
|
|
46
|
-
MarketDetails,
|
|
47
|
-
MarketDetailsList,
|
|
48
|
-
Orderbook,
|
|
49
|
-
OrderbookWithStates,
|
|
50
|
-
SettlementSummary,
|
|
51
|
-
SportsLiveScore,
|
|
52
|
-
collectEligibleVenueOutcomeIds,
|
|
53
|
-
collectEligibleVenueOutcomes,
|
|
54
|
-
mergeVenueOutcomeOrderbooks,
|
|
55
|
-
orderbookRowLimitDefault,
|
|
56
|
-
resolveEventDetailsSyncKey,
|
|
57
|
-
useCenterOrderbookSpread
|
|
58
|
-
} from "./chunk-YYGS6S7N.mjs";
|
|
59
|
-
import {
|
|
60
|
-
AggNotificationEventsProvider,
|
|
61
|
-
DEPOSIT_MODAL_OPEN_EVENT,
|
|
62
|
-
FundKalshiModal,
|
|
63
|
-
PlaceOrder,
|
|
64
|
-
PlaceOrderExecutionGroups,
|
|
65
|
-
PlaceOrderExecutionHeader,
|
|
66
|
-
PlaceOrderExecutionView,
|
|
67
|
-
PlaceOrderFailureView,
|
|
68
|
-
PlaceOrderSuccessView,
|
|
69
|
-
SettlementDetails,
|
|
70
|
-
WITHDRAW_MODAL_OPEN_EVENT,
|
|
71
|
-
createAggClientSharedKycInitiator,
|
|
72
|
-
parseAmount,
|
|
73
|
-
parseVenue,
|
|
74
|
-
requestAggDepositModalOpen,
|
|
75
|
-
requestAggWithdrawModalOpen,
|
|
76
|
-
useClaimWinnings,
|
|
77
|
-
useResolvedMarketClaim,
|
|
78
|
-
useSharedKycFlow,
|
|
79
|
-
venueRequiresSharedKyc
|
|
80
|
-
} from "./chunk-KN7JN7F5.mjs";
|
|
81
|
-
import {
|
|
82
|
-
SETTLEMENT_SECTION_ID,
|
|
83
|
-
Settlement,
|
|
84
|
-
defaultSettlementSectionLabel,
|
|
85
|
-
defaultTradingDisclaimer,
|
|
86
|
-
formatProbabilityCents,
|
|
87
|
-
getSettlementDifferenceId,
|
|
88
|
-
getTradingAveragePriceLabel,
|
|
89
|
-
getTradingBalanceLabel,
|
|
90
|
-
getTradingDateLabel,
|
|
91
|
-
getTradingPriceLabel,
|
|
92
|
-
getTradingSharesLabel,
|
|
93
|
-
getTradingSlippageLabel,
|
|
94
|
-
getTradingValueLabel,
|
|
95
|
-
getTradingVenueLabel,
|
|
96
|
-
prepareSettlementDifferences,
|
|
97
|
-
resolveDifferenceIconClassName,
|
|
98
|
-
resolveOrderBookRows,
|
|
99
|
-
resolveUnifiedOrderBookEntries,
|
|
100
|
-
useEventTradingContext
|
|
101
|
-
} from "./chunk-WOCZ4TVT.mjs";
|
|
102
|
-
import {
|
|
103
|
-
ConnectAccountsStep,
|
|
104
|
-
ConnectKalshiModal,
|
|
105
|
-
ConnectNovigModal,
|
|
106
|
-
ConnectOnchainModal,
|
|
107
|
-
ConnectProphetxModal,
|
|
108
|
-
GeoBlockBanner,
|
|
109
|
-
HowItWorksStep,
|
|
110
|
-
OnboardingModal,
|
|
111
|
-
ProfileSetupStep,
|
|
112
|
-
SharedKycModal,
|
|
113
|
-
WithdrawModal,
|
|
114
|
-
buildTerminalSummary
|
|
115
|
-
} from "./chunk-7ORC3TUJ.mjs";
|
|
116
|
-
import {
|
|
117
|
-
AGG_DEFAULT_URL,
|
|
118
|
-
AGG_DOCS_URL,
|
|
119
|
-
AGG_PRIVACY_POLICY_URL,
|
|
120
|
-
AGG_ROOT_CLASS_NAME,
|
|
121
|
-
AGG_TERMS_OF_SERVICE_URL,
|
|
122
|
-
ActivityChartIcon,
|
|
123
|
-
AggErrorBoundary,
|
|
124
|
-
AggLogo,
|
|
125
|
-
AppleIcon,
|
|
126
|
-
AppsIcon,
|
|
127
|
-
ArbitrumIcon,
|
|
128
|
-
ArrowRightIcon,
|
|
129
|
-
ArrowTrendUpIcon,
|
|
130
|
-
ArrowsToDotIcon,
|
|
131
|
-
AutocompleteSelect,
|
|
132
|
-
Badge,
|
|
133
|
-
BadgeCheckThinIcon,
|
|
134
|
-
BankIcon,
|
|
135
|
-
BaseIcon,
|
|
136
|
-
BestPricesIcon,
|
|
137
|
-
BnbIcon,
|
|
138
|
-
BoltIcon,
|
|
139
|
-
Button,
|
|
140
|
-
Calendar,
|
|
141
|
-
Card,
|
|
142
|
-
ChartCandlestickIcon,
|
|
143
|
-
ChartLineIcon,
|
|
144
|
-
CheckCircleIcon,
|
|
145
|
-
ChevronDownIcon,
|
|
146
|
-
ChevronLeftIcon,
|
|
147
|
-
ChevronRightIcon,
|
|
148
|
-
ChevronUpIcon,
|
|
149
|
-
CircleOverlapIcon,
|
|
150
|
-
CircleXmarkIcon,
|
|
151
|
-
CloseIcon,
|
|
152
|
-
CopyButton,
|
|
153
|
-
CopyIcon,
|
|
154
|
-
CreateAccountIcon,
|
|
155
|
-
CreditCardIcon,
|
|
156
|
-
CurrencyInput,
|
|
157
|
-
DisconnectIcon,
|
|
158
|
-
DocumentIcon,
|
|
159
|
-
DotsHorizontalIcon,
|
|
160
|
-
DownloadIcon,
|
|
161
|
-
ErrorFilledIcon,
|
|
162
|
-
EthereumIcon,
|
|
163
|
-
ExternalLinkIcon,
|
|
164
|
-
Footer,
|
|
165
|
-
GiftBonusIcon,
|
|
166
|
-
GoogleIcon,
|
|
167
|
-
Header,
|
|
168
|
-
HourglassStartIcon,
|
|
169
|
-
Icon,
|
|
170
|
-
ImageIcon,
|
|
171
|
-
InfoIcon,
|
|
172
|
-
InlineAlert,
|
|
173
|
-
LineChart,
|
|
174
|
-
LinkAccountsIcon,
|
|
175
|
-
LoadingIcon,
|
|
176
|
-
LockIcon,
|
|
177
|
-
Modal,
|
|
178
|
-
NumberValue,
|
|
179
|
-
PaperModeIcon,
|
|
180
|
-
PaperPlaneIcon,
|
|
181
|
-
PencilIcon,
|
|
182
|
-
PlaceOrderRouteCardSkeleton,
|
|
183
|
-
PlaySquareIcon,
|
|
184
|
-
PolygonIcon,
|
|
185
|
-
ProfileIcon,
|
|
186
|
-
RemoteImage,
|
|
187
|
-
RevenueAltIcon,
|
|
188
|
-
Search,
|
|
189
|
-
SearchIcon,
|
|
190
|
-
Select,
|
|
191
|
-
ShieldTrustIcon,
|
|
192
|
-
Skeleton,
|
|
193
|
-
SolanaIcon,
|
|
194
|
-
SparklesFilledIcon,
|
|
195
|
-
StateMessage,
|
|
196
|
-
StayInControlIcon,
|
|
197
|
-
SuccessCheckIcon,
|
|
198
|
-
SwitchButton,
|
|
199
|
-
Tabs,
|
|
200
|
-
ToastProvider,
|
|
201
|
-
Tooltip,
|
|
202
|
-
TriangleDownIcon,
|
|
203
|
-
TriangleUpFilledIcon,
|
|
204
|
-
TriangleUpIcon,
|
|
205
|
-
Typography,
|
|
206
|
-
UploadIcon,
|
|
207
|
-
UsdcIcon,
|
|
208
|
-
UserTrustIcon,
|
|
209
|
-
VenueLogo,
|
|
210
|
-
WalletAvatarIcon,
|
|
211
|
-
WalletFilledIcon,
|
|
212
|
-
WalletIcon,
|
|
213
|
-
WarningFilledIcon,
|
|
214
|
-
WarningIcon,
|
|
215
|
-
__objRest,
|
|
216
|
-
__spreadProps,
|
|
217
|
-
__spreadValues,
|
|
218
|
-
badgeSizes,
|
|
219
|
-
cn,
|
|
220
|
-
formatAmountDisplay,
|
|
221
|
-
formatCompactUsd,
|
|
222
|
-
formatTokenAmount,
|
|
223
|
-
formatUsd,
|
|
224
|
-
getMotionClassName,
|
|
225
|
-
getScrollBehavior,
|
|
226
|
-
iconNames,
|
|
227
|
-
isTruthy,
|
|
228
|
-
isValidDateValue,
|
|
229
|
-
resolveResolvedOutcomeLabel,
|
|
230
|
-
shortenAddress,
|
|
231
|
-
skeletonViews,
|
|
232
|
-
toDate,
|
|
233
|
-
typographyVariants,
|
|
234
|
-
useOptionalToast,
|
|
235
|
-
useToast,
|
|
236
|
-
venueLogoNames
|
|
237
|
-
} from "./chunk-XZVGHKMW.mjs";
|
|
238
|
-
|
|
239
|
-
// src/notifications/agg-toast-provider.tsx
|
|
240
|
-
import { jsx } from "react/jsx-runtime";
|
|
241
|
-
function AggToastProvider(_a) {
|
|
242
|
-
var _b = _a, {
|
|
243
|
-
children,
|
|
244
|
-
disableAggNotifications = false,
|
|
245
|
-
notificationDepositActivityLimit
|
|
246
|
-
} = _b, toastProps = __objRest(_b, [
|
|
247
|
-
"children",
|
|
248
|
-
"disableAggNotifications",
|
|
249
|
-
"notificationDepositActivityLimit"
|
|
250
|
-
]);
|
|
251
|
-
return /* @__PURE__ */ jsx(ToastProvider, __spreadProps(__spreadValues({}, toastProps), { children: disableAggNotifications ? children : /* @__PURE__ */ jsx(AggNotificationEventsProvider, { depositActivityLimit: notificationDepositActivityLimit, children }) }));
|
|
2
|
+
import { _ as HomePage, a as UserProfilePage, b as DefaultAvatar, c as USER_PROFILE_TAB_ACTIVITY, d as ManageBalancesModal, f as EventMarketPage, g as useEventOpenOrders, h as EventOpenOrdersCard, i as LEADERBOARD_METRICS, l as USER_PROFILE_TAB_OPEN_ORDERS, m as EventOpenOrders, n as LEADERBOARD_DEFAULT_METRIC, o as formatShareAmount, p as formatRecurringCountdown, r as LEADERBOARD_DEFAULT_PERIOD, s as buildAggTxExplorerHref, t as LeaderboardPage, u as USER_PROFILE_TAB_POSITIONS, v as useHomePageModals, y as ConditionalWrapper } from "./pages-CMlCYngA.mjs";
|
|
3
|
+
import { $t as GoogleIcon, An as ArbitrumIcon, At as UploadIcon, B as Skeleton, Bn as getMotionClassName, Bt as RevenueAltIcon, Cn as BestPricesIcon, Ct as WarningIcon, Dn as ArrowsToDotIcon, Dt as WalletIcon, En as BadgeCheckThinIcon, Et as WalletAvatarIcon, Fn as cn, Ft as StayInControlIcon, Gn as shortenAddress, Gt as PaperModeIcon, H as PlaceOrderRouteCardSkeleton, Hn as isTruthy, Ht as PolygonIcon, In as formatAmountDisplay, It as SparklesFilledIcon, Jn as AGG_DOCS_URL, Jt as ActivityChartIcon, Kn as toDate, Kt as LockIcon, Ln as formatCompactUsd, Lt as SolanaIcon, Mn as AppleIcon, Mt as TriangleUpIcon, Nn as AggLogo, Nt as TriangleDownIcon, On as ArrowTrendUpIcon, Ot as UsdcIcon, P as VenueLogo, Pn as AggErrorBoundary, Pt as SuccessCheckIcon, Q as RemoteImage, Qt as HourglassStartIcon, Rn as formatTokenAmount, Rt as ShieldTrustIcon, Sn as BnbIcon, St as WarningFilledIcon, Tn as BankIcon, Tt as WalletFilledIcon, Un as isValidDateValue, Ut as PlaySquareIcon, V as skeletonViews, Vn as getScrollBehavior, Vt as ProfileIcon, Wn as resolveResolvedOutcomeLabel, Wt as PencilIcon, Xn as AGG_ROOT_CLASS_NAME, Xt as InfoIcon, Yn as AGG_PRIVACY_POLICY_URL, Zn as AGG_TERMS_OF_SERVICE_URL, Zt as ImageIcon, _n as CircleOverlapIcon, _t as Badge, a as Tabs, an as DocumentIcon, bn as CheckCircleIcon, bt as Icon, c as Typography, cn as CreditCardIcon, ct as Footer, d as NumberValue, dn as CloseIcon, dt as LineChart, en as EthereumIcon, f as Modal, fn as ChevronUpIcon, g as Search, gn as CircleXmarkIcon, gt as Button, h as Header, hn as ChevronDownIcon, ht as Calendar, i as useToast, in as DownloadIcon, jn as AppsIcon, jt as TriangleUpFilledIcon, kn as ArrowRightIcon, kt as UserTrustIcon, l as typographyVariants, ln as CreateAccountIcon, lt as CurrencyInput, m as InlineAlert, mn as ChevronLeftIcon, mt as Card, n as ToastProvider, nn as ExternalLinkIcon, on as DotsHorizontalIcon, p as LoadingIcon, pn as ChevronRightIcon, pt as SwitchButton, qn as AGG_DEFAULT_URL, qt as LinkAccountsIcon, r as useOptionalToast, rn as ErrorFilledIcon, s as StateMessage, sn as DisconnectIcon, t as Tooltip, tn as GiftBonusIcon, u as Select, un as CopyIcon, ut as CopyButton, vn as ChartLineIcon, vt as badgeSizes, wn as BaseIcon, wt as PaperPlaneIcon, xn as BoltIcon, xt as iconNames, yn as ChartCandlestickIcon, yt as AutocompleteSelect, z as venueLogoNames, zn as formatUsd, zt as SearchIcon } from "./primitives-Dz5aF8ma.mjs";
|
|
4
|
+
import { d as ConnectProphetxModal, f as ConnectKalshiModal, m as GeoBlockBanner, n as WithdrawModal, p as SharedKycModal, r as buildTerminalSummary, u as ConnectNovigModal } from "./manage-betdex-account-modal-D2vKHird.mjs";
|
|
5
|
+
import { _ as DEPOSIT_MODAL_OPEN_EVENT, a as PlaceOrderFailureView, b as requestAggWithdrawModalOpen, c as PlaceOrderExecutionView, d as useSharedKycFlow, f as createAggClientSharedKycInitiator, g as parseVenue, h as parseAmount, i as PlaceOrderSuccessView, m as SettlementDetails, n as useClaimWinnings, o as PlaceOrderExecutionGroups, p as venueRequiresSharedKyc, r as PlaceOrder, s as PlaceOrderExecutionHeader, t as useResolvedMarketClaim, u as FundKalshiModal, v as WITHDRAW_MODAL_OPEN_EVENT, x as AggNotificationEventsProvider, y as requestAggDepositModalOpen } from "./trading-CDkNdjGx.mjs";
|
|
6
|
+
import { a as DepositModal, c as CARD_NETWORK_OPTIONS, d as ConnectAccountsStep, f as ProfileSetupStep, i as PaperOnboardingModal, l as OnboardingModal, m as PaperTradingBadge, n as ProfileModal, o as clearPendingCardSession, p as HowItWorksStep, r as PaperTradingOnboarding, s as getPendingCardSession, t as GeoBlockModal, u as ConnectOnchainModal } from "./modals-BReGwJzz.mjs";
|
|
7
|
+
import { C as EventListItem, _ as SportsLiveScore, b as mergeVenueOutcomeOrderbooks, c as MarketDetails, d as OrderbookWithStates, f as useCenterOrderbookSpread, g as SettlementSummary, h as resolveEventDetailsSyncKey, l as MarketDetailsList, m as EventListItemDetails, n as EventListVenueStrip, p as orderbookRowLimitDefault, t as EventList, u as Orderbook, v as collectEligibleVenueOutcomeIds, w as EventListItemV2, y as collectEligibleVenueOutcomes } from "./list-DD7roCVl.mjs";
|
|
8
|
+
import { C as useEventTradingContext, S as resolveUnifiedOrderBookEntries, _ as getTradingValueLabel, a as Settlement, b as formatProbabilityCents, c as resolveDifferenceIconClassName, d as getTradingAveragePriceLabel, f as getTradingBalanceLabel, g as getTradingSlippageLabel, h as getTradingSharesLabel, i as SETTLEMENT_SECTION_ID, l as defaultSettlementSectionLabel, m as getTradingPriceLabel, o as getSettlementDifferenceId, p as getTradingDateLabel, s as prepareSettlementDifferences, u as defaultTradingDisclaimer, v as getTradingVenueLabel, x as resolveOrderBookRows } from "./event-trading-state.utils-B3my25Re.mjs";
|
|
9
|
+
import "./events.mjs";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { AggProvider as AggProvider$1, optimizedImageUrl, useAggAuthContext, useLabels, useResolvedExecutionMode, useSdkUiConfig } from "@agg-build/hooks";
|
|
12
|
+
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
13
|
+
//#region src/notifications/agg-toast-provider.tsx
|
|
14
|
+
/**
|
|
15
|
+
* Drop-in replacement for `ToastProvider` that also mounts the global Agg
|
|
16
|
+
* notification bridge. Partners using `@agg-build/ui` should prefer this
|
|
17
|
+
* over the raw `ToastProvider` so order/deposit/withdrawal lifecycle events
|
|
18
|
+
* become toasts automatically with no extra wiring.
|
|
19
|
+
*
|
|
20
|
+
* The bridge gracefully no-ops when no `<AggProvider>` is mounted above it,
|
|
21
|
+
* so this provider remains safe to use even on routes that don't run the SDK.
|
|
22
|
+
*/
|
|
23
|
+
function AggToastProvider({ children, disableAggNotifications = false, notificationDepositActivityLimit, ...toastProps }) {
|
|
24
|
+
return /* @__PURE__ */ jsx(ToastProvider, {
|
|
25
|
+
...toastProps,
|
|
26
|
+
children: disableAggNotifications ? children : /* @__PURE__ */ jsx(AggNotificationEventsProvider, {
|
|
27
|
+
depositActivityLimit: notificationDepositActivityLimit,
|
|
28
|
+
children
|
|
29
|
+
})
|
|
30
|
+
});
|
|
252
31
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/agg-provider.tsx
|
|
34
|
+
/**
|
|
35
|
+
* Batteries-included AGG provider for partner React apps. Wraps the bare
|
|
36
|
+
* `AggProvider` from `@agg-build/hooks` with `AggToastProvider`, so partners
|
|
37
|
+
* get the toast surface **and** the global order/deposit/withdrawal
|
|
38
|
+
* notification bridge by mounting a single component.
|
|
39
|
+
*
|
|
40
|
+
* Partners who want a leaner setup (no toast surface) can import the original
|
|
41
|
+
* `AggProvider` from `@agg-build/hooks` directly.
|
|
42
|
+
*
|
|
43
|
+
* The notification bridge respects `config.features.enableNotifications`
|
|
44
|
+
* (default `true`) — set it to `false` to keep the toast surface mounted
|
|
45
|
+
* for ad-hoc partner-fired toasts while suppressing all SDK-driven ones.
|
|
46
|
+
*/
|
|
47
|
+
function AggProvider({ children, toast, ...providerProps }) {
|
|
48
|
+
return /* @__PURE__ */ jsx(AggProvider$1, {
|
|
49
|
+
...providerProps,
|
|
50
|
+
children: /* @__PURE__ */ jsx(AggToastProvider, {
|
|
51
|
+
...toast,
|
|
52
|
+
children
|
|
53
|
+
})
|
|
54
|
+
});
|
|
262
55
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
);
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
);
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
);
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
);
|
|
305
|
-
var authWalletButtonClassName = cn(
|
|
306
|
-
"cursor-pointer! hover:cursor-pointer hover:bg-agg-secondary-hover",
|
|
307
|
-
"flex h-12 items-center justify-center gap-2 rounded-agg-full border border-agg-separator bg-agg-secondary px-4 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground",
|
|
308
|
-
"hover:bg-agg-secondary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-0 focus-visible:ring-offset-agg-secondary",
|
|
309
|
-
"disabled:cursor-not-allowed disabled:text-agg-muted-foreground"
|
|
310
|
-
);
|
|
311
|
-
var authWalletIconGroupClassName = cn("flex items-center justify-center -space-x-2");
|
|
312
|
-
var authHelperTextClassName = cn(
|
|
313
|
-
"text-center text-agg-xs leading-agg-4 text-agg-muted-foreground"
|
|
314
|
-
);
|
|
315
|
-
var authHelperLinkClassName = cn("underline underline-offset-2 decoration-current");
|
|
316
|
-
var authDividerClassName = cn("flex w-full items-center gap-3");
|
|
317
|
-
var authDividerLineClassName = cn("h-px flex-1 bg-agg-separator");
|
|
318
|
-
var authDividerLabelClassName = cn(
|
|
319
|
-
"text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground"
|
|
320
|
-
);
|
|
321
|
-
var authLegalTextClassName = cn(
|
|
322
|
-
"text-center text-agg-xs leading-agg-4 text-agg-muted-foreground"
|
|
323
|
-
);
|
|
324
|
-
var connectedButtonsRowClassName = cn("inline-flex h-10 items-center gap-2 max-w-full");
|
|
325
|
-
var connectedBalanceChipClassName = cn(
|
|
326
|
-
"hidden md:inline-flex",
|
|
327
|
-
"h-10 items-center gap-4 rounded-agg-full border border-agg-separator bg-agg-secondary pl-[12px] pr-13 font-agg-sans"
|
|
328
|
-
);
|
|
329
|
-
var profileMenuContentClassName = cn(
|
|
330
|
-
"z-50 w-64 max-w-[calc(100vw-2rem)] overflow-hidden rounded-agg-xl font-agg-sans",
|
|
331
|
-
"border border-agg-separator bg-agg-secondary",
|
|
332
|
-
"shadow-agg-popover"
|
|
333
|
-
);
|
|
334
|
-
var profileMenuSectionClassName = cn("flex w-full flex-col gap-5 px-5 py-5");
|
|
335
|
-
var profileMenuSeparatorClassName = cn("h-px w-full bg-agg-separator");
|
|
336
|
-
var profileMenuActionItemClassName = cn(
|
|
337
|
-
"flex w-full items-center gap-3 px-5 py-4 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground",
|
|
338
|
-
"outline-none",
|
|
339
|
-
"hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover"
|
|
340
|
-
);
|
|
341
|
-
var avatarRootClassName = cn(
|
|
342
|
-
"inline-flex size-6 shrink-0 items-center justify-center rounded-agg-full bg-agg-separator"
|
|
343
|
-
);
|
|
344
|
-
var avatarIconClassName = cn("h-[66%] w-[66%] text-agg-muted-foreground");
|
|
345
|
-
|
|
346
|
-
// src/auth/connect-button-view/index.tsx
|
|
347
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
348
|
-
var WalletAvatar = ({ className }) => {
|
|
349
|
-
const { isAuthenticated, user } = useAggAuthContext();
|
|
350
|
-
if (isAuthenticated && (user == null ? void 0 : user.avatarUrl)) {
|
|
351
|
-
return /* @__PURE__ */ jsx3(
|
|
352
|
-
"img",
|
|
353
|
-
{
|
|
354
|
-
src: optimizedImageUrl(user.avatarUrl, 44),
|
|
355
|
-
alt: "Avatar",
|
|
356
|
-
className: cn(avatarRootClassName, className)
|
|
357
|
-
}
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
return /* @__PURE__ */ jsx3(DefaultAvatar, { className: cn("size-6 shrink-0 rounded-full", className) });
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/auth/connect-button-view/connect-button-view.constants.ts
|
|
58
|
+
const connectButtonContainerClassName = cn("inline-flex flex-col items-start gap-2 font-agg-sans max-w-full");
|
|
59
|
+
const authNoticeClassName = cn("text-agg-xs leading-agg-4 text-agg-muted-foreground");
|
|
60
|
+
cn("text-agg-sm leading-agg-5 text-red-500");
|
|
61
|
+
const authModalContainerClassName = cn("max-w-[400px] rounded-[24px]");
|
|
62
|
+
const authModalBodyClassName = cn("px-8 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-6");
|
|
63
|
+
const authSectionClassName = cn("flex w-full flex-col gap-5");
|
|
64
|
+
cn("text-center text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground");
|
|
65
|
+
const authMethodsListClassName = cn("flex w-full flex-col gap-6 pt-2");
|
|
66
|
+
const authInputFormClassName = cn("flex w-full flex-col gap-3");
|
|
67
|
+
const authInputFieldClassName = cn("h-10 w-full rounded-[4px] border border-agg-separator bg-agg-secondary px-4 text-agg-base leading-agg-6 text-agg-foreground outline-none", "placeholder:text-agg-muted-foreground focus-visible:border-agg-primary-hover focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-[-1px] focus-visible:ring-offset-agg-secondary", "disabled:cursor-not-allowed disabled:text-agg-muted-foreground");
|
|
68
|
+
const authPrimaryActionClassName = cn("h-10 w-full");
|
|
69
|
+
const authMethodGridClassName = cn("grid w-full gap-3 [grid-template-columns:repeat(auto-fit,minmax(60px,1fr))]", "[&>*]:w-full [&>*]:mx-auto");
|
|
70
|
+
const authWalletMethodGridClassName = cn("flex w-full flex-col gap-2");
|
|
71
|
+
const authSocialButtonClassName = cn("cursor-pointer! hover:cursor-pointer hover:bg-agg-secondary-hover", "flex h-[60px] items-center justify-center rounded-xl border border-agg-separator bg-agg-secondary text-agg-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-0 focus-visible:ring-offset-agg-secondary", "disabled:cursor-not-allowed disabled:text-agg-muted-foreground");
|
|
72
|
+
const authWalletButtonClassName = cn("cursor-pointer! hover:cursor-pointer hover:bg-agg-secondary-hover", "flex h-12 items-center justify-center gap-2 rounded-agg-full border border-agg-separator bg-agg-secondary px-4 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", "hover:bg-agg-secondary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-0 focus-visible:ring-offset-agg-secondary", "disabled:cursor-not-allowed disabled:text-agg-muted-foreground");
|
|
73
|
+
cn("flex items-center justify-center -space-x-2");
|
|
74
|
+
const authHelperTextClassName = cn("text-center text-agg-xs leading-agg-4 text-agg-muted-foreground");
|
|
75
|
+
const authHelperLinkClassName = cn("underline underline-offset-2 decoration-current");
|
|
76
|
+
const authDividerClassName = cn("flex w-full items-center gap-3");
|
|
77
|
+
const authDividerLineClassName = cn("h-px flex-1 bg-agg-separator");
|
|
78
|
+
const authDividerLabelClassName = cn("text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground");
|
|
79
|
+
const authLegalTextClassName = cn("text-center text-agg-xs leading-agg-4 text-agg-muted-foreground");
|
|
80
|
+
const connectedButtonsRowClassName = cn("inline-flex h-10 items-center gap-2 max-w-full");
|
|
81
|
+
const connectedBalanceChipClassName = cn("hidden md:inline-flex", "h-10 items-center gap-4 rounded-agg-full border border-agg-separator bg-agg-secondary pl-[12px] pr-13 font-agg-sans");
|
|
82
|
+
cn("z-50 w-64 max-w-[calc(100vw-2rem)] overflow-hidden rounded-agg-xl font-agg-sans", "border border-agg-separator bg-agg-secondary", "shadow-agg-popover");
|
|
83
|
+
const profileMenuSectionClassName = cn("flex w-full flex-col gap-5 px-5 py-5");
|
|
84
|
+
const profileMenuSeparatorClassName = cn("h-px w-full bg-agg-separator");
|
|
85
|
+
const profileMenuActionItemClassName = cn("flex w-full items-center gap-3 px-5 py-4 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground", "outline-none", "hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover");
|
|
86
|
+
const avatarRootClassName = cn("inline-flex size-6 shrink-0 items-center justify-center rounded-agg-full bg-agg-separator");
|
|
87
|
+
cn("h-[66%] w-[66%] text-agg-muted-foreground");
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/auth/connect-button-view/index.tsx
|
|
90
|
+
const WalletAvatar = ({ className }) => {
|
|
91
|
+
const { isAuthenticated, user } = useAggAuthContext();
|
|
92
|
+
if (isAuthenticated && user?.avatarUrl) return /* @__PURE__ */ jsx("img", {
|
|
93
|
+
src: optimizedImageUrl(user.avatarUrl, 44),
|
|
94
|
+
alt: "Avatar",
|
|
95
|
+
className: cn(avatarRootClassName, className)
|
|
96
|
+
});
|
|
97
|
+
return /* @__PURE__ */ jsx(DefaultAvatar, { className: cn("size-6 shrink-0 rounded-full", className) });
|
|
361
98
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"aria-busy": isMethodLoading || void 0,
|
|
381
|
-
"aria-label": labels.auth.signInWithMethod(method.label),
|
|
382
|
-
onClick: () => onSelect(method.id),
|
|
383
|
-
children: [
|
|
384
|
-
isMethodLoading ? /* @__PURE__ */ jsx3(LoadingIcon, { size: "small" }) : /* @__PURE__ */ jsx3(
|
|
385
|
-
Icon,
|
|
386
|
-
{
|
|
387
|
-
name: (_a = method.iconName) != null ? _a : "profile",
|
|
388
|
-
size: "medium",
|
|
389
|
-
className: cn("!rounded-agg-lg", renderLabel ? void 0 : "h-6 w-6 text-agg-foreground"),
|
|
390
|
-
title: renderLabel ? void 0 : method.label
|
|
391
|
-
}
|
|
392
|
-
),
|
|
393
|
-
renderLabel ? /* @__PURE__ */ jsx3("span", { children: labels.auth.connect(method.label) }) : null
|
|
394
|
-
]
|
|
395
|
-
}
|
|
396
|
-
);
|
|
99
|
+
const AuthMethodActionButton = ({ activeMethodId, className, disabled, method, onSelect, renderLabel = true }) => {
|
|
100
|
+
const labels = useLabels();
|
|
101
|
+
const isMethodLoading = activeMethodId === method.id;
|
|
102
|
+
const isMethodDisabled = disabled || !method.isAvailable || activeMethodId !== null && !isMethodLoading;
|
|
103
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
104
|
+
type: "button",
|
|
105
|
+
className,
|
|
106
|
+
disabled: isMethodDisabled,
|
|
107
|
+
"aria-busy": isMethodLoading || void 0,
|
|
108
|
+
"aria-label": labels.auth.signInWithMethod(method.label),
|
|
109
|
+
onClick: () => onSelect(method.id),
|
|
110
|
+
children: [isMethodLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : /* @__PURE__ */ jsx(Icon, {
|
|
111
|
+
name: method.iconName ?? "profile",
|
|
112
|
+
size: "medium",
|
|
113
|
+
className: cn("!rounded-agg-lg", renderLabel ? void 0 : "h-6 w-6 text-agg-foreground"),
|
|
114
|
+
title: renderLabel ? void 0 : method.label
|
|
115
|
+
}), renderLabel ? /* @__PURE__ */ jsx("span", { children: labels.auth.connect(method.label) }) : null]
|
|
116
|
+
});
|
|
397
117
|
};
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
})
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
" ",
|
|
570
|
-
/* @__PURE__ */ jsx3(
|
|
571
|
-
"a",
|
|
572
|
-
{
|
|
573
|
-
className: cn(authHelperLinkClassName, classNames == null ? void 0 : classNames.authHelperLink),
|
|
574
|
-
href: AGG_TERMS_OF_SERVICE_URL,
|
|
575
|
-
target: "_blank",
|
|
576
|
-
rel: "noreferrer",
|
|
577
|
-
children: labels.auth.terms
|
|
578
|
-
}
|
|
579
|
-
),
|
|
580
|
-
" ",
|
|
581
|
-
labels.auth.legalNoticeSeparator,
|
|
582
|
-
" ",
|
|
583
|
-
/* @__PURE__ */ jsx3(
|
|
584
|
-
"a",
|
|
585
|
-
{
|
|
586
|
-
className: cn(authHelperLinkClassName, classNames == null ? void 0 : classNames.authHelperLink),
|
|
587
|
-
href: AGG_PRIVACY_POLICY_URL,
|
|
588
|
-
target: "_blank",
|
|
589
|
-
rel: "noreferrer",
|
|
590
|
-
children: labels.auth.privacyPolicy
|
|
591
|
-
}
|
|
592
|
-
),
|
|
593
|
-
"."
|
|
594
|
-
] }),
|
|
595
|
-
errorMessage ? /* @__PURE__ */ jsx3(
|
|
596
|
-
InlineAlert,
|
|
597
|
-
{
|
|
598
|
-
tone: "error",
|
|
599
|
-
message: errorMessage,
|
|
600
|
-
className: classNames == null ? void 0 : classNames.authError
|
|
601
|
-
}
|
|
602
|
-
) : null
|
|
603
|
-
] }) })
|
|
604
|
-
]
|
|
605
|
-
}
|
|
606
|
-
) })
|
|
607
|
-
] });
|
|
118
|
+
const UnauthenticatedConnectView = ({ activeMethodId, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isBusy, isChooserOpen, notice, onChooserOpenChange, onEmailChange, onEmailSubmit, onMethodSelect, socialMethods, walletMethods, isPaperMode = false }) => {
|
|
119
|
+
const labels = useLabels();
|
|
120
|
+
const hasConfiguredMethods = emailMethod !== null || socialMethods.length > 0 || walletMethods.length > 0;
|
|
121
|
+
const showWalletDivider = walletMethods.length > 0 && (emailMethod !== null || socialMethods.length > 0);
|
|
122
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
123
|
+
className: cn(connectButtonContainerClassName, classNames?.root),
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx(Button, {
|
|
126
|
+
variant: "primary",
|
|
127
|
+
size: "large",
|
|
128
|
+
className: cn(isPaperMode && "h-7! px-4! text-agg-sm! leading-agg-5!", isPaperMode && "md:h-10! md:px-6! md:text-agg-base! md:leading-agg-6!", classNames?.connectButton),
|
|
129
|
+
onClick: () => onChooserOpenChange(true),
|
|
130
|
+
disabled: disabled || !hasConfiguredMethods,
|
|
131
|
+
"aria-label": labels.auth.connect(),
|
|
132
|
+
...buttonProps,
|
|
133
|
+
children: labels.auth.connect()
|
|
134
|
+
}),
|
|
135
|
+
notice ? /* @__PURE__ */ jsx("p", {
|
|
136
|
+
className: cn(authNoticeClassName, classNames?.authNotice),
|
|
137
|
+
children: notice
|
|
138
|
+
}) : null,
|
|
139
|
+
/* @__PURE__ */ jsx(Modal, {
|
|
140
|
+
open: isChooserOpen || !!challengeContent,
|
|
141
|
+
onOpenChange: onChooserOpenChange,
|
|
142
|
+
children: /* @__PURE__ */ jsxs(Modal.Container, {
|
|
143
|
+
maxWidth: "400px",
|
|
144
|
+
classNames: { container: cn(authModalContainerClassName, classNames?.authModalContent) },
|
|
145
|
+
"aria-label": challengeContent ? "Security Check" : labels.auth.signIn,
|
|
146
|
+
children: [/* @__PURE__ */ jsx(Modal.Header, {
|
|
147
|
+
title: challengeContent ? "Security Check" : labels.auth.signIn,
|
|
148
|
+
hideBorder: true,
|
|
149
|
+
classNames: {
|
|
150
|
+
container: "px-8 py-6",
|
|
151
|
+
title: "text-agg-2xl leading-agg-8",
|
|
152
|
+
titleContainer: "max-w-none"
|
|
153
|
+
}
|
|
154
|
+
}), /* @__PURE__ */ jsx(Modal.Body, {
|
|
155
|
+
classNames: { root: authModalBodyClassName },
|
|
156
|
+
children: challengeContent ? challengeContent : /* @__PURE__ */ jsxs("div", {
|
|
157
|
+
className: authMethodsListClassName,
|
|
158
|
+
children: [
|
|
159
|
+
emailMethod ? /* @__PURE__ */ jsxs("form", {
|
|
160
|
+
className: authSectionClassName,
|
|
161
|
+
onSubmit: (event) => {
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
onEmailSubmit();
|
|
164
|
+
},
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsxs("div", {
|
|
167
|
+
className: authInputFormClassName,
|
|
168
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
169
|
+
id: "agg-auth-email",
|
|
170
|
+
type: "email",
|
|
171
|
+
value: emailValue,
|
|
172
|
+
onChange: (event) => onEmailChange(event.target.value),
|
|
173
|
+
placeholder: emailMethod.input?.placeholder ?? labels.auth.emailAddress,
|
|
174
|
+
className: cn(authInputFieldClassName, classNames?.authFormField),
|
|
175
|
+
"aria-label": labels.auth.emailAddress,
|
|
176
|
+
disabled: disabled || isBusy || !emailMethod.isAvailable
|
|
177
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
178
|
+
type: "submit",
|
|
179
|
+
variant: "secondary",
|
|
180
|
+
size: "large",
|
|
181
|
+
className: authPrimaryActionClassName,
|
|
182
|
+
isLoading: activeMethodId === emailMethod.id,
|
|
183
|
+
disabled: disabled || isBusy || !emailMethod.isAvailable,
|
|
184
|
+
children: emailMethod.input?.submitLabel ?? labels.auth.continue
|
|
185
|
+
})]
|
|
186
|
+
}),
|
|
187
|
+
emailMethod.isAvailable && emailMethod.input?.helperText ? /* @__PURE__ */ jsx("p", {
|
|
188
|
+
className: cn(authNoticeClassName, classNames?.authNotice),
|
|
189
|
+
children: emailMethod.input.helperText
|
|
190
|
+
}) : null,
|
|
191
|
+
!emailMethod.isAvailable ? /* @__PURE__ */ jsx(InlineAlert, {
|
|
192
|
+
tone: "warning",
|
|
193
|
+
variant: "surface",
|
|
194
|
+
message: labels.auth.emailUnavailable,
|
|
195
|
+
className: classNames?.authError
|
|
196
|
+
}) : null,
|
|
197
|
+
emailError ? /* @__PURE__ */ jsx(InlineAlert, {
|
|
198
|
+
tone: "error",
|
|
199
|
+
message: emailError,
|
|
200
|
+
className: classNames?.authError
|
|
201
|
+
}) : null
|
|
202
|
+
]
|
|
203
|
+
}) : null,
|
|
204
|
+
socialMethods.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
205
|
+
className: authSectionClassName,
|
|
206
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
207
|
+
className: cn(authMethodGridClassName, classNames?.authMethodGrid),
|
|
208
|
+
children: socialMethods.map((method) => /* @__PURE__ */ jsx(AuthMethodActionButton, {
|
|
209
|
+
activeMethodId,
|
|
210
|
+
className: cn(authSocialButtonClassName, classNames?.authMethodButton),
|
|
211
|
+
disabled: disabled || isBusy,
|
|
212
|
+
method,
|
|
213
|
+
onSelect: onMethodSelect,
|
|
214
|
+
renderLabel: false
|
|
215
|
+
}, method.id))
|
|
216
|
+
}), /* @__PURE__ */ jsxs("p", {
|
|
217
|
+
className: authHelperTextClassName,
|
|
218
|
+
children: [
|
|
219
|
+
labels.auth.socialWalletNotice,
|
|
220
|
+
" ",
|
|
221
|
+
/* @__PURE__ */ jsx("span", {
|
|
222
|
+
className: cn(authHelperLinkClassName, classNames?.authHelperLink),
|
|
223
|
+
children: labels.auth.learnMore
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
})]
|
|
227
|
+
}) : null,
|
|
228
|
+
showWalletDivider ? /* @__PURE__ */ jsxs("div", {
|
|
229
|
+
className: authDividerClassName,
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsx("div", { className: authDividerLineClassName }),
|
|
232
|
+
/* @__PURE__ */ jsx("span", {
|
|
233
|
+
className: authDividerLabelClassName,
|
|
234
|
+
children: labels.auth.dividerOr
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ jsx("div", { className: authDividerLineClassName })
|
|
237
|
+
]
|
|
238
|
+
}) : null,
|
|
239
|
+
walletMethods.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
240
|
+
className: authSectionClassName,
|
|
241
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
242
|
+
className: cn(authWalletMethodGridClassName, classNames?.authMethodGrid),
|
|
243
|
+
children: walletMethods.map((method) => /* @__PURE__ */ jsx(AuthMethodActionButton, {
|
|
244
|
+
activeMethodId,
|
|
245
|
+
className: cn(authWalletButtonClassName, classNames?.authMethodButton),
|
|
246
|
+
disabled: disabled || isBusy,
|
|
247
|
+
method,
|
|
248
|
+
onSelect: onMethodSelect
|
|
249
|
+
}, method.id))
|
|
250
|
+
})
|
|
251
|
+
}) : null,
|
|
252
|
+
/* @__PURE__ */ jsxs("p", {
|
|
253
|
+
className: authLegalTextClassName,
|
|
254
|
+
children: [
|
|
255
|
+
labels.auth.legalNoticePrefix,
|
|
256
|
+
" ",
|
|
257
|
+
/* @__PURE__ */ jsx("a", {
|
|
258
|
+
className: cn(authHelperLinkClassName, classNames?.authHelperLink),
|
|
259
|
+
href: AGG_TERMS_OF_SERVICE_URL,
|
|
260
|
+
target: "_blank",
|
|
261
|
+
rel: "noreferrer",
|
|
262
|
+
children: labels.auth.terms
|
|
263
|
+
}),
|
|
264
|
+
" ",
|
|
265
|
+
labels.auth.legalNoticeSeparator,
|
|
266
|
+
" ",
|
|
267
|
+
/* @__PURE__ */ jsx("a", {
|
|
268
|
+
className: cn(authHelperLinkClassName, classNames?.authHelperLink),
|
|
269
|
+
href: AGG_PRIVACY_POLICY_URL,
|
|
270
|
+
target: "_blank",
|
|
271
|
+
rel: "noreferrer",
|
|
272
|
+
children: labels.auth.privacyPolicy
|
|
273
|
+
}),
|
|
274
|
+
"."
|
|
275
|
+
]
|
|
276
|
+
}),
|
|
277
|
+
errorMessage ? /* @__PURE__ */ jsx(InlineAlert, {
|
|
278
|
+
tone: "error",
|
|
279
|
+
message: errorMessage,
|
|
280
|
+
className: classNames?.authError
|
|
281
|
+
}) : null
|
|
282
|
+
]
|
|
283
|
+
})
|
|
284
|
+
})]
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
});
|
|
608
289
|
};
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
]
|
|
909
|
-
}
|
|
910
|
-
),
|
|
911
|
-
/* @__PURE__ */ jsx3(
|
|
912
|
-
"div",
|
|
913
|
-
{
|
|
914
|
-
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
915
|
-
}
|
|
916
|
-
),
|
|
917
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col py-2", children: [
|
|
918
|
-
/* @__PURE__ */ jsxs(
|
|
919
|
-
DropdownMenu.Item,
|
|
920
|
-
{
|
|
921
|
-
className: dropdownMenuItemClassName,
|
|
922
|
-
onSelect: onProfileClick,
|
|
923
|
-
disabled,
|
|
924
|
-
children: [
|
|
925
|
-
/* @__PURE__ */ jsx3(Icon, { name: "profile", size: "small", className: "text-agg-foreground" }),
|
|
926
|
-
/* @__PURE__ */ jsx3("span", { children: labels.auth.myProfile })
|
|
927
|
-
]
|
|
928
|
-
}
|
|
929
|
-
),
|
|
930
|
-
isPaperMode ? null : isDepositBlocked ? /* @__PURE__ */ jsx3(
|
|
931
|
-
DropdownMenu.Item,
|
|
932
|
-
{
|
|
933
|
-
className: cn(dropdownMenuItemClassName, "opacity-50 cursor-not-allowed!"),
|
|
934
|
-
onSelect: (e) => e.preventDefault(),
|
|
935
|
-
"aria-disabled": "true",
|
|
936
|
-
children: /* @__PURE__ */ jsx3(
|
|
937
|
-
Tooltip,
|
|
938
|
-
{
|
|
939
|
-
content: /* @__PURE__ */ jsx3("p", { className: "text-center", children: labels.auth.depositGeoBlocked }),
|
|
940
|
-
side: "bottom",
|
|
941
|
-
sideOffset: 4,
|
|
942
|
-
children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-3", children: [
|
|
943
|
-
/* @__PURE__ */ jsx3(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
944
|
-
/* @__PURE__ */ jsx3("span", { children: labels.auth.deposit })
|
|
945
|
-
] })
|
|
946
|
-
}
|
|
947
|
-
)
|
|
948
|
-
}
|
|
949
|
-
) : /* @__PURE__ */ jsxs(
|
|
950
|
-
DropdownMenu.Item,
|
|
951
|
-
{
|
|
952
|
-
className: dropdownMenuItemClassName,
|
|
953
|
-
onSelect: onDepositClick,
|
|
954
|
-
disabled,
|
|
955
|
-
children: [
|
|
956
|
-
/* @__PURE__ */ jsx3(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
957
|
-
/* @__PURE__ */ jsx3("span", { children: labels.auth.deposit })
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
),
|
|
961
|
-
isPaperMode ? null : /* @__PURE__ */ jsxs(
|
|
962
|
-
DropdownMenu.Item,
|
|
963
|
-
{
|
|
964
|
-
className: dropdownMenuItemClassName,
|
|
965
|
-
onSelect: onWithdrawClick,
|
|
966
|
-
disabled,
|
|
967
|
-
children: [
|
|
968
|
-
/* @__PURE__ */ jsx3(Icon, { name: "upload", size: "small", className: "text-agg-foreground" }),
|
|
969
|
-
/* @__PURE__ */ jsx3("span", { children: labels.auth.withdraw })
|
|
970
|
-
]
|
|
971
|
-
}
|
|
972
|
-
),
|
|
973
|
-
/* @__PURE__ */ jsxs(
|
|
974
|
-
DropdownMenu.Item,
|
|
975
|
-
{
|
|
976
|
-
className: dropdownMenuItemClassName,
|
|
977
|
-
onSelect: onDisconnectClick,
|
|
978
|
-
disabled,
|
|
979
|
-
children: [
|
|
980
|
-
/* @__PURE__ */ jsx3(Icon, { name: "disconnect", size: "small", className: "text-agg-foreground" }),
|
|
981
|
-
/* @__PURE__ */ jsx3("span", { children: labels.auth.disconnect })
|
|
982
|
-
]
|
|
983
|
-
}
|
|
984
|
-
)
|
|
985
|
-
] })
|
|
986
|
-
]
|
|
987
|
-
}
|
|
988
|
-
)
|
|
989
|
-
}
|
|
990
|
-
) })
|
|
991
|
-
] })
|
|
992
|
-
] }) });
|
|
290
|
+
const AuthConnectButtonView = ({ activeMethodId, addressLabel, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount = 0, onClaimWinningsClick, walletMethods, isDepositBlocked = false }) => {
|
|
291
|
+
const labels = useLabels();
|
|
292
|
+
const { isPaperMode } = useResolvedExecutionMode();
|
|
293
|
+
const { general: { rootClassName }, features: { enableAnimations } } = useSdkUiConfig();
|
|
294
|
+
const resolvedProfileLabel = profileLabel || labels.auth.myProfile;
|
|
295
|
+
const authLabelsWithClaim = labels.auth;
|
|
296
|
+
const resolveClaimTooltipLabel = (count) => authLabelsWithClaim.claimableWinningsTooltip?.(count) ?? `${count} position${count === 1 ? "" : "s"} ready to claim`;
|
|
297
|
+
const resolveClaimBadgeAriaLabel = (count) => authLabelsWithClaim.claimableWinningsBadge?.(count) ?? `${count} claimable winning${count === 1 ? "" : "s"}`;
|
|
298
|
+
const claimWinningsLabel = authLabelsWithClaim.claimWinnings ?? "Claim Now";
|
|
299
|
+
const dropdownMenuItemClassName = cn("cursor-pointer", profileMenuActionItemClassName, enableAnimations ? "transition-colors" : null, disabled ? "pointer-events-none opacity-50" : null, classNames?.profileMenuActionItem);
|
|
300
|
+
if (!isAuthenticated) {
|
|
301
|
+
const unauthenticatedView = /* @__PURE__ */ jsx(UnauthenticatedConnectView, {
|
|
302
|
+
activeMethodId,
|
|
303
|
+
buttonProps,
|
|
304
|
+
challengeContent,
|
|
305
|
+
classNames,
|
|
306
|
+
disabled,
|
|
307
|
+
emailMethod,
|
|
308
|
+
emailError,
|
|
309
|
+
emailValue,
|
|
310
|
+
errorMessage,
|
|
311
|
+
isBusy,
|
|
312
|
+
isChooserOpen,
|
|
313
|
+
notice,
|
|
314
|
+
onChooserOpenChange,
|
|
315
|
+
onEmailChange,
|
|
316
|
+
onEmailSubmit,
|
|
317
|
+
onMethodSelect,
|
|
318
|
+
socialMethods,
|
|
319
|
+
walletMethods,
|
|
320
|
+
isPaperMode
|
|
321
|
+
});
|
|
322
|
+
if (!isPaperMode) return unauthenticatedView;
|
|
323
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
324
|
+
className: "flex items-center gap-3",
|
|
325
|
+
children: [/* @__PURE__ */ jsx(PaperTradingBadge, {
|
|
326
|
+
placement: "signedOut",
|
|
327
|
+
isAuthenticated
|
|
328
|
+
}), unauthenticatedView]
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
return /* @__PURE__ */ jsx("div", {
|
|
332
|
+
className: cn(connectButtonContainerClassName, classNames?.root),
|
|
333
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
334
|
+
className: cn(connectedButtonsRowClassName, classNames?.connectedRow),
|
|
335
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
336
|
+
className: cn(connectedBalanceChipClassName, classNames?.balanceChip),
|
|
337
|
+
children: [
|
|
338
|
+
/* @__PURE__ */ jsx(PaperTradingBadge, {
|
|
339
|
+
placement: "chip",
|
|
340
|
+
isAuthenticated
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ jsx("div", {
|
|
343
|
+
className: cn(isPaperMode ? "hidden" : "hidden lg:inline-flex"),
|
|
344
|
+
children: /* @__PURE__ */ jsx(ConditionalWrapper, {
|
|
345
|
+
condition: isDepositBlocked,
|
|
346
|
+
wrapper: (children) => /* @__PURE__ */ jsx(Tooltip, {
|
|
347
|
+
content: /* @__PURE__ */ jsx("p", {
|
|
348
|
+
className: "text-center",
|
|
349
|
+
children: labels.auth.depositGeoBlocked
|
|
350
|
+
}),
|
|
351
|
+
sideOffset: 4,
|
|
352
|
+
children
|
|
353
|
+
}),
|
|
354
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
355
|
+
variant: "primary",
|
|
356
|
+
size: "small",
|
|
357
|
+
className: cn("h-6! px-3! text-agg-xs! leading-agg-4!", classNames?.depositButton),
|
|
358
|
+
...!isDepositBlocked ? { onClick: onDepositClick } : { disabled: true },
|
|
359
|
+
"aria-label": labels.auth.deposit,
|
|
360
|
+
children: labels.auth.deposit
|
|
361
|
+
})
|
|
362
|
+
})
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ jsxs("div", {
|
|
365
|
+
className: "flex items-center gap-2",
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ jsx("span", {
|
|
368
|
+
className: "h-3.5 w-3.5 shrink-0 [&_svg]:h-full [&_svg]:w-full",
|
|
369
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
370
|
+
name: "activity-chart",
|
|
371
|
+
size: "small",
|
|
372
|
+
className: "text-agg-muted-foreground"
|
|
373
|
+
})
|
|
374
|
+
}),
|
|
375
|
+
/* @__PURE__ */ jsx("p", {
|
|
376
|
+
className: cn("agg-type-label text-agg-foreground", classNames?.positionsText),
|
|
377
|
+
children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(positionsBalance)
|
|
378
|
+
}),
|
|
379
|
+
claimReadyCount > 0 ? /* @__PURE__ */ jsx(Tooltip, {
|
|
380
|
+
size: "medium",
|
|
381
|
+
classNames: { content: "px-5 py-4" },
|
|
382
|
+
content: /* @__PURE__ */ jsxs("div", {
|
|
383
|
+
className: "flex flex-col items-center gap-2",
|
|
384
|
+
children: [/* @__PURE__ */ jsx("p", { children: resolveClaimTooltipLabel(claimReadyCount) }), onClaimWinningsClick ? /* @__PURE__ */ jsxs("button", {
|
|
385
|
+
type: "button",
|
|
386
|
+
className: "inline-flex cursor-pointer items-center gap-1.5 font-agg-bold text-agg-primary hover:text-agg-primary-hover",
|
|
387
|
+
onClick: onClaimWinningsClick,
|
|
388
|
+
children: [claimWinningsLabel, /* @__PURE__ */ jsx(Icon, {
|
|
389
|
+
name: "arrow-right",
|
|
390
|
+
size: "small",
|
|
391
|
+
className: "h-3.5 w-3.5 text-agg-primary",
|
|
392
|
+
"aria-hidden": true
|
|
393
|
+
})]
|
|
394
|
+
}) : null]
|
|
395
|
+
}),
|
|
396
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
397
|
+
className: cn("agg-claim-badge agg-type-overline", "inline-flex items-center justify-center rounded-full leading-none", "bg-linear-to-r from-agg-primary to-agg-primary-hover", "shrink-0 px-0.5 min-w-4 h-4 text-agg-on-primary text-center", "cursor-pointer"),
|
|
398
|
+
"aria-label": resolveClaimBadgeAriaLabel(claimReadyCount),
|
|
399
|
+
children: claimReadyCount
|
|
400
|
+
})
|
|
401
|
+
}) : null
|
|
402
|
+
]
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ jsxs("div", {
|
|
405
|
+
className: "flex items-center gap-2",
|
|
406
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
407
|
+
className: "h-3.5 w-3.5 shrink-0 [&_svg]:h-full [&_svg]:w-full",
|
|
408
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
409
|
+
name: "wallet-filled",
|
|
410
|
+
size: "small",
|
|
411
|
+
className: "text-agg-muted-foreground"
|
|
412
|
+
})
|
|
413
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
414
|
+
className: cn("agg-type-label text-agg-foreground", classNames?.balanceText),
|
|
415
|
+
children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(totalBalance)
|
|
416
|
+
})]
|
|
417
|
+
})
|
|
418
|
+
]
|
|
419
|
+
}), /* @__PURE__ */ jsxs(DropdownMenu.Root, {
|
|
420
|
+
open: isProfileMenuOpen,
|
|
421
|
+
onOpenChange: onProfileMenuOpenChange,
|
|
422
|
+
children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
|
|
423
|
+
asChild: true,
|
|
424
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
425
|
+
type: "button",
|
|
426
|
+
className: cn("ml-0 md:-ml-12 max-w-48", "inline-flex items-center rounded-agg-full bg-agg-secondary", "h-7 gap-1.5 pl-1 pr-2 border-2", "md:h-10 md:gap-3 md:pl-2 md:pr-3 md:border", "cursor-pointer hover:bg-agg-secondary-hover", "focus-visible:outline-none focus-visible:border-agg-primary", isProfileMenuOpen ? "border-agg-primary" : "border-agg-primary md:border-agg-separator", enableAnimations ? "transition-colors" : null, classNames?.profileTrigger),
|
|
427
|
+
disabled,
|
|
428
|
+
"aria-label": labels.auth.walletMenuFor(resolvedProfileLabel),
|
|
429
|
+
children: [
|
|
430
|
+
/* @__PURE__ */ jsx(WalletAvatar, { className: "size-5! md:size-6!" }),
|
|
431
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
432
|
+
variant: "body-strong",
|
|
433
|
+
className: cn("whitespace-pre text-sm md:text-base leading-5 md:leading-6 truncate", classNames?.profileTriggerLabel),
|
|
434
|
+
children: resolvedProfileLabel
|
|
435
|
+
}),
|
|
436
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
437
|
+
name: isProfileMenuOpen ? "chevron-up" : "chevron-down",
|
|
438
|
+
size: "small",
|
|
439
|
+
className: "h-3 w-3 md:h-3.5 md:w-3.5 text-agg-foreground",
|
|
440
|
+
"aria-hidden": "true"
|
|
441
|
+
})
|
|
442
|
+
]
|
|
443
|
+
})
|
|
444
|
+
}), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
|
|
445
|
+
className: cn(AGG_ROOT_CLASS_NAME, rootClassName, "z-50 outline-none"),
|
|
446
|
+
"data-agg-animations": enableAnimations ? "true" : "false",
|
|
447
|
+
sideOffset: 4,
|
|
448
|
+
align: "end",
|
|
449
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
450
|
+
className: cn("font-agg-sans bg-agg-secondary", "w-screen h-screen overflow-y-auto", "md:h-auto md:w-64 md:max-w-[calc(100vw-2rem)] md:overflow-hidden md:rounded-agg-xl md:border md:border-agg-separator md:shadow-agg-popover", classNames?.profileMenuContent),
|
|
451
|
+
children: [
|
|
452
|
+
/* @__PURE__ */ jsxs("button", {
|
|
453
|
+
type: "button",
|
|
454
|
+
className: cn(profileMenuSectionClassName, "cursor-pointer", "hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover focus:outline-none", enableAnimations ? "transition-colors" : null, disabled ? "pointer-events-none opacity-50" : null, classNames?.profileMenuSection),
|
|
455
|
+
onClick: () => {
|
|
456
|
+
onProfileMenuOpenChange(false);
|
|
457
|
+
onProfileCardClick?.();
|
|
458
|
+
},
|
|
459
|
+
disabled,
|
|
460
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
461
|
+
className: "flex w-full flex-row items-center justify-between gap-3",
|
|
462
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
463
|
+
className: "flex min-w-0 items-center gap-3",
|
|
464
|
+
children: [/* @__PURE__ */ jsx(WalletAvatar, { className: "size-11" }), /* @__PURE__ */ jsxs("div", {
|
|
465
|
+
className: "flex min-w-0 flex-col items-start justify-start gap-0.5",
|
|
466
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
467
|
+
className: "w-full text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left truncate",
|
|
468
|
+
children: resolvedProfileLabel
|
|
469
|
+
}), addressLabel ? /* @__PURE__ */ jsx("p", {
|
|
470
|
+
className: "w-full text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground text-left",
|
|
471
|
+
children: addressLabel
|
|
472
|
+
}) : null]
|
|
473
|
+
})]
|
|
474
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
475
|
+
name: "arrow-right",
|
|
476
|
+
size: "small",
|
|
477
|
+
className: "md:hidden h-4 w-4 shrink-0 text-agg-foreground",
|
|
478
|
+
"aria-hidden": "true"
|
|
479
|
+
})]
|
|
480
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
481
|
+
className: "md:hidden grid w-full grid-cols-2 items-start gap-5",
|
|
482
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
483
|
+
className: "flex flex-1 min-w-0 flex-col gap-2",
|
|
484
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
485
|
+
className: "flex min-w-0 items-center gap-2",
|
|
486
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
487
|
+
name: "wallet-filled",
|
|
488
|
+
size: "small",
|
|
489
|
+
className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
|
|
490
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
491
|
+
className: "truncate text-agg-sm leading-agg-5 text-agg-foreground",
|
|
492
|
+
children: "Withdrawable Balance"
|
|
493
|
+
})]
|
|
494
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
495
|
+
className: "text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left",
|
|
496
|
+
children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(totalBalance)
|
|
497
|
+
})]
|
|
498
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
499
|
+
className: "flex flex-1 min-w-0 flex-col gap-2",
|
|
500
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
501
|
+
className: "flex min-w-0 items-center gap-2",
|
|
502
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
503
|
+
name: "activity-chart",
|
|
504
|
+
size: "small",
|
|
505
|
+
className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
|
|
506
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
507
|
+
className: "truncate text-agg-sm leading-agg-5 text-agg-foreground",
|
|
508
|
+
children: "Positions Value"
|
|
509
|
+
})]
|
|
510
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
511
|
+
className: "text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left",
|
|
512
|
+
children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(positionsBalance)
|
|
513
|
+
})]
|
|
514
|
+
})]
|
|
515
|
+
})]
|
|
516
|
+
}),
|
|
517
|
+
/* @__PURE__ */ jsx("div", { className: cn(profileMenuSeparatorClassName, classNames?.profileMenuSeparator) }),
|
|
518
|
+
/* @__PURE__ */ jsxs("div", {
|
|
519
|
+
className: "flex w-full flex-col py-2",
|
|
520
|
+
children: [
|
|
521
|
+
/* @__PURE__ */ jsxs(DropdownMenu.Item, {
|
|
522
|
+
className: dropdownMenuItemClassName,
|
|
523
|
+
onSelect: onProfileClick,
|
|
524
|
+
disabled,
|
|
525
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
526
|
+
name: "profile",
|
|
527
|
+
size: "small",
|
|
528
|
+
className: "text-agg-foreground"
|
|
529
|
+
}), /* @__PURE__ */ jsx("span", { children: labels.auth.myProfile })]
|
|
530
|
+
}),
|
|
531
|
+
isPaperMode ? null : isDepositBlocked ? /* @__PURE__ */ jsx(DropdownMenu.Item, {
|
|
532
|
+
className: cn(dropdownMenuItemClassName, "opacity-50 cursor-not-allowed!"),
|
|
533
|
+
onSelect: (e) => e.preventDefault(),
|
|
534
|
+
"aria-disabled": "true",
|
|
535
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
536
|
+
content: /* @__PURE__ */ jsx("p", {
|
|
537
|
+
className: "text-center",
|
|
538
|
+
children: labels.auth.depositGeoBlocked
|
|
539
|
+
}),
|
|
540
|
+
side: "bottom",
|
|
541
|
+
sideOffset: 4,
|
|
542
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
543
|
+
className: "inline-flex items-center gap-3",
|
|
544
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
545
|
+
name: "download",
|
|
546
|
+
size: "small",
|
|
547
|
+
className: "text-agg-foreground"
|
|
548
|
+
}), /* @__PURE__ */ jsx("span", { children: labels.auth.deposit })]
|
|
549
|
+
})
|
|
550
|
+
})
|
|
551
|
+
}) : /* @__PURE__ */ jsxs(DropdownMenu.Item, {
|
|
552
|
+
className: dropdownMenuItemClassName,
|
|
553
|
+
onSelect: onDepositClick,
|
|
554
|
+
disabled,
|
|
555
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
556
|
+
name: "download",
|
|
557
|
+
size: "small",
|
|
558
|
+
className: "text-agg-foreground"
|
|
559
|
+
}), /* @__PURE__ */ jsx("span", { children: labels.auth.deposit })]
|
|
560
|
+
}),
|
|
561
|
+
isPaperMode ? null : /* @__PURE__ */ jsxs(DropdownMenu.Item, {
|
|
562
|
+
className: dropdownMenuItemClassName,
|
|
563
|
+
onSelect: onWithdrawClick,
|
|
564
|
+
disabled,
|
|
565
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
566
|
+
name: "upload",
|
|
567
|
+
size: "small",
|
|
568
|
+
className: "text-agg-foreground"
|
|
569
|
+
}), /* @__PURE__ */ jsx("span", { children: labels.auth.withdraw })]
|
|
570
|
+
}),
|
|
571
|
+
/* @__PURE__ */ jsxs(DropdownMenu.Item, {
|
|
572
|
+
className: dropdownMenuItemClassName,
|
|
573
|
+
onSelect: onDisconnectClick,
|
|
574
|
+
disabled,
|
|
575
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
576
|
+
name: "disconnect",
|
|
577
|
+
size: "small",
|
|
578
|
+
className: "text-agg-foreground"
|
|
579
|
+
}), /* @__PURE__ */ jsx("span", { children: labels.auth.disconnect })]
|
|
580
|
+
})
|
|
581
|
+
]
|
|
582
|
+
})
|
|
583
|
+
]
|
|
584
|
+
})
|
|
585
|
+
}) })]
|
|
586
|
+
})]
|
|
587
|
+
})
|
|
588
|
+
});
|
|
993
589
|
};
|
|
994
590
|
AuthConnectButtonView.displayName = "AuthConnectButtonView";
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
AGG_DOCS_URL,
|
|
998
|
-
AGG_PRIVACY_POLICY_URL,
|
|
999
|
-
AGG_ROOT_CLASS_NAME,
|
|
1000
|
-
AGG_TERMS_OF_SERVICE_URL,
|
|
1001
|
-
ActivityChartIcon,
|
|
1002
|
-
AggErrorBoundary,
|
|
1003
|
-
AggLogo,
|
|
1004
|
-
AggNotificationEventsProvider,
|
|
1005
|
-
AggProvider,
|
|
1006
|
-
AggToastProvider,
|
|
1007
|
-
AppleIcon,
|
|
1008
|
-
AppsIcon,
|
|
1009
|
-
ArbitrumIcon,
|
|
1010
|
-
ArrowRightIcon,
|
|
1011
|
-
ArrowTrendUpIcon,
|
|
1012
|
-
ArrowsToDotIcon,
|
|
1013
|
-
AuthConnectButtonView,
|
|
1014
|
-
AutocompleteSelect,
|
|
1015
|
-
Badge,
|
|
1016
|
-
BadgeCheckThinIcon,
|
|
1017
|
-
BankIcon,
|
|
1018
|
-
BaseIcon,
|
|
1019
|
-
BestPricesIcon,
|
|
1020
|
-
BnbIcon,
|
|
1021
|
-
BoltIcon,
|
|
1022
|
-
Button,
|
|
1023
|
-
CARD_NETWORK_OPTIONS,
|
|
1024
|
-
Calendar,
|
|
1025
|
-
Card,
|
|
1026
|
-
ChartCandlestickIcon,
|
|
1027
|
-
ChartLineIcon,
|
|
1028
|
-
CheckCircleIcon,
|
|
1029
|
-
ChevronDownIcon,
|
|
1030
|
-
ChevronLeftIcon,
|
|
1031
|
-
ChevronRightIcon,
|
|
1032
|
-
ChevronUpIcon,
|
|
1033
|
-
CircleOverlapIcon,
|
|
1034
|
-
CircleXmarkIcon,
|
|
1035
|
-
CloseIcon,
|
|
1036
|
-
ConnectAccountsStep,
|
|
1037
|
-
ConnectKalshiModal,
|
|
1038
|
-
ConnectNovigModal,
|
|
1039
|
-
ConnectOnchainModal,
|
|
1040
|
-
ConnectProphetxModal,
|
|
1041
|
-
CopyButton,
|
|
1042
|
-
CopyIcon,
|
|
1043
|
-
CreateAccountIcon,
|
|
1044
|
-
CreditCardIcon,
|
|
1045
|
-
CurrencyInput,
|
|
1046
|
-
DEPOSIT_MODAL_OPEN_EVENT,
|
|
1047
|
-
DepositModal,
|
|
1048
|
-
DisconnectIcon,
|
|
1049
|
-
DocumentIcon,
|
|
1050
|
-
DotsHorizontalIcon,
|
|
1051
|
-
DownloadIcon,
|
|
1052
|
-
ErrorFilledIcon,
|
|
1053
|
-
EthereumIcon,
|
|
1054
|
-
EventList,
|
|
1055
|
-
EventListItem,
|
|
1056
|
-
EventListItemDetails,
|
|
1057
|
-
EventListItemV2,
|
|
1058
|
-
EventListVenueStrip,
|
|
1059
|
-
EventMarketPage,
|
|
1060
|
-
EventOpenOrders,
|
|
1061
|
-
EventOpenOrdersCard,
|
|
1062
|
-
ExternalLinkIcon,
|
|
1063
|
-
Footer,
|
|
1064
|
-
FundKalshiModal,
|
|
1065
|
-
GeoBlockBanner,
|
|
1066
|
-
GeoBlockModal,
|
|
1067
|
-
GiftBonusIcon,
|
|
1068
|
-
GoogleIcon,
|
|
1069
|
-
Header,
|
|
1070
|
-
HomePage,
|
|
1071
|
-
HourglassStartIcon,
|
|
1072
|
-
HowItWorksStep,
|
|
1073
|
-
Icon,
|
|
1074
|
-
ImageIcon,
|
|
1075
|
-
InfoIcon,
|
|
1076
|
-
InlineAlert,
|
|
1077
|
-
LEADERBOARD_DEFAULT_METRIC,
|
|
1078
|
-
LEADERBOARD_DEFAULT_PERIOD,
|
|
1079
|
-
LEADERBOARD_METRICS,
|
|
1080
|
-
LeaderboardPage,
|
|
1081
|
-
LineChart,
|
|
1082
|
-
LinkAccountsIcon,
|
|
1083
|
-
LoadingIcon,
|
|
1084
|
-
LockIcon,
|
|
1085
|
-
ManageBalancesModal,
|
|
1086
|
-
MarketDetails,
|
|
1087
|
-
MarketDetailsList,
|
|
1088
|
-
Modal,
|
|
1089
|
-
NumberValue,
|
|
1090
|
-
OnboardingModal,
|
|
1091
|
-
Orderbook,
|
|
1092
|
-
OrderbookWithStates,
|
|
1093
|
-
PaperModeIcon,
|
|
1094
|
-
PaperOnboardingModal,
|
|
1095
|
-
PaperPlaneIcon,
|
|
1096
|
-
PaperTradingBadge,
|
|
1097
|
-
PaperTradingOnboarding,
|
|
1098
|
-
PencilIcon,
|
|
1099
|
-
PlaceOrder,
|
|
1100
|
-
PlaceOrderExecutionGroups,
|
|
1101
|
-
PlaceOrderExecutionHeader,
|
|
1102
|
-
PlaceOrderExecutionView,
|
|
1103
|
-
PlaceOrderFailureView,
|
|
1104
|
-
PlaceOrderRouteCardSkeleton,
|
|
1105
|
-
PlaceOrderSuccessView,
|
|
1106
|
-
PlaySquareIcon,
|
|
1107
|
-
PolygonIcon,
|
|
1108
|
-
ProfileIcon,
|
|
1109
|
-
ProfileModal,
|
|
1110
|
-
ProfileSetupStep,
|
|
1111
|
-
RemoteImage,
|
|
1112
|
-
RevenueAltIcon,
|
|
1113
|
-
SETTLEMENT_SECTION_ID,
|
|
1114
|
-
Search,
|
|
1115
|
-
SearchIcon,
|
|
1116
|
-
Select,
|
|
1117
|
-
Settlement,
|
|
1118
|
-
SettlementDetails,
|
|
1119
|
-
SettlementSummary,
|
|
1120
|
-
SharedKycModal,
|
|
1121
|
-
ShieldTrustIcon,
|
|
1122
|
-
Skeleton,
|
|
1123
|
-
SolanaIcon,
|
|
1124
|
-
SparklesFilledIcon,
|
|
1125
|
-
SportsLiveScore,
|
|
1126
|
-
StateMessage,
|
|
1127
|
-
StayInControlIcon,
|
|
1128
|
-
SuccessCheckIcon,
|
|
1129
|
-
SwitchButton,
|
|
1130
|
-
Tabs,
|
|
1131
|
-
ToastProvider,
|
|
1132
|
-
Tooltip,
|
|
1133
|
-
TriangleDownIcon,
|
|
1134
|
-
TriangleUpFilledIcon,
|
|
1135
|
-
TriangleUpIcon,
|
|
1136
|
-
Typography,
|
|
1137
|
-
USER_PROFILE_TAB_ACTIVITY,
|
|
1138
|
-
USER_PROFILE_TAB_OPEN_ORDERS,
|
|
1139
|
-
USER_PROFILE_TAB_POSITIONS,
|
|
1140
|
-
UploadIcon,
|
|
1141
|
-
UsdcIcon,
|
|
1142
|
-
UserProfilePage,
|
|
1143
|
-
UserTrustIcon,
|
|
1144
|
-
VenueLogo,
|
|
1145
|
-
WITHDRAW_MODAL_OPEN_EVENT,
|
|
1146
|
-
WalletAvatarIcon,
|
|
1147
|
-
WalletFilledIcon,
|
|
1148
|
-
WalletIcon,
|
|
1149
|
-
WarningFilledIcon,
|
|
1150
|
-
WarningIcon,
|
|
1151
|
-
WithdrawModal,
|
|
1152
|
-
AGG_ROOT_CLASS_NAME as aggRootClassName,
|
|
1153
|
-
badgeSizes,
|
|
1154
|
-
buildAggTxExplorerHref,
|
|
1155
|
-
buildTerminalSummary,
|
|
1156
|
-
clearPendingCardSession,
|
|
1157
|
-
cn,
|
|
1158
|
-
collectEligibleVenueOutcomeIds,
|
|
1159
|
-
collectEligibleVenueOutcomes,
|
|
1160
|
-
createAggClientSharedKycInitiator,
|
|
1161
|
-
defaultSettlementSectionLabel,
|
|
1162
|
-
defaultTradingDisclaimer,
|
|
1163
|
-
formatAmountDisplay,
|
|
1164
|
-
formatCompactUsd,
|
|
1165
|
-
formatProbabilityCents,
|
|
1166
|
-
formatRecurringCountdown,
|
|
1167
|
-
formatShareAmount,
|
|
1168
|
-
formatTokenAmount,
|
|
1169
|
-
formatUsd,
|
|
1170
|
-
getMotionClassName,
|
|
1171
|
-
getPendingCardSession,
|
|
1172
|
-
getScrollBehavior,
|
|
1173
|
-
getSettlementDifferenceId,
|
|
1174
|
-
getTradingAveragePriceLabel,
|
|
1175
|
-
getTradingBalanceLabel,
|
|
1176
|
-
getTradingDateLabel,
|
|
1177
|
-
getTradingPriceLabel,
|
|
1178
|
-
getTradingSharesLabel,
|
|
1179
|
-
getTradingSlippageLabel,
|
|
1180
|
-
getTradingValueLabel,
|
|
1181
|
-
getTradingVenueLabel,
|
|
1182
|
-
iconNames,
|
|
1183
|
-
isTruthy,
|
|
1184
|
-
isValidDateValue,
|
|
1185
|
-
mergeVenueOutcomeOrderbooks,
|
|
1186
|
-
orderbookRowLimitDefault,
|
|
1187
|
-
parseAmount,
|
|
1188
|
-
parseVenue,
|
|
1189
|
-
prepareSettlementDifferences,
|
|
1190
|
-
requestAggDepositModalOpen,
|
|
1191
|
-
requestAggWithdrawModalOpen,
|
|
1192
|
-
resolveDifferenceIconClassName,
|
|
1193
|
-
resolveEventDetailsSyncKey,
|
|
1194
|
-
resolveOrderBookRows,
|
|
1195
|
-
resolveResolvedOutcomeLabel,
|
|
1196
|
-
resolveUnifiedOrderBookEntries,
|
|
1197
|
-
shortenAddress,
|
|
1198
|
-
skeletonViews,
|
|
1199
|
-
toDate,
|
|
1200
|
-
typographyVariants,
|
|
1201
|
-
useCenterOrderbookSpread,
|
|
1202
|
-
useClaimWinnings,
|
|
1203
|
-
useEventOpenOrders,
|
|
1204
|
-
useEventTradingContext,
|
|
1205
|
-
useHomePageModals,
|
|
1206
|
-
useOptionalToast,
|
|
1207
|
-
useResolvedMarketClaim,
|
|
1208
|
-
useSharedKycFlow,
|
|
1209
|
-
useToast,
|
|
1210
|
-
venueLogoNames,
|
|
1211
|
-
venueRequiresSharedKyc
|
|
1212
|
-
};
|
|
591
|
+
//#endregion
|
|
592
|
+
export { AGG_DEFAULT_URL, AGG_DOCS_URL, AGG_PRIVACY_POLICY_URL, AGG_ROOT_CLASS_NAME, AGG_ROOT_CLASS_NAME as aggRootClassName, AGG_TERMS_OF_SERVICE_URL, ActivityChartIcon, AggErrorBoundary, AggLogo, AggNotificationEventsProvider, AggProvider, AggToastProvider, AppleIcon, AppsIcon, ArbitrumIcon, ArrowRightIcon, ArrowTrendUpIcon, ArrowsToDotIcon, AuthConnectButtonView, AutocompleteSelect, Badge, BadgeCheckThinIcon, BankIcon, BaseIcon, BestPricesIcon, BnbIcon, BoltIcon, Button, CARD_NETWORK_OPTIONS, Calendar, Card, ChartCandlestickIcon, ChartLineIcon, CheckCircleIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleOverlapIcon, CircleXmarkIcon, CloseIcon, ConnectAccountsStep, ConnectKalshiModal, ConnectNovigModal, ConnectOnchainModal, ConnectProphetxModal, CopyButton, CopyIcon, CreateAccountIcon, CreditCardIcon, CurrencyInput, DEPOSIT_MODAL_OPEN_EVENT, DepositModal, DisconnectIcon, DocumentIcon, DotsHorizontalIcon, DownloadIcon, ErrorFilledIcon, EthereumIcon, EventList, EventListItem, EventListItemDetails, EventListItemV2, EventListVenueStrip, EventMarketPage, EventOpenOrders, EventOpenOrdersCard, ExternalLinkIcon, Footer, FundKalshiModal, GeoBlockBanner, GeoBlockModal, GiftBonusIcon, GoogleIcon, Header, HomePage, HourglassStartIcon, HowItWorksStep, Icon, ImageIcon, InfoIcon, InlineAlert, LEADERBOARD_DEFAULT_METRIC, LEADERBOARD_DEFAULT_PERIOD, LEADERBOARD_METRICS, LeaderboardPage, LineChart, LinkAccountsIcon, LoadingIcon, LockIcon, ManageBalancesModal, MarketDetails, MarketDetailsList, Modal, NumberValue, OnboardingModal, Orderbook, OrderbookWithStates, PaperModeIcon, PaperOnboardingModal, PaperPlaneIcon, PaperTradingBadge, PaperTradingOnboarding, PencilIcon, PlaceOrder, PlaceOrderExecutionGroups, PlaceOrderExecutionHeader, PlaceOrderExecutionView, PlaceOrderFailureView, PlaceOrderRouteCardSkeleton, PlaceOrderSuccessView, PlaySquareIcon, PolygonIcon, ProfileIcon, ProfileModal, ProfileSetupStep, RemoteImage, RevenueAltIcon, SETTLEMENT_SECTION_ID, Search, SearchIcon, Select, Settlement, SettlementDetails, SettlementSummary, SharedKycModal, ShieldTrustIcon, Skeleton, SolanaIcon, SparklesFilledIcon, SportsLiveScore, StateMessage, StayInControlIcon, SuccessCheckIcon, SwitchButton, Tabs, ToastProvider, Tooltip, TriangleDownIcon, TriangleUpFilledIcon, TriangleUpIcon, Typography, USER_PROFILE_TAB_ACTIVITY, USER_PROFILE_TAB_OPEN_ORDERS, USER_PROFILE_TAB_POSITIONS, UploadIcon, UsdcIcon, UserProfilePage, UserTrustIcon, VenueLogo, WITHDRAW_MODAL_OPEN_EVENT, WalletAvatarIcon, WalletFilledIcon, WalletIcon, WarningFilledIcon, WarningIcon, WithdrawModal, badgeSizes, buildAggTxExplorerHref, buildTerminalSummary, clearPendingCardSession, cn, collectEligibleVenueOutcomeIds, collectEligibleVenueOutcomes, createAggClientSharedKycInitiator, defaultSettlementSectionLabel, defaultTradingDisclaimer, formatAmountDisplay, formatCompactUsd, formatProbabilityCents, formatRecurringCountdown, formatShareAmount, formatTokenAmount, formatUsd, getMotionClassName, getPendingCardSession, getScrollBehavior, getSettlementDifferenceId, getTradingAveragePriceLabel, getTradingBalanceLabel, getTradingDateLabel, getTradingPriceLabel, getTradingSharesLabel, getTradingSlippageLabel, getTradingValueLabel, getTradingVenueLabel, iconNames, isTruthy, isValidDateValue, mergeVenueOutcomeOrderbooks, orderbookRowLimitDefault, parseAmount, parseVenue, prepareSettlementDifferences, requestAggDepositModalOpen, requestAggWithdrawModalOpen, resolveDifferenceIconClassName, resolveEventDetailsSyncKey, resolveOrderBookRows, resolveResolvedOutcomeLabel, resolveUnifiedOrderBookEntries, shortenAddress, skeletonViews, toDate, typographyVariants, useCenterOrderbookSpread, useClaimWinnings, useEventOpenOrders, useEventTradingContext, useHomePageModals, useOptionalToast, useResolvedMarketClaim, useSharedKycFlow, useToast, venueLogoNames, venueRequiresSharedKyc };
|