@medialane/ui 0.390.0 → 0.392.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 (550) hide show
  1. package/dist/components/account/account-section.cjs.map +1 -1
  2. package/dist/components/account/account-section.d.cts +0 -1
  3. package/dist/components/account/account-section.d.ts +0 -1
  4. package/dist/components/account/account-section.js.map +1 -1
  5. package/dist/components/account/add-guardian-dialog.cjs +1 -1
  6. package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
  7. package/dist/components/account/add-guardian-dialog.js +1 -1
  8. package/dist/components/account/add-guardian-dialog.js.map +1 -1
  9. package/dist/components/account/device-approval-dialog.cjs +2 -2
  10. package/dist/components/account/device-approval-dialog.cjs.map +1 -1
  11. package/dist/components/account/device-approval-dialog.js +2 -2
  12. package/dist/components/account/device-approval-dialog.js.map +1 -1
  13. package/dist/components/account/devices-section.cjs +2 -2
  14. package/dist/components/account/devices-section.cjs.map +1 -1
  15. package/dist/components/account/devices-section.js +2 -2
  16. package/dist/components/account/devices-section.js.map +1 -1
  17. package/dist/components/account/email-code-entry.cjs +1 -1
  18. package/dist/components/account/email-code-entry.cjs.map +1 -1
  19. package/dist/components/account/email-code-entry.js +1 -1
  20. package/dist/components/account/email-code-entry.js.map +1 -1
  21. package/dist/components/account/guardian-recovery-section.cjs +4 -4
  22. package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
  23. package/dist/components/account/guardian-recovery-section.js +4 -4
  24. package/dist/components/account/guardian-recovery-section.js.map +1 -1
  25. package/dist/components/action-button.cjs.map +1 -1
  26. package/dist/components/action-button.d.cts +0 -4
  27. package/dist/components/action-button.d.ts +0 -4
  28. package/dist/components/action-button.js.map +1 -1
  29. package/dist/components/approve-mint-dialog.cjs +2 -2
  30. package/dist/components/approve-mint-dialog.cjs.map +1 -1
  31. package/dist/components/approve-mint-dialog.js +2 -2
  32. package/dist/components/approve-mint-dialog.js.map +1 -1
  33. package/dist/components/archive-asset-dialog.cjs +2 -2
  34. package/dist/components/archive-asset-dialog.cjs.map +1 -1
  35. package/dist/components/archive-asset-dialog.js +2 -2
  36. package/dist/components/archive-asset-dialog.js.map +1 -1
  37. package/dist/components/archived-asset-notice.cjs +1 -1
  38. package/dist/components/archived-asset-notice.cjs.map +1 -1
  39. package/dist/components/archived-asset-notice.js +1 -1
  40. package/dist/components/archived-asset-notice.js.map +1 -1
  41. package/dist/components/asset-marketplace-panel.cjs +1 -1
  42. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  43. package/dist/components/asset-marketplace-panel.js +1 -1
  44. package/dist/components/asset-marketplace-panel.js.map +1 -1
  45. package/dist/components/asset-overview-content.cjs +1 -1
  46. package/dist/components/asset-overview-content.cjs.map +1 -1
  47. package/dist/components/asset-overview-content.js +1 -1
  48. package/dist/components/asset-overview-content.js.map +1 -1
  49. package/dist/components/asset-picker.cjs +1 -1
  50. package/dist/components/asset-picker.cjs.map +1 -1
  51. package/dist/components/asset-picker.js +1 -1
  52. package/dist/components/asset-picker.js.map +1 -1
  53. package/dist/components/asset-provenance-tab.cjs +1 -1
  54. package/dist/components/asset-provenance-tab.cjs.map +1 -1
  55. package/dist/components/asset-provenance-tab.js +1 -1
  56. package/dist/components/asset-provenance-tab.js.map +1 -1
  57. package/dist/components/asset-search-picker.cjs +1 -1
  58. package/dist/components/asset-search-picker.cjs.map +1 -1
  59. package/dist/components/asset-search-picker.js +1 -1
  60. package/dist/components/asset-search-picker.js.map +1 -1
  61. package/dist/components/badge.d.cts +1 -1
  62. package/dist/components/badge.d.ts +1 -1
  63. package/dist/components/button.d.cts +1 -1
  64. package/dist/components/button.d.ts +1 -1
  65. package/dist/components/claim-rail.cjs.map +1 -1
  66. package/dist/components/claim-rail.d.cts +0 -1
  67. package/dist/components/claim-rail.d.ts +0 -1
  68. package/dist/components/claim-rail.js.map +1 -1
  69. package/dist/components/collection-name-claim.cjs +1 -1
  70. package/dist/components/collection-name-claim.cjs.map +1 -1
  71. package/dist/components/collection-name-claim.js +1 -1
  72. package/dist/components/collection-name-claim.js.map +1 -1
  73. package/dist/components/collection-page.cjs +2 -2
  74. package/dist/components/collection-page.cjs.map +1 -1
  75. package/dist/components/collection-page.d.cts +0 -1
  76. package/dist/components/collection-page.d.ts +0 -1
  77. package/dist/components/collection-page.js +2 -2
  78. package/dist/components/collection-page.js.map +1 -1
  79. package/dist/components/collection-provenance-tab.cjs +1 -1
  80. package/dist/components/collection-provenance-tab.cjs.map +1 -1
  81. package/dist/components/collection-provenance-tab.js +1 -1
  82. package/dist/components/collection-provenance-tab.js.map +1 -1
  83. package/dist/components/collection-settings.cjs +21 -21
  84. package/dist/components/collection-settings.cjs.map +1 -1
  85. package/dist/components/collection-settings.js +21 -21
  86. package/dist/components/collection-settings.js.map +1 -1
  87. package/dist/components/collection-slug-claim.cjs +4 -4
  88. package/dist/components/collection-slug-claim.cjs.map +1 -1
  89. package/dist/components/collection-slug-claim.js +4 -4
  90. package/dist/components/collection-slug-claim.js.map +1 -1
  91. package/dist/components/comments-section.cjs +1 -1
  92. package/dist/components/comments-section.cjs.map +1 -1
  93. package/dist/components/comments-section.js +1 -1
  94. package/dist/components/comments-section.js.map +1 -1
  95. package/dist/components/create-form-primitives.cjs +6 -1
  96. package/dist/components/create-form-primitives.cjs.map +1 -1
  97. package/dist/components/create-form-primitives.js +6 -1
  98. package/dist/components/create-form-primitives.js.map +1 -1
  99. package/dist/components/create-sponsorship-aside.cjs +8 -8
  100. package/dist/components/create-sponsorship-aside.cjs.map +1 -1
  101. package/dist/components/create-sponsorship-aside.js +8 -8
  102. package/dist/components/create-sponsorship-aside.js.map +1 -1
  103. package/dist/components/creation-record.cjs +1 -1
  104. package/dist/components/creation-record.cjs.map +1 -1
  105. package/dist/components/creation-record.js +1 -1
  106. package/dist/components/creation-record.js.map +1 -1
  107. package/dist/components/discover-community-section.cjs +1 -1
  108. package/dist/components/discover-community-section.cjs.map +1 -1
  109. package/dist/components/discover-community-section.js +1 -1
  110. package/dist/components/discover-community-section.js.map +1 -1
  111. package/dist/components/discover-features.cjs +3 -3
  112. package/dist/components/discover-features.cjs.map +1 -1
  113. package/dist/components/discover-features.js +3 -3
  114. package/dist/components/discover-features.js.map +1 -1
  115. package/dist/components/discover-hero.cjs +1 -1
  116. package/dist/components/discover-hero.cjs.map +1 -1
  117. package/dist/components/discover-hero.js +1 -1
  118. package/dist/components/discover-hero.js.map +1 -1
  119. package/dist/components/drop/create/asset-editor.cjs +164 -0
  120. package/dist/components/drop/create/asset-editor.cjs.map +1 -0
  121. package/dist/components/drop/create/asset-editor.d.cts +16 -0
  122. package/dist/components/drop/create/asset-editor.d.ts +16 -0
  123. package/dist/components/drop/create/asset-editor.js +140 -0
  124. package/dist/components/drop/create/asset-editor.js.map +1 -0
  125. package/dist/components/drop/create/assets-panel.cjs +269 -0
  126. package/dist/components/drop/create/assets-panel.cjs.map +1 -0
  127. package/dist/components/drop/create/assets-panel.d.cts +10 -0
  128. package/dist/components/drop/create/assets-panel.d.ts +10 -0
  129. package/dist/components/drop/create/assets-panel.js +245 -0
  130. package/dist/components/drop/create/assets-panel.js.map +1 -0
  131. package/dist/components/drop/create/collection-panel.cjs +138 -0
  132. package/dist/components/drop/create/collection-panel.cjs.map +1 -0
  133. package/dist/components/drop/create/collection-panel.d.cts +11 -0
  134. package/dist/components/drop/create/collection-panel.d.ts +11 -0
  135. package/dist/components/drop/create/collection-panel.js +113 -0
  136. package/dist/components/drop/create/collection-panel.js.map +1 -0
  137. package/dist/components/drop/create/drop-create.cjs +57 -112
  138. package/dist/components/drop/create/drop-create.cjs.map +1 -1
  139. package/dist/components/drop/create/drop-create.d.cts +5 -20
  140. package/dist/components/drop/create/drop-create.d.ts +5 -20
  141. package/dist/components/drop/create/drop-create.js +60 -112
  142. package/dist/components/drop/create/drop-create.js.map +1 -1
  143. package/dist/components/drop/create/drop-fields.cjs +40 -144
  144. package/dist/components/drop/create/drop-fields.cjs.map +1 -1
  145. package/dist/components/drop/create/drop-fields.d.cts +3 -20
  146. package/dist/components/drop/create/drop-fields.d.ts +3 -20
  147. package/dist/components/drop/create/drop-fields.js +40 -131
  148. package/dist/components/drop/create/drop-fields.js.map +1 -1
  149. package/dist/components/drop/create/drop-panel.cjs +57 -0
  150. package/dist/components/drop/create/drop-panel.cjs.map +1 -0
  151. package/dist/components/drop/create/drop-panel.d.cts +24 -0
  152. package/dist/components/drop/create/drop-panel.d.ts +24 -0
  153. package/dist/components/drop/create/drop-panel.js +33 -0
  154. package/dist/components/drop/create/drop-panel.js.map +1 -0
  155. package/dist/components/drop/create/exclusive-fields.cjs +2 -2
  156. package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
  157. package/dist/components/drop/create/exclusive-fields.d.cts +0 -1
  158. package/dist/components/drop/create/exclusive-fields.d.ts +0 -1
  159. package/dist/components/drop/create/exclusive-fields.js +2 -2
  160. package/dist/components/drop/create/exclusive-fields.js.map +1 -1
  161. package/dist/components/drop/create/launch-dialog.cjs +44 -49
  162. package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
  163. package/dist/components/drop/create/launch-dialog.d.cts +3 -5
  164. package/dist/components/drop/create/launch-dialog.d.ts +3 -5
  165. package/dist/components/drop/create/launch-dialog.js +48 -53
  166. package/dist/components/drop/create/launch-dialog.js.map +1 -1
  167. package/dist/components/drop/create/settings-panel.cjs +97 -0
  168. package/dist/components/drop/create/settings-panel.cjs.map +1 -0
  169. package/dist/components/drop/create/settings-panel.d.cts +10 -0
  170. package/dist/components/drop/create/settings-panel.d.ts +10 -0
  171. package/dist/components/drop/create/settings-panel.js +73 -0
  172. package/dist/components/drop/create/settings-panel.js.map +1 -0
  173. package/dist/components/drop/drop-card.cjs.map +1 -1
  174. package/dist/components/drop/drop-card.d.cts +0 -1
  175. package/dist/components/drop/drop-card.d.ts +0 -1
  176. package/dist/components/drop/drop-card.js.map +1 -1
  177. package/dist/components/drop/drop-features.cjs +4 -4
  178. package/dist/components/drop/drop-features.cjs.map +1 -1
  179. package/dist/components/drop/drop-features.js +4 -4
  180. package/dist/components/drop/drop-features.js.map +1 -1
  181. package/dist/components/drop/drop-listing.cjs +1 -1
  182. package/dist/components/drop/drop-listing.cjs.map +1 -1
  183. package/dist/components/drop/drop-listing.js +1 -1
  184. package/dist/components/drop/drop-listing.js.map +1 -1
  185. package/dist/components/drop/drop-token-link.cjs.map +1 -1
  186. package/dist/components/drop/drop-token-link.d.cts +0 -1
  187. package/dist/components/drop/drop-token-link.d.ts +0 -1
  188. package/dist/components/drop/drop-token-link.js.map +1 -1
  189. package/dist/components/drop/page/drop-manage.cjs +4 -4
  190. package/dist/components/drop/page/drop-manage.cjs.map +1 -1
  191. package/dist/components/drop/page/drop-manage.d.cts +0 -1
  192. package/dist/components/drop/page/drop-manage.d.ts +0 -1
  193. package/dist/components/drop/page/drop-manage.js +4 -4
  194. package/dist/components/drop/page/drop-manage.js.map +1 -1
  195. package/dist/components/drop/page/drop-page.cjs +1 -1
  196. package/dist/components/drop/page/drop-page.cjs.map +1 -1
  197. package/dist/components/drop/page/drop-page.js +1 -1
  198. package/dist/components/drop/page/drop-page.js.map +1 -1
  199. package/dist/components/drops-page.cjs +1 -1
  200. package/dist/components/drops-page.cjs.map +1 -1
  201. package/dist/components/drops-page.js +1 -1
  202. package/dist/components/drops-page.js.map +1 -1
  203. package/dist/components/external-link-field.cjs +1 -1
  204. package/dist/components/external-link-field.cjs.map +1 -1
  205. package/dist/components/external-link-field.js +1 -1
  206. package/dist/components/external-link-field.js.map +1 -1
  207. package/dist/components/fast-mint/asset-form-parts.cjs +1 -1
  208. package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
  209. package/dist/components/fast-mint/asset-form-parts.js +1 -1
  210. package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
  211. package/dist/components/fast-mint/collection-section.cjs +2 -2
  212. package/dist/components/fast-mint/collection-section.cjs.map +1 -1
  213. package/dist/components/fast-mint/collection-section.js +2 -2
  214. package/dist/components/fast-mint/collection-section.js.map +1 -1
  215. package/dist/components/fast-mint/dropzone.cjs +1 -1
  216. package/dist/components/fast-mint/dropzone.cjs.map +1 -1
  217. package/dist/components/fast-mint/dropzone.js +1 -1
  218. package/dist/components/fast-mint/dropzone.js.map +1 -1
  219. package/dist/components/fast-mint/fast-mint.cjs +3 -3
  220. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  221. package/dist/components/fast-mint/fast-mint.js +3 -3
  222. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  223. package/dist/components/gated-content.cjs +4 -4
  224. package/dist/components/gated-content.cjs.map +1 -1
  225. package/dist/components/gated-content.js +4 -4
  226. package/dist/components/gated-content.js.map +1 -1
  227. package/dist/components/hidden-content-banner.cjs +1 -1
  228. package/dist/components/hidden-content-banner.cjs.map +1 -1
  229. package/dist/components/hidden-content-banner.js +1 -1
  230. package/dist/components/hidden-content-banner.js.map +1 -1
  231. package/dist/components/icon-tile.cjs.map +1 -1
  232. package/dist/components/icon-tile.d.cts +0 -2
  233. package/dist/components/icon-tile.d.ts +0 -2
  234. package/dist/components/icon-tile.js.map +1 -1
  235. package/dist/components/ip-type-display.cjs +1 -1
  236. package/dist/components/ip-type-display.cjs.map +1 -1
  237. package/dist/components/ip-type-display.js +1 -1
  238. package/dist/components/ip-type-display.js.map +1 -1
  239. package/dist/components/ipfs-gateway-fallback.cjs.map +1 -1
  240. package/dist/components/ipfs-gateway-fallback.d.cts +0 -4
  241. package/dist/components/ipfs-gateway-fallback.d.ts +0 -4
  242. package/dist/components/ipfs-gateway-fallback.js.map +1 -1
  243. package/dist/components/journey-content.cjs +4 -4
  244. package/dist/components/journey-content.cjs.map +1 -1
  245. package/dist/components/journey-content.js +4 -4
  246. package/dist/components/journey-content.js.map +1 -1
  247. package/dist/components/launchpad/coin-create.cjs +5 -5
  248. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  249. package/dist/components/launchpad/coin-create.js +5 -5
  250. package/dist/components/launchpad/coin-create.js.map +1 -1
  251. package/dist/components/launchpad/collection-create-form.cjs +1 -1
  252. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  253. package/dist/components/launchpad/collection-create-form.js +1 -1
  254. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  255. package/dist/components/launchpad/collection-create-presets.cjs +18 -18
  256. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  257. package/dist/components/launchpad/collection-create-presets.js +18 -18
  258. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  259. package/dist/components/launchpad/collection-picker.cjs +1 -1
  260. package/dist/components/launchpad/collection-picker.cjs.map +1 -1
  261. package/dist/components/launchpad/collection-picker.js +1 -1
  262. package/dist/components/launchpad/collection-picker.js.map +1 -1
  263. package/dist/components/launchpad/edition-mint-fields.cjs +6 -6
  264. package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
  265. package/dist/components/launchpad/edition-mint-fields.js +6 -6
  266. package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
  267. package/dist/components/launchpad/edition-mint.cjs +2 -2
  268. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  269. package/dist/components/launchpad/edition-mint.js +2 -2
  270. package/dist/components/launchpad/edition-mint.js.map +1 -1
  271. package/dist/components/launchpad/pop-create-fields.cjs +6 -6
  272. package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
  273. package/dist/components/launchpad/pop-create-fields.js +6 -6
  274. package/dist/components/launchpad/pop-create-fields.js.map +1 -1
  275. package/dist/components/launchpad/pop-create.cjs +3 -3
  276. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  277. package/dist/components/launchpad/pop-create.js +3 -3
  278. package/dist/components/launchpad/pop-create.js.map +1 -1
  279. package/dist/components/launchpad/remix-mint.cjs +6 -6
  280. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  281. package/dist/components/launchpad/remix-mint.js +6 -6
  282. package/dist/components/launchpad/remix-mint.js.map +1 -1
  283. package/dist/components/launchpad/single-edition-mint.cjs +8 -8
  284. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  285. package/dist/components/launchpad/single-edition-mint.js +8 -8
  286. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  287. package/dist/components/launchpad/sponsorship-create.cjs +4 -4
  288. package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
  289. package/dist/components/launchpad/sponsorship-create.js +4 -4
  290. package/dist/components/launchpad/sponsorship-create.js.map +1 -1
  291. package/dist/components/launchpad/tier-mint-form.cjs +1 -1
  292. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  293. package/dist/components/launchpad/tier-mint-form.js +1 -1
  294. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  295. package/dist/components/launchpad/tier-mint-presets.cjs +2 -2
  296. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  297. package/dist/components/launchpad/tier-mint-presets.js +2 -2
  298. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  299. package/dist/components/launchpad-strip.cjs +2 -2
  300. package/dist/components/launchpad-strip.cjs.map +1 -1
  301. package/dist/components/launchpad-strip.js +2 -2
  302. package/dist/components/launchpad-strip.js.map +1 -1
  303. package/dist/components/license-request-page.cjs +2 -2
  304. package/dist/components/license-request-page.cjs.map +1 -1
  305. package/dist/components/license-request-page.js +2 -2
  306. package/dist/components/license-request-page.js.map +1 -1
  307. package/dist/components/license-terms-builder.cjs +5 -5
  308. package/dist/components/license-terms-builder.cjs.map +1 -1
  309. package/dist/components/license-terms-builder.js +5 -5
  310. package/dist/components/license-terms-builder.js.map +1 -1
  311. package/dist/components/marketplace-filters.cjs +1 -1
  312. package/dist/components/marketplace-filters.cjs.map +1 -1
  313. package/dist/components/marketplace-filters.js +1 -1
  314. package/dist/components/marketplace-filters.js.map +1 -1
  315. package/dist/components/media-wallet/activate-card.cjs +1 -1
  316. package/dist/components/media-wallet/activate-card.cjs.map +1 -1
  317. package/dist/components/media-wallet/activate-card.js +1 -1
  318. package/dist/components/media-wallet/activate-card.js.map +1 -1
  319. package/dist/components/media-wallet/media-wallet-activity.cjs +1 -1
  320. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  321. package/dist/components/media-wallet/media-wallet-activity.js +1 -1
  322. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  323. package/dist/components/media-wallet/media-wallet-send.cjs +1 -1
  324. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  325. package/dist/components/media-wallet/media-wallet-send.js +1 -1
  326. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  327. package/dist/components/media-wallet/nft-strip.cjs +1 -1
  328. package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
  329. package/dist/components/media-wallet/nft-strip.js +1 -1
  330. package/dist/components/media-wallet/nft-strip.js.map +1 -1
  331. package/dist/components/media-wallet/receive-card.cjs +1 -1
  332. package/dist/components/media-wallet/receive-card.cjs.map +1 -1
  333. package/dist/components/media-wallet/receive-card.js +1 -1
  334. package/dist/components/media-wallet/receive-card.js.map +1 -1
  335. package/dist/components/nav-command-menu.cjs.map +1 -1
  336. package/dist/components/nav-command-menu.js.map +1 -1
  337. package/dist/components/panel.cjs.map +1 -1
  338. package/dist/components/panel.d.cts +0 -4
  339. package/dist/components/panel.d.ts +0 -4
  340. package/dist/components/panel.js.map +1 -1
  341. package/dist/components/pop-manage-page.cjs +3 -3
  342. package/dist/components/pop-manage-page.cjs.map +1 -1
  343. package/dist/components/pop-manage-page.js +3 -3
  344. package/dist/components/pop-manage-page.js.map +1 -1
  345. package/dist/components/portfolio-collections.cjs +2 -2
  346. package/dist/components/portfolio-collections.cjs.map +1 -1
  347. package/dist/components/portfolio-collections.js +2 -2
  348. package/dist/components/portfolio-collections.js.map +1 -1
  349. package/dist/components/portfolio-orders.cjs +2 -2
  350. package/dist/components/portfolio-orders.cjs.map +1 -1
  351. package/dist/components/portfolio-orders.js +2 -2
  352. package/dist/components/portfolio-orders.js.map +1 -1
  353. package/dist/components/portfolio-shell.cjs +1 -1
  354. package/dist/components/portfolio-shell.cjs.map +1 -1
  355. package/dist/components/portfolio-shell.js +1 -1
  356. package/dist/components/portfolio-shell.js.map +1 -1
  357. package/dist/components/purchase-panel.cjs.map +1 -1
  358. package/dist/components/purchase-panel.d.cts +0 -11
  359. package/dist/components/purchase-panel.d.ts +0 -11
  360. package/dist/components/purchase-panel.js.map +1 -1
  361. package/dist/components/remix-browse-page.cjs +2 -2
  362. package/dist/components/remix-browse-page.cjs.map +1 -1
  363. package/dist/components/remix-browse-page.js +2 -2
  364. package/dist/components/remix-browse-page.js.map +1 -1
  365. package/dist/components/report-dialog.cjs +1 -1
  366. package/dist/components/report-dialog.cjs.map +1 -1
  367. package/dist/components/report-dialog.js +1 -1
  368. package/dist/components/report-dialog.js.map +1 -1
  369. package/dist/components/rewards/leaderboard-panel.cjs +1 -1
  370. package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
  371. package/dist/components/rewards/leaderboard-panel.js +1 -1
  372. package/dist/components/rewards/leaderboard-panel.js.map +1 -1
  373. package/dist/components/rewards/rewards-dashboard.cjs +3 -3
  374. package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
  375. package/dist/components/rewards/rewards-dashboard.js +3 -3
  376. package/dist/components/rewards/rewards-dashboard.js.map +1 -1
  377. package/dist/components/rewards-page.cjs +1 -1
  378. package/dist/components/rewards-page.cjs.map +1 -1
  379. package/dist/components/rewards-page.js +1 -1
  380. package/dist/components/rewards-page.js.map +1 -1
  381. package/dist/components/rewards-section.cjs +3 -3
  382. package/dist/components/rewards-section.cjs.map +1 -1
  383. package/dist/components/rewards-section.js +3 -3
  384. package/dist/components/rewards-section.js.map +1 -1
  385. package/dist/components/search-page.cjs +2 -2
  386. package/dist/components/search-page.cjs.map +1 -1
  387. package/dist/components/search-page.js +2 -2
  388. package/dist/components/search-page.js.map +1 -1
  389. package/dist/components/service-collections-page.cjs +2 -2
  390. package/dist/components/service-collections-page.cjs.map +1 -1
  391. package/dist/components/service-collections-page.js +2 -2
  392. package/dist/components/service-collections-page.js.map +1 -1
  393. package/dist/components/sponsorship-offer-page.cjs +1 -1
  394. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  395. package/dist/components/sponsorship-offer-page.js +1 -1
  396. package/dist/components/sponsorship-offer-page.js.map +1 -1
  397. package/dist/components/sponsorship-offers-page.cjs +4 -4
  398. package/dist/components/sponsorship-offers-page.cjs.map +1 -1
  399. package/dist/components/sponsorship-offers-page.js +4 -4
  400. package/dist/components/sponsorship-offers-page.js.map +1 -1
  401. package/dist/components/transaction-success.cjs.map +1 -1
  402. package/dist/components/transaction-success.d.cts +0 -1
  403. package/dist/components/transaction-success.d.ts +0 -1
  404. package/dist/components/transaction-success.js.map +1 -1
  405. package/dist/components/transfer-collection-ownership.cjs +2 -2
  406. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  407. package/dist/components/transfer-collection-ownership.js +2 -2
  408. package/dist/components/transfer-collection-ownership.js.map +1 -1
  409. package/dist/components/transfer-dialog.cjs +2 -2
  410. package/dist/components/transfer-dialog.cjs.map +1 -1
  411. package/dist/components/transfer-dialog.js +2 -2
  412. package/dist/components/transfer-dialog.js.map +1 -1
  413. package/dist/components/wallet/self-fund-consent-dialog.cjs +2 -2
  414. package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
  415. package/dist/components/wallet/self-fund-consent-dialog.js +2 -2
  416. package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
  417. package/dist/data/brand.cjs.map +1 -1
  418. package/dist/data/brand.js.map +1 -1
  419. package/dist/data/ip-templates.cjs +9 -9
  420. package/dist/data/ip-templates.cjs.map +1 -1
  421. package/dist/data/ip-templates.js +9 -9
  422. package/dist/data/ip-templates.js.map +1 -1
  423. package/dist/data/ip.cjs +5 -5
  424. package/dist/data/ip.cjs.map +1 -1
  425. package/dist/data/ip.js +5 -5
  426. package/dist/data/ip.js.map +1 -1
  427. package/dist/data/launchpad-services.cjs +38 -38
  428. package/dist/data/launchpad-services.cjs.map +1 -1
  429. package/dist/data/launchpad-services.js +38 -38
  430. package/dist/data/launchpad-services.js.map +1 -1
  431. package/dist/draft-CuU1m9P3.d.cts +85 -0
  432. package/dist/draft-DaQIVRMX.d.ts +85 -0
  433. package/dist/i18n/catalog/pt.cjs +303 -289
  434. package/dist/i18n/catalog/pt.cjs.map +1 -1
  435. package/dist/i18n/catalog/pt.js +303 -289
  436. package/dist/i18n/catalog/pt.js.map +1 -1
  437. package/dist/index.cjs.map +1 -1
  438. package/dist/index.d.cts +4 -4
  439. package/dist/index.d.ts +4 -4
  440. package/dist/index.js.map +1 -1
  441. package/dist/medialane.css +1 -5
  442. package/dist/utils/address.cjs.map +1 -1
  443. package/dist/utils/address.js.map +1 -1
  444. package/dist/utils/asset-accents.cjs.map +1 -1
  445. package/dist/utils/asset-accents.js.map +1 -1
  446. package/dist/utils/describe-error.cjs +8 -9
  447. package/dist/utils/describe-error.cjs.map +1 -1
  448. package/dist/utils/describe-error.d.cts +5 -5
  449. package/dist/utils/describe-error.d.ts +5 -5
  450. package/dist/utils/describe-error.js +8 -9
  451. package/dist/utils/describe-error.js.map +1 -1
  452. package/dist/utils/drop/actions.cjs +1 -1
  453. package/dist/utils/drop/actions.cjs.map +1 -1
  454. package/dist/utils/drop/actions.js +1 -1
  455. package/dist/utils/drop/actions.js.map +1 -1
  456. package/dist/utils/drop/allowlist.cjs.map +1 -1
  457. package/dist/utils/drop/allowlist.d.cts +0 -2
  458. package/dist/utils/drop/allowlist.d.ts +0 -2
  459. package/dist/utils/drop/allowlist.js.map +1 -1
  460. package/dist/utils/drop/claim-proof.cjs.map +1 -1
  461. package/dist/utils/drop/claim-proof.d.cts +0 -5
  462. package/dist/utils/drop/claim-proof.d.ts +0 -5
  463. package/dist/utils/drop/claim-proof.js.map +1 -1
  464. package/dist/utils/drop/draft-store.cjs +133 -0
  465. package/dist/utils/drop/draft-store.cjs.map +1 -0
  466. package/dist/utils/drop/draft-store.d.cts +22 -0
  467. package/dist/utils/drop/draft-store.d.ts +22 -0
  468. package/dist/utils/drop/draft-store.js +107 -0
  469. package/dist/utils/drop/draft-store.js.map +1 -0
  470. package/dist/utils/drop/draft.cjs +61 -34
  471. package/dist/utils/drop/draft.cjs.map +1 -1
  472. package/dist/utils/drop/draft.d.cts +2 -40
  473. package/dist/utils/drop/draft.d.ts +2 -40
  474. package/dist/utils/drop/draft.js +57 -33
  475. package/dist/utils/drop/draft.js.map +1 -1
  476. package/dist/utils/drop/metadata.cjs +35 -16
  477. package/dist/utils/drop/metadata.cjs.map +1 -1
  478. package/dist/utils/drop/metadata.d.cts +3 -33
  479. package/dist/utils/drop/metadata.d.ts +3 -33
  480. package/dist/utils/drop/metadata.js +33 -15
  481. package/dist/utils/drop/metadata.js.map +1 -1
  482. package/dist/utils/drop/preview.cjs.map +1 -1
  483. package/dist/utils/drop/preview.d.cts +0 -1
  484. package/dist/utils/drop/preview.d.ts +0 -1
  485. package/dist/utils/drop/preview.js.map +1 -1
  486. package/dist/utils/drop/receipt.cjs.map +1 -1
  487. package/dist/utils/drop/receipt.d.cts +0 -1
  488. package/dist/utils/drop/receipt.d.ts +0 -1
  489. package/dist/utils/drop/receipt.js.map +1 -1
  490. package/dist/utils/drop/sale.cjs.map +1 -1
  491. package/dist/utils/drop/sale.d.cts +0 -4
  492. package/dist/utils/drop/sale.d.ts +0 -4
  493. package/dist/utils/drop/sale.js.map +1 -1
  494. package/dist/utils/drop/upload.cjs.map +1 -1
  495. package/dist/utils/drop/upload.d.cts +0 -1
  496. package/dist/utils/drop/upload.d.ts +0 -1
  497. package/dist/utils/drop/upload.js.map +1 -1
  498. package/dist/utils/drop/use-now.cjs.map +1 -1
  499. package/dist/utils/drop/use-now.d.cts +0 -1
  500. package/dist/utils/drop/use-now.d.ts +0 -1
  501. package/dist/utils/drop/use-now.js.map +1 -1
  502. package/dist/utils/drop/view.cjs.map +1 -1
  503. package/dist/utils/drop/view.d.cts +0 -2
  504. package/dist/utils/drop/view.d.ts +0 -2
  505. package/dist/utils/drop/view.js.map +1 -1
  506. package/dist/utils/empty-messages.cjs +1 -1
  507. package/dist/utils/empty-messages.cjs.map +1 -1
  508. package/dist/utils/empty-messages.js +1 -1
  509. package/dist/utils/empty-messages.js.map +1 -1
  510. package/dist/utils/ipfs-gateway-fallback.cjs.map +1 -1
  511. package/dist/utils/ipfs-gateway-fallback.d.cts +0 -16
  512. package/dist/utils/ipfs-gateway-fallback.d.ts +0 -16
  513. package/dist/utils/ipfs-gateway-fallback.js.map +1 -1
  514. package/dist/utils/ipfs-upload.cjs +1 -1
  515. package/dist/utils/ipfs-upload.cjs.map +1 -1
  516. package/dist/utils/ipfs-upload.d.cts +1 -1
  517. package/dist/utils/ipfs-upload.d.ts +1 -1
  518. package/dist/utils/ipfs-upload.js +1 -1
  519. package/dist/utils/ipfs-upload.js.map +1 -1
  520. package/dist/utils/proxy-body.cjs.map +1 -1
  521. package/dist/utils/proxy-body.js.map +1 -1
  522. package/dist/utils/success-messages.cjs +8 -8
  523. package/dist/utils/success-messages.cjs.map +1 -1
  524. package/dist/utils/success-messages.js +8 -8
  525. package/dist/utils/success-messages.js.map +1 -1
  526. package/dist/utils/time.cjs.map +1 -1
  527. package/dist/utils/time.js.map +1 -1
  528. package/dist/utils/use-drops.cjs.map +1 -1
  529. package/dist/utils/use-drops.d.cts +0 -2
  530. package/dist/utils/use-drops.d.ts +0 -2
  531. package/dist/utils/use-drops.js.map +1 -1
  532. package/dist/utils/use-payment-options.cjs.map +1 -1
  533. package/dist/utils/use-payment-options.d.cts +0 -7
  534. package/dist/utils/use-payment-options.d.ts +0 -7
  535. package/dist/utils/use-payment-options.js.map +1 -1
  536. package/dist/utils/use-pop.cjs.map +1 -1
  537. package/dist/utils/use-pop.d.cts +0 -1
  538. package/dist/utils/use-pop.d.ts +0 -1
  539. package/dist/utils/use-pop.js.map +1 -1
  540. package/dist/utils/use-tiers.cjs.map +1 -1
  541. package/dist/utils/use-tiers.d.cts +0 -3
  542. package/dist/utils/use-tiers.d.ts +0 -3
  543. package/dist/utils/use-tiers.js.map +1 -1
  544. package/dist/utils/wallet-error.cjs.map +1 -1
  545. package/dist/utils/wallet-error.js.map +1 -1
  546. package/dist/utils/wallet-failure.cjs +8 -8
  547. package/dist/utils/wallet-failure.cjs.map +1 -1
  548. package/dist/utils/wallet-failure.js +8 -8
  549. package/dist/utils/wallet-failure.js.map +1 -1
  550. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-create-form.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport * as z from \"zod\";\nimport { ImagePlus, Loader2, X } from \"lucide-react\";\nimport { buildCollectionMetadata, collectionHref, getCoordinates, profileHref } from \"@medialane/sdk\";\nimport { acceptFor } from \"../../utils/upload-limits.js\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { createdCollectionAddress, createdCollectionFromReceipt, deployedCollectionFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { ActionButton } from \"../action-button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { ExternalLinkField } from \"../external-link-field.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { serviceCollectionIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport type { CollectionCreatePreset } from \"./collection-create-presets.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst schema = z.object({\n name: z.string().min(1, \"Name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n});\ntype FormValues = z.infer<typeof schema>;\n\nexport interface CollectionCreateFormProps {\n preset: CollectionCreatePreset;\n aside?: ReactNode;\n}\n\nexport function CollectionCreateForm({ preset, aside }: CollectionCreateFormProps) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded\") });\n const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n const [viewHref, setViewHref] = useState<string | null>(null);\n const Icon = preset.icon;\n\n const form = useForm<FormValues>({\n resolver: zodResolver(schema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\" },\n });\n const name = form.watch(\"name\");\n\n useEffect(() => {\n if (!preset.suggestSymbol) return;\n const suggested = suggestLaunchpadSymbol(name);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, name, form, preset.suggestSymbol]);\n\n const deployedAddress =\n tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;\n const createdId =\n tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates(\"STARKNET\").collection721)?.collectionId ?? null : null;\n\n useEffect(() => {\n if (tx.phase !== \"success\") return;\n let alive = true;\n const client = app.getClient();\n if (deployedAddress) {\n setViewHref(collectionHref(\"STARKNET\", deployedAddress));\n if (preset.registerAfterDeploy) void client.api.collections.register(deployedAddress).catch(() => {});\n } else if (createdId) {\n createdCollectionAddress(client.provider, getCoordinates(\"STARKNET\").collection721, createdId)\n .then((address) => {\n if (alive && address) setViewHref(collectionHref(\"STARKNET\", address));\n })\n .catch(() => {});\n }\n return () => {\n alive = false;\n };\n }, [tx.phase, deployedAddress, createdId, app, preset.registerAfterDeploy]);\n\n const handleAgain = () => {\n tx.reset();\n setViewHref(null);\n setAutoSymbol(\"\");\n form.reset();\n clearImage();\n };\n\n const onSubmit = (values: FormValues) => {\n if (imageFile && !imageUri && !imageUploading) return;\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(\n api,\n buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n );\n await runIntentCalls(signer, () =>\n serviceCollectionIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: preset.service ?? undefined,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const { copy } = preset;\n const busy = tx.phase !== \"idle\" || imageUploading;\n const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });\n\n return (\n <WalletRequired icon={Icon} iconClassName={preset.iconClass} title={t(preset.signedOut.title)} description={t(preset.signedOut.description)}>\n <TransactionDialog tx={tx} title={t(preset.dialog.title)} workingLabel={t(preset.dialog.workingLabel)} firstStepLabel={t(preset.dialog.firstStepLabel)}>\n <TransactionSuccess\n name={name || t(preset.success.fallbackName)}\n image={imagePreview}\n title={t(preset.success.title)}\n description={t(preset.success.description)}\n actions={[actions.primary, actions.secondary, { label: t(preset.success.againLabel), onClick: handleAgain }]}\n >\n <RewardEarned actionType={t(preset.success.reward)} />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Icon className=\"h-4 w-4 text-white\" />}\n title={t(preset.shell.title)}\n subtitle={t(preset.shell.subtitle)}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={name}\n collection={form.watch(\"symbol\") || preset.cardFallbackSymbol}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">{copy.imageHeading}</p>\n <div className=\"flex items-start gap-4\">\n <div\n className=\"relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Upload ${copy.imageHeading.toLowerCase()}`}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n if (!imageUploading) fileInputRef.current?.click();\n }\n }}\n >\n {imagePreview ? (\n <Image src={imagePreview} alt={copy.imageHeading} fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-8 w-8 text-muted-foreground\" />\n )}\n {imageUploading && (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-5 w-5 animate-spin text-primary\" />\n </div>\n )}\n </div>\n <div className=\"space-y-2 flex-1\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) void handleImageSelect(f);\n }}\n />\n <Button type=\"button\" variant=\"soft\" size=\"sm\" disabled={imageUploading} onClick={() => fileInputRef.current?.click()}>\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n {t(\"Uploading…\")}\n </>\n ) : imageFile ? (\n t(\"Change image\")\n ) : (\n t(\"Upload image\")\n )}\n </Button>\n {imageFile && (\n <button\n type=\"button\"\n onClick={clearImage}\n className=\"flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors\"\n >\n <X className=\"h-3 w-3\" /> {t(\"Remove\")}\n </button>\n )}\n <p className=\"text-xs text-muted-foreground\">\n {t(\"JPG, PNG, GIF, SVG or WebP\")}\n {imageUri && <span className=\"ml-2 text-brand-blue font-medium\">{t(\"✓ Uploaded\")}</span>}\n </p>\n {copy.imageHelp && <p className=\"text-xs text-muted-foreground\">{copy.imageHelp}</p>}\n {uploadError && <p className=\"text-xs text-destructive\">{uploadError}</p>}\n </div>\n </div>\n </div>\n\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{copy.nameLabel}</FormLabel>\n <FormControl><Input placeholder={copy.namePlaceholder} {...field} /></FormControl>\n <FormDescription>{copy.nameHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"symbol\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Symbol *\")}</FormLabel>\n <FormControl>\n <Input\n placeholder={copy.symbolPlaceholder}\n maxLength={FIELD_LIMITS.symbol}\n {...field}\n onChange={(e) => field.onChange(e.target.value.toUpperCase())}\n />\n </FormControl>\n <FormDescription>{copy.symbolHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Textarea placeholder={copy.descriptionPlaceholder} rows={3} {...field} /></FormControl>\n {copy.descriptionHint && <FormDescription>{copy.descriptionHint}</FormDescription>}\n <FormMessage />\n </FormItem>\n )} />\n\n <ExternalLinkField form={form} address={walletAddress} />\n\n <ActionButton solid big type=\"submit\" disabled={busy} icon={<Icon className=\"h-4 w-4\" />} className=\"w-full\"> {copy.submit} </ActionButton>\n {copy.footnotes.map((note) => (\n <p key={note} className=\"text-xs text-center text-muted-foreground\">{note}</p>\n ))}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwJU;AAtJV,mBAAoD;AACpD,6BAAwB;AACxB,iBAA4B;AAC5B,QAAmB;AACnB,0BAAsC;AACtC,iBAAqF;AACrF,2BAA0B;AAC1B,0BAA6B;AAC7B,sBAAsG;AACtG,mBAAkB;AAClB,oBAAuB;AACvB,2BAA6B;AAC7B,mBAAsB;AACtB,sBAAyB;AACzB,kBAAgG;AAChG,+BAAgC;AAChC,iCAAmC;AACnC,iCAAkC;AAClC,uCAAwC;AACxC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,8BAA+B;AAC/B,+BAAwC;AACxC,yBAAiC;AACjC,6BAA+B;AAC/B,wCAAwC;AACxC,6BAAyC;AACzC,gCAAuC;AACvC,6BAA0C;AAE1C,sBAAqB;AAErB,MAAM,SAAS,EAAE,OAAO;AAAA,EACtB,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,eAAe,EAAE,IAAI,iCAAa,IAAI;AAAA,EAC9D,YAAQ,oCAAY;AAAA,EACpB,aAAa,EAAE,OAAO,EAAE,IAAI,iCAAa,WAAW,EAAE,SAAS;AAAA,EAC/D,mBAAe,qCAAa;AAC9B,CAAC;AAQM,SAAS,qBAAqB,EAAE,QAAQ,MAAM,GAA8B;AACjF,QAAM,QAAI,sBAAK;AACf,QAAM,UAAM,sCAAgB;AAC5B,QAAM,gBAAgB,IAAI;AAC1B,QAAM,SAAK,uCAAe;AAC1B,QAAM,aAAS,2DAAwB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAC9E,QAAM,EAAE,WA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SAAS,MAAK,eAAc,QAAQ,CAAC,EAAE,MAAM,MACpE,6CAAC,wBACC;AAAA,yDAAC,yBAAW;AAAA,gBAAE,aAAa;AAAA,cAAE;AAAA,cAAC,4CAAC,UAAK,WAAU,qCAAqC,YAAE,YAAY,GAAE;AAAA,eAAO;AAAA,YAC1G,4CAAC,2BAAY,sDAAC,4BAAS,aAAa,KAAK,wBAAwB,MAAM,GAAI,GAAG,OAAO,GAAE;AAAA,YACtF,KAAK,mBAAmB,4CAAC,+BAAiB,eAAK,iBAAgB;AAAA,YAChE,4CAAC,2BAAY;AAAA,aACf,GACC;AAAA,UAEH,4CAAC,gDAAkB,MAAY,SAAS,eAAe;AAAA,UAEvD,6CAAC,qCAAa,OAAK,MAAC,KAAG,MAAC,MAAK,UAAS,UAAU,MAAM,MAAM,4CAAC,QAAK,WAAU,WAAU,GAAI,WAAU,UAAS;AAAA;AAAA,YAAe,KAAK;AAAA,YAAO;AAAA,aAAY;AAAA,UACnJ,KAAK,UAAU,IAAI,CAAC,SACnB,4CAAC,OAAa,WAAU,6CAA6C,kBAA7D,IAAkE,CAC3E;AAAA,WACH,GACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":["Image"]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-form.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport * as z from \"zod\";\nimport { ImagePlus, Loader2, X } from \"lucide-react\";\nimport { buildCollectionMetadata, collectionHref, getCoordinates, profileHref } from \"@medialane/sdk\";\nimport { acceptFor } from \"../../utils/upload-limits.js\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { createdCollectionAddress, createdCollectionFromReceipt, deployedCollectionFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { ActionButton } from \"../action-button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { ExternalLinkField } from \"../external-link-field.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { serviceCollectionIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport type { CollectionCreatePreset } from \"./collection-create-presets.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst schema = z.object({\n name: z.string().min(1, \"Name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n});\ntype FormValues = z.infer<typeof schema>;\n\nexport interface CollectionCreateFormProps {\n preset: CollectionCreatePreset;\n aside?: ReactNode;\n}\n\nexport function CollectionCreateForm({ preset, aside }: CollectionCreateFormProps) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded\") });\n const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n const [viewHref, setViewHref] = useState<string | null>(null);\n const Icon = preset.icon;\n\n const form = useForm<FormValues>({\n resolver: zodResolver(schema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\" },\n });\n const name = form.watch(\"name\");\n\n useEffect(() => {\n if (!preset.suggestSymbol) return;\n const suggested = suggestLaunchpadSymbol(name);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, name, form, preset.suggestSymbol]);\n\n const deployedAddress =\n tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;\n const createdId =\n tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates(\"STARKNET\").collection721)?.collectionId ?? null : null;\n\n useEffect(() => {\n if (tx.phase !== \"success\") return;\n let alive = true;\n const client = app.getClient();\n if (deployedAddress) {\n setViewHref(collectionHref(\"STARKNET\", deployedAddress));\n if (preset.registerAfterDeploy) void client.api.collections.register(deployedAddress).catch(() => {});\n } else if (createdId) {\n createdCollectionAddress(client.provider, getCoordinates(\"STARKNET\").collection721, createdId)\n .then((address) => {\n if (alive && address) setViewHref(collectionHref(\"STARKNET\", address));\n })\n .catch(() => {});\n }\n return () => {\n alive = false;\n };\n }, [tx.phase, deployedAddress, createdId, app, preset.registerAfterDeploy]);\n\n const handleAgain = () => {\n tx.reset();\n setViewHref(null);\n setAutoSymbol(\"\");\n form.reset();\n clearImage();\n };\n\n const onSubmit = (values: FormValues) => {\n if (imageFile && !imageUri && !imageUploading) return;\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(\n api,\n buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n );\n await runIntentCalls(signer, () =>\n serviceCollectionIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: preset.service ?? undefined,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const { copy } = preset;\n const busy = tx.phase !== \"idle\" || imageUploading;\n const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });\n\n return (\n <WalletRequired icon={Icon} iconClassName={preset.iconClass} title={t(preset.signedOut.title)} description={t(preset.signedOut.description)}>\n <TransactionDialog tx={tx} title={t(preset.dialog.title)} workingLabel={t(preset.dialog.workingLabel)} firstStepLabel={t(preset.dialog.firstStepLabel)}>\n <TransactionSuccess\n name={name || t(preset.success.fallbackName)}\n image={imagePreview}\n title={t(preset.success.title)}\n description={t(preset.success.description)}\n actions={[actions.primary, actions.secondary, { label: t(preset.success.againLabel), onClick: handleAgain }]}\n >\n <RewardEarned actionType={t(preset.success.reward)} />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Icon className=\"h-4 w-4 text-white\" />}\n title={t(preset.shell.title)}\n subtitle={t(preset.shell.subtitle)}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={name}\n collection={form.watch(\"symbol\") || preset.cardFallbackSymbol}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">{copy.imageHeading}</p>\n <div className=\"flex items-start gap-4\">\n <div\n className=\"relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Upload ${copy.imageHeading.toLowerCase()}`}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n if (!imageUploading) fileInputRef.current?.click();\n }\n }}\n >\n {imagePreview ? (\n <Image src={imagePreview} alt={copy.imageHeading} fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-8 w-8 text-muted-foreground\" />\n )}\n {imageUploading && (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-5 w-5 animate-spin text-primary\" />\n </div>\n )}\n </div>\n <div className=\"space-y-2 flex-1\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) void handleImageSelect(f);\n }}\n />\n <Button type=\"button\" variant=\"soft\" size=\"sm\" disabled={imageUploading} onClick={() => fileInputRef.current?.click()}>\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n {t(\"Uploading…\")}\n </>\n ) : imageFile ? (\n t(\"Change image\")\n ) : (\n t(\"Upload image\")\n )}\n </Button>\n {imageFile && (\n <button\n type=\"button\"\n onClick={clearImage}\n className=\"flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors\"\n >\n <X className=\"h-3 w-3\" /> {t(\"Remove\")}\n </button>\n )}\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Image files\")}\n {imageUri && <span className=\"ml-2 text-brand-blue font-medium\">{t(\"✓ Uploaded\")}</span>}\n </p>\n {copy.imageHelp && <p className=\"text-xs text-muted-foreground\">{copy.imageHelp}</p>}\n {uploadError && <p className=\"text-xs text-destructive\">{uploadError}</p>}\n </div>\n </div>\n </div>\n\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{copy.nameLabel}</FormLabel>\n <FormControl><Input placeholder={copy.namePlaceholder} {...field} /></FormControl>\n <FormDescription>{copy.nameHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"symbol\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Symbol *\")}</FormLabel>\n <FormControl>\n <Input\n placeholder={copy.symbolPlaceholder}\n maxLength={FIELD_LIMITS.symbol}\n {...field}\n onChange={(e) => field.onChange(e.target.value.toUpperCase())}\n />\n </FormControl>\n <FormDescription>{copy.symbolHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Textarea placeholder={copy.descriptionPlaceholder} rows={3} {...field} /></FormControl>\n {copy.descriptionHint && <FormDescription>{copy.descriptionHint}</FormDescription>}\n <FormMessage />\n </FormItem>\n )} />\n\n <ExternalLinkField form={form} address={walletAddress} />\n\n <ActionButton solid big type=\"submit\" disabled={busy} icon={<Icon className=\"h-4 w-4\" />} className=\"w-full\"> {copy.submit} </ActionButton>\n {copy.footnotes.map((note) => (\n <p key={note} className=\"text-xs text-center text-muted-foreground\">{note}</p>\n ))}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwJU;AAtJV,mBAAoD;AACpD,6BAAwB;AACxB,iBAA4B;AAC5B,QAAmB;AACnB,0BAAsC;AACtC,iBAAqF;AACrF,2BAA0B;AAC1B,0BAA6B;AAC7B,sBAAsG;AACtG,mBAAkB;AAClB,oBAAuB;AACvB,2BAA6B;AAC7B,mBAAsB;AACtB,sBAAyB;AACzB,kBAAgG;AAChG,+BAAgC;AAChC,iCAAmC;AACnC,iCAAkC;AAClC,uCAAwC;AACxC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,8BAA+B;AAC/B,+BAAwC;AACxC,yBAAiC;AACjC,6BAA+B;AAC/B,wCAAwC;AACxC,6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,GACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":["Image"]}
@@ -209,7 +209,7 @@ function CollectionCreateForm({ preset, aside }) {
209
209
  }
210
210
  ),
211
211
  /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
212
- t("JPG, PNG, GIF, SVG or WebP"),
212
+ t("Image files"),
213
213
  imageUri && /* @__PURE__ */ jsx("span", { className: "ml-2 text-brand-blue font-medium", children: t("\u2713 Uploaded") })
214
214
  ] }),
215
215
  copy.imageHelp && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: copy.imageHelp }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-create-form.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport * as z from \"zod\";\nimport { ImagePlus, Loader2, X } from \"lucide-react\";\nimport { buildCollectionMetadata, collectionHref, getCoordinates, profileHref } from \"@medialane/sdk\";\nimport { acceptFor } from \"../../utils/upload-limits.js\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { createdCollectionAddress, createdCollectionFromReceipt, deployedCollectionFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { ActionButton } from \"../action-button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { ExternalLinkField } from \"../external-link-field.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { serviceCollectionIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport type { CollectionCreatePreset } from \"./collection-create-presets.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst schema = z.object({\n name: z.string().min(1, \"Name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n});\ntype FormValues = z.infer<typeof schema>;\n\nexport interface CollectionCreateFormProps {\n preset: CollectionCreatePreset;\n aside?: ReactNode;\n}\n\nexport function CollectionCreateForm({ preset, aside }: CollectionCreateFormProps) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded\") });\n const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n const [viewHref, setViewHref] = useState<string | null>(null);\n const Icon = preset.icon;\n\n const form = useForm<FormValues>({\n resolver: zodResolver(schema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\" },\n });\n const name = form.watch(\"name\");\n\n useEffect(() => {\n if (!preset.suggestSymbol) return;\n const suggested = suggestLaunchpadSymbol(name);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, name, form, preset.suggestSymbol]);\n\n const deployedAddress =\n tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;\n const createdId =\n tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates(\"STARKNET\").collection721)?.collectionId ?? null : null;\n\n useEffect(() => {\n if (tx.phase !== \"success\") return;\n let alive = true;\n const client = app.getClient();\n if (deployedAddress) {\n setViewHref(collectionHref(\"STARKNET\", deployedAddress));\n if (preset.registerAfterDeploy) void client.api.collections.register(deployedAddress).catch(() => {});\n } else if (createdId) {\n createdCollectionAddress(client.provider, getCoordinates(\"STARKNET\").collection721, createdId)\n .then((address) => {\n if (alive && address) setViewHref(collectionHref(\"STARKNET\", address));\n })\n .catch(() => {});\n }\n return () => {\n alive = false;\n };\n }, [tx.phase, deployedAddress, createdId, app, preset.registerAfterDeploy]);\n\n const handleAgain = () => {\n tx.reset();\n setViewHref(null);\n setAutoSymbol(\"\");\n form.reset();\n clearImage();\n };\n\n const onSubmit = (values: FormValues) => {\n if (imageFile && !imageUri && !imageUploading) return;\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(\n api,\n buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n );\n await runIntentCalls(signer, () =>\n serviceCollectionIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: preset.service ?? undefined,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const { copy } = preset;\n const busy = tx.phase !== \"idle\" || imageUploading;\n const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });\n\n return (\n <WalletRequired icon={Icon} iconClassName={preset.iconClass} title={t(preset.signedOut.title)} description={t(preset.signedOut.description)}>\n <TransactionDialog tx={tx} title={t(preset.dialog.title)} workingLabel={t(preset.dialog.workingLabel)} firstStepLabel={t(preset.dialog.firstStepLabel)}>\n <TransactionSuccess\n name={name || t(preset.success.fallbackName)}\n image={imagePreview}\n title={t(preset.success.title)}\n description={t(preset.success.description)}\n actions={[actions.primary, actions.secondary, { label: t(preset.success.againLabel), onClick: handleAgain }]}\n >\n <RewardEarned actionType={t(preset.success.reward)} />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Icon className=\"h-4 w-4 text-white\" />}\n title={t(preset.shell.title)}\n subtitle={t(preset.shell.subtitle)}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={name}\n collection={form.watch(\"symbol\") || preset.cardFallbackSymbol}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">{copy.imageHeading}</p>\n <div className=\"flex items-start gap-4\">\n <div\n className=\"relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Upload ${copy.imageHeading.toLowerCase()}`}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n if (!imageUploading) fileInputRef.current?.click();\n }\n }}\n >\n {imagePreview ? (\n <Image src={imagePreview} alt={copy.imageHeading} fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-8 w-8 text-muted-foreground\" />\n )}\n {imageUploading && (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-5 w-5 animate-spin text-primary\" />\n </div>\n )}\n </div>\n <div className=\"space-y-2 flex-1\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) void handleImageSelect(f);\n }}\n />\n <Button type=\"button\" variant=\"soft\" size=\"sm\" disabled={imageUploading} onClick={() => fileInputRef.current?.click()}>\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n {t(\"Uploading…\")}\n </>\n ) : imageFile ? (\n t(\"Change image\")\n ) : (\n t(\"Upload image\")\n )}\n </Button>\n {imageFile && (\n <button\n type=\"button\"\n onClick={clearImage}\n className=\"flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors\"\n >\n <X className=\"h-3 w-3\" /> {t(\"Remove\")}\n </button>\n )}\n <p className=\"text-xs text-muted-foreground\">\n {t(\"JPG, PNG, GIF, SVG or WebP\")}\n {imageUri && <span className=\"ml-2 text-brand-blue font-medium\">{t(\"✓ Uploaded\")}</span>}\n </p>\n {copy.imageHelp && <p className=\"text-xs text-muted-foreground\">{copy.imageHelp}</p>}\n {uploadError && <p className=\"text-xs text-destructive\">{uploadError}</p>}\n </div>\n </div>\n </div>\n\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{copy.nameLabel}</FormLabel>\n <FormControl><Input placeholder={copy.namePlaceholder} {...field} /></FormControl>\n <FormDescription>{copy.nameHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"symbol\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Symbol *\")}</FormLabel>\n <FormControl>\n <Input\n placeholder={copy.symbolPlaceholder}\n maxLength={FIELD_LIMITS.symbol}\n {...field}\n onChange={(e) => field.onChange(e.target.value.toUpperCase())}\n />\n </FormControl>\n <FormDescription>{copy.symbolHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Textarea placeholder={copy.descriptionPlaceholder} rows={3} {...field} /></FormControl>\n {copy.descriptionHint && <FormDescription>{copy.descriptionHint}</FormDescription>}\n <FormMessage />\n </FormItem>\n )} />\n\n <ExternalLinkField form={form} address={walletAddress} />\n\n <ActionButton solid big type=\"submit\" disabled={busy} icon={<Icon className=\"h-4 w-4\" />} className=\"w-full\"> {copy.submit} </ActionButton>\n {copy.footnotes.map((note) => (\n <p key={note} className=\"text-xs text-center text-muted-foreground\">{note}</p>\n ))}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";AAwJU,SASA,UATA,KASA,YATA;AAtJV,SAAS,WAAW,gBAAgC;AACpD,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,YAAY,OAAO;AACnB,SAAS,WAAW,SAAS,SAAS;AACtC,SAAS,yBAAyB,gBAAgB,gBAAgB,mBAAmB;AACrF,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B,8BAA8B,qCAAqC;AACtG,OAAO,WAAW;AAClB,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAC7B,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,MAAM,aAAa,iBAAiB,WAAW,UAAU,WAAW,mBAAmB;AAChG,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,+BAA+B;AACxC,SAAS,gCAAgC;AACzC,SAAS,8BAA8B;AACvC,SAAS,aAAa,oBAAoB;AAE1C,SAAS,YAAY;AAErB,MAAM,SAAS,EAAE,OAAO;AAAA,EACtB,MAAM,EA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BAAC,YACC;AAAA,gCAAC,aAAW,YAAE,UAAU,GAAE;AAAA,YAC1B,oBAAC,eACC;AAAA,cAAC;AAAA;AAAA,gBACC,aAAa,KAAK;AAAA,gBAClB,WAAW,aAAa;AAAA,gBACvB,GAAG;AAAA,gBACJ,UAAU,CAAC,MAAM,MAAM,SAAS,EAAE,OAAO,MAAM,YAAY,CAAC;AAAA;AAAA,YAC9D,GACF;AAAA,YACA,oBAAC,mBAAiB,eAAK,YAAW;AAAA,YAClC,oBAAC,eAAY;AAAA,aACf,GACC;AAAA,UAEH,oBAAC,aAAU,SAAS,KAAK,SAAS,MAAK,eAAc,QAAQ,CAAC,EAAE,MAAM,MACpE,qBAAC,YACC;AAAA,iCAAC,aAAW;AAAA,gBAAE,aAAa;AAAA,cAAE;AAAA,cAAC,oBAAC,UAAK,WAAU,qCAAqC,YAAE,YAAY,GAAE;AAAA,eAAO;AAAA,YAC1G,oBAAC,eAAY,8BAAC,YAAS,aAAa,KAAK,wBAAwB,MAAM,GAAI,GAAG,OAAO,GAAE;AAAA,YACtF,KAAK,mBAAmB,oBAAC,mBAAiB,eAAK,iBAAgB;AAAA,YAChE,oBAAC,eAAY;AAAA,aACf,GACC;AAAA,UAEH,oBAAC,qBAAkB,MAAY,SAAS,eAAe;AAAA,UAEvD,qBAAC,gBAAa,OAAK,MAAC,KAAG,MAAC,MAAK,UAAS,UAAU,MAAM,MAAM,oBAAC,QAAK,WAAU,WAAU,GAAI,WAAU,UAAS;AAAA;AAAA,YAAe,KAAK;AAAA,YAAO;AAAA,aAAY;AAAA,UACnJ,KAAK,UAAU,IAAI,CAAC,SACnB,oBAAC,OAAa,WAAU,6CAA6C,kBAA7D,IAAkE,CAC3E;AAAA,WACH,GACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-form.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport * as z from \"zod\";\nimport { ImagePlus, Loader2, X } from \"lucide-react\";\nimport { buildCollectionMetadata, collectionHref, getCoordinates, profileHref } from \"@medialane/sdk\";\nimport { acceptFor } from \"../../utils/upload-limits.js\";\nimport { FIELD_LIMITS } from \"../../utils/field-limits.js\";\nimport { createdCollectionAddress, createdCollectionFromReceipt, deployedCollectionFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { ActionButton } from \"../action-button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { ExternalLinkField } from \"../external-link-field.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { serviceCollectionIntent } from \"../../utils/launchpad-actions.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { symbolField, webLinkField } from \"../../utils/launchpad-rules.js\";\nimport type { CollectionCreatePreset } from \"./collection-create-presets.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst schema = z.object({\n name: z.string().min(1, \"Name required\").max(FIELD_LIMITS.name),\n symbol: symbolField(),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: webLinkField(),\n});\ntype FormValues = z.infer<typeof schema>;\n\nexport interface CollectionCreateFormProps {\n preset: CollectionCreatePreset;\n aside?: ReactNode;\n}\n\nexport function CollectionCreateForm({ preset, aside }: CollectionCreateFormProps) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded\") });\n const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n const [viewHref, setViewHref] = useState<string | null>(null);\n const Icon = preset.icon;\n\n const form = useForm<FormValues>({\n resolver: zodResolver(schema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\" },\n });\n const name = form.watch(\"name\");\n\n useEffect(() => {\n if (!preset.suggestSymbol) return;\n const suggested = suggestLaunchpadSymbol(name);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, name, form, preset.suggestSymbol]);\n\n const deployedAddress =\n tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;\n const createdId =\n tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates(\"STARKNET\").collection721)?.collectionId ?? null : null;\n\n useEffect(() => {\n if (tx.phase !== \"success\") return;\n let alive = true;\n const client = app.getClient();\n if (deployedAddress) {\n setViewHref(collectionHref(\"STARKNET\", deployedAddress));\n if (preset.registerAfterDeploy) void client.api.collections.register(deployedAddress).catch(() => {});\n } else if (createdId) {\n createdCollectionAddress(client.provider, getCoordinates(\"STARKNET\").collection721, createdId)\n .then((address) => {\n if (alive && address) setViewHref(collectionHref(\"STARKNET\", address));\n })\n .catch(() => {});\n }\n return () => {\n alive = false;\n };\n }, [tx.phase, deployedAddress, createdId, app, preset.registerAfterDeploy]);\n\n const handleAgain = () => {\n tx.reset();\n setViewHref(null);\n setAutoSymbol(\"\");\n form.reset();\n clearImage();\n };\n\n const onSubmit = (values: FormValues) => {\n if (imageFile && !imageUri && !imageUploading) return;\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(\n api,\n buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n );\n await runIntentCalls(signer, () =>\n serviceCollectionIntent(api, {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: preset.service ?? undefined,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const { copy } = preset;\n const busy = tx.phase !== \"idle\" || imageUploading;\n const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });\n\n return (\n <WalletRequired icon={Icon} iconClassName={preset.iconClass} title={t(preset.signedOut.title)} description={t(preset.signedOut.description)}>\n <TransactionDialog tx={tx} title={t(preset.dialog.title)} workingLabel={t(preset.dialog.workingLabel)} firstStepLabel={t(preset.dialog.firstStepLabel)}>\n <TransactionSuccess\n name={name || t(preset.success.fallbackName)}\n image={imagePreview}\n title={t(preset.success.title)}\n description={t(preset.success.description)}\n actions={[actions.primary, actions.secondary, { label: t(preset.success.againLabel), onClick: handleAgain }]}\n >\n <RewardEarned actionType={t(preset.success.reward)} />\n </TransactionSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Icon className=\"h-4 w-4 text-white\" />}\n title={t(preset.shell.title)}\n subtitle={t(preset.shell.subtitle)}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={name}\n collection={form.watch(\"symbol\") || preset.cardFallbackSymbol}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">{copy.imageHeading}</p>\n <div className=\"flex items-start gap-4\">\n <div\n className=\"relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Upload ${copy.imageHeading.toLowerCase()}`}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n if (!imageUploading) fileInputRef.current?.click();\n }\n }}\n >\n {imagePreview ? (\n <Image src={imagePreview} alt={copy.imageHeading} fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-8 w-8 text-muted-foreground\" />\n )}\n {imageUploading && (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-5 w-5 animate-spin text-primary\" />\n </div>\n )}\n </div>\n <div className=\"space-y-2 flex-1\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) void handleImageSelect(f);\n }}\n />\n <Button type=\"button\" variant=\"soft\" size=\"sm\" disabled={imageUploading} onClick={() => fileInputRef.current?.click()}>\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n {t(\"Uploading…\")}\n </>\n ) : imageFile ? (\n t(\"Change image\")\n ) : (\n t(\"Upload image\")\n )}\n </Button>\n {imageFile && (\n <button\n type=\"button\"\n onClick={clearImage}\n className=\"flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors\"\n >\n <X className=\"h-3 w-3\" /> {t(\"Remove\")}\n </button>\n )}\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Image files\")}\n {imageUri && <span className=\"ml-2 text-brand-blue font-medium\">{t(\"✓ Uploaded\")}</span>}\n </p>\n {copy.imageHelp && <p className=\"text-xs text-muted-foreground\">{copy.imageHelp}</p>}\n {uploadError && <p className=\"text-xs text-destructive\">{uploadError}</p>}\n </div>\n </div>\n </div>\n\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{copy.nameLabel}</FormLabel>\n <FormControl><Input placeholder={copy.namePlaceholder} {...field} /></FormControl>\n <FormDescription>{copy.nameHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"symbol\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Symbol *\")}</FormLabel>\n <FormControl>\n <Input\n placeholder={copy.symbolPlaceholder}\n maxLength={FIELD_LIMITS.symbol}\n {...field}\n onChange={(e) => field.onChange(e.target.value.toUpperCase())}\n />\n </FormControl>\n <FormDescription>{copy.symbolHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Textarea placeholder={copy.descriptionPlaceholder} rows={3} {...field} /></FormControl>\n {copy.descriptionHint && <FormDescription>{copy.descriptionHint}</FormDescription>}\n <FormMessage />\n </FormItem>\n )} />\n\n <ExternalLinkField form={form} address={walletAddress} />\n\n <ActionButton solid big type=\"submit\" disabled={busy} icon={<Icon className=\"h-4 w-4\" />} className=\"w-full\"> {copy.submit} </ActionButton>\n {copy.footnotes.map((note) => (\n <p key={note} className=\"text-xs text-center text-muted-foreground\">{note}</p>\n ))}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";AAwJU,SASA,UATA,KASA,YATA;AAtJV,SAAS,WAAW,gBAAgC;AACpD,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,YAAY,OAAO;AACnB,SAAS,WAA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AAY,GAAE;AAAA,eAAO;AAAA,YAC1G,oBAAC,eAAY,8BAAC,YAAS,aAAa,KAAK,wBAAwB,MAAM,GAAI,GAAG,OAAO,GAAE;AAAA,YACtF,KAAK,mBAAmB,oBAAC,mBAAiB,eAAK,iBAAgB;AAAA,YAChE,oBAAC,eAAY;AAAA,aACf,GACC;AAAA,UAEH,oBAAC,qBAAkB,MAAY,SAAS,eAAe;AAAA,UAEvD,qBAAC,gBAAa,OAAK,MAAC,KAAG,MAAC,MAAK,UAAS,UAAU,MAAM,MAAM,oBAAC,QAAK,WAAU,WAAU,GAAI,WAAU,UAAS;AAAA;AAAA,YAAe,KAAK;AAAA,YAAO;AAAA,aAAY;AAAA,UACnJ,KAAK,UAAU,IAAI,CAAC,SACnB,oBAAC,OAAa,WAAU,6CAA6C,kBAA7D,IAAkE,CAC3E;AAAA,WACH,GACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":[]}
@@ -26,13 +26,13 @@ __export(collection_create_presets_exports, {
26
26
  module.exports = __toCommonJS(collection_create_presets_exports);
27
27
  var import_lucide_react = require("lucide-react");
28
28
  var import_translate = require("../../i18n/translate.js");
29
- const FREE = "Free to publish \u2014 protocol fee is zero.";
29
+ const FREE = "Free to publish.";
30
30
  const CLUB_PRESET = {
31
31
  service: "ip-club",
32
32
  icon: import_lucide_react.Users,
33
33
  iconClass: "text-brand-purple",
34
- signedOut: { title: (0, import_translate.msg)("Secure your account to create a club"), description: (0, import_translate.msg)("Create a club, then mint membership cards for your community.") },
35
- shell: { title: (0, import_translate.msg)("Create club"), subtitle: (0, import_translate.msg)("One club \u2014 create membership tiers and mint cards to your community.") },
34
+ signedOut: { title: (0, import_translate.msg)("Secure your account to create a club"), description: (0, import_translate.msg)("Create a club with membership cards.") },
35
+ shell: { title: (0, import_translate.msg)("Create club"), subtitle: (0, import_translate.msg)("One club with many tiers.") },
36
36
  dialog: { title: (0, import_translate.msg)("Create club"), workingLabel: (0, import_translate.msg)("Creating your club\u2026"), firstStepLabel: (0, import_translate.msg)("Prepare metadata") },
37
37
  success: { title: (0, import_translate.msg)("Club created"), description: (0, import_translate.msg)("Each membership you create is recorded onchain under your wallet."), fallbackName: (0, import_translate.msg)("Your club"), reward: (0, import_translate.msg)("create_club"), againLabel: (0, import_translate.msg)("Create another") },
38
38
  cardFallbackSymbol: "Club",
@@ -40,10 +40,10 @@ const CLUB_PRESET = {
40
40
  imageHeading: (0, import_translate.msg)("Club image"),
41
41
  nameLabel: (0, import_translate.msg)("Club name *"),
42
42
  namePlaceholder: (0, import_translate.msg)("My Club"),
43
- nameHint: (0, import_translate.msg)("Shown in wallets, explorers, and on every membership card."),
43
+ nameHint: (0, import_translate.msg)("Shown on every card."),
44
44
  symbolPlaceholder: (0, import_translate.msg)("CLUB"),
45
- symbolHint: (0, import_translate.msg)("Short ticker \u2014 2 to 10 uppercase letters."),
46
- descriptionPlaceholder: (0, import_translate.msg)("Describe your club \u2014 what does membership unlock?"),
45
+ symbolHint: (0, import_translate.msg)("2 to 10 uppercase letters."),
46
+ descriptionPlaceholder: (0, import_translate.msg)("What membership unlocks"),
47
47
  submit: (0, import_translate.msg)("Create club"),
48
48
  footnotes: [FREE]
49
49
  },
@@ -55,8 +55,8 @@ const TICKETS_PRESET = {
55
55
  service: "ip-tickets",
56
56
  icon: import_lucide_react.Ticket,
57
57
  iconClass: "text-brand-blue",
58
- signedOut: { title: (0, import_translate.msg)("Secure your account to create tickets"), description: (0, import_translate.msg)("Create a tickets collection, then mint tickets to your audience.") },
59
- shell: { title: (0, import_translate.msg)("Create ticket collection"), subtitle: (0, import_translate.msg)("One collection \u2014 create tickets and mint them to your audience.") },
58
+ signedOut: { title: (0, import_translate.msg)("Secure your account to create tickets"), description: (0, import_translate.msg)("Create a tickets collection.") },
59
+ shell: { title: (0, import_translate.msg)("Create ticket collection"), subtitle: (0, import_translate.msg)("One collection with many tickets.") },
60
60
  dialog: { title: (0, import_translate.msg)("Create tickets collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Prepare metadata") },
61
61
  success: { title: (0, import_translate.msg)("Ticket collection created"), description: (0, import_translate.msg)("Each ticket you mint into it is recorded onchain under your wallet."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_ticket_collection"), againLabel: (0, import_translate.msg)("Create another") },
62
62
  cardFallbackSymbol: "Tickets",
@@ -64,10 +64,10 @@ const TICKETS_PRESET = {
64
64
  imageHeading: (0, import_translate.msg)("Collection image"),
65
65
  nameLabel: (0, import_translate.msg)("Collection name *"),
66
66
  namePlaceholder: (0, import_translate.msg)("My tickets"),
67
- nameHint: (0, import_translate.msg)("Shown in wallets, explorers, and on every ticket."),
67
+ nameHint: (0, import_translate.msg)("Shown on every ticket."),
68
68
  symbolPlaceholder: (0, import_translate.msg)("TIX"),
69
- symbolHint: (0, import_translate.msg)("Short ticker \u2014 2 to 10 uppercase letters."),
70
- descriptionPlaceholder: (0, import_translate.msg)("Describe your tickets \u2014 what do they admit or unlock?"),
69
+ symbolHint: (0, import_translate.msg)("2 to 10 uppercase letters."),
70
+ descriptionPlaceholder: (0, import_translate.msg)("What the tickets unlock"),
71
71
  submit: (0, import_translate.msg)("Create ticket collection"),
72
72
  footnotes: [FREE]
73
73
  },
@@ -80,7 +80,7 @@ const EDITIONS_PRESET = {
80
80
  icon: import_lucide_react.Layers,
81
81
  iconClass: "text-brand-purple",
82
82
  signedOut: { title: (0, import_translate.msg)("Secure your account to create a collection"), description: (0, import_translate.msg)("Create a collection where each piece can have multiple editions.") },
83
- shell: { title: (0, import_translate.msg)("Create an edition collection"), subtitle: (0, import_translate.msg)("Create a collection where each piece can have multiple editions \u2014 free to publish, and it's yours.") },
83
+ shell: { title: (0, import_translate.msg)("Create an edition collection"), subtitle: (0, import_translate.msg)("A collection with many editions per piece.") },
84
84
  dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Prepare metadata") },
85
85
  success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each asset you mint into it carries its own license terms."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_collection"), againLabel: (0, import_translate.msg)("Create another") },
86
86
  cardFallbackSymbol: "Editions",
@@ -89,15 +89,15 @@ const EDITIONS_PRESET = {
89
89
  imageHelp: (0, import_translate.msg)("This becomes the cover for your collection."),
90
90
  nameLabel: (0, import_translate.msg)("Collection name *"),
91
91
  namePlaceholder: (0, import_translate.msg)("My Creative Works"),
92
- nameHint: (0, import_translate.msg)("The main title collectors see across the collection page, wallets, and future listings."),
92
+ nameHint: (0, import_translate.msg)("The title collectors see."),
93
93
  symbolPlaceholder: (0, import_translate.msg)("MCW"),
94
- symbolHint: (0, import_translate.msg)("Short ticker (2\u201310 uppercase letters). We suggest one from the collection name."),
94
+ symbolHint: (0, import_translate.msg)("2 to 10 uppercase letters."),
95
95
  descriptionPlaceholder: (0, import_translate.msg)("Describe your collection and what kind of work it contains\u2026"),
96
- descriptionHint: (0, import_translate.msg)("Use this to explain the creative direction, media type, or audience for the collection."),
96
+ descriptionHint: (0, import_translate.msg)("The creative direction of the collection."),
97
97
  submit: (0, import_translate.msg)("Publish collection"),
98
98
  footnotes: [
99
99
  FREE,
100
- (0, import_translate.msg)("Next step: mint pieces into this collection \u2014 you set the number of copies for each piece when you mint it, and can add more copies later.")
100
+ (0, import_translate.msg)("Next step: mint pieces into this collection.")
101
101
  ]
102
102
  },
103
103
  suggestSymbol: true,
@@ -112,7 +112,7 @@ const SINGLE_PRESET = {
112
112
  icon: import_lucide_react.Layers,
113
113
  iconClass: "text-brand-blue",
114
114
  signedOut: { title: (0, import_translate.msg)("Secure your account to create a collection"), description: (0, import_translate.msg)("Set up a collection to mint your work into.") },
115
- shell: { title: (0, import_translate.msg)("Create a collection"), subtitle: (0, import_translate.msg)("Set up a collection to mint your work into \u2014 free to publish, and it's yours.") },
115
+ shell: { title: (0, import_translate.msg)("Create a collection"), subtitle: (0, import_translate.msg)("A collection for your work.") },
116
116
  dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Prepare metadata") },
117
117
  success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each asset you mint into it carries its own license terms."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_collection"), againLabel: (0, import_translate.msg)("Create another") },
118
118
  cardFallbackSymbol: "Collection",
@@ -122,7 +122,7 @@ const SINGLE_PRESET = {
122
122
  namePlaceholder: (0, import_translate.msg)("My Creative Works"),
123
123
  nameHint: (0, import_translate.msg)("The display name for your collection."),
124
124
  symbolPlaceholder: (0, import_translate.msg)("MCW"),
125
- symbolHint: (0, import_translate.msg)("Short ticker (2\u201310 uppercase letters). Shown in wallets and marketplaces."),
125
+ symbolHint: (0, import_translate.msg)("2 to 10 uppercase letters."),
126
126
  descriptionPlaceholder: (0, import_translate.msg)("Describe your collection and what kind of work it contains\u2026"),
127
127
  submit: (0, import_translate.msg)("Create collection"),
128
128
  footnotes: [FREE]
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish — protocol fee is zero.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club, then mint membership cards for your community.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club — create membership tiers and mint cards to your community.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every membership card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your club — what does membership unlock?\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection, then mint tickets to your audience.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection — create tickets and mint them to your audience.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your tickets — what do they admit or unlock?\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"Create a collection where each piece can have multiple editions — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The main title collectors see across the collection page, wallets, and future listings.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). We suggest one from the collection name.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"Use this to explain the creative direction, media type, or audience for the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection — you set the number of copies for each piece when you mint it, and can add more copies later.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"Set up a collection to mint your work into — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). Shown in wallets and marketplaces.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsC;AAEtC,uBAAoB;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,WAAO,sBAAI,sCAAsC,GAAG,iBAAa,sBAAI,+DAA+D,EAAE;AAAA,EACnJ,OAAO,EAAE,WAAO,sBAAI,aAAa,GAAG,cAAU,sBAAI,2EAAsE,EAAE;AAAA,EAC1H,QAAQ,EAAE,WAAO,sBAAI,aAAa,GAAG,kBAAc,sBAAI,0BAAqB,GAAG,oBAAgB,sBAAI,kBAAkB,EAAE;AAAA,EACvH,SAAS,EAAE,WAAO,sBAAI,cAAc,GAAG,iBAAa,sBAAI,mEAAmE,GAAG,kBAAc,sBAAI,WAAW,GAAG,YAAQ,sBAAI,aAAa,GAAG,gBAAY,sBAAI,gBAAgB,EAAE;AAAA,EAC5N,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,kBAAc,sBAAI,YAAY;AAAA,IAC9B,eAAW,sBAAI,aAAa;AAAA,IAC5B,qBAAiB,sBAAI,SAAS;AAAA,IAC9B,cAAU,sBAAI,4DAA4D;AAAA,IAC1E,uBAAmB,sBAAI,MAAM;AAAA,IAC7B,gBAAY,sBAAI,gDAA2C;AAAA,IAC3D,4BAAwB,sBAAI,wDAAmD;AAAA,IAC/E,YAAQ,sBAAI,aAAa;AAAA,IACzB,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,OAAO,EAAE,SAAS,iBAAiB,EAAE,MAAM,gBAAgB,WAAO,sBAAI,oBAAoB,EAAE,IAAI,OA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O,EAAE,WAAO,sBAAI,qBAAqB,GAAG,cAAU,sBAAI,oFAA+E,EAAE;AAAA,EAC3I,QAAQ,EAAE,WAAO,sBAAI,mBAAmB,GAAG,kBAAc,sBAAI,gCAA2B,GAAG,oBAAgB,sBAAI,kBAAkB,EAAE;AAAA,EACnI,SAAS,EAAE,WAAO,sBAAI,oBAAoB,GAAG,iBAAa,sBAAI,4DAA4D,GAAG,kBAAc,sBAAI,iBAAiB,GAAG,YAAQ,sBAAI,mBAAmB,GAAG,gBAAY,sBAAI,gBAAgB,EAAE;AAAA,EACvO,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,kBAAc,sBAAI,kBAAkB;AAAA,IACpC,eAAW,sBAAI,mBAAmB;AAAA,IAClC,qBAAiB,sBAAI,mBAAmB;AAAA,IACxC,cAAU,sBAAI,uCAAuC;AAAA,IACrD,uBAAmB,sBAAI,KAAK;AAAA,IAC5B,gBAAY,sBAAI,gFAA2E;AAAA,IAC3F,4BAAwB,sBAAI,kEAA6D;AAAA,IACzF,YAAQ,sBAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,WAAO,sBAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,WAAO,sBAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown on every card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The title collectors see.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"The creative direction of the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsC;AAEtC,uBAAoB;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,WAAO,sBAAI,sCAAsC,GAAG,iBAAa,sBAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,WAAO,sBAAI,aAAa,GAAG,cAAU,sBAAI,2BAA2B,EAAE;AAAA,EAC/E,QAAQ,EAAE,WAAO,sBAAI,aAAa,GAAG,kBAAc,sBAAI,0BAAqB,GAAG,oBAAgB,sBAAI,kBAAkB,EAAE;AAAA,EACvH,SAAS,EAAE,WAAO,sBAAI,cAAc,GAAG,iBAAa,sBAAI,mEAAmE,GAAG,kBAAc,sBAAI,WAAW,GAAG,YAAQ,sBAAI,aAAa,GAAG,gBAAY,sBAAI,gBAAgB,EAAE;AAAA,EAC5N,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,kBAAc,sBAAI,YAAY;AAAA,IAC9B,eAAW,sBAAI,aAAa;AAAA,IAC5B,qBAAiB,sBAAI,SAAS;AAAA,IAC9B,cAAU,sBAAI,sBAAsB;AAAA,IACpC,uBAAmB,sBAAI,MAAM;AAAA,IAC7B,gBAAY,sBAAI,4BAA4B;AAAA,IAC5C,4BAAwB,sBAAI,yBAAyB;AAAA,IACrD,YAAQ,sBAAI,aAAa;AAAA,IACzB,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,OAAO,EAAE,SAAS,iBAAiB,EAAE,MAAM,gBAAgB,WAAO,sBAAI,oBAAoB,EAAE,IAAI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AO,EAAE,WAAO,sBAAI,qBAAqB,GAAG,cAAU,sBAAI,6BAA6B,EAAE;AAAA,EACzF,QAAQ,EAAE,WAAO,sBAAI,mBAAmB,GAAG,kBAAc,sBAAI,gCAA2B,GAAG,oBAAgB,sBAAI,kBAAkB,EAAE;AAAA,EACnI,SAAS,EAAE,WAAO,sBAAI,oBAAoB,GAAG,iBAAa,sBAAI,4DAA4D,GAAG,kBAAc,sBAAI,iBAAiB,GAAG,YAAQ,sBAAI,mBAAmB,GAAG,gBAAY,sBAAI,gBAAgB,EAAE;AAAA,EACvO,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,kBAAc,sBAAI,kBAAkB;AAAA,IACpC,eAAW,sBAAI,mBAAmB;AAAA,IAClC,qBAAiB,sBAAI,mBAAmB;AAAA,IACxC,cAAU,sBAAI,uCAAuC;AAAA,IACrD,uBAAmB,sBAAI,KAAK;AAAA,IAC5B,gBAAY,sBAAI,4BAA4B;AAAA,IAC5C,4BAAwB,sBAAI,kEAA6D;AAAA,IACzF,YAAQ,sBAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,WAAO,sBAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,WAAO,sBAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
@@ -1,12 +1,12 @@
1
1
  import { Layers, Ticket, Users } from "lucide-react";
2
2
  import { msg } from "../../i18n/translate.js";
3
- const FREE = "Free to publish \u2014 protocol fee is zero.";
3
+ const FREE = "Free to publish.";
4
4
  const CLUB_PRESET = {
5
5
  service: "ip-club",
6
6
  icon: Users,
7
7
  iconClass: "text-brand-purple",
8
- signedOut: { title: msg("Secure your account to create a club"), description: msg("Create a club, then mint membership cards for your community.") },
9
- shell: { title: msg("Create club"), subtitle: msg("One club \u2014 create membership tiers and mint cards to your community.") },
8
+ signedOut: { title: msg("Secure your account to create a club"), description: msg("Create a club with membership cards.") },
9
+ shell: { title: msg("Create club"), subtitle: msg("One club with many tiers.") },
10
10
  dialog: { title: msg("Create club"), workingLabel: msg("Creating your club\u2026"), firstStepLabel: msg("Prepare metadata") },
11
11
  success: { title: msg("Club created"), description: msg("Each membership you create is recorded onchain under your wallet."), fallbackName: msg("Your club"), reward: msg("create_club"), againLabel: msg("Create another") },
12
12
  cardFallbackSymbol: "Club",
@@ -14,10 +14,10 @@ const CLUB_PRESET = {
14
14
  imageHeading: msg("Club image"),
15
15
  nameLabel: msg("Club name *"),
16
16
  namePlaceholder: msg("My Club"),
17
- nameHint: msg("Shown in wallets, explorers, and on every membership card."),
17
+ nameHint: msg("Shown on every card."),
18
18
  symbolPlaceholder: msg("CLUB"),
19
- symbolHint: msg("Short ticker \u2014 2 to 10 uppercase letters."),
20
- descriptionPlaceholder: msg("Describe your club \u2014 what does membership unlock?"),
19
+ symbolHint: msg("2 to 10 uppercase letters."),
20
+ descriptionPlaceholder: msg("What membership unlocks"),
21
21
  submit: msg("Create club"),
22
22
  footnotes: [FREE]
23
23
  },
@@ -29,8 +29,8 @@ const TICKETS_PRESET = {
29
29
  service: "ip-tickets",
30
30
  icon: Ticket,
31
31
  iconClass: "text-brand-blue",
32
- signedOut: { title: msg("Secure your account to create tickets"), description: msg("Create a tickets collection, then mint tickets to your audience.") },
33
- shell: { title: msg("Create ticket collection"), subtitle: msg("One collection \u2014 create tickets and mint them to your audience.") },
32
+ signedOut: { title: msg("Secure your account to create tickets"), description: msg("Create a tickets collection.") },
33
+ shell: { title: msg("Create ticket collection"), subtitle: msg("One collection with many tickets.") },
34
34
  dialog: { title: msg("Create tickets collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
35
35
  success: { title: msg("Ticket collection created"), description: msg("Each ticket you mint into it is recorded onchain under your wallet."), fallbackName: msg("Your collection"), reward: msg("create_ticket_collection"), againLabel: msg("Create another") },
36
36
  cardFallbackSymbol: "Tickets",
@@ -38,10 +38,10 @@ const TICKETS_PRESET = {
38
38
  imageHeading: msg("Collection image"),
39
39
  nameLabel: msg("Collection name *"),
40
40
  namePlaceholder: msg("My tickets"),
41
- nameHint: msg("Shown in wallets, explorers, and on every ticket."),
41
+ nameHint: msg("Shown on every ticket."),
42
42
  symbolPlaceholder: msg("TIX"),
43
- symbolHint: msg("Short ticker \u2014 2 to 10 uppercase letters."),
44
- descriptionPlaceholder: msg("Describe your tickets \u2014 what do they admit or unlock?"),
43
+ symbolHint: msg("2 to 10 uppercase letters."),
44
+ descriptionPlaceholder: msg("What the tickets unlock"),
45
45
  submit: msg("Create ticket collection"),
46
46
  footnotes: [FREE]
47
47
  },
@@ -54,7 +54,7 @@ const EDITIONS_PRESET = {
54
54
  icon: Layers,
55
55
  iconClass: "text-brand-purple",
56
56
  signedOut: { title: msg("Secure your account to create a collection"), description: msg("Create a collection where each piece can have multiple editions.") },
57
- shell: { title: msg("Create an edition collection"), subtitle: msg("Create a collection where each piece can have multiple editions \u2014 free to publish, and it's yours.") },
57
+ shell: { title: msg("Create an edition collection"), subtitle: msg("A collection with many editions per piece.") },
58
58
  dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
59
59
  success: { title: msg("Collection created"), description: msg("Each asset you mint into it carries its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
60
60
  cardFallbackSymbol: "Editions",
@@ -63,15 +63,15 @@ const EDITIONS_PRESET = {
63
63
  imageHelp: msg("This becomes the cover for your collection."),
64
64
  nameLabel: msg("Collection name *"),
65
65
  namePlaceholder: msg("My Creative Works"),
66
- nameHint: msg("The main title collectors see across the collection page, wallets, and future listings."),
66
+ nameHint: msg("The title collectors see."),
67
67
  symbolPlaceholder: msg("MCW"),
68
- symbolHint: msg("Short ticker (2\u201310 uppercase letters). We suggest one from the collection name."),
68
+ symbolHint: msg("2 to 10 uppercase letters."),
69
69
  descriptionPlaceholder: msg("Describe your collection and what kind of work it contains\u2026"),
70
- descriptionHint: msg("Use this to explain the creative direction, media type, or audience for the collection."),
70
+ descriptionHint: msg("The creative direction of the collection."),
71
71
  submit: msg("Publish collection"),
72
72
  footnotes: [
73
73
  FREE,
74
- msg("Next step: mint pieces into this collection \u2014 you set the number of copies for each piece when you mint it, and can add more copies later.")
74
+ msg("Next step: mint pieces into this collection.")
75
75
  ]
76
76
  },
77
77
  suggestSymbol: true,
@@ -86,7 +86,7 @@ const SINGLE_PRESET = {
86
86
  icon: Layers,
87
87
  iconClass: "text-brand-blue",
88
88
  signedOut: { title: msg("Secure your account to create a collection"), description: msg("Set up a collection to mint your work into.") },
89
- shell: { title: msg("Create a collection"), subtitle: msg("Set up a collection to mint your work into \u2014 free to publish, and it's yours.") },
89
+ shell: { title: msg("Create a collection"), subtitle: msg("A collection for your work.") },
90
90
  dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
91
91
  success: { title: msg("Collection created"), description: msg("Each asset you mint into it carries its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
92
92
  cardFallbackSymbol: "Collection",
@@ -96,7 +96,7 @@ const SINGLE_PRESET = {
96
96
  namePlaceholder: msg("My Creative Works"),
97
97
  nameHint: msg("The display name for your collection."),
98
98
  symbolPlaceholder: msg("MCW"),
99
- symbolHint: msg("Short ticker (2\u201310 uppercase letters). Shown in wallets and marketplaces."),
99
+ symbolHint: msg("2 to 10 uppercase letters."),
100
100
  descriptionPlaceholder: msg("Describe your collection and what kind of work it contains\u2026"),
101
101
  submit: msg("Create collection"),
102
102
  footnotes: [FREE]
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish — protocol fee is zero.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club, then mint membership cards for your community.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club — create membership tiers and mint cards to your community.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every membership card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your club — what does membership unlock?\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection, then mint tickets to your audience.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection — create tickets and mint them to your audience.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your tickets — what do they admit or unlock?\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"Create a collection where each piece can have multiple editions — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The main title collectors see across the collection page, wallets, and future listings.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). We suggest one from the collection name.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"Use this to explain the creative direction, media type, or audience for the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection — you set the number of copies for each piece when you mint it, and can add more copies later.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"Set up a collection to mint your work into — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). Shown in wallets and marketplaces.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAEtC,SAAS,WAAW;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,OAAO,IAAI,sCAAsC,GAAG,aAAa,IAAI,+DAA+D,EAAE;AAAA,EACnJ,OAAO,EAAE,OAAO,IAAI,aAAa,GAAG,UAAU,IAAI,2EAAsE,EAAE;AAAA,EAC1H,QAAQ,EAAE,OAAO,IAAI,aAAa,GAAG,cAAc,IAAI,0BAAqB,GAAG,gBAAgB,IAAI,kBAAkB,EAAE;AAAA,EACvH,SAAS,EAAE,OAAO,IAAI,cAAc,GAAG,aAAa,IAAI,mEAAmE,GAAG,cAAc,IAAI,WAAW,GAAG,QAAQ,IAAI,aAAa,GAAG,YAAY,IAAI,gBAAgB,EAAE;AAAA,EAC5N,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc,IAAI,YAAY;AAAA,IAC9B,WAAW,IAAI,aAAa;AAAA,IAC5B,iBAAiB,IAAI,SAAS;AA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AA,EAClI;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown on every card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The title collectors see.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"The creative direction of the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAEtC,SAAS,WAAW;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,OAAO,IAAI,sCAAsC,GAAG,aAAa,IAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,OAAO,IAAI,aAAa,GAAG,UAAU,IAAI,2BAA2B,EAAE;AAAA,EAC/E,QAAQ,EAAE,OAAO,IAAI,aAAa,GAAG,cAAc,IAAI,0BAAqB,GAAG,gBAAgB,IAAI,kBAAkB,EAAE;AAAA,EACvH,SAAS,EAAE,OAAO,IAAI,cAAc,GAAG,aAAa,IAAI,mEAAmE,GAAG,cAAc,IAAI,WAAW,GAAG,QAAQ,IAAI,aAAa,GAAG,YAAY,IAAI,gBAAgB,EAAE;AAAA,EAC5N,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc,IAAI,YAAY;AAAA,IAC9B,WAAW,IAAI,aAAa;AAAA,IAC5B,iBAAiB,IAAI,SAAS;AAAA,IAC9B,UAAU,IAAI,sBAAsB;AAAA,IACpC,mBAAmB,IAAI,MAAM;AAAA,IAC7B,YAAY,IAAI,4BAA4B;AAAA,IAC5C,wBAAwB,IAAI,yBAAyB;AAAA,IACrD,QAAQ,IAAI,aAAa;AAAA,IACzB,WAAW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ACN,WAAW;AAAA,EACX,WAAW,EAAE,OAAO,IAAI,4CAA4C,GAAG,aAAa,IAAI,6CAA6C,EAAE;AAAA,EACvI,OAAO,EAAE,OAAO,IAAI,qBAAqB,GAAG,UAAU,IAAI,6BAA6B,EAAE;AAAA,EACzF,QAAQ,EAAE,OAAO,IAAI,mBAAmB,GAAG,cAAc,IAAI,gCAA2B,GAAG,gBAAgB,IAAI,kBAAkB,EAAE;AAAA,EACnI,SAAS,EAAE,OAAO,IAAI,oBAAoB,GAAG,aAAa,IAAI,4DAA4D,GAAG,cAAc,IAAI,iBAAiB,GAAG,QAAQ,IAAI,mBAAmB,GAAG,YAAY,IAAI,gBAAgB,EAAE;AAAA,EACvO,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc,IAAI,kBAAkB;AAAA,IACpC,WAAW,IAAI,mBAAmB;AAAA,IAClC,iBAAiB,IAAI,mBAAmB;AAAA,IACxC,UAAU,IAAI,uCAAuC;AAAA,IACrD,mBAAmB,IAAI,KAAK;AAAA,IAC5B,YAAY,IAAI,4BAA4B;AAAA,IAC5C,wBAAwB,IAAI,kEAA6D;AAAA,IACzF,QAAQ,IAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,OAAO,IAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,OAAO,IAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
@@ -63,7 +63,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
63
63
  if (loading) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-[4.25rem] rounded-xl" });
64
64
  if (collections.length === 0) {
65
65
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-dashed border-border p-5 text-center space-y-3", children: [
66
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("No collection found. It may take a minute to display recently created collections.") }),
66
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("New collections appear within a minute.") }),
67
67
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, small: true, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: newCollectionHref, children: [
68
68
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-3.5 w-3.5" }),
69
69
  t("Create your first collection")