@medialane/ui 0.372.0 → 0.373.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/add-guardian-dialog.cjs +6 -3
- package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
- package/dist/components/account/add-guardian-dialog.js +6 -3
- package/dist/components/account/add-guardian-dialog.js.map +1 -1
- package/dist/components/account/device-approval-dialog.cjs +10 -8
- package/dist/components/account/device-approval-dialog.cjs.map +1 -1
- package/dist/components/account/device-approval-dialog.js +10 -8
- package/dist/components/account/device-approval-dialog.js.map +1 -1
- package/dist/components/account/devices-section.cjs +8 -6
- package/dist/components/account/devices-section.cjs.map +1 -1
- package/dist/components/account/devices-section.js +8 -6
- package/dist/components/account/devices-section.js.map +1 -1
- package/dist/components/account/email-code-entry.cjs +7 -9
- package/dist/components/account/email-code-entry.cjs.map +1 -1
- package/dist/components/account/email-code-entry.js +7 -9
- package/dist/components/account/email-code-entry.js.map +1 -1
- package/dist/components/account/guardian-recovery-section.cjs +26 -35
- package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
- package/dist/components/account/guardian-recovery-section.js +26 -35
- package/dist/components/account/guardian-recovery-section.js.map +1 -1
- package/dist/components/account-page.cjs +16 -13
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +16 -13
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/accounts-page.cjs +15 -10
- package/dist/components/accounts-page.cjs.map +1 -1
- package/dist/components/accounts-page.js +15 -10
- package/dist/components/accounts-page.js.map +1 -1
- package/dist/components/activities-feed.cjs +10 -9
- package/dist/components/activities-feed.cjs.map +1 -1
- package/dist/components/activities-feed.js +10 -9
- package/dist/components/activities-feed.js.map +1 -1
- package/dist/components/activity-card.cjs +6 -2
- package/dist/components/activity-card.cjs.map +1 -1
- package/dist/components/activity-card.js +6 -2
- package/dist/components/activity-card.js.map +1 -1
- package/dist/components/activity-feed-shell.cjs +5 -4
- package/dist/components/activity-feed-shell.cjs.map +1 -1
- package/dist/components/activity-feed-shell.js +5 -4
- package/dist/components/activity-feed-shell.js.map +1 -1
- package/dist/components/activity-row.cjs +9 -5
- package/dist/components/activity-row.cjs.map +1 -1
- package/dist/components/activity-row.js +9 -5
- package/dist/components/activity-row.js.map +1 -1
- package/dist/components/activity-timeline-row.cjs +11 -8
- package/dist/components/activity-timeline-row.cjs.map +1 -1
- package/dist/components/activity-timeline-row.js +11 -8
- package/dist/components/activity-timeline-row.js.map +1 -1
- package/dist/components/address-display.cjs +3 -1
- package/dist/components/address-display.cjs.map +1 -1
- package/dist/components/address-display.js +3 -1
- package/dist/components/address-display.js.map +1 -1
- package/dist/components/approve-mint-dialog.cjs +17 -15
- package/dist/components/approve-mint-dialog.cjs.map +1 -1
- package/dist/components/approve-mint-dialog.js +17 -15
- package/dist/components/approve-mint-dialog.js.map +1 -1
- package/dist/components/archive-asset-dialog.cjs +13 -15
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -15
- package/dist/components/archive-asset-dialog.js.map +1 -1
- package/dist/components/archived-asset-notice.cjs +5 -2
- package/dist/components/archived-asset-notice.cjs.map +1 -1
- package/dist/components/archived-asset-notice.js +5 -2
- package/dist/components/archived-asset-notice.js.map +1 -1
- package/dist/components/asset-card.cjs +5 -3
- package/dist/components/asset-card.cjs.map +1 -1
- package/dist/components/asset-card.js +5 -3
- package/dist/components/asset-card.js.map +1 -1
- package/dist/components/asset-collection-bar.cjs +4 -2
- package/dist/components/asset-collection-bar.cjs.map +1 -1
- package/dist/components/asset-collection-bar.js +4 -2
- package/dist/components/asset-collection-bar.js.map +1 -1
- package/dist/components/asset-comments-dialog.cjs +3 -1
- package/dist/components/asset-comments-dialog.cjs.map +1 -1
- package/dist/components/asset-comments-dialog.js +3 -1
- package/dist/components/asset-comments-dialog.js.map +1 -1
- package/dist/components/asset-license-summary.cjs +3 -1
- package/dist/components/asset-license-summary.cjs.map +1 -1
- package/dist/components/asset-license-summary.js +3 -1
- package/dist/components/asset-license-summary.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +15 -17
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +15 -17
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-markets-tab.cjs +8 -6
- package/dist/components/asset-markets-tab.cjs.map +1 -1
- package/dist/components/asset-markets-tab.js +8 -6
- package/dist/components/asset-markets-tab.js.map +1 -1
- package/dist/components/asset-overview-content.cjs +15 -13
- package/dist/components/asset-overview-content.cjs.map +1 -1
- package/dist/components/asset-overview-content.js +15 -13
- package/dist/components/asset-overview-content.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +7 -6
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.js +7 -6
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-page.cjs +21 -17
- package/dist/components/asset-page.cjs.map +1 -1
- package/dist/components/asset-page.js +21 -17
- package/dist/components/asset-page.js.map +1 -1
- package/dist/components/asset-picker.cjs +12 -12
- package/dist/components/asset-picker.cjs.map +1 -1
- package/dist/components/asset-picker.js +12 -12
- package/dist/components/asset-picker.js.map +1 -1
- package/dist/components/asset-provenance-tab.cjs +26 -27
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +26 -27
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-publication.cjs +3 -1
- package/dist/components/asset-publication.cjs.map +1 -1
- package/dist/components/asset-publication.js +3 -1
- package/dist/components/asset-publication.js.map +1 -1
- package/dist/components/asset-search-picker.cjs +4 -6
- package/dist/components/asset-search-picker.cjs.map +1 -1
- package/dist/components/asset-search-picker.js +4 -6
- package/dist/components/asset-search-picker.js.map +1 -1
- package/dist/components/asset-top-sections.cjs +3 -1
- package/dist/components/asset-top-sections.cjs.map +1 -1
- package/dist/components/asset-top-sections.js +3 -1
- package/dist/components/asset-top-sections.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +17 -13
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +17 -13
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/asset-unavailable.cjs +5 -2
- package/dist/components/asset-unavailable.cjs.map +1 -1
- package/dist/components/asset-unavailable.js +5 -2
- package/dist/components/asset-unavailable.js.map +1 -1
- package/dist/components/asset-utility-icons.cjs +4 -2
- package/dist/components/asset-utility-icons.cjs.map +1 -1
- package/dist/components/asset-utility-icons.js +4 -2
- package/dist/components/asset-utility-icons.js.map +1 -1
- package/dist/components/asset-video.cjs +3 -4
- package/dist/components/asset-video.cjs.map +1 -1
- package/dist/components/asset-video.js +3 -4
- package/dist/components/asset-video.js.map +1 -1
- package/dist/components/back-button.cjs +3 -1
- package/dist/components/back-button.cjs.map +1 -1
- package/dist/components/back-button.js +3 -1
- package/dist/components/back-button.js.map +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/cancel-order-confirm.cjs +4 -2
- package/dist/components/cancel-order-confirm.cjs.map +1 -1
- package/dist/components/cancel-order-confirm.js +4 -2
- package/dist/components/cancel-order-confirm.js.map +1 -1
- package/dist/components/claim-rail.cjs +5 -2
- package/dist/components/claim-rail.cjs.map +1 -1
- package/dist/components/claim-rail.js +5 -2
- package/dist/components/claim-rail.js.map +1 -1
- package/dist/components/club-owner-actions.cjs +3 -1
- package/dist/components/club-owner-actions.cjs.map +1 -1
- package/dist/components/club-owner-actions.js +3 -1
- package/dist/components/club-owner-actions.js.map +1 -1
- package/dist/components/coin-guarantees.cjs +13 -8
- package/dist/components/coin-guarantees.cjs.map +1 -1
- package/dist/components/coin-guarantees.js +13 -8
- package/dist/components/coin-guarantees.js.map +1 -1
- package/dist/components/coin-launch-preview.cjs +17 -14
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +17 -14
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/coin-row.cjs +6 -3
- package/dist/components/coin-row.cjs.map +1 -1
- package/dist/components/coin-row.js +6 -3
- package/dist/components/coin-row.js.map +1 -1
- package/dist/components/coins-explorer.cjs +13 -10
- package/dist/components/coins-explorer.cjs.map +1 -1
- package/dist/components/coins-explorer.js +13 -10
- package/dist/components/coins-explorer.js.map +1 -1
- package/dist/components/collection-card.cjs +9 -5
- package/dist/components/collection-card.cjs.map +1 -1
- package/dist/components/collection-card.js +9 -5
- package/dist/components/collection-card.js.map +1 -1
- package/dist/components/collection-filters-dialog.cjs +6 -7
- package/dist/components/collection-filters-dialog.cjs.map +1 -1
- package/dist/components/collection-filters-dialog.js +6 -7
- package/dist/components/collection-filters-dialog.js.map +1 -1
- package/dist/components/collection-filters.cjs +14 -13
- package/dist/components/collection-filters.cjs.map +1 -1
- package/dist/components/collection-filters.js +14 -13
- package/dist/components/collection-filters.js.map +1 -1
- package/dist/components/collection-header.cjs +9 -5
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +9 -5
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/collection-name-claim.cjs +10 -8
- package/dist/components/collection-name-claim.cjs.map +1 -1
- package/dist/components/collection-name-claim.js +10 -8
- package/dist/components/collection-name-claim.js.map +1 -1
- package/dist/components/collection-page.cjs +29 -23
- package/dist/components/collection-page.cjs.map +1 -1
- package/dist/components/collection-page.js +29 -23
- package/dist/components/collection-page.js.map +1 -1
- package/dist/components/collection-provenance-tab.cjs +19 -13
- package/dist/components/collection-provenance-tab.cjs.map +1 -1
- package/dist/components/collection-provenance-tab.js +19 -13
- package/dist/components/collection-provenance-tab.js.map +1 -1
- package/dist/components/collection-settings.cjs +59 -55
- package/dist/components/collection-settings.cjs.map +1 -1
- package/dist/components/collection-settings.js +59 -55
- package/dist/components/collection-settings.js.map +1 -1
- package/dist/components/collection-showcase.cjs +8 -4
- package/dist/components/collection-showcase.cjs.map +1 -1
- package/dist/components/collection-showcase.js +8 -4
- package/dist/components/collection-showcase.js.map +1 -1
- package/dist/components/collection-slug-claim.cjs +22 -24
- package/dist/components/collection-slug-claim.cjs.map +1 -1
- package/dist/components/collection-slug-claim.js +22 -24
- package/dist/components/collection-slug-claim.js.map +1 -1
- package/dist/components/collections-page.cjs +36 -30
- package/dist/components/collections-page.cjs.map +1 -1
- package/dist/components/collections-page.js +36 -30
- package/dist/components/collections-page.js.map +1 -1
- package/dist/components/comments-section.cjs +19 -16
- package/dist/components/comments-section.cjs.map +1 -1
- package/dist/components/comments-section.js +19 -16
- package/dist/components/comments-section.js.map +1 -1
- package/dist/components/create-sponsorship-aside.cjs +7 -5
- package/dist/components/create-sponsorship-aside.cjs.map +1 -1
- package/dist/components/create-sponsorship-aside.js +7 -5
- package/dist/components/create-sponsorship-aside.js.map +1 -1
- package/dist/components/creation-record.cjs +9 -5
- package/dist/components/creation-record.cjs.map +1 -1
- package/dist/components/creation-record.js +9 -5
- package/dist/components/creation-record.js.map +1 -1
- package/dist/components/creator-chip.cjs +3 -1
- package/dist/components/creator-chip.cjs.map +1 -1
- package/dist/components/creator-chip.js +3 -1
- package/dist/components/creator-chip.js.map +1 -1
- package/dist/components/creator-header.cjs +3 -1
- package/dist/components/creator-header.cjs.map +1 -1
- package/dist/components/creator-header.js +3 -1
- package/dist/components/creator-header.js.map +1 -1
- package/dist/components/creator-page.cjs +19 -16
- package/dist/components/creator-page.cjs.map +1 -1
- package/dist/components/creator-page.js +19 -16
- package/dist/components/creator-page.js.map +1 -1
- package/dist/components/cta-card-grid.cjs +4 -2
- package/dist/components/cta-card-grid.cjs.map +1 -1
- package/dist/components/cta-card-grid.js +4 -2
- package/dist/components/cta-card-grid.js.map +1 -1
- package/dist/components/dialog.cjs +25 -21
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.js +25 -21
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/discover-community-section.cjs +8 -7
- package/dist/components/discover-community-section.cjs.map +1 -1
- package/dist/components/discover-community-section.js +8 -7
- package/dist/components/discover-community-section.js.map +1 -1
- package/dist/components/discover-features.cjs +18 -14
- package/dist/components/discover-features.cjs.map +1 -1
- package/dist/components/discover-features.js +18 -14
- package/dist/components/discover-features.js.map +1 -1
- package/dist/components/discover-feed-section.cjs +9 -7
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.js +9 -7
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/discover-hero.cjs +7 -3
- package/dist/components/discover-hero.cjs.map +1 -1
- package/dist/components/discover-hero.js +7 -3
- package/dist/components/discover-hero.js.map +1 -1
- package/dist/components/discover-page.cjs +3 -1
- package/dist/components/discover-page.cjs.map +1 -1
- package/dist/components/discover-page.js +3 -1
- package/dist/components/discover-page.js.map +1 -1
- package/dist/components/drop/create/artwork-section.cjs +9 -9
- package/dist/components/drop/create/artwork-section.cjs.map +1 -1
- package/dist/components/drop/create/artwork-section.js +9 -9
- package/dist/components/drop/create/artwork-section.js.map +1 -1
- package/dist/components/drop/create/details-section.cjs +19 -15
- package/dist/components/drop/create/details-section.cjs.map +1 -1
- package/dist/components/drop/create/details-section.js +19 -15
- package/dist/components/drop/create/details-section.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +14 -9
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +14 -9
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/create/exclusive-fields.cjs +7 -5
- package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
- package/dist/components/drop/create/exclusive-fields.js +7 -5
- package/dist/components/drop/create/exclusive-fields.js.map +1 -1
- package/dist/components/drop/create/launch-dialog.cjs +33 -34
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.js +33 -34
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/list-section.cjs +8 -8
- package/dist/components/drop/create/list-section.cjs.map +1 -1
- package/dist/components/drop/create/list-section.js +8 -8
- package/dist/components/drop/create/list-section.js.map +1 -1
- package/dist/components/drop/create/sale-section.cjs +8 -6
- package/dist/components/drop/create/sale-section.cjs.map +1 -1
- package/dist/components/drop/create/sale-section.js +8 -6
- package/dist/components/drop/create/sale-section.js.map +1 -1
- package/dist/components/drop/drop-card.cjs +5 -3
- package/dist/components/drop/drop-card.cjs.map +1 -1
- package/dist/components/drop/drop-card.js +5 -3
- package/dist/components/drop/drop-card.js.map +1 -1
- package/dist/components/drop/drop-features.cjs +5 -4
- package/dist/components/drop/drop-features.cjs.map +1 -1
- package/dist/components/drop/drop-features.js +5 -4
- package/dist/components/drop/drop-features.js.map +1 -1
- package/dist/components/drop/drop-listing.cjs +11 -8
- package/dist/components/drop/drop-listing.cjs.map +1 -1
- package/dist/components/drop/drop-listing.js +11 -8
- package/dist/components/drop/drop-listing.js.map +1 -1
- package/dist/components/drop/drop-status.cjs +12 -16
- package/dist/components/drop/drop-status.cjs.map +1 -1
- package/dist/components/drop/drop-status.js +12 -16
- package/dist/components/drop/drop-status.js.map +1 -1
- package/dist/components/drop/drop-token-link.cjs +6 -3
- package/dist/components/drop/drop-token-link.cjs.map +1 -1
- package/dist/components/drop/drop-token-link.js +6 -3
- package/dist/components/drop/drop-token-link.js.map +1 -1
- package/dist/components/drop/my-drops.cjs +5 -3
- package/dist/components/drop/my-drops.cjs.map +1 -1
- package/dist/components/drop/my-drops.js +5 -3
- package/dist/components/drop/my-drops.js.map +1 -1
- package/dist/components/drop/page/drop-action-box.cjs +10 -9
- package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
- package/dist/components/drop/page/drop-action-box.js +10 -9
- package/dist/components/drop/page/drop-action-box.js.map +1 -1
- package/dist/components/drop/page/drop-activity.cjs +3 -1
- package/dist/components/drop/page/drop-activity.cjs.map +1 -1
- package/dist/components/drop/page/drop-activity.js +3 -1
- package/dist/components/drop/page/drop-activity.js.map +1 -1
- package/dist/components/drop/page/drop-manage.cjs +30 -36
- package/dist/components/drop/page/drop-manage.cjs.map +1 -1
- package/dist/components/drop/page/drop-manage.js +30 -36
- package/dist/components/drop/page/drop-manage.js.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.cjs +10 -13
- package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.js +10 -13
- package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
- package/dist/components/drop/page/drop-page.cjs +11 -9
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +11 -9
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/drop-item-list.cjs +9 -5
- package/dist/components/drop-item-list.cjs.map +1 -1
- package/dist/components/drop-item-list.js +9 -5
- package/dist/components/drop-item-list.js.map +1 -1
- package/dist/components/drops-page.cjs +4 -2
- package/dist/components/drops-page.cjs.map +1 -1
- package/dist/components/drops-page.js +4 -2
- package/dist/components/drops-page.js.map +1 -1
- package/dist/components/editions-page.cjs +21 -23
- package/dist/components/editions-page.cjs.map +1 -1
- package/dist/components/editions-page.js +21 -23
- package/dist/components/editions-page.js.map +1 -1
- package/dist/components/empty-or-error.cjs +5 -3
- package/dist/components/empty-or-error.cjs.map +1 -1
- package/dist/components/empty-or-error.js +5 -3
- package/dist/components/empty-or-error.js.map +1 -1
- package/dist/components/expandable-text.cjs +3 -1
- package/dist/components/expandable-text.cjs.map +1 -1
- package/dist/components/expandable-text.js +3 -1
- package/dist/components/expandable-text.js.map +1 -1
- package/dist/components/external-link-field.cjs +7 -4
- package/dist/components/external-link-field.cjs.map +1 -1
- package/dist/components/external-link-field.js +7 -4
- package/dist/components/external-link-field.js.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.cjs +12 -8
- package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.js +12 -8
- package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
- package/dist/components/fast-mint/collection-section.cjs +11 -12
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.js +11 -12
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/dropzone.cjs +7 -5
- package/dist/components/fast-mint/dropzone.cjs.map +1 -1
- package/dist/components/fast-mint/dropzone.js +7 -5
- package/dist/components/fast-mint/dropzone.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.cjs +14 -11
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.js +14 -11
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +9 -6
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
- package/dist/components/fast-mint/formats/nft.js +9 -6
- package/dist/components/fast-mint/formats/nft.js.map +1 -1
- package/dist/components/fast-mint/formats/pop.cjs +15 -12
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
- package/dist/components/fast-mint/formats/pop.js +15 -12
- package/dist/components/fast-mint/formats/pop.js.map +1 -1
- package/dist/components/fast-mint/formats/tiers.cjs +9 -6
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
- package/dist/components/fast-mint/formats/tiers.js +9 -6
- package/dist/components/fast-mint/formats/tiers.js.map +1 -1
- package/dist/components/fast-mint/ip-type-section.cjs +6 -4
- package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
- package/dist/components/fast-mint/ip-type-section.js +6 -4
- package/dist/components/fast-mint/ip-type-section.js.map +1 -1
- package/dist/components/fast-mint/licensing-section.cjs +11 -9
- package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
- package/dist/components/fast-mint/licensing-section.js +11 -9
- package/dist/components/fast-mint/licensing-section.js.map +1 -1
- package/dist/components/fast-mint/success-view.cjs +3 -1
- package/dist/components/fast-mint/success-view.cjs.map +1 -1
- package/dist/components/fast-mint/success-view.js +3 -1
- package/dist/components/fast-mint/success-view.js.map +1 -1
- package/dist/components/featured-carousel.cjs +13 -7
- package/dist/components/featured-carousel.cjs.map +1 -1
- package/dist/components/featured-carousel.js +13 -7
- package/dist/components/featured-carousel.js.map +1 -1
- package/dist/components/floating-comments-button.cjs +4 -2
- package/dist/components/floating-comments-button.cjs.map +1 -1
- package/dist/components/floating-comments-button.js +4 -2
- package/dist/components/floating-comments-button.js.map +1 -1
- package/dist/components/form.cjs +3 -1
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +3 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/gated-content.cjs +14 -11
- package/dist/components/gated-content.cjs.map +1 -1
- package/dist/components/gated-content.js +14 -11
- package/dist/components/gated-content.js.map +1 -1
- package/dist/components/help-icon.cjs +3 -1
- package/dist/components/help-icon.cjs.map +1 -1
- package/dist/components/help-icon.js +3 -1
- package/dist/components/help-icon.js.map +1 -1
- package/dist/components/hidden-content-banner.cjs +4 -1
- package/dist/components/hidden-content-banner.cjs.map +1 -1
- package/dist/components/hidden-content-banner.js +4 -1
- package/dist/components/hidden-content-banner.js.map +1 -1
- package/dist/components/home-page.cjs +8 -4
- package/dist/components/home-page.cjs.map +1 -1
- package/dist/components/home-page.js +8 -4
- package/dist/components/home-page.js.map +1 -1
- package/dist/components/ip-type-display.cjs +12 -10
- package/dist/components/ip-type-display.cjs.map +1 -1
- package/dist/components/ip-type-display.js +12 -10
- package/dist/components/ip-type-display.js.map +1 -1
- package/dist/components/ip-type-fields.cjs +28 -28
- package/dist/components/ip-type-fields.cjs.map +1 -1
- package/dist/components/ip-type-fields.js +28 -28
- package/dist/components/ip-type-fields.js.map +1 -1
- package/dist/components/ip-type-nav.cjs +3 -1
- package/dist/components/ip-type-nav.cjs.map +1 -1
- package/dist/components/ip-type-nav.js +3 -1
- package/dist/components/ip-type-nav.js.map +1 -1
- package/dist/components/ip-type-page.cjs +41 -42
- package/dist/components/ip-type-page.cjs.map +1 -1
- package/dist/components/ip-type-page.js +41 -42
- package/dist/components/ip-type-page.js.map +1 -1
- package/dist/components/journey-content.cjs +18 -18
- package/dist/components/journey-content.cjs.map +1 -1
- package/dist/components/journey-content.js +18 -18
- package/dist/components/journey-content.js.map +1 -1
- package/dist/components/launchpad/coin-create.cjs +46 -49
- package/dist/components/launchpad/coin-create.cjs.map +1 -1
- package/dist/components/launchpad/coin-create.js +46 -49
- package/dist/components/launchpad/coin-create.js.map +1 -1
- package/dist/components/launchpad/collection-create-form.cjs +21 -17
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +21 -17
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/collection-create-presets.cjs +57 -56
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-presets.js +57 -56
- package/dist/components/launchpad/collection-create-presets.js.map +1 -1
- package/dist/components/launchpad/collection-picker.cjs +15 -11
- package/dist/components/launchpad/collection-picker.cjs.map +1 -1
- package/dist/components/launchpad/collection-picker.js +15 -11
- package/dist/components/launchpad/collection-picker.js.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.cjs +48 -42
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.js +48 -42
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
- package/dist/components/launchpad/edition-mint.cjs +16 -17
- package/dist/components/launchpad/edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint.js +16 -17
- package/dist/components/launchpad/edition-mint.js.map +1 -1
- package/dist/components/launchpad/pop-create-fields.cjs +40 -34
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.js +40 -34
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create-schema.cjs +3 -2
- package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-schema.js +3 -2
- package/dist/components/launchpad/pop-create-schema.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +10 -8
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +10 -8
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +50 -47
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +50 -47
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/single-edition-mint.cjs +46 -43
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/single-edition-mint.js +46 -43
- package/dist/components/launchpad/single-edition-mint.js.map +1 -1
- package/dist/components/launchpad/sponsorship-create.cjs +30 -27
- package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
- package/dist/components/launchpad/sponsorship-create.js +30 -27
- package/dist/components/launchpad/sponsorship-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +56 -48
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.d.cts +2 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +2 -0
- package/dist/components/launchpad/tier-mint-form.js +56 -48
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.cjs +33 -32
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.d.cts +3 -1
- package/dist/components/launchpad/tier-mint-presets.d.ts +3 -1
- package/dist/components/launchpad/tier-mint-presets.js +33 -32
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
- package/dist/components/launchpad-filter-bar.cjs +6 -4
- package/dist/components/launchpad-filter-bar.cjs.map +1 -1
- package/dist/components/launchpad-filter-bar.js +6 -4
- package/dist/components/launchpad-filter-bar.js.map +1 -1
- package/dist/components/launchpad-page.cjs +7 -5
- package/dist/components/launchpad-page.cjs.map +1 -1
- package/dist/components/launchpad-page.js +7 -5
- package/dist/components/launchpad-page.js.map +1 -1
- package/dist/components/launchpad-services.cjs +22 -14
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +4 -3
- package/dist/components/launchpad-services.d.ts +4 -3
- package/dist/components/launchpad-services.js +26 -16
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/launchpad-strip.cjs +9 -6
- package/dist/components/launchpad-strip.cjs.map +1 -1
- package/dist/components/launchpad-strip.js +10 -7
- package/dist/components/launchpad-strip.js.map +1 -1
- package/dist/components/license-request-page.cjs +27 -22
- package/dist/components/license-request-page.cjs.map +1 -1
- package/dist/components/license-request-page.js +27 -22
- package/dist/components/license-request-page.js.map +1 -1
- package/dist/components/license-terms-builder.cjs +38 -31
- package/dist/components/license-terms-builder.cjs.map +1 -1
- package/dist/components/license-terms-builder.js +38 -31
- package/dist/components/license-terms-builder.js.map +1 -1
- package/dist/components/link.cjs +18 -1
- package/dist/components/link.cjs.map +1 -1
- package/dist/components/link.d.cts +8 -2
- package/dist/components/link.d.ts +8 -2
- package/dist/components/link.js +19 -2
- package/dist/components/link.js.map +1 -1
- package/dist/components/listing-card-menu.cjs +6 -4
- package/dist/components/listing-card-menu.cjs.map +1 -1
- package/dist/components/listing-card-menu.js +6 -4
- package/dist/components/listing-card-menu.js.map +1 -1
- package/dist/components/listing-card.cjs +9 -4
- package/dist/components/listing-card.cjs.map +1 -1
- package/dist/components/listing-card.js +9 -4
- package/dist/components/listing-card.js.map +1 -1
- package/dist/components/listings-grid.cjs +6 -10
- package/dist/components/listings-grid.cjs.map +1 -1
- package/dist/components/listings-grid.js +6 -10
- package/dist/components/listings-grid.js.map +1 -1
- package/dist/components/make-offer-picker.cjs +13 -15
- package/dist/components/make-offer-picker.cjs.map +1 -1
- package/dist/components/make-offer-picker.js +13 -15
- package/dist/components/make-offer-picker.js.map +1 -1
- package/dist/components/marketplace-dialog-primitives.cjs +3 -1
- package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
- package/dist/components/marketplace-dialog-primitives.js +3 -1
- package/dist/components/marketplace-dialog-primitives.js.map +1 -1
- package/dist/components/marketplace-filters.cjs +27 -21
- package/dist/components/marketplace-filters.cjs.map +1 -1
- package/dist/components/marketplace-filters.js +27 -21
- package/dist/components/marketplace-filters.js.map +1 -1
- package/dist/components/marketplace-search.cjs +11 -9
- package/dist/components/marketplace-search.cjs.map +1 -1
- package/dist/components/marketplace-search.js +11 -9
- package/dist/components/marketplace-search.js.map +1 -1
- package/dist/components/media-wallet/action-modal.cjs +3 -1
- package/dist/components/media-wallet/action-modal.cjs.map +1 -1
- package/dist/components/media-wallet/action-modal.js +3 -1
- package/dist/components/media-wallet/action-modal.js.map +1 -1
- package/dist/components/media-wallet/activate-card.cjs +4 -2
- package/dist/components/media-wallet/activate-card.cjs.map +1 -1
- package/dist/components/media-wallet/activate-card.js +4 -2
- package/dist/components/media-wallet/activate-card.js.map +1 -1
- package/dist/components/media-wallet/back-button.cjs +4 -1
- package/dist/components/media-wallet/back-button.cjs.map +1 -1
- package/dist/components/media-wallet/back-button.js +4 -1
- package/dist/components/media-wallet/back-button.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.cjs +20 -13
- package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.js +20 -13
- package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.js +4 -2
- package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.cjs +25 -23
- package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.js +25 -23
- package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.js +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.cjs +30 -33
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +30 -33
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.cjs +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.js +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
- package/dist/components/media-wallet/nft-strip.cjs +3 -1
- package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
- package/dist/components/media-wallet/nft-strip.js +3 -1
- package/dist/components/media-wallet/nft-strip.js.map +1 -1
- package/dist/components/media-wallet/receive-card.cjs +7 -5
- package/dist/components/media-wallet/receive-card.cjs.map +1 -1
- package/dist/components/media-wallet/receive-card.js +7 -5
- package/dist/components/media-wallet/receive-card.js.map +1 -1
- package/dist/components/media-wallet/success-dialog.cjs +3 -1
- package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
- package/dist/components/media-wallet/success-dialog.js +3 -1
- package/dist/components/media-wallet/success-dialog.js.map +1 -1
- package/dist/components/medialane-collection-card.cjs +3 -1
- package/dist/components/medialane-collection-card.cjs.map +1 -1
- package/dist/components/medialane-collection-card.js +3 -1
- package/dist/components/medialane-collection-card.js.map +1 -1
- package/dist/components/more-menu.cjs +7 -5
- package/dist/components/more-menu.cjs.map +1 -1
- package/dist/components/more-menu.js +7 -5
- package/dist/components/more-menu.js.map +1 -1
- package/dist/components/nav-command-menu.cjs +28 -22
- package/dist/components/nav-command-menu.cjs.map +1 -1
- package/dist/components/nav-command-menu.d.cts +1 -1
- package/dist/components/nav-command-menu.d.ts +1 -1
- package/dist/components/nav-command-menu.js +28 -22
- package/dist/components/nav-command-menu.js.map +1 -1
- package/dist/components/nav-language-switch.cjs +56 -0
- package/dist/components/nav-language-switch.cjs.map +1 -0
- package/dist/components/nav-language-switch.d.cts +8 -0
- package/dist/components/nav-language-switch.d.ts +8 -0
- package/dist/components/nav-language-switch.js +32 -0
- package/dist/components/nav-language-switch.js.map +1 -0
- package/dist/components/nav-shell.cjs +7 -3
- package/dist/components/nav-shell.cjs.map +1 -1
- package/dist/components/nav-shell.js +7 -3
- package/dist/components/nav-shell.js.map +1 -1
- package/dist/components/nav-theme-toggle.cjs +5 -3
- package/dist/components/nav-theme-toggle.cjs.map +1 -1
- package/dist/components/nav-theme-toggle.js +5 -3
- package/dist/components/nav-theme-toggle.js.map +1 -1
- package/dist/components/new-collection-menu.cjs +8 -5
- package/dist/components/new-collection-menu.cjs.map +1 -1
- package/dist/components/new-collection-menu.js +8 -5
- package/dist/components/new-collection-menu.js.map +1 -1
- package/dist/components/order-fields.cjs +6 -7
- package/dist/components/order-fields.cjs.map +1 -1
- package/dist/components/order-fields.js +6 -7
- package/dist/components/order-fields.js.map +1 -1
- package/dist/components/parent-attribution-banner.cjs +3 -1
- package/dist/components/parent-attribution-banner.cjs.map +1 -1
- package/dist/components/parent-attribution-banner.js +3 -1
- package/dist/components/parent-attribution-banner.js.map +1 -1
- package/dist/components/pop-burn-button.cjs +7 -5
- package/dist/components/pop-burn-button.cjs.map +1 -1
- package/dist/components/pop-burn-button.js +7 -5
- package/dist/components/pop-burn-button.js.map +1 -1
- package/dist/components/pop-claim-button.cjs +6 -4
- package/dist/components/pop-claim-button.cjs.map +1 -1
- package/dist/components/pop-claim-button.js +6 -4
- package/dist/components/pop-claim-button.js.map +1 -1
- package/dist/components/pop-manage-page.cjs +28 -31
- package/dist/components/pop-manage-page.cjs.map +1 -1
- package/dist/components/pop-manage-page.js +28 -31
- package/dist/components/pop-manage-page.js.map +1 -1
- package/dist/components/pop-my-events-page.cjs +18 -12
- package/dist/components/pop-my-events-page.cjs.map +1 -1
- package/dist/components/pop-my-events-page.js +18 -12
- package/dist/components/pop-my-events-page.js.map +1 -1
- package/dist/components/portfolio-activity.cjs +6 -4
- package/dist/components/portfolio-activity.cjs.map +1 -1
- package/dist/components/portfolio-activity.js +6 -4
- package/dist/components/portfolio-activity.js.map +1 -1
- package/dist/components/portfolio-assets.cjs +5 -3
- package/dist/components/portfolio-assets.cjs.map +1 -1
- package/dist/components/portfolio-assets.js +5 -3
- package/dist/components/portfolio-assets.js.map +1 -1
- package/dist/components/portfolio-chip-filter.cjs +3 -1
- package/dist/components/portfolio-chip-filter.cjs.map +1 -1
- package/dist/components/portfolio-chip-filter.js +3 -1
- package/dist/components/portfolio-chip-filter.js.map +1 -1
- package/dist/components/portfolio-collections.cjs +7 -5
- package/dist/components/portfolio-collections.cjs.map +1 -1
- package/dist/components/portfolio-collections.js +7 -5
- package/dist/components/portfolio-collections.js.map +1 -1
- package/dist/components/portfolio-header.cjs +5 -4
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.js +5 -4
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/portfolio-orders.cjs +19 -14
- package/dist/components/portfolio-orders.cjs.map +1 -1
- package/dist/components/portfolio-orders.js +19 -14
- package/dist/components/portfolio-orders.js.map +1 -1
- package/dist/components/portfolio-section.cjs +3 -1
- package/dist/components/portfolio-section.cjs.map +1 -1
- package/dist/components/portfolio-section.js +3 -1
- package/dist/components/portfolio-section.js.map +1 -1
- package/dist/components/portfolio-shell.cjs +15 -12
- package/dist/components/portfolio-shell.cjs.map +1 -1
- package/dist/components/portfolio-shell.js +15 -12
- package/dist/components/portfolio-shell.js.map +1 -1
- package/dist/components/portfolio-sponsorships.cjs +39 -31
- package/dist/components/portfolio-sponsorships.cjs.map +1 -1
- package/dist/components/portfolio-sponsorships.js +39 -31
- package/dist/components/portfolio-sponsorships.js.map +1 -1
- package/dist/components/price-history-chart.cjs +7 -6
- package/dist/components/price-history-chart.cjs.map +1 -1
- package/dist/components/price-history-chart.js +7 -6
- package/dist/components/price-history-chart.js.map +1 -1
- package/dist/components/remix-browse-page.cjs +14 -11
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +14 -11
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/components/remixes-tab.cjs +8 -11
- package/dist/components/remixes-tab.cjs.map +1 -1
- package/dist/components/remixes-tab.js +8 -11
- package/dist/components/remixes-tab.js.map +1 -1
- package/dist/components/report-dialog.cjs +25 -23
- package/dist/components/report-dialog.cjs.map +1 -1
- package/dist/components/report-dialog.js +25 -23
- package/dist/components/report-dialog.js.map +1 -1
- package/dist/components/rewards/badge-unlocked.cjs +4 -4
- package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
- package/dist/components/rewards/badge-unlocked.js +4 -4
- package/dist/components/rewards/badge-unlocked.js.map +1 -1
- package/dist/components/rewards/leaderboard-panel.cjs +5 -3
- package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-panel.js +5 -3
- package/dist/components/rewards/leaderboard-panel.js.map +1 -1
- package/dist/components/rewards/leaderboard-table.cjs +13 -7
- package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-table.js +13 -7
- package/dist/components/rewards/leaderboard-table.js.map +1 -1
- package/dist/components/rewards/level-journey-list.cjs +6 -4
- package/dist/components/rewards/level-journey-list.cjs.map +1 -1
- package/dist/components/rewards/level-journey-list.js +6 -4
- package/dist/components/rewards/level-journey-list.js.map +1 -1
- package/dist/components/rewards/level-up-celebration.cjs +3 -1
- package/dist/components/rewards/level-up-celebration.cjs.map +1 -1
- package/dist/components/rewards/level-up-celebration.js +3 -1
- package/dist/components/rewards/level-up-celebration.js.map +1 -1
- package/dist/components/rewards/rewards-dashboard.cjs +51 -41
- package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
- package/dist/components/rewards/rewards-dashboard.js +51 -41
- package/dist/components/rewards/rewards-dashboard.js.map +1 -1
- package/dist/components/rewards/score-summary-card.cjs +9 -13
- package/dist/components/rewards/score-summary-card.cjs.map +1 -1
- package/dist/components/rewards/score-summary-card.js +9 -13
- package/dist/components/rewards/score-summary-card.js.map +1 -1
- package/dist/components/rewards/xp-earned.cjs +6 -7
- package/dist/components/rewards/xp-earned.cjs.map +1 -1
- package/dist/components/rewards/xp-earned.js +6 -7
- package/dist/components/rewards/xp-earned.js.map +1 -1
- package/dist/components/rewards-page.cjs +4 -1
- package/dist/components/rewards-page.cjs.map +1 -1
- package/dist/components/rewards-page.js +4 -1
- package/dist/components/rewards-page.js.map +1 -1
- package/dist/components/rewards-section.cjs +8 -5
- package/dist/components/rewards-section.cjs.map +1 -1
- package/dist/components/rewards-section.js +8 -5
- package/dist/components/rewards-section.js.map +1 -1
- package/dist/components/route-error.cjs +5 -6
- package/dist/components/route-error.cjs.map +1 -1
- package/dist/components/route-error.js +5 -6
- package/dist/components/route-error.js.map +1 -1
- package/dist/components/router.cjs +19 -3
- package/dist/components/router.cjs.map +1 -1
- package/dist/components/router.d.cts +7 -1
- package/dist/components/router.d.ts +7 -1
- package/dist/components/router.js +17 -1
- package/dist/components/router.js.map +1 -1
- package/dist/components/search-page.cjs +13 -11
- package/dist/components/search-page.cjs.map +1 -1
- package/dist/components/search-page.js +13 -11
- package/dist/components/search-page.js.map +1 -1
- package/dist/components/service-collections-page.cjs +22 -19
- package/dist/components/service-collections-page.cjs.map +1 -1
- package/dist/components/service-collections-page.d.cts +12 -12
- package/dist/components/service-collections-page.d.ts +12 -12
- package/dist/components/service-collections-page.js +22 -19
- package/dist/components/service-collections-page.js.map +1 -1
- package/dist/components/settings-snapshots.cjs +16 -20
- package/dist/components/settings-snapshots.cjs.map +1 -1
- package/dist/components/settings-snapshots.js +16 -20
- package/dist/components/settings-snapshots.js.map +1 -1
- package/dist/components/share-button.cjs +3 -1
- package/dist/components/share-button.cjs.map +1 -1
- package/dist/components/share-button.js +3 -1
- package/dist/components/share-button.js.map +1 -1
- package/dist/components/sheet.cjs +22 -18
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.js +22 -18
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sign-in-prompt.cjs +3 -1
- package/dist/components/sign-in-prompt.cjs.map +1 -1
- package/dist/components/sign-in-prompt.js +3 -1
- package/dist/components/sign-in-prompt.js.map +1 -1
- package/dist/components/soulbound-card.cjs +14 -9
- package/dist/components/soulbound-card.cjs.map +1 -1
- package/dist/components/soulbound-card.d.cts +1 -1
- package/dist/components/soulbound-card.d.ts +1 -1
- package/dist/components/soulbound-card.js +14 -9
- package/dist/components/soulbound-card.js.map +1 -1
- package/dist/components/sponsorship-offer-page.cjs +29 -24
- package/dist/components/sponsorship-offer-page.cjs.map +1 -1
- package/dist/components/sponsorship-offer-page.js +29 -24
- package/dist/components/sponsorship-offer-page.js.map +1 -1
- package/dist/components/sponsorship-offers-page.cjs +11 -9
- package/dist/components/sponsorship-offers-page.cjs.map +1 -1
- package/dist/components/sponsorship-offers-page.js +11 -9
- package/dist/components/sponsorship-offers-page.js.map +1 -1
- package/dist/components/stat-tile.cjs +4 -1
- package/dist/components/stat-tile.cjs.map +1 -1
- package/dist/components/stat-tile.js +4 -1
- package/dist/components/stat-tile.js.map +1 -1
- package/dist/components/token-card.cjs +20 -18
- package/dist/components/token-card.cjs.map +1 -1
- package/dist/components/token-card.js +20 -18
- package/dist/components/token-card.js.map +1 -1
- package/dist/components/transaction-dialog-states.cjs +3 -1
- package/dist/components/transaction-dialog-states.cjs.map +1 -1
- package/dist/components/transaction-dialog-states.d.cts +2 -0
- package/dist/components/transaction-dialog-states.d.ts +2 -0
- package/dist/components/transaction-dialog-states.js +3 -1
- package/dist/components/transaction-dialog-states.js.map +1 -1
- package/dist/components/transaction-dialog.cjs +5 -3
- package/dist/components/transaction-dialog.cjs.map +1 -1
- package/dist/components/transaction-dialog.js +5 -3
- package/dist/components/transaction-dialog.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +19 -16
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +19 -16
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/components/transfer-dialog.cjs +16 -18
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -18
- package/dist/components/transfer-dialog.js.map +1 -1
- package/dist/components/wallet/export-key-section.cjs +8 -6
- package/dist/components/wallet/export-key-section.cjs.map +1 -1
- package/dist/components/wallet/export-key-section.js +8 -6
- package/dist/components/wallet/export-key-section.js.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.cjs +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.js +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
- package/dist/components/wallet-required.cjs +3 -1
- package/dist/components/wallet-required.cjs.map +1 -1
- package/dist/components/wallet-required.js +3 -1
- package/dist/components/wallet-required.js.map +1 -1
- package/dist/data/activity.cjs +14 -13
- package/dist/data/activity.cjs.map +1 -1
- package/dist/data/activity.js +14 -13
- package/dist/data/activity.js.map +1 -1
- package/dist/data/coins.cjs +7 -5
- package/dist/data/coins.cjs.map +1 -1
- package/dist/data/coins.js +7 -5
- package/dist/data/coins.js.map +1 -1
- package/dist/data/gated-content-types.cjs +6 -5
- package/dist/data/gated-content-types.cjs.map +1 -1
- package/dist/data/gated-content-types.js +6 -5
- package/dist/data/gated-content-types.js.map +1 -1
- package/dist/data/ip-templates.cjs +27 -26
- package/dist/data/ip-templates.cjs.map +1 -1
- package/dist/data/ip-templates.js +27 -26
- package/dist/data/ip-templates.js.map +1 -1
- package/dist/data/ip-types.cjs +10 -9
- package/dist/data/ip-types.cjs.map +1 -1
- package/dist/data/ip-types.js +10 -9
- package/dist/data/ip-types.js.map +1 -1
- package/dist/data/ip.cjs +23 -22
- package/dist/data/ip.cjs.map +1 -1
- package/dist/data/ip.js +23 -22
- package/dist/data/ip.js.map +1 -1
- package/dist/data/launchpad-services.cjs +151 -129
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +4 -1
- package/dist/data/launchpad-services.d.ts +4 -1
- package/dist/data/launchpad-services.js +148 -128
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/data/nav-commands.cjs +48 -47
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.js +48 -47
- package/dist/data/nav-commands.js.map +1 -1
- package/dist/i18n/catalogs.cjs +34 -0
- package/dist/i18n/catalogs.cjs.map +1 -0
- package/dist/i18n/catalogs.d.cts +6 -0
- package/dist/i18n/catalogs.d.ts +6 -0
- package/dist/i18n/catalogs.js +10 -0
- package/dist/i18n/catalogs.js.map +1 -0
- package/dist/i18n/format.cjs +68 -0
- package/dist/i18n/format.cjs.map +1 -0
- package/dist/i18n/format.d.cts +6 -0
- package/dist/i18n/format.d.ts +6 -0
- package/dist/i18n/format.js +41 -0
- package/dist/i18n/format.js.map +1 -0
- package/dist/i18n/index.cjs +83 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +12 -0
- package/dist/i18n/index.d.ts +12 -0
- package/dist/i18n/index.js +37 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/language-choice.cjs +40 -0
- package/dist/i18n/language-choice.cjs.map +1 -0
- package/dist/i18n/language-choice.d.cts +12 -0
- package/dist/i18n/language-choice.d.ts +12 -0
- package/dist/i18n/language-choice.js +16 -0
- package/dist/i18n/language-choice.js.map +1 -0
- package/dist/i18n/locales.cjs +32 -0
- package/dist/i18n/locales.cjs.map +1 -0
- package/dist/i18n/locales.d.cts +9 -0
- package/dist/i18n/locales.d.ts +9 -0
- package/dist/i18n/locales.js +7 -0
- package/dist/i18n/locales.js.map +1 -0
- package/dist/i18n/localize-router.cjs +35 -0
- package/dist/i18n/localize-router.cjs.map +1 -0
- package/dist/i18n/localize-router.d.cts +8 -0
- package/dist/i18n/localize-router.d.ts +8 -0
- package/dist/i18n/localize-router.js +11 -0
- package/dist/i18n/localize-router.js.map +1 -0
- package/dist/i18n/make-t.cjs +43 -0
- package/dist/i18n/make-t.cjs.map +1 -0
- package/dist/i18n/make-t.d.cts +11 -0
- package/dist/i18n/make-t.d.ts +11 -0
- package/dist/i18n/make-t.js +18 -0
- package/dist/i18n/make-t.js.map +1 -0
- package/dist/i18n/provider.cjs +50 -0
- package/dist/i18n/provider.cjs.map +1 -0
- package/dist/i18n/provider.d.cts +14 -0
- package/dist/i18n/provider.d.ts +14 -0
- package/dist/i18n/provider.js +24 -0
- package/dist/i18n/provider.js.map +1 -0
- package/dist/i18n/resolve-locale.cjs +59 -0
- package/dist/i18n/resolve-locale.cjs.map +1 -0
- package/dist/i18n/resolve-locale.d.cts +16 -0
- package/dist/i18n/resolve-locale.d.ts +16 -0
- package/dist/i18n/resolve-locale.js +34 -0
- package/dist/i18n/resolve-locale.js.map +1 -0
- package/dist/i18n/translate.cjs +71 -0
- package/dist/i18n/translate.cjs.map +1 -0
- package/dist/i18n/translate.d.cts +21 -0
- package/dist/i18n/translate.d.ts +21 -0
- package/dist/i18n/translate.js +44 -0
- package/dist/i18n/translate.js.map +1 -0
- package/dist/i18n/use-format.cjs +42 -0
- package/dist/i18n/use-format.cjs.map +1 -0
- package/dist/i18n/use-format.d.cts +8 -0
- package/dist/i18n/use-format.d.ts +8 -0
- package/dist/i18n/use-format.js +18 -0
- package/dist/i18n/use-format.js.map +1 -0
- package/dist/i18n/with-locale.cjs +44 -0
- package/dist/i18n/with-locale.cjs.map +1 -0
- package/dist/i18n/with-locale.d.cts +4 -0
- package/dist/i18n/with-locale.d.ts +4 -0
- package/dist/i18n/with-locale.js +19 -0
- package/dist/i18n/with-locale.js.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/utils/describe-error.cjs +2 -1
- package/dist/utils/describe-error.cjs.map +1 -1
- package/dist/utils/describe-error.js +2 -1
- package/dist/utils/describe-error.js.map +1 -1
- package/dist/utils/drop/draft.cjs +2 -1
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.js +2 -1
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/drop/sale.cjs +2 -1
- package/dist/utils/drop/sale.cjs.map +1 -1
- package/dist/utils/drop/sale.js +2 -1
- package/dist/utils/drop/sale.js.map +1 -1
- package/dist/utils/drop/view.cjs +11 -8
- package/dist/utils/drop/view.cjs.map +1 -1
- package/dist/utils/drop/view.js +11 -8
- package/dist/utils/drop/view.js.map +1 -1
- package/dist/utils/empty-messages.cjs +17 -16
- package/dist/utils/empty-messages.cjs.map +1 -1
- package/dist/utils/empty-messages.js +17 -16
- package/dist/utils/empty-messages.js.map +1 -1
- package/dist/utils/format-activity.cjs +2 -1
- package/dist/utils/format-activity.cjs.map +1 -1
- package/dist/utils/format-activity.js +2 -1
- package/dist/utils/format-activity.js.map +1 -1
- package/dist/utils/format.cjs +14 -13
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +5 -5
- package/dist/utils/format.d.ts +5 -5
- package/dist/utils/format.js +14 -13
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/ipfs-upload.cjs +6 -5
- package/dist/utils/ipfs-upload.cjs.map +1 -1
- package/dist/utils/ipfs-upload.js +6 -5
- package/dist/utils/ipfs-upload.js.map +1 -1
- package/dist/utils/media-wallet/wallet-format.cjs +5 -3
- package/dist/utils/media-wallet/wallet-format.cjs.map +1 -1
- package/dist/utils/media-wallet/wallet-format.d.cts +2 -2
- package/dist/utils/media-wallet/wallet-format.d.ts +2 -2
- package/dist/utils/media-wallet/wallet-format.js +5 -3
- package/dist/utils/media-wallet/wallet-format.js.map +1 -1
- package/dist/utils/success-messages.cjs +84 -79
- package/dist/utils/success-messages.cjs.map +1 -1
- package/dist/utils/success-messages.d.cts +33 -41
- package/dist/utils/success-messages.d.ts +33 -41
- package/dist/utils/success-messages.js +84 -79
- package/dist/utils/success-messages.js.map +1 -1
- package/dist/utils/token-profile-link.cjs +3 -2
- package/dist/utils/token-profile-link.cjs.map +1 -1
- package/dist/utils/token-profile-link.js +3 -2
- package/dist/utils/token-profile-link.js.map +1 -1
- package/dist/utils/wallet-failure.cjs +9 -8
- package/dist/utils/wallet-failure.cjs.map +1 -1
- package/dist/utils/wallet-failure.js +9 -8
- package/dist/utils/wallet-failure.js.map +1 -1
- package/package.json +7 -1
|
@@ -34,6 +34,7 @@ module.exports = __toCommonJS(pop_create_schema_exports);
|
|
|
34
34
|
var z = __toESM(require("zod"), 1);
|
|
35
35
|
var import_field_limits = require("../../utils/field-limits.js");
|
|
36
36
|
var import_launchpad_rules = require("../../utils/launchpad-rules.js");
|
|
37
|
+
var import_translate = require("../../i18n/translate.js");
|
|
37
38
|
function parseDateTime(date, time) {
|
|
38
39
|
const timestamp = (/* @__PURE__ */ new Date(`${date}T${time}:00`)).getTime();
|
|
39
40
|
return Number.isNaN(timestamp) ? null : timestamp;
|
|
@@ -51,7 +52,7 @@ const popCreateSchema = z.object({
|
|
|
51
52
|
context.addIssue({
|
|
52
53
|
code: z.ZodIssueCode.custom,
|
|
53
54
|
path: ["claimEndDate"],
|
|
54
|
-
message: "Enter a valid claim end date and time"
|
|
55
|
+
message: (0, import_translate.msg)("Enter a valid claim end date and time")
|
|
55
56
|
});
|
|
56
57
|
return;
|
|
57
58
|
}
|
|
@@ -59,7 +60,7 @@ const popCreateSchema = z.object({
|
|
|
59
60
|
context.addIssue({
|
|
60
61
|
code: z.ZodIssueCode.custom,
|
|
61
62
|
path: ["claimEndDate"],
|
|
62
|
-
message: "Claim window must end in the future"
|
|
63
|
+
message: (0, import_translate.msg)("Claim window must end in the future")
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/pop-create-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\n\nfunction parseDateTime(date: string, time: string): number | null {\n const timestamp = new Date(`${date}T${time}:00`).getTime();\n return Number.isNaN(timestamp) ? null : timestamp;\n}\n\nexport const popCreateSchema = z\n .object({\n name: z.string().min(1, \"Event name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n claimEndDate: z.string().min(1, \"Claim end date required\"),\n claimEndTime: z.string().default(\"23:59\"),\n })\n .superRefine((values, context) => {\n const claimEndTimestamp = parseDateTime(values.claimEndDate, values.claimEndTime);\n\n if (claimEndTimestamp === null) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: \"Enter a valid claim end date and time\",\n });\n return;\n }\n\n if (claimEndTimestamp <= Date.now()) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: \"Claim window must end in the future\",\n });\n }\n });\n\nexport type PopCreateValues = z.infer<typeof popCreateSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AACnB,0BAA6B;AAC7B,6BAA0C;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/pop-create-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport { msg } from \"../../i18n/translate.js\";\n\nfunction parseDateTime(date: string, time: string): number | null {\n const timestamp = new Date(`${date}T${time}:00`).getTime();\n return Number.isNaN(timestamp) ? null : timestamp;\n}\n\nexport const popCreateSchema = z\n .object({\n name: z.string().min(1, \"Event name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n claimEndDate: z.string().min(1, \"Claim end date required\"),\n claimEndTime: z.string().default(\"23:59\"),\n })\n .superRefine((values, context) => {\n const claimEndTimestamp = parseDateTime(values.claimEndDate, values.claimEndTime);\n\n if (claimEndTimestamp === null) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: msg(\"Enter a valid claim end date and time\"),\n });\n return;\n }\n\n if (claimEndTimestamp <= Date.now()) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: msg(\"Claim window must end in the future\"),\n });\n }\n });\n\nexport type PopCreateValues = z.infer<typeof popCreateSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AACnB,0BAA6B;AAC7B,6BAA0C;AAC1C,uBAAoB;AAEpB,SAAS,cAAc,MAAc,MAA6B;AAChE,QAAM,aAAY,oBAAI,KAAK,GAAG,IAAI,IAAI,IAAI,KAAK,GAAE,QAAQ;AACzD,SAAO,OAAO,MAAM,SAAS,IAAI,OAAO;AAC1C;AAEO,MAAM,kBAAkB,EAC5B,OAAO;AAAA,EACN,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,qBAAqB,EAAE,IAAI,iCAAa,IAAI;AAAA,EACpE,YAAQ,oCAAY;AAAA,EACpB,aAAa,EAAE,OAAO,EAAE,IAAI,iCAAa,WAAW,EAAE,SAAS;AAAA,EAC/D,mBAAe,qCAAa;AAAA,EAC5B,cAAc,EAAE,OAAO,EAAE,IAAI,GAAG,yBAAyB;AAAA,EACzD,cAAc,EAAE,OAAO,EAAE,QAAQ,OAAO;AAC1C,CAAC,EACA,YAAY,CAAC,QAAQ,YAAY;AAChC,QAAM,oBAAoB,cAAc,OAAO,cAAc,OAAO,YAAY;AAEhF,MAAI,sBAAsB,MAAM;AAC9B,YAAQ,SAAS;AAAA,MACf,MAAM,EAAE,aAAa;AAAA,MACrB,MAAM,CAAC,cAAc;AAAA,MACrB,aAAS,sBAAI,uCAAuC;AAAA,IACtD,CAAC;AACD;AAAA,EACF;AAEA,MAAI,qBAAqB,KAAK,IAAI,GAAG;AACnC,YAAQ,SAAS;AAAA,MACf,MAAM,EAAE,aAAa;AAAA,MACrB,MAAM,CAAC,cAAc;AAAA,MACrB,aAAS,sBAAI,qCAAqC;AAAA,IACpD,CAAC;AAAA,EACH;AACF,CAAC;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { FIELD_LIMITS } from "../../utils/field-limits.js";
|
|
3
3
|
import { symbolField, webLinkField } from "../../utils/launchpad-rules.js";
|
|
4
|
+
import { msg } from "../../i18n/translate.js";
|
|
4
5
|
function parseDateTime(date, time) {
|
|
5
6
|
const timestamp = (/* @__PURE__ */ new Date(`${date}T${time}:00`)).getTime();
|
|
6
7
|
return Number.isNaN(timestamp) ? null : timestamp;
|
|
@@ -18,7 +19,7 @@ const popCreateSchema = z.object({
|
|
|
18
19
|
context.addIssue({
|
|
19
20
|
code: z.ZodIssueCode.custom,
|
|
20
21
|
path: ["claimEndDate"],
|
|
21
|
-
message: "Enter a valid claim end date and time"
|
|
22
|
+
message: msg("Enter a valid claim end date and time")
|
|
22
23
|
});
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
@@ -26,7 +27,7 @@ const popCreateSchema = z.object({
|
|
|
26
27
|
context.addIssue({
|
|
27
28
|
code: z.ZodIssueCode.custom,
|
|
28
29
|
path: ["claimEndDate"],
|
|
29
|
-
message: "Claim window must end in the future"
|
|
30
|
+
message: msg("Claim window must end in the future")
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/pop-create-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\n\nfunction parseDateTime(date: string, time: string): number | null {\n const timestamp = new Date(`${date}T${time}:00`).getTime();\n return Number.isNaN(timestamp) ? null : timestamp;\n}\n\nexport const popCreateSchema = z\n .object({\n name: z.string().min(1, \"Event name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n claimEndDate: z.string().min(1, \"Claim end date required\"),\n claimEndTime: z.string().default(\"23:59\"),\n })\n .superRefine((values, context) => {\n const claimEndTimestamp = parseDateTime(values.claimEndDate, values.claimEndTime);\n\n if (claimEndTimestamp === null) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: \"Enter a valid claim end date and time\",\n });\n return;\n }\n\n if (claimEndTimestamp <= Date.now()) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: \"Claim window must end in the future\",\n });\n }\n });\n\nexport type PopCreateValues = z.infer<typeof popCreateSchema>;\n"],"mappings":"AAAA,YAAY,OAAO;AACnB,SAAS,oBAAoB;AAC7B,SAAS,aAAa,oBAAoB;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/pop-create-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport { msg } from \"../../i18n/translate.js\";\n\nfunction parseDateTime(date: string, time: string): number | null {\n const timestamp = new Date(`${date}T${time}:00`).getTime();\n return Number.isNaN(timestamp) ? null : timestamp;\n}\n\nexport const popCreateSchema = z\n .object({\n name: z.string().min(1, \"Event name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n claimEndDate: z.string().min(1, \"Claim end date required\"),\n claimEndTime: z.string().default(\"23:59\"),\n })\n .superRefine((values, context) => {\n const claimEndTimestamp = parseDateTime(values.claimEndDate, values.claimEndTime);\n\n if (claimEndTimestamp === null) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: msg(\"Enter a valid claim end date and time\"),\n });\n return;\n }\n\n if (claimEndTimestamp <= Date.now()) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"claimEndDate\"],\n message: msg(\"Claim window must end in the future\"),\n });\n }\n });\n\nexport type PopCreateValues = z.infer<typeof popCreateSchema>;\n"],"mappings":"AAAA,YAAY,OAAO;AACnB,SAAS,oBAAoB;AAC7B,SAAS,aAAa,oBAAoB;AAC1C,SAAS,WAAW;AAEpB,SAAS,cAAc,MAAc,MAA6B;AAChE,QAAM,aAAY,oBAAI,KAAK,GAAG,IAAI,IAAI,IAAI,KAAK,GAAE,QAAQ;AACzD,SAAO,OAAO,MAAM,SAAS,IAAI,OAAO;AAC1C;AAEO,MAAM,kBAAkB,EAC5B,OAAO;AAAA,EACN,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,qBAAqB,EAAE,IAAI,aAAa,IAAI;AAAA,EACpE,QAAQ,YAAY;AAAA,EACpB,aAAa,EAAE,OAAO,EAAE,IAAI,aAAa,WAAW,EAAE,SAAS;AAAA,EAC/D,eAAe,aAAa;AAAA,EAC5B,cAAc,EAAE,OAAO,EAAE,IAAI,GAAG,yBAAyB;AAAA,EACzD,cAAc,EAAE,OAAO,EAAE,QAAQ,OAAO;AAC1C,CAAC,EACA,YAAY,CAAC,QAAQ,YAAY;AAChC,QAAM,oBAAoB,cAAc,OAAO,cAAc,OAAO,YAAY;AAEhF,MAAI,sBAAsB,MAAM;AAC9B,YAAQ,SAAS;AAAA,MACf,MAAM,EAAE,aAAa;AAAA,MACrB,MAAM,CAAC,cAAc;AAAA,MACrB,SAAS,IAAI,uCAAuC;AAAA,IACtD,CAAC;AACD;AAAA,EACF;AAEA,MAAI,qBAAqB,KAAK,IAAI,GAAG;AACnC,YAAQ,SAAS;AAAA,MACf,MAAM,EAAE,aAAa;AAAA,MACrB,MAAM,CAAC,cAAc;AAAA,MACrB,SAAS,IAAI,qCAAqC;AAAA,IACpD,CAAC;AAAA,EACH;AACF,CAAC;","names":[]}
|
|
@@ -44,7 +44,9 @@ var import_launchpad_actions = require("../../utils/launchpad-actions.js");
|
|
|
44
44
|
var import_ipfs_upload = require("../../utils/ipfs-upload.js");
|
|
45
45
|
var import_use_transaction = require("../../utils/use-transaction.js");
|
|
46
46
|
var import_use_launchpad_image_upload = require("../../utils/use-launchpad-image-upload.js");
|
|
47
|
+
var import_provider = require("../../i18n/provider.js");
|
|
47
48
|
function PopCreate({ aside }) {
|
|
49
|
+
const t = (0, import_provider.useT)();
|
|
48
50
|
const app = (0, import_medialane_app.useMedialaneApp)();
|
|
49
51
|
const walletAddress = app.walletAddress;
|
|
50
52
|
const tx = (0, import_use_transaction.useTransaction)();
|
|
@@ -115,17 +117,17 @@ function PopCreate({ aside }) {
|
|
|
115
117
|
{
|
|
116
118
|
icon: import_lucide_react.Award,
|
|
117
119
|
iconClassName: "text-green-500",
|
|
118
|
-
title: "Secure an account to create a POP event",
|
|
119
|
-
description: "A secured account is needed to deploy a certificate collection onchain.",
|
|
120
|
+
title: t("Secure an account to create a POP event"),
|
|
121
|
+
description: t("A secured account is needed to deploy a certificate collection onchain."),
|
|
120
122
|
children: [
|
|
121
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Create POP event", workingLabel: "Creating the POP event\u2026", firstStepLabel: "Upload certificate metadata", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Create POP event"), workingLabel: "Creating the POP event\u2026", firstStepLabel: "Upload certificate metadata", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
122
124
|
import_transaction_success.TransactionSuccess,
|
|
123
125
|
{
|
|
124
126
|
name: eventName || "New event",
|
|
125
127
|
image: imagePreview,
|
|
126
|
-
title: "Event created",
|
|
127
|
-
description: "Immutable digital asset certificates, recorded onchain.",
|
|
128
|
-
actions: [{ href: "/launchpad/pop", label: "Back to POP launchpad" }, { label: "Create another", onClick: handleAgain }],
|
|
128
|
+
title: t("Event created"),
|
|
129
|
+
description: t("Immutable digital asset certificates, recorded onchain."),
|
|
130
|
+
actions: [{ href: "/launchpad/pop", label: t("Back to POP launchpad") }, { label: t("Create another"), onClick: handleAgain }],
|
|
129
131
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_reward_earned.RewardEarned, { actionType: "launch_launchpad" })
|
|
130
132
|
}
|
|
131
133
|
) }),
|
|
@@ -133,8 +135,8 @@ function PopCreate({ aside }) {
|
|
|
133
135
|
import_claim_route_shell.ClaimRouteShell,
|
|
134
136
|
{
|
|
135
137
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-4 w-4 text-white" }),
|
|
136
|
-
title: "Create a POP Event",
|
|
137
|
-
subtitle: "Immutable digital asset certificates \u2014 free to publish.",
|
|
138
|
+
title: t("Create a POP Event"),
|
|
139
|
+
subtitle: t("Immutable digital asset certificates \u2014 free to publish."),
|
|
138
140
|
aside: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
139
141
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
142
|
import_medialane_collection_card.MedialaneCollectionCard,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { claimEndTimestamp, popEventAttributes, popEventIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Certificate image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: popEventAttributes(eventType, isPublic),\n });\n await runIntentCalls(signer, () =>\n popEventIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n claimEndTimestamp: claimEndTimestamp(values.claimEndDate, values.claimEndTime),\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title=\"Secure an account to create a POP event\"\n description=\"A secured account is needed to deploy a certificate collection onchain.\"\n >\n <TransactionDialog tx={tx} title=\"Create POP event\" workingLabel=\"Creating the POP event…\" firstStepLabel=\"Upload certificate metadata\">\n <TransactionSuccess\n name={eventName || \"New event\"}\n image={imagePreview}\n title=\"Event created\"\n description=\"Immutable digital asset certificates, recorded onchain.\"\n actions={[{ href: \"/launchpad/pop\", label: \"Back to POP launchpad\" }, { label: \"Create another\", onClick: handleAgain }]}\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title=\"Create a POP Event\"\n subtitle=\"Immutable digital asset certificates — free to publish.\"\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8GU;AA5GV,mBAAoD;AACpD,6BAAwB;AACxB,iBAA4B;AAC5B,0BAAsB;AACtB,iBAAqD;AACrD,kBAAqB;AACrB,+BAAgC;AAChC,iCAAmC;AACnC,uCAAwC;AACxC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,+BAAmD;AACnD,+BAAsD;AACtD,gCAA8D;AAC9D,8BAA+B;AAC/B,+BAAsE;AACtE,yBAAiC;AACjC,6BAA+B;AAC/B,wCAAwC;AAEjC,SAAS,UAAU,EAAE,MAAM,GAA0B;AAC1D,QAAM,UAAM,sCAAgB;AAC5B,QAAM,gBAAgB,IAAI;AAC1B,QAAM,SAAK,uCAAe;AAC1B,QAAM,aAAS,2DAAwB,EAAE,gBAAgB,8BAA8B,gBAAgB,sBAAsB,CAAC;AAC9H,QAAM,EAAE,cAAc,UAAU,gBAAgB,aAAa,eAAe,cAAc,mBAAmB,WAAW,IA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AAM,QAAQ,KAAK;AAAA,kBACpC,SAAS,gBAAgB,GAAG,cAAc,MAAM,GAAG,CAAC,CAAC,SAAI,cAAc,MAAM,EAAE,CAAC,KAAK;AAAA,kBACrF,aAAa,oBAAgB,wBAAY,EAAE,SAAS,cAAc,CAAC,IAAI;AAAA;AAAA,cACzE;AAAA,cACC;AAAA,eACH;AAAA,YAGF,sDAAC,oBAAM,GAAG,MACR,uDAAC,UAAK,UAAU,KAAK,aAAa,QAAQ,GAAG,WAAU,aACrD;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA,cAAc,GAAG,UAAU;AAAA,kBAC3B;AAAA,kBACA,gBAAgB;AAAA,kBAChB,aAAa;AAAA,kBACb,eAAe;AAAA,kBACf,cAAc;AAAA;AAAA,cAChB;AAAA,cACC,eAAe,4CAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,6CAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { claimEndTimestamp, popEventAttributes, popEventIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Certificate image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: popEventAttributes(eventType, isPublic),\n });\n await runIntentCalls(signer, () =>\n popEventIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n claimEndTimestamp: claimEndTimestamp(values.claimEndDate, values.claimEndTime),\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title={t(\"Secure an account to create a POP event\")}\n description={t(\"A secured account is needed to deploy a certificate collection onchain.\")}\n >\n <TransactionDialog tx={tx} title={t(\"Create POP event\")} workingLabel=\"Creating the POP event…\" firstStepLabel=\"Upload certificate metadata\">\n <TransactionSuccess\n name={eventName || \"New event\"}\n image={imagePreview}\n title={t(\"Event created\")}\n description={t(\"Immutable digital asset certificates, recorded onchain.\")}\n actions={[{ href: \"/launchpad/pop\", label: t(\"Back to POP launchpad\") }, { label: t(\"Create another\"), onClick: handleAgain }]}\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title={t(\"Create a POP Event\")}\n subtitle={t(\"Immutable digital asset certificates — free to publish.\")}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgHU;AA9GV,mBAAoD;AACpD,6BAAwB;AACxB,iBAA4B;AAC5B,0BAAsB;AACtB,iBAAqD;AACrD,kBAAqB;AACrB,+BAAgC;AAChC,iCAAmC;AACnC,uCAAwC;AACxC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,+BAAmD;AACnD,+BAAsD;AACtD,gCAA8D;AAC9D,8BAA+B;AAC/B,+BAAsE;AACtE,yBAAiC;AACjC,6BAA+B;AAC/B,wCAAwC;AACxC,sBAAqB;AAEd,SAAS,UAAU,EAAE,MAAM,GAA0B;AAC1D,QAAM,QAAI,sBAAK;AACf,QAAM,UAAM,sCAAgB;AAC5B,QAAM,gBAAgB,IAAI;AAC1B,QAAM,SAAK,uCAAe;AAC1B,QAAM,aAAS,2DAAwB,EAAE,gBAAgB,8BAA8B,gBAAgB,sBAAsB,CAAC;AAC9H,QAAM,EAAE,cAAc,UAAU,gBAAgB,aAAa,eAAe,cAAc,mBAAmB,WAA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,UAAU,EAAE,8DAAyD;AAAA,YACrE,OACE,4EACE;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,YAAY,KAAK,MAAM,QAAQ,KAAK;AAAA,kBACpC,SAAS,gBAAgB,GAAG,cAAc,MAAM,GAAG,CAAC,CAAC,SAAI,cAAc,MAAM,EAAE,CAAC,KAAK;AAAA,kBACrF,aAAa,oBAAgB,wBAAY,EAAE,SAAS,cAAc,CAAC,IAAI;AAAA;AAAA,cACzE;AAAA,cACC;AAAA,eACH;AAAA,YAGF,sDAAC,oBAAM,GAAG,MACR,uDAAC,UAAK,UAAU,KAAK,aAAa,QAAQ,GAAG,WAAU,aACrD;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA,cAAc,GAAG,UAAU;AAAA,kBAC3B;AAAA,kBACA,gBAAgB;AAAA,kBAChB,aAAa;AAAA,kBACb,eAAe;AAAA,kBACf,cAAc;AAAA;AAAA,cAChB;AAAA,cACC,eAAe,4CAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,6CAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -21,7 +21,9 @@ import { claimEndTimestamp, popEventAttributes, popEventIntent } from "../../uti
|
|
|
21
21
|
import { uploadJsonToIpfs } from "../../utils/ipfs-upload.js";
|
|
22
22
|
import { useTransaction } from "../../utils/use-transaction.js";
|
|
23
23
|
import { useLaunchpadImageUpload } from "../../utils/use-launchpad-image-upload.js";
|
|
24
|
+
import { useT } from "../../i18n/provider.js";
|
|
24
25
|
function PopCreate({ aside }) {
|
|
26
|
+
const t = useT();
|
|
25
27
|
const app = useMedialaneApp();
|
|
26
28
|
const walletAddress = app.walletAddress;
|
|
27
29
|
const tx = useTransaction();
|
|
@@ -92,17 +94,17 @@ function PopCreate({ aside }) {
|
|
|
92
94
|
{
|
|
93
95
|
icon: Award,
|
|
94
96
|
iconClassName: "text-green-500",
|
|
95
|
-
title: "Secure an account to create a POP event",
|
|
96
|
-
description: "A secured account is needed to deploy a certificate collection onchain.",
|
|
97
|
+
title: t("Secure an account to create a POP event"),
|
|
98
|
+
description: t("A secured account is needed to deploy a certificate collection onchain."),
|
|
97
99
|
children: [
|
|
98
|
-
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Create POP event", workingLabel: "Creating the POP event\u2026", firstStepLabel: "Upload certificate metadata", children: /* @__PURE__ */ jsx(
|
|
100
|
+
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Create POP event"), workingLabel: "Creating the POP event\u2026", firstStepLabel: "Upload certificate metadata", children: /* @__PURE__ */ jsx(
|
|
99
101
|
TransactionSuccess,
|
|
100
102
|
{
|
|
101
103
|
name: eventName || "New event",
|
|
102
104
|
image: imagePreview,
|
|
103
|
-
title: "Event created",
|
|
104
|
-
description: "Immutable digital asset certificates, recorded onchain.",
|
|
105
|
-
actions: [{ href: "/launchpad/pop", label: "Back to POP launchpad" }, { label: "Create another", onClick: handleAgain }],
|
|
105
|
+
title: t("Event created"),
|
|
106
|
+
description: t("Immutable digital asset certificates, recorded onchain."),
|
|
107
|
+
actions: [{ href: "/launchpad/pop", label: t("Back to POP launchpad") }, { label: t("Create another"), onClick: handleAgain }],
|
|
106
108
|
children: /* @__PURE__ */ jsx(RewardEarned, { actionType: "launch_launchpad" })
|
|
107
109
|
}
|
|
108
110
|
) }),
|
|
@@ -110,8 +112,8 @@ function PopCreate({ aside }) {
|
|
|
110
112
|
ClaimRouteShell,
|
|
111
113
|
{
|
|
112
114
|
icon: /* @__PURE__ */ jsx(Award, { className: "h-4 w-4 text-white" }),
|
|
113
|
-
title: "Create a POP Event",
|
|
114
|
-
subtitle: "Immutable digital asset certificates \u2014 free to publish.",
|
|
115
|
+
title: t("Create a POP Event"),
|
|
116
|
+
subtitle: t("Immutable digital asset certificates \u2014 free to publish."),
|
|
115
117
|
aside: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
116
118
|
/* @__PURE__ */ jsx(
|
|
117
119
|
MedialaneCollectionCard,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { claimEndTimestamp, popEventAttributes, popEventIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Certificate image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: popEventAttributes(eventType, isPublic),\n });\n await runIntentCalls(signer, () =>\n popEventIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n claimEndTimestamp: claimEndTimestamp(values.claimEndDate, values.claimEndTime),\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title=\"Secure an account to create a POP event\"\n description=\"A secured account is needed to deploy a certificate collection onchain.\"\n >\n <TransactionDialog tx={tx} title=\"Create POP event\" workingLabel=\"Creating the POP event…\" firstStepLabel=\"Upload certificate metadata\">\n <TransactionSuccess\n name={eventName || \"New event\"}\n image={imagePreview}\n title=\"Event created\"\n description=\"Immutable digital asset certificates, recorded onchain.\"\n actions={[{ href: \"/launchpad/pop\", label: \"Back to POP launchpad\" }, { label: \"Create another\", onClick: handleAgain }]}\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title=\"Create a POP Event\"\n subtitle=\"Immutable digital asset certificates — free to publish.\"\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";AA8GU,SASA,UATA,KASA,YATA;AA5GV,SAAS,WAAW,gBA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BACf,cAAc;AAAA;AAAA,cAChB;AAAA,cACC,eAAe,oBAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,qBAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { claimEndTimestamp, popEventAttributes, popEventIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Certificate image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: popEventAttributes(eventType, isPublic),\n });\n await runIntentCalls(signer, () =>\n popEventIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n claimEndTimestamp: claimEndTimestamp(values.claimEndDate, values.claimEndTime),\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title={t(\"Secure an account to create a POP event\")}\n description={t(\"A secured account is needed to deploy a certificate collection onchain.\")}\n >\n <TransactionDialog tx={tx} title={t(\"Create POP event\")} workingLabel=\"Creating the POP event…\" firstStepLabel=\"Upload certificate metadata\">\n <TransactionSuccess\n name={eventName || \"New event\"}\n image={imagePreview}\n title={t(\"Event created\")}\n description={t(\"Immutable digital asset certificates, recorded onchain.\")}\n actions={[{ href: \"/launchpad/pop\", label: t(\"Back to POP launchpad\") }, { label: t(\"Create another\"), onClick: handleAgain }]}\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title={t(\"Create a POP Event\")}\n subtitle={t(\"Immutable digital asset certificates — free to publish.\")}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </Wal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Q,GAAG,WAAU,aACrD;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA,cAAc,GAAG,UAAU;AAAA,kBAC3B;AAAA,kBACA,gBAAgB;AAAA,kBAChB,aAAa;AAAA,kBACb,eAAe;AAAA,kBACf,cAAc;AAAA;AAAA,cAChB;AAAA,cACC,eAAe,oBAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,qBAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -65,7 +65,9 @@ var import_use_tokens = require("../../utils/use-tokens.js");
|
|
|
65
65
|
var import_use_image_url = require("../../utils/use-image-url.js");
|
|
66
66
|
var import_use_transaction = require("../../utils/use-transaction.js");
|
|
67
67
|
var import_portfolio_cache = require("../../utils/portfolio-cache.js");
|
|
68
|
+
var import_provider = require("../../i18n/provider.js");
|
|
68
69
|
function RemixMint({ contract, tokenId }) {
|
|
70
|
+
const t = (0, import_provider.useT)();
|
|
69
71
|
const app = (0, import_medialane_app.useMedialaneApp)();
|
|
70
72
|
const router = (0, import_router.useRouter)();
|
|
71
73
|
const resolveImage = (0, import_use_image_url.useImageUrl)();
|
|
@@ -82,7 +84,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
82
84
|
const originalName = token?.metadata?.name ?? `Token #${tokenId}`;
|
|
83
85
|
const originalImage = resolveImage(token?.metadata?.image);
|
|
84
86
|
const originalAttributes = Array.isArray(token?.metadata?.attributes) ? token.metadata.attributes : [];
|
|
85
|
-
const attr = (
|
|
87
|
+
const attr = (t2) => originalAttributes.find((a) => a.trait_type === t2)?.value;
|
|
86
88
|
const remixPolicy = (0, import_sdk.resolveRemixPolicy)({
|
|
87
89
|
parentNoDerivatives: (0, import_sdk.getDerivativesTerm)(originalAttributes) === "Not Allowed",
|
|
88
90
|
viewerIsParentOwner: viewerIsOwner,
|
|
@@ -222,7 +224,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
222
224
|
tx.reset();
|
|
223
225
|
setRemixHref(null);
|
|
224
226
|
};
|
|
225
|
-
const gate = { icon: import_lucide_react.GitBranch, title: "Connect to create a remix", description: "Connect to mint a derivative of this asset." };
|
|
227
|
+
const gate = { icon: import_lucide_react.GitBranch, title: t("Connect to create a remix"), description: t("Connect to mint a derivative of this asset.") };
|
|
226
228
|
if (tokenLoading) {
|
|
227
229
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wallet_required.WalletRequired, { ...gate, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-5xl mx-auto px-4 pt-14 pb-8 space-y-6", children: [
|
|
228
230
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-48" }),
|
|
@@ -234,22 +236,22 @@ function RemixMint({ contract, tokenId }) {
|
|
|
234
236
|
}
|
|
235
237
|
if (!token) {
|
|
236
238
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-5xl mx-auto px-4 py-24 text-center space-y-4", children: [
|
|
237
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xl font-bold", children: "Asset not found" }),
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/", children: "Go home" }) })
|
|
239
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xl font-bold", children: t("Asset not found") }),
|
|
240
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/", children: t("Go home") }) })
|
|
239
241
|
] });
|
|
240
242
|
}
|
|
241
243
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_wallet_required.WalletRequired, { ...gate, children: [
|
|
242
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Mint a remix", workingLabel: "Minting your remix\u2026", firstStepLabel: "Upload to IPFS", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
244
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Mint a remix"), workingLabel: "Minting your remix\u2026", firstStepLabel: "Upload to IPFS", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
243
245
|
import_transaction_success.TransactionSuccess,
|
|
244
246
|
{
|
|
245
247
|
name,
|
|
246
248
|
image: imagePreview ?? originalImage ?? null,
|
|
247
|
-
title: "Remix minted",
|
|
248
|
-
description: "It is registered as a remix of the original asset and carries its own license terms.",
|
|
249
|
+
title: t("Remix minted"),
|
|
250
|
+
description: t("It is registered as a remix of the original asset and carries its own license terms."),
|
|
249
251
|
actions: [
|
|
250
|
-
...remixHref ? [{ href: remixHref, label: "View remix" }] : [],
|
|
251
|
-
{ href: "/portfolio/assets", label: "View portfolio" },
|
|
252
|
-
{ label: "Close", onClick: handleAgain }
|
|
252
|
+
...remixHref ? [{ href: remixHref, label: t("View remix") }] : [],
|
|
253
|
+
{ href: "/portfolio/assets", label: t("View portfolio") },
|
|
254
|
+
{ label: t("Close"), onClick: handleAgain }
|
|
253
255
|
],
|
|
254
256
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_reward_earned.RewardEarned, { actionType: "mint_asset" })
|
|
255
257
|
}
|
|
@@ -258,18 +260,18 @@ function RemixMint({ contract, tokenId }) {
|
|
|
258
260
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
|
|
259
261
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: (0, import_sdk.assetHref)("STARKNET", contract, tokenId), className: "inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors", children: [
|
|
260
262
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronLeft, { className: "h-4 w-4" }),
|
|
261
|
-
"Back to asset"
|
|
263
|
+
t("Back to asset")
|
|
262
264
|
] }),
|
|
263
265
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2 text-primary", children: [
|
|
264
266
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-5 w-5" }),
|
|
265
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-semibold", children: "Create Remix" })
|
|
267
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-semibold", children: t("Create Remix") })
|
|
266
268
|
] }),
|
|
267
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-3xl font-bold", children: "Mint a Remix" }),
|
|
268
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground max-w-xl", children: "Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata." })
|
|
269
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-3xl font-bold", children: t("Mint a Remix") }),
|
|
270
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground max-w-xl", children: t("Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata.") })
|
|
269
271
|
] }),
|
|
270
272
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-8 items-start", children: [
|
|
271
273
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-4", children: [
|
|
272
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: "Remix Artwork", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ImagePlus, { className: "h-4 w-4" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
274
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: t("Remix Artwork"), icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ImagePlus, { className: "h-4 w-4" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
273
275
|
"div",
|
|
274
276
|
{
|
|
275
277
|
className: (0, import_cn.cn)("relative group rounded-xl border-2 border-dashed border-border transition-colors cursor-pointer overflow-hidden", "hover:border-primary/50 hover:bg-muted/30"),
|
|
@@ -280,52 +282,53 @@ function RemixMint({ contract, tokenId }) {
|
|
|
280
282
|
if (f) handleImageChange(f);
|
|
281
283
|
} }),
|
|
282
284
|
imagePreview ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative aspect-square w-full", children: [
|
|
283
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: imagePreview, alt: "Remix preview", fill: true, unoptimized: true, className: "object-cover" }),
|
|
285
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: imagePreview, alt: t("Remix preview"), fill: true, unoptimized: true, className: "object-cover" }),
|
|
284
286
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-white text-sm font-medium flex items-center gap-2", children: [
|
|
285
287
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Upload, { className: "h-4 w-4" }),
|
|
286
|
-
"
|
|
288
|
+
" ",
|
|
289
|
+
t("Change image")
|
|
287
290
|
] }) })
|
|
288
291
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "aspect-square flex flex-col items-center justify-center gap-3 text-muted-foreground p-8", children: [
|
|
289
292
|
originalImage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative h-20 w-20 rounded-xl overflow-hidden opacity-40 mb-1 ring-2 ring-border", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: originalImage, alt: "", fill: true, unoptimized: true, className: "object-cover" }) }),
|
|
290
293
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Upload, { className: "h-8 w-8" }),
|
|
291
294
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-center", children: [
|
|
292
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium", children: "Upload remix artwork" }),
|
|
293
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs mt-0.5", children: originalImage ? "Leave empty to inherit original artwork" : "PNG, JPG, GIF, WebP up to 10MB" })
|
|
295
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium", children: t("Upload remix artwork") }),
|
|
296
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs mt-0.5", children: originalImage ? t("Leave empty to inherit original artwork") : t("PNG, JPG, GIF, WebP up to 10MB") })
|
|
294
297
|
] })
|
|
295
298
|
] })
|
|
296
299
|
]
|
|
297
300
|
}
|
|
298
301
|
) }),
|
|
299
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_create_form_primitives.Section, { title: "Remix Details", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-4 w-4" }), children: [
|
|
302
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_create_form_primitives.Section, { title: t("Remix Details"), icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-4 w-4" }), children: [
|
|
300
303
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
301
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: "Remix Name *" }),
|
|
304
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: t("Remix Name *") }),
|
|
302
305
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { value: name, onChange: (e) => setName(e.target.value), placeholder: `Remix of ${originalName}` })
|
|
303
306
|
] }),
|
|
304
307
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
305
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: "Description" }),
|
|
306
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { value: description, onChange: (e) => setDescription(e.target.value), placeholder: "Describe your remix, the creative changes you're making, or your vision for it\u2026", rows: 3, className: "resize-none" })
|
|
308
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: t("Description") }),
|
|
309
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { value: description, onChange: (e) => setDescription(e.target.value), placeholder: t("Describe your remix, the creative changes you're making, or your vision for it\u2026"), rows: 3, className: "resize-none" })
|
|
307
310
|
] })
|
|
308
311
|
] }),
|
|
309
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: "Collection", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Boxes, { className: "h-4 w-4" }), children: collectionsLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-10 w-full rounded-md" }) : eligibleCollections.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-lg border border-dashed border-border p-4 text-center space-y-2", children: [
|
|
310
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: "No eligible collections. Create one first." }),
|
|
312
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: t("Collection"), icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Boxes, { className: "h-4 w-4" }), children: collectionsLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-10 w-full rounded-md" }) : eligibleCollections.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-lg border border-dashed border-border p-4 text-center space-y-2", children: [
|
|
313
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("No eligible collections. Create one first.") }),
|
|
311
314
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { size: "sm", variant: "outline", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: "/launchpad/single-editions/collection", children: [
|
|
312
315
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
313
|
-
"Create collection"
|
|
316
|
+
t("Create collection")
|
|
314
317
|
] }) })
|
|
315
318
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { value: collectionKey, onValueChange: setCollectionKey, children: [
|
|
316
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, { placeholder: "Select a collection" }) }),
|
|
319
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, { placeholder: t("Select a collection") }) }),
|
|
317
320
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: eligibleCollections.map((c) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: getCollectionKey(c), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-2", children: [
|
|
318
321
|
c.name ?? c.contractAddress.slice(0, 14) + "\u2026",
|
|
319
322
|
c.standard && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-2xs tabular-nums text-muted-foreground", children: c.standard })
|
|
320
323
|
] }) }, getCollectionKey(c))) })
|
|
321
324
|
] }) }),
|
|
322
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: "IP Type", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Info, { className: "h-4 w-4" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { value: ipType, onValueChange: setIpType, children: [
|
|
325
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.Section, { title: t("IP Type"), icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Info, { className: "h-4 w-4" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { value: ipType, onValueChange: setIpType, children: [
|
|
323
326
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, {}) }),
|
|
324
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: import_ip.IP_TYPES.map((
|
|
327
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: import_ip.IP_TYPES.map((t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: t2, children: t2 }, t2)) })
|
|
325
328
|
] }) }),
|
|
326
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_create_form_primitives.Section, { title: "License Terms", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Shield, { className: "h-4 w-4" }), children: [
|
|
329
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_create_form_primitives.Section, { title: t("License Terms"), icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Shield, { className: "h-4 w-4" }), children: [
|
|
327
330
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
328
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: "License Type" }),
|
|
331
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { children: t("License Type") }),
|
|
329
332
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { value: licenseType, onValueChange: handleLicenseChange, children: [
|
|
330
333
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, {}) }),
|
|
331
334
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: import_ip.LICENSE_TYPES.map((l) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: l.value, children: l.value }, l.value)) })
|
|
@@ -333,26 +336,26 @@ function RemixMint({ contract, tokenId }) {
|
|
|
333
336
|
] }),
|
|
334
337
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
335
338
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
336
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: "Commercial Use" }),
|
|
339
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: t("Commercial Use") }),
|
|
337
340
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.ToggleGroup, { value: commercial ? "Yes" : "No", options: ["Yes", "No"], onChange: (v) => setCommercial(v === "Yes") })
|
|
338
341
|
] }),
|
|
339
342
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
340
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: "Derivatives" }),
|
|
343
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: t("Derivatives") }),
|
|
341
344
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_create_form_primitives.ToggleGroup, { value: derivatives ? "Allowed" : "Not Allowed", options: ["Allowed", "Not Allowed"], onChange: (v) => setDerivatives(v === "Allowed") })
|
|
342
345
|
] })
|
|
343
346
|
] }),
|
|
344
347
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_collapsible.Collapsible, { open: advancedOpen, onOpenChange: setAdvancedOpen, children: [
|
|
345
348
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_collapsible.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", { type: "button", className: "flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors", children: [
|
|
346
349
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDown, { className: (0, import_cn.cn)("h-3.5 w-3.5 transition-transform", advancedOpen && "rotate-180") }),
|
|
347
|
-
"Royalty & advanced"
|
|
350
|
+
t("Royalty & advanced")
|
|
348
351
|
] }) }),
|
|
349
352
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_collapsible.CollapsibleContent, { className: "pt-3 space-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
350
353
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.Label, { className: "flex items-center gap-1.5", children: [
|
|
351
354
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Percent, { className: "h-3.5 w-3.5" }),
|
|
352
|
-
"Royalty %"
|
|
355
|
+
t("Royalty %")
|
|
353
356
|
] }),
|
|
354
357
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { type: "number", min: "0", max: "50", step: "1", placeholder: "0", value: royalty, onChange: (e) => setRoyalty(e.target.value) }),
|
|
355
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: "Percentage of future sales sent back to you (0\u201350%)" })
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t("Percentage of future sales sent back to you (0\u201350%)") })
|
|
356
359
|
] }) })
|
|
357
360
|
] })
|
|
358
361
|
] }),
|
|
@@ -366,11 +369,11 @@ function RemixMint({ contract, tokenId }) {
|
|
|
366
369
|
className: "w-full h-12 rounded-[11px] flex items-center justify-center gap-2 text-base font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-brand-rose disabled:opacity-50",
|
|
367
370
|
children: [
|
|
368
371
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-5 w-5" }),
|
|
369
|
-
"Mint Remix"
|
|
372
|
+
t("Mint Remix")
|
|
370
373
|
]
|
|
371
374
|
}
|
|
372
375
|
) }),
|
|
373
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-center text-muted-foreground", children: "Two operations: IPFS metadata upload + on-chain mint. Gas is free." })
|
|
376
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-center text-muted-foreground", children: t("Two operations: IPFS metadata upload + on-chain mint. Gas is free.") })
|
|
374
377
|
] }),
|
|
375
378
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-4 lg:sticky lg:top-16", children: [
|
|
376
379
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-border overflow-hidden bg-card", children: [
|
|
@@ -378,7 +381,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
378
381
|
originalImage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: originalImage, alt: originalName, fill: true, unoptimized: true, className: "object-cover" }),
|
|
379
382
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute top-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_badge.Badge, { variant: "secondary", className: "text-2xs gap-1", children: [
|
|
380
383
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-3 w-3" }),
|
|
381
|
-
"Original"
|
|
384
|
+
t("Original")
|
|
382
385
|
] }) })
|
|
383
386
|
] }),
|
|
384
387
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-4 space-y-3", children: [
|
|
@@ -387,17 +390,17 @@ function RemixMint({ contract, tokenId }) {
|
|
|
387
390
|
token.metadata?.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground line-clamp-2 mt-0.5", children: token.metadata.description })
|
|
388
391
|
] }),
|
|
389
392
|
(attr("License") || attr("Commercial Use") || attr("Derivatives")) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-lg bg-muted/40 p-3 space-y-1.5 text-xs", children: [
|
|
390
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xs font-semibold text-muted-foreground", children: "Original License" }),
|
|
393
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xs font-semibold text-muted-foreground", children: t("Original License") }),
|
|
391
394
|
attr("License") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
|
|
392
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: "License" }),
|
|
395
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: t("License") }),
|
|
393
396
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-medium", children: attr("License") })
|
|
394
397
|
] }),
|
|
395
398
|
attr("Commercial Use") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
|
|
396
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: "Commercial" }),
|
|
399
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: t("Commercial") }),
|
|
397
400
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-medium", children: attr("Commercial Use") })
|
|
398
401
|
] }),
|
|
399
402
|
attr("Derivatives") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
|
|
400
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: "Derivatives" }),
|
|
403
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: t("Derivatives") }),
|
|
401
404
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-medium", children: attr("Derivatives") })
|
|
402
405
|
] })
|
|
403
406
|
] })
|
|
@@ -406,12 +409,12 @@ function RemixMint({ contract, tokenId }) {
|
|
|
406
409
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-primary/20 bg-primary/5 p-4 space-y-3 text-sm", children: [
|
|
407
410
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "font-semibold flex items-center gap-2", children: [
|
|
408
411
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Info, { className: "h-4 w-4 text-primary" }),
|
|
409
|
-
"What happens next"
|
|
412
|
+
t("What happens next")
|
|
410
413
|
] }),
|
|
411
414
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("ol", { className: "space-y-2 text-muted-foreground text-xs list-decimal list-inside", children: [
|
|
412
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: "Your artwork and metadata are uploaded to IPFS" }),
|
|
413
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: "A new NFT is minted in the selected collection" }),
|
|
414
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: "Parent attribution is embedded on-chain permanently" })
|
|
415
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: t("Your artwork and metadata are uploaded to IPFS") }),
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: t("A new NFT is minted in the selected collection") }),
|
|
417
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: t("Parent attribution is embedded on-chain permanently") })
|
|
415
418
|
] })
|
|
416
419
|
] })
|
|
417
420
|
] })
|