@medialane/ui 0.372.0 → 0.373.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/components/account/add-guardian-dialog.cjs +6 -3
- package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
- package/dist/components/account/add-guardian-dialog.js +6 -3
- package/dist/components/account/add-guardian-dialog.js.map +1 -1
- package/dist/components/account/device-approval-dialog.cjs +10 -8
- package/dist/components/account/device-approval-dialog.cjs.map +1 -1
- package/dist/components/account/device-approval-dialog.js +10 -8
- package/dist/components/account/device-approval-dialog.js.map +1 -1
- package/dist/components/account/devices-section.cjs +8 -6
- package/dist/components/account/devices-section.cjs.map +1 -1
- package/dist/components/account/devices-section.js +8 -6
- package/dist/components/account/devices-section.js.map +1 -1
- package/dist/components/account/email-code-entry.cjs +7 -9
- package/dist/components/account/email-code-entry.cjs.map +1 -1
- package/dist/components/account/email-code-entry.js +7 -9
- package/dist/components/account/email-code-entry.js.map +1 -1
- package/dist/components/account/guardian-recovery-section.cjs +26 -35
- package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
- package/dist/components/account/guardian-recovery-section.js +26 -35
- package/dist/components/account/guardian-recovery-section.js.map +1 -1
- package/dist/components/account-page.cjs +16 -13
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +16 -13
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/accounts-page.cjs +15 -10
- package/dist/components/accounts-page.cjs.map +1 -1
- package/dist/components/accounts-page.js +15 -10
- package/dist/components/accounts-page.js.map +1 -1
- package/dist/components/activities-feed.cjs +10 -9
- package/dist/components/activities-feed.cjs.map +1 -1
- package/dist/components/activities-feed.js +10 -9
- package/dist/components/activities-feed.js.map +1 -1
- package/dist/components/activity-card.cjs +6 -2
- package/dist/components/activity-card.cjs.map +1 -1
- package/dist/components/activity-card.js +6 -2
- package/dist/components/activity-card.js.map +1 -1
- package/dist/components/activity-feed-shell.cjs +5 -4
- package/dist/components/activity-feed-shell.cjs.map +1 -1
- package/dist/components/activity-feed-shell.js +5 -4
- package/dist/components/activity-feed-shell.js.map +1 -1
- package/dist/components/activity-row.cjs +9 -5
- package/dist/components/activity-row.cjs.map +1 -1
- package/dist/components/activity-row.js +9 -5
- package/dist/components/activity-row.js.map +1 -1
- package/dist/components/activity-timeline-row.cjs +11 -8
- package/dist/components/activity-timeline-row.cjs.map +1 -1
- package/dist/components/activity-timeline-row.js +11 -8
- package/dist/components/activity-timeline-row.js.map +1 -1
- package/dist/components/address-display.cjs +3 -1
- package/dist/components/address-display.cjs.map +1 -1
- package/dist/components/address-display.js +3 -1
- package/dist/components/address-display.js.map +1 -1
- package/dist/components/approve-mint-dialog.cjs +17 -15
- package/dist/components/approve-mint-dialog.cjs.map +1 -1
- package/dist/components/approve-mint-dialog.js +17 -15
- package/dist/components/approve-mint-dialog.js.map +1 -1
- package/dist/components/archive-asset-dialog.cjs +13 -15
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -15
- package/dist/components/archive-asset-dialog.js.map +1 -1
- package/dist/components/archived-asset-notice.cjs +5 -2
- package/dist/components/archived-asset-notice.cjs.map +1 -1
- package/dist/components/archived-asset-notice.js +5 -2
- package/dist/components/archived-asset-notice.js.map +1 -1
- package/dist/components/asset-card.cjs +5 -3
- package/dist/components/asset-card.cjs.map +1 -1
- package/dist/components/asset-card.js +5 -3
- package/dist/components/asset-card.js.map +1 -1
- package/dist/components/asset-collection-bar.cjs +4 -2
- package/dist/components/asset-collection-bar.cjs.map +1 -1
- package/dist/components/asset-collection-bar.js +4 -2
- package/dist/components/asset-collection-bar.js.map +1 -1
- package/dist/components/asset-comments-dialog.cjs +3 -1
- package/dist/components/asset-comments-dialog.cjs.map +1 -1
- package/dist/components/asset-comments-dialog.js +3 -1
- package/dist/components/asset-comments-dialog.js.map +1 -1
- package/dist/components/asset-license-summary.cjs +3 -1
- package/dist/components/asset-license-summary.cjs.map +1 -1
- package/dist/components/asset-license-summary.js +3 -1
- package/dist/components/asset-license-summary.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +15 -17
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +15 -17
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-markets-tab.cjs +8 -6
- package/dist/components/asset-markets-tab.cjs.map +1 -1
- package/dist/components/asset-markets-tab.js +8 -6
- package/dist/components/asset-markets-tab.js.map +1 -1
- package/dist/components/asset-overview-content.cjs +15 -13
- package/dist/components/asset-overview-content.cjs.map +1 -1
- package/dist/components/asset-overview-content.js +15 -13
- package/dist/components/asset-overview-content.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +7 -6
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.js +7 -6
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-page.cjs +21 -17
- package/dist/components/asset-page.cjs.map +1 -1
- package/dist/components/asset-page.js +21 -17
- package/dist/components/asset-page.js.map +1 -1
- package/dist/components/asset-picker.cjs +12 -12
- package/dist/components/asset-picker.cjs.map +1 -1
- package/dist/components/asset-picker.js +12 -12
- package/dist/components/asset-picker.js.map +1 -1
- package/dist/components/asset-provenance-tab.cjs +26 -27
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +26 -27
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-publication.cjs +3 -1
- package/dist/components/asset-publication.cjs.map +1 -1
- package/dist/components/asset-publication.js +3 -1
- package/dist/components/asset-publication.js.map +1 -1
- package/dist/components/asset-search-picker.cjs +4 -6
- package/dist/components/asset-search-picker.cjs.map +1 -1
- package/dist/components/asset-search-picker.js +4 -6
- package/dist/components/asset-search-picker.js.map +1 -1
- package/dist/components/asset-top-sections.cjs +3 -1
- package/dist/components/asset-top-sections.cjs.map +1 -1
- package/dist/components/asset-top-sections.js +3 -1
- package/dist/components/asset-top-sections.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +17 -13
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +17 -13
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/asset-unavailable.cjs +5 -2
- package/dist/components/asset-unavailable.cjs.map +1 -1
- package/dist/components/asset-unavailable.js +5 -2
- package/dist/components/asset-unavailable.js.map +1 -1
- package/dist/components/asset-utility-icons.cjs +4 -2
- package/dist/components/asset-utility-icons.cjs.map +1 -1
- package/dist/components/asset-utility-icons.js +4 -2
- package/dist/components/asset-utility-icons.js.map +1 -1
- package/dist/components/asset-video.cjs +3 -4
- package/dist/components/asset-video.cjs.map +1 -1
- package/dist/components/asset-video.js +3 -4
- package/dist/components/asset-video.js.map +1 -1
- package/dist/components/back-button.cjs +3 -1
- package/dist/components/back-button.cjs.map +1 -1
- package/dist/components/back-button.js +3 -1
- package/dist/components/back-button.js.map +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/cancel-order-confirm.cjs +4 -2
- package/dist/components/cancel-order-confirm.cjs.map +1 -1
- package/dist/components/cancel-order-confirm.js +4 -2
- package/dist/components/cancel-order-confirm.js.map +1 -1
- package/dist/components/claim-rail.cjs +5 -2
- package/dist/components/claim-rail.cjs.map +1 -1
- package/dist/components/claim-rail.js +5 -2
- package/dist/components/claim-rail.js.map +1 -1
- package/dist/components/club-owner-actions.cjs +3 -1
- package/dist/components/club-owner-actions.cjs.map +1 -1
- package/dist/components/club-owner-actions.js +3 -1
- package/dist/components/club-owner-actions.js.map +1 -1
- package/dist/components/coin-guarantees.cjs +13 -8
- package/dist/components/coin-guarantees.cjs.map +1 -1
- package/dist/components/coin-guarantees.js +13 -8
- package/dist/components/coin-guarantees.js.map +1 -1
- package/dist/components/coin-launch-preview.cjs +17 -14
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +17 -14
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/coin-row.cjs +6 -3
- package/dist/components/coin-row.cjs.map +1 -1
- package/dist/components/coin-row.js +6 -3
- package/dist/components/coin-row.js.map +1 -1
- package/dist/components/coins-explorer.cjs +13 -10
- package/dist/components/coins-explorer.cjs.map +1 -1
- package/dist/components/coins-explorer.js +13 -10
- package/dist/components/coins-explorer.js.map +1 -1
- package/dist/components/collection-card.cjs +9 -5
- package/dist/components/collection-card.cjs.map +1 -1
- package/dist/components/collection-card.js +9 -5
- package/dist/components/collection-card.js.map +1 -1
- package/dist/components/collection-filters-dialog.cjs +6 -7
- package/dist/components/collection-filters-dialog.cjs.map +1 -1
- package/dist/components/collection-filters-dialog.js +6 -7
- package/dist/components/collection-filters-dialog.js.map +1 -1
- package/dist/components/collection-filters.cjs +14 -13
- package/dist/components/collection-filters.cjs.map +1 -1
- package/dist/components/collection-filters.js +14 -13
- package/dist/components/collection-filters.js.map +1 -1
- package/dist/components/collection-header.cjs +9 -5
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +9 -5
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/collection-name-claim.cjs +10 -8
- package/dist/components/collection-name-claim.cjs.map +1 -1
- package/dist/components/collection-name-claim.js +10 -8
- package/dist/components/collection-name-claim.js.map +1 -1
- package/dist/components/collection-page.cjs +29 -23
- package/dist/components/collection-page.cjs.map +1 -1
- package/dist/components/collection-page.js +29 -23
- package/dist/components/collection-page.js.map +1 -1
- package/dist/components/collection-provenance-tab.cjs +19 -13
- package/dist/components/collection-provenance-tab.cjs.map +1 -1
- package/dist/components/collection-provenance-tab.js +19 -13
- package/dist/components/collection-provenance-tab.js.map +1 -1
- package/dist/components/collection-settings.cjs +59 -55
- package/dist/components/collection-settings.cjs.map +1 -1
- package/dist/components/collection-settings.js +59 -55
- package/dist/components/collection-settings.js.map +1 -1
- package/dist/components/collection-showcase.cjs +8 -4
- package/dist/components/collection-showcase.cjs.map +1 -1
- package/dist/components/collection-showcase.js +8 -4
- package/dist/components/collection-showcase.js.map +1 -1
- package/dist/components/collection-slug-claim.cjs +22 -24
- package/dist/components/collection-slug-claim.cjs.map +1 -1
- package/dist/components/collection-slug-claim.js +22 -24
- package/dist/components/collection-slug-claim.js.map +1 -1
- package/dist/components/collections-page.cjs +36 -30
- package/dist/components/collections-page.cjs.map +1 -1
- package/dist/components/collections-page.js +36 -30
- package/dist/components/collections-page.js.map +1 -1
- package/dist/components/comments-section.cjs +19 -16
- package/dist/components/comments-section.cjs.map +1 -1
- package/dist/components/comments-section.js +19 -16
- package/dist/components/comments-section.js.map +1 -1
- package/dist/components/create-sponsorship-aside.cjs +7 -5
- package/dist/components/create-sponsorship-aside.cjs.map +1 -1
- package/dist/components/create-sponsorship-aside.js +7 -5
- package/dist/components/create-sponsorship-aside.js.map +1 -1
- package/dist/components/creation-record.cjs +9 -5
- package/dist/components/creation-record.cjs.map +1 -1
- package/dist/components/creation-record.js +9 -5
- package/dist/components/creation-record.js.map +1 -1
- package/dist/components/creator-chip.cjs +3 -1
- package/dist/components/creator-chip.cjs.map +1 -1
- package/dist/components/creator-chip.js +3 -1
- package/dist/components/creator-chip.js.map +1 -1
- package/dist/components/creator-header.cjs +3 -1
- package/dist/components/creator-header.cjs.map +1 -1
- package/dist/components/creator-header.js +3 -1
- package/dist/components/creator-header.js.map +1 -1
- package/dist/components/creator-page.cjs +19 -16
- package/dist/components/creator-page.cjs.map +1 -1
- package/dist/components/creator-page.js +19 -16
- package/dist/components/creator-page.js.map +1 -1
- package/dist/components/cta-card-grid.cjs +4 -2
- package/dist/components/cta-card-grid.cjs.map +1 -1
- package/dist/components/cta-card-grid.js +4 -2
- package/dist/components/cta-card-grid.js.map +1 -1
- package/dist/components/dialog.cjs +25 -21
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.js +25 -21
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/discover-community-section.cjs +8 -7
- package/dist/components/discover-community-section.cjs.map +1 -1
- package/dist/components/discover-community-section.js +8 -7
- package/dist/components/discover-community-section.js.map +1 -1
- package/dist/components/discover-features.cjs +18 -14
- package/dist/components/discover-features.cjs.map +1 -1
- package/dist/components/discover-features.js +18 -14
- package/dist/components/discover-features.js.map +1 -1
- package/dist/components/discover-feed-section.cjs +9 -7
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.js +9 -7
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/discover-hero.cjs +7 -3
- package/dist/components/discover-hero.cjs.map +1 -1
- package/dist/components/discover-hero.js +7 -3
- package/dist/components/discover-hero.js.map +1 -1
- package/dist/components/discover-page.cjs +3 -1
- package/dist/components/discover-page.cjs.map +1 -1
- package/dist/components/discover-page.js +3 -1
- package/dist/components/discover-page.js.map +1 -1
- package/dist/components/drop/create/artwork-section.cjs +9 -9
- package/dist/components/drop/create/artwork-section.cjs.map +1 -1
- package/dist/components/drop/create/artwork-section.js +9 -9
- package/dist/components/drop/create/artwork-section.js.map +1 -1
- package/dist/components/drop/create/details-section.cjs +19 -15
- package/dist/components/drop/create/details-section.cjs.map +1 -1
- package/dist/components/drop/create/details-section.js +19 -15
- package/dist/components/drop/create/details-section.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +14 -9
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +14 -9
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/create/exclusive-fields.cjs +7 -5
- package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
- package/dist/components/drop/create/exclusive-fields.js +7 -5
- package/dist/components/drop/create/exclusive-fields.js.map +1 -1
- package/dist/components/drop/create/launch-dialog.cjs +33 -34
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.js +33 -34
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/list-section.cjs +8 -8
- package/dist/components/drop/create/list-section.cjs.map +1 -1
- package/dist/components/drop/create/list-section.js +8 -8
- package/dist/components/drop/create/list-section.js.map +1 -1
- package/dist/components/drop/create/sale-section.cjs +8 -6
- package/dist/components/drop/create/sale-section.cjs.map +1 -1
- package/dist/components/drop/create/sale-section.js +8 -6
- package/dist/components/drop/create/sale-section.js.map +1 -1
- package/dist/components/drop/drop-card.cjs +5 -3
- package/dist/components/drop/drop-card.cjs.map +1 -1
- package/dist/components/drop/drop-card.js +5 -3
- package/dist/components/drop/drop-card.js.map +1 -1
- package/dist/components/drop/drop-features.cjs +5 -4
- package/dist/components/drop/drop-features.cjs.map +1 -1
- package/dist/components/drop/drop-features.js +5 -4
- package/dist/components/drop/drop-features.js.map +1 -1
- package/dist/components/drop/drop-listing.cjs +11 -8
- package/dist/components/drop/drop-listing.cjs.map +1 -1
- package/dist/components/drop/drop-listing.js +11 -8
- package/dist/components/drop/drop-listing.js.map +1 -1
- package/dist/components/drop/drop-status.cjs +12 -16
- package/dist/components/drop/drop-status.cjs.map +1 -1
- package/dist/components/drop/drop-status.js +12 -16
- package/dist/components/drop/drop-status.js.map +1 -1
- package/dist/components/drop/drop-token-link.cjs +6 -3
- package/dist/components/drop/drop-token-link.cjs.map +1 -1
- package/dist/components/drop/drop-token-link.js +6 -3
- package/dist/components/drop/drop-token-link.js.map +1 -1
- package/dist/components/drop/my-drops.cjs +5 -3
- package/dist/components/drop/my-drops.cjs.map +1 -1
- package/dist/components/drop/my-drops.js +5 -3
- package/dist/components/drop/my-drops.js.map +1 -1
- package/dist/components/drop/page/drop-action-box.cjs +10 -9
- package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
- package/dist/components/drop/page/drop-action-box.js +10 -9
- package/dist/components/drop/page/drop-action-box.js.map +1 -1
- package/dist/components/drop/page/drop-activity.cjs +3 -1
- package/dist/components/drop/page/drop-activity.cjs.map +1 -1
- package/dist/components/drop/page/drop-activity.js +3 -1
- package/dist/components/drop/page/drop-activity.js.map +1 -1
- package/dist/components/drop/page/drop-manage.cjs +30 -36
- package/dist/components/drop/page/drop-manage.cjs.map +1 -1
- package/dist/components/drop/page/drop-manage.js +30 -36
- package/dist/components/drop/page/drop-manage.js.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.cjs +10 -13
- package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.js +10 -13
- package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
- package/dist/components/drop/page/drop-page.cjs +11 -9
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +11 -9
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/drop-item-list.cjs +9 -5
- package/dist/components/drop-item-list.cjs.map +1 -1
- package/dist/components/drop-item-list.js +9 -5
- package/dist/components/drop-item-list.js.map +1 -1
- package/dist/components/drops-page.cjs +4 -2
- package/dist/components/drops-page.cjs.map +1 -1
- package/dist/components/drops-page.js +4 -2
- package/dist/components/drops-page.js.map +1 -1
- package/dist/components/editions-page.cjs +21 -23
- package/dist/components/editions-page.cjs.map +1 -1
- package/dist/components/editions-page.js +21 -23
- package/dist/components/editions-page.js.map +1 -1
- package/dist/components/empty-or-error.cjs +5 -3
- package/dist/components/empty-or-error.cjs.map +1 -1
- package/dist/components/empty-or-error.js +5 -3
- package/dist/components/empty-or-error.js.map +1 -1
- package/dist/components/expandable-text.cjs +3 -1
- package/dist/components/expandable-text.cjs.map +1 -1
- package/dist/components/expandable-text.js +3 -1
- package/dist/components/expandable-text.js.map +1 -1
- package/dist/components/external-link-field.cjs +7 -4
- package/dist/components/external-link-field.cjs.map +1 -1
- package/dist/components/external-link-field.js +7 -4
- package/dist/components/external-link-field.js.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.cjs +12 -8
- package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.js +12 -8
- package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
- package/dist/components/fast-mint/collection-section.cjs +11 -12
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.js +11 -12
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/dropzone.cjs +7 -5
- package/dist/components/fast-mint/dropzone.cjs.map +1 -1
- package/dist/components/fast-mint/dropzone.js +7 -5
- package/dist/components/fast-mint/dropzone.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.cjs +14 -11
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.js +14 -11
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +9 -6
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
- package/dist/components/fast-mint/formats/nft.js +9 -6
- package/dist/components/fast-mint/formats/nft.js.map +1 -1
- package/dist/components/fast-mint/formats/pop.cjs +15 -12
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
- package/dist/components/fast-mint/formats/pop.js +15 -12
- package/dist/components/fast-mint/formats/pop.js.map +1 -1
- package/dist/components/fast-mint/formats/tiers.cjs +9 -6
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
- package/dist/components/fast-mint/formats/tiers.js +9 -6
- package/dist/components/fast-mint/formats/tiers.js.map +1 -1
- package/dist/components/fast-mint/ip-type-section.cjs +6 -4
- package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
- package/dist/components/fast-mint/ip-type-section.js +6 -4
- package/dist/components/fast-mint/ip-type-section.js.map +1 -1
- package/dist/components/fast-mint/licensing-section.cjs +11 -9
- package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
- package/dist/components/fast-mint/licensing-section.js +11 -9
- package/dist/components/fast-mint/licensing-section.js.map +1 -1
- package/dist/components/fast-mint/success-view.cjs +3 -1
- package/dist/components/fast-mint/success-view.cjs.map +1 -1
- package/dist/components/fast-mint/success-view.js +3 -1
- package/dist/components/fast-mint/success-view.js.map +1 -1
- package/dist/components/featured-carousel.cjs +13 -7
- package/dist/components/featured-carousel.cjs.map +1 -1
- package/dist/components/featured-carousel.js +13 -7
- package/dist/components/featured-carousel.js.map +1 -1
- package/dist/components/floating-comments-button.cjs +4 -2
- package/dist/components/floating-comments-button.cjs.map +1 -1
- package/dist/components/floating-comments-button.js +4 -2
- package/dist/components/floating-comments-button.js.map +1 -1
- package/dist/components/form.cjs +3 -1
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +3 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/gated-content.cjs +14 -11
- package/dist/components/gated-content.cjs.map +1 -1
- package/dist/components/gated-content.js +14 -11
- package/dist/components/gated-content.js.map +1 -1
- package/dist/components/help-icon.cjs +3 -1
- package/dist/components/help-icon.cjs.map +1 -1
- package/dist/components/help-icon.js +3 -1
- package/dist/components/help-icon.js.map +1 -1
- package/dist/components/hidden-content-banner.cjs +4 -1
- package/dist/components/hidden-content-banner.cjs.map +1 -1
- package/dist/components/hidden-content-banner.js +4 -1
- package/dist/components/hidden-content-banner.js.map +1 -1
- package/dist/components/home-page.cjs +8 -4
- package/dist/components/home-page.cjs.map +1 -1
- package/dist/components/home-page.js +8 -4
- package/dist/components/home-page.js.map +1 -1
- package/dist/components/ip-type-display.cjs +12 -10
- package/dist/components/ip-type-display.cjs.map +1 -1
- package/dist/components/ip-type-display.js +12 -10
- package/dist/components/ip-type-display.js.map +1 -1
- package/dist/components/ip-type-fields.cjs +28 -28
- package/dist/components/ip-type-fields.cjs.map +1 -1
- package/dist/components/ip-type-fields.js +28 -28
- package/dist/components/ip-type-fields.js.map +1 -1
- package/dist/components/ip-type-nav.cjs +3 -1
- package/dist/components/ip-type-nav.cjs.map +1 -1
- package/dist/components/ip-type-nav.js +3 -1
- package/dist/components/ip-type-nav.js.map +1 -1
- package/dist/components/ip-type-page.cjs +41 -42
- package/dist/components/ip-type-page.cjs.map +1 -1
- package/dist/components/ip-type-page.js +41 -42
- package/dist/components/ip-type-page.js.map +1 -1
- package/dist/components/journey-content.cjs +18 -18
- package/dist/components/journey-content.cjs.map +1 -1
- package/dist/components/journey-content.js +18 -18
- package/dist/components/journey-content.js.map +1 -1
- package/dist/components/launchpad/coin-create.cjs +46 -49
- package/dist/components/launchpad/coin-create.cjs.map +1 -1
- package/dist/components/launchpad/coin-create.js +46 -49
- package/dist/components/launchpad/coin-create.js.map +1 -1
- package/dist/components/launchpad/collection-create-form.cjs +21 -17
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +21 -17
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/collection-create-presets.cjs +57 -56
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-presets.js +57 -56
- package/dist/components/launchpad/collection-create-presets.js.map +1 -1
- package/dist/components/launchpad/collection-picker.cjs +15 -11
- package/dist/components/launchpad/collection-picker.cjs.map +1 -1
- package/dist/components/launchpad/collection-picker.js +15 -11
- package/dist/components/launchpad/collection-picker.js.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.cjs +48 -42
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.js +48 -42
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
- package/dist/components/launchpad/edition-mint.cjs +16 -17
- package/dist/components/launchpad/edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint.js +16 -17
- package/dist/components/launchpad/edition-mint.js.map +1 -1
- package/dist/components/launchpad/pop-create-fields.cjs +40 -34
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.js +40 -34
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create-schema.cjs +3 -2
- package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-schema.js +3 -2
- package/dist/components/launchpad/pop-create-schema.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +10 -8
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +10 -8
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +50 -47
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +50 -47
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/single-edition-mint.cjs +46 -43
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/single-edition-mint.js +46 -43
- package/dist/components/launchpad/single-edition-mint.js.map +1 -1
- package/dist/components/launchpad/sponsorship-create.cjs +30 -27
- package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
- package/dist/components/launchpad/sponsorship-create.js +30 -27
- package/dist/components/launchpad/sponsorship-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +56 -48
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.d.cts +2 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +2 -0
- package/dist/components/launchpad/tier-mint-form.js +56 -48
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.cjs +33 -32
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.d.cts +3 -1
- package/dist/components/launchpad/tier-mint-presets.d.ts +3 -1
- package/dist/components/launchpad/tier-mint-presets.js +33 -32
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
- package/dist/components/launchpad-filter-bar.cjs +6 -4
- package/dist/components/launchpad-filter-bar.cjs.map +1 -1
- package/dist/components/launchpad-filter-bar.js +6 -4
- package/dist/components/launchpad-filter-bar.js.map +1 -1
- package/dist/components/launchpad-page.cjs +7 -5
- package/dist/components/launchpad-page.cjs.map +1 -1
- package/dist/components/launchpad-page.js +7 -5
- package/dist/components/launchpad-page.js.map +1 -1
- package/dist/components/launchpad-services.cjs +22 -14
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +4 -3
- package/dist/components/launchpad-services.d.ts +4 -3
- package/dist/components/launchpad-services.js +26 -16
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/launchpad-strip.cjs +9 -6
- package/dist/components/launchpad-strip.cjs.map +1 -1
- package/dist/components/launchpad-strip.js +10 -7
- package/dist/components/launchpad-strip.js.map +1 -1
- package/dist/components/license-request-page.cjs +27 -22
- package/dist/components/license-request-page.cjs.map +1 -1
- package/dist/components/license-request-page.js +27 -22
- package/dist/components/license-request-page.js.map +1 -1
- package/dist/components/license-terms-builder.cjs +38 -31
- package/dist/components/license-terms-builder.cjs.map +1 -1
- package/dist/components/license-terms-builder.js +38 -31
- package/dist/components/license-terms-builder.js.map +1 -1
- package/dist/components/link.cjs +18 -1
- package/dist/components/link.cjs.map +1 -1
- package/dist/components/link.d.cts +8 -2
- package/dist/components/link.d.ts +8 -2
- package/dist/components/link.js +19 -2
- package/dist/components/link.js.map +1 -1
- package/dist/components/listing-card-menu.cjs +6 -4
- package/dist/components/listing-card-menu.cjs.map +1 -1
- package/dist/components/listing-card-menu.js +6 -4
- package/dist/components/listing-card-menu.js.map +1 -1
- package/dist/components/listing-card.cjs +9 -4
- package/dist/components/listing-card.cjs.map +1 -1
- package/dist/components/listing-card.js +9 -4
- package/dist/components/listing-card.js.map +1 -1
- package/dist/components/listings-grid.cjs +6 -10
- package/dist/components/listings-grid.cjs.map +1 -1
- package/dist/components/listings-grid.js +6 -10
- package/dist/components/listings-grid.js.map +1 -1
- package/dist/components/make-offer-picker.cjs +13 -15
- package/dist/components/make-offer-picker.cjs.map +1 -1
- package/dist/components/make-offer-picker.js +13 -15
- package/dist/components/make-offer-picker.js.map +1 -1
- package/dist/components/marketplace-dialog-primitives.cjs +3 -1
- package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
- package/dist/components/marketplace-dialog-primitives.js +3 -1
- package/dist/components/marketplace-dialog-primitives.js.map +1 -1
- package/dist/components/marketplace-filters.cjs +27 -21
- package/dist/components/marketplace-filters.cjs.map +1 -1
- package/dist/components/marketplace-filters.js +27 -21
- package/dist/components/marketplace-filters.js.map +1 -1
- package/dist/components/marketplace-search.cjs +11 -9
- package/dist/components/marketplace-search.cjs.map +1 -1
- package/dist/components/marketplace-search.js +11 -9
- package/dist/components/marketplace-search.js.map +1 -1
- package/dist/components/media-wallet/action-modal.cjs +3 -1
- package/dist/components/media-wallet/action-modal.cjs.map +1 -1
- package/dist/components/media-wallet/action-modal.js +3 -1
- package/dist/components/media-wallet/action-modal.js.map +1 -1
- package/dist/components/media-wallet/activate-card.cjs +4 -2
- package/dist/components/media-wallet/activate-card.cjs.map +1 -1
- package/dist/components/media-wallet/activate-card.js +4 -2
- package/dist/components/media-wallet/activate-card.js.map +1 -1
- package/dist/components/media-wallet/back-button.cjs +4 -1
- package/dist/components/media-wallet/back-button.cjs.map +1 -1
- package/dist/components/media-wallet/back-button.js +4 -1
- package/dist/components/media-wallet/back-button.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.cjs +20 -13
- package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.js +20 -13
- package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.js +4 -2
- package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.cjs +25 -23
- package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.js +25 -23
- package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.js +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.cjs +30 -33
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +30 -33
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.cjs +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.js +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
- package/dist/components/media-wallet/nft-strip.cjs +3 -1
- package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
- package/dist/components/media-wallet/nft-strip.js +3 -1
- package/dist/components/media-wallet/nft-strip.js.map +1 -1
- package/dist/components/media-wallet/receive-card.cjs +7 -5
- package/dist/components/media-wallet/receive-card.cjs.map +1 -1
- package/dist/components/media-wallet/receive-card.js +7 -5
- package/dist/components/media-wallet/receive-card.js.map +1 -1
- package/dist/components/media-wallet/success-dialog.cjs +3 -1
- package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
- package/dist/components/media-wallet/success-dialog.js +3 -1
- package/dist/components/media-wallet/success-dialog.js.map +1 -1
- package/dist/components/medialane-collection-card.cjs +3 -1
- package/dist/components/medialane-collection-card.cjs.map +1 -1
- package/dist/components/medialane-collection-card.js +3 -1
- package/dist/components/medialane-collection-card.js.map +1 -1
- package/dist/components/more-menu.cjs +7 -5
- package/dist/components/more-menu.cjs.map +1 -1
- package/dist/components/more-menu.js +7 -5
- package/dist/components/more-menu.js.map +1 -1
- package/dist/components/nav-command-menu.cjs +28 -22
- package/dist/components/nav-command-menu.cjs.map +1 -1
- package/dist/components/nav-command-menu.d.cts +1 -1
- package/dist/components/nav-command-menu.d.ts +1 -1
- package/dist/components/nav-command-menu.js +28 -22
- package/dist/components/nav-command-menu.js.map +1 -1
- package/dist/components/nav-language-switch.cjs +56 -0
- package/dist/components/nav-language-switch.cjs.map +1 -0
- package/dist/components/nav-language-switch.d.cts +8 -0
- package/dist/components/nav-language-switch.d.ts +8 -0
- package/dist/components/nav-language-switch.js +32 -0
- package/dist/components/nav-language-switch.js.map +1 -0
- package/dist/components/nav-shell.cjs +7 -3
- package/dist/components/nav-shell.cjs.map +1 -1
- package/dist/components/nav-shell.js +7 -3
- package/dist/components/nav-shell.js.map +1 -1
- package/dist/components/nav-theme-toggle.cjs +5 -3
- package/dist/components/nav-theme-toggle.cjs.map +1 -1
- package/dist/components/nav-theme-toggle.js +5 -3
- package/dist/components/nav-theme-toggle.js.map +1 -1
- package/dist/components/new-collection-menu.cjs +8 -5
- package/dist/components/new-collection-menu.cjs.map +1 -1
- package/dist/components/new-collection-menu.js +8 -5
- package/dist/components/new-collection-menu.js.map +1 -1
- package/dist/components/order-fields.cjs +6 -7
- package/dist/components/order-fields.cjs.map +1 -1
- package/dist/components/order-fields.js +6 -7
- package/dist/components/order-fields.js.map +1 -1
- package/dist/components/parent-attribution-banner.cjs +3 -1
- package/dist/components/parent-attribution-banner.cjs.map +1 -1
- package/dist/components/parent-attribution-banner.js +3 -1
- package/dist/components/parent-attribution-banner.js.map +1 -1
- package/dist/components/pop-burn-button.cjs +7 -5
- package/dist/components/pop-burn-button.cjs.map +1 -1
- package/dist/components/pop-burn-button.js +7 -5
- package/dist/components/pop-burn-button.js.map +1 -1
- package/dist/components/pop-claim-button.cjs +6 -4
- package/dist/components/pop-claim-button.cjs.map +1 -1
- package/dist/components/pop-claim-button.js +6 -4
- package/dist/components/pop-claim-button.js.map +1 -1
- package/dist/components/pop-manage-page.cjs +28 -31
- package/dist/components/pop-manage-page.cjs.map +1 -1
- package/dist/components/pop-manage-page.js +28 -31
- package/dist/components/pop-manage-page.js.map +1 -1
- package/dist/components/pop-my-events-page.cjs +18 -12
- package/dist/components/pop-my-events-page.cjs.map +1 -1
- package/dist/components/pop-my-events-page.js +18 -12
- package/dist/components/pop-my-events-page.js.map +1 -1
- package/dist/components/portfolio-activity.cjs +6 -4
- package/dist/components/portfolio-activity.cjs.map +1 -1
- package/dist/components/portfolio-activity.js +6 -4
- package/dist/components/portfolio-activity.js.map +1 -1
- package/dist/components/portfolio-assets.cjs +5 -3
- package/dist/components/portfolio-assets.cjs.map +1 -1
- package/dist/components/portfolio-assets.js +5 -3
- package/dist/components/portfolio-assets.js.map +1 -1
- package/dist/components/portfolio-chip-filter.cjs +3 -1
- package/dist/components/portfolio-chip-filter.cjs.map +1 -1
- package/dist/components/portfolio-chip-filter.js +3 -1
- package/dist/components/portfolio-chip-filter.js.map +1 -1
- package/dist/components/portfolio-collections.cjs +7 -5
- package/dist/components/portfolio-collections.cjs.map +1 -1
- package/dist/components/portfolio-collections.js +7 -5
- package/dist/components/portfolio-collections.js.map +1 -1
- package/dist/components/portfolio-header.cjs +5 -4
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.js +5 -4
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/portfolio-orders.cjs +19 -14
- package/dist/components/portfolio-orders.cjs.map +1 -1
- package/dist/components/portfolio-orders.js +19 -14
- package/dist/components/portfolio-orders.js.map +1 -1
- package/dist/components/portfolio-section.cjs +3 -1
- package/dist/components/portfolio-section.cjs.map +1 -1
- package/dist/components/portfolio-section.js +3 -1
- package/dist/components/portfolio-section.js.map +1 -1
- package/dist/components/portfolio-shell.cjs +15 -12
- package/dist/components/portfolio-shell.cjs.map +1 -1
- package/dist/components/portfolio-shell.js +15 -12
- package/dist/components/portfolio-shell.js.map +1 -1
- package/dist/components/portfolio-sponsorships.cjs +39 -31
- package/dist/components/portfolio-sponsorships.cjs.map +1 -1
- package/dist/components/portfolio-sponsorships.js +39 -31
- package/dist/components/portfolio-sponsorships.js.map +1 -1
- package/dist/components/price-history-chart.cjs +7 -6
- package/dist/components/price-history-chart.cjs.map +1 -1
- package/dist/components/price-history-chart.js +7 -6
- package/dist/components/price-history-chart.js.map +1 -1
- package/dist/components/remix-browse-page.cjs +14 -11
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +14 -11
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/components/remixes-tab.cjs +8 -11
- package/dist/components/remixes-tab.cjs.map +1 -1
- package/dist/components/remixes-tab.js +8 -11
- package/dist/components/remixes-tab.js.map +1 -1
- package/dist/components/report-dialog.cjs +25 -23
- package/dist/components/report-dialog.cjs.map +1 -1
- package/dist/components/report-dialog.js +25 -23
- package/dist/components/report-dialog.js.map +1 -1
- package/dist/components/rewards/badge-unlocked.cjs +4 -4
- package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
- package/dist/components/rewards/badge-unlocked.js +4 -4
- package/dist/components/rewards/badge-unlocked.js.map +1 -1
- package/dist/components/rewards/leaderboard-panel.cjs +5 -3
- package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-panel.js +5 -3
- package/dist/components/rewards/leaderboard-panel.js.map +1 -1
- package/dist/components/rewards/leaderboard-table.cjs +13 -7
- package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-table.js +13 -7
- package/dist/components/rewards/leaderboard-table.js.map +1 -1
- package/dist/components/rewards/level-journey-list.cjs +6 -4
- package/dist/components/rewards/level-journey-list.cjs.map +1 -1
- package/dist/components/rewards/level-journey-list.js +6 -4
- package/dist/components/rewards/level-journey-list.js.map +1 -1
- package/dist/components/rewards/level-up-celebration.cjs +3 -1
- package/dist/components/rewards/level-up-celebration.cjs.map +1 -1
- package/dist/components/rewards/level-up-celebration.js +3 -1
- package/dist/components/rewards/level-up-celebration.js.map +1 -1
- package/dist/components/rewards/rewards-dashboard.cjs +51 -41
- package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
- package/dist/components/rewards/rewards-dashboard.js +51 -41
- package/dist/components/rewards/rewards-dashboard.js.map +1 -1
- package/dist/components/rewards/score-summary-card.cjs +9 -13
- package/dist/components/rewards/score-summary-card.cjs.map +1 -1
- package/dist/components/rewards/score-summary-card.js +9 -13
- package/dist/components/rewards/score-summary-card.js.map +1 -1
- package/dist/components/rewards/xp-earned.cjs +6 -7
- package/dist/components/rewards/xp-earned.cjs.map +1 -1
- package/dist/components/rewards/xp-earned.js +6 -7
- package/dist/components/rewards/xp-earned.js.map +1 -1
- package/dist/components/rewards-page.cjs +4 -1
- package/dist/components/rewards-page.cjs.map +1 -1
- package/dist/components/rewards-page.js +4 -1
- package/dist/components/rewards-page.js.map +1 -1
- package/dist/components/rewards-section.cjs +8 -5
- package/dist/components/rewards-section.cjs.map +1 -1
- package/dist/components/rewards-section.js +8 -5
- package/dist/components/rewards-section.js.map +1 -1
- package/dist/components/route-error.cjs +5 -6
- package/dist/components/route-error.cjs.map +1 -1
- package/dist/components/route-error.js +5 -6
- package/dist/components/route-error.js.map +1 -1
- package/dist/components/router.cjs +19 -3
- package/dist/components/router.cjs.map +1 -1
- package/dist/components/router.d.cts +7 -1
- package/dist/components/router.d.ts +7 -1
- package/dist/components/router.js +17 -1
- package/dist/components/router.js.map +1 -1
- package/dist/components/search-page.cjs +13 -11
- package/dist/components/search-page.cjs.map +1 -1
- package/dist/components/search-page.js +13 -11
- package/dist/components/search-page.js.map +1 -1
- package/dist/components/service-collections-page.cjs +22 -19
- package/dist/components/service-collections-page.cjs.map +1 -1
- package/dist/components/service-collections-page.d.cts +12 -12
- package/dist/components/service-collections-page.d.ts +12 -12
- package/dist/components/service-collections-page.js +22 -19
- package/dist/components/service-collections-page.js.map +1 -1
- package/dist/components/settings-snapshots.cjs +16 -20
- package/dist/components/settings-snapshots.cjs.map +1 -1
- package/dist/components/settings-snapshots.js +16 -20
- package/dist/components/settings-snapshots.js.map +1 -1
- package/dist/components/share-button.cjs +3 -1
- package/dist/components/share-button.cjs.map +1 -1
- package/dist/components/share-button.js +3 -1
- package/dist/components/share-button.js.map +1 -1
- package/dist/components/sheet.cjs +22 -18
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.js +22 -18
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sign-in-prompt.cjs +3 -1
- package/dist/components/sign-in-prompt.cjs.map +1 -1
- package/dist/components/sign-in-prompt.js +3 -1
- package/dist/components/sign-in-prompt.js.map +1 -1
- package/dist/components/soulbound-card.cjs +14 -9
- package/dist/components/soulbound-card.cjs.map +1 -1
- package/dist/components/soulbound-card.d.cts +1 -1
- package/dist/components/soulbound-card.d.ts +1 -1
- package/dist/components/soulbound-card.js +14 -9
- package/dist/components/soulbound-card.js.map +1 -1
- package/dist/components/sponsorship-offer-page.cjs +29 -24
- package/dist/components/sponsorship-offer-page.cjs.map +1 -1
- package/dist/components/sponsorship-offer-page.js +29 -24
- package/dist/components/sponsorship-offer-page.js.map +1 -1
- package/dist/components/sponsorship-offers-page.cjs +11 -9
- package/dist/components/sponsorship-offers-page.cjs.map +1 -1
- package/dist/components/sponsorship-offers-page.js +11 -9
- package/dist/components/sponsorship-offers-page.js.map +1 -1
- package/dist/components/stat-tile.cjs +4 -1
- package/dist/components/stat-tile.cjs.map +1 -1
- package/dist/components/stat-tile.js +4 -1
- package/dist/components/stat-tile.js.map +1 -1
- package/dist/components/token-card.cjs +20 -18
- package/dist/components/token-card.cjs.map +1 -1
- package/dist/components/token-card.js +20 -18
- package/dist/components/token-card.js.map +1 -1
- package/dist/components/transaction-dialog-states.cjs +3 -1
- package/dist/components/transaction-dialog-states.cjs.map +1 -1
- package/dist/components/transaction-dialog-states.d.cts +2 -0
- package/dist/components/transaction-dialog-states.d.ts +2 -0
- package/dist/components/transaction-dialog-states.js +3 -1
- package/dist/components/transaction-dialog-states.js.map +1 -1
- package/dist/components/transaction-dialog.cjs +5 -3
- package/dist/components/transaction-dialog.cjs.map +1 -1
- package/dist/components/transaction-dialog.js +5 -3
- package/dist/components/transaction-dialog.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +19 -16
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +19 -16
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/components/transfer-dialog.cjs +16 -18
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -18
- package/dist/components/transfer-dialog.js.map +1 -1
- package/dist/components/wallet/export-key-section.cjs +8 -6
- package/dist/components/wallet/export-key-section.cjs.map +1 -1
- package/dist/components/wallet/export-key-section.js +8 -6
- package/dist/components/wallet/export-key-section.js.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.cjs +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.js +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
- package/dist/components/wallet-required.cjs +3 -1
- package/dist/components/wallet-required.cjs.map +1 -1
- package/dist/components/wallet-required.js +3 -1
- package/dist/components/wallet-required.js.map +1 -1
- package/dist/data/activity.cjs +14 -13
- package/dist/data/activity.cjs.map +1 -1
- package/dist/data/activity.js +14 -13
- package/dist/data/activity.js.map +1 -1
- package/dist/data/coins.cjs +7 -5
- package/dist/data/coins.cjs.map +1 -1
- package/dist/data/coins.js +7 -5
- package/dist/data/coins.js.map +1 -1
- package/dist/data/gated-content-types.cjs +6 -5
- package/dist/data/gated-content-types.cjs.map +1 -1
- package/dist/data/gated-content-types.js +6 -5
- package/dist/data/gated-content-types.js.map +1 -1
- package/dist/data/ip-templates.cjs +27 -26
- package/dist/data/ip-templates.cjs.map +1 -1
- package/dist/data/ip-templates.js +27 -26
- package/dist/data/ip-templates.js.map +1 -1
- package/dist/data/ip-types.cjs +10 -9
- package/dist/data/ip-types.cjs.map +1 -1
- package/dist/data/ip-types.js +10 -9
- package/dist/data/ip-types.js.map +1 -1
- package/dist/data/ip.cjs +23 -22
- package/dist/data/ip.cjs.map +1 -1
- package/dist/data/ip.js +23 -22
- package/dist/data/ip.js.map +1 -1
- package/dist/data/launchpad-services.cjs +151 -129
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +4 -1
- package/dist/data/launchpad-services.d.ts +4 -1
- package/dist/data/launchpad-services.js +148 -128
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/data/nav-commands.cjs +48 -47
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.js +48 -47
- package/dist/data/nav-commands.js.map +1 -1
- package/dist/i18n/catalogs.cjs +34 -0
- package/dist/i18n/catalogs.cjs.map +1 -0
- package/dist/i18n/catalogs.d.cts +6 -0
- package/dist/i18n/catalogs.d.ts +6 -0
- package/dist/i18n/catalogs.js +10 -0
- package/dist/i18n/catalogs.js.map +1 -0
- package/dist/i18n/format.cjs +68 -0
- package/dist/i18n/format.cjs.map +1 -0
- package/dist/i18n/format.d.cts +6 -0
- package/dist/i18n/format.d.ts +6 -0
- package/dist/i18n/format.js +41 -0
- package/dist/i18n/format.js.map +1 -0
- package/dist/i18n/index.cjs +83 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +12 -0
- package/dist/i18n/index.d.ts +12 -0
- package/dist/i18n/index.js +37 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/language-choice.cjs +40 -0
- package/dist/i18n/language-choice.cjs.map +1 -0
- package/dist/i18n/language-choice.d.cts +12 -0
- package/dist/i18n/language-choice.d.ts +12 -0
- package/dist/i18n/language-choice.js +16 -0
- package/dist/i18n/language-choice.js.map +1 -0
- package/dist/i18n/locales.cjs +32 -0
- package/dist/i18n/locales.cjs.map +1 -0
- package/dist/i18n/locales.d.cts +9 -0
- package/dist/i18n/locales.d.ts +9 -0
- package/dist/i18n/locales.js +7 -0
- package/dist/i18n/locales.js.map +1 -0
- package/dist/i18n/localize-router.cjs +35 -0
- package/dist/i18n/localize-router.cjs.map +1 -0
- package/dist/i18n/localize-router.d.cts +8 -0
- package/dist/i18n/localize-router.d.ts +8 -0
- package/dist/i18n/localize-router.js +11 -0
- package/dist/i18n/localize-router.js.map +1 -0
- package/dist/i18n/make-t.cjs +43 -0
- package/dist/i18n/make-t.cjs.map +1 -0
- package/dist/i18n/make-t.d.cts +11 -0
- package/dist/i18n/make-t.d.ts +11 -0
- package/dist/i18n/make-t.js +18 -0
- package/dist/i18n/make-t.js.map +1 -0
- package/dist/i18n/provider.cjs +50 -0
- package/dist/i18n/provider.cjs.map +1 -0
- package/dist/i18n/provider.d.cts +14 -0
- package/dist/i18n/provider.d.ts +14 -0
- package/dist/i18n/provider.js +24 -0
- package/dist/i18n/provider.js.map +1 -0
- package/dist/i18n/resolve-locale.cjs +59 -0
- package/dist/i18n/resolve-locale.cjs.map +1 -0
- package/dist/i18n/resolve-locale.d.cts +16 -0
- package/dist/i18n/resolve-locale.d.ts +16 -0
- package/dist/i18n/resolve-locale.js +34 -0
- package/dist/i18n/resolve-locale.js.map +1 -0
- package/dist/i18n/translate.cjs +71 -0
- package/dist/i18n/translate.cjs.map +1 -0
- package/dist/i18n/translate.d.cts +21 -0
- package/dist/i18n/translate.d.ts +21 -0
- package/dist/i18n/translate.js +44 -0
- package/dist/i18n/translate.js.map +1 -0
- package/dist/i18n/use-format.cjs +42 -0
- package/dist/i18n/use-format.cjs.map +1 -0
- package/dist/i18n/use-format.d.cts +8 -0
- package/dist/i18n/use-format.d.ts +8 -0
- package/dist/i18n/use-format.js +18 -0
- package/dist/i18n/use-format.js.map +1 -0
- package/dist/i18n/with-locale.cjs +44 -0
- package/dist/i18n/with-locale.cjs.map +1 -0
- package/dist/i18n/with-locale.d.cts +4 -0
- package/dist/i18n/with-locale.d.ts +4 -0
- package/dist/i18n/with-locale.js +19 -0
- package/dist/i18n/with-locale.js.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/utils/describe-error.cjs +2 -1
- package/dist/utils/describe-error.cjs.map +1 -1
- package/dist/utils/describe-error.js +2 -1
- package/dist/utils/describe-error.js.map +1 -1
- package/dist/utils/drop/draft.cjs +2 -1
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.js +2 -1
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/drop/sale.cjs +2 -1
- package/dist/utils/drop/sale.cjs.map +1 -1
- package/dist/utils/drop/sale.js +2 -1
- package/dist/utils/drop/sale.js.map +1 -1
- package/dist/utils/drop/view.cjs +11 -8
- package/dist/utils/drop/view.cjs.map +1 -1
- package/dist/utils/drop/view.js +11 -8
- package/dist/utils/drop/view.js.map +1 -1
- package/dist/utils/empty-messages.cjs +17 -16
- package/dist/utils/empty-messages.cjs.map +1 -1
- package/dist/utils/empty-messages.js +17 -16
- package/dist/utils/empty-messages.js.map +1 -1
- package/dist/utils/format-activity.cjs +2 -1
- package/dist/utils/format-activity.cjs.map +1 -1
- package/dist/utils/format-activity.js +2 -1
- package/dist/utils/format-activity.js.map +1 -1
- package/dist/utils/format.cjs +14 -13
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +5 -5
- package/dist/utils/format.d.ts +5 -5
- package/dist/utils/format.js +14 -13
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/ipfs-upload.cjs +6 -5
- package/dist/utils/ipfs-upload.cjs.map +1 -1
- package/dist/utils/ipfs-upload.js +6 -5
- package/dist/utils/ipfs-upload.js.map +1 -1
- package/dist/utils/media-wallet/wallet-format.cjs +5 -3
- package/dist/utils/media-wallet/wallet-format.cjs.map +1 -1
- package/dist/utils/media-wallet/wallet-format.d.cts +2 -2
- package/dist/utils/media-wallet/wallet-format.d.ts +2 -2
- package/dist/utils/media-wallet/wallet-format.js +5 -3
- package/dist/utils/media-wallet/wallet-format.js.map +1 -1
- package/dist/utils/success-messages.cjs +84 -79
- package/dist/utils/success-messages.cjs.map +1 -1
- package/dist/utils/success-messages.d.cts +33 -41
- package/dist/utils/success-messages.d.ts +33 -41
- package/dist/utils/success-messages.js +84 -79
- package/dist/utils/success-messages.js.map +1 -1
- package/dist/utils/token-profile-link.cjs +3 -2
- package/dist/utils/token-profile-link.cjs.map +1 -1
- package/dist/utils/token-profile-link.js +3 -2
- package/dist/utils/token-profile-link.js.map +1 -1
- package/dist/utils/wallet-failure.cjs +9 -8
- package/dist/utils/wallet-failure.cjs.map +1 -1
- package/dist/utils/wallet-failure.js +9 -8
- package/dist/utils/wallet-failure.js.map +1 -1
- package/package.json +7 -1
|
@@ -4,6 +4,7 @@ import { DialogTransactionSuccess } from "./transaction-success.js";
|
|
|
4
4
|
import { MarketplaceErrorState, MarketplaceProcessingState } from "./marketplace-dialog-primitives.js";
|
|
5
5
|
import { EXPLORER_URL } from "../utils/explorer-url.js";
|
|
6
6
|
import { isBusyPhase } from "../utils/use-transaction.js";
|
|
7
|
+
import { useT } from "../i18n/provider.js";
|
|
7
8
|
function TransactionDialogStates({
|
|
8
9
|
phase,
|
|
9
10
|
asset,
|
|
@@ -20,6 +21,7 @@ function TransactionDialogStates({
|
|
|
20
21
|
onDone,
|
|
21
22
|
children
|
|
22
23
|
}) {
|
|
24
|
+
const t = useT();
|
|
23
25
|
const busy = isBusyPhase(phase);
|
|
24
26
|
if (phase === "success" && !error) {
|
|
25
27
|
return /* @__PURE__ */ jsx(
|
|
@@ -29,7 +31,7 @@ function TransactionDialogStates({
|
|
|
29
31
|
image: asset.image,
|
|
30
32
|
...success,
|
|
31
33
|
txHash,
|
|
32
|
-
actions: successActions ?? [{ label: "Done", onClick: onDone }],
|
|
34
|
+
actions: successActions ?? [{ label: t("Done"), onClick: onDone }],
|
|
33
35
|
children: successChildren
|
|
34
36
|
}
|
|
35
37
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transaction-dialog-states.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { DialogTransactionSuccess, type TransactionSuccessAction } from \"./transaction-success.js\";\nimport { MarketplaceErrorState, MarketplaceProcessingState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { isBusyPhase, type TransactionPhase } from \"../utils/use-transaction.js\";\nimport type { SuccessMessage } from \"../utils/success-messages.js\";\n\nexport interface TransactionDialogStatesProps {\n phase: TransactionPhase;\n asset: { name: string; image?: string | null };\n statusMessage?: string;\n statusDescription?: string;\n txHash: string | null;\n error: string | null;\n success: SuccessMessage;\n successActions?: TransactionSuccessAction[];\n successChildren?: ReactNode;\n errorTitle: string;\n errorDescription: string;\n onRetry?: () => void;\n onDone: () => void;\n children: ReactNode;\n}\n\nexport function TransactionDialogStates({\n phase,\n asset,\n statusMessage = \"Confirming onchain…\",\n statusDescription,\n txHash,\n error,\n success,\n successActions,\n successChildren,\n errorTitle,\n errorDescription,\n onRetry,\n onDone,\n children,\n}: TransactionDialogStatesProps) {\n const busy = isBusyPhase(phase);\n\n if (phase === \"success\" && !error) {\n return (\n <DialogTransactionSuccess\n name={asset.name}\n image={asset.image}\n {...success}\n txHash={txHash}\n actions={successActions ?? [{ label: \"Done\", onClick: onDone }]}\n >\n {successChildren}\n </DialogTransactionSuccess>\n );\n }\n\n if (!busy && error && txHash) {\n return (\n <MarketplaceErrorState\n tokenImage={asset.image}\n name={asset.name}\n title={errorTitle}\n description={errorDescription}\n error={error}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n onRetry={onRetry}\n onDone={onDone}\n />\n );\n }\n\n if (busy) {\n return (\n <MarketplaceProcessingState\n title={statusMessage}\n description={statusDescription}\n imageUrl={asset.image}\n imageAlt={asset.name}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n />\n );\n }\n\n return <>{children}</>;\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../src/components/transaction-dialog-states.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { DialogTransactionSuccess, type TransactionSuccessAction } from \"./transaction-success.js\";\nimport { MarketplaceErrorState, MarketplaceProcessingState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { isBusyPhase, type TransactionPhase } from \"../utils/use-transaction.js\";\nimport type { SuccessMessage } from \"../utils/success-messages.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogStatesProps {\n phase: TransactionPhase;\n asset: { name: string; image?: string | null };\n statusMessage?: string;\n statusDescription?: string;\n txHash: string | null;\n error: string | null;\n success: SuccessMessage;\n successActions?: TransactionSuccessAction[];\n successChildren?: ReactNode;\n errorTitle: string;\n errorDescription: string;\n onRetry?: () => void;\n onDone: () => void;\n children: ReactNode;\n}\n\nexport function TransactionDialogStates({\n phase,\n asset,\n statusMessage = \"Confirming onchain…\",\n statusDescription,\n txHash,\n error,\n success,\n successActions,\n successChildren,\n errorTitle,\n errorDescription,\n onRetry,\n onDone,\n children,\n}: TransactionDialogStatesProps) {\n const t = useT();\n const busy = isBusyPhase(phase);\n\n if (phase === \"success\" && !error) {\n return (\n <DialogTransactionSuccess\n name={asset.name}\n image={asset.image}\n {...success}\n txHash={txHash}\n actions={successActions ?? [{ label: t(\"Done\"), onClick: onDone }]}\n >\n {successChildren}\n </DialogTransactionSuccess>\n );\n }\n\n if (!busy && error && txHash) {\n return (\n <MarketplaceErrorState\n tokenImage={asset.image}\n name={asset.name}\n title={errorTitle}\n description={errorDescription}\n error={error}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n onRetry={onRetry}\n onDone={onDone}\n />\n );\n }\n\n if (busy) {\n return (\n <MarketplaceProcessingState\n title={statusMessage}\n description={statusDescription}\n imageUrl={asset.image}\n imageAlt={asset.name}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n />\n );\n }\n\n return <>{children}</>;\n}\n"],"mappings":";AAgDM,SAyCG,UAzCH;AA7CN,SAAS,gCAA+D;AACxE,SAAS,uBAAuB,kCAAkC;AAClE,SAAS,oBAAoB;AAC7B,SAAS,mBAA0C;AAEnD,SAAS,YAAY;AAmBd,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAiC;AAC/B,QAAM,IAAI,KAAK;AACf,QAAM,OAAO,YAAY,KAAK;AAE9B,MAAI,UAAU,aAAa,CAAC,OAAO;AACjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,MAAM;AAAA,QACZ,OAAO,MAAM;AAAA,QACZ,GAAG;AAAA,QACJ;AAAA,QACA,SAAS,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,OAAO,CAAC;AAAA,QAEhE;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,MAAI,CAAC,QAAQ,SAAS,QAAQ;AAC5B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,MAAM;AAAA,QAClB,MAAM,MAAM;AAAA,QACZ,OAAO;AAAA,QACP,aAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA,aAAa;AAAA,QACb;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,MAAI,MAAM;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,aAAa;AAAA,QACb,UAAU,MAAM;AAAA,QAChB,UAAU,MAAM;AAAA,QAChB;AAAA,QACA,aAAa;AAAA;AAAA,IACf;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}
|
|
@@ -27,8 +27,10 @@ var import_lucide_react = require("lucide-react");
|
|
|
27
27
|
var import_dialog = require("./dialog.js");
|
|
28
28
|
var import_button = require("./button.js");
|
|
29
29
|
var import_use_confetti = require("../utils/use-confetti.js");
|
|
30
|
+
var import_provider = require("../i18n/provider.js");
|
|
30
31
|
const ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 };
|
|
31
32
|
function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare", children }) {
|
|
33
|
+
const t = (0, import_provider.useT)();
|
|
32
34
|
const { phase, error, reset, retryable = true } = tx;
|
|
33
35
|
const working = phase === "preparing" || phase === "submitting" || phase === "confirming";
|
|
34
36
|
const success = phase === "success";
|
|
@@ -50,7 +52,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
50
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-8 w-8 animate-spin text-primary" }) }),
|
|
51
53
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1 text-center", children: [
|
|
52
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-lg font-semibold", children: workingLabel }),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? "Waiting for block confirmation" : "Submitting transaction" })
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? t("Waiting for block confirmation") : t("Submitting transaction") })
|
|
54
56
|
] }),
|
|
55
57
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: "w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4", children: steps.map((label, i) => {
|
|
56
58
|
const active = i === ACTIVE_STEP[phase];
|
|
@@ -60,7 +62,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
60
62
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: done ? "text-sm text-foreground" : active ? "text-sm font-medium text-primary" : "text-sm text-muted-foreground", children: label })
|
|
61
63
|
] }, label);
|
|
62
64
|
}) }),
|
|
63
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-xs text-muted-foreground", children: "This usually takes 10\u201330 seconds." })
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-xs text-muted-foreground", children: t("This usually takes 10\u201330 seconds.") })
|
|
64
66
|
] }),
|
|
65
67
|
success && children,
|
|
66
68
|
failed && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-5 py-2", children: [
|
|
@@ -69,7 +71,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
69
71
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xl font-bold", children: title }),
|
|
70
72
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mx-auto max-w-xs text-sm text-muted-foreground", children: error })
|
|
71
73
|
] }),
|
|
72
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? "Try again" : "Close" })
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? t("Try again") : t("Close") })
|
|
73
75
|
] })
|
|
74
76
|
]
|
|
75
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? \"Waiting for block confirmation\" : \"Submitting transaction\"}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">This usually takes 10–30 seconds
|
|
1
|
+
{"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const t = useT();\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? t(\"Waiting for block confirmation\") : t(\"Submitting transaction\")}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">{t(\"This usually takes 10–30 seconds.\")}</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? t(\"Try again\") : t(\"Close\")}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCQ;AAnCR,0BAA+C;AAC/C,oBAAmD;AACnD,oBAAuB;AACvB,0BAA4B;AAE5B,sBAAqB;AAUrB,MAAM,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,EAAE;AAE1D,SAAS,kBAAkB,EAAE,IAAI,OAAO,cAAc,iBAAiB,WAAW,SAAS,GAA2B;AAC3H,QAAM,QAAI,sBAAK;AACf,QAAM,EAAE,OAAO,OAAO,OAAO,YAAY,KAAK,IAAI;AAClD,QAAM,UAAU,UAAU,eAAe,UAAU,gBAAgB,UAAU;AAC7E,QAAM,UAAU,UAAU;AAC1B,QAAM,SAAS,UAAU;AACzB,QAAM,QAAQ,CAAC,gBAAgB,sBAAsB,qBAAqB;AAE1E,uCAAY,OAAO;AAEnB,SACE,4CAAC,wBAAO,MAAM,UAAU,QAAQ,OAAK,MAAC,cAAc,CAAC,SAAS;AAAE,QAAI,CAAC,QAAQ,CAAC,QAAS,OAAM;AAAA,EAAG,GAC9F;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,mBAAmB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACzD,iBAAiB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACtD,GAAI,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;AAAA,MAEtC;AAAA,oDAAC,6BAAY,WAAU,WAAW,oBAAU,eAAe,OAAM;AAAA,QAEhE,WACC,6CAAC,SAAI,WAAU,yCACb;AAAA,sDAAC,SAAI,WAAU,yEACb,sDAAC,+BAAQ,WAAU,qCAAoC,GACzD;AAAA,UACA,6CAAC,SAAI,WAAU,yBACb;AAAA,wDAAC,OAAE,WAAU,yBAAyB,wBAAa;AAAA,YACnD,4CAAC,OAAE,WAAU,iCACV,oBAAU,eAAe,EAAE,gCAAgC,IAAI,EAAE,wBAAwB,GAC5F;AAAA,aACF;AAAA,UACA,4CAAC,QAAG,WAAU,uEACX,gBAAM,IAAI,CAAC,OAAO,MAAM;AACvB,kBAAM,SAAS,MAAM,YAAY,KAAK;AACtC,kBAAM,OAAO,IAAI,YAAY,KAAK;AAClC,mBACE,6CAAC,QAAe,aAAS,MAAC,gBAAc,SAAS,SAAS,QAAW,WAAU,2BAC5E;AAAA,qBACC,4CAAC,oCAAa,WAAU,qCAAoC,IAC1D,SACF,4CAAC,+BAAQ,WAAU,8CAA6C,IAEhE,4CAAC,SAAI,WAAU,qEAAoE;AAAA,cAErF,4CAAC,UAAK,WAAW,OAAO,4BAA4B,SAAS,qCAAqC,iCAC/F,iBACH;AAAA,iBAVO,KAWT;AAAA,UAEJ,CAAC,GACH;AAAA,UACA,4CAAC,OAAE,WAAU,6CAA6C,YAAE,wCAAmC,GAAE;AAAA,WACnG;AAAA,QAGD,WAAW;AAAA,QAEX,UACC,6CAAC,SAAI,WAAU,yCACb;AAAA,sDAAC,SAAI,WAAU,6EACb,sDAAC,+BAAQ,WAAU,4BAA2B,GAChD;AAAA,UACA,6CAAC,SAAI,WAAU,yBACb;AAAA,wDAAC,OAAE,WAAU,qBAAqB,iBAAM;AAAA,YACxC,4CAAC,OAAE,WAAU,kDAAkD,iBAAM;AAAA,aACvE;AAAA,UACA,4CAAC,wBAAO,SAAQ,WAAU,WAAU,UAAS,SAAS,OACnD,sBAAY,EAAE,WAAW,IAAI,EAAE,OAAO,GACzC;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}
|
|
@@ -4,8 +4,10 @@ import { CheckCircle2, Loader2, XCircle } from "lucide-react";
|
|
|
4
4
|
import { Dialog, DialogContent, DialogTitle } from "./dialog.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { useConfetti } from "../utils/use-confetti.js";
|
|
7
|
+
import { useT } from "../i18n/provider.js";
|
|
7
8
|
const ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 };
|
|
8
9
|
function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare", children }) {
|
|
10
|
+
const t = useT();
|
|
9
11
|
const { phase, error, reset, retryable = true } = tx;
|
|
10
12
|
const working = phase === "preparing" || phase === "submitting" || phase === "confirming";
|
|
11
13
|
const success = phase === "success";
|
|
@@ -27,7 +29,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
27
29
|
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Loader2, { className: "h-8 w-8 animate-spin text-primary" }) }),
|
|
28
30
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 text-center", children: [
|
|
29
31
|
/* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", children: workingLabel }),
|
|
30
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? "Waiting for block confirmation" : "Submitting transaction" })
|
|
32
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? t("Waiting for block confirmation") : t("Submitting transaction") })
|
|
31
33
|
] }),
|
|
32
34
|
/* @__PURE__ */ jsx("ol", { className: "w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4", children: steps.map((label, i) => {
|
|
33
35
|
const active = i === ACTIVE_STEP[phase];
|
|
@@ -37,7 +39,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
37
39
|
/* @__PURE__ */ jsx("span", { className: done ? "text-sm text-foreground" : active ? "text-sm font-medium text-primary" : "text-sm text-muted-foreground", children: label })
|
|
38
40
|
] }, label);
|
|
39
41
|
}) }),
|
|
40
|
-
/* @__PURE__ */ jsx("p", { className: "text-center text-xs text-muted-foreground", children: "This usually takes 10\u201330 seconds." })
|
|
42
|
+
/* @__PURE__ */ jsx("p", { className: "text-center text-xs text-muted-foreground", children: t("This usually takes 10\u201330 seconds.") })
|
|
41
43
|
] }),
|
|
42
44
|
success && children,
|
|
43
45
|
failed && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-5 py-2", children: [
|
|
@@ -46,7 +48,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
|
|
|
46
48
|
/* @__PURE__ */ jsx("p", { className: "text-xl font-bold", children: title }),
|
|
47
49
|
/* @__PURE__ */ jsx("p", { className: "mx-auto max-w-xs text-sm text-muted-foreground", children: error })
|
|
48
50
|
] }),
|
|
49
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? "Try again" : "Close" })
|
|
51
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? t("Try again") : t("Close") })
|
|
50
52
|
] })
|
|
51
53
|
]
|
|
52
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? \"Waiting for block confirmation\" : \"Submitting transaction\"}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">This usually takes 10–30 seconds
|
|
1
|
+
{"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const t = useT();\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? t(\"Waiting for block confirmation\") : t(\"Submitting transaction\")}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">{t(\"This usually takes 10–30 seconds.\")}</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? t(\"Try again\") : t(\"Close\")}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AAsCQ,cAOI,YAPJ;AAnCR,SAAS,cAAc,SAAS,eAAe;AAC/C,SAAS,QAAQ,eAAe,mBAAmB;AACnD,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAE5B,SAAS,YAAY;AAUrB,MAAM,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,EAAE;AAE1D,SAAS,kBAAkB,EAAE,IAAI,OAAO,cAAc,iBAAiB,WAAW,SAAS,GAA2B;AAC3H,QAAM,IAAI,KAAK;AACf,QAAM,EAAE,OAAO,OAAO,OAAO,YAAY,KAAK,IAAI;AAClD,QAAM,UAAU,UAAU,eAAe,UAAU,gBAAgB,UAAU;AAC7E,QAAM,UAAU,UAAU;AAC1B,QAAM,SAAS,UAAU;AACzB,QAAM,QAAQ,CAAC,gBAAgB,sBAAsB,qBAAqB;AAE1E,cAAY,OAAO;AAEnB,SACE,oBAAC,UAAO,MAAM,UAAU,QAAQ,OAAK,MAAC,cAAc,CAAC,SAAS;AAAE,QAAI,CAAC,QAAQ,CAAC,QAAS,OAAM;AAAA,EAAG,GAC9F;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,mBAAmB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACzD,iBAAiB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACtD,GAAI,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;AAAA,MAEtC;AAAA,4BAAC,eAAY,WAAU,WAAW,oBAAU,eAAe,OAAM;AAAA,QAEhE,WACC,qBAAC,SAAI,WAAU,yCACb;AAAA,8BAAC,SAAI,WAAU,yEACb,8BAAC,WAAQ,WAAU,qCAAoC,GACzD;AAAA,UACA,qBAAC,SAAI,WAAU,yBACb;AAAA,gCAAC,OAAE,WAAU,yBAAyB,wBAAa;AAAA,YACnD,oBAAC,OAAE,WAAU,iCACV,oBAAU,eAAe,EAAE,gCAAgC,IAAI,EAAE,wBAAwB,GAC5F;AAAA,aACF;AAAA,UACA,oBAAC,QAAG,WAAU,uEACX,gBAAM,IAAI,CAAC,OAAO,MAAM;AACvB,kBAAM,SAAS,MAAM,YAAY,KAAK;AACtC,kBAAM,OAAO,IAAI,YAAY,KAAK;AAClC,mBACE,qBAAC,QAAe,aAAS,MAAC,gBAAc,SAAS,SAAS,QAAW,WAAU,2BAC5E;AAAA,qBACC,oBAAC,gBAAa,WAAU,qCAAoC,IAC1D,SACF,oBAAC,WAAQ,WAAU,8CAA6C,IAEhE,oBAAC,SAAI,WAAU,qEAAoE;AAAA,cAErF,oBAAC,UAAK,WAAW,OAAO,4BAA4B,SAAS,qCAAqC,iCAC/F,iBACH;AAAA,iBAVO,KAWT;AAAA,UAEJ,CAAC,GACH;AAAA,UACA,oBAAC,OAAE,WAAU,6CAA6C,YAAE,wCAAmC,GAAE;AAAA,WACnG;AAAA,QAGD,WAAW;AAAA,QAEX,UACC,qBAAC,SAAI,WAAU,yCACb;AAAA,8BAAC,SAAI,WAAU,6EACb,8BAAC,WAAQ,WAAU,4BAA2B,GAChD;AAAA,UACA,qBAAC,SAAI,WAAU,yBACb;AAAA,gCAAC,OAAE,WAAU,qBAAqB,iBAAM;AAAA,YACxC,oBAAC,OAAE,WAAU,kDAAkD,iBAAM;AAAA,aACvE;AAAA,UACA,oBAAC,UAAO,SAAQ,WAAU,WAAU,UAAS,SAAS,OACnD,sBAAY,EAAE,WAAW,IAAI,EAAE,OAAO,GACzC;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}
|
|
@@ -38,7 +38,9 @@ var import_address = require("../utils/address.js");
|
|
|
38
38
|
var import_run_intent_calls = require("../utils/run-intent-calls.js");
|
|
39
39
|
var import_success_messages = require("../utils/success-messages.js");
|
|
40
40
|
var import_use_transaction = require("../utils/use-transaction.js");
|
|
41
|
+
var import_provider = require("../i18n/provider.js");
|
|
41
42
|
function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }) {
|
|
43
|
+
const t = (0, import_provider.useT)();
|
|
42
44
|
const app = (0, import_medialane_app.useMedialaneApp)();
|
|
43
45
|
const tx = (0, import_use_transaction.useTransaction)();
|
|
44
46
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
@@ -68,34 +70,35 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
|
|
|
68
70
|
setOpen(true);
|
|
69
71
|
}, children: [
|
|
70
72
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-4 w-4" }),
|
|
71
|
-
"Transfer ownership"
|
|
73
|
+
t("Transfer ownership")
|
|
72
74
|
] }),
|
|
73
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog, { open, onOpenChange: (next) => {
|
|
74
76
|
if (!next) close();
|
|
75
77
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl", children: [
|
|
76
78
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogTitle, { className: "sr-only", children: [
|
|
77
|
-
"Transfer ownership of
|
|
78
|
-
|
|
79
|
+
t("Transfer ownership of"),
|
|
80
|
+
" ",
|
|
81
|
+
collectionName ?? t("collection")
|
|
79
82
|
] }),
|
|
80
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: "Transfer the on-chain owner of this collection. Existing tokens are unaffected." }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: t("Transfer the on-chain owner of this collection. Existing tokens are unaffected.") }),
|
|
81
84
|
confirming ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
85
|
import_marketplace_dialog_primitives.MarketplaceConfirmStep,
|
|
83
86
|
{
|
|
84
87
|
description: `Transfer ownership to ${(0, import_address.shortenAddress)(trimmed)}?`,
|
|
85
|
-
secondaryLabel: "Back",
|
|
88
|
+
secondaryLabel: t("Back"),
|
|
86
89
|
onSecondary: () => setConfirming(false),
|
|
87
|
-
primaryLabel: "Transfer ownership",
|
|
90
|
+
primaryLabel: t("Transfer ownership"),
|
|
88
91
|
onPrimary: transfer,
|
|
89
92
|
primaryIcon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-4 w-4" })
|
|
90
93
|
}
|
|
91
94
|
) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-6 space-y-4", children: [
|
|
92
95
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
93
96
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-5 w-5" }),
|
|
94
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-lg", children: "Transfer collection ownership" })
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-lg", children: t("Transfer collection ownership") })
|
|
95
98
|
] }),
|
|
96
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: "The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected." }),
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.") }),
|
|
97
100
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
98
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { htmlFor: "new-owner", children: "New owner address" }),
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { htmlFor: "new-owner", children: t("New owner address") }),
|
|
99
102
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
103
|
import_input.Input,
|
|
101
104
|
{
|
|
@@ -108,22 +111,22 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
|
|
|
108
111
|
autoComplete: "off"
|
|
109
112
|
}
|
|
110
113
|
),
|
|
111
|
-
trimmed && !isValid && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-red-500", children: "Not a valid Starknet address." }),
|
|
112
|
-
wouldNoop && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-amber-500", children: "This is already the current owner." })
|
|
114
|
+
trimmed && !isValid && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-red-500", children: t("Not a valid Starknet address.") }),
|
|
115
|
+
wouldNoop && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-amber-500", children: t("This is already the current owner.") })
|
|
113
116
|
] }),
|
|
114
117
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex gap-2 pt-2", children: [
|
|
115
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "flex-1", onClick: close, children: "Cancel" }),
|
|
116
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: "Continue" })
|
|
118
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "flex-1", onClick: close, children: t("Cancel") }),
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: t("Continue") })
|
|
117
120
|
] })
|
|
118
121
|
] })
|
|
119
122
|
] }) }),
|
|
120
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Transfer ownership"), workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
121
124
|
import_transaction_success.TransactionSuccess,
|
|
122
125
|
{
|
|
123
126
|
name: collectionName ?? "Collection",
|
|
124
|
-
...import_success_messages.successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: (0, import_address.shortenAddress)(trimmed) }),
|
|
127
|
+
...import_success_messages.successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: (0, import_address.shortenAddress)(trimmed) }, t),
|
|
125
128
|
txHash: tx.txHash,
|
|
126
|
-
actions: [{ label: "Done", onClick: tx.reset }]
|
|
129
|
+
actions: [{ label: t("Done"), onClick: tx.reset }]
|
|
127
130
|
}
|
|
128
131
|
) })
|
|
129
132
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected
|
|
1
|
+
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const t = useT();\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n {t(\"Transfer ownership\")}\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">{t(\"Transfer ownership of\")} {collectionName ?? t(\"collection\")}</DialogTitle>\n <DialogDescription className=\"sr-only\">{t(\"Transfer the on-chain owner of this collection. Existing tokens are unaffected.\")}</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel={t(\"Back\")}\n onSecondary={() => setConfirming(false)}\n primaryLabel={t(\"Transfer ownership\")}\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">{t(\"Transfer collection ownership\")}</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n {t(\"The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\")}\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">{t(\"New owner address\")}</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">{t(\"Not a valid Starknet address.\")}</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">{t(\"This is already the current owner.\")}</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n {t(\"Cancel\")}\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n {t(\"Continue\")}\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title={t(\"Transfer ownership\")} workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) }, t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":"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","names":[]}
|
|
@@ -15,7 +15,9 @@ import { shortenAddress } from "../utils/address.js";
|
|
|
15
15
|
import { runIntentCalls } from "../utils/run-intent-calls.js";
|
|
16
16
|
import { successMessages } from "../utils/success-messages.js";
|
|
17
17
|
import { useTransaction } from "../utils/use-transaction.js";
|
|
18
|
+
import { useT } from "../i18n/provider.js";
|
|
18
19
|
function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }) {
|
|
20
|
+
const t = useT();
|
|
19
21
|
const app = useMedialaneApp();
|
|
20
22
|
const tx = useTransaction();
|
|
21
23
|
const [open, setOpen] = useState(false);
|
|
@@ -45,34 +47,35 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
|
|
|
45
47
|
setOpen(true);
|
|
46
48
|
}, children: [
|
|
47
49
|
/* @__PURE__ */ jsx(UserRoundCog, { className: "h-4 w-4" }),
|
|
48
|
-
"Transfer ownership"
|
|
50
|
+
t("Transfer ownership")
|
|
49
51
|
] }),
|
|
50
52
|
/* @__PURE__ */ jsx(Dialog, { open, onOpenChange: (next) => {
|
|
51
53
|
if (!next) close();
|
|
52
54
|
}, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl", children: [
|
|
53
55
|
/* @__PURE__ */ jsxs(DialogTitle, { className: "sr-only", children: [
|
|
54
|
-
"Transfer ownership of
|
|
55
|
-
|
|
56
|
+
t("Transfer ownership of"),
|
|
57
|
+
" ",
|
|
58
|
+
collectionName ?? t("collection")
|
|
56
59
|
] }),
|
|
57
|
-
/* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: "Transfer the on-chain owner of this collection. Existing tokens are unaffected." }),
|
|
60
|
+
/* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: t("Transfer the on-chain owner of this collection. Existing tokens are unaffected.") }),
|
|
58
61
|
confirming ? /* @__PURE__ */ jsx(
|
|
59
62
|
MarketplaceConfirmStep,
|
|
60
63
|
{
|
|
61
64
|
description: `Transfer ownership to ${shortenAddress(trimmed)}?`,
|
|
62
|
-
secondaryLabel: "Back",
|
|
65
|
+
secondaryLabel: t("Back"),
|
|
63
66
|
onSecondary: () => setConfirming(false),
|
|
64
|
-
primaryLabel: "Transfer ownership",
|
|
67
|
+
primaryLabel: t("Transfer ownership"),
|
|
65
68
|
onPrimary: transfer,
|
|
66
69
|
primaryIcon: /* @__PURE__ */ jsx(UserRoundCog, { className: "h-4 w-4" })
|
|
67
70
|
}
|
|
68
71
|
) : /* @__PURE__ */ jsxs("div", { className: "p-6 space-y-4", children: [
|
|
69
72
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
70
73
|
/* @__PURE__ */ jsx(UserRoundCog, { className: "h-5 w-5" }),
|
|
71
|
-
/* @__PURE__ */ jsx("p", { className: "font-bold text-lg", children: "Transfer collection ownership" })
|
|
74
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-lg", children: t("Transfer collection ownership") })
|
|
72
75
|
] }),
|
|
73
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected." }),
|
|
76
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.") }),
|
|
74
77
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
75
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "new-owner", children: "New owner address" }),
|
|
78
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "new-owner", children: t("New owner address") }),
|
|
76
79
|
/* @__PURE__ */ jsx(
|
|
77
80
|
Input,
|
|
78
81
|
{
|
|
@@ -85,22 +88,22 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
|
|
|
85
88
|
autoComplete: "off"
|
|
86
89
|
}
|
|
87
90
|
),
|
|
88
|
-
trimmed && !isValid && /* @__PURE__ */ jsx("p", { className: "text-xs text-red-500", children: "Not a valid Starknet address." }),
|
|
89
|
-
wouldNoop && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-500", children: "This is already the current owner." })
|
|
91
|
+
trimmed && !isValid && /* @__PURE__ */ jsx("p", { className: "text-xs text-red-500", children: t("Not a valid Starknet address.") }),
|
|
92
|
+
wouldNoop && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-500", children: t("This is already the current owner.") })
|
|
90
93
|
] }),
|
|
91
94
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 pt-2", children: [
|
|
92
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", className: "flex-1", onClick: close, children: "Cancel" }),
|
|
93
|
-
/* @__PURE__ */ jsx(Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: "Continue" })
|
|
95
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", className: "flex-1", onClick: close, children: t("Cancel") }),
|
|
96
|
+
/* @__PURE__ */ jsx(Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: t("Continue") })
|
|
94
97
|
] })
|
|
95
98
|
] })
|
|
96
99
|
] }) }),
|
|
97
|
-
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ jsx(
|
|
100
|
+
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Transfer ownership"), workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ jsx(
|
|
98
101
|
TransactionSuccess,
|
|
99
102
|
{
|
|
100
103
|
name: collectionName ?? "Collection",
|
|
101
|
-
...successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: shortenAddress(trimmed) }),
|
|
104
|
+
...successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: shortenAddress(trimmed) }, t),
|
|
102
105
|
txHash: tx.txHash,
|
|
103
|
-
actions: [{ label: "Done", onClick: tx.reset }]
|
|
106
|
+
actions: [{ label: t("Done"), onClick: tx.reset }]
|
|
104
107
|
}
|
|
105
108
|
) })
|
|
106
109
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected
|
|
1
|
+
{"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const t = useT();\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n {t(\"Transfer ownership\")}\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">{t(\"Transfer ownership of\")} {collectionName ?? t(\"collection\")}</DialogTitle>\n <DialogDescription className=\"sr-only\">{t(\"Transfer the on-chain owner of this collection. Existing tokens are unaffected.\")}</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel={t(\"Back\")}\n onSecondary={() => setConfirming(false)}\n primaryLabel={t(\"Transfer ownership\")}\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">{t(\"Transfer collection ownership\")}</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n {t(\"The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\")}\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">{t(\"New owner address\")}</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">{t(\"Not a valid Starknet address.\")}</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">{t(\"This is already the current owner.\")}</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n {t(\"Cancel\")}\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n {t(\"Continue\")}\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title={t(\"Transfer ownership\")} workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) }, t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":"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","names":[]}
|
|
@@ -46,6 +46,7 @@ var import_marketplace_dialog_primitives = require("./marketplace-dialog-primiti
|
|
|
46
46
|
var import_transaction_dialog_states = require("./transaction-dialog-states.js");
|
|
47
47
|
var import_use_transaction = require("../utils/use-transaction.js");
|
|
48
48
|
var import_success_messages = require("../utils/success-messages.js");
|
|
49
|
+
var import_provider = require("../i18n/provider.js");
|
|
49
50
|
const schema = z.object({
|
|
50
51
|
toAddress: z.string().min(1, "Recipient address is required").regex(/^0x[0-9a-fA-F]{1,64}$/, "Must be a valid Starknet address (0x followed by hex characters)")
|
|
51
52
|
});
|
|
@@ -64,6 +65,7 @@ function TransferDialog({
|
|
|
64
65
|
onTransfer,
|
|
65
66
|
onSuccess
|
|
66
67
|
}) {
|
|
68
|
+
const t = (0, import_provider.useT)();
|
|
67
69
|
const { phase, txHash, error, retryable = true, reset } = tx;
|
|
68
70
|
const busy = (0, import_use_transaction.isBusyPhase)(phase);
|
|
69
71
|
const [step, setStep] = (0, import_react.useState)("form");
|
|
@@ -92,7 +94,7 @@ function TransferDialog({
|
|
|
92
94
|
if (walletAddress) {
|
|
93
95
|
try {
|
|
94
96
|
if (BigInt(values.toAddress) === BigInt(walletAddress)) {
|
|
95
|
-
form.setError("toAddress", { message: "Cannot transfer to yourself" });
|
|
97
|
+
form.setError("toAddress", { message: t("Cannot transfer to yourself") });
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
100
|
} catch {
|
|
@@ -109,26 +111,22 @@ function TransferDialog({
|
|
|
109
111
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xs text-center text-muted-foreground", children: footerNote })
|
|
110
112
|
] });
|
|
111
113
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog, { open, onOpenChange: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl flex flex-col max-h-[92svh]", children: [
|
|
112
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
113
|
-
|
|
114
|
-
displayName
|
|
115
|
-
] }),
|
|
116
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: "Enter a recipient Starknet address to transfer this asset onchain." }),
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogTitle, { className: "sr-only", children: t("Transfer {displayName}", { displayName }) }),
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: t("Enter a recipient Starknet address to transfer this asset onchain.") }),
|
|
117
116
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
118
117
|
import_transaction_dialog_states.TransactionDialogStates,
|
|
119
118
|
{
|
|
120
119
|
phase,
|
|
121
120
|
asset: { name: displayName, image: tokenImage },
|
|
122
|
-
statusMessage: "Confirming on Starknet\u2026",
|
|
123
121
|
txHash,
|
|
124
122
|
error,
|
|
125
|
-
success: import_success_messages.successMessages.transferred({ name: displayName, to: recipientShort }),
|
|
126
|
-
successActions: [{ label: "Done", onClick: () => {
|
|
123
|
+
success: import_success_messages.successMessages.transferred({ name: displayName, to: recipientShort }, t),
|
|
124
|
+
successActions: [{ label: t("Done"), onClick: () => {
|
|
127
125
|
close();
|
|
128
126
|
onSuccess?.();
|
|
129
127
|
} }],
|
|
130
|
-
errorTitle: "Transfer failed",
|
|
131
|
-
errorDescription: "The transaction was submitted, but the transfer could not be completed.",
|
|
128
|
+
errorTitle: t("Transfer failed"),
|
|
129
|
+
errorDescription: t("The transaction was submitted, but the transfer could not be completed."),
|
|
132
130
|
onRetry: retryable ? () => {
|
|
133
131
|
reset();
|
|
134
132
|
setStep("form");
|
|
@@ -155,14 +153,14 @@ function TransferDialog({
|
|
|
155
153
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
154
|
import_marketplace_dialog_primitives.MarketplaceConfirmStep,
|
|
157
155
|
{
|
|
158
|
-
description: "Transfer this asset?",
|
|
156
|
+
description: t("Transfer this asset?"),
|
|
159
157
|
error,
|
|
160
|
-
secondaryLabel: "Back",
|
|
158
|
+
secondaryLabel: t("Back"),
|
|
161
159
|
onSecondary: () => {
|
|
162
160
|
reset();
|
|
163
161
|
setStep("form");
|
|
164
162
|
},
|
|
165
|
-
primaryLabel: "Transfer",
|
|
163
|
+
primaryLabel: t("Transfer"),
|
|
166
164
|
onPrimary: () => {
|
|
167
165
|
if (pendingAddress) onTransfer(pendingAddress);
|
|
168
166
|
},
|
|
@@ -174,11 +172,11 @@ function TransferDialog({
|
|
|
174
172
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-base leading-tight truncate", children: displayName }),
|
|
175
173
|
hasActiveListing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_alert.Alert, { variant: "destructive", children: [
|
|
176
174
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertCircle, { className: "h-4 w-4" }),
|
|
177
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: "This token has an active listing. Cancelling the listing first keeps the sale from completing after the transfer." })
|
|
175
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: t("This token has an active listing. Cancelling the listing first keeps the sale from completing after the transfer.") })
|
|
178
176
|
] }),
|
|
179
177
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_alert.Alert, { children: [
|
|
180
178
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertCircle, { className: "h-4 w-4" }),
|
|
181
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: "Transfers are final and recorded onchain." })
|
|
179
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: t("Transfers are final and recorded onchain.") })
|
|
182
180
|
] }),
|
|
183
181
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-3", children: [
|
|
184
182
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -187,7 +185,7 @@ function TransferDialog({
|
|
|
187
185
|
control: form.control,
|
|
188
186
|
name: "toAddress",
|
|
189
187
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
190
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Recipient address" }),
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Recipient address") }),
|
|
191
189
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: "0x\u2026", autoComplete: "off", spellCheck: false, ...field }) }),
|
|
192
190
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
193
191
|
] })
|
|
@@ -206,7 +204,7 @@ function TransferDialog({
|
|
|
206
204
|
className: "w-full h-11 rounded-[11px] flex items-center justify-center gap-2 text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-transparent",
|
|
207
205
|
children: [
|
|
208
206
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRightLeft, { className: "h-4 w-4" }),
|
|
209
|
-
canTransfer ? "Transfer" : connectLabel
|
|
207
|
+
canTransfer ? t("Transfer") : connectLabel
|
|
210
208
|
]
|
|
211
209
|
}
|
|
212
210
|
) }),
|