@medialane/ui 0.367.0 → 0.368.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.
Files changed (133) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/alert.d.cts +1 -1
  4. package/dist/components/alert.d.ts +1 -1
  5. package/dist/components/asset-card.cjs +3 -3
  6. package/dist/components/asset-card.cjs.map +1 -1
  7. package/dist/components/asset-card.js +3 -3
  8. package/dist/components/asset-card.js.map +1 -1
  9. package/dist/components/badge.d.cts +1 -1
  10. package/dist/components/badge.d.ts +1 -1
  11. package/dist/components/button.d.cts +2 -2
  12. package/dist/components/button.d.ts +2 -2
  13. package/dist/components/collection-card.cjs +3 -3
  14. package/dist/components/collection-card.cjs.map +1 -1
  15. package/dist/components/collection-card.js +3 -3
  16. package/dist/components/collection-card.js.map +1 -1
  17. package/dist/components/collection-page.cjs +1 -1
  18. package/dist/components/collection-page.cjs.map +1 -1
  19. package/dist/components/collection-page.js +1 -1
  20. package/dist/components/collection-page.js.map +1 -1
  21. package/dist/components/fast-mint/fast-mint.cjs +2 -1
  22. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  23. package/dist/components/fast-mint/fast-mint.js +2 -1
  24. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  25. package/dist/components/fast-mint/formats/nft.cjs +6 -3
  26. package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
  27. package/dist/components/fast-mint/formats/nft.js +6 -3
  28. package/dist/components/fast-mint/formats/nft.js.map +1 -1
  29. package/dist/components/fast-mint/formats/pop.cjs +5 -4
  30. package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
  31. package/dist/components/fast-mint/formats/pop.js +5 -4
  32. package/dist/components/fast-mint/formats/pop.js.map +1 -1
  33. package/dist/components/fast-mint/formats/tiers.cjs +8 -8
  34. package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
  35. package/dist/components/fast-mint/formats/tiers.js +8 -8
  36. package/dist/components/fast-mint/formats/tiers.js.map +1 -1
  37. package/dist/components/launchpad/collection-create-form.cjs +3 -4
  38. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  39. package/dist/components/launchpad/collection-create-form.js +3 -4
  40. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  41. package/dist/components/launchpad/edition-mint-schema.cjs +3 -4
  42. package/dist/components/launchpad/edition-mint-schema.cjs.map +1 -1
  43. package/dist/components/launchpad/edition-mint-schema.d.cts +5 -5
  44. package/dist/components/launchpad/edition-mint-schema.d.ts +5 -5
  45. package/dist/components/launchpad/edition-mint-schema.js +3 -4
  46. package/dist/components/launchpad/edition-mint-schema.js.map +1 -1
  47. package/dist/components/launchpad/pop-create-fields.cjs +3 -3
  48. package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
  49. package/dist/components/launchpad/pop-create-fields.js +3 -3
  50. package/dist/components/launchpad/pop-create-fields.js.map +1 -1
  51. package/dist/components/launchpad/pop-create-schema.cjs +3 -4
  52. package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
  53. package/dist/components/launchpad/pop-create-schema.js +3 -4
  54. package/dist/components/launchpad/pop-create-schema.js.map +1 -1
  55. package/dist/components/launchpad/pop-create.cjs +4 -4
  56. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  57. package/dist/components/launchpad/pop-create.js +4 -4
  58. package/dist/components/launchpad/pop-create.js.map +1 -1
  59. package/dist/components/launchpad/single-edition-mint.cjs +2 -1
  60. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  61. package/dist/components/launchpad/single-edition-mint.js +2 -1
  62. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  63. package/dist/components/launchpad/tier-mint-form.cjs +3 -2
  64. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  65. package/dist/components/launchpad/tier-mint-form.js +3 -2
  66. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  67. package/dist/components/launchpad-page.cjs +1 -2
  68. package/dist/components/launchpad-page.cjs.map +1 -1
  69. package/dist/components/launchpad-page.js +1 -2
  70. package/dist/components/launchpad-page.js.map +1 -1
  71. package/dist/components/page-skeletons.cjs +79 -47
  72. package/dist/components/page-skeletons.cjs.map +1 -1
  73. package/dist/components/page-skeletons.d.cts +3 -1
  74. package/dist/components/page-skeletons.d.ts +3 -1
  75. package/dist/components/page-skeletons.js +77 -47
  76. package/dist/components/page-skeletons.js.map +1 -1
  77. package/dist/components/pop-burn-button.cjs +1 -1
  78. package/dist/components/pop-burn-button.cjs.map +1 -1
  79. package/dist/components/pop-burn-button.js +1 -1
  80. package/dist/components/pop-burn-button.js.map +1 -1
  81. package/dist/components/pop-claim-button.cjs +3 -3
  82. package/dist/components/pop-claim-button.cjs.map +1 -1
  83. package/dist/components/pop-claim-button.js +3 -3
  84. package/dist/components/pop-claim-button.js.map +1 -1
  85. package/dist/components/pop-manage-page.cjs +3 -3
  86. package/dist/components/pop-manage-page.cjs.map +1 -1
  87. package/dist/components/pop-manage-page.js +3 -3
  88. package/dist/components/pop-manage-page.js.map +1 -1
  89. package/dist/components/service-collections-page.cjs +3 -2
  90. package/dist/components/service-collections-page.cjs.map +1 -1
  91. package/dist/components/service-collections-page.d.cts +2 -2
  92. package/dist/components/service-collections-page.d.ts +2 -2
  93. package/dist/components/service-collections-page.js +3 -2
  94. package/dist/components/service-collections-page.js.map +1 -1
  95. package/dist/components/token-card.cjs +7 -4
  96. package/dist/components/token-card.cjs.map +1 -1
  97. package/dist/components/token-card.js +7 -4
  98. package/dist/components/token-card.js.map +1 -1
  99. package/dist/data/launchpad-services.cjs +36 -15
  100. package/dist/data/launchpad-services.cjs.map +1 -1
  101. package/dist/data/launchpad-services.d.cts +11 -1
  102. package/dist/data/launchpad-services.d.ts +11 -1
  103. package/dist/data/launchpad-services.js +32 -14
  104. package/dist/data/launchpad-services.js.map +1 -1
  105. package/dist/index.cjs +8 -0
  106. package/dist/index.cjs.map +1 -1
  107. package/dist/index.d.cts +2 -2
  108. package/dist/index.d.ts +2 -2
  109. package/dist/index.js +6 -2
  110. package/dist/index.js.map +1 -1
  111. package/dist/utils/drop/draft.cjs +3 -2
  112. package/dist/utils/drop/draft.cjs.map +1 -1
  113. package/dist/utils/drop/draft.js +3 -2
  114. package/dist/utils/drop/draft.js.map +1 -1
  115. package/dist/utils/drop/sale.cjs +2 -1
  116. package/dist/utils/drop/sale.cjs.map +1 -1
  117. package/dist/utils/drop/sale.js +2 -1
  118. package/dist/utils/drop/sale.js.map +1 -1
  119. package/dist/utils/launchpad-rules.cjs +77 -0
  120. package/dist/utils/launchpad-rules.cjs.map +1 -0
  121. package/dist/utils/launchpad-rules.d.cts +13 -0
  122. package/dist/utils/launchpad-rules.d.ts +13 -0
  123. package/dist/utils/launchpad-rules.js +35 -0
  124. package/dist/utils/launchpad-rules.js.map +1 -0
  125. package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
  126. package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
  127. package/dist/utils/success-messages.cjs +5 -5
  128. package/dist/utils/success-messages.cjs.map +1 -1
  129. package/dist/utils/success-messages.d.cts +1 -1
  130. package/dist/utils/success-messages.d.ts +1 -1
  131. package/dist/utils/success-messages.js +5 -5
  132. package/dist/utils/success-messages.js.map +1 -1
  133. package/package.json +1 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["\nexport { cn } from \"./utils/cn.js\";\nexport { formatDisplayPrice, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport { gatewayFallbackSrc, installIpfsGatewayFallback } from \"./utils/ipfs-gateway-fallback.js\";\nexport { IpfsGatewayFallback } from \"./components/ipfs-gateway-fallback.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport { CollectionHeader, type CollectionHeaderProps } from \"./components/collection-header.js\";\nexport { CreatorHeader, type CreatorHeaderProps, type CreatorHeaderStat } from \"./components/creator-header.js\";\nexport { AssetPage, AssetPageSkeleton, detectAssetKind, type AssetPageProps, type AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps } from \"./components/asset-comments-dialog.js\";\nexport { CollectionPage, canTransferCollectionOwnership, type CollectionPageProps, type CollectionPageSlots, type CollectionMarketActions } from \"./components/collection-page.js\";\nexport { CollectionFiltersDialog, type CollectionFiltersDialogProps } from \"./components/collection-filters-dialog.js\";\nexport { GatedContentHero, GatedContentPanel, type GatedContent, type GatedContentState } from \"./components/gated-content.js\";\nexport { MakeOfferPicker } from \"./components/make-offer-picker.js\";\nexport { ListingCardMenu } from \"./components/listing-card-menu.js\";\nexport { FloatingCommentsButton } from \"./components/floating-comments-button.js\";\nexport { PageBackdrop } from \"./components/media-header.js\";\nexport { useComments, type UseCommentsResult } from \"./utils/use-comments.js\";\nexport { useFullTokenData } from \"./utils/use-full-token-data.js\";\nexport { useAssetMarketState, type AssetMarketState } from \"./utils/asset-market-state.js\";\nexport { assetAttributes, type AssetAttribute } from \"./utils/asset-attributes.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { fireConfetti } from \"./utils/media-wallet/confetti.js\";\nexport { useConfetti } from \"./utils/use-confetti.js\";\nexport { useOnOpen } from \"./utils/use-on-open.js\";\nexport { useCoinGuarantees } from \"./utils/use-coin-guarantees.js\";\nexport { useCoinSupply } from \"./utils/use-coin-supply.js\";\nexport { BRAND, BRAND_COLOR, BRAND_GRADIENT, ACTION_GRADIENTS, ACTION_FOREGROUNDS } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, createImageResolver, type DisplayUrlOptions, type ImageResolver } from \"./utils/ipfs.js\";\nexport { useImageUrl } from \"./utils/use-image-url.js\";\nexport { isSameAddress } from \"./utils/same-address.js\";\nexport { createAppWallet } from \"./utils/app-wallet.js\";\nexport type { AppWalletConfig } from \"./utils/app-wallet.js\";\nexport { detectPasskeySupport } from \"./utils/passkey-support.js\";\nexport type { PasskeySupport } from \"./utils/passkey-support.js\";\nexport { describeWalletFailure, isPasskeyCancelled, passkeyUnsupportedReason } from \"./utils/wallet-failure.js\";\nexport type { PasskeyUnsupportedReason, WalletFailureKind, WalletFailureNotice } from \"./utils/wallet-failure.js\";\nexport {\n RESEND_COOLDOWN_SECONDS,\n canResendCode,\n canVerifyCode,\n emailCodeReducer,\n initialEmailCodeState,\n} from \"./utils/email-code.js\";\nexport type { EmailCodeAction, EmailCodeState, EmailCodeStatus } from \"./utils/email-code.js\";\nexport { useEmailCode } from \"./utils/use-email-code.js\";\nexport type { EmailCode, EmailCodeApi } from \"./utils/use-email-code.js\";\nexport { AccountSection } from \"./components/account/account-section.js\";\nexport type { AccountSectionProps } from \"./components/account/account-section.js\";\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from \"./components/account/input-otp.js\";\nexport { EmailCodeEntry } from \"./components/account/email-code-entry.js\";\nexport type { EmailCodeEntryProps } from \"./components/account/email-code-entry.js\";\nexport { DevicesSection } from \"./components/account/devices-section.js\";\nexport type { DevicesSectionProps } from \"./components/account/devices-section.js\";\nexport { DeviceApprovalDialog } from \"./components/account/device-approval-dialog.js\";\nexport type { DeviceApprovalDialogProps } from \"./components/account/device-approval-dialog.js\";\nexport { GuardianRecoverySection } from \"./components/account/guardian-recovery-section.js\";\nexport type { GuardianRecoverySectionProps } from \"./components/account/guardian-recovery-section.js\";\nexport { AddGuardianDialog } from \"./components/account/add-guardian-dialog.js\";\nexport type { AddGuardianDialogProps } from \"./components/account/add-guardian-dialog.js\";\nexport type { DeviceWallet, GuardianWallet, LoadSealedOwner } from \"./components/account/wallet-types.js\";\nexport { ACTIVITY_TYPE_CONFIG, TYPE_FILTERS } from \"./data/activity.js\";\nexport type { ActivityTypeConfig } from \"./data/activity.js\";\nexport { CollectionShowcase } from \"./components/collection-showcase.js\";\nexport type { CollectionShowcaseProps } from \"./components/collection-showcase.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport { ListingsGrid, type ListingsGridProps } from \"./components/listings-grid.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n OrderSummaryHero,\n CurrencyPicker,\n DurationPicker,\n ListingAssetSummary,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { useSession, refreshSession, sessionEmail, fetchSession } from \"./utils/use-session.js\";\nexport { OrderFields } from \"./components/order-fields.js\";\nexport type { OrderFieldsProps } from \"./components/order-fields.js\";\nexport { LISTABLE_CURRENCIES, orderFormSchema, counterOfferFormSchema } from \"./utils/order-form.js\";\nexport type { OrderFormValues } from \"./utils/order-form.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef, type ReportTarget } from \"./components/medialane-app.js\";\nexport { ReportDialog } from \"./components/report-dialog.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor, usdValueFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, matchCommands } from \"./components/nav-command-menu.js\";\nexport { SearchPage } from \"./components/search-page.js\";\nexport { PortfolioOrders, type PortfolioOrdersView, type PortfolioOrderActions, type UsePortfolioOrderActions } from \"./components/portfolio-orders.js\";\nexport { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.js\";\nexport { SoulboundCard, issuedAt } from \"./components/soulbound-card.js\";\nexport type { SoulboundCardProps } from \"./components/soulbound-card.js\";\nexport { RewardsPage } from \"./components/rewards-page.js\";\nexport { JourneyContent } from \"./components/journey-content.js\";\nexport { PortfolioSnapshot, RewardsSnapshot } from \"./components/settings-snapshots.js\";\nexport { RouteError } from \"./components/route-error.js\";\nexport { CreateSponsorshipAside } from \"./components/create-sponsorship-aside.js\";\nexport { AccountLoading, ActivitiesLoading, CollectionsLoading, CreatorLoading, MarketplaceLoading, PortfolioLoading } from \"./components/page-skeletons.js\";\nexport { RewardsDashboard, REWARD_ACTION_LABELS } from \"./components/rewards/rewards-dashboard.js\";\nexport { LeaderboardPanel, type LeaderboardPanelProps } from \"./components/rewards/leaderboard-panel.js\";\nexport { CollectionNameClaim } from \"./components/collection-name-claim.js\";\nexport { CollectionSettings } from \"./components/collection-settings.js\";\nexport { MintLanding, type MintLandingCopy } from \"./components/mint-landing.js\";\nexport { ApproveMintDialog, type ApproveMintDialogProps } from \"./components/approve-mint-dialog.js\";\nexport { DiscoverPage, type DiscoverPageProps } from \"./components/discover-page.js\";\nexport { DiscoverCommunitySection } from \"./components/discover-community-section.js\";\nexport { IpTypeNav } from \"./components/ip-type-nav.js\";\nexport { HomePage, FeaturedListings, type HomePageProps } from \"./components/home-page.js\";\nexport { AccountsPage } from \"./components/accounts-page.js\";\nexport { BackButton } from \"./components/back-button.js\";\nexport { SignInPrompt } from \"./components/sign-in-prompt.js\";\nexport { LaunchpadPage, type LaunchpadPageProps } from \"./components/launchpad-page.js\";\nexport { RemixBrowsePage } from \"./components/remix-browse-page.js\";\nexport { ServiceCollectionsPage } from \"./components/service-collections-page.js\";\nexport { EditionsPage } from \"./components/editions-page.js\";\nexport { DropsPage } from \"./components/drops-page.js\";\nexport { PopMyEventsPage } from \"./components/pop-my-events-page.js\";\nexport { CreatorPage, type CreatorPageProps } from \"./components/creator-page.js\";\nexport { AccountPage, type AccountPageProps } from \"./components/account-page.js\";\nexport { CancelOrderConfirm, type CancelOrderConfirmProps } from \"./components/cancel-order-confirm.js\";\nexport { UnderlineTabs, type UnderlineTab } from \"./components/underline-tabs.js\";\nexport { MoreMenu } from \"./components/more-menu.js\";\nexport { LicenseRequestPage } from \"./components/license-request-page.js\";\nexport { orderUsd } from \"./utils/order-usd.js\";\nexport { getSeenOffers, markOffersAsSeen } from \"./utils/seen-offers.js\";\nexport { NAV_ITEMS, navGroups, type NavItemId, type NavGroupSpec } from \"./data/nav-commands.js\";\nexport { ResultThumbnail } from \"./components/result-thumbnail.js\";\nexport type { NavCommand, NavCommandGroup, NavCommandMenuProps } from \"./components/nav-command-menu.js\";\n\nexport {\n NavBrandButton,\n NavIconButton,\n NavWalletTrigger,\n NavAccountSheet,\n useNavAccountSheet,\n} from \"./components/nav-shell.js\";\nexport type {\n NavBrandButtonProps,\n NavIconButtonProps,\n NavWalletTriggerProps,\n NavAccountSheetProps,\n} from \"./components/nav-shell.js\";\n\nexport { PortfolioHeader } from \"./components/portfolio-header.js\";\nexport type {\n PortfolioHeaderProps,\n PortfolioHeaderScore,\n} from \"./components/portfolio-header.js\";\nexport { derivePortfolioCounts } from \"./utils/portfolio-counts.js\";\nexport type { PortfolioCounts, CountableOrder } from \"./utils/portfolio-counts.js\";\nexport { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { useTransaction, isBusyPhase } from \"./utils/use-transaction.js\";\nexport type { TransactionPhase } from \"./utils/use-transaction.js\";\nexport { RewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { CollectionCreateForm } from \"./components/launchpad/collection-create-form.js\";\nexport type { CollectionCreateFormProps } from \"./components/launchpad/collection-create-form.js\";\nexport { CLUB_PRESET, TICKETS_PRESET, EDITIONS_PRESET, SINGLE_PRESET } from \"./components/launchpad/collection-create-presets.js\";\nexport type { CollectionCreatePreset } from \"./components/launchpad/collection-create-presets.js\";\nexport { TierMintForm } from \"./components/launchpad/tier-mint-form.js\";\nexport type { TierMintFormProps } from \"./components/launchpad/tier-mint-form.js\";\nexport { CLUB_TIER_PRESET, TICKETS_TIER_PRESET } from \"./components/launchpad/tier-mint-presets.js\";\nexport type { TierMintPreset } from \"./components/launchpad/tier-mint-presets.js\";\nexport { SingleEditionMint } from \"./components/launchpad/single-edition-mint.js\";\nexport { CollectionPicker } from \"./components/launchpad/collection-picker.js\";\nexport type { CollectionPickerProps } from \"./components/launchpad/collection-picker.js\";\nexport { EditionMint } from \"./components/launchpad/edition-mint.js\";\nexport { RemixMint } from \"./components/launchpad/remix-mint.js\";\nexport { IpTypePage } from \"./components/ip-type-page.js\";\nexport type { IpTypePageProps } from \"./components/ip-type-page.js\";\nexport { CollectionsPage } from \"./components/collections-page.js\";\nexport { SponsorshipCreate } from \"./components/launchpad/sponsorship-create.js\";\nexport { PopCreate } from \"./components/launchpad/pop-create.js\";\nexport { PopClaimButton } from \"./components/pop-claim-button.js\";\nexport { PopBurnButton } from \"./components/pop-burn-button.js\";\nexport { PopManagePage } from \"./components/pop-manage-page.js\";\nexport { CommentsSection } from \"./components/comments-section.js\";\nexport type { CommentsSectionProps } from \"./components/comments-section.js\";\nexport type { PopBurnButtonProps } from \"./components/pop-burn-button.js\";\nexport { SponsorshipOffersPage } from \"./components/sponsorship-offers-page.js\";\nexport { SponsorshipOfferPage } from \"./components/sponsorship-offer-page.js\";\nexport { PortfolioSponsorships } from \"./components/portfolio-sponsorships.js\";\nexport { TransferCollectionOwnership } from \"./components/transfer-collection-ownership.js\";\nexport type { TransferCollectionOwnershipProps } from \"./components/transfer-collection-ownership.js\";\nexport { CoinCreate } from \"./components/launchpad/coin-create.js\";\nexport type { CoinCreateProps } from \"./components/launchpad/coin-create.js\";\nexport { WalletRequired } from \"./components/wallet-required.js\";\nexport type { WalletRequiredProps } from \"./components/wallet-required.js\";\nexport { ClaimRouteShell } from \"./components/claim-route-shell.js\";\nexport { useLaunchpadImageUpload } from \"./utils/use-launchpad-image-upload.js\";\nexport { invalidatePortfolioCache } from \"./utils/portfolio-cache.js\";\nexport { TransactionDialog } from \"./components/transaction-dialog.js\";\nexport type { TransactionDialogProps } from \"./components/transaction-dialog.js\";\nexport { TransactionSuccess, DialogTransactionSuccess } from \"./components/transaction-success.js\";\nexport { TransactionDialogStates } from \"./components/transaction-dialog-states.js\";\nexport { TransferDialog } from \"./components/transfer-dialog.js\";\nexport { MarketplaceSearch, SearchInput } from \"./components/marketplace-search.js\";\nexport { ActiveFilters, FiltersButton, FiltersDialog, useMarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport type { MarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport { useDebouncedValue } from \"./utils/use-debounced-value.js\";\nexport type { TransferDialogProps } from \"./components/transfer-dialog.js\";\nexport type { TransactionDialogStatesProps } from \"./components/transaction-dialog-states.js\";\nexport type { TransactionSuccessProps, TransactionSuccessAction } from \"./components/transaction-success.js\";\nexport { successMessages } from \"./utils/success-messages.js\";\nexport { emptyMessages } from \"./utils/empty-messages.js\";\nexport type { EmptyMessage } from \"./utils/empty-messages.js\";\nexport type { SuccessMessage } from \"./utils/success-messages.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from \"./components/new-collection-menu.js\";\nexport { ExternalLinkField } from \"./components/external-link-field.js\";\nexport { PortfolioCollections } from \"./components/portfolio-collections.js\";\nexport { TabEmptyState } from \"./components/tab-empty-state.js\";\nexport type { TabEmptyStateProps } from \"./components/tab-empty-state.js\";\nexport {\n Select, SelectGroup, SelectValue, SelectTrigger, SelectContent,\n SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton,\n} from \"./components/select.js\";\nexport {\n useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,\n} from \"./components/form.js\";\nexport { Textarea } from \"./components/textarea.js\";\nexport type { TextareaProps } from \"./components/textarea.js\";\nexport {\n Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent,\n SheetHeader, SheetFooter, SheetTitle, SheetDescription,\n} from \"./components/sheet.js\";\n\nexport { ToggleGroup, Section } from \"./components/create-form-primitives.js\";\nexport { OrderSortControl, sortOrders } from \"./components/order-sort-control.js\";\nexport type { OrderSort } from \"./components/order-sort-control.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport { formatActivity } from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile, useCreatorByUsername } from \"./utils/use-profiles.js\";\nexport { useActivities, useActivitiesByAddress } from \"./utils/use-activities.js\";\nexport {\n useCollections, useCollection, useCollectionsByOwner, useCollectionTokens, useNearbyCollectionTokens,\n} from \"./utils/use-collections.js\";\nexport type { CollectionSort } from \"./utils/use-collections.js\";\nexport { CreatorChip } from \"./components/creator-chip.js\";\nexport type { CreatorChipProps } from \"./components/creator-chip.js\";\nexport { CollectionProvenanceTab } from \"./components/collection-provenance-tab.js\";\nexport type { CollectionProvenanceTabProps } from \"./components/collection-provenance-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useAccounts } from \"./utils/use-accounts.js\";\nexport { useSearch, SEARCH_MIN_LENGTH, type UseSearchOptions } from \"./utils/use-search.js\";\nexport {\n useRewards, useLeaderboard, useRewardsEvents, useRewardsConfig, useRewardsBatch,\n} from \"./utils/use-rewards.js\";\nexport type { UserRewards, LeaderboardEntry, BadgeSummary, LevelSummary } from \"./utils/use-rewards.js\";\n\nexport {\n useOrders, useOrder, useTokenListings, useUserOrders, useCounterOffers,\n useReceivedOffers, useCollectionFloorListings,\n} from \"./utils/use-orders.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { useRemixOffers } from \"./utils/use-my-remix-offers.js\";\nexport { useSwapQuote, swapQuoteKey } from \"./utils/use-swap-quote.js\";\nexport type { SwapToken, SwapAmountMode, SwapQuoteSummary } from \"./utils/use-swap-quote.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useOwnedTokens } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE,SAAS,oBAAoB,kCAAkC;AAC/D,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EAAqB;AAAA,OAChB;AAEP;AAAA,EACE;AAAA,EAAc;AAAA,EAAqB;AAAA,EAAsB;AAAA,EAAsB;AAAA,OAC1E;AAEP,SAAS,qBAAqB;AAC9B,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC,SAAS,+BAA+B;AAExC,SAAS,kBAAkB,kBAAkB,qBAAqB;AAClE,SAAS,sBAAsB;AAC/B,SAAS,wB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ACE;AAAA,EAAY;AAAA,EAAgB;AAAA,EAAkB;AAAA,EAAkB;AAAA,OAC3D;AAGP;AAAA,EACE;AAAA,EAAW;AAAA,EAAU;AAAA,EAAkB;AAAA,EAAe;AAAA,EACtD;AAAA,EAAmB;AAAA,OACd;AACP,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,cAAc,oBAAoB;AAE3C,SAAS,kBAAkB;AAG3B,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAAQ;AAAA,EAAc;AAAA,EAAe;AAAA,EAAa;AAAA,EAClD;AAAA,EAAe;AAAA,EAAc;AAAA,EAAc;AAAA,EAAa;AAAA,OACnD;AACP,SAAS,uBAAuB,mBAAmB;AACnD,SAAS,wBAAoD;AAC7D,SAAS,UAAU,YAAY,SAAS,cAAc,YAAY,aAAa,oBAAoB;AAEnG,SAAS,mBAAmB,gBAAgB,yBAAyB;AACrE,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,aAAa,oBAAoB;AAC1C;AAAA,EACE;AAAA,EAAsB;AAAA,EAAqB;AAAA,EAAoB;AAAA,EAC/D;AAAA,EAAwB;AAAA,EAA6B;AAAA,EAAwB;AAAA,OACxE;AACP;AAAA,EACE;AAAA,EAAyB;AAAA,EAAqB;AAAA,EAAsB;AAAA,EACpE;AAAA,EAAmB;AAAA,EAAe;AAAA,EAAsB;AAAA,EAAkB;AAAA,OAErE;AACP,SAAS,UAAU,iBAAiB,iBAAiB,kBAAkB,sBAAsB;AAC7F,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["\nexport { cn } from \"./utils/cn.js\";\nexport { formatDisplayPrice, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport { gatewayFallbackSrc, installIpfsGatewayFallback } from \"./utils/ipfs-gateway-fallback.js\";\nexport { IpfsGatewayFallback } from \"./components/ipfs-gateway-fallback.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport { CollectionHeader, type CollectionHeaderProps } from \"./components/collection-header.js\";\nexport { CreatorHeader, type CreatorHeaderProps, type CreatorHeaderStat } from \"./components/creator-header.js\";\nexport { AssetPage, AssetPageSkeleton, detectAssetKind, type AssetPageProps, type AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps } from \"./components/asset-comments-dialog.js\";\nexport { CollectionPage, canTransferCollectionOwnership, type CollectionPageProps, type CollectionPageSlots, type CollectionMarketActions } from \"./components/collection-page.js\";\nexport { CollectionFiltersDialog, type CollectionFiltersDialogProps } from \"./components/collection-filters-dialog.js\";\nexport { GatedContentHero, GatedContentPanel, type GatedContent, type GatedContentState } from \"./components/gated-content.js\";\nexport { MakeOfferPicker } from \"./components/make-offer-picker.js\";\nexport { ListingCardMenu } from \"./components/listing-card-menu.js\";\nexport { FloatingCommentsButton } from \"./components/floating-comments-button.js\";\nexport { PageBackdrop } from \"./components/media-header.js\";\nexport { useComments, type UseCommentsResult } from \"./utils/use-comments.js\";\nexport { useFullTokenData } from \"./utils/use-full-token-data.js\";\nexport { useAssetMarketState, type AssetMarketState } from \"./utils/asset-market-state.js\";\nexport { assetAttributes, type AssetAttribute } from \"./utils/asset-attributes.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { fireConfetti } from \"./utils/media-wallet/confetti.js\";\nexport { useConfetti } from \"./utils/use-confetti.js\";\nexport { useOnOpen } from \"./utils/use-on-open.js\";\nexport { useCoinGuarantees } from \"./utils/use-coin-guarantees.js\";\nexport { useCoinSupply } from \"./utils/use-coin-supply.js\";\nexport { BRAND, BRAND_COLOR, BRAND_GRADIENT, ACTION_GRADIENTS, ACTION_FOREGROUNDS } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, createImageResolver, type DisplayUrlOptions, type ImageResolver } from \"./utils/ipfs.js\";\nexport { useImageUrl } from \"./utils/use-image-url.js\";\nexport { isSameAddress } from \"./utils/same-address.js\";\nexport { createAppWallet } from \"./utils/app-wallet.js\";\nexport type { AppWalletConfig } from \"./utils/app-wallet.js\";\nexport { detectPasskeySupport } from \"./utils/passkey-support.js\";\nexport type { PasskeySupport } from \"./utils/passkey-support.js\";\nexport { describeWalletFailure, isPasskeyCancelled, passkeyUnsupportedReason } from \"./utils/wallet-failure.js\";\nexport type { PasskeyUnsupportedReason, WalletFailureKind, WalletFailureNotice } from \"./utils/wallet-failure.js\";\nexport {\n RESEND_COOLDOWN_SECONDS,\n canResendCode,\n canVerifyCode,\n emailCodeReducer,\n initialEmailCodeState,\n} from \"./utils/email-code.js\";\nexport type { EmailCodeAction, EmailCodeState, EmailCodeStatus } from \"./utils/email-code.js\";\nexport { useEmailCode } from \"./utils/use-email-code.js\";\nexport type { EmailCode, EmailCodeApi } from \"./utils/use-email-code.js\";\nexport { AccountSection } from \"./components/account/account-section.js\";\nexport type { AccountSectionProps } from \"./components/account/account-section.js\";\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from \"./components/account/input-otp.js\";\nexport { EmailCodeEntry } from \"./components/account/email-code-entry.js\";\nexport type { EmailCodeEntryProps } from \"./components/account/email-code-entry.js\";\nexport { DevicesSection } from \"./components/account/devices-section.js\";\nexport type { DevicesSectionProps } from \"./components/account/devices-section.js\";\nexport { DeviceApprovalDialog } from \"./components/account/device-approval-dialog.js\";\nexport type { DeviceApprovalDialogProps } from \"./components/account/device-approval-dialog.js\";\nexport { GuardianRecoverySection } from \"./components/account/guardian-recovery-section.js\";\nexport type { GuardianRecoverySectionProps } from \"./components/account/guardian-recovery-section.js\";\nexport { AddGuardianDialog } from \"./components/account/add-guardian-dialog.js\";\nexport type { AddGuardianDialogProps } from \"./components/account/add-guardian-dialog.js\";\nexport type { DeviceWallet, GuardianWallet, LoadSealedOwner } from \"./components/account/wallet-types.js\";\nexport { ACTIVITY_TYPE_CONFIG, TYPE_FILTERS } from \"./data/activity.js\";\nexport type { ActivityTypeConfig } from \"./data/activity.js\";\nexport { CollectionShowcase } from \"./components/collection-showcase.js\";\nexport type { CollectionShowcaseProps } from \"./components/collection-showcase.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport { ListingsGrid, type ListingsGridProps } from \"./components/listings-grid.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n OrderSummaryHero,\n CurrencyPicker,\n DurationPicker,\n ListingAssetSummary,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { useSession, refreshSession, sessionEmail, fetchSession } from \"./utils/use-session.js\";\nexport { OrderFields } from \"./components/order-fields.js\";\nexport type { OrderFieldsProps } from \"./components/order-fields.js\";\nexport { LISTABLE_CURRENCIES, orderFormSchema, counterOfferFormSchema } from \"./utils/order-form.js\";\nexport type { OrderFormValues } from \"./utils/order-form.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef, type ReportTarget } from \"./components/medialane-app.js\";\nexport { ReportDialog } from \"./components/report-dialog.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor, usdValueFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { COLLECTION_NAME_CLAIM, LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, getLaunchpadService } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, matchCommands } from \"./components/nav-command-menu.js\";\nexport { SearchPage } from \"./components/search-page.js\";\nexport { PortfolioOrders, type PortfolioOrdersView, type PortfolioOrderActions, type UsePortfolioOrderActions } from \"./components/portfolio-orders.js\";\nexport { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.js\";\nexport { SoulboundCard, issuedAt } from \"./components/soulbound-card.js\";\nexport type { SoulboundCardProps } from \"./components/soulbound-card.js\";\nexport { RewardsPage } from \"./components/rewards-page.js\";\nexport { JourneyContent } from \"./components/journey-content.js\";\nexport { PortfolioSnapshot, RewardsSnapshot } from \"./components/settings-snapshots.js\";\nexport { RouteError } from \"./components/route-error.js\";\nexport { CreateSponsorshipAside } from \"./components/create-sponsorship-aside.js\";\nexport { AccountLoading, ActivitiesLoading, CollectionLoading, CollectionsLoading, CreatorLoading, IpTypeLoading, MarketplaceLoading, PortfolioLoading } from \"./components/page-skeletons.js\";\nexport { RewardsDashboard, REWARD_ACTION_LABELS } from \"./components/rewards/rewards-dashboard.js\";\nexport { LeaderboardPanel, type LeaderboardPanelProps } from \"./components/rewards/leaderboard-panel.js\";\nexport { CollectionNameClaim } from \"./components/collection-name-claim.js\";\nexport { CollectionSettings } from \"./components/collection-settings.js\";\nexport { MintLanding, type MintLandingCopy } from \"./components/mint-landing.js\";\nexport { ApproveMintDialog, type ApproveMintDialogProps } from \"./components/approve-mint-dialog.js\";\nexport { DiscoverPage, type DiscoverPageProps } from \"./components/discover-page.js\";\nexport { DiscoverCommunitySection } from \"./components/discover-community-section.js\";\nexport { IpTypeNav } from \"./components/ip-type-nav.js\";\nexport { HomePage, FeaturedListings, type HomePageProps } from \"./components/home-page.js\";\nexport { AccountsPage } from \"./components/accounts-page.js\";\nexport { BackButton } from \"./components/back-button.js\";\nexport { SignInPrompt } from \"./components/sign-in-prompt.js\";\nexport { LaunchpadPage, type LaunchpadPageProps } from \"./components/launchpad-page.js\";\nexport { RemixBrowsePage } from \"./components/remix-browse-page.js\";\nexport { ServiceCollectionsPage } from \"./components/service-collections-page.js\";\nexport { EditionsPage } from \"./components/editions-page.js\";\nexport { DropsPage } from \"./components/drops-page.js\";\nexport { PopMyEventsPage } from \"./components/pop-my-events-page.js\";\nexport { CreatorPage, type CreatorPageProps } from \"./components/creator-page.js\";\nexport { AccountPage, type AccountPageProps } from \"./components/account-page.js\";\nexport { CancelOrderConfirm, type CancelOrderConfirmProps } from \"./components/cancel-order-confirm.js\";\nexport { UnderlineTabs, type UnderlineTab } from \"./components/underline-tabs.js\";\nexport { MoreMenu } from \"./components/more-menu.js\";\nexport { LicenseRequestPage } from \"./components/license-request-page.js\";\nexport { orderUsd } from \"./utils/order-usd.js\";\nexport { getSeenOffers, markOffersAsSeen } from \"./utils/seen-offers.js\";\nexport { NAV_ITEMS, navGroups, type NavItemId, type NavGroupSpec } from \"./data/nav-commands.js\";\nexport { ResultThumbnail } from \"./components/result-thumbnail.js\";\nexport type { NavCommand, NavCommandGroup, NavCommandMenuProps } from \"./components/nav-command-menu.js\";\n\nexport {\n NavBrandButton,\n NavIconButton,\n NavWalletTrigger,\n NavAccountSheet,\n useNavAccountSheet,\n} from \"./components/nav-shell.js\";\nexport type {\n NavBrandButtonProps,\n NavIconButtonProps,\n NavWalletTriggerProps,\n NavAccountSheetProps,\n} from \"./components/nav-shell.js\";\n\nexport { PortfolioHeader } from \"./components/portfolio-header.js\";\nexport type {\n PortfolioHeaderProps,\n PortfolioHeaderScore,\n} from \"./components/portfolio-header.js\";\nexport { derivePortfolioCounts } from \"./utils/portfolio-counts.js\";\nexport type { PortfolioCounts, CountableOrder } from \"./utils/portfolio-counts.js\";\nexport { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { useTransaction, isBusyPhase } from \"./utils/use-transaction.js\";\nexport type { TransactionPhase } from \"./utils/use-transaction.js\";\nexport { RewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { CollectionCreateForm } from \"./components/launchpad/collection-create-form.js\";\nexport type { CollectionCreateFormProps } from \"./components/launchpad/collection-create-form.js\";\nexport { CLUB_PRESET, TICKETS_PRESET, EDITIONS_PRESET, SINGLE_PRESET } from \"./components/launchpad/collection-create-presets.js\";\nexport type { CollectionCreatePreset } from \"./components/launchpad/collection-create-presets.js\";\nexport { TierMintForm } from \"./components/launchpad/tier-mint-form.js\";\nexport type { TierMintFormProps } from \"./components/launchpad/tier-mint-form.js\";\nexport { CLUB_TIER_PRESET, TICKETS_TIER_PRESET } from \"./components/launchpad/tier-mint-presets.js\";\nexport type { TierMintPreset } from \"./components/launchpad/tier-mint-presets.js\";\nexport { SingleEditionMint } from \"./components/launchpad/single-edition-mint.js\";\nexport { CollectionPicker } from \"./components/launchpad/collection-picker.js\";\nexport type { CollectionPickerProps } from \"./components/launchpad/collection-picker.js\";\nexport { EditionMint } from \"./components/launchpad/edition-mint.js\";\nexport { RemixMint } from \"./components/launchpad/remix-mint.js\";\nexport { IpTypePage } from \"./components/ip-type-page.js\";\nexport type { IpTypePageProps } from \"./components/ip-type-page.js\";\nexport { CollectionsPage } from \"./components/collections-page.js\";\nexport { SponsorshipCreate } from \"./components/launchpad/sponsorship-create.js\";\nexport { PopCreate } from \"./components/launchpad/pop-create.js\";\nexport { PopClaimButton } from \"./components/pop-claim-button.js\";\nexport { PopBurnButton } from \"./components/pop-burn-button.js\";\nexport { PopManagePage } from \"./components/pop-manage-page.js\";\nexport { CommentsSection } from \"./components/comments-section.js\";\nexport type { CommentsSectionProps } from \"./components/comments-section.js\";\nexport type { PopBurnButtonProps } from \"./components/pop-burn-button.js\";\nexport { SponsorshipOffersPage } from \"./components/sponsorship-offers-page.js\";\nexport { SponsorshipOfferPage } from \"./components/sponsorship-offer-page.js\";\nexport { PortfolioSponsorships } from \"./components/portfolio-sponsorships.js\";\nexport { TransferCollectionOwnership } from \"./components/transfer-collection-ownership.js\";\nexport type { TransferCollectionOwnershipProps } from \"./components/transfer-collection-ownership.js\";\nexport { CoinCreate } from \"./components/launchpad/coin-create.js\";\nexport type { CoinCreateProps } from \"./components/launchpad/coin-create.js\";\nexport { WalletRequired } from \"./components/wallet-required.js\";\nexport type { WalletRequiredProps } from \"./components/wallet-required.js\";\nexport { ClaimRouteShell } from \"./components/claim-route-shell.js\";\nexport { useLaunchpadImageUpload } from \"./utils/use-launchpad-image-upload.js\";\nexport { invalidatePortfolioCache } from \"./utils/portfolio-cache.js\";\nexport { TransactionDialog } from \"./components/transaction-dialog.js\";\nexport type { TransactionDialogProps } from \"./components/transaction-dialog.js\";\nexport { TransactionSuccess, DialogTransactionSuccess } from \"./components/transaction-success.js\";\nexport { TransactionDialogStates } from \"./components/transaction-dialog-states.js\";\nexport { TransferDialog } from \"./components/transfer-dialog.js\";\nexport { MarketplaceSearch, SearchInput } from \"./components/marketplace-search.js\";\nexport { ActiveFilters, FiltersButton, FiltersDialog, useMarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport type { MarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport { useDebouncedValue } from \"./utils/use-debounced-value.js\";\nexport type { TransferDialogProps } from \"./components/transfer-dialog.js\";\nexport type { TransactionDialogStatesProps } from \"./components/transaction-dialog-states.js\";\nexport type { TransactionSuccessProps, TransactionSuccessAction } from \"./components/transaction-success.js\";\nexport { successMessages } from \"./utils/success-messages.js\";\nexport { emptyMessages } from \"./utils/empty-messages.js\";\nexport type { EmptyMessage } from \"./utils/empty-messages.js\";\nexport type { SuccessMessage } from \"./utils/success-messages.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from \"./components/new-collection-menu.js\";\nexport { ExternalLinkField } from \"./components/external-link-field.js\";\nexport { PortfolioCollections } from \"./components/portfolio-collections.js\";\nexport { TabEmptyState } from \"./components/tab-empty-state.js\";\nexport type { TabEmptyStateProps } from \"./components/tab-empty-state.js\";\nexport {\n Select, SelectGroup, SelectValue, SelectTrigger, SelectContent,\n SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton,\n} from \"./components/select.js\";\nexport {\n useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,\n} from \"./components/form.js\";\nexport { Textarea } from \"./components/textarea.js\";\nexport type { TextareaProps } from \"./components/textarea.js\";\nexport {\n Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent,\n SheetHeader, SheetFooter, SheetTitle, SheetDescription,\n} from \"./components/sheet.js\";\n\nexport { ToggleGroup, Section } from \"./components/create-form-primitives.js\";\nexport { OrderSortControl, sortOrders } from \"./components/order-sort-control.js\";\nexport type { OrderSort } from \"./components/order-sort-control.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport { formatActivity } from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile, useCreatorByUsername } from \"./utils/use-profiles.js\";\nexport { useActivities, useActivitiesByAddress } from \"./utils/use-activities.js\";\nexport {\n useCollections, useCollection, useCollectionsByOwner, useCollectionTokens, useNearbyCollectionTokens,\n} from \"./utils/use-collections.js\";\nexport type { CollectionSort } from \"./utils/use-collections.js\";\nexport { CreatorChip } from \"./components/creator-chip.js\";\nexport type { CreatorChipProps } from \"./components/creator-chip.js\";\nexport { CollectionProvenanceTab } from \"./components/collection-provenance-tab.js\";\nexport type { CollectionProvenanceTabProps } from \"./components/collection-provenance-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useAccounts } from \"./utils/use-accounts.js\";\nexport { useSearch, SEARCH_MIN_LENGTH, type UseSearchOptions } from \"./utils/use-search.js\";\nexport {\n useRewards, useLeaderboard, useRewardsEvents, useRewardsConfig, useRewardsBatch,\n} from \"./utils/use-rewards.js\";\nexport type { UserRewards, LeaderboardEntry, BadgeSummary, LevelSummary } from \"./utils/use-rewards.js\";\n\nexport {\n useOrders, useOrder, useTokenListings, useUserOrders, useCounterOffers,\n useReceivedOffers, useCollectionFloorListings,\n} from \"./utils/use-orders.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { useRemixOffers } from \"./utils/use-my-remix-offers.js\";\nexport { useSwapQuote, swapQuoteKey } from \"./utils/use-swap-quote.js\";\nexport type { SwapToken, SwapAmountMode, SwapQuoteSummary } from \"./utils/use-swap-quote.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useOwnedTokens } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE,SAAS,oBAAoB,kCAAkC;AAC/D,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EAAqB;AAAA,OAChB;AAEP;AAAA,EAC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B;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
@@ -23,6 +23,7 @@ __export(draft_exports, {
23
23
  validateDropDraft: () => validateDropDraft
24
24
  });
25
25
  module.exports = __toCommonJS(draft_exports);
26
+ var import_launchpad_rules = require("../launchpad-rules.js");
26
27
  var import_allowlist = require("./allowlist.js");
27
28
  var import_metadata = require("./metadata.js");
28
29
  var import_sale = require("./sale.js");
@@ -58,14 +59,14 @@ function validateDropDraft(d, now) {
58
59
  const e = { ...(0, import_sale.validateSale)(d.sale, now) };
59
60
  if (d.kind === "edition") {
60
61
  if (!d.edition) e.artwork = "Add the artwork";
61
- if (!/^[1-9]\d*$/.test(d.supply) || Number(d.supply) > import_metadata.MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;
62
+ if (!(0, import_launchpad_rules.isPositiveInteger)(d.supply) || Number(d.supply) > import_metadata.MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;
62
63
  } else if (d.items.length === 0) {
63
64
  e.artwork = "Add at least one item";
64
65
  } else if (d.items.length > import_metadata.MAX_DROP_SUPPLY) {
65
66
  e.artwork = `A collection holds up to ${thousands} items`;
66
67
  }
67
68
  if (!d.name.trim()) e.name = "Name your drop";
68
- if (!/^[A-Z0-9]{1,10}$/.test(d.symbol)) e.symbol = "Use 1\u201310 capital letters or digits";
69
+ if (!(0, import_launchpad_rules.isSymbol)(d.symbol)) e.symbol = "Use 1\u201310 capital letters or digits";
69
70
  if (d.listOnly) {
70
71
  const list = (0, import_allowlist.parseAllowlist)(d.allowlist);
71
72
  if (list.invalid.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import type { DraftItem } from \"../../components/drop-item-list.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropKind, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\n\nexport interface DropDraft {\n kind: DropKind;\n edition: File | null;\n supply: string;\n items: DraftItem[];\n cover: File | null;\n name: string;\n symbol: string;\n description: string;\n license: DropLicense;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n kind: \"edition\",\n edition: null,\n supply: \"100\",\n items: [],\n cover: null,\n name: \"\",\n symbol: \"\",\n description: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport type DropDraftErrors = SaleErrors & Partial<Record<\"artwork\" | \"supply\" | \"name\" | \"symbol\" | \"allowlist\" | \"gated\", string>>;\n\nexport function draftSupply(d: DropDraft): number {\n return d.kind === \"edition\" ? Number(d.supply) : d.items.length;\n}\n\nconst thousands = MAX_DROP_SUPPLY.toLocaleString(\"en-US\");\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const e: DropDraftErrors = { ...validateSale(d.sale, now) };\n if (d.kind === \"edition\") {\n if (!d.edition) e.artwork = \"Add the artwork\";\n if (!/^[1-9]\\d*$/.test(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;\n } else if (d.items.length === 0) {\n e.artwork = \"Add at least one item\";\n } else if (d.items.length > MAX_DROP_SUPPLY) {\n e.artwork = `A collection holds up to ${thousands} items`;\n }\n if (!d.name.trim()) e.name = \"Name your drop\";\n if (!/^[A-Z0-9]{1,10}$/.test(d.symbol)) e.symbol = \"Use 1–10 capital letters or digits\";\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) {\n const n = list.invalid.length;\n e.allowlist = `${n} line${n === 1 ? \" isn't a wallet address\" : \"s aren't wallet addresses\"}: ${list.invalid.slice(0, 3).join(\", \")}`;\n } else if (list.addresses.length === 0) {\n e.allowlist = \"Add at least one wallet address\";\n }\n }\n if (d.gated.enabled && !/^https:\\/\\//.test(d.gated.url)) e.gated = \"Add a link starting with https://\";\n return e;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,uBAA+B;AAC/B,sBAAiE;AACjE,kBAA0E;AAkBnE,MAAM,cAAyB;AAAA,EACpC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO,CAAC;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,IACP,QAAQ;AAAA,IAAO,aAAa;AAAA,IAAY,eAAe;AAAA,IAAO,aAAa;AAAA,IAC3E,aAAa;AAAA,IAAY,iBAAiB;AAAA,IAAa,UAAU;AAAA,IAAW,SAAS;AAAA,EACvF;AAAA,EACA,MAAM;AAAA,EACN,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO,EAAE,SAAS,OAAO,OAAO,IAAI,KAAK,IAAI,MAAM,GAAG;AACxD;AAIO,SAAS,YAAY,GAAsB;AAChD,SAAO,EAAE,SAAS,YAAY,OAAO,EAAE,MAAM,IAAI,EAAE,MAAM;AAC3D;AAEA,MAAM,YAAY,gCAAgB,eAAe,OAAO;AAEjD,SAAS,kBAAkB,GAAc,KAA8B;AAC5E,QAAM,IAAqB,EAAE,OAAG,0BAAa,EAAE,MAAM,GAAG,EAAE;AAC1D,MAAI,EAAE,SAAS,WAAW;AACxB,QAAI,CAAC,EAAE,QAAS,GAAE,UAAU;AAC5B,QAAI,CAAC,aAAa,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,MAAM,IAAI,gCAAiB,GAAE,SAAS,4BAA4B,SAAS;AAAA,EAC1H,WAAW,EAAE,MAAM,WAAW,GAAG;AAC/B,MAAE,UAAU;AAAA,EACd,WAAW,EAAE,MAAM,SAAS,iCAAiB;AAC3C,MAAE,UAAU,4BAA4B,SAAS;AAAA,EACnD;AACA,MAAI,CAAC,EAAE,KAAK,KAAK,EAAG,GAAE,OAAO;AAC7B,MAAI,CAAC,mBAAmB,KAAK,EAAE,MAAM,EAAG,GAAE,SAAS;AACnD,MAAI,EAAE,UAAU;AACd,UAAM,WAAO,iCAAe,EAAE,SAAS;AACvC,QAAI,KAAK,QAAQ,SAAS,GAAG;AAC3B,YAAM,IAAI,KAAK,QAAQ;AACvB,QAAE,YAAY,GAAG,CAAC,QAAQ,MAAM,IAAI,4BAA4B,2BAA2B,KAAK,KAAK,QAAQ,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;AAAA,IACrI,WAAW,KAAK,UAAU,WAAW,GAAG;AACtC,QAAE,YAAY;AAAA,IAChB;AAAA,EACF;AACA,MAAI,EAAE,MAAM,WAAW,CAAC,cAAc,KAAK,EAAE,MAAM,GAAG,EAAG,GAAE,QAAQ;AACnE,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import type { DraftItem } from \"../../components/drop-item-list.js\";\nimport { isPositiveInteger, isSymbol } from \"../launchpad-rules.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropKind, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\n\nexport interface DropDraft {\n kind: DropKind;\n edition: File | null;\n supply: string;\n items: DraftItem[];\n cover: File | null;\n name: string;\n symbol: string;\n description: string;\n license: DropLicense;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n kind: \"edition\",\n edition: null,\n supply: \"100\",\n items: [],\n cover: null,\n name: \"\",\n symbol: \"\",\n description: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport type DropDraftErrors = SaleErrors & Partial<Record<\"artwork\" | \"supply\" | \"name\" | \"symbol\" | \"allowlist\" | \"gated\", string>>;\n\nexport function draftSupply(d: DropDraft): number {\n return d.kind === \"edition\" ? Number(d.supply) : d.items.length;\n}\n\nconst thousands = MAX_DROP_SUPPLY.toLocaleString(\"en-US\");\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const e: DropDraftErrors = { ...validateSale(d.sale, now) };\n if (d.kind === \"edition\") {\n if (!d.edition) e.artwork = \"Add the artwork\";\n if (!isPositiveInteger(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;\n } else if (d.items.length === 0) {\n e.artwork = \"Add at least one item\";\n } else if (d.items.length > MAX_DROP_SUPPLY) {\n e.artwork = `A collection holds up to ${thousands} items`;\n }\n if (!d.name.trim()) e.name = \"Name your drop\";\n if (!isSymbol(d.symbol)) e.symbol = \"Use 1–10 capital letters or digits\";\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) {\n const n = list.invalid.length;\n e.allowlist = `${n} line${n === 1 ? \" isn't a wallet address\" : \"s aren't wallet addresses\"}: ${list.invalid.slice(0, 3).join(\", \")}`;\n } else if (list.addresses.length === 0) {\n e.allowlist = \"Add at least one wallet address\";\n }\n }\n if (d.gated.enabled && !/^https:\\/\\//.test(d.gated.url)) e.gated = \"Add a link starting with https://\";\n return e;\n}\n"],"mappings":";;;;;;;;;;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MAAM,EAAG,GAAE,SAAS;AACpC,MAAI,EAAE,UAAU;AACd,UAAM,WAAO,iCAAe,EAAE,SAAS;AACvC,QAAI,KAAK,QAAQ,SAAS,GAAG;AAC3B,YAAM,IAAI,KAAK,QAAQ;AACvB,QAAE,YAAY,GAAG,CAAC,QAAQ,MAAM,IAAI,4BAA4B,2BAA2B,KAAK,KAAK,QAAQ,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;AAAA,IACrI,WAAW,KAAK,UAAU,WAAW,GAAG;AACtC,QAAE,YAAY;AAAA,IAChB;AAAA,EACF;AACA,MAAI,EAAE,MAAM,WAAW,CAAC,cAAc,KAAK,EAAE,MAAM,GAAG,EAAG,GAAE,QAAQ;AACnE,SAAO;AACT;","names":[]}
@@ -1,3 +1,4 @@
1
+ import { isPositiveInteger, isSymbol } from "../launchpad-rules.js";
1
2
  import { parseAllowlist } from "./allowlist.js";
2
3
  import { MAX_DROP_SUPPLY } from "./metadata.js";
3
4
  import { EMPTY_SALE, validateSale } from "./sale.js";
@@ -33,14 +34,14 @@ function validateDropDraft(d, now) {
33
34
  const e = { ...validateSale(d.sale, now) };
34
35
  if (d.kind === "edition") {
35
36
  if (!d.edition) e.artwork = "Add the artwork";
36
- if (!/^[1-9]\d*$/.test(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;
37
+ if (!isPositiveInteger(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;
37
38
  } else if (d.items.length === 0) {
38
39
  e.artwork = "Add at least one item";
39
40
  } else if (d.items.length > MAX_DROP_SUPPLY) {
40
41
  e.artwork = `A collection holds up to ${thousands} items`;
41
42
  }
42
43
  if (!d.name.trim()) e.name = "Name your drop";
43
- if (!/^[A-Z0-9]{1,10}$/.test(d.symbol)) e.symbol = "Use 1\u201310 capital letters or digits";
44
+ if (!isSymbol(d.symbol)) e.symbol = "Use 1\u201310 capital letters or digits";
44
45
  if (d.listOnly) {
45
46
  const list = parseAllowlist(d.allowlist);
46
47
  if (list.invalid.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import type { DraftItem } from \"../../components/drop-item-list.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropKind, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\n\nexport interface DropDraft {\n kind: DropKind;\n edition: File | null;\n supply: string;\n items: DraftItem[];\n cover: File | null;\n name: string;\n symbol: string;\n description: string;\n license: DropLicense;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n kind: \"edition\",\n edition: null,\n supply: \"100\",\n items: [],\n cover: null,\n name: \"\",\n symbol: \"\",\n description: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport type DropDraftErrors = SaleErrors & Partial<Record<\"artwork\" | \"supply\" | \"name\" | \"symbol\" | \"allowlist\" | \"gated\", string>>;\n\nexport function draftSupply(d: DropDraft): number {\n return d.kind === \"edition\" ? Number(d.supply) : d.items.length;\n}\n\nconst thousands = MAX_DROP_SUPPLY.toLocaleString(\"en-US\");\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const e: DropDraftErrors = { ...validateSale(d.sale, now) };\n if (d.kind === \"edition\") {\n if (!d.edition) e.artwork = \"Add the artwork\";\n if (!/^[1-9]\\d*$/.test(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;\n } else if (d.items.length === 0) {\n e.artwork = \"Add at least one item\";\n } else if (d.items.length > MAX_DROP_SUPPLY) {\n e.artwork = `A collection holds up to ${thousands} items`;\n }\n if (!d.name.trim()) e.name = \"Name your drop\";\n if (!/^[A-Z0-9]{1,10}$/.test(d.symbol)) e.symbol = \"Use 1–10 capital letters or digits\";\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) {\n const n = list.invalid.length;\n e.allowlist = `${n} line${n === 1 ? \" isn't a wallet address\" : \"s aren't wallet addresses\"}: ${list.invalid.slice(0, 3).join(\", \")}`;\n } else if (list.addresses.length === 0) {\n e.allowlist = \"Add at least one wallet address\";\n }\n }\n if (d.gated.enabled && !/^https:\\/\\//.test(d.gated.url)) e.gated = \"Add a link starting with https://\";\n return e;\n}\n"],"mappings":"AACA,SAAS,sBAAsB;AAC/B,SAAS,uBAAwD;AACjE,SAAS,YAAY,oBAAqD;AAkBnE,MAAM,cAAyB;AAAA,EACpC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO,CAAC;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,IACP,QAAQ;AAAA,IAAO,aAAa;AAAA,IAAY,eAAe;AAAA,IAAO,aAAa;AAAA,IAC3E,aAAa;AAAA,IAAY,iBAAiB;AAAA,IAAa,UAAU;AAAA,IAAW,SAAS;AAAA,EACvF;AAAA,EACA,MAAM;AAAA,EACN,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO,EAAE,SAAS,OAAO,OAAO,IAAI,KAAK,IAAI,MAAM,GAAG;AACxD;AAIO,SAAS,YAAY,GAAsB;AAChD,SAAO,EAAE,SAAS,YAAY,OAAO,EAAE,MAAM,IAAI,EAAE,MAAM;AAC3D;AAEA,MAAM,YAAY,gBAAgB,eAAe,OAAO;AAEjD,SAAS,kBAAkB,GAAc,KAA8B;AAC5E,QAAM,IAAqB,EAAE,GAAG,aAAa,EAAE,MAAM,GAAG,EAAE;AAC1D,MAAI,EAAE,SAAS,WAAW;AACxB,QAAI,CAAC,EAAE,QAAS,GAAE,UAAU;AAC5B,QAAI,CAAC,aAAa,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,MAAM,IAAI,gBAAiB,GAAE,SAAS,4BAA4B,SAAS;AAAA,EAC1H,WAAW,EAAE,MAAM,WAAW,GAAG;AAC/B,MAAE,UAAU;AAAA,EACd,WAAW,EAAE,MAAM,SAAS,iBAAiB;AAC3C,MAAE,UAAU,4BAA4B,SAAS;AAAA,EACnD;AACA,MAAI,CAAC,EAAE,KAAK,KAAK,EAAG,GAAE,OAAO;AAC7B,MAAI,CAAC,mBAAmB,KAAK,EAAE,MAAM,EAAG,GAAE,SAAS;AACnD,MAAI,EAAE,UAAU;AACd,UAAM,OAAO,eAAe,EAAE,SAAS;AACvC,QAAI,KAAK,QAAQ,SAAS,GAAG;AAC3B,YAAM,IAAI,KAAK,QAAQ;AACvB,QAAE,YAAY,GAAG,CAAC,QAAQ,MAAM,IAAI,4BAA4B,2BAA2B,KAAK,KAAK,QAAQ,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;AAAA,IACrI,WAAW,KAAK,UAAU,WAAW,GAAG;AACtC,QAAE,YAAY;AAAA,IAChB;AAAA,EACF;AACA,MAAI,EAAE,MAAM,WAAW,CAAC,cAAc,KAAK,EAAE,MAAM,GAAG,EAAG,GAAE,QAAQ;AACnE,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import type { DraftItem } from \"../../components/drop-item-list.js\";\nimport { isPositiveInteger, isSymbol } from \"../launchpad-rules.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropKind, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\n\nexport interface DropDraft {\n kind: DropKind;\n edition: File | null;\n supply: string;\n items: DraftItem[];\n cover: File | null;\n name: string;\n symbol: string;\n description: string;\n license: DropLicense;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n kind: \"edition\",\n edition: null,\n supply: \"100\",\n items: [],\n cover: null,\n name: \"\",\n symbol: \"\",\n description: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport type DropDraftErrors = SaleErrors & Partial<Record<\"artwork\" | \"supply\" | \"name\" | \"symbol\" | \"allowlist\" | \"gated\", string>>;\n\nexport function draftSupply(d: DropDraft): number {\n return d.kind === \"edition\" ? Number(d.supply) : d.items.length;\n}\n\nconst thousands = MAX_DROP_SUPPLY.toLocaleString(\"en-US\");\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const e: DropDraftErrors = { ...validateSale(d.sale, now) };\n if (d.kind === \"edition\") {\n if (!d.edition) e.artwork = \"Add the artwork\";\n if (!isPositiveInteger(d.supply) || Number(d.supply) > MAX_DROP_SUPPLY) e.supply = `Enter a supply from 1 to ${thousands}`;\n } else if (d.items.length === 0) {\n e.artwork = \"Add at least one item\";\n } else if (d.items.length > MAX_DROP_SUPPLY) {\n e.artwork = `A collection holds up to ${thousands} items`;\n }\n if (!d.name.trim()) e.name = \"Name your drop\";\n if (!isSymbol(d.symbol)) e.symbol = \"Use 1–10 capital letters or digits\";\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) {\n const n = list.invalid.length;\n e.allowlist = `${n} line${n === 1 ? \" isn't a wallet address\" : \"s aren't wallet addresses\"}: ${list.invalid.slice(0, 3).join(\", \")}`;\n } else if (list.addresses.length === 0) {\n e.allowlist = \"Add at least one wallet address\";\n }\n }\n if (d.gated.enabled && !/^https:\\/\\//.test(d.gated.url)) e.gated = \"Add a link starting with https://\";\n return e;\n}\n"],"mappings":"AACA,SAAS,mBAAmB,gBAAgB;AAC5C,SAAS,sBAAsB;AAC/B,SAAS,uBAAwD;AACjE,SAAS,YAAY,oBAAqD;AAkBnE,MAAM,cAAyB;AAAA,EACpC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO,CAAC;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,IACP,QAAQ;AAAA,IAAO,aAAa;AAAA,IAAY,eAAe;AAAA,IAAO,aAAa;AAAA,IAC3E,aAAa;AAAA,IAAY,iBAAiB;AAAA,IAAa,UAAU;AAAA,IAAW,SAAS;AAAA,EACvF;AAAA,EACA,MAAM;AAAA,EACN,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO,EAAE,SAAS,OAAO,OAAO,IAAI,KAAK,IAAI,MAAM,GAAG;AACxD;AAIO,SAAS,YAAY,GAAsB;AAChD,SAAO,EAAE,SAAS,YAAY,OAAO,EAAE,MAAM,IAAI,EAAE,MAAM;AAC3D;AAEA,MAAM,YAAY,gBAAgB,eAAe,OAAO;AAEjD,SAAS,kBAAkB,GAAc,KAA8B;AAC5E,QAAM,IAAqB,EAAE,GAAG,aAAa,EAAE,MAAM,GAAG,EAAE;AAC1D,MAAI,EAAE,SAAS,WAAW;AACxB,QAAI,CAAC,EAAE,QAAS,GAAE,UAAU;AAC5B,QAAI,CAAC,kBAAkB,EAAE,MAAM,KAAK,OAAO,EAAE,MAAM,IAAI,gBAAiB,GAAE,SAAS,4BAA4B,SAAS;AAAA,EAC1H,WAAW,EAAE,MAAM,WAAW,GAAG;AAC/B,MAAE,UAAU;AAAA,EACd,WAAW,EAAE,MAAM,SAAS,iBAAiB;AAC3C,MAAE,UAAU,4BAA4B,SAAS;AAAA,EACnD;AACA,MAAI,CAAC,EAAE,KAAK,KAAK,EAAG,GAAE,OAAO;AAC7B,MAAI,CAAC,SAAS,EAAE,MAAM,EAAG,GAAE,SAAS;AACpC,MAAI,EAAE,UAAU;AACd,UAAM,OAAO,eAAe,EAAE,SAAS;AACvC,QAAI,KAAK,QAAQ,SAAS,GAAG;AAC3B,YAAM,IAAI,KAAK,QAAQ;AACvB,QAAE,YAAY,GAAG,CAAC,QAAQ,MAAM,IAAI,4BAA4B,2BAA2B,KAAK,KAAK,QAAQ,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;AAAA,IACrI,WAAW,KAAK,UAAU,WAAW,GAAG;AACtC,QAAE,YAAY;AAAA,IAChB;AAAA,EACF;AACA,MAAI,EAAE,MAAM,WAAW,CAAC,cAAc,KAAK,EAAE,MAAM,GAAG,EAAG,GAAE,QAAQ;AACnE,SAAO;AACT;","names":[]}
@@ -29,6 +29,7 @@ __export(sale_exports, {
29
29
  module.exports = __toCommonJS(sale_exports);
30
30
  var import_sdk = require("@medialane/sdk");
31
31
  var import_starknet = require("@medialane/sdk/starknet");
32
+ var import_launchpad_rules = require("../launchpad-rules.js");
32
33
  const EMPTY_SALE = {
33
34
  paid: false,
34
35
  price: "",
@@ -64,7 +65,7 @@ function validateSale(d, now) {
64
65
  const end = toSeconds(d.end);
65
66
  if (end === null || start !== null && end <= start) errors.end = "The sale must end after it starts";
66
67
  }
67
- if (d.limitPerWallet && !/^[1-9]\d*$/.test(d.perWallet)) errors.perWallet = "Enter 1 or more";
68
+ if (d.limitPerWallet && !(0, import_launchpad_rules.isPositiveInteger)(d.perWallet)) errors.perWallet = "Enter 1 or more";
68
69
  return errors;
69
70
  }
70
71
  function toDropTerms(d) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/sale.ts"],"sourcesContent":["import { formatAmount, getListableTokens, getTokenByAddress, parseAmount, type DropTermsBody } from \"@medialane/sdk\";\nimport { dropMintCost } from \"@medialane/sdk/starknet\";\n\nexport interface SaleDraft {\n paid: boolean;\n /** In the token's normal units, e.g. \"5.5\". */\n price: string;\n tokenSymbol: string;\n startNow: boolean;\n /** `datetime-local` value in the creator's time zone. */\n start: string;\n hasEnd: boolean;\n end: string;\n limitPerWallet: boolean;\n perWallet: string;\n}\n\nexport const EMPTY_SALE: SaleDraft = {\n paid: false, price: \"\", tokenSymbol: \"USDC\",\n startNow: true, start: \"\", hasEnd: false, end: \"\",\n limitPerWallet: false, perWallet: \"\",\n};\n\nexport type SaleErrors = Partial<Record<\"price\" | \"start\" | \"end\" | \"perWallet\", string>>;\n\nexport function saleToken(symbol: string) {\n return getListableTokens().find((t) => t.symbol === symbol) ?? null;\n}\n\nconst toSeconds = (local: string): number | null => {\n if (!local) return null;\n const ms = new Date(local).getTime();\n return Number.isNaN(ms) ? null : Math.floor(ms / 1000);\n};\n\nexport function validateSale(d: SaleDraft, now: number): SaleErrors {\n const errors: SaleErrors = {};\n if (d.paid) {\n const token = saleToken(d.tokenSymbol);\n const decimals = d.price.split(\".\")[1]?.length ?? 0;\n if (!token) errors.price = \"Choose a currency\";\n else if (!/^\\d+(\\.\\d+)?$/.test(d.price)) errors.price = \"Enter a price above 0\";\n else if (decimals > token.decimals) errors.price = `Use at most ${token.decimals} decimals for ${token.symbol}`;\n else if (BigInt(parseAmount(d.price, token.decimals)) === 0n) errors.price = \"Enter a price above 0\";\n }\n const start = d.startNow ? now : toSeconds(d.start);\n if (!d.startNow && (start === null || start <= now)) errors.start = \"Pick a start time in the future\";\n if (d.hasEnd) {\n const end = toSeconds(d.end);\n if (end === null || (start !== null && end <= start)) errors.end = \"The sale must end after it starts\";\n }\n if (d.limitPerWallet && !/^[1-9]\\d*$/.test(d.perWallet)) errors.perWallet = \"Enter 1 or more\";\n return errors;\n}\n\n/** Terms for the create intent; call only after `validateSale` returns no errors. */\nexport function toDropTerms(d: SaleDraft): DropTermsBody {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n return {\n startTime: d.startNow ? 0 : toSeconds(d.start)!,\n endTime: d.hasEnd ? toSeconds(d.end)! : 0,\n price: token ? parseAmount(d.price, token.decimals) : \"0\",\n paymentToken: token ? token.address : \"0x0\",\n maxPerWallet: d.limitPerWallet ? d.perWallet : \"0\",\n };\n}\n\n/** What one token costs a collector, with the platform fee; null while the price is free or unfinished. */\nexport function collectorPriceLine(d: SaleDraft, feeBps: number): string | null {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n if (!token || validateSale({ ...EMPTY_SALE, paid: true, price: d.price, tokenSymbol: d.tokenSymbol }, 0).price) return null;\n const price = BigInt(parseAmount(d.price, token.decimals));\n const { fee, total } = dropMintCost(price, 1, feeBps);\n const amount = (v: bigint) => `${formatAmount(v.toString(), token.decimals)} ${token.symbol}`;\n if (fee === 0n) return `Collectors pay ${amount(price)}.`;\n return `Collectors pay ${amount(total)} (incl. ${feeBps / 100}% platform fee). You receive ${amount(price)}.`;\n}\n\nexport function priceLabel(price: string, paymentToken: string): string {\n if (BigInt(price) === 0n) return \"Free\";\n const token = getTokenByAddress(paymentToken);\n return token ? `${formatAmount(price, token.decimals)} ${token.symbol}` : \"Paid\";\n}\n\nconst count = (v: string) => Number(v).toLocaleString(\"en-US\");\n\nexport function supplyLabel(minted: string, maxSupply: string): string {\n return maxSupply === \"0\" ? `${count(minted)} minted` : `${count(minted)} / ${count(maxSupply)} minted`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAoG;AACpG,sBAA6B;AAgBtB,MAAM,aAAwB;AAAA,EACnC,MAAM;AAAA,EAAO,OAAO;AAAA,EAAI,aAAa;AAAA,EACrC,UAAU;AAAA,EAAM,OAAO;AAAA,EAAI,QAAQ;AAAA,EAAO,KAAK;AAAA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MAAM,MAAM,SAAS,CAAC;AAC/F;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/sale.ts"],"sourcesContent":["import { formatAmount, getListableTokens, getTokenByAddress, parseAmount, type DropTermsBody } from \"@medialane/sdk\";\nimport { dropMintCost } from \"@medialane/sdk/starknet\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\n\nexport interface SaleDraft {\n paid: boolean;\n /** In the token's normal units, e.g. \"5.5\". */\n price: string;\n tokenSymbol: string;\n startNow: boolean;\n /** `datetime-local` value in the creator's time zone. */\n start: string;\n hasEnd: boolean;\n end: string;\n limitPerWallet: boolean;\n perWallet: string;\n}\n\nexport const EMPTY_SALE: SaleDraft = {\n paid: false, price: \"\", tokenSymbol: \"USDC\",\n startNow: true, start: \"\", hasEnd: false, end: \"\",\n limitPerWallet: false, perWallet: \"\",\n};\n\nexport type SaleErrors = Partial<Record<\"price\" | \"start\" | \"end\" | \"perWallet\", string>>;\n\nexport function saleToken(symbol: string) {\n return getListableTokens().find((t) => t.symbol === symbol) ?? null;\n}\n\nconst toSeconds = (local: string): number | null => {\n if (!local) return null;\n const ms = new Date(local).getTime();\n return Number.isNaN(ms) ? null : Math.floor(ms / 1000);\n};\n\nexport function validateSale(d: SaleDraft, now: number): SaleErrors {\n const errors: SaleErrors = {};\n if (d.paid) {\n const token = saleToken(d.tokenSymbol);\n const decimals = d.price.split(\".\")[1]?.length ?? 0;\n if (!token) errors.price = \"Choose a currency\";\n else if (!/^\\d+(\\.\\d+)?$/.test(d.price)) errors.price = \"Enter a price above 0\";\n else if (decimals > token.decimals) errors.price = `Use at most ${token.decimals} decimals for ${token.symbol}`;\n else if (BigInt(parseAmount(d.price, token.decimals)) === 0n) errors.price = \"Enter a price above 0\";\n }\n const start = d.startNow ? now : toSeconds(d.start);\n if (!d.startNow && (start === null || start <= now)) errors.start = \"Pick a start time in the future\";\n if (d.hasEnd) {\n const end = toSeconds(d.end);\n if (end === null || (start !== null && end <= start)) errors.end = \"The sale must end after it starts\";\n }\n if (d.limitPerWallet && !isPositiveInteger(d.perWallet)) errors.perWallet = \"Enter 1 or more\";\n return errors;\n}\n\n/** Terms for the create intent; call only after `validateSale` returns no errors. */\nexport function toDropTerms(d: SaleDraft): DropTermsBody {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n return {\n startTime: d.startNow ? 0 : toSeconds(d.start)!,\n endTime: d.hasEnd ? toSeconds(d.end)! : 0,\n price: token ? parseAmount(d.price, token.decimals) : \"0\",\n paymentToken: token ? token.address : \"0x0\",\n maxPerWallet: d.limitPerWallet ? d.perWallet : \"0\",\n };\n}\n\n/** What one token costs a collector, with the platform fee; null while the price is free or unfinished. */\nexport function collectorPriceLine(d: SaleDraft, feeBps: number): string | null {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n if (!token || validateSale({ ...EMPTY_SALE, paid: true, price: d.price, tokenSymbol: d.tokenSymbol }, 0).price) return null;\n const price = BigInt(parseAmount(d.price, token.decimals));\n const { fee, total } = dropMintCost(price, 1, feeBps);\n const amount = (v: bigint) => `${formatAmount(v.toString(), token.decimals)} ${token.symbol}`;\n if (fee === 0n) return `Collectors pay ${amount(price)}.`;\n return `Collectors pay ${amount(total)} (incl. ${feeBps / 100}% platform fee). You receive ${amount(price)}.`;\n}\n\nexport function priceLabel(price: string, paymentToken: string): string {\n if (BigInt(price) === 0n) return \"Free\";\n const token = getTokenByAddress(paymentToken);\n return token ? `${formatAmount(price, token.decimals)} ${token.symbol}` : \"Paid\";\n}\n\nconst count = (v: string) => Number(v).toLocaleString(\"en-US\");\n\nexport function supplyLabel(minted: string, maxSupply: string): string {\n return maxSupply === \"0\" ? `${count(minted)} minted` : `${count(minted)} / ${count(maxSupply)} minted`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAoG;AACpG,sBAA6B;AAC7B,6BAAkC;AAgB3B,MAAM,aAAwB;AA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E,eAAe,OAAO;AAEtD,SAAS,YAAY,QAAgB,WAA2B;AACrE,SAAO,cAAc,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,GAAG,MAAM,MAAM,CAAC,MAAM,MAAM,SAAS,CAAC;AAC/F;","names":[]}
@@ -1,5 +1,6 @@
1
1
  import { formatAmount, getListableTokens, getTokenByAddress, parseAmount } from "@medialane/sdk";
2
2
  import { dropMintCost } from "@medialane/sdk/starknet";
3
+ import { isPositiveInteger } from "../launchpad-rules.js";
3
4
  const EMPTY_SALE = {
4
5
  paid: false,
5
6
  price: "",
@@ -35,7 +36,7 @@ function validateSale(d, now) {
35
36
  const end = toSeconds(d.end);
36
37
  if (end === null || start !== null && end <= start) errors.end = "The sale must end after it starts";
37
38
  }
38
- if (d.limitPerWallet && !/^[1-9]\d*$/.test(d.perWallet)) errors.perWallet = "Enter 1 or more";
39
+ if (d.limitPerWallet && !isPositiveInteger(d.perWallet)) errors.perWallet = "Enter 1 or more";
39
40
  return errors;
40
41
  }
41
42
  function toDropTerms(d) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/sale.ts"],"sourcesContent":["import { formatAmount, getListableTokens, getTokenByAddress, parseAmount, type DropTermsBody } from \"@medialane/sdk\";\nimport { dropMintCost } from \"@medialane/sdk/starknet\";\n\nexport interface SaleDraft {\n paid: boolean;\n /** In the token's normal units, e.g. \"5.5\". */\n price: string;\n tokenSymbol: string;\n startNow: boolean;\n /** `datetime-local` value in the creator's time zone. */\n start: string;\n hasEnd: boolean;\n end: string;\n limitPerWallet: boolean;\n perWallet: string;\n}\n\nexport const EMPTY_SALE: SaleDraft = {\n paid: false, price: \"\", tokenSymbol: \"USDC\",\n startNow: true, start: \"\", hasEnd: false, end: \"\",\n limitPerWallet: false, perWallet: \"\",\n};\n\nexport type SaleErrors = Partial<Record<\"price\" | \"start\" | \"end\" | \"perWallet\", string>>;\n\nexport function saleToken(symbol: string) {\n return getListableTokens().find((t) => t.symbol === symbol) ?? null;\n}\n\nconst toSeconds = (local: string): number | null => {\n if (!local) return null;\n const ms = new Date(local).getTime();\n return Number.isNaN(ms) ? null : Math.floor(ms / 1000);\n};\n\nexport function validateSale(d: SaleDraft, now: number): SaleErrors {\n const errors: SaleErrors = {};\n if (d.paid) {\n const token = saleToken(d.tokenSymbol);\n const decimals = d.price.split(\".\")[1]?.length ?? 0;\n if (!token) errors.price = \"Choose a currency\";\n else if (!/^\\d+(\\.\\d+)?$/.test(d.price)) errors.price = \"Enter a price above 0\";\n else if (decimals > token.decimals) errors.price = `Use at most ${token.decimals} decimals for ${token.symbol}`;\n else if (BigInt(parseAmount(d.price, token.decimals)) === 0n) errors.price = \"Enter a price above 0\";\n }\n const start = d.startNow ? now : toSeconds(d.start);\n if (!d.startNow && (start === null || start <= now)) errors.start = \"Pick a start time in the future\";\n if (d.hasEnd) {\n const end = toSeconds(d.end);\n if (end === null || (start !== null && end <= start)) errors.end = \"The sale must end after it starts\";\n }\n if (d.limitPerWallet && !/^[1-9]\\d*$/.test(d.perWallet)) errors.perWallet = \"Enter 1 or more\";\n return errors;\n}\n\n/** Terms for the create intent; call only after `validateSale` returns no errors. */\nexport function toDropTerms(d: SaleDraft): DropTermsBody {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n return {\n startTime: d.startNow ? 0 : toSeconds(d.start)!,\n endTime: d.hasEnd ? toSeconds(d.end)! : 0,\n price: token ? parseAmount(d.price, token.decimals) : \"0\",\n paymentToken: token ? token.address : \"0x0\",\n maxPerWallet: d.limitPerWallet ? d.perWallet : \"0\",\n };\n}\n\n/** What one token costs a collector, with the platform fee; null while the price is free or unfinished. */\nexport function collectorPriceLine(d: SaleDraft, feeBps: number): string | null {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n if (!token || validateSale({ ...EMPTY_SALE, paid: true, price: d.price, tokenSymbol: d.tokenSymbol }, 0).price) return null;\n const price = BigInt(parseAmount(d.price, token.decimals));\n const { fee, total } = dropMintCost(price, 1, feeBps);\n const amount = (v: bigint) => `${formatAmount(v.toString(), token.decimals)} ${token.symbol}`;\n if (fee === 0n) return `Collectors pay ${amount(price)}.`;\n return `Collectors pay ${amount(total)} (incl. ${feeBps / 100}% platform fee). You receive ${amount(price)}.`;\n}\n\nexport function priceLabel(price: string, paymentToken: string): string {\n if (BigInt(price) === 0n) return \"Free\";\n const token = getTokenByAddress(paymentToken);\n return token ? `${formatAmount(price, token.decimals)} ${token.symbol}` : \"Paid\";\n}\n\nconst count = (v: string) => Number(v).toLocaleString(\"en-US\");\n\nexport function supplyLabel(minted: string, maxSupply: string): string {\n return maxSupply === \"0\" ? `${count(minted)} minted` : `${count(minted)} / ${count(maxSupply)} minted`;\n}\n"],"mappings":"AAAA,SAAS,cAAc,mBAAmB,mBAAmB,mBAAuC;AACpG,SAAS,oBAAoB;AAgBtB,MAAM,aAAwB;AAAA,EACnC,MAAM;AAAA,EAAO,OAAO;AAAA,EAAI,aAAa;AAAA,EACrC,UAAU;AAAA,EAAM,OAAO;AAAA,EAAI,QAAQ;AAAA,EAAO,KAAK;AAAA,EAC/C,gBAAgB;AAAA,EAAO,WAAW;AACpC;AAIO,SAAS,UAAU,QAAgB;AACxC,SAAO,kBAAkB,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,MAAM,KAAK;AACjE;AAEA,MAAM,YAAY,CAAC,UAAiC;AAClD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK,EAAE,QAAQ;AACnC,SAAO,OAAO,MAAM,EAAE,IAAI,OAAO,KAAK,MAAM,KAAK,GAAI;AACvD;AAEO,SAAS,aAAa,GAAc,KAAyB;AAClE,QAAM,SAAqB,CAAC;AAC5B,MAAI,EAAE,MAAM;AACV,UAAM,QAAQ,UAAU,EAAE,WAAW;AACrC,UAAM,WAAW,EAAE,MAAM,MAAM,GAAG,EAAE,CAAC,GAAG,UAAU;AAClD,QAAI,CAAC,MAAO,QAAO,QAAQ;AAAA,aAClB,CAAC,gBAAgB,KAAK,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,IAAI,aAAa,OAAO,GAAG,MAAM;AACpD,QAAM,SAAS,CAAC,MAAc,GAAG,aAAa,EAAE,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,MAAM,MAAM;AAC3F,MAAI,QAAQ,GAAI,QAAO,kBAAkB,OAAO,KAAK,CAAC;AACtD,SAAO,kBAAkB,OAAO,KAAK,CAAC,WAAW,SAAS,GAAG,gCAAgC,OAAO,KAAK,CAAC;AAC5G;AAEO,SAAS,WAAW,OAAe,cAA8B;AACtE,MAAI,OAAO,KAAK,MAAM,GAAI,QAAO;AACjC,QAAM,QAAQ,kBAAkB,YAAY;AAC5C,SAAO,QAAQ,GAAG,aAAa,OAAO,MAAM,QAAQ,CAAC,IAAI,MAAM,MAAM,KAAK;AAC5E;AAEA,MAAM,QAAQ,CAAC,MAAc,OAAO,CAAC,EAAE,eAAe,OAAO;AAEtD,SAAS,YAAY,QAAgB,WAA2B;AACrE,SAAO,cAAc,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,GAAG,MAAM,MAAM,CAAC,MAAM,MAAM,SAAS,CAAC;AAC/F;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/sale.ts"],"sourcesContent":["import { formatAmount, getListableTokens, getTokenByAddress, parseAmount, type DropTermsBody } from \"@medialane/sdk\";\nimport { dropMintCost } from \"@medialane/sdk/starknet\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\n\nexport interface SaleDraft {\n paid: boolean;\n /** In the token's normal units, e.g. \"5.5\". */\n price: string;\n tokenSymbol: string;\n startNow: boolean;\n /** `datetime-local` value in the creator's time zone. */\n start: string;\n hasEnd: boolean;\n end: string;\n limitPerWallet: boolean;\n perWallet: string;\n}\n\nexport const EMPTY_SALE: SaleDraft = {\n paid: false, price: \"\", tokenSymbol: \"USDC\",\n startNow: true, start: \"\", hasEnd: false, end: \"\",\n limitPerWallet: false, perWallet: \"\",\n};\n\nexport type SaleErrors = Partial<Record<\"price\" | \"start\" | \"end\" | \"perWallet\", string>>;\n\nexport function saleToken(symbol: string) {\n return getListableTokens().find((t) => t.symbol === symbol) ?? null;\n}\n\nconst toSeconds = (local: string): number | null => {\n if (!local) return null;\n const ms = new Date(local).getTime();\n return Number.isNaN(ms) ? null : Math.floor(ms / 1000);\n};\n\nexport function validateSale(d: SaleDraft, now: number): SaleErrors {\n const errors: SaleErrors = {};\n if (d.paid) {\n const token = saleToken(d.tokenSymbol);\n const decimals = d.price.split(\".\")[1]?.length ?? 0;\n if (!token) errors.price = \"Choose a currency\";\n else if (!/^\\d+(\\.\\d+)?$/.test(d.price)) errors.price = \"Enter a price above 0\";\n else if (decimals > token.decimals) errors.price = `Use at most ${token.decimals} decimals for ${token.symbol}`;\n else if (BigInt(parseAmount(d.price, token.decimals)) === 0n) errors.price = \"Enter a price above 0\";\n }\n const start = d.startNow ? now : toSeconds(d.start);\n if (!d.startNow && (start === null || start <= now)) errors.start = \"Pick a start time in the future\";\n if (d.hasEnd) {\n const end = toSeconds(d.end);\n if (end === null || (start !== null && end <= start)) errors.end = \"The sale must end after it starts\";\n }\n if (d.limitPerWallet && !isPositiveInteger(d.perWallet)) errors.perWallet = \"Enter 1 or more\";\n return errors;\n}\n\n/** Terms for the create intent; call only after `validateSale` returns no errors. */\nexport function toDropTerms(d: SaleDraft): DropTermsBody {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n return {\n startTime: d.startNow ? 0 : toSeconds(d.start)!,\n endTime: d.hasEnd ? toSeconds(d.end)! : 0,\n price: token ? parseAmount(d.price, token.decimals) : \"0\",\n paymentToken: token ? token.address : \"0x0\",\n maxPerWallet: d.limitPerWallet ? d.perWallet : \"0\",\n };\n}\n\n/** What one token costs a collector, with the platform fee; null while the price is free or unfinished. */\nexport function collectorPriceLine(d: SaleDraft, feeBps: number): string | null {\n const token = d.paid ? saleToken(d.tokenSymbol) : null;\n if (!token || validateSale({ ...EMPTY_SALE, paid: true, price: d.price, tokenSymbol: d.tokenSymbol }, 0).price) return null;\n const price = BigInt(parseAmount(d.price, token.decimals));\n const { fee, total } = dropMintCost(price, 1, feeBps);\n const amount = (v: bigint) => `${formatAmount(v.toString(), token.decimals)} ${token.symbol}`;\n if (fee === 0n) return `Collectors pay ${amount(price)}.`;\n return `Collectors pay ${amount(total)} (incl. ${feeBps / 100}% platform fee). You receive ${amount(price)}.`;\n}\n\nexport function priceLabel(price: string, paymentToken: string): string {\n if (BigInt(price) === 0n) return \"Free\";\n const token = getTokenByAddress(paymentToken);\n return token ? `${formatAmount(price, token.decimals)} ${token.symbol}` : \"Paid\";\n}\n\nconst count = (v: string) => Number(v).toLocaleString(\"en-US\");\n\nexport function supplyLabel(minted: string, maxSupply: string): string {\n return maxSupply === \"0\" ? `${count(minted)} minted` : `${count(minted)} / ${count(maxSupply)} minted`;\n}\n"],"mappings":"AAAA,SAAS,cAAc,mBAAmB,mBAAmB,mBAAuC;AACpG,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAgB3B,MAAM,aAAwB;AAAA,EACnC,MAAM;AAAA,EAAO,OAAO;AAAA,EAAI,aAAa;AAAA,EACrC,UAAU;AAAA,EAAM,OAAO;AAAA,EAAI,QAAQ;AAAA,EAAO,KAAK;AAAA,EAC/C,gBAAgB;AAAA,EAAO,WAAW;AACpC;AAIO,SAAS,UAAU,QAAgB;AACxC,SAAO,kBAAkB,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,MAAM,KAAK;AACjE;AAEA,MAAM,YAAY,CAAC,UAAiC;AAClD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK,EAAE,QAAQ;AACnC,SAAO,OAAO,MAAM,EAAE,IAAI,OAAO,KAAK,MAAM,KAAK,GAAI;AACvD;AAEO,SAAS,aAAa,GAAc,KAAyB;AAClE,QAAM,SAAqB,CAAC;AAC5B,MAAI,EAAE,MAAM;AACV,UAAM,QAAQ,UAAU,EAAE,WAAW;AACrC,UAAM,WAAW,EAAE,MAAM,MAAM,GAAG,EAAE,CAAC,GAAG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,OAAO,YAAY,EAAE,OAAO,MAAM,QAAQ,CAAC;AACzD,QAAM,EAAE,KAAK,MAAM,IAAI,aAAa,OAAO,GAAG,MAAM;AACpD,QAAM,SAAS,CAAC,MAAc,GAAG,aAAa,EAAE,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,MAAM,MAAM;AAC3F,MAAI,QAAQ,GAAI,QAAO,kBAAkB,OAAO,KAAK,CAAC;AACtD,SAAO,kBAAkB,OAAO,KAAK,CAAC,WAAW,SAAS,GAAG,gCAAgC,OAAO,KAAK,CAAC;AAC5G;AAEO,SAAS,WAAW,OAAe,cAA8B;AACtE,MAAI,OAAO,KAAK,MAAM,GAAI,QAAO;AACjC,QAAM,QAAQ,kBAAkB,YAAY;AAC5C,SAAO,QAAQ,GAAG,aAAa,OAAO,MAAM,QAAQ,CAAC,IAAI,MAAM,MAAM,KAAK;AAC5E;AAEA,MAAM,QAAQ,CAAC,MAAc,OAAO,CAAC,EAAE,eAAe,OAAO;AAEtD,SAAS,YAAY,QAAgB,WAA2B;AACrE,SAAO,cAAc,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,GAAG,MAAM,MAAM,CAAC,MAAM,MAAM,SAAS,CAAC;AAC/F;","names":[]}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var launchpad_rules_exports = {};
30
+ __export(launchpad_rules_exports, {
31
+ POSITIVE_INTEGER_PATTERN: () => POSITIVE_INTEGER_PATTERN,
32
+ SYMBOL_PATTERN: () => SYMBOL_PATTERN,
33
+ WEB_LINK_MESSAGE: () => WEB_LINK_MESSAGE,
34
+ isPositiveInteger: () => isPositiveInteger,
35
+ isSymbol: () => isSymbol,
36
+ isWebLink: () => isWebLink,
37
+ positiveIntegerField: () => positiveIntegerField,
38
+ symbolField: () => symbolField,
39
+ webLinkField: () => webLinkField
40
+ });
41
+ module.exports = __toCommonJS(launchpad_rules_exports);
42
+ var z = __toESM(require("zod"), 1);
43
+ var import_field_limits = require("./field-limits.js");
44
+ const SYMBOL_PATTERN = new RegExp(`^[A-Z0-9]{1,${import_field_limits.FIELD_LIMITS.symbol}}$`);
45
+ const POSITIVE_INTEGER_PATTERN = /^[1-9]\d*$/;
46
+ const WEB_LINK_MESSAGE = "Must start with http:// or https://";
47
+ function isSymbol(value) {
48
+ return SYMBOL_PATTERN.test(value);
49
+ }
50
+ function isPositiveInteger(value) {
51
+ return POSITIVE_INTEGER_PATTERN.test(value.trim());
52
+ }
53
+ function isWebLink(value) {
54
+ return !value || value.startsWith("http://") || value.startsWith("https://");
55
+ }
56
+ function symbolField() {
57
+ return z.string().min(1, "Symbol required").max(import_field_limits.FIELD_LIMITS.symbol, `Max ${import_field_limits.FIELD_LIMITS.symbol} characters`).regex(/^[A-Z0-9]+$/, "Uppercase letters and numbers only");
58
+ }
59
+ function webLinkField() {
60
+ return z.string().max(500).refine(isWebLink, { message: WEB_LINK_MESSAGE }).optional();
61
+ }
62
+ function positiveIntegerField(requiredMessage) {
63
+ return z.string().min(1, requiredMessage).regex(POSITIVE_INTEGER_PATTERN, "Enter a whole number, 1 or more");
64
+ }
65
+ // Annotate the CommonJS export names for ESM import in node:
66
+ 0 && (module.exports = {
67
+ POSITIVE_INTEGER_PATTERN,
68
+ SYMBOL_PATTERN,
69
+ WEB_LINK_MESSAGE,
70
+ isPositiveInteger,
71
+ isSymbol,
72
+ isWebLink,
73
+ positiveIntegerField,
74
+ symbolField,
75
+ webLinkField
76
+ });
77
+ //# sourceMappingURL=launchpad-rules.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/launchpad-rules.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"./field-limits.js\";\n\nexport const SYMBOL_PATTERN = new RegExp(`^[A-Z0-9]{1,${FIELD_LIMITS.symbol}}$`);\nexport const POSITIVE_INTEGER_PATTERN = /^[1-9]\\d*$/;\nexport const WEB_LINK_MESSAGE = \"Must start with http:// or https://\";\n\nexport function isSymbol(value: string): boolean {\n return SYMBOL_PATTERN.test(value);\n}\n\nexport function isPositiveInteger(value: string): boolean {\n return POSITIVE_INTEGER_PATTERN.test(value.trim());\n}\n\nexport function isWebLink(value: string | undefined | null): boolean {\n return !value || value.startsWith(\"http://\") || value.startsWith(\"https://\");\n}\n\nexport function symbolField() {\n return z\n .string()\n .min(1, \"Symbol required\")\n .max(FIELD_LIMITS.symbol, `Max ${FIELD_LIMITS.symbol} characters`)\n .regex(/^[A-Z0-9]+$/, \"Uppercase letters and numbers only\");\n}\n\nexport function webLinkField() {\n return z.string().max(500).refine(isWebLink, { message: WEB_LINK_MESSAGE }).optional();\n}\n\nexport function positiveIntegerField(requiredMessage: string) {\n return z.string().min(1, requiredMessage).regex(POSITIVE_INTEGER_PATTERN, \"Enter a whole number, 1 or more\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AACnB,0BAA6B;AAEtB,MAAM,iBAAiB,IAAI,OAAO,eAAe,iCAAa,MAAM,IAAI;AACxE,MAAM,2BAA2B;AACjC,MAAM,mBAAmB;AAEzB,SAAS,SAAS,OAAwB;AAC/C,SAAO,eAAe,KAAK,KAAK;AAClC;AAEO,SAAS,kBAAkB,OAAwB;AACxD,SAAO,yBAAyB,KAAK,MAAM,KAAK,CAAC;AACnD;AAEO,SAAS,UAAU,OAA2C;AACnE,SAAO,CAAC,SAAS,MAAM,WAAW,SAAS,KAAK,MAAM,WAAW,UAAU;AAC7E;AAEO,SAAS,cAAc;AAC5B,SAAO,EACJ,OAAO,EACP,IAAI,GAAG,iBAAiB,EACxB,IAAI,iCAAa,QAAQ,OAAO,iCAAa,MAAM,aAAa,EAChE,MAAM,eAAe,oCAAoC;AAC9D;AAEO,SAAS,eAAe;AAC7B,SAAO,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,OAAO,WAAW,EAAE,SAAS,iBAAiB,CAAC,EAAE,SAAS;AACvF;AAEO,SAAS,qBAAqB,iBAAyB;AAC5D,SAAO,EAAE,OAAO,EAAE,IAAI,GAAG,eAAe,EAAE,MAAM,0BAA0B,iCAAiC;AAC7G;","names":[]}
@@ -0,0 +1,13 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const SYMBOL_PATTERN: RegExp;
4
+ declare const POSITIVE_INTEGER_PATTERN: RegExp;
5
+ declare const WEB_LINK_MESSAGE = "Must start with http:// or https://";
6
+ declare function isSymbol(value: string): boolean;
7
+ declare function isPositiveInteger(value: string): boolean;
8
+ declare function isWebLink(value: string | undefined | null): boolean;
9
+ declare function symbolField(): z.ZodString;
10
+ declare function webLinkField(): z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
11
+ declare function positiveIntegerField(requiredMessage: string): z.ZodString;
12
+
13
+ export { POSITIVE_INTEGER_PATTERN, SYMBOL_PATTERN, WEB_LINK_MESSAGE, isPositiveInteger, isSymbol, isWebLink, positiveIntegerField, symbolField, webLinkField };
@@ -0,0 +1,13 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const SYMBOL_PATTERN: RegExp;
4
+ declare const POSITIVE_INTEGER_PATTERN: RegExp;
5
+ declare const WEB_LINK_MESSAGE = "Must start with http:// or https://";
6
+ declare function isSymbol(value: string): boolean;
7
+ declare function isPositiveInteger(value: string): boolean;
8
+ declare function isWebLink(value: string | undefined | null): boolean;
9
+ declare function symbolField(): z.ZodString;
10
+ declare function webLinkField(): z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
11
+ declare function positiveIntegerField(requiredMessage: string): z.ZodString;
12
+
13
+ export { POSITIVE_INTEGER_PATTERN, SYMBOL_PATTERN, WEB_LINK_MESSAGE, isPositiveInteger, isSymbol, isWebLink, positiveIntegerField, symbolField, webLinkField };