@agg-market/ui 5.0.0 → 6.0.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/README.md +26 -26
- package/dist/auth.d.mts +1 -0
- package/dist/auth.d.ts +1 -0
- package/dist/{connect-button.js → auth.js} +6 -4
- package/dist/auth.mjs +8 -0
- package/dist/chunk-2ICOSP7N.mjs +1211 -0
- package/dist/chunk-5ZKPBMRK.mjs +2411 -0
- package/dist/{chunk-5K7VXAYM.mjs → chunk-ADGL6RFX.mjs} +2 -4
- package/dist/chunk-BXW3VIKV.mjs +90 -0
- package/dist/{chart.js → chunk-CN7GI2RJ.mjs} +250 -103
- package/dist/chunk-G6YKGVQR.mjs +769 -0
- package/dist/{chunk-PZTHM6WG.mjs → chunk-HI4EEDN5.mjs} +897 -357
- package/dist/{chunk-5ADMXO3Y.mjs → chunk-INRG3D4M.mjs} +5 -11
- package/dist/{chunk-QDMHLRDY.mjs → chunk-JE3Z52FD.mjs} +90 -38
- package/dist/chunk-KZOQW6NT.mjs +0 -0
- package/dist/chunk-LMOJKJOY.mjs +2616 -0
- package/dist/{chunk-YJA5VQW6.mjs → chunk-MHCHR65A.mjs} +2 -4
- package/dist/{chunk-IGPNIM2B.mjs → chunk-PASXFYKQ.mjs} +2 -4
- package/dist/chunk-UBBOLLOS.mjs +999 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/{event-market-page.js → events.js} +4579 -4935
- package/dist/events.mjs +17 -0
- package/dist/index.d.mts +1 -79
- package/dist/index.d.ts +1 -79
- package/dist/index.js +6839 -6839
- package/dist/index.mjs +66 -170
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/{deposit-modal.js → modals.js} +1771 -6
- package/dist/modals.mjs +25 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/{home-page.js → pages.js} +3868 -6
- package/dist/pages.mjs +16 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/{market-details.js → primitives.js} +3302 -3729
- package/dist/{icon.mjs → primitives.mjs} +56 -9
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/{event-list.js → trading.js} +1426 -1467
- package/dist/trading.mjs +65 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.mts +10 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.ts +10 -0
- package/dist/{connect-button.d.mts → types/auth/connect-button/connect-button.types.d.mts} +5 -12
- package/dist/{connect-button.d.ts → types/auth/connect-button/connect-button.types.d.ts} +5 -12
- package/dist/types/auth/connect-button/index.d.mts +7 -0
- package/dist/types/auth/connect-button/index.d.ts +7 -0
- package/dist/types/auth/index.d.mts +1 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/constants.d.mts +1 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +9 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +9 -0
- package/dist/{deposit-modal.d.mts → types/deposit/deposit-modal.types.d.mts} +3 -10
- package/dist/{deposit-modal.d.ts → types/deposit/deposit-modal.types.d.ts} +3 -10
- package/dist/types/deposit/index.d.mts +6 -0
- package/dist/types/deposit/index.d.ts +6 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +7 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +7 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.mts +5 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.ts +5 -0
- package/dist/types/deposit/steps/venue-selection.d.mts +7 -0
- package/dist/types/deposit/steps/venue-selection.d.ts +7 -0
- package/dist/types/events/index.d.mts +4 -0
- package/dist/types/events/index.d.ts +4 -0
- package/dist/types/events/item/event-list-item.constants.d.mts +1 -0
- package/dist/types/events/item/event-list-item.constants.d.ts +1 -0
- package/dist/types/events/item/event-list-item.types.d.mts +46 -0
- package/dist/types/events/item/event-list-item.types.d.ts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +23 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +23 -0
- package/dist/types/events/item/index.d.mts +6 -0
- package/dist/types/events/item/index.d.ts +6 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +53 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +53 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +26 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +26 -0
- package/dist/types/events/item-details/index.d.mts +6 -0
- package/dist/types/events/item-details/index.d.ts +6 -0
- package/dist/types/events/list/event-list.constants.d.mts +3 -0
- package/dist/types/events/list/event-list.constants.d.ts +3 -0
- package/dist/types/events/list/event-list.types.d.mts +21 -0
- package/dist/types/events/list/event-list.types.d.ts +21 -0
- package/dist/types/events/list/event-list.utils.d.mts +6 -0
- package/dist/types/events/list/event-list.utils.d.ts +6 -0
- package/dist/types/events/list/index.d.mts +6 -0
- package/dist/types/events/list/index.d.ts +6 -0
- package/dist/types/events/market-details/index.d.mts +6 -0
- package/dist/types/events/market-details/index.d.ts +6 -0
- package/dist/types/events/market-details/market-details.constants.d.mts +9 -0
- package/dist/types/events/market-details/market-details.constants.d.ts +9 -0
- package/dist/types/events/market-details/market-details.types.d.mts +63 -0
- package/dist/types/events/market-details/market-details.types.d.ts +63 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +46 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +46 -0
- package/dist/types/index.d.mts +9 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/modals/index.d.mts +4 -0
- package/dist/types/modals/index.d.ts +4 -0
- package/dist/types/onboarding/index.d.mts +11 -0
- package/dist/types/onboarding/index.d.ts +11 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.mts +10 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.ts +10 -0
- package/dist/types/onboarding/onboarding-modal.types.d.mts +55 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +55 -0
- package/dist/types/onboarding/steps/connect-accounts.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-accounts.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.mts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.ts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.mts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.ts +5 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +42 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +42 -0
- package/dist/types/pages/event-market/index.d.mts +6 -0
- package/dist/types/pages/event-market/index.d.ts +6 -0
- package/dist/types/pages/home/home.constants.d.mts +8 -0
- package/dist/types/pages/home/home.constants.d.ts +8 -0
- package/dist/{home-page.d.ts → types/pages/home/home.types.d.mts} +8 -18
- package/dist/{home-page.d.mts → types/pages/home/home.types.d.ts} +8 -18
- package/dist/types/pages/home/home.utils.d.mts +3 -0
- package/dist/types/pages/home/home.utils.d.ts +3 -0
- package/dist/types/pages/home/index.d.mts +6 -0
- package/dist/types/pages/home/index.d.ts +6 -0
- package/dist/types/pages/index.d.mts +3 -0
- package/dist/types/pages/index.d.ts +3 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +12 -0
- package/dist/types/pages/user-profile/components/balances-card.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balances-card.d.ts +12 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.mts +8 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.ts +8 -0
- package/dist/types/pages/user-profile/components/empty-state.d.mts +10 -0
- package/dist/types/pages/user-profile/components/empty-state.d.ts +10 -0
- package/dist/types/pages/user-profile/components/position-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +14 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +14 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +11 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +11 -0
- package/dist/types/pages/user-profile/index.d.mts +6 -0
- package/dist/types/pages/user-profile/index.d.ts +6 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.mts +9 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.ts +9 -0
- package/dist/{user-profile-page.d.ts → types/pages/user-profile/user-profile.types.d.mts} +12 -22
- package/dist/{user-profile-page.d.mts → types/pages/user-profile/user-profile.types.d.ts} +12 -22
- package/dist/types/primitives/badge/badge.constants.d.mts +4 -0
- package/dist/types/primitives/badge/badge.constants.d.ts +4 -0
- package/dist/types/primitives/badge/badge.types.d.mts +18 -0
- package/dist/types/primitives/badge/badge.types.d.ts +18 -0
- package/dist/types/primitives/badge/index.d.mts +7 -0
- package/dist/types/primitives/badge/index.d.ts +7 -0
- package/dist/types/primitives/button/button.constants.d.mts +6 -0
- package/dist/types/primitives/button/button.constants.d.ts +6 -0
- package/dist/types/primitives/button/button.types.d.mts +12 -0
- package/dist/types/primitives/button/button.types.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +6 -0
- package/dist/types/primitives/button/index.d.ts +6 -0
- package/dist/types/primitives/card/card.types.d.mts +3 -0
- package/dist/types/primitives/card/card.types.d.ts +3 -0
- package/dist/types/primitives/card/index.d.mts +6 -0
- package/dist/types/primitives/card/index.d.ts +6 -0
- package/dist/{chart.d.mts → types/primitives/chart/index.d.mts} +7 -10
- package/dist/{chart.d.ts → types/primitives/chart/index.d.ts} +7 -10
- package/dist/types/primitives/hello-world.d.mts +4 -0
- package/dist/types/primitives/hello-world.d.ts +4 -0
- package/dist/types/primitives/icon/icon.constants.d.mts +2 -0
- package/dist/types/primitives/icon/icon.constants.d.ts +2 -0
- package/dist/types/primitives/icon/icon.types.d.mts +9 -0
- package/dist/types/primitives/icon/icon.types.d.ts +9 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +2 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +2 -0
- package/dist/types/primitives/icon/index.d.mts +46 -0
- package/dist/types/primitives/icon/index.d.ts +46 -0
- package/dist/types/primitives/icon/registry.d.mts +166 -0
- package/dist/types/primitives/icon/registry.d.ts +166 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.ts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.mts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/close.d.mts +5 -0
- package/dist/types/primitives/icon/svg/close.d.ts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.mts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.ts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.mts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.ts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.mts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.ts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.mts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.ts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.mts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.ts +5 -0
- package/dist/types/primitives/icon/svg/document.d.mts +5 -0
- package/dist/types/primitives/icon/svg/document.d.ts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +5 -0
- package/dist/types/primitives/icon/svg/download.d.mts +5 -0
- package/dist/types/primitives/icon/svg/download.d.ts +5 -0
- package/dist/types/primitives/icon/svg/email.d.mts +5 -0
- package/dist/types/primitives/icon/svg/email.d.ts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.ts +5 -0
- package/dist/types/primitives/icon/svg/info.d.mts +5 -0
- package/dist/types/primitives/icon/svg/info.d.ts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.mts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.ts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.mts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.ts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.mts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.ts +5 -0
- package/dist/types/primitives/icon/svg/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.d.ts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/search.d.mts +5 -0
- package/dist/types/primitives/icon/svg/search.d.ts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.mts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.ts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.mts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.mts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.ts +5 -0
- package/dist/types/primitives/icon/types.d.mts +5 -0
- package/dist/types/primitives/icon/types.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +17 -0
- package/dist/types/primitives/index.d.ts +17 -0
- package/dist/types/primitives/loading-icon/index.d.mts +11 -0
- package/dist/types/primitives/loading-icon/index.d.ts +11 -0
- package/dist/types/primitives/modal/index.d.mts +10 -0
- package/dist/types/primitives/modal/index.d.ts +10 -0
- package/dist/types/primitives/modal/modal.types.d.mts +54 -0
- package/dist/types/primitives/modal/modal.types.d.ts +54 -0
- package/dist/{number-value.d.mts → types/primitives/number-value.d.mts} +3 -5
- package/dist/{number-value.d.ts → types/primitives/number-value.d.ts} +3 -5
- package/dist/types/primitives/search/index.d.mts +6 -0
- package/dist/types/primitives/search/index.d.ts +6 -0
- package/dist/types/primitives/search/search-empty-icon.d.mts +5 -0
- package/dist/types/primitives/search/search-empty-icon.d.ts +5 -0
- package/dist/types/primitives/search/search.types.d.mts +96 -0
- package/dist/types/primitives/search/search.types.d.ts +96 -0
- package/dist/{select.d.mts → types/primitives/select/index.d.mts} +3 -5
- package/dist/{select.d.ts → types/primitives/select/index.d.ts} +3 -5
- package/dist/types/primitives/skeleton/index.d.mts +7 -0
- package/dist/types/primitives/skeleton/index.d.ts +7 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.mts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.ts +8 -0
- package/dist/{skeleton.d.mts → types/primitives/skeleton/skeleton.types.d.mts} +6 -9
- package/dist/{skeleton.d.ts → types/primitives/skeleton/skeleton.types.d.ts} +6 -9
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +12 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +12 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/{state-message.d.mts → types/primitives/state-message/index.d.mts} +2 -3
- package/dist/{state-message.d.ts → types/primitives/state-message/index.d.ts} +2 -3
- package/dist/{switch-button.d.mts → types/primitives/switch-button/index.d.mts} +4 -7
- package/dist/{switch-button.d.ts → types/primitives/switch-button/index.d.ts} +4 -7
- package/dist/types/primitives/tabs/index.d.mts +6 -0
- package/dist/types/primitives/tabs/index.d.ts +6 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +24 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +24 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +14 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +14 -0
- package/dist/types/primitives/typography/index.d.mts +7 -0
- package/dist/types/primitives/typography/index.d.ts +7 -0
- package/dist/types/primitives/typography/typography.constants.d.mts +3 -0
- package/dist/types/primitives/typography/typography.constants.d.ts +3 -0
- package/dist/types/primitives/typography/typography.types.d.mts +8 -0
- package/dist/types/primitives/typography/typography.types.d.ts +8 -0
- package/dist/types/primitives/venue-logo/index.d.mts +8 -0
- package/dist/types/primitives/venue-logo/index.d.ts +8 -0
- package/dist/types/primitives/venue-logo/logo-props.d.mts +10 -0
- package/dist/types/primitives/venue-logo/logo-props.d.ts +10 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +5 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +17 -0
- package/dist/types/profile/index.d.mts +6 -0
- package/dist/types/profile/index.d.ts +6 -0
- package/dist/types/profile/profile-modal.constants.d.mts +17 -0
- package/dist/types/profile/profile-modal.constants.d.ts +17 -0
- package/dist/{profile-modal.d.mts → types/profile/profile-modal.types.d.mts} +4 -11
- package/dist/{profile-modal.d.ts → types/profile/profile-modal.types.d.ts} +4 -11
- package/dist/types/profile/tabs/about-tab.d.mts +16 -0
- package/dist/types/profile/tabs/about-tab.d.ts +16 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +18 -0
- package/dist/types/shared/constants.d.mts +23 -0
- package/dist/types/shared/constants.d.ts +23 -0
- package/dist/types/shared/query-error.d.mts +2 -0
- package/dist/types/shared/query-error.d.ts +2 -0
- package/dist/types/shared/types.d.mts +1 -0
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/shared/utils.d.mts +15 -0
- package/dist/types/shared/utils.d.ts +15 -0
- package/dist/types/trading/index.d.mts +4 -0
- package/dist/types/trading/index.d.ts +4 -0
- package/dist/{place-order.d.ts → types/trading/place-order/index.d.mts} +3 -7
- package/dist/{place-order.d.mts → types/trading/place-order/index.d.ts} +3 -7
- package/dist/{settlement.d.ts → types/trading/settlement/index.d.mts} +3 -7
- package/dist/{settlement.d.mts → types/trading/settlement/index.d.ts} +3 -7
- package/dist/{types-BImwqY4o.d.ts → types/trading/types.d.mts} +35 -38
- package/dist/{types-BImwqY4o.d.mts → types/trading/types.d.ts} +35 -38
- package/dist/types/trading/utils.d.mts +16 -0
- package/dist/types/trading/utils.d.ts +16 -0
- package/dist/types/withdraw/index.d.mts +6 -0
- package/dist/types/withdraw/index.d.ts +6 -0
- package/dist/types/withdraw/steps/kalshi-withdraw.d.mts +5 -0
- package/dist/types/withdraw/steps/kalshi-withdraw.d.ts +5 -0
- package/dist/types/withdraw/steps/venue-selection.d.mts +6 -0
- package/dist/types/withdraw/steps/venue-selection.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +8 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +8 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +9 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +9 -0
- package/dist/{withdraw-modal.d.mts → types/withdraw/withdraw-modal.types.d.mts} +3 -10
- package/dist/{withdraw-modal.d.ts → types/withdraw/withdraw-modal.types.d.ts} +3 -10
- package/package.json +33 -283
- package/dist/badge.d.mts +0 -28
- package/dist/badge.d.ts +0 -28
- package/dist/badge.js +0 -110
- package/dist/badge.mjs +0 -9
- package/dist/button.d.mts +0 -20
- package/dist/button.d.ts +0 -20
- package/dist/button.js +0 -183
- package/dist/button.mjs +0 -8
- package/dist/card.d.mts +0 -10
- package/dist/card.d.ts +0 -10
- package/dist/card.js +0 -88
- package/dist/card.mjs +0 -7
- package/dist/chart.mjs +0 -8
- package/dist/chunk-34IRJYSU.mjs +0 -146
- package/dist/chunk-3QLOUBDJ.mjs +0 -483
- package/dist/chunk-3W7NBJLU.mjs +0 -371
- package/dist/chunk-4343LYSH.mjs +0 -45
- package/dist/chunk-4S3I6X7F.mjs +0 -855
- package/dist/chunk-4VUDTWH7.mjs +0 -42
- package/dist/chunk-6JG6I5AY.mjs +0 -654
- package/dist/chunk-BNDFQPHF.mjs +0 -9
- package/dist/chunk-CTYJVVHJ.mjs +0 -334
- package/dist/chunk-DHBHKIJR.mjs +0 -1049
- package/dist/chunk-ERGNR6UQ.mjs +0 -67
- package/dist/chunk-FO263M3V.mjs +0 -10
- package/dist/chunk-FO2QCB4Z.mjs +0 -35
- package/dist/chunk-GFBF2J3Y.mjs +0 -328
- package/dist/chunk-GJ4U5NCE.mjs +0 -134
- package/dist/chunk-K6IJ4WBM.mjs +0 -67
- package/dist/chunk-KAGYJ4XT.mjs +0 -126
- package/dist/chunk-KIYMVWL4.mjs +0 -280
- package/dist/chunk-LCZKSITC.mjs +0 -162
- package/dist/chunk-M4RJHRFT.mjs +0 -445
- package/dist/chunk-MJHKBCXQ.mjs +0 -379
- package/dist/chunk-MKVGQ7AS.mjs +0 -168
- package/dist/chunk-NDG43KGL.mjs +0 -44
- package/dist/chunk-NH2G3POM.mjs +0 -470
- package/dist/chunk-OBCHURW5.mjs +0 -64
- package/dist/chunk-OJVTGNIF.mjs +0 -230
- package/dist/chunk-PORVP72S.mjs +0 -277
- package/dist/chunk-Q6DGDBPV.mjs +0 -774
- package/dist/chunk-QLMVKLNJ.mjs +0 -669
- package/dist/chunk-S3H63TQ5.mjs +0 -537
- package/dist/chunk-T7TATHPD.mjs +0 -313
- package/dist/chunk-XUCS575S.mjs +0 -65
- package/dist/chunk-ZFMCCBP6.mjs +0 -25
- package/dist/connect-button.mjs +0 -14
- package/dist/deposit-modal.mjs +0 -15
- package/dist/event-list-item-details.d.mts +0 -11
- package/dist/event-list-item-details.d.ts +0 -11
- package/dist/event-list-item-details.js +0 -3711
- package/dist/event-list-item-details.mjs +0 -23
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +0 -53
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +0 -53
- package/dist/event-list-item.d.mts +0 -10
- package/dist/event-list-item.d.ts +0 -10
- package/dist/event-list-item.js +0 -2821
- package/dist/event-list-item.mjs +0 -20
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +0 -46
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +0 -46
- package/dist/event-list.d.mts +0 -9
- package/dist/event-list.d.ts +0 -9
- package/dist/event-list.mjs +0 -23
- package/dist/event-list.types-CkAAUqwW.d.mts +0 -13
- package/dist/event-list.types-CkAAUqwW.d.ts +0 -13
- package/dist/event-market-page.d.mts +0 -52
- package/dist/event-market-page.d.ts +0 -52
- package/dist/event-market-page.mjs +0 -30
- package/dist/hello-world.d.mts +0 -8
- package/dist/hello-world.d.ts +0 -8
- package/dist/hello-world.js +0 -92
- package/dist/hello-world.mjs +0 -8
- package/dist/home-page.mjs +0 -24
- package/dist/icon.d.mts +0 -193
- package/dist/icon.d.ts +0 -193
- package/dist/icon.js +0 -1465
- package/dist/loading-icon.d.mts +0 -14
- package/dist/loading-icon.d.ts +0 -14
- package/dist/loading-icon.js +0 -112
- package/dist/loading-icon.mjs +0 -8
- package/dist/market-details.d.mts +0 -73
- package/dist/market-details.d.ts +0 -73
- package/dist/market-details.mjs +0 -24
- package/dist/modal.d.mts +0 -66
- package/dist/modal.d.ts +0 -66
- package/dist/modal.js +0 -321
- package/dist/modal.mjs +0 -9
- package/dist/number-value.js +0 -67
- package/dist/number-value.mjs +0 -7
- package/dist/onboarding-modal.d.mts +0 -88
- package/dist/onboarding-modal.d.ts +0 -88
- package/dist/onboarding-modal.js +0 -2836
- package/dist/onboarding-modal.mjs +0 -24
- package/dist/place-order.js +0 -3248
- package/dist/place-order.mjs +0 -18
- package/dist/profile-modal.js +0 -2447
- package/dist/profile-modal.mjs +0 -14
- package/dist/registry-DfSCFAdC.d.mts +0 -178
- package/dist/registry-DfSCFAdC.d.ts +0 -178
- package/dist/search.d.mts +0 -51
- package/dist/search.d.ts +0 -51
- package/dist/search.js +0 -1957
- package/dist/search.mjs +0 -13
- package/dist/select.js +0 -1552
- package/dist/select.mjs +0 -11
- package/dist/settlement.js +0 -2445
- package/dist/settlement.mjs +0 -15
- package/dist/skeleton.js +0 -490
- package/dist/skeleton.mjs +0 -10
- package/dist/state-message.js +0 -1629
- package/dist/state-message.mjs +0 -14
- package/dist/switch-button.js +0 -191
- package/dist/switch-button.mjs +0 -7
- package/dist/tabs.d.mts +0 -31
- package/dist/tabs.d.ts +0 -31
- package/dist/tabs.js +0 -2078
- package/dist/tabs.mjs +0 -12
- package/dist/types-BVj9ky9P.d.mts +0 -3
- package/dist/types-BVj9ky9P.d.ts +0 -3
- package/dist/typography.d.mts +0 -18
- package/dist/typography.d.ts +0 -18
- package/dist/typography.js +0 -93
- package/dist/typography.mjs +0 -9
- package/dist/user-profile-page.js +0 -3081
- package/dist/user-profile-page.mjs +0 -15
- package/dist/venue-logo.d.mts +0 -13
- package/dist/venue-logo.d.ts +0 -13
- package/dist/venue-logo.js +0 -323
- package/dist/venue-logo.mjs +0 -10
- package/dist/venue-logo.types-CGUc22ly.d.mts +0 -19
- package/dist/venue-logo.types-Dqr39S1-.d.ts +0 -19
- package/dist/withdraw-modal.js +0 -2449
- package/dist/withdraw-modal.mjs +0 -14
package/dist/chunk-QLMVKLNJ.mjs
DELETED
|
@@ -1,669 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Modal
|
|
3
|
-
} from "./chunk-5K7VXAYM.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Select
|
|
6
|
-
} from "./chunk-YJA5VQW6.mjs";
|
|
7
|
-
import {
|
|
8
|
-
VenueLogo,
|
|
9
|
-
venueLogoLabels
|
|
10
|
-
} from "./chunk-PORVP72S.mjs";
|
|
11
|
-
import {
|
|
12
|
-
BoltIcon,
|
|
13
|
-
ChevronLeftIcon,
|
|
14
|
-
ChevronRightIcon,
|
|
15
|
-
CopyIcon,
|
|
16
|
-
CreditCardIcon,
|
|
17
|
-
ExternalLinkIcon,
|
|
18
|
-
WarningFilledIcon
|
|
19
|
-
} from "./chunk-PZTHM6WG.mjs";
|
|
20
|
-
import {
|
|
21
|
-
Button
|
|
22
|
-
} from "./chunk-KAGYJ4XT.mjs";
|
|
23
|
-
import {
|
|
24
|
-
cn,
|
|
25
|
-
formatAmountDisplay,
|
|
26
|
-
formatCompactUsd
|
|
27
|
-
} from "./chunk-GJ4U5NCE.mjs";
|
|
28
|
-
|
|
29
|
-
// src/deposit/index.tsx
|
|
30
|
-
import { useState as useState3 } from "react";
|
|
31
|
-
|
|
32
|
-
// src/deposit/deposit-modal.constants.ts
|
|
33
|
-
var KALSHI_VENUE = "kalshi";
|
|
34
|
-
var KALSHI_DEPOSIT_URL_DEFAULT = "https://kalshi.com/account/deposit";
|
|
35
|
-
|
|
36
|
-
// src/deposit/steps/venue-selection.tsx
|
|
37
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
38
|
-
var VenueRow = ({ venue, onSelect }) => {
|
|
39
|
-
var _a;
|
|
40
|
-
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
41
|
-
const hasShortfall = venue.shortfall != null && venue.shortfall > 0;
|
|
42
|
-
return /* @__PURE__ */ jsxs(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: cn(
|
|
46
|
-
"flex items-center gap-3 sm:gap-4",
|
|
47
|
-
"rounded-xl border border-separator",
|
|
48
|
-
"p-3 sm:p-4",
|
|
49
|
-
"hover:bg-secondary-hover transition-colors cursor-pointer"
|
|
50
|
-
),
|
|
51
|
-
role: "button",
|
|
52
|
-
tabIndex: 0,
|
|
53
|
-
onClick: () => onSelect(venue.venue),
|
|
54
|
-
onKeyDown: (e) => {
|
|
55
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
onSelect(venue.venue);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsx(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
|
|
62
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
63
|
-
/* @__PURE__ */ jsx("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
|
|
64
|
-
/* @__PURE__ */ jsxs("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
65
|
-
"Balance ",
|
|
66
|
-
formatCompactUsd(venue.balance)
|
|
67
|
-
] })
|
|
68
|
-
] }),
|
|
69
|
-
hasShortfall ? /* @__PURE__ */ jsxs("div", { className: "hidden sm:flex items-center gap-1.5 shrink-0", children: [
|
|
70
|
-
/* @__PURE__ */ jsx(WarningFilledIcon, { className: "h-4 w-4 text-agg-warning" }),
|
|
71
|
-
/* @__PURE__ */ jsxs("span", { className: "agg-type-label-strong whitespace-nowrap text-agg-warning", children: [
|
|
72
|
-
"Short ",
|
|
73
|
-
formatCompactUsd(venue.shortfall)
|
|
74
|
-
] })
|
|
75
|
-
] }) : null,
|
|
76
|
-
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsx(
|
|
77
|
-
Button,
|
|
78
|
-
{
|
|
79
|
-
variant: "secondary",
|
|
80
|
-
size: "small",
|
|
81
|
-
suffix: /* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
|
82
|
-
onClick: (e) => {
|
|
83
|
-
e.stopPropagation();
|
|
84
|
-
onSelect(venue.venue);
|
|
85
|
-
},
|
|
86
|
-
children: hasShortfall ? "Continue" : "Select"
|
|
87
|
-
}
|
|
88
|
-
) })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
};
|
|
93
|
-
var VenueSelectionStep = ({
|
|
94
|
-
venues,
|
|
95
|
-
hasAnyShortfall,
|
|
96
|
-
onSelectVenue
|
|
97
|
-
}) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
98
|
-
/* @__PURE__ */ jsx(Modal.Header, { title: "Deposit", hideBorder: true }),
|
|
99
|
-
/* @__PURE__ */ jsx(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
100
|
-
!hasAnyShortfall ? /* @__PURE__ */ jsx("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to deposit funds:" }) : null,
|
|
101
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ jsx(VenueRow, { venue, onSelect: onSelectVenue }, venue.venue)) })
|
|
102
|
-
] }) })
|
|
103
|
-
] });
|
|
104
|
-
|
|
105
|
-
// src/deposit/steps/deposit-method.tsx
|
|
106
|
-
import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
107
|
-
var DepositMethodCard = ({
|
|
108
|
-
icon,
|
|
109
|
-
title,
|
|
110
|
-
description,
|
|
111
|
-
onContinue
|
|
112
|
-
}) => /* @__PURE__ */ jsxs2(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
className: cn(
|
|
116
|
-
"flex items-center gap-3 sm:gap-4",
|
|
117
|
-
"rounded-xl border border-separator",
|
|
118
|
-
"p-3 sm:p-4",
|
|
119
|
-
"hover:bg-secondary-hover transition-colors cursor-pointer"
|
|
120
|
-
),
|
|
121
|
-
role: "button",
|
|
122
|
-
tabIndex: 0,
|
|
123
|
-
onClick: onContinue,
|
|
124
|
-
onKeyDown: (e) => {
|
|
125
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
126
|
-
e.preventDefault();
|
|
127
|
-
onContinue();
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ jsx2("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
|
|
132
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex-1 min-w-0", children: [
|
|
133
|
-
/* @__PURE__ */ jsx2("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
|
|
134
|
-
/* @__PURE__ */ jsx2("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
|
|
135
|
-
] }),
|
|
136
|
-
/* @__PURE__ */ jsx2("div", { className: "shrink-0", children: /* @__PURE__ */ jsx2(
|
|
137
|
-
Button,
|
|
138
|
-
{
|
|
139
|
-
variant: "secondary",
|
|
140
|
-
size: "small",
|
|
141
|
-
suffix: /* @__PURE__ */ jsx2(ChevronRightIcon, {}),
|
|
142
|
-
onClick: (e) => {
|
|
143
|
-
e.stopPropagation();
|
|
144
|
-
onContinue();
|
|
145
|
-
},
|
|
146
|
-
children: "Continue"
|
|
147
|
-
}
|
|
148
|
-
) })
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
var DepositMethodStep = ({
|
|
153
|
-
venue,
|
|
154
|
-
onBack,
|
|
155
|
-
onSelectMethod
|
|
156
|
-
}) => {
|
|
157
|
-
var _a;
|
|
158
|
-
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
159
|
-
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
160
|
-
/* @__PURE__ */ jsx2(
|
|
161
|
-
Modal.Header,
|
|
162
|
-
{
|
|
163
|
-
title: `Deposit to ${displayName}`,
|
|
164
|
-
hideBorder: true,
|
|
165
|
-
leftElement: /* @__PURE__ */ jsx2(
|
|
166
|
-
"button",
|
|
167
|
-
{
|
|
168
|
-
type: "button",
|
|
169
|
-
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
170
|
-
onClick: onBack,
|
|
171
|
-
"aria-label": "Go back",
|
|
172
|
-
children: /* @__PURE__ */ jsx2(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx2(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-4", children: [
|
|
178
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-2", children: [
|
|
179
|
-
/* @__PURE__ */ jsx2(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
180
|
-
/* @__PURE__ */ jsxs2("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
181
|
-
displayName,
|
|
182
|
-
" balance: ",
|
|
183
|
-
formatCompactUsd(venue.balance)
|
|
184
|
-
] })
|
|
185
|
-
] }),
|
|
186
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-3", children: [
|
|
187
|
-
/* @__PURE__ */ jsx2(
|
|
188
|
-
DepositMethodCard,
|
|
189
|
-
{
|
|
190
|
-
icon: /* @__PURE__ */ jsx2(BoltIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
191
|
-
title: "Transfer Crypto",
|
|
192
|
-
description: "Send USDC from your blockchain wallet.",
|
|
193
|
-
onContinue: () => onSelectMethod("crypto")
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
/* @__PURE__ */ jsx2(
|
|
197
|
-
DepositMethodCard,
|
|
198
|
-
{
|
|
199
|
-
icon: /* @__PURE__ */ jsx2(CreditCardIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
200
|
-
title: "Deposit with Card",
|
|
201
|
-
description: "Buy USDC instantly with a debit or credit card.",
|
|
202
|
-
onContinue: () => onSelectMethod("card")
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
] })
|
|
206
|
-
] }) })
|
|
207
|
-
] });
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// src/deposit/steps/card-deposit.tsx
|
|
211
|
-
import { useCallback, useState } from "react";
|
|
212
|
-
import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
213
|
-
var CardDepositStep = ({
|
|
214
|
-
venue,
|
|
215
|
-
onBack,
|
|
216
|
-
onContinue
|
|
217
|
-
}) => {
|
|
218
|
-
var _a;
|
|
219
|
-
const [rawAmount, setRawAmount] = useState("");
|
|
220
|
-
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
221
|
-
const numericAmount = Number(rawAmount) || 0;
|
|
222
|
-
const isValid = numericAmount > 0;
|
|
223
|
-
const handleAmountChange = useCallback((e) => {
|
|
224
|
-
const v = e.target.value.replace(/[^0-9.]/g, "");
|
|
225
|
-
const parts = v.split(".");
|
|
226
|
-
const sanitized = parts.length > 2 ? `${parts[0]}.${parts.slice(1).join("")}` : v;
|
|
227
|
-
setRawAmount(sanitized);
|
|
228
|
-
}, []);
|
|
229
|
-
return /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
230
|
-
/* @__PURE__ */ jsx3(
|
|
231
|
-
Modal.Header,
|
|
232
|
-
{
|
|
233
|
-
title: `Deposit to ${displayName}`,
|
|
234
|
-
hideBorder: true,
|
|
235
|
-
leftElement: /* @__PURE__ */ jsx3(
|
|
236
|
-
"button",
|
|
237
|
-
{
|
|
238
|
-
type: "button",
|
|
239
|
-
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
240
|
-
onClick: onBack,
|
|
241
|
-
"aria-label": "Go back",
|
|
242
|
-
children: /* @__PURE__ */ jsx3(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
243
|
-
}
|
|
244
|
-
)
|
|
245
|
-
}
|
|
246
|
-
),
|
|
247
|
-
/* @__PURE__ */ jsx3(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-6", children: [
|
|
248
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2", children: [
|
|
249
|
-
/* @__PURE__ */ jsx3(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
250
|
-
/* @__PURE__ */ jsxs3("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
251
|
-
displayName,
|
|
252
|
-
" balance: ",
|
|
253
|
-
formatCompactUsd(venue.balance)
|
|
254
|
-
] })
|
|
255
|
-
] }),
|
|
256
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-3", children: [
|
|
257
|
-
/* @__PURE__ */ jsx3("div", { className: "shrink-0", children: /* @__PURE__ */ jsx3(
|
|
258
|
-
Select,
|
|
259
|
-
{
|
|
260
|
-
items: [{ value: "USD", label: "USD" }],
|
|
261
|
-
value: "USD",
|
|
262
|
-
onChange: () => {
|
|
263
|
-
},
|
|
264
|
-
ariaLabel: "Currency",
|
|
265
|
-
className: "w-auto"
|
|
266
|
-
}
|
|
267
|
-
) }),
|
|
268
|
-
/* @__PURE__ */ jsx3("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsxs3("div", { className: "flex items-baseline", children: [
|
|
269
|
-
/* @__PURE__ */ jsx3("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
|
|
270
|
-
/* @__PURE__ */ jsx3(
|
|
271
|
-
"input",
|
|
272
|
-
{
|
|
273
|
-
type: "text",
|
|
274
|
-
inputMode: "decimal",
|
|
275
|
-
"aria-label": "Amount",
|
|
276
|
-
className: cn(
|
|
277
|
-
"agg-type-display w-full bg-transparent outline-none",
|
|
278
|
-
isValid ? "text-agg-foreground" : "text-agg-muted-foreground"
|
|
279
|
-
),
|
|
280
|
-
placeholder: "0",
|
|
281
|
-
value: rawAmount ? formatAmountDisplay(rawAmount) : "",
|
|
282
|
-
onChange: handleAmountChange
|
|
283
|
-
}
|
|
284
|
-
)
|
|
285
|
-
] }) })
|
|
286
|
-
] }),
|
|
287
|
-
/* @__PURE__ */ jsxs3(
|
|
288
|
-
"div",
|
|
289
|
-
{
|
|
290
|
-
className: cn(
|
|
291
|
-
"flex items-center gap-3",
|
|
292
|
-
"rounded-xl border border-separator",
|
|
293
|
-
"p-3 sm:p-4",
|
|
294
|
-
"hover:bg-secondary-hover transition-colors cursor-pointer"
|
|
295
|
-
),
|
|
296
|
-
role: "button",
|
|
297
|
-
tabIndex: 0,
|
|
298
|
-
children: [
|
|
299
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex-1 min-w-0", children: [
|
|
300
|
-
/* @__PURE__ */ jsx3("p", { className: "agg-type-body-strong text-agg-foreground", children: "Provider" }),
|
|
301
|
-
/* @__PURE__ */ jsx3("p", { className: "agg-type-label text-agg-muted-foreground", children: "Auto-picked for you" })
|
|
302
|
-
] }),
|
|
303
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
304
|
-
/* @__PURE__ */ jsx3("span", { className: "agg-type-label-strong text-agg-foreground", children: "Swapped" }),
|
|
305
|
-
/* @__PURE__ */ jsx3(ChevronRightIcon, { className: "h-4 w-4 text-agg-foreground" })
|
|
306
|
-
] })
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
),
|
|
310
|
-
/* @__PURE__ */ jsx3(
|
|
311
|
-
Button,
|
|
312
|
-
{
|
|
313
|
-
variant: "primary",
|
|
314
|
-
size: "large",
|
|
315
|
-
className: "w-full",
|
|
316
|
-
disabled: !isValid,
|
|
317
|
-
onClick: () => onContinue(numericAmount),
|
|
318
|
-
children: "Continue"
|
|
319
|
-
}
|
|
320
|
-
)
|
|
321
|
-
] }) })
|
|
322
|
-
] });
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
// src/deposit/steps/crypto-transfer.tsx
|
|
326
|
-
import { useCallback as useCallback2, useMemo, useState as useState2 } from "react";
|
|
327
|
-
|
|
328
|
-
// src/shared/constants.ts
|
|
329
|
-
var USDC = {
|
|
330
|
-
value: "USDC",
|
|
331
|
-
label: "USDC",
|
|
332
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/usdc.svg"
|
|
333
|
-
};
|
|
334
|
-
var SUPPORTED_NETWORKS = [
|
|
335
|
-
{
|
|
336
|
-
value: "base",
|
|
337
|
-
label: "Base",
|
|
338
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/base/colored.svg",
|
|
339
|
-
tokens: [USDC]
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
value: "mainnet",
|
|
343
|
-
label: "Ethereum Mainnet",
|
|
344
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/eth/colored.svg",
|
|
345
|
-
tokens: [USDC]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
value: "polygon",
|
|
349
|
-
label: "Polygon Mainnet",
|
|
350
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/polygon/colored.svg",
|
|
351
|
-
tokens: [USDC]
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
value: "solana",
|
|
355
|
-
label: "Solana",
|
|
356
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/solana/dark.svg",
|
|
357
|
-
tokens: [USDC]
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
value: "zksync",
|
|
361
|
-
label: "zkSync Era",
|
|
362
|
-
iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/zksync/colored.svg",
|
|
363
|
-
tokens: [USDC]
|
|
364
|
-
}
|
|
365
|
-
];
|
|
366
|
-
var getTokensForNetwork = (networkValue) => {
|
|
367
|
-
var _a;
|
|
368
|
-
const network = SUPPORTED_NETWORKS.find((n) => n.value === networkValue);
|
|
369
|
-
return (_a = network == null ? void 0 : network.tokens) != null ? _a : [];
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
// src/deposit/steps/crypto-transfer.tsx
|
|
373
|
-
import { Fragment as Fragment4, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
374
|
-
var CryptoTransferStep = ({
|
|
375
|
-
venue,
|
|
376
|
-
onBack,
|
|
377
|
-
onDone
|
|
378
|
-
}) => {
|
|
379
|
-
var _a, _b, _c, _d, _e;
|
|
380
|
-
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
381
|
-
const defaultNetwork = (_c = (_b = SUPPORTED_NETWORKS[0]) == null ? void 0 : _b.value) != null ? _c : "";
|
|
382
|
-
const [selectedNetwork, setSelectedNetwork] = useState2(defaultNetwork);
|
|
383
|
-
const tokenItems = useMemo(() => {
|
|
384
|
-
const tokens = getTokensForNetwork(selectedNetwork);
|
|
385
|
-
return tokens.map((t) => ({
|
|
386
|
-
value: t.value,
|
|
387
|
-
label: t.label,
|
|
388
|
-
iconUrl: t.iconUrl
|
|
389
|
-
}));
|
|
390
|
-
}, [selectedNetwork]);
|
|
391
|
-
const [selectedToken, setSelectedToken] = useState2((_e = (_d = tokenItems[0]) == null ? void 0 : _d.value) != null ? _e : "");
|
|
392
|
-
const networkItems = useMemo(
|
|
393
|
-
() => SUPPORTED_NETWORKS.map((n) => ({
|
|
394
|
-
value: n.value,
|
|
395
|
-
label: n.label,
|
|
396
|
-
iconUrl: n.iconUrl
|
|
397
|
-
})),
|
|
398
|
-
[]
|
|
399
|
-
);
|
|
400
|
-
const handleNetworkChange = useCallback2((networkValue) => {
|
|
401
|
-
var _a2, _b2;
|
|
402
|
-
setSelectedNetwork(networkValue);
|
|
403
|
-
const tokens = getTokensForNetwork(networkValue);
|
|
404
|
-
setSelectedToken((_b2 = (_a2 = tokens[0]) == null ? void 0 : _a2.value) != null ? _b2 : "");
|
|
405
|
-
}, []);
|
|
406
|
-
const depositAddress = "82nbtQamxV3KPZtyRMXjrQ4xwQJMRcXn2PYmpfQyq5UK";
|
|
407
|
-
const handleCopyAddress = useCallback2(() => {
|
|
408
|
-
void navigator.clipboard.writeText(depositAddress);
|
|
409
|
-
}, [depositAddress]);
|
|
410
|
-
return /* @__PURE__ */ jsxs4(Fragment4, { children: [
|
|
411
|
-
/* @__PURE__ */ jsx4(
|
|
412
|
-
Modal.Header,
|
|
413
|
-
{
|
|
414
|
-
title: `Deposit to ${displayName}`,
|
|
415
|
-
hideBorder: true,
|
|
416
|
-
leftElement: /* @__PURE__ */ jsx4(
|
|
417
|
-
"button",
|
|
418
|
-
{
|
|
419
|
-
type: "button",
|
|
420
|
-
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
421
|
-
onClick: onBack,
|
|
422
|
-
"aria-label": "Go back",
|
|
423
|
-
children: /* @__PURE__ */ jsx4(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
424
|
-
}
|
|
425
|
-
)
|
|
426
|
-
}
|
|
427
|
-
),
|
|
428
|
-
/* @__PURE__ */ jsx4(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-7", children: [
|
|
429
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-5", children: [
|
|
430
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex gap-6", children: [
|
|
431
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
432
|
-
/* @__PURE__ */ jsx4("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported token" }),
|
|
433
|
-
/* @__PURE__ */ jsx4(
|
|
434
|
-
Select,
|
|
435
|
-
{
|
|
436
|
-
items: tokenItems,
|
|
437
|
-
value: selectedToken,
|
|
438
|
-
onChange: setSelectedToken,
|
|
439
|
-
ariaLabel: "Supported token"
|
|
440
|
-
}
|
|
441
|
-
)
|
|
442
|
-
] }),
|
|
443
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
444
|
-
/* @__PURE__ */ jsx4("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported network" }),
|
|
445
|
-
/* @__PURE__ */ jsx4(
|
|
446
|
-
Select,
|
|
447
|
-
{
|
|
448
|
-
items: networkItems,
|
|
449
|
-
value: selectedNetwork,
|
|
450
|
-
onChange: handleNetworkChange,
|
|
451
|
-
ariaLabel: "Supported network"
|
|
452
|
-
}
|
|
453
|
-
)
|
|
454
|
-
] })
|
|
455
|
-
] }),
|
|
456
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2", children: [
|
|
457
|
-
/* @__PURE__ */ jsx4("p", { className: "agg-type-label-strong text-agg-foreground", children: "Your deposit address" }),
|
|
458
|
-
/* @__PURE__ */ jsxs4(
|
|
459
|
-
"div",
|
|
460
|
-
{
|
|
461
|
-
className: cn(
|
|
462
|
-
"flex items-center gap-2",
|
|
463
|
-
"rounded border border-separator bg-secondary",
|
|
464
|
-
"h-10 px-3"
|
|
465
|
-
),
|
|
466
|
-
children: [
|
|
467
|
-
/* @__PURE__ */ jsx4("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
|
|
468
|
-
/* @__PURE__ */ jsx4(
|
|
469
|
-
"button",
|
|
470
|
-
{
|
|
471
|
-
type: "button",
|
|
472
|
-
className: "shrink-0 text-agg-muted-foreground transition-colors hover:text-agg-foreground",
|
|
473
|
-
onClick: handleCopyAddress,
|
|
474
|
-
"aria-label": "Copy deposit address",
|
|
475
|
-
children: /* @__PURE__ */ jsx4(CopyIcon, { className: "h-4 w-4" })
|
|
476
|
-
}
|
|
477
|
-
)
|
|
478
|
-
]
|
|
479
|
-
}
|
|
480
|
-
)
|
|
481
|
-
] })
|
|
482
|
-
] }),
|
|
483
|
-
/* @__PURE__ */ jsx4(Button, { variant: "secondary", size: "large", className: "w-full", onClick: onDone, children: "Done" })
|
|
484
|
-
] }) })
|
|
485
|
-
] });
|
|
486
|
-
};
|
|
487
|
-
|
|
488
|
-
// src/deposit/steps/kalshi-deposit.tsx
|
|
489
|
-
import { Fragment as Fragment5, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
490
|
-
var KalshiStepCard = ({
|
|
491
|
-
step,
|
|
492
|
-
title,
|
|
493
|
-
description,
|
|
494
|
-
children
|
|
495
|
-
}) => /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
|
|
496
|
-
/* @__PURE__ */ jsxs5("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
|
|
497
|
-
"Step ",
|
|
498
|
-
step
|
|
499
|
-
] }),
|
|
500
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1", children: [
|
|
501
|
-
/* @__PURE__ */ jsx5("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
|
|
502
|
-
/* @__PURE__ */ jsx5("p", { className: "agg-type-label text-agg-foreground", children: description })
|
|
503
|
-
] }),
|
|
504
|
-
children
|
|
505
|
-
] });
|
|
506
|
-
var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ jsxs5(Fragment5, { children: [
|
|
507
|
-
/* @__PURE__ */ jsx5(Modal.Header, { title: "", hideBorder: true }),
|
|
508
|
-
/* @__PURE__ */ jsx5(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center gap-8", children: [
|
|
509
|
-
/* @__PURE__ */ jsx5(
|
|
510
|
-
VenueLogo,
|
|
511
|
-
{
|
|
512
|
-
venue: "kalshi",
|
|
513
|
-
size: "large",
|
|
514
|
-
className: "h-[60px] w-[60px] rounded-lg"
|
|
515
|
-
}
|
|
516
|
-
),
|
|
517
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
518
|
-
/* @__PURE__ */ jsx5("h2", { className: "agg-type-heading text-agg-foreground", children: "Fund Your Kalshi Account" }),
|
|
519
|
-
/* @__PURE__ */ jsx5("p", { className: "agg-type-body text-agg-foreground", children: "To trade on Kalshi you'll need to add funds to your Kalshi balance first. You can do this on Kalshi's site." })
|
|
520
|
-
] }),
|
|
521
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex w-full flex-col gap-4", children: [
|
|
522
|
-
/* @__PURE__ */ jsx5(
|
|
523
|
-
KalshiStepCard,
|
|
524
|
-
{
|
|
525
|
-
step: 1,
|
|
526
|
-
title: "Open Kalshi Deposit Page",
|
|
527
|
-
description: "Sign in to your Kalshi account and go to Deposit (Add Funds) from your account menu.",
|
|
528
|
-
children: /* @__PURE__ */ jsx5("div", { className: "mt-1", children: /* @__PURE__ */ jsx5(
|
|
529
|
-
Button,
|
|
530
|
-
{
|
|
531
|
-
variant: "secondary",
|
|
532
|
-
size: "small",
|
|
533
|
-
suffix: /* @__PURE__ */ jsx5(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
|
|
534
|
-
onClick: () => {
|
|
535
|
-
window.open(depositUrl, "_blank", "noopener,noreferrer");
|
|
536
|
-
},
|
|
537
|
-
children: "Open Kalshi"
|
|
538
|
-
}
|
|
539
|
-
) })
|
|
540
|
-
}
|
|
541
|
-
),
|
|
542
|
-
/* @__PURE__ */ jsx5(
|
|
543
|
-
KalshiStepCard,
|
|
544
|
-
{
|
|
545
|
-
step: 2,
|
|
546
|
-
title: "Choose a Funding Method",
|
|
547
|
-
description: "Select a deposit method: Bank transfer (ACH), Debit card, Wire, or USDC (crypto)."
|
|
548
|
-
}
|
|
549
|
-
),
|
|
550
|
-
/* @__PURE__ */ jsx5(
|
|
551
|
-
KalshiStepCard,
|
|
552
|
-
{
|
|
553
|
-
step: 3,
|
|
554
|
-
title: "Complete Your Deposit",
|
|
555
|
-
description: "Follow the on-screen instructions to confirm your deposit. Funds may arrive instantly (card/crypto) or within a few business days (ACH/wire)."
|
|
556
|
-
}
|
|
557
|
-
)
|
|
558
|
-
] }),
|
|
559
|
-
/* @__PURE__ */ jsx5(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
|
|
560
|
-
] }) })
|
|
561
|
-
] });
|
|
562
|
-
|
|
563
|
-
// src/deposit/index.tsx
|
|
564
|
-
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
565
|
-
var DepositModal = ({
|
|
566
|
-
open,
|
|
567
|
-
onOpenChange,
|
|
568
|
-
venues,
|
|
569
|
-
onSelectVenue,
|
|
570
|
-
onSelectDepositMethod,
|
|
571
|
-
onContinueCardDeposit,
|
|
572
|
-
onDoneCryptoTransfer,
|
|
573
|
-
onDoneKalshi,
|
|
574
|
-
kalshiDepositUrl = KALSHI_DEPOSIT_URL_DEFAULT
|
|
575
|
-
}) => {
|
|
576
|
-
const [step, setStep] = useState3("venues");
|
|
577
|
-
const [selectedVenue, setSelectedVenue] = useState3(null);
|
|
578
|
-
const hasAnyShortfall = venues.some((v) => v.shortfall != null && v.shortfall > 0);
|
|
579
|
-
const handleSelectVenue = (venueSlug) => {
|
|
580
|
-
onSelectVenue(venueSlug);
|
|
581
|
-
if (venueSlug === KALSHI_VENUE) {
|
|
582
|
-
setStep("kalshi");
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
const venueData = venues.find((v) => v.venue === venueSlug);
|
|
586
|
-
if (venueData) {
|
|
587
|
-
setSelectedVenue(venueData);
|
|
588
|
-
setStep("method");
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
const handleBackToVenues = () => {
|
|
592
|
-
setStep("venues");
|
|
593
|
-
setSelectedVenue(null);
|
|
594
|
-
};
|
|
595
|
-
const handleBackToMethod = () => {
|
|
596
|
-
setStep("method");
|
|
597
|
-
};
|
|
598
|
-
const handleSelectMethod = (method) => {
|
|
599
|
-
if (!selectedVenue)
|
|
600
|
-
return;
|
|
601
|
-
if (method === "card") {
|
|
602
|
-
setStep("card-deposit");
|
|
603
|
-
} else {
|
|
604
|
-
setStep("crypto-transfer");
|
|
605
|
-
onSelectDepositMethod == null ? void 0 : onSelectDepositMethod(selectedVenue.venue, method);
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
const handleContinueCardDeposit = (amount) => {
|
|
609
|
-
if (selectedVenue) {
|
|
610
|
-
onContinueCardDeposit == null ? void 0 : onContinueCardDeposit(selectedVenue.venue, amount);
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
const handleDoneCryptoTransfer = () => {
|
|
614
|
-
if (selectedVenue) {
|
|
615
|
-
onDoneCryptoTransfer == null ? void 0 : onDoneCryptoTransfer(selectedVenue.venue);
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const handleDoneKalshi = () => {
|
|
619
|
-
onDoneKalshi == null ? void 0 : onDoneKalshi();
|
|
620
|
-
onOpenChange(false);
|
|
621
|
-
};
|
|
622
|
-
const handleOpenChange = (isOpen) => {
|
|
623
|
-
if (!isOpen) {
|
|
624
|
-
setStep("venues");
|
|
625
|
-
setSelectedVenue(null);
|
|
626
|
-
}
|
|
627
|
-
onOpenChange(isOpen);
|
|
628
|
-
};
|
|
629
|
-
return /* @__PURE__ */ jsx6(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs6(Modal.Container, { maxWidth: "600px", "aria-label": "Deposit", children: [
|
|
630
|
-
step === "venues" ? /* @__PURE__ */ jsx6(
|
|
631
|
-
VenueSelectionStep,
|
|
632
|
-
{
|
|
633
|
-
venues,
|
|
634
|
-
hasAnyShortfall,
|
|
635
|
-
onSelectVenue: handleSelectVenue
|
|
636
|
-
}
|
|
637
|
-
) : null,
|
|
638
|
-
step === "method" && selectedVenue ? /* @__PURE__ */ jsx6(
|
|
639
|
-
DepositMethodStep,
|
|
640
|
-
{
|
|
641
|
-
venue: selectedVenue,
|
|
642
|
-
onBack: handleBackToVenues,
|
|
643
|
-
onSelectMethod: handleSelectMethod
|
|
644
|
-
}
|
|
645
|
-
) : null,
|
|
646
|
-
step === "card-deposit" && selectedVenue ? /* @__PURE__ */ jsx6(
|
|
647
|
-
CardDepositStep,
|
|
648
|
-
{
|
|
649
|
-
venue: selectedVenue,
|
|
650
|
-
onBack: handleBackToMethod,
|
|
651
|
-
onContinue: handleContinueCardDeposit
|
|
652
|
-
}
|
|
653
|
-
) : null,
|
|
654
|
-
step === "crypto-transfer" && selectedVenue ? /* @__PURE__ */ jsx6(
|
|
655
|
-
CryptoTransferStep,
|
|
656
|
-
{
|
|
657
|
-
venue: selectedVenue,
|
|
658
|
-
onBack: handleBackToMethod,
|
|
659
|
-
onDone: handleDoneCryptoTransfer
|
|
660
|
-
}
|
|
661
|
-
) : null,
|
|
662
|
-
step === "kalshi" ? /* @__PURE__ */ jsx6(KalshiDepositStep, { depositUrl: kalshiDepositUrl, onDone: handleDoneKalshi }) : null
|
|
663
|
-
] }) });
|
|
664
|
-
};
|
|
665
|
-
DepositModal.displayName = "DepositModal";
|
|
666
|
-
|
|
667
|
-
export {
|
|
668
|
-
DepositModal
|
|
669
|
-
};
|