@medialane/ui 0.372.1 → 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/alert.d.cts +1 -1
- package/dist/components/alert.d.ts +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 -14
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -14
- 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/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +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 -17
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -17
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/pop-burn-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Loader2, Trash2 } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface PopBurnButtonProps {\n collectionAddress: string;\n tokenId: string;\n onBurned?: () => void;\n}\n\nexport function PopBurnButton({ collectionAddress, tokenId, onBurned }: PopBurnButtonProps) {\n const app = useMedialaneApp();\n const [confirming, setConfirming] = useState(false);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n if (tx.phase === \"success\") onBurned?.();\n }, [tx.phase, onBurned]);\n\n if (tx.phase === \"success\") {\n return <p className=\"text-xs text-muted-foreground\">Removed from your wallet
|
|
1
|
+
{"version":3,"sources":["../../src/components/pop-burn-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Loader2, Trash2 } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface PopBurnButtonProps {\n collectionAddress: string;\n tokenId: string;\n onBurned?: () => void;\n}\n\nexport function PopBurnButton({ collectionAddress, tokenId, onBurned }: PopBurnButtonProps) {\n const t = useT();\n const app = useMedialaneApp();\n const [confirming, setConfirming] = useState(false);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n if (tx.phase === \"success\") onBurned?.();\n }, [tx.phase, onBurned]);\n\n if (tx.phase === \"success\") {\n return <p className=\"text-xs text-muted-foreground\">{t(\"Removed from your wallet.\")}</p>;\n }\n\n if (!confirming) {\n return (\n <Button variant=\"ghost\" size=\"sm\" className=\"text-muted-foreground\" onClick={() => setConfirming(true)}>\n <Trash2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Remove from my wallet\")}\n </Button>\n );\n }\n\n const remove = () =>\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-burn\", { owner: signer.address, collection: collectionAddress, tokenId: String(tokenId) }));\n });\n\n return (\n <div className=\"space-y-2 rounded-xl border border-border p-3\">\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Burning removes this certificate permanently.\")}\n </p>\n {tx.phase === \"error\" && <p className=\"text-xs text-destructive\">{tx.error}</p>}\n <div className=\"flex gap-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"flex-1\" disabled={busy} onClick={() => setConfirming(false)}>\n {t(\"Keep it\")}\n </Button>\n <Button variant=\"destructive\" size=\"sm\" className=\"flex-1\" disabled={busy} onClick={remove}>\n {busy ? <Loader2 className=\"h-3.5 w-3.5 animate-spin\" /> : t(\"Remove\")}\n </Button>\n </div>\n </div>\n );\n}\n"],"mappings":";AA4BW,cAKL,YALK;AA1BX,SAAS,WAAW,gBAAgB;AACpC,SAAS,SAAS,cAAc;AAChC,SAAS,cAAc;AACvB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SA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BAAC,UAAO,SAAQ,eAAc,MAAK,MAAK,WAAU,UAAS,UAAU,MAAM,SAAS,QACjF,iBAAO,oBAAC,WAAQ,WAAU,4BAA2B,IAAK,EAAE,QAAQ,GACvE;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -36,7 +36,9 @@ var import_run_intent_calls = require("../utils/run-intent-calls.js");
|
|
|
36
36
|
var import_use_pop = require("../utils/use-pop.js");
|
|
37
37
|
var import_success_messages = require("../utils/success-messages.js");
|
|
38
38
|
var import_use_transaction = require("../utils/use-transaction.js");
|
|
39
|
+
var import_provider = require("../i18n/provider.js");
|
|
39
40
|
function PopClaimButton({ collectionAddress }) {
|
|
41
|
+
const t = (0, import_provider.useT)();
|
|
40
42
|
const app = (0, import_medialane_app.useMedialaneApp)();
|
|
41
43
|
const { walletAddress } = app;
|
|
42
44
|
const { hasClaimed, mutate } = (0, import_use_pop.usePopClaimStatus)(collectionAddress, walletAddress);
|
|
@@ -72,15 +74,15 @@ function PopClaimButton({ collectionAddress }) {
|
|
|
72
74
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
73
75
|
(state === "ready" || busy) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_button.Button, { size: "sm", className: "w-full gap-1.5", onClick: claim, disabled: busy, children: [
|
|
74
76
|
busy ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-3.5 w-3.5" }),
|
|
75
|
-
busy ? "Claiming\u2026" : "Claim certificate"
|
|
77
|
+
busy ? t("Claiming\u2026") : t("Claim certificate")
|
|
76
78
|
] }),
|
|
77
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Claim certificate", workingLabel: "Claiming the certificate\u2026", firstStepLabel: "Prepare claim", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Claim certificate"), workingLabel: "Claiming the certificate\u2026", firstStepLabel: "Prepare claim", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
80
|
import_transaction_success.TransactionSuccess,
|
|
79
81
|
{
|
|
80
82
|
name: "Certificate",
|
|
81
|
-
...import_success_messages.successMessages.claimed(),
|
|
83
|
+
...import_success_messages.successMessages.claimed(t),
|
|
82
84
|
txHash: tx.txHash,
|
|
83
|
-
actions: [{ label: "Done", onClick: tx.reset }],
|
|
85
|
+
actions: [{ label: t("Done"), onClick: tx.reset }],
|
|
84
86
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_reward_earned.RewardEarned, { actionType: "claim_pop" })
|
|
85
87
|
}
|
|
86
88
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/pop-claim-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Award, Loader2 } from \"lucide-react\";\nimport { popClaimState, type PopClaimInfo } from \"@medialane/sdk/starknet\";\nimport { Button } from \"./button.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { RewardEarned } from \"./rewards/reward-earned.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { claimProofFor } from \"../utils/drop/claim-proof.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { usePopClaimStatus } from \"../utils/use-pop.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport function PopClaimButton({ collectionAddress }: { collectionAddress: string }) {\n const app = useMedialaneApp();\n const { walletAddress } = app;\n const { hasClaimed, mutate } = usePopClaimStatus(collectionAddress, walletAddress);\n const [proof, setProof] = useState<string[] | null>(null);\n const [info, setInfo] = useState<PopClaimInfo | null>(null);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n let storage: Storage | null = null;\n try {\n storage = window.sessionStorage;\n } catch {\n storage = null;\n }\n setProof(claimProofFor(storage, collectionAddress, window.location.hash));\n app.getClient().api.chainReads.popClaimInfo(collectionAddress)\n .then(setInfo)\n .catch(() => setInfo(null));\n }, [app, collectionAddress]);\n\n useEffect(() => {\n if (tx.phase === \"success\") void mutate();\n }, [tx.phase, mutate]);\n\n const state = popClaimState({\n hasClaimed,\n proof,\n wallet: walletAddress,\n info: info && { ...info, now: Math.floor(Date.now() / 1000) },\n });\n\n const claim = () => {\n if (!proof) return;\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-claim\", { claimer: signer.address, collection: collectionAddress, proof }));\n });\n };\n\n return (\n <>\n {(state === \"ready\" || busy) && (\n <Button size=\"sm\" className=\"w-full gap-1.5\" onClick={claim} disabled={busy}>\n {busy ? <Loader2 className=\"h-3.5 w-3.5 animate-spin\" /> : <Award className=\"h-3.5 w-3.5\" />}\n {busy ? \"Claiming…\" : \"Claim certificate\"}\n </Button>\n )}\n <TransactionDialog tx={tx} title
|
|
1
|
+
{"version":3,"sources":["../../src/components/pop-claim-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Award, Loader2 } from \"lucide-react\";\nimport { popClaimState, type PopClaimInfo } from \"@medialane/sdk/starknet\";\nimport { Button } from \"./button.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { RewardEarned } from \"./rewards/reward-earned.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { claimProofFor } from \"../utils/drop/claim-proof.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { usePopClaimStatus } from \"../utils/use-pop.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport function PopClaimButton({ collectionAddress }: { collectionAddress: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const { walletAddress } = app;\n const { hasClaimed, mutate } = usePopClaimStatus(collectionAddress, walletAddress);\n const [proof, setProof] = useState<string[] | null>(null);\n const [info, setInfo] = useState<PopClaimInfo | null>(null);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n let storage: Storage | null = null;\n try {\n storage = window.sessionStorage;\n } catch {\n storage = null;\n }\n setProof(claimProofFor(storage, collectionAddress, window.location.hash));\n app.getClient().api.chainReads.popClaimInfo(collectionAddress)\n .then(setInfo)\n .catch(() => setInfo(null));\n }, [app, collectionAddress]);\n\n useEffect(() => {\n if (tx.phase === \"success\") void mutate();\n }, [tx.phase, mutate]);\n\n const state = popClaimState({\n hasClaimed,\n proof,\n wallet: walletAddress,\n info: info && { ...info, now: Math.floor(Date.now() / 1000) },\n });\n\n const claim = () => {\n if (!proof) return;\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-claim\", { claimer: signer.address, collection: collectionAddress, proof }));\n });\n };\n\n return (\n <>\n {(state === \"ready\" || busy) && (\n <Button size=\"sm\" className=\"w-full gap-1.5\" onClick={claim} disabled={busy}>\n {busy ? <Loader2 className=\"h-3.5 w-3.5 animate-spin\" /> : <Award className=\"h-3.5 w-3.5\" />}\n {busy ? t(\"Claiming…\") : t(\"Claim certificate\")}\n </Button>\n )}\n <TransactionDialog tx={tx} title={t(\"Claim certificate\")} workingLabel=\"Claiming the certificate…\" firstStepLabel=\"Prepare claim\">\n <TransactionSuccess\n name=\"Certificate\"\n {...successMessages.claimed(t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n >\n <RewardEarned actionType=\"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AAQ,EAAE,GAAG,MAAM,KAAK,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,EAAE;AAAA,EAC9D,CAAC;AAED,QAAM,QAAQ,MAAM;AAClB,QAAI,CAAC,MAAO;AACZ,SAAK,GAAG,IAAI,OAAO,WAAW;AAC5B,gBAAM,wCAAe,QAAQ,MAAM,IAAI,UAAU,EAAE,IAAI,QAAQ,OAAO,aAAa,EAAE,SAAS,OAAO,SAAS,YAAY,mBAAmB,MAAM,CAAC,CAAC;AAAA,IACvJ,CAAC;AAAA,EACH;AAEA,SACE,4EACI;AAAA,eAAU,WAAW,SACrB,6CAAC,wBAAO,MAAK,MAAK,WAAU,kBAAiB,SAAS,OAAO,UAAU,MACpE;AAAA,aAAO,4CAAC,+BAAQ,WAAU,4BAA2B,IAAK,4CAAC,6BAAM,WAAU,eAAc;AAAA,MACzF,OAAO,EAAE,gBAAW,IAAI,EAAE,mBAAmB;AAAA,OAChD;AAAA,IAEF,4CAAC,+CAAkB,IAAQ,OAAO,EAAE,mBAAmB,GAAG,cAAa,kCAA4B,gBAAe,iBAChH;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACJ,GAAG,wCAAgB,QAAQ,CAAC;AAAA,QAC7B,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAAA,QAEjD,sDAAC,qCAAa,YAAW,aAAY;AAAA;AAAA,IACvC,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -13,7 +13,9 @@ import { runIntentCalls } from "../utils/run-intent-calls.js";
|
|
|
13
13
|
import { usePopClaimStatus } from "../utils/use-pop.js";
|
|
14
14
|
import { successMessages } from "../utils/success-messages.js";
|
|
15
15
|
import { useTransaction } from "../utils/use-transaction.js";
|
|
16
|
+
import { useT } from "../i18n/provider.js";
|
|
16
17
|
function PopClaimButton({ collectionAddress }) {
|
|
18
|
+
const t = useT();
|
|
17
19
|
const app = useMedialaneApp();
|
|
18
20
|
const { walletAddress } = app;
|
|
19
21
|
const { hasClaimed, mutate } = usePopClaimStatus(collectionAddress, walletAddress);
|
|
@@ -49,15 +51,15 @@ function PopClaimButton({ collectionAddress }) {
|
|
|
49
51
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50
52
|
(state === "ready" || busy) && /* @__PURE__ */ jsxs(Button, { size: "sm", className: "w-full gap-1.5", onClick: claim, disabled: busy, children: [
|
|
51
53
|
busy ? /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ jsx(Award, { className: "h-3.5 w-3.5" }),
|
|
52
|
-
busy ? "Claiming\u2026" : "Claim certificate"
|
|
54
|
+
busy ? t("Claiming\u2026") : t("Claim certificate")
|
|
53
55
|
] }),
|
|
54
|
-
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Claim certificate", workingLabel: "Claiming the certificate\u2026", firstStepLabel: "Prepare claim", children: /* @__PURE__ */ jsx(
|
|
56
|
+
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Claim certificate"), workingLabel: "Claiming the certificate\u2026", firstStepLabel: "Prepare claim", children: /* @__PURE__ */ jsx(
|
|
55
57
|
TransactionSuccess,
|
|
56
58
|
{
|
|
57
59
|
name: "Certificate",
|
|
58
|
-
...successMessages.claimed(),
|
|
60
|
+
...successMessages.claimed(t),
|
|
59
61
|
txHash: tx.txHash,
|
|
60
|
-
actions: [{ label: "Done", onClick: tx.reset }],
|
|
62
|
+
actions: [{ label: t("Done"), onClick: tx.reset }],
|
|
61
63
|
children: /* @__PURE__ */ jsx(RewardEarned, { actionType: "claim_pop" })
|
|
62
64
|
}
|
|
63
65
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/pop-claim-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Award, Loader2 } from \"lucide-react\";\nimport { popClaimState, type PopClaimInfo } from \"@medialane/sdk/starknet\";\nimport { Button } from \"./button.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { RewardEarned } from \"./rewards/reward-earned.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { claimProofFor } from \"../utils/drop/claim-proof.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { usePopClaimStatus } from \"../utils/use-pop.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport function PopClaimButton({ collectionAddress }: { collectionAddress: string }) {\n const app = useMedialaneApp();\n const { walletAddress } = app;\n const { hasClaimed, mutate } = usePopClaimStatus(collectionAddress, walletAddress);\n const [proof, setProof] = useState<string[] | null>(null);\n const [info, setInfo] = useState<PopClaimInfo | null>(null);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n let storage: Storage | null = null;\n try {\n storage = window.sessionStorage;\n } catch {\n storage = null;\n }\n setProof(claimProofFor(storage, collectionAddress, window.location.hash));\n app.getClient().api.chainReads.popClaimInfo(collectionAddress)\n .then(setInfo)\n .catch(() => setInfo(null));\n }, [app, collectionAddress]);\n\n useEffect(() => {\n if (tx.phase === \"success\") void mutate();\n }, [tx.phase, mutate]);\n\n const state = popClaimState({\n hasClaimed,\n proof,\n wallet: walletAddress,\n info: info && { ...info, now: Math.floor(Date.now() / 1000) },\n });\n\n const claim = () => {\n if (!proof) return;\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-claim\", { claimer: signer.address, collection: collectionAddress, proof }));\n });\n };\n\n return (\n <>\n {(state === \"ready\" || busy) && (\n <Button size=\"sm\" className=\"w-full gap-1.5\" onClick={claim} disabled={busy}>\n {busy ? <Loader2 className=\"h-3.5 w-3.5 animate-spin\" /> : <Award className=\"h-3.5 w-3.5\" />}\n {busy ? \"Claiming…\" : \"Claim certificate\"}\n </Button>\n )}\n <TransactionDialog tx={tx} title
|
|
1
|
+
{"version":3,"sources":["../../src/components/pop-claim-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { Award, Loader2 } from \"lucide-react\";\nimport { popClaimState, type PopClaimInfo } from \"@medialane/sdk/starknet\";\nimport { Button } from \"./button.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { RewardEarned } from \"./rewards/reward-earned.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { claimProofFor } from \"../utils/drop/claim-proof.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { usePopClaimStatus } from \"../utils/use-pop.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport function PopClaimButton({ collectionAddress }: { collectionAddress: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const { walletAddress } = app;\n const { hasClaimed, mutate } = usePopClaimStatus(collectionAddress, walletAddress);\n const [proof, setProof] = useState<string[] | null>(null);\n const [info, setInfo] = useState<PopClaimInfo | null>(null);\n const tx = useTransaction();\n const busy = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n useEffect(() => {\n let storage: Storage | null = null;\n try {\n storage = window.sessionStorage;\n } catch {\n storage = null;\n }\n setProof(claimProofFor(storage, collectionAddress, window.location.hash));\n app.getClient().api.chainReads.popClaimInfo(collectionAddress)\n .then(setInfo)\n .catch(() => setInfo(null));\n }, [app, collectionAddress]);\n\n useEffect(() => {\n if (tx.phase === \"success\") void mutate();\n }, [tx.phase, mutate]);\n\n const state = popClaimState({\n hasClaimed,\n proof,\n wallet: walletAddress,\n info: info && { ...info, now: Math.floor(Date.now() / 1000) },\n });\n\n const claim = () => {\n if (!proof) return;\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-claim\", { claimer: signer.address, collection: collectionAddress, proof }));\n });\n };\n\n return (\n <>\n {(state === \"ready\" || busy) && (\n <Button size=\"sm\" className=\"w-full gap-1.5\" onClick={claim} disabled={busy}>\n {busy ? <Loader2 className=\"h-3.5 w-3.5 animate-spin\" /> : <Award className=\"h-3.5 w-3.5\" />}\n {busy ? t(\"Claiming…\") : t(\"Claim certificate\")}\n </Button>\n )}\n <TransactionDialog tx={tx} title={t(\"Claim certificate\")} workingLabel=\"Claiming the certificate…\" firstStepLabel=\"Prepare claim\">\n <TransactionSuccess\n name=\"Certificate\"\n {...successMessages.claimed(t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n >\n <RewardEarned actionType=\"claim_pop\" />\n </TransactionSuccess>\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";AA2DI,mBAGc,KADV,YAFJ;AAzDJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,OAAO,eAAe;AAC/B,SAAS,qBAAwC;AACjD,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,YAAY;AAEd,SAAS,eAAe,EAAE,kBAAkB,GAAkC;AACnF,QAAM,IAAI,KAAK;AACf,QAAM,MAAM,gBAAgB;AAC5B,QAAM,EAAE,cAAc,IAAI;AAC1B,QAAM,EAAE,YAAY,OAAO,IAAI,kBAAkB,mBAAmB,aAAa;AACjF,QAAM,CAAC,OAAO,QAAQ,IAAI,SAA0B,IAAI;AACxD,QAAM,CAAC,MAAM,OAAO,IAAI,SAA8B,IAAI;AAC1D,QAAM,KAAK,eAAe;AAC1B,QAAM,OAAO,GAAG,UAAU,eAAe,GAAG,UAAU,gBAAg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;AAAA,QACJ,GAAG,gBAAgB,QAAQ,CAAC;AAAA,QAC7B,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAAA,QAEjD,8BAAC,gBAAa,YAAW,aAAY;AAAA;AAAA,IACvC,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -50,6 +50,7 @@ var import_run_intent_calls = require("../utils/run-intent-calls.js");
|
|
|
50
50
|
var import_success_messages = require("../utils/success-messages.js");
|
|
51
51
|
var import_use_collections = require("../utils/use-collections.js");
|
|
52
52
|
var import_use_transaction = require("../utils/use-transaction.js");
|
|
53
|
+
var import_provider = require("../i18n/provider.js");
|
|
53
54
|
function parseAddresses(raw) {
|
|
54
55
|
return raw.split(/[\n,\s]+/).map((a) => a.trim()).filter((a) => /^0x[0-9a-fA-F]+$/.test(a));
|
|
55
56
|
}
|
|
@@ -63,15 +64,16 @@ function IssueSection({
|
|
|
63
64
|
onIssue,
|
|
64
65
|
isSubmitting
|
|
65
66
|
}) {
|
|
67
|
+
const t = (0, import_provider.useT)();
|
|
66
68
|
const [raw, setRaw] = (0, import_react.useState)("");
|
|
67
69
|
const address = raw.trim();
|
|
68
70
|
const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);
|
|
69
71
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-5 space-y-3", children: [
|
|
70
72
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
71
73
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-4 w-4 text-green-500" }),
|
|
72
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-sm", children: "Issue directly" })
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-sm", children: t("Issue directly") })
|
|
73
75
|
] }),
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: "Send the certificate straight to one wallet \u2014 for a late participant, without republishing the list or changing anyone's claim link." }),
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t("Send the certificate straight to one wallet \u2014 for a late participant, without republishing the list or changing anyone's claim link.") }),
|
|
75
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
78
|
"input",
|
|
77
79
|
{
|
|
@@ -95,7 +97,7 @@ function IssueSection({
|
|
|
95
97
|
},
|
|
96
98
|
children: [
|
|
97
99
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Send, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
98
|
-
"Issue certificate"
|
|
100
|
+
t("Issue certificate")
|
|
99
101
|
]
|
|
100
102
|
}
|
|
101
103
|
)
|
|
@@ -106,23 +108,20 @@ function AllowlistSection({
|
|
|
106
108
|
isSubmitting,
|
|
107
109
|
links
|
|
108
110
|
}) {
|
|
111
|
+
const t = (0, import_provider.useT)();
|
|
109
112
|
const [raw, setRaw] = (0, import_react.useState)("");
|
|
110
113
|
const parsed = parseAddresses(raw);
|
|
111
114
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-5 space-y-3", children: [
|
|
112
115
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
113
116
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Users, { className: "h-4 w-4 text-green-500" }),
|
|
114
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-sm", children: "Participants" }),
|
|
115
|
-
parsed.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.
|
|
116
|
-
parsed.length,
|
|
117
|
-
" address",
|
|
118
|
-
parsed.length !== 1 ? "es" : ""
|
|
119
|
-
] })
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-sm", children: t("Participants") }),
|
|
118
|
+
parsed.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "ml-auto text-xs text-muted-foreground", children: t.plural("{count} address", "{count} addresses", parsed.length) })
|
|
120
119
|
] }),
|
|
121
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: "Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it \u2014 send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs." }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t("Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it \u2014 send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.") }),
|
|
122
121
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
122
|
import_textarea.Textarea,
|
|
124
123
|
{
|
|
125
|
-
placeholder: "Paste Starknet addresses, one per line:\n0x04a...\n0x06b...",
|
|
124
|
+
placeholder: t("Paste Starknet addresses, one per line:\n0x04a...\n0x06b..."),
|
|
126
125
|
rows: 8,
|
|
127
126
|
value: raw,
|
|
128
127
|
onChange: (e) => setRaw(e.target.value),
|
|
@@ -138,24 +137,26 @@ function AllowlistSection({
|
|
|
138
137
|
onClick: () => onPublish(parsed),
|
|
139
138
|
children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
140
139
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-3.5 w-3.5 animate-spin mr-1.5" }),
|
|
141
|
-
"Publishing\u2026"
|
|
140
|
+
t("Publishing\u2026")
|
|
142
141
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
143
142
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CheckCircle2, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
144
|
-
"Publish
|
|
145
|
-
|
|
143
|
+
t("Publish"),
|
|
144
|
+
" ",
|
|
145
|
+
parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? "s" : ""}` : t("participants")
|
|
146
146
|
] })
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
149
|
links && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 pt-2", children: [
|
|
150
150
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_button.Button, { variant: "outline", size: "sm", className: "w-full", onClick: () => downloadCsv(links), children: [
|
|
151
151
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Download, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
152
|
-
"Download claim links (CSV)"
|
|
152
|
+
t("Download claim links (CSV)")
|
|
153
153
|
] }),
|
|
154
154
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "truncate", children: link.address }, link.address)) })
|
|
155
155
|
] })
|
|
156
156
|
] });
|
|
157
157
|
}
|
|
158
158
|
function PopManagePage({ contract }) {
|
|
159
|
+
const t = (0, import_provider.useT)();
|
|
159
160
|
const app = (0, import_medialane_app.useMedialaneApp)();
|
|
160
161
|
const walletAddress = app.walletAddress;
|
|
161
162
|
const { collection, isLoading } = (0, import_use_collections.useCollection)(contract);
|
|
@@ -165,7 +166,7 @@ function PopManagePage({ contract }) {
|
|
|
165
166
|
const isSubmitting = tx.phase === "preparing" || tx.phase === "submitting" || tx.phase === "confirming";
|
|
166
167
|
const isOwner = walletAddress && collection?.owner && (0, import_sdk.normalizeAddress)("STARKNET", walletAddress) === (0, import_sdk.normalizeAddress)("STARKNET", collection.owner);
|
|
167
168
|
const issue = (recipient) => {
|
|
168
|
-
setDone(import_success_messages.successMessages.certificateIssued());
|
|
169
|
+
setDone(import_success_messages.successMessages.certificateIssued(t));
|
|
169
170
|
void tx.run(async (signer) => {
|
|
170
171
|
await (0, import_run_intent_calls.runIntentCalls)(signer, () => app.getClient().api.intents.create("pop-manage", { owner: signer.address, collection: contract, action: "issue", recipient }));
|
|
171
172
|
});
|
|
@@ -173,46 +174,42 @@ function PopManagePage({ contract }) {
|
|
|
173
174
|
const publish = (addresses) => {
|
|
174
175
|
const list = (0, import_starknet.buildPopAllowlist)(addresses);
|
|
175
176
|
const count = Object.keys(list.proofs).length;
|
|
176
|
-
setDone(import_success_messages.successMessages.participantsPublished({ count }));
|
|
177
|
+
setDone(import_success_messages.successMessages.participantsPublished({ count }, t));
|
|
177
178
|
void tx.run(async (signer) => {
|
|
178
179
|
await (0, import_run_intent_calls.runIntentCalls)(signer, () => app.getClient().api.intents.create("pop-manage", { owner: signer.address, collection: contract, action: "set_allowlist_root", root: list.root }));
|
|
179
180
|
}).then((ok) => {
|
|
180
181
|
if (ok) setLinks((0, import_starknet.popClaimLinks)(window.location.origin, contract, list));
|
|
181
182
|
});
|
|
182
183
|
};
|
|
183
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wallet_required.WalletRequired, { icon: import_lucide_react.Award, title: "Connect your wallet", description: "Connect to manage your event.", children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4", children: [
|
|
184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wallet_required.WalletRequired, { icon: import_lucide_react.Award, title: t("Connect your wallet"), description: t("Connect to manage your event."), children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4", children: [
|
|
184
185
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-6 w-24" }),
|
|
185
186
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-32 w-full rounded-2xl" }),
|
|
186
187
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-64 w-full rounded-2xl" })
|
|
187
188
|
] }) : !collection ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4", children: [
|
|
188
189
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertCircle, { className: "h-10 w-10 text-muted-foreground/20 mx-auto" }),
|
|
189
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground", children: "Collection not found." }),
|
|
190
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/launchpad/pop", children: "\u2190 Back" }) })
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground", children: t("Collection not found.") }),
|
|
191
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/launchpad/pop", children: t("\u2190 Back") }) })
|
|
191
192
|
] }) : !isOwner ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4", children: [
|
|
192
193
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-10 w-10 text-muted-foreground/20 mx-auto" }),
|
|
193
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground", children: "You are not the organizer of this event." }),
|
|
194
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/launchpad/pop", children: "\u2190 Back to events" }) })
|
|
194
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground", children: t("You are not the organizer of this event.") }),
|
|
195
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/launchpad/pop", children: t("\u2190 Back to events") }) })
|
|
195
196
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6", children: [
|
|
196
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Manage event", workingLabel: "Updating your event\u2026", firstStepLabel: "Prepare", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_success.TransactionSuccess, { name: collection.name ?? "Event", title: done.title, description: done.description, txHash: tx.txHash, actions: [{ label: "Done", onClick: tx.reset }] }) }),
|
|
197
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Manage event"), workingLabel: "Updating your event\u2026", firstStepLabel: "Prepare", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_success.TransactionSuccess, { name: collection.name ?? "Event", title: done.title, description: done.description, txHash: tx.txHash, actions: [{ label: t("Done"), onClick: tx.reset }] }) }),
|
|
197
198
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "ghost", size: "sm", className: "-ml-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: "/launchpad/pop", children: [
|
|
198
199
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowLeft, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
199
|
-
"All events"
|
|
200
|
+
t("All events")
|
|
200
201
|
] }) }) }),
|
|
201
202
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.04, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
202
203
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "pill-badge inline-flex gap-1.5 mb-2", children: [
|
|
203
204
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-3 w-3" }),
|
|
204
|
-
"Organizer"
|
|
205
|
+
t("Organizer")
|
|
205
206
|
] }),
|
|
206
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-2xl font-bold mt-1", children: "Manage Event" }),
|
|
207
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-2xl font-bold mt-1", children: t("Manage Event") }),
|
|
207
208
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: collection.name ?? contract })
|
|
208
209
|
] }) }),
|
|
209
210
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.08, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-4 flex items-center gap-3", children: [
|
|
210
211
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-4 w-4 text-green-500 shrink-0" }),
|
|
211
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
212
|
-
"Only participants on your ",
|
|
213
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { className: "text-foreground", children: "published list" }),
|
|
214
|
-
" can claim, with the link you send them."
|
|
215
|
-
] })
|
|
212
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t.rich("Only participants on your {strong} can claim, with the link you send them.", { strong: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { className: "text-foreground", children: t("published list") }) }) })
|
|
216
213
|
] }) }),
|
|
217
214
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.12, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AllowlistSection, { onPublish: publish, isSubmitting, links }) }),
|
|
218
215
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.16, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IssueSection, { onIssue: issue, isSubmitting }) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">Issue directly</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n Send the certificate straight to one wallet — for a late participant, without republishing the list or\n changing anyone's claim link.\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n Issue certificate\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">Participants</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {parsed.length} address{parsed.length !== 1 ? \"es\" : \"\"}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n Paste every participant's wallet address. Publishing replaces the previous list and every link\n sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this\n browser: download the claim links and send each participant theirs.\n </p>\n <Textarea\n placeholder={\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\"}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n Publishing…\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n Publish {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : \"participants\"}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n Download claim links (CSV)\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued());\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title=\"Connect your wallet\" description=\"Connect to manage your event.\">\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">Collection not found.</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">← Back</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">You are not the organizer of this event.</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">← Back to events</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title=\"Manage event\" workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: \"Done\", onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n All events\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n Organizer\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">Manage Event</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">\n Only participants on your <strong className=\"text-foreground\">published list</strong> can claim,\n with the link you send them.\n </p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <IssueSection onIssue={issue} isSubmitting={isSubmitting} />\n </FadeIn>\n </div>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+CM;AA7CN,mBAAyB;AACzB,iBAAiC;AACjC,sBAAsF;AACtF,0BAA4F;AAC5F,oBAAuB;AACvB,kBAAiB;AACjB,2BAAgC;AAChC,+BAAuB;AACvB,sBAAyB;AACzB,sBAAyB;AACzB,gCAAkC;AAClC,iCAAmC;AACnC,6BAA+B;AAC/B,8BAA+B;AAC/B,8BAAgC;AAChC,6BAA8B;AAC9B,6BAA+B;AAE/B,SAAS,eAAe,KAAuB;AAC7C,SAAO,IACJ,MAAM,UAAU,EAChB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EACnB,OAAO,C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kDAAC,iCAAU,WAAU,sBAAqB;AAAA,MAAE;AAAA,OAE9C,GACF,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,uDAAC,SACC;AAAA,mDAAC,UAAK,WAAU,uCACd;AAAA,oDAAC,6BAAM,WAAU,WAAU;AAAA,QAAE;AAAA,SAE/B;AAAA,MACA,4CAAC,QAAG,WAAU,2BAA0B,0BAAY;AAAA,MACpD,4CAAC,OAAE,WAAU,iCAAiC,qBAAW,QAAQ,UAAS;AAAA,OAC5E,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,uDAAC,SAAI,WAAU,0CACb;AAAA,kDAAC,6BAAM,WAAU,mCAAkC;AAAA,MACnD,6CAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,QACjB,4CAAC,YAAO,WAAU,mBAAkB,4BAAc;AAAA,QAAS;AAAA,SAEvF;AAAA,OACF,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,oBAAiB,WAAW,SAAS,cAA4B,OAAc,GAClF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":["Link"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Issue directly\")}</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Send the certificate straight to one wallet — for a late participant, without republishing the list or changing anyone's claim link.\")}\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Issue certificate\")}\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Participants\")}</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {t.plural(\"{count} address\", \"{count} addresses\", parsed.length)}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.\")}\n </p>\n <Textarea\n placeholder={t(\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\")}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n {t(\"Publishing…\")}\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Publish\")} {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : t(\"participants\")}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Download claim links (CSV)\")}\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued(t));\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }, t));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title={t(\"Connect your wallet\")} description={t(\"Connect to manage your event.\")}>\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"Collection not found.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back\")}</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"You are not the organizer of this event.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back to events\")}</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title={t(\"Manage event\")} workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: t(\"Done\"), onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"All events\")}\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n {t(\"Organizer\")}\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">{t(\"Manage Event\")}</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">{t.rich(\"Only participants on your {strong} can claim, with the link you send them.\", { strong: <strong className=\"text-foreground\">{t(\"published list\")}</strong> })}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n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,mCAAO,OAAO,MACb,uDAAC,SAAI,WAAU,0CACb;AAAA,kDAAC,6BAAM,WAAU,mCAAkC;AAAA,MACnD,4CAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,8EAA8E,EAAE,QAAQ,4CAAC,YAAO,WAAU,mBAAmB,YAAE,gBAAgB,GAAE,EAAU,CAAC,GAAE;AAAA,OACrN,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,oBAAiB,WAAW,SAAS,cAA4B,OAAc,GAClF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":["Link"]}
|
|
@@ -17,6 +17,7 @@ import { runIntentCalls } from "../utils/run-intent-calls.js";
|
|
|
17
17
|
import { successMessages } from "../utils/success-messages.js";
|
|
18
18
|
import { useCollection } from "../utils/use-collections.js";
|
|
19
19
|
import { useTransaction } from "../utils/use-transaction.js";
|
|
20
|
+
import { useT } from "../i18n/provider.js";
|
|
20
21
|
function parseAddresses(raw) {
|
|
21
22
|
return raw.split(/[\n,\s]+/).map((a) => a.trim()).filter((a) => /^0x[0-9a-fA-F]+$/.test(a));
|
|
22
23
|
}
|
|
@@ -30,15 +31,16 @@ function IssueSection({
|
|
|
30
31
|
onIssue,
|
|
31
32
|
isSubmitting
|
|
32
33
|
}) {
|
|
34
|
+
const t = useT();
|
|
33
35
|
const [raw, setRaw] = useState("");
|
|
34
36
|
const address = raw.trim();
|
|
35
37
|
const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);
|
|
36
38
|
return /* @__PURE__ */ jsxs("div", { className: "bento-cell p-5 space-y-3", children: [
|
|
37
39
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
38
40
|
/* @__PURE__ */ jsx(Award, { className: "h-4 w-4 text-green-500" }),
|
|
39
|
-
/* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", children: "Issue directly" })
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", children: t("Issue directly") })
|
|
40
42
|
] }),
|
|
41
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Send the certificate straight to one wallet \u2014 for a late participant, without republishing the list or changing anyone's claim link." }),
|
|
43
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("Send the certificate straight to one wallet \u2014 for a late participant, without republishing the list or changing anyone's claim link.") }),
|
|
42
44
|
/* @__PURE__ */ jsx(
|
|
43
45
|
"input",
|
|
44
46
|
{
|
|
@@ -62,7 +64,7 @@ function IssueSection({
|
|
|
62
64
|
},
|
|
63
65
|
children: [
|
|
64
66
|
/* @__PURE__ */ jsx(Send, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
65
|
-
"Issue certificate"
|
|
67
|
+
t("Issue certificate")
|
|
66
68
|
]
|
|
67
69
|
}
|
|
68
70
|
)
|
|
@@ -73,23 +75,20 @@ function AllowlistSection({
|
|
|
73
75
|
isSubmitting,
|
|
74
76
|
links
|
|
75
77
|
}) {
|
|
78
|
+
const t = useT();
|
|
76
79
|
const [raw, setRaw] = useState("");
|
|
77
80
|
const parsed = parseAddresses(raw);
|
|
78
81
|
return /* @__PURE__ */ jsxs("div", { className: "bento-cell p-5 space-y-3", children: [
|
|
79
82
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
80
83
|
/* @__PURE__ */ jsx(Users, { className: "h-4 w-4 text-green-500" }),
|
|
81
|
-
/* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", children: "Participants" }),
|
|
82
|
-
parsed.length > 0 && /* @__PURE__ */
|
|
83
|
-
parsed.length,
|
|
84
|
-
" address",
|
|
85
|
-
parsed.length !== 1 ? "es" : ""
|
|
86
|
-
] })
|
|
84
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", children: t("Participants") }),
|
|
85
|
+
parsed.length > 0 && /* @__PURE__ */ jsx("span", { className: "ml-auto text-xs text-muted-foreground", children: t.plural("{count} address", "{count} addresses", parsed.length) })
|
|
87
86
|
] }),
|
|
88
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it \u2014 send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs." }),
|
|
87
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it \u2014 send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.") }),
|
|
89
88
|
/* @__PURE__ */ jsx(
|
|
90
89
|
Textarea,
|
|
91
90
|
{
|
|
92
|
-
placeholder: "Paste Starknet addresses, one per line:\n0x04a...\n0x06b...",
|
|
91
|
+
placeholder: t("Paste Starknet addresses, one per line:\n0x04a...\n0x06b..."),
|
|
93
92
|
rows: 8,
|
|
94
93
|
value: raw,
|
|
95
94
|
onChange: (e) => setRaw(e.target.value),
|
|
@@ -105,24 +104,26 @@ function AllowlistSection({
|
|
|
105
104
|
onClick: () => onPublish(parsed),
|
|
106
105
|
children: isSubmitting ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
106
|
/* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin mr-1.5" }),
|
|
108
|
-
"Publishing\u2026"
|
|
107
|
+
t("Publishing\u2026")
|
|
109
108
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
110
109
|
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
111
|
-
"Publish
|
|
112
|
-
|
|
110
|
+
t("Publish"),
|
|
111
|
+
" ",
|
|
112
|
+
parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? "s" : ""}` : t("participants")
|
|
113
113
|
] })
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
116
|
links && /* @__PURE__ */ jsxs("div", { className: "space-y-2 pt-2", children: [
|
|
117
117
|
/* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "w-full", onClick: () => downloadCsv(links), children: [
|
|
118
118
|
/* @__PURE__ */ jsx(Download, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
119
|
-
"Download claim links (CSV)"
|
|
119
|
+
t("Download claim links (CSV)")
|
|
120
120
|
] }),
|
|
121
121
|
/* @__PURE__ */ jsx("ul", { className: "max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground", children: links.map((link) => /* @__PURE__ */ jsx("li", { className: "truncate", children: link.address }, link.address)) })
|
|
122
122
|
] })
|
|
123
123
|
] });
|
|
124
124
|
}
|
|
125
125
|
function PopManagePage({ contract }) {
|
|
126
|
+
const t = useT();
|
|
126
127
|
const app = useMedialaneApp();
|
|
127
128
|
const walletAddress = app.walletAddress;
|
|
128
129
|
const { collection, isLoading } = useCollection(contract);
|
|
@@ -132,7 +133,7 @@ function PopManagePage({ contract }) {
|
|
|
132
133
|
const isSubmitting = tx.phase === "preparing" || tx.phase === "submitting" || tx.phase === "confirming";
|
|
133
134
|
const isOwner = walletAddress && collection?.owner && normalizeAddress("STARKNET", walletAddress) === normalizeAddress("STARKNET", collection.owner);
|
|
134
135
|
const issue = (recipient) => {
|
|
135
|
-
setDone(successMessages.certificateIssued());
|
|
136
|
+
setDone(successMessages.certificateIssued(t));
|
|
136
137
|
void tx.run(async (signer) => {
|
|
137
138
|
await runIntentCalls(signer, () => app.getClient().api.intents.create("pop-manage", { owner: signer.address, collection: contract, action: "issue", recipient }));
|
|
138
139
|
});
|
|
@@ -140,46 +141,42 @@ function PopManagePage({ contract }) {
|
|
|
140
141
|
const publish = (addresses) => {
|
|
141
142
|
const list = buildPopAllowlist(addresses);
|
|
142
143
|
const count = Object.keys(list.proofs).length;
|
|
143
|
-
setDone(successMessages.participantsPublished({ count }));
|
|
144
|
+
setDone(successMessages.participantsPublished({ count }, t));
|
|
144
145
|
void tx.run(async (signer) => {
|
|
145
146
|
await runIntentCalls(signer, () => app.getClient().api.intents.create("pop-manage", { owner: signer.address, collection: contract, action: "set_allowlist_root", root: list.root }));
|
|
146
147
|
}).then((ok) => {
|
|
147
148
|
if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));
|
|
148
149
|
});
|
|
149
150
|
};
|
|
150
|
-
return /* @__PURE__ */ jsx(WalletRequired, { icon: Award, title: "Connect your wallet", description: "Connect to manage your event.", children: isLoading ? /* @__PURE__ */ jsxs("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4", children: [
|
|
151
|
+
return /* @__PURE__ */ jsx(WalletRequired, { icon: Award, title: t("Connect your wallet"), description: t("Connect to manage your event."), children: isLoading ? /* @__PURE__ */ jsxs("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4", children: [
|
|
151
152
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" }),
|
|
152
153
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-full rounded-2xl" }),
|
|
153
154
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-64 w-full rounded-2xl" })
|
|
154
155
|
] }) : !collection ? /* @__PURE__ */ jsxs("div", { className: "max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4", children: [
|
|
155
156
|
/* @__PURE__ */ jsx(AlertCircle, { className: "h-10 w-10 text-muted-foreground/20 mx-auto" }),
|
|
156
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Collection not found." }),
|
|
157
|
-
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(Link, { href: "/launchpad/pop", children: "\u2190 Back" }) })
|
|
157
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t("Collection not found.") }),
|
|
158
|
+
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(Link, { href: "/launchpad/pop", children: t("\u2190 Back") }) })
|
|
158
159
|
] }) : !isOwner ? /* @__PURE__ */ jsxs("div", { className: "max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4", children: [
|
|
159
160
|
/* @__PURE__ */ jsx(Award, { className: "h-10 w-10 text-muted-foreground/20 mx-auto" }),
|
|
160
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "You are not the organizer of this event." }),
|
|
161
|
-
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(Link, { href: "/launchpad/pop", children: "\u2190 Back to events" }) })
|
|
161
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t("You are not the organizer of this event.") }),
|
|
162
|
+
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(Link, { href: "/launchpad/pop", children: t("\u2190 Back to events") }) })
|
|
162
163
|
] }) : /* @__PURE__ */ jsxs("div", { className: "max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6", children: [
|
|
163
|
-
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Manage event", workingLabel: "Updating your event\u2026", firstStepLabel: "Prepare", children: /* @__PURE__ */ jsx(TransactionSuccess, { name: collection.name ?? "Event", title: done.title, description: done.description, txHash: tx.txHash, actions: [{ label: "Done", onClick: tx.reset }] }) }),
|
|
164
|
+
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Manage event"), workingLabel: "Updating your event\u2026", firstStepLabel: "Prepare", children: /* @__PURE__ */ jsx(TransactionSuccess, { name: collection.name ?? "Event", title: done.title, description: done.description, txHash: tx.txHash, actions: [{ label: t("Done"), onClick: tx.reset }] }) }),
|
|
164
165
|
/* @__PURE__ */ jsx(FadeIn, { children: /* @__PURE__ */ jsx(Button, { asChild: true, variant: "ghost", size: "sm", className: "-ml-2", children: /* @__PURE__ */ jsxs(Link, { href: "/launchpad/pop", children: [
|
|
165
166
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
166
|
-
"All events"
|
|
167
|
+
t("All events")
|
|
167
168
|
] }) }) }),
|
|
168
169
|
/* @__PURE__ */ jsx(FadeIn, { delay: 0.04, children: /* @__PURE__ */ jsxs("div", { children: [
|
|
169
170
|
/* @__PURE__ */ jsxs("span", { className: "pill-badge inline-flex gap-1.5 mb-2", children: [
|
|
170
171
|
/* @__PURE__ */ jsx(Award, { className: "h-3 w-3" }),
|
|
171
|
-
"Organizer"
|
|
172
|
+
t("Organizer")
|
|
172
173
|
] }),
|
|
173
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mt-1", children: "Manage Event" }),
|
|
174
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mt-1", children: t("Manage Event") }),
|
|
174
175
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: collection.name ?? contract })
|
|
175
176
|
] }) }),
|
|
176
177
|
/* @__PURE__ */ jsx(FadeIn, { delay: 0.08, children: /* @__PURE__ */ jsxs("div", { className: "bento-cell p-4 flex items-center gap-3", children: [
|
|
177
178
|
/* @__PURE__ */ jsx(Award, { className: "h-4 w-4 text-green-500 shrink-0" }),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
"Only participants on your ",
|
|
180
|
-
/* @__PURE__ */ jsx("strong", { className: "text-foreground", children: "published list" }),
|
|
181
|
-
" can claim, with the link you send them."
|
|
182
|
-
] })
|
|
179
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t.rich("Only participants on your {strong} can claim, with the link you send them.", { strong: /* @__PURE__ */ jsx("strong", { className: "text-foreground", children: t("published list") }) }) })
|
|
183
180
|
] }) }),
|
|
184
181
|
/* @__PURE__ */ jsx(FadeIn, { delay: 0.12, children: /* @__PURE__ */ jsx(AllowlistSection, { onPublish: publish, isSubmitting, links }) }),
|
|
185
182
|
/* @__PURE__ */ jsx(FadeIn, { delay: 0.16, children: /* @__PURE__ */ jsx(IssueSection, { onIssue: issue, isSubmitting }) })
|