@medialane/ui 0.379.0 → 0.381.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 (712) hide show
  1. package/dist/components/account/account-section.cjs +1 -1
  2. package/dist/components/account/account-section.cjs.map +1 -1
  3. package/dist/components/account/account-section.js +1 -1
  4. package/dist/components/account/account-section.js.map +1 -1
  5. package/dist/components/account/devices-section.cjs +1 -1
  6. package/dist/components/account/devices-section.cjs.map +1 -1
  7. package/dist/components/account/devices-section.js +1 -1
  8. package/dist/components/account/devices-section.js.map +1 -1
  9. package/dist/components/account/guardian-recovery-section.cjs +5 -5
  10. package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
  11. package/dist/components/account/guardian-recovery-section.js +5 -5
  12. package/dist/components/account/guardian-recovery-section.js.map +1 -1
  13. package/dist/components/account/input-otp.cjs +1 -1
  14. package/dist/components/account/input-otp.cjs.map +1 -1
  15. package/dist/components/account/input-otp.d.cts +2 -2
  16. package/dist/components/account/input-otp.d.ts +2 -2
  17. package/dist/components/account/input-otp.js +1 -1
  18. package/dist/components/account/input-otp.js.map +1 -1
  19. package/dist/components/accounts-page.cjs +4 -4
  20. package/dist/components/accounts-page.cjs.map +1 -1
  21. package/dist/components/accounts-page.js +4 -4
  22. package/dist/components/accounts-page.js.map +1 -1
  23. package/dist/components/action-button.cjs +8 -20
  24. package/dist/components/action-button.cjs.map +1 -1
  25. package/dist/components/action-button.d.cts +6 -12
  26. package/dist/components/action-button.d.ts +6 -12
  27. package/dist/components/action-button.js +7 -18
  28. package/dist/components/action-button.js.map +1 -1
  29. package/dist/components/activities-feed.cjs +4 -4
  30. package/dist/components/activities-feed.cjs.map +1 -1
  31. package/dist/components/activities-feed.js +4 -4
  32. package/dist/components/activities-feed.js.map +1 -1
  33. package/dist/components/activity-card.cjs +7 -7
  34. package/dist/components/activity-card.cjs.map +1 -1
  35. package/dist/components/activity-card.js +7 -7
  36. package/dist/components/activity-card.js.map +1 -1
  37. package/dist/components/activity-row.cjs +8 -8
  38. package/dist/components/activity-row.cjs.map +1 -1
  39. package/dist/components/activity-row.js +8 -8
  40. package/dist/components/activity-row.js.map +1 -1
  41. package/dist/components/activity-ticker.cjs +3 -3
  42. package/dist/components/activity-ticker.cjs.map +1 -1
  43. package/dist/components/activity-ticker.js +3 -3
  44. package/dist/components/activity-ticker.js.map +1 -1
  45. package/dist/components/activity-timeline-row.cjs +12 -10
  46. package/dist/components/activity-timeline-row.cjs.map +1 -1
  47. package/dist/components/activity-timeline-row.js +12 -10
  48. package/dist/components/activity-timeline-row.js.map +1 -1
  49. package/dist/components/address-display.cjs +1 -1
  50. package/dist/components/address-display.cjs.map +1 -1
  51. package/dist/components/address-display.js +1 -1
  52. package/dist/components/address-display.js.map +1 -1
  53. package/dist/components/alert.cjs +3 -3
  54. package/dist/components/alert.cjs.map +1 -1
  55. package/dist/components/alert.js +3 -3
  56. package/dist/components/alert.js.map +1 -1
  57. package/dist/components/approve-mint-dialog.cjs +1 -1
  58. package/dist/components/approve-mint-dialog.cjs.map +1 -1
  59. package/dist/components/approve-mint-dialog.js +1 -1
  60. package/dist/components/approve-mint-dialog.js.map +1 -1
  61. package/dist/components/asset-access-cards.cjs +2 -2
  62. package/dist/components/asset-access-cards.cjs.map +1 -1
  63. package/dist/components/asset-access-cards.js +2 -2
  64. package/dist/components/asset-access-cards.js.map +1 -1
  65. package/dist/components/asset-card.cjs +3 -3
  66. package/dist/components/asset-card.cjs.map +1 -1
  67. package/dist/components/asset-card.js +3 -3
  68. package/dist/components/asset-card.js.map +1 -1
  69. package/dist/components/asset-collection-bar.cjs +1 -1
  70. package/dist/components/asset-collection-bar.cjs.map +1 -1
  71. package/dist/components/asset-collection-bar.js +1 -1
  72. package/dist/components/asset-collection-bar.js.map +1 -1
  73. package/dist/components/asset-marketplace-panel.cjs +7 -12
  74. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  75. package/dist/components/asset-marketplace-panel.js +7 -12
  76. package/dist/components/asset-marketplace-panel.js.map +1 -1
  77. package/dist/components/asset-markets-tab.cjs +2 -2
  78. package/dist/components/asset-markets-tab.cjs.map +1 -1
  79. package/dist/components/asset-markets-tab.js +2 -2
  80. package/dist/components/asset-markets-tab.js.map +1 -1
  81. package/dist/components/asset-overview-content.cjs +9 -9
  82. package/dist/components/asset-overview-content.cjs.map +1 -1
  83. package/dist/components/asset-overview-content.js +9 -9
  84. package/dist/components/asset-overview-content.js.map +1 -1
  85. package/dist/components/asset-page.cjs +2 -2
  86. package/dist/components/asset-page.cjs.map +1 -1
  87. package/dist/components/asset-page.js +2 -2
  88. package/dist/components/asset-page.js.map +1 -1
  89. package/dist/components/asset-picker.cjs +3 -3
  90. package/dist/components/asset-picker.cjs.map +1 -1
  91. package/dist/components/asset-picker.js +3 -3
  92. package/dist/components/asset-picker.js.map +1 -1
  93. package/dist/components/asset-provenance-tab.cjs +2 -2
  94. package/dist/components/asset-provenance-tab.cjs.map +1 -1
  95. package/dist/components/asset-provenance-tab.js +2 -2
  96. package/dist/components/asset-provenance-tab.js.map +1 -1
  97. package/dist/components/asset-publication.cjs +1 -1
  98. package/dist/components/asset-publication.cjs.map +1 -1
  99. package/dist/components/asset-publication.js +1 -1
  100. package/dist/components/asset-publication.js.map +1 -1
  101. package/dist/components/asset-top-sections.cjs +2 -2
  102. package/dist/components/asset-top-sections.cjs.map +1 -1
  103. package/dist/components/asset-top-sections.js +2 -2
  104. package/dist/components/asset-top-sections.js.map +1 -1
  105. package/dist/components/asset-utility-icons.cjs +2 -2
  106. package/dist/components/asset-utility-icons.cjs.map +1 -1
  107. package/dist/components/asset-utility-icons.js +2 -2
  108. package/dist/components/asset-utility-icons.js.map +1 -1
  109. package/dist/components/button.cjs +4 -7
  110. package/dist/components/button.cjs.map +1 -1
  111. package/dist/components/button.d.cts +2 -2
  112. package/dist/components/button.d.ts +2 -2
  113. package/dist/components/button.js +4 -7
  114. package/dist/components/button.js.map +1 -1
  115. package/dist/components/card.cjs +1 -1
  116. package/dist/components/card.cjs.map +1 -1
  117. package/dist/components/card.js +1 -1
  118. package/dist/components/card.js.map +1 -1
  119. package/dist/components/claim-rail.cjs +2 -2
  120. package/dist/components/claim-rail.cjs.map +1 -1
  121. package/dist/components/claim-rail.js +2 -2
  122. package/dist/components/claim-rail.js.map +1 -1
  123. package/dist/components/coin-guarantees.cjs +1 -1
  124. package/dist/components/coin-guarantees.cjs.map +1 -1
  125. package/dist/components/coin-guarantees.js +1 -1
  126. package/dist/components/coin-guarantees.js.map +1 -1
  127. package/dist/components/coin-launch-preview.cjs +2 -3
  128. package/dist/components/coin-launch-preview.cjs.map +1 -1
  129. package/dist/components/coin-launch-preview.js +2 -3
  130. package/dist/components/coin-launch-preview.js.map +1 -1
  131. package/dist/components/coin-row.cjs +4 -4
  132. package/dist/components/coin-row.cjs.map +1 -1
  133. package/dist/components/coin-row.js +4 -4
  134. package/dist/components/coin-row.js.map +1 -1
  135. package/dist/components/coins-explorer.cjs +2 -2
  136. package/dist/components/coins-explorer.cjs.map +1 -1
  137. package/dist/components/coins-explorer.js +2 -2
  138. package/dist/components/coins-explorer.js.map +1 -1
  139. package/dist/components/collection-card.cjs +3 -3
  140. package/dist/components/collection-card.cjs.map +1 -1
  141. package/dist/components/collection-card.js +3 -3
  142. package/dist/components/collection-card.js.map +1 -1
  143. package/dist/components/collection-filters.cjs +6 -6
  144. package/dist/components/collection-filters.cjs.map +1 -1
  145. package/dist/components/collection-filters.js +6 -6
  146. package/dist/components/collection-filters.js.map +1 -1
  147. package/dist/components/collection-name-claim.cjs +2 -2
  148. package/dist/components/collection-name-claim.cjs.map +1 -1
  149. package/dist/components/collection-name-claim.js +2 -2
  150. package/dist/components/collection-name-claim.js.map +1 -1
  151. package/dist/components/collection-page.cjs +1 -1
  152. package/dist/components/collection-page.cjs.map +1 -1
  153. package/dist/components/collection-page.js +1 -1
  154. package/dist/components/collection-page.js.map +1 -1
  155. package/dist/components/collection-provenance-tab.cjs +7 -7
  156. package/dist/components/collection-provenance-tab.cjs.map +1 -1
  157. package/dist/components/collection-provenance-tab.js +7 -7
  158. package/dist/components/collection-provenance-tab.js.map +1 -1
  159. package/dist/components/collection-settings.cjs +14 -13
  160. package/dist/components/collection-settings.cjs.map +1 -1
  161. package/dist/components/collection-settings.js +14 -13
  162. package/dist/components/collection-settings.js.map +1 -1
  163. package/dist/components/collection-showcase.cjs +1 -1
  164. package/dist/components/collection-showcase.cjs.map +1 -1
  165. package/dist/components/collection-showcase.js +1 -1
  166. package/dist/components/collection-showcase.js.map +1 -1
  167. package/dist/components/collection-slug-claim.cjs +7 -7
  168. package/dist/components/collection-slug-claim.cjs.map +1 -1
  169. package/dist/components/collection-slug-claim.js +7 -7
  170. package/dist/components/collection-slug-claim.js.map +1 -1
  171. package/dist/components/collections-page.cjs +12 -12
  172. package/dist/components/collections-page.cjs.map +1 -1
  173. package/dist/components/collections-page.js +12 -12
  174. package/dist/components/collections-page.js.map +1 -1
  175. package/dist/components/comments-section.cjs +9 -7
  176. package/dist/components/comments-section.cjs.map +1 -1
  177. package/dist/components/comments-section.js +9 -7
  178. package/dist/components/comments-section.js.map +1 -1
  179. package/dist/components/create-form-primitives.cjs +2 -2
  180. package/dist/components/create-form-primitives.cjs.map +1 -1
  181. package/dist/components/create-form-primitives.js +2 -2
  182. package/dist/components/create-form-primitives.js.map +1 -1
  183. package/dist/components/creation-record.cjs +3 -3
  184. package/dist/components/creation-record.cjs.map +1 -1
  185. package/dist/components/creation-record.js +3 -3
  186. package/dist/components/creation-record.js.map +1 -1
  187. package/dist/components/dialog.cjs +1 -1
  188. package/dist/components/dialog.cjs.map +1 -1
  189. package/dist/components/dialog.js +1 -1
  190. package/dist/components/dialog.js.map +1 -1
  191. package/dist/components/discover-community-section.cjs +3 -3
  192. package/dist/components/discover-community-section.cjs.map +1 -1
  193. package/dist/components/discover-community-section.js +3 -3
  194. package/dist/components/discover-community-section.js.map +1 -1
  195. package/dist/components/discover-features.cjs +1 -1
  196. package/dist/components/discover-features.cjs.map +1 -1
  197. package/dist/components/discover-features.js +1 -1
  198. package/dist/components/discover-features.js.map +1 -1
  199. package/dist/components/discover-hero.cjs +3 -3
  200. package/dist/components/discover-hero.cjs.map +1 -1
  201. package/dist/components/discover-hero.js +3 -3
  202. package/dist/components/discover-hero.js.map +1 -1
  203. package/dist/components/drop/create/drop-create.cjs +1 -1
  204. package/dist/components/drop/create/drop-create.cjs.map +1 -1
  205. package/dist/components/drop/create/drop-create.js +1 -1
  206. package/dist/components/drop/create/drop-create.js.map +1 -1
  207. package/dist/components/drop/create/launch-dialog.cjs +2 -2
  208. package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
  209. package/dist/components/drop/create/launch-dialog.js +2 -2
  210. package/dist/components/drop/create/launch-dialog.js.map +1 -1
  211. package/dist/components/drop/drop-card.cjs +4 -4
  212. package/dist/components/drop/drop-card.cjs.map +1 -1
  213. package/dist/components/drop/drop-card.js +4 -4
  214. package/dist/components/drop/drop-card.js.map +1 -1
  215. package/dist/components/drop/drop-features.cjs +1 -1
  216. package/dist/components/drop/drop-features.cjs.map +1 -1
  217. package/dist/components/drop/drop-features.js +1 -1
  218. package/dist/components/drop/drop-features.js.map +1 -1
  219. package/dist/components/drop/drop-listing.cjs +1 -1
  220. package/dist/components/drop/drop-listing.cjs.map +1 -1
  221. package/dist/components/drop/drop-listing.js +1 -1
  222. package/dist/components/drop/drop-listing.js.map +1 -1
  223. package/dist/components/drop/drop-status.cjs +2 -2
  224. package/dist/components/drop/drop-status.cjs.map +1 -1
  225. package/dist/components/drop/drop-status.js +2 -2
  226. package/dist/components/drop/drop-status.js.map +1 -1
  227. package/dist/components/drop/drop-token-link.cjs +1 -1
  228. package/dist/components/drop/drop-token-link.cjs.map +1 -1
  229. package/dist/components/drop/drop-token-link.js +1 -1
  230. package/dist/components/drop/drop-token-link.js.map +1 -1
  231. package/dist/components/drop/page/drop-action-box.cjs +3 -3
  232. package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
  233. package/dist/components/drop/page/drop-action-box.js +3 -3
  234. package/dist/components/drop/page/drop-action-box.js.map +1 -1
  235. package/dist/components/drop/page/drop-manage.cjs +1 -1
  236. package/dist/components/drop/page/drop-manage.cjs.map +1 -1
  237. package/dist/components/drop/page/drop-manage.js +1 -1
  238. package/dist/components/drop/page/drop-manage.js.map +1 -1
  239. package/dist/components/drop/page/drop-mint-dialog.cjs +1 -1
  240. package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
  241. package/dist/components/drop/page/drop-mint-dialog.js +1 -1
  242. package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
  243. package/dist/components/drop-item-list.cjs +2 -2
  244. package/dist/components/drop-item-list.cjs.map +1 -1
  245. package/dist/components/drop-item-list.js +2 -2
  246. package/dist/components/drop-item-list.js.map +1 -1
  247. package/dist/components/dropdown-menu.cjs +6 -6
  248. package/dist/components/dropdown-menu.cjs.map +1 -1
  249. package/dist/components/dropdown-menu.js +6 -6
  250. package/dist/components/dropdown-menu.js.map +1 -1
  251. package/dist/components/editions-page.cjs +3 -3
  252. package/dist/components/editions-page.cjs.map +1 -1
  253. package/dist/components/editions-page.js +3 -3
  254. package/dist/components/editions-page.js.map +1 -1
  255. package/dist/components/fast-mint/asset-form-parts.cjs +5 -5
  256. package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
  257. package/dist/components/fast-mint/asset-form-parts.js +5 -5
  258. package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
  259. package/dist/components/fast-mint/collection-section.cjs +6 -6
  260. package/dist/components/fast-mint/collection-section.cjs.map +1 -1
  261. package/dist/components/fast-mint/collection-section.js +6 -6
  262. package/dist/components/fast-mint/collection-section.js.map +1 -1
  263. package/dist/components/fast-mint/dropzone.cjs +1 -1
  264. package/dist/components/fast-mint/dropzone.cjs.map +1 -1
  265. package/dist/components/fast-mint/dropzone.js +1 -1
  266. package/dist/components/fast-mint/dropzone.js.map +1 -1
  267. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  268. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  269. package/dist/components/fast-mint/formats/pop.cjs +3 -3
  270. package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
  271. package/dist/components/fast-mint/formats/pop.js +3 -3
  272. package/dist/components/fast-mint/formats/pop.js.map +1 -1
  273. package/dist/components/fast-mint/ip-type-section.cjs +1 -1
  274. package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
  275. package/dist/components/fast-mint/ip-type-section.js +1 -1
  276. package/dist/components/fast-mint/ip-type-section.js.map +1 -1
  277. package/dist/components/fast-mint/licensing-section.cjs +1 -1
  278. package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
  279. package/dist/components/fast-mint/licensing-section.js +1 -1
  280. package/dist/components/fast-mint/licensing-section.js.map +1 -1
  281. package/dist/components/fast-mint/success-view.cjs +3 -3
  282. package/dist/components/fast-mint/success-view.cjs.map +1 -1
  283. package/dist/components/fast-mint/success-view.js +3 -3
  284. package/dist/components/fast-mint/success-view.js.map +1 -1
  285. package/dist/components/floating-comments-button.cjs +1 -1
  286. package/dist/components/floating-comments-button.cjs.map +1 -1
  287. package/dist/components/floating-comments-button.js +1 -1
  288. package/dist/components/floating-comments-button.js.map +1 -1
  289. package/dist/components/gated-content.cjs +10 -11
  290. package/dist/components/gated-content.cjs.map +1 -1
  291. package/dist/components/gated-content.js +11 -12
  292. package/dist/components/gated-content.js.map +1 -1
  293. package/dist/components/hidden-content-banner.cjs +1 -1
  294. package/dist/components/hidden-content-banner.cjs.map +1 -1
  295. package/dist/components/hidden-content-banner.js +1 -1
  296. package/dist/components/hidden-content-banner.js.map +1 -1
  297. package/dist/components/input.cjs +1 -1
  298. package/dist/components/input.cjs.map +1 -1
  299. package/dist/components/input.js +1 -1
  300. package/dist/components/input.js.map +1 -1
  301. package/dist/components/ip-type-display.cjs +1 -2
  302. package/dist/components/ip-type-display.cjs.map +1 -1
  303. package/dist/components/ip-type-display.js +2 -3
  304. package/dist/components/ip-type-display.js.map +1 -1
  305. package/dist/components/ip-type-fields.cjs +7 -6
  306. package/dist/components/ip-type-fields.cjs.map +1 -1
  307. package/dist/components/ip-type-fields.js +7 -6
  308. package/dist/components/ip-type-fields.js.map +1 -1
  309. package/dist/components/ip-type-nav.cjs +1 -1
  310. package/dist/components/ip-type-nav.cjs.map +1 -1
  311. package/dist/components/ip-type-nav.js +1 -1
  312. package/dist/components/ip-type-nav.js.map +1 -1
  313. package/dist/components/ip-type-page.cjs +6 -6
  314. package/dist/components/ip-type-page.cjs.map +1 -1
  315. package/dist/components/ip-type-page.js +6 -6
  316. package/dist/components/ip-type-page.js.map +1 -1
  317. package/dist/components/journey-content.cjs +3 -3
  318. package/dist/components/journey-content.cjs.map +1 -1
  319. package/dist/components/journey-content.js +3 -3
  320. package/dist/components/journey-content.js.map +1 -1
  321. package/dist/components/launchpad/coin-create.cjs +5 -5
  322. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  323. package/dist/components/launchpad/coin-create.js +5 -5
  324. package/dist/components/launchpad/coin-create.js.map +1 -1
  325. package/dist/components/launchpad/collection-create-form.cjs +1 -1
  326. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  327. package/dist/components/launchpad/collection-create-form.js +1 -1
  328. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  329. package/dist/components/launchpad/collection-create-presets.cjs +1 -1
  330. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  331. package/dist/components/launchpad/collection-create-presets.js +1 -1
  332. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  333. package/dist/components/launchpad/collection-picker.cjs +4 -4
  334. package/dist/components/launchpad/collection-picker.cjs.map +1 -1
  335. package/dist/components/launchpad/collection-picker.js +4 -4
  336. package/dist/components/launchpad/collection-picker.js.map +1 -1
  337. package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
  338. package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
  339. package/dist/components/launchpad/edition-mint.cjs +2 -2
  340. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  341. package/dist/components/launchpad/edition-mint.js +2 -2
  342. package/dist/components/launchpad/edition-mint.js.map +1 -1
  343. package/dist/components/launchpad/pop-create-fields.cjs +7 -7
  344. package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
  345. package/dist/components/launchpad/pop-create-fields.js +7 -7
  346. package/dist/components/launchpad/pop-create-fields.js.map +1 -1
  347. package/dist/components/launchpad/pop-create.cjs +2 -2
  348. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  349. package/dist/components/launchpad/pop-create.js +2 -2
  350. package/dist/components/launchpad/pop-create.js.map +1 -1
  351. package/dist/components/launchpad/remix-mint.cjs +5 -4
  352. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  353. package/dist/components/launchpad/remix-mint.js +5 -4
  354. package/dist/components/launchpad/remix-mint.js.map +1 -1
  355. package/dist/components/launchpad/single-edition-mint.cjs +1 -1
  356. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  357. package/dist/components/launchpad/single-edition-mint.js +1 -1
  358. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  359. package/dist/components/launchpad/sponsorship-create.cjs +4 -4
  360. package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
  361. package/dist/components/launchpad/sponsorship-create.js +4 -4
  362. package/dist/components/launchpad/sponsorship-create.js.map +1 -1
  363. package/dist/components/launchpad/tier-mint-presets.cjs +3 -3
  364. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  365. package/dist/components/launchpad/tier-mint-presets.js +3 -3
  366. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  367. package/dist/components/launchpad-filter-bar.cjs +2 -2
  368. package/dist/components/launchpad-filter-bar.cjs.map +1 -1
  369. package/dist/components/launchpad-filter-bar.js +2 -2
  370. package/dist/components/launchpad-filter-bar.js.map +1 -1
  371. package/dist/components/launchpad-services.cjs +22 -27
  372. package/dist/components/launchpad-services.cjs.map +1 -1
  373. package/dist/components/launchpad-services.d.cts +0 -2
  374. package/dist/components/launchpad-services.d.ts +0 -2
  375. package/dist/components/launchpad-services.js +22 -27
  376. package/dist/components/launchpad-services.js.map +1 -1
  377. package/dist/components/launchpad-strip.cjs +1 -6
  378. package/dist/components/launchpad-strip.cjs.map +1 -1
  379. package/dist/components/launchpad-strip.js +1 -6
  380. package/dist/components/launchpad-strip.js.map +1 -1
  381. package/dist/components/license-request-page.cjs +3 -3
  382. package/dist/components/license-request-page.cjs.map +1 -1
  383. package/dist/components/license-request-page.js +3 -3
  384. package/dist/components/license-request-page.js.map +1 -1
  385. package/dist/components/license-terms-builder.cjs +5 -5
  386. package/dist/components/license-terms-builder.cjs.map +1 -1
  387. package/dist/components/license-terms-builder.js +5 -5
  388. package/dist/components/license-terms-builder.js.map +1 -1
  389. package/dist/components/listing-card-menu.cjs +1 -1
  390. package/dist/components/listing-card-menu.cjs.map +1 -1
  391. package/dist/components/listing-card-menu.js +1 -1
  392. package/dist/components/listing-card-menu.js.map +1 -1
  393. package/dist/components/listing-card.cjs +22 -39
  394. package/dist/components/listing-card.cjs.map +1 -1
  395. package/dist/components/listing-card.js +22 -39
  396. package/dist/components/listing-card.js.map +1 -1
  397. package/dist/components/make-offer-picker.cjs +2 -2
  398. package/dist/components/make-offer-picker.cjs.map +1 -1
  399. package/dist/components/make-offer-picker.js +2 -2
  400. package/dist/components/make-offer-picker.js.map +1 -1
  401. package/dist/components/marketplace-dialog-primitives.cjs +5 -5
  402. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  403. package/dist/components/marketplace-dialog-primitives.js +5 -5
  404. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  405. package/dist/components/marketplace-filters.cjs +7 -7
  406. package/dist/components/marketplace-filters.cjs.map +1 -1
  407. package/dist/components/marketplace-filters.js +7 -7
  408. package/dist/components/marketplace-filters.js.map +1 -1
  409. package/dist/components/marketplace-search.cjs +2 -2
  410. package/dist/components/marketplace-search.cjs.map +1 -1
  411. package/dist/components/marketplace-search.js +2 -2
  412. package/dist/components/marketplace-search.js.map +1 -1
  413. package/dist/components/media-wallet/action-modal.cjs +2 -2
  414. package/dist/components/media-wallet/action-modal.cjs.map +1 -1
  415. package/dist/components/media-wallet/action-modal.js +2 -2
  416. package/dist/components/media-wallet/action-modal.js.map +1 -1
  417. package/dist/components/media-wallet/activate-card.cjs +1 -4
  418. package/dist/components/media-wallet/activate-card.cjs.map +1 -1
  419. package/dist/components/media-wallet/activate-card.js +1 -4
  420. package/dist/components/media-wallet/activate-card.js.map +1 -1
  421. package/dist/components/media-wallet/back-button.cjs +1 -1
  422. package/dist/components/media-wallet/back-button.cjs.map +1 -1
  423. package/dist/components/media-wallet/back-button.js +1 -1
  424. package/dist/components/media-wallet/back-button.js.map +1 -1
  425. package/dist/components/media-wallet/media-wallet-activity.cjs +3 -5
  426. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  427. package/dist/components/media-wallet/media-wallet-activity.js +3 -5
  428. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  429. package/dist/components/media-wallet/media-wallet-home.cjs +10 -10
  430. package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
  431. package/dist/components/media-wallet/media-wallet-home.js +10 -10
  432. package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
  433. package/dist/components/media-wallet/media-wallet-overlay.cjs +1 -1
  434. package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
  435. package/dist/components/media-wallet/media-wallet-overlay.js +1 -1
  436. package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
  437. package/dist/components/media-wallet/media-wallet-send.cjs +5 -6
  438. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  439. package/dist/components/media-wallet/media-wallet-send.js +5 -6
  440. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  441. package/dist/components/media-wallet/media-wallet-token-detail.cjs +0 -2
  442. package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
  443. package/dist/components/media-wallet/media-wallet-token-detail.js +0 -2
  444. package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
  445. package/dist/components/media-wallet/quick-action.cjs +1 -11
  446. package/dist/components/media-wallet/quick-action.cjs.map +1 -1
  447. package/dist/components/media-wallet/quick-action.d.cts +1 -3
  448. package/dist/components/media-wallet/quick-action.d.ts +1 -3
  449. package/dist/components/media-wallet/quick-action.js +1 -11
  450. package/dist/components/media-wallet/quick-action.js.map +1 -1
  451. package/dist/components/media-wallet/success-dialog.cjs +2 -3
  452. package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
  453. package/dist/components/media-wallet/success-dialog.js +2 -3
  454. package/dist/components/media-wallet/success-dialog.js.map +1 -1
  455. package/dist/components/medialane-collection-card.cjs +5 -3
  456. package/dist/components/medialane-collection-card.cjs.map +1 -1
  457. package/dist/components/medialane-collection-card.js +5 -3
  458. package/dist/components/medialane-collection-card.js.map +1 -1
  459. package/dist/components/mint-landing.cjs +26 -25
  460. package/dist/components/mint-landing.cjs.map +1 -1
  461. package/dist/components/mint-landing.js +26 -25
  462. package/dist/components/mint-landing.js.map +1 -1
  463. package/dist/components/more-menu.cjs +2 -2
  464. package/dist/components/more-menu.cjs.map +1 -1
  465. package/dist/components/more-menu.js +2 -2
  466. package/dist/components/more-menu.js.map +1 -1
  467. package/dist/components/nav-command-menu.cjs +6 -6
  468. package/dist/components/nav-command-menu.cjs.map +1 -1
  469. package/dist/components/nav-command-menu.js +6 -6
  470. package/dist/components/nav-command-menu.js.map +1 -1
  471. package/dist/components/nav-language-switch.cjs +1 -1
  472. package/dist/components/nav-language-switch.cjs.map +1 -1
  473. package/dist/components/nav-language-switch.js +1 -1
  474. package/dist/components/nav-language-switch.js.map +1 -1
  475. package/dist/components/nav-shell.cjs +2 -2
  476. package/dist/components/nav-shell.cjs.map +1 -1
  477. package/dist/components/nav-shell.js +2 -2
  478. package/dist/components/nav-shell.js.map +1 -1
  479. package/dist/components/nav-theme-toggle.cjs +1 -1
  480. package/dist/components/nav-theme-toggle.cjs.map +1 -1
  481. package/dist/components/nav-theme-toggle.js +1 -1
  482. package/dist/components/nav-theme-toggle.js.map +1 -1
  483. package/dist/components/new-collection-menu.cjs +1 -1
  484. package/dist/components/new-collection-menu.cjs.map +1 -1
  485. package/dist/components/new-collection-menu.js +1 -1
  486. package/dist/components/new-collection-menu.js.map +1 -1
  487. package/dist/components/page-skeletons.cjs +1 -1
  488. package/dist/components/page-skeletons.cjs.map +1 -1
  489. package/dist/components/page-skeletons.js +1 -1
  490. package/dist/components/page-skeletons.js.map +1 -1
  491. package/dist/components/panel.cjs +8 -12
  492. package/dist/components/panel.cjs.map +1 -1
  493. package/dist/components/panel.d.cts +5 -6
  494. package/dist/components/panel.d.ts +5 -6
  495. package/dist/components/panel.js +7 -11
  496. package/dist/components/panel.js.map +1 -1
  497. package/dist/components/parent-attribution-banner.cjs +3 -1
  498. package/dist/components/parent-attribution-banner.cjs.map +1 -1
  499. package/dist/components/parent-attribution-banner.js +3 -1
  500. package/dist/components/parent-attribution-banner.js.map +1 -1
  501. package/dist/components/pop-burn-button.cjs +1 -1
  502. package/dist/components/pop-burn-button.cjs.map +1 -1
  503. package/dist/components/pop-burn-button.js +1 -1
  504. package/dist/components/pop-burn-button.js.map +1 -1
  505. package/dist/components/pop-manage-page.cjs +9 -9
  506. package/dist/components/pop-manage-page.cjs.map +1 -1
  507. package/dist/components/pop-manage-page.js +9 -9
  508. package/dist/components/pop-manage-page.js.map +1 -1
  509. package/dist/components/pop-my-events-page.cjs +6 -6
  510. package/dist/components/pop-my-events-page.cjs.map +1 -1
  511. package/dist/components/pop-my-events-page.js +6 -6
  512. package/dist/components/pop-my-events-page.js.map +1 -1
  513. package/dist/components/popover.cjs +1 -1
  514. package/dist/components/popover.cjs.map +1 -1
  515. package/dist/components/popover.js +1 -1
  516. package/dist/components/popover.js.map +1 -1
  517. package/dist/components/portfolio-activity.cjs +1 -1
  518. package/dist/components/portfolio-activity.cjs.map +1 -1
  519. package/dist/components/portfolio-activity.js +1 -1
  520. package/dist/components/portfolio-activity.js.map +1 -1
  521. package/dist/components/portfolio-chip-filter.cjs +3 -3
  522. package/dist/components/portfolio-chip-filter.cjs.map +1 -1
  523. package/dist/components/portfolio-chip-filter.js +3 -3
  524. package/dist/components/portfolio-chip-filter.js.map +1 -1
  525. package/dist/components/portfolio-header.cjs +1 -1
  526. package/dist/components/portfolio-header.cjs.map +1 -1
  527. package/dist/components/portfolio-header.js +1 -1
  528. package/dist/components/portfolio-header.js.map +1 -1
  529. package/dist/components/portfolio-orders.cjs +6 -6
  530. package/dist/components/portfolio-orders.cjs.map +1 -1
  531. package/dist/components/portfolio-orders.js +6 -6
  532. package/dist/components/portfolio-orders.js.map +1 -1
  533. package/dist/components/portfolio-sponsorships.cjs +6 -7
  534. package/dist/components/portfolio-sponsorships.cjs.map +1 -1
  535. package/dist/components/portfolio-sponsorships.js +6 -7
  536. package/dist/components/portfolio-sponsorships.js.map +1 -1
  537. package/dist/components/remix-browse-page.cjs +4 -4
  538. package/dist/components/remix-browse-page.cjs.map +1 -1
  539. package/dist/components/remix-browse-page.js +4 -4
  540. package/dist/components/remix-browse-page.js.map +1 -1
  541. package/dist/components/remixes-tab.cjs +3 -3
  542. package/dist/components/remixes-tab.cjs.map +1 -1
  543. package/dist/components/remixes-tab.js +3 -3
  544. package/dist/components/remixes-tab.js.map +1 -1
  545. package/dist/components/report-dialog.cjs +1 -1
  546. package/dist/components/report-dialog.cjs.map +1 -1
  547. package/dist/components/report-dialog.js +1 -1
  548. package/dist/components/report-dialog.js.map +1 -1
  549. package/dist/components/result-thumbnail.cjs +1 -1
  550. package/dist/components/result-thumbnail.cjs.map +1 -1
  551. package/dist/components/result-thumbnail.js +1 -1
  552. package/dist/components/result-thumbnail.js.map +1 -1
  553. package/dist/components/rewards/badge-catalog.cjs +1 -1
  554. package/dist/components/rewards/badge-catalog.cjs.map +1 -1
  555. package/dist/components/rewards/badge-catalog.js +1 -1
  556. package/dist/components/rewards/badge-catalog.js.map +1 -1
  557. package/dist/components/rewards/badge-shelf.cjs +1 -2
  558. package/dist/components/rewards/badge-shelf.cjs.map +1 -1
  559. package/dist/components/rewards/badge-shelf.js +1 -2
  560. package/dist/components/rewards/badge-shelf.js.map +1 -1
  561. package/dist/components/rewards/badge-unlocked.cjs +2 -2
  562. package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
  563. package/dist/components/rewards/badge-unlocked.js +2 -2
  564. package/dist/components/rewards/badge-unlocked.js.map +1 -1
  565. package/dist/components/rewards/leaderboard-panel.cjs +2 -2
  566. package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
  567. package/dist/components/rewards/leaderboard-panel.js +2 -2
  568. package/dist/components/rewards/leaderboard-panel.js.map +1 -1
  569. package/dist/components/rewards/level-badge.cjs +1 -1
  570. package/dist/components/rewards/level-badge.cjs.map +1 -1
  571. package/dist/components/rewards/level-badge.js +1 -1
  572. package/dist/components/rewards/level-badge.js.map +1 -1
  573. package/dist/components/rewards/level-journey-list.cjs +1 -1
  574. package/dist/components/rewards/level-journey-list.cjs.map +1 -1
  575. package/dist/components/rewards/level-journey-list.js +1 -1
  576. package/dist/components/rewards/level-journey-list.js.map +1 -1
  577. package/dist/components/rewards/rewards-dashboard.cjs +34 -38
  578. package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
  579. package/dist/components/rewards/rewards-dashboard.js +34 -38
  580. package/dist/components/rewards/rewards-dashboard.js.map +1 -1
  581. package/dist/components/rewards/xp-earned.cjs +2 -2
  582. package/dist/components/rewards/xp-earned.cjs.map +1 -1
  583. package/dist/components/rewards/xp-earned.js +2 -2
  584. package/dist/components/rewards/xp-earned.js.map +1 -1
  585. package/dist/components/rewards-page.cjs +1 -1
  586. package/dist/components/rewards-page.cjs.map +1 -1
  587. package/dist/components/rewards-page.js +1 -1
  588. package/dist/components/rewards-page.js.map +1 -1
  589. package/dist/components/rewards-section.cjs +4 -4
  590. package/dist/components/rewards-section.cjs.map +1 -1
  591. package/dist/components/rewards-section.js +4 -4
  592. package/dist/components/rewards-section.js.map +1 -1
  593. package/dist/components/select.cjs +3 -3
  594. package/dist/components/select.cjs.map +1 -1
  595. package/dist/components/select.js +3 -3
  596. package/dist/components/select.js.map +1 -1
  597. package/dist/components/service-collections-page.cjs +1 -1
  598. package/dist/components/service-collections-page.cjs.map +1 -1
  599. package/dist/components/service-collections-page.js +1 -1
  600. package/dist/components/service-collections-page.js.map +1 -1
  601. package/dist/components/service-header.cjs +2 -2
  602. package/dist/components/service-header.cjs.map +1 -1
  603. package/dist/components/service-header.js +2 -2
  604. package/dist/components/service-header.js.map +1 -1
  605. package/dist/components/settings-section.cjs +2 -2
  606. package/dist/components/settings-section.cjs.map +1 -1
  607. package/dist/components/settings-section.js +2 -2
  608. package/dist/components/settings-section.js.map +1 -1
  609. package/dist/components/settings-snapshots.cjs +2 -2
  610. package/dist/components/settings-snapshots.cjs.map +1 -1
  611. package/dist/components/settings-snapshots.js +2 -2
  612. package/dist/components/settings-snapshots.js.map +1 -1
  613. package/dist/components/sheet.cjs +1 -1
  614. package/dist/components/sheet.cjs.map +1 -1
  615. package/dist/components/sheet.d.cts +1 -1
  616. package/dist/components/sheet.d.ts +1 -1
  617. package/dist/components/sheet.js +1 -1
  618. package/dist/components/sheet.js.map +1 -1
  619. package/dist/components/sign-in-prompt.cjs +1 -1
  620. package/dist/components/sign-in-prompt.cjs.map +1 -1
  621. package/dist/components/sign-in-prompt.js +1 -1
  622. package/dist/components/sign-in-prompt.js.map +1 -1
  623. package/dist/components/skeleton.cjs +1 -1
  624. package/dist/components/skeleton.cjs.map +1 -1
  625. package/dist/components/skeleton.js +1 -1
  626. package/dist/components/skeleton.js.map +1 -1
  627. package/dist/components/soulbound-card.cjs +1 -2
  628. package/dist/components/soulbound-card.cjs.map +1 -1
  629. package/dist/components/soulbound-card.js +1 -2
  630. package/dist/components/soulbound-card.js.map +1 -1
  631. package/dist/components/sponsorship-offer-page.cjs +3 -3
  632. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  633. package/dist/components/sponsorship-offer-page.js +3 -3
  634. package/dist/components/sponsorship-offer-page.js.map +1 -1
  635. package/dist/components/sponsorship-offers-page.cjs +4 -3
  636. package/dist/components/sponsorship-offers-page.cjs.map +1 -1
  637. package/dist/components/sponsorship-offers-page.js +4 -3
  638. package/dist/components/sponsorship-offers-page.js.map +1 -1
  639. package/dist/components/stat-tile.cjs +1 -1
  640. package/dist/components/stat-tile.cjs.map +1 -1
  641. package/dist/components/stat-tile.js +1 -1
  642. package/dist/components/stat-tile.js.map +1 -1
  643. package/dist/components/tab-empty-state.cjs +1 -1
  644. package/dist/components/tab-empty-state.cjs.map +1 -1
  645. package/dist/components/tab-empty-state.js +1 -1
  646. package/dist/components/tab-empty-state.js.map +1 -1
  647. package/dist/components/tabs.cjs +2 -2
  648. package/dist/components/tabs.cjs.map +1 -1
  649. package/dist/components/tabs.js +2 -2
  650. package/dist/components/tabs.js.map +1 -1
  651. package/dist/components/textarea.cjs +1 -1
  652. package/dist/components/textarea.cjs.map +1 -1
  653. package/dist/components/textarea.js +1 -1
  654. package/dist/components/textarea.js.map +1 -1
  655. package/dist/components/token-card.cjs +14 -24
  656. package/dist/components/token-card.cjs.map +1 -1
  657. package/dist/components/token-card.js +14 -24
  658. package/dist/components/token-card.js.map +1 -1
  659. package/dist/components/transaction-dialog.cjs +2 -2
  660. package/dist/components/transaction-dialog.cjs.map +1 -1
  661. package/dist/components/transaction-dialog.js +2 -2
  662. package/dist/components/transaction-dialog.js.map +1 -1
  663. package/dist/components/transaction-success.cjs +1 -1
  664. package/dist/components/transaction-success.cjs.map +1 -1
  665. package/dist/components/transaction-success.js +1 -1
  666. package/dist/components/transaction-success.js.map +1 -1
  667. package/dist/components/transfer-collection-ownership.cjs +2 -2
  668. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  669. package/dist/components/transfer-collection-ownership.js +2 -2
  670. package/dist/components/transfer-collection-ownership.js.map +1 -1
  671. package/dist/components/underline-tabs.cjs +1 -1
  672. package/dist/components/underline-tabs.cjs.map +1 -1
  673. package/dist/components/underline-tabs.js +1 -1
  674. package/dist/components/underline-tabs.js.map +1 -1
  675. package/dist/components/wallet/self-fund-consent-dialog.cjs +3 -3
  676. package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
  677. package/dist/components/wallet/self-fund-consent-dialog.js +3 -3
  678. package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
  679. package/dist/components/wallet-required.cjs +1 -1
  680. package/dist/components/wallet-required.cjs.map +1 -1
  681. package/dist/components/wallet-required.js +1 -1
  682. package/dist/components/wallet-required.js.map +1 -1
  683. package/dist/data/brand.cjs +7 -59
  684. package/dist/data/brand.cjs.map +1 -1
  685. package/dist/data/brand.d.cts +1 -30
  686. package/dist/data/brand.d.ts +1 -30
  687. package/dist/data/brand.js +6 -52
  688. package/dist/data/brand.js.map +1 -1
  689. package/dist/data/ip-templates.cjs +9 -9
  690. package/dist/data/ip-templates.cjs.map +1 -1
  691. package/dist/data/ip-templates.js +9 -9
  692. package/dist/data/ip-templates.js.map +1 -1
  693. package/dist/index.cjs +2 -12
  694. package/dist/index.cjs.map +1 -1
  695. package/dist/index.d.cts +3 -3
  696. package/dist/index.d.ts +3 -3
  697. package/dist/index.js +4 -9
  698. package/dist/index.js.map +1 -1
  699. package/dist/medialane.css +35 -73
  700. package/dist/preset/tailwind.cjs +0 -1
  701. package/dist/preset/tailwind.cjs.map +1 -1
  702. package/dist/preset/tailwind.js +0 -1
  703. package/dist/preset/tailwind.js.map +1 -1
  704. package/dist/utils/asset-accents.cjs +15 -28
  705. package/dist/utils/asset-accents.cjs.map +1 -1
  706. package/dist/utils/asset-accents.d.cts +4 -36
  707. package/dist/utils/asset-accents.d.ts +4 -36
  708. package/dist/utils/asset-accents.js +15 -28
  709. package/dist/utils/asset-accents.js.map +1 -1
  710. package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
  711. package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
  712. package/package.json +1 -1
@@ -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-teal-500\",\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,EACp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ACrB,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 — 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,sB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AmB;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":[]}
@@ -28,7 +28,7 @@ const CLUB_PRESET = {
28
28
  const TICKETS_PRESET = {
29
29
  service: "ip-tickets",
30
30
  icon: Ticket,
31
- iconClass: "text-teal-500",
31
+ iconClass: "text-brand-blue",
32
32
  signedOut: { title: msg("Secure your account to create tickets"), description: msg("Create a tickets collection, then mint tickets to your audience.") },
33
33
  shell: { title: msg("Create ticket collection"), subtitle: msg("One collection \u2014 create tickets and mint them to your audience.") },
34
34
  dialog: { title: msg("Create tickets collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
@@ -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-teal-500\",\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;AAAA,IAC9B,UAAU,IAAI,4DAA4D;AAAA,IAC1E,mBAAmB,IAAI,MAAM;AAAA,IAC7B,YAAY,IAAI,gDAA2C;AAAA,IAC3D,wBAAwB,IAAI,wDAAmD;AAAA,IAC/E,QAAQ,IAAI,aAAa;AAAA,IACzB,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,OAAO,EAAE,SAA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AAO,IAAI,qBAAqB,GAAG,UAAU,IAAI,oFAA+E,EAAE;AAAA,EAC3I,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,gFAA2E;AAAA,IAC3F,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":[]}
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;AAAA,IAC9B,UAAU,IAAI,4DAA4D;AAAA,IAC1E,mBAAmB,IAAI,MAAM;AAAA,IAC7B,YAAY,IAAI,gDAA2C;AAAA,IAC3D,wBAAwB,IAAI,wDAAmD;AAAA,IAC/E,QAAQ,IAAI,aAAa;AAAA,IACzB,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EAC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,OAAO,IAAI,4CAA4C,GAAG,aAAa,IAAI,6CAA6C,EAAE;AAAA,EACvI,OAAO,EAAE,OAAO,IAAI,qBAAqB,GAAG,UAAU,IAAI,oFAA+E,EAAE;AAAA,EAC3I,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,gFAA2E;AAAA,IAC3F,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":[]}
@@ -53,7 +53,7 @@ function works(col, t, intl) {
53
53
  }
54
54
  function Thumb({ image, size }) {
55
55
  const url = (0, import_use_image_url.useImageUrl)()(image);
56
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("relative rounded-lg overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
56
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("relative rounded-2xl overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
57
57
  }
58
58
  function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }) {
59
59
  const t = (0, import_provider.useT)();
@@ -86,7 +86,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
86
86
  {
87
87
  type: "button",
88
88
  "aria-expanded": open,
89
- className: "flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40",
89
+ className: "panel flex w-full items-center gap-3 p-3 text-left transition-colors hover:bg-muted/40",
90
90
  children: [
91
91
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Thumb, { image: selected?.image, size: "md" }),
92
92
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
@@ -110,7 +110,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
110
110
  onChange(col.collectionId);
111
111
  setOpen(false);
112
112
  },
113
- className: "flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60",
113
+ className: "flex w-full items-center gap-2.5 rounded-2xl px-2 py-2 text-left transition-colors hover:bg-muted/60",
114
114
  children: [
115
115
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Thumb, { image: col.image, size: "sm" }),
116
116
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
@@ -126,7 +126,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
126
126
  import_link.default,
127
127
  {
128
128
  href: newCollectionHref,
129
- className: "flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
129
+ className: "flex items-center gap-2 rounded-2xl px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
130
130
  children: [
131
131
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-4 w-4" }),
132
132
  t("New collection")
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\nimport { ActionButton } from \"../action-button.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-lg overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <ActionButton solid small asChild>\n <Link href={newCollectionHref}>\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </ActionButton>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {t(\"New collection\")}\n </Link>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCQ;AApCR,mBAAyB;AACzB,0BAAgD;AAEhD,mBAAkB;AAClB,kBAAiB;AACjB,mBAAsB;AACt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AC,OAAE,WAAU,uDAAuD,YAAE,sBAAsB,GAAE,IAE9F,SAAS,IAAI,CAAC,QACZ;AAAA,YAAC;AAAA;AAAA,cAEC,MAAK;AAAA,cACL,SAAS,MAAM;AACb,yBAAS,IAAI,YAAa;AAC1B,wBAAQ,KAAK;AAAA,cACf;AAAA,cACA,WAAU;AAAA,cAEV;AAAA,4DAAC,SAAM,OAAO,IAAI,OAAO,MAAK,MAAK;AAAA,gBACnC,6CAAC,SAAI,WAAU,kBACb;AAAA,8DAAC,OAAE,WAAU,gCAAgC,gBAAM,GAAG,GAAE;AAAA,kBACxD,4CAAC,OAAE,WAAU,iCAAiC,gBAAM,KAAK,GAAG,IAAI,GAAE;AAAA,mBACpE;AAAA,gBACC,UAAU,IAAI,gBAAgB,4CAAC,6BAAM,WAAU,oCAAmC;AAAA;AAAA;AAAA,YAb9E,IAAI;AAAA,UAcX,CACD,GAEL;AAAA,UACA,4CAAC,SAAI,WAAU,8BACb;AAAA,YAAC,YAAAA;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,WAAU;AAAA,cAEV;AAAA,4DAAC,4BAAK,WAAU,WAAU;AAAA,gBACzB,EAAE,gBAAgB;AAAA;AAAA;AAAA,UACrB,GACF;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["Image","Link"]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\nimport { ActionButton } from \"../action-button.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-2xl overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <ActionButton solid small asChild>\n <Link href={newCollectionHref}>\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </ActionButton>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"panel flex w-full items-center gap-3 p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-2xl px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-2xl px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {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S,KACpB,4CAAC,SAAI,WAAU,8BACb,sDAAC,sBAAM,OAAO,OAAO,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK,GAAG,aAAa,EAAE,0BAAqB,GAAG,WAAU,OAAM,GACzH;AAAA,UAEF,4CAAC,SAAI,WAAU,gCACZ,mBAAS,WAAW,IACnB,4CAAC,OAAE,WAAU,uDAAuD,YAAE,sBAAsB,GAAE,IAE9F,SAAS,IAAI,CAAC,QACZ;AAAA,YAAC;AAAA;AAAA,cAEC,MAAK;AAAA,cACL,SAAS,MAAM;AACb,yBAAS,IAAI,YAAa;AAC1B,wBAAQ,KAAK;AAAA,cACf;AAAA,cACA,WAAU;AAAA,cAEV;AAAA,4DAAC,SAAM,OAAO,IAAI,OAAO,MAAK,MAAK;AAAA,gBACnC,6CAAC,SAAI,WAAU,kBACb;AAAA,8DAAC,OAAE,WAAU,gCAAgC,gBAAM,GAAG,GAAE;AAAA,kBACxD,4CAAC,OAAE,WAAU,iCAAiC,gBAAM,KAAK,GAAG,IAAI,GAAE;AAAA,mBACpE;AAAA,gBACC,UAAU,IAAI,gBAAgB,4CAAC,6BAAM,WAAU,oCAAmC;AAAA;AAAA;AAAA,YAb9E,IAAI;AAAA,UAcX,CACD,GAEL;AAAA,UACA,4CAAC,SAAI,WAAU,8BACb;AAAA,YAAC,YAAAA;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,WAAU;AAAA,cAEV;AAAA,4DAAC,4BAAK,WAAU,WAAU;AAAA,gBACzB,EAAE,gBAAgB;AAAA;AAAA;AAAA,UACrB,GACF;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["Image","Link"]}
@@ -20,7 +20,7 @@ function works(col, t, intl) {
20
20
  }
21
21
  function Thumb({ image, size }) {
22
22
  const url = useImageUrl()(image);
23
- return /* @__PURE__ */ jsx("div", { className: cn("relative rounded-lg overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ jsx(Image, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
23
+ return /* @__PURE__ */ jsx("div", { className: cn("relative rounded-2xl overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ jsx(Image, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
24
24
  }
25
25
  function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }) {
26
26
  const t = useT();
@@ -53,7 +53,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
53
53
  {
54
54
  type: "button",
55
55
  "aria-expanded": open,
56
- className: "flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40",
56
+ className: "panel flex w-full items-center gap-3 p-3 text-left transition-colors hover:bg-muted/40",
57
57
  children: [
58
58
  /* @__PURE__ */ jsx(Thumb, { image: selected?.image, size: "md" }),
59
59
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
@@ -77,7 +77,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
77
77
  onChange(col.collectionId);
78
78
  setOpen(false);
79
79
  },
80
- className: "flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60",
80
+ className: "flex w-full items-center gap-2.5 rounded-2xl px-2 py-2 text-left transition-colors hover:bg-muted/60",
81
81
  children: [
82
82
  /* @__PURE__ */ jsx(Thumb, { image: col.image, size: "sm" }),
83
83
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
@@ -93,7 +93,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
93
93
  Link,
94
94
  {
95
95
  href: newCollectionHref,
96
- className: "flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
96
+ className: "flex items-center gap-2 rounded-2xl px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
97
97
  children: [
98
98
  /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
99
99
  t("New collection")
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\nimport { ActionButton } from \"../action-button.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-lg overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <ActionButton solid small asChild>\n <Link href={newCollectionHref}>\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </ActionButton>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {t(\"New collection\")}\n </Link>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";AAsCQ,cAuBE,YAvBF;AApCR,SAAS,gBAAgB;AACzB,SAAS,OAAO,OAAO,aAAa,YAAY;AAEhD,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAS,UAAU;AACnB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,SAAS,iBAA8B;AACvC,SAAS,oBAAoB;AAU7B,SAAS,MAAM,KAAoB;AACjC,SAAO,IAAI,QAAQ,IAAI,UAAU,eAAe,IAAI,YAAY;AAClE;AAEA,SAAS,MAAM,KAAoB,GAAM,MAAc;AACrD,SAAO,IAAI,eAAe,OAAO,EAAE,OAAO,g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b;AAAA,sCAAC,OAAE,WAAU,gCAAgC,gBAAM,GAAG,GAAE;AAAA,kBACxD,oBAAC,OAAE,WAAU,iCAAiC,gBAAM,KAAK,GAAG,IAAI,GAAE;AAAA,mBACpE;AAAA,gBACC,UAAU,IAAI,gBAAgB,oBAAC,SAAM,WAAU,oCAAmC;AAAA;AAAA;AAAA,YAb9E,IAAI;AAAA,UAcX,CACD,GAEL;AAAA,UACA,oBAAC,SAAI,WAAU,8BACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,WAAU;AAAA,cAEV;AAAA,oCAAC,QAAK,WAAU,WAAU;AAAA,gBACzB,EAAE,gBAAgB;AAAA;AAAA;AAAA,UACrB,GACF;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\nimport { ActionButton } from \"../action-button.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-2xl overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <ActionButton solid small asChild>\n <Link href={newCollectionHref}>\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </ActionButton>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"panel flex w-full items-center gap-3 p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-2xl px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-2xl px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {t(\"New collection\")}\n </Link>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";AAsCQ,cAuBE,YAvBF;AApCR,SAAS,gBAAgB;AACzB,SAAS,OAAO,OAAO,aAAa,YAAY;AAEhD,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAS,UAAU;AACnB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,SAAS,iBA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AAAA,cACL,SAAS,MAAM;AACb,yBAAS,IAAI,YAAa;AAC1B,wBAAQ,KAAK;AAAA,cACf;AAAA,cACA,WAAU;AAAA,cAEV;AAAA,oCAAC,SAAM,OAAO,IAAI,OAAO,MAAK,MAAK;AAAA,gBACnC,qBAAC,SAAI,WAAU,kBACb;AAAA,sCAAC,OAAE,WAAU,gCAAgC,gBAAM,GAAG,GAAE;AAAA,kBACxD,oBAAC,OAAE,WAAU,iCAAiC,gBAAM,KAAK,GAAG,IAAI,GAAE;AAAA,mBACpE;AAAA,gBACC,UAAU,IAAI,gBAAgB,oBAAC,SAAM,WAAU,oCAAmC;AAAA;AAAA;AAAA,YAb9E,IAAI;AAAA,UAcX,CACD,GAEL;AAAA,UACA,oBAAC,SAAI,WAAU,8BACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,WAAU;AAAA,cAEV;AAAA,oCAAC,QAAK,WAAU,WAAU;AAAA,gBACzB,EAAE,gBAAgB;AAAA;AAAA;AAAA,UACrB,GACF;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -19,13 +19,13 @@ declare const editionMintSchema: z.ZodObject<{
19
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
20
20
  licenseType: string;
21
21
  commercialUse: "Yes" | "No";
22
+ value: string;
23
+ recipient: string;
22
24
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
23
25
  attribution: "Required" | "Not Required";
24
26
  geographicScope: string;
25
27
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
26
28
  royalty: number;
27
- value: string;
28
- recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
@@ -33,13 +33,13 @@ declare const editionMintSchema: z.ZodObject<{
33
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
34
34
  licenseType: string;
35
35
  commercialUse: "Yes" | "No";
36
+ value: string;
37
+ recipient: string;
36
38
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
37
39
  attribution: "Required" | "Not Required";
38
40
  geographicScope: string;
39
41
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
40
42
  royalty: number;
41
- value: string;
42
- recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -19,13 +19,13 @@ declare const editionMintSchema: z.ZodObject<{
19
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
20
20
  licenseType: string;
21
21
  commercialUse: "Yes" | "No";
22
+ value: string;
23
+ recipient: string;
22
24
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
23
25
  attribution: "Required" | "Not Required";
24
26
  geographicScope: string;
25
27
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
26
28
  royalty: number;
27
- value: string;
28
- recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
@@ -33,13 +33,13 @@ declare const editionMintSchema: z.ZodObject<{
33
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
34
34
  licenseType: string;
35
35
  commercialUse: "Yes" | "No";
36
+ value: string;
37
+ recipient: string;
36
38
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
37
39
  attribution: "Required" | "Not Required";
38
40
  geographicScope: string;
39
41
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
40
42
  royalty: number;
41
- value: string;
42
- recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -176,7 +176,7 @@ function EditionMint({ contract: rawContract, aside }) {
176
176
  icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sparkles, { className: "h-4 w-4 text-white" }),
177
177
  title: t("Mint an edition"),
178
178
  subtitle: t("Add a new piece to your collection \u2014 its details and authorship are saved permanently. Free to mint, and it's yours."),
179
- headerAccessory: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center gap-2 rounded-lg border border-border bg-background/60 px-3 py-2 max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "tabular-nums text-xs text-foreground/80 truncate", children: t("Collection: {collectionAddress}", { collectionAddress }) }) }),
179
+ headerAccessory: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "panel flex items-center gap-2 px-3 py-2 max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "tabular-nums text-xs text-foreground/80 truncate", children: t("Collection: {collectionAddress}", { collectionAddress }) }) }),
180
180
  aside: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
181
181
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
182
182
  import_medialane_collection_card.MedialaneCollectionCard,
@@ -211,7 +211,7 @@ function EditionMint({ contract: rawContract, aside }) {
211
211
  }
212
212
  ),
213
213
  uploadError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-destructive mt-1", children: uploadError }),
214
- uploadSuccess && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-xs text-emerald-500 mt-1", children: [
214
+ uploadSuccess && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-xs text-brand-blue mt-1", children: [
215
215
  "\u2713 ",
216
216
  uploadSuccess
217
217
  ] }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/edition-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Sparkles } from \"lucide-react\";\nimport { assetHref, normalizeAddress, profileHref } from \"@medialane/sdk\";\nimport { mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Link from \"../link.js\";\nimport { Button } from \"../button.js\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport type { MetadataField } from \"../ip-type-fields.js\";\nimport { EditionMintFields } from \"./edition-mint-fields.js\";\nimport { editionMintSchema, type EditionMintValues } from \"./edition-mint-schema.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { pinAssetMetadata, uploadFileToIpfs } 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 { useT } from \"../../i18n/provider.js\";\n\nconst DEFAULTS: EditionMintValues = {\n value: \"1\",\n recipient: \"\",\n name: \"\",\n description: \"\",\n external_url: \"\",\n ipType: \"NFT\",\n licenseType: \"CC BY-SA\",\n commercialUse: \"Yes\",\n derivatives: \"Share-Alike\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Allowed\",\n royalty: 0,\n};\n\nexport function EditionMint({ contract: rawContract, aside }: { contract: string; aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const collectionAddress = normalizeAddress(\"STARKNET\", rawContract);\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded to IPFS\"), failureMessage: t(\"Image upload failed\") });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [ownerCheck, setOwnerCheck] = useState<\"loading\" | \"ok\" | \"denied\">(\"loading\");\n const [formError, setFormError] = useState<string | null>(null);\n const [metadataResetKey, setMetadataResetKey] = useState(0);\n const [autoExternalUrl, setAutoExternalUrl] = useState(\"\");\n const metadataFieldsRef = useRef<MetadataField[]>([]);\n\n const form = useForm<EditionMintValues>({ resolver: zodResolver(editionMintSchema), defaultValues: DEFAULTS });\n\n useEffect(() => {\n if (walletAddress && !form.getValues(\"recipient\")) form.setValue(\"recipient\", walletAddress);\n }, [walletAddress, form]);\n\n useEffect(() => {\n const suggested = `https://medialane.io/collections/${collectionAddress}`;\n const current = form.getValues(\"external_url\");\n if (!current || current === autoExternalUrl) {\n form.setValue(\"external_url\", suggested, { shouldDirty: false });\n setAutoExternalUrl(suggested);\n }\n }, [autoExternalUrl, collectionAddress, form]);\n\n useEffect(() => {\n if (!walletAddress) return;\n app\n .getClient()\n .api.collections.get(collectionAddress)\n .then((data) => {\n const owner = data.owner ? normalizeAddress(\"STARKNET\", data.owner) : null;\n setOwnerCheck(owner === normalizeAddress(\"STARKNET\", walletAddress) ? \"ok\" : \"denied\");\n })\n .catch(() => setOwnerCheck(\"denied\"));\n }, [app, walletAddress, collectionAddress]);\n\n const uploadDocument = async (file: File) => {\n await app.ensureSignedIn?.();\n return (await uploadFileToIpfs(app.getClient().api, file, \"document\")).uri;\n };\n\n const handleAgain = () => {\n tx.reset();\n metadataFieldsRef.current = [];\n setMetadataResetKey((key) => key + 1);\n setAutoExternalUrl(\"\");\n clearImage();\n form.reset({ ...DEFAULTS, recipient: walletAddress ?? \"\" });\n };\n\n const onSubmit = (values: EditionMintValues) => {\n if (!imageUri) {\n setFormError(\"Upload an image before minting.\");\n return;\n }\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const pinned = await pinAssetMetadata(api, {\n name: values.name,\n description: values.description ?? \"\",\n imageUri,\n externalUrl: values.external_url,\n ipType: values.ipType,\n licenseType: values.licenseType,\n commercialUse: values.commercialUse,\n derivatives: values.derivatives,\n attribution: values.attribution,\n geographicScope: values.geographicScope,\n aiPolicy: values.aiPolicy,\n royalty: String(values.royalty),\n creator: walletAddress,\n templateTraits: metadataFieldsRef.current.filter((f) => f.traitType.trim() && f.value.trim()).map((f) => ({ traitType: f.traitType.trim(), value: f.value.trim() })),\n });\n await runIntentCalls(signer, () =>\n api.intents.create(\"mint\", {\n owner: walletAddress,\n recipient: values.recipient,\n collectionContract: collectionAddress,\n tokenUri: pinned.uri,\n value: values.value,\n royaltyBps: 0,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const mintedTokenId = tx.receipt ? mintedTokenIdFromReceipt(tx.receipt, collectionAddress) : null;\n\n return (\n <WalletRequired\n icon={Sparkles}\n iconClassName=\"text-brand-purple\"\n title={t(\"Secure your account to create\")}\n description={t(\"Secure your account to mint tokens into a multi-editions collection.\")}\n >\n {ownerCheck === \"denied\" ? (\n <div className=\"max-w-lg mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Sparkles className=\"h-10 w-10 text-muted-foreground mx-auto\" />\n <h1 className=\"text-2xl font-bold\">{t(\"Not the owner\")}</h1>\n <p className=\"text-muted-foreground\">{t(\"Only the collection owner can mint tokens. Connect the wallet that deployed this collection.\")}</p>\n <Button asChild variant=\"soft\">\n <Link href=\"/launchpad\">{t(\"Back to Launchpad\")}</Link>\n </Button>\n </div>\n ) : (\n <>\n <ClaimRouteShell\n icon={<Sparkles className=\"h-4 w-4 text-white\" />}\n title={t(\"Mint an edition\")}\n subtitle={t(\"Add a new piece to your collection — its details and authorship are saved permanently. Free to mint, and it's yours.\")}\n headerAccessory={\n <div className=\"flex items-center gap-2 rounded-lg border border-border bg-background/60 px-3 py-2 max-w-full\">\n <span className=\"tabular-nums text-xs text-foreground/80 truncate\">{t(\"Collection: {collectionAddress}\", { collectionAddress })}</span>\n </div>\n }\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={form.watch(\"name\")}\n collection=\"Edition\"\n serial={Number(form.watch(\"value\")) > 1 ? `${form.watch(\"value\")} editions` : undefined}\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 <EditionMintFields\n form={form}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n mintDisabled={imageUploading || tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n metadataResetKey={metadataResetKey}\n onMetadataFieldsChange={(fields) => { metadataFieldsRef.current = fields; }}\n uploadDocument={uploadDocument}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n {formError && <p className=\"text-xs text-destructive mt-1\">{formError}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n\n <TransactionDialog tx={tx} title={t(\"Mint an edition\")} workingLabel=\"Minting your edition…\" firstStepLabel=\"Upload metadata\">\n <TransactionSuccess\n name={form.getValues(\"name\") || \"Your token\"}\n image={imagePreview}\n title={t(\"Editions minted\")}\n description={t(\"Each copy is recorded onchain with the license terms in its metadata.\")}\n actions={[\n ...(mintedTokenId ? [{ href: assetHref(\"STARKNET\", collectionAddress, mintedTokenId), label: t(\"View asset\") }] : []),\n { href: \"/portfolio/assets\", label: t(\"View portfolio\") },\n { label: t(\"Mint another\"), onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n </>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqJQ;AAnJR,mBAA4D;AAC5D,6BAAwB;AACxB,iBAA4B;AAC5B,0BAAyB;AACzB,iBAA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wBAAwB,CAAC,WAAW;AAAE,sCAAkB,UAAU;AAAA,kBAAQ;AAAA,kBAC1E;AAAA;AAAA,cACF;AAAA,cACC,eAAe,4CAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,6CAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,cAC/E,aAAa,4CAAC,OAAE,WAAU,iCAAiC,qBAAU;AAAA,eACxE,GACF;AAAA;AAAA,QACF;AAAA,QAEA,4CAAC,+CAAkB,IAAQ,OAAO,EAAE,iBAAiB,GAAG,cAAa,8BAAwB,gBAAe,mBAC1G;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK,UAAU,MAAM,KAAK;AAAA,YAChC,OAAO;AAAA,YACP,OAAO,EAAE,iBAAiB;AAAA,YAC1B,aAAa,EAAE,uEAAuE;AAAA,YACtF,SAAS;AAAA,cACP,GAAI,gBAAgB,CAAC,EAAE,UAAM,sBAAU,YAAY,mBAAmB,aAAa,GAAG,OAAO,EAAE,YAAY,EAAE,CAAC,IAAI,CAAC;AAAA,cACnH,EAAE,MAAM,qBAAqB,OAAO,EAAE,gBAAgB,EAAE;AAAA,cACxD,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,YAAY;AAAA,YACnD;AAAA,YAEA,sDAAC,qCAAa,YAAW,cAAa;AAAA;AAAA,QACxC,GACF;AAAA,SACF;AAAA;AAAA,EAEJ;AAEJ;","names":["Link"]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/edition-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Sparkles } from \"lucide-react\";\nimport { assetHref, normalizeAddress, profileHref } from \"@medialane/sdk\";\nimport { mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Link from \"../link.js\";\nimport { Button } from \"../button.js\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport type { MetadataField } from \"../ip-type-fields.js\";\nimport { EditionMintFields } from \"./edition-mint-fields.js\";\nimport { editionMintSchema, type EditionMintValues } from \"./edition-mint-schema.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { pinAssetMetadata, uploadFileToIpfs } 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 { useT } from \"../../i18n/provider.js\";\n\nconst DEFAULTS: EditionMintValues = {\n value: \"1\",\n recipient: \"\",\n name: \"\",\n description: \"\",\n external_url: \"\",\n ipType: \"NFT\",\n licenseType: \"CC BY-SA\",\n commercialUse: \"Yes\",\n derivatives: \"Share-Alike\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Allowed\",\n royalty: 0,\n};\n\nexport function EditionMint({ contract: rawContract, aside }: { contract: string; aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const collectionAddress = normalizeAddress(\"STARKNET\", rawContract);\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded to IPFS\"), failureMessage: t(\"Image upload failed\") });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [ownerCheck, setOwnerCheck] = useState<\"loading\" | \"ok\" | \"denied\">(\"loading\");\n const [formError, setFormError] = useState<string | null>(null);\n const [metadataResetKey, setMetadataResetKey] = useState(0);\n const [autoExternalUrl, setAutoExternalUrl] = useState(\"\");\n const metadataFieldsRef = useRef<MetadataField[]>([]);\n\n const form = useForm<EditionMintValues>({ resolver: zodResolver(editionMintSchema), defaultValues: DEFAULTS });\n\n useEffect(() => {\n if (walletAddress && !form.getValues(\"recipient\")) form.setValue(\"recipient\", walletAddress);\n }, [walletAddress, form]);\n\n useEffect(() => {\n const suggested = `https://medialane.io/collections/${collectionAddress}`;\n const current = form.getValues(\"external_url\");\n if (!current || current === autoExternalUrl) {\n form.setValue(\"external_url\", suggested, { shouldDirty: false });\n setAutoExternalUrl(suggested);\n }\n }, [autoExternalUrl, collectionAddress, form]);\n\n useEffect(() => {\n if (!walletAddress) return;\n app\n .getClient()\n .api.collections.get(collectionAddress)\n .then((data) => {\n const owner = data.owner ? normalizeAddress(\"STARKNET\", data.owner) : null;\n setOwnerCheck(owner === normalizeAddress(\"STARKNET\", walletAddress) ? \"ok\" : \"denied\");\n })\n .catch(() => setOwnerCheck(\"denied\"));\n }, [app, walletAddress, collectionAddress]);\n\n const uploadDocument = async (file: File) => {\n await app.ensureSignedIn?.();\n return (await uploadFileToIpfs(app.getClient().api, file, \"document\")).uri;\n };\n\n const handleAgain = () => {\n tx.reset();\n metadataFieldsRef.current = [];\n setMetadataResetKey((key) => key + 1);\n setAutoExternalUrl(\"\");\n clearImage();\n form.reset({ ...DEFAULTS, recipient: walletAddress ?? \"\" });\n };\n\n const onSubmit = (values: EditionMintValues) => {\n if (!imageUri) {\n setFormError(\"Upload an image before minting.\");\n return;\n }\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const pinned = await pinAssetMetadata(api, {\n name: values.name,\n description: values.description ?? \"\",\n imageUri,\n externalUrl: values.external_url,\n ipType: values.ipType,\n licenseType: values.licenseType,\n commercialUse: values.commercialUse,\n derivatives: values.derivatives,\n attribution: values.attribution,\n geographicScope: values.geographicScope,\n aiPolicy: values.aiPolicy,\n royalty: String(values.royalty),\n creator: walletAddress,\n templateTraits: metadataFieldsRef.current.filter((f) => f.traitType.trim() && f.value.trim()).map((f) => ({ traitType: f.traitType.trim(), value: f.value.trim() })),\n });\n await runIntentCalls(signer, () =>\n api.intents.create(\"mint\", {\n owner: walletAddress,\n recipient: values.recipient,\n collectionContract: collectionAddress,\n tokenUri: pinned.uri,\n value: values.value,\n royaltyBps: 0,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const mintedTokenId = tx.receipt ? mintedTokenIdFromReceipt(tx.receipt, collectionAddress) : null;\n\n return (\n <WalletRequired\n icon={Sparkles}\n iconClassName=\"text-brand-purple\"\n title={t(\"Secure your account to create\")}\n description={t(\"Secure your account to mint tokens into a multi-editions collection.\")}\n >\n {ownerCheck === \"denied\" ? (\n <div className=\"max-w-lg mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Sparkles className=\"h-10 w-10 text-muted-foreground mx-auto\" />\n <h1 className=\"text-2xl font-bold\">{t(\"Not the owner\")}</h1>\n <p className=\"text-muted-foreground\">{t(\"Only the collection owner can mint tokens. Connect the wallet that deployed this collection.\")}</p>\n <Button asChild variant=\"soft\">\n <Link href=\"/launchpad\">{t(\"Back to Launchpad\")}</Link>\n </Button>\n </div>\n ) : (\n <>\n <ClaimRouteShell\n icon={<Sparkles className=\"h-4 w-4 text-white\" />}\n title={t(\"Mint an edition\")}\n subtitle={t(\"Add a new piece to your collection — its details and authorship are saved permanently. Free to mint, and it's yours.\")}\n headerAccessory={\n <div className=\"panel flex items-center gap-2 px-3 py-2 max-w-full\">\n <span className=\"tabular-nums text-xs text-foreground/80 truncate\">{t(\"Collection: {collectionAddress}\", { collectionAddress })}</span>\n </div>\n }\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={form.watch(\"name\")}\n collection=\"Edition\"\n serial={Number(form.watch(\"value\")) > 1 ? `${form.watch(\"value\")} editions` : undefined}\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 <EditionMintFields\n form={form}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n mintDisabled={imageUploading || tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n metadataResetKey={metadataResetKey}\n onMetadataFieldsChange={(fields) => { metadataFieldsRef.current = fields; }}\n uploadDocument={uploadDocument}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-brand-blue mt-1\">✓ {uploadSuccess}</p>}\n {formError && <p className=\"text-xs text-destructive mt-1\">{formError}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n\n <TransactionDialog tx={tx} title={t(\"Mint an edition\")} workingLabel=\"Minting your edition…\" firstStepLabel=\"Upload metadata\">\n <TransactionSuccess\n name={form.getValues(\"name\") || \"Your token\"}\n image={imagePreview}\n title={t(\"Editions minted\")}\n description={t(\"Each copy is recorded onchain with the license terms in its metadata.\")}\n actions={[\n ...(mintedTokenId ? [{ href: assetHref(\"STARKNET\", collectionAddress, mintedTokenId), label: t(\"View asset\") }] : []),\n { href: \"/portfolio/assets\", label: t(\"View portfolio\") },\n { label: t(\"Mint another\"), onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n </>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqJQ;AAnJR,mBAA4D;AAC5D,6BAAwB;AACxB,iBAA4B;AAC5B,0BAAyB;AACzB,iBAAyD;AACzD,sBAAyC;AACzC,kBAAiB;AACjB,oBAA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AA,kBAAQ;AAAA,kBAC1E;AAAA;AAAA,cACF;AAAA,cACC,eAAe,4CAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,6CAAC,OAAE,WAAU,gCAA+B;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,cAC9E,aAAa,4CAAC,OAAE,WAAU,iCAAiC,qBAAU;AAAA,eACxE,GACF;AAAA;AAAA,QACF;AAAA,QAEA,4CAAC,+CAAkB,IAAQ,OAAO,EAAE,iBAAiB,GAAG,cAAa,8BAAwB,gBAAe,mBAC1G;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK,UAAU,MAAM,KAAK;AAAA,YAChC,OAAO;AAAA,YACP,OAAO,EAAE,iBAAiB;AAAA,YAC1B,aAAa,EAAE,uEAAuE;AAAA,YACtF,SAAS;AAAA,cACP,GAAI,gBAAgB,CAAC,EAAE,UAAM,sBAAU,YAAY,mBAAmB,aAAa,GAAG,OAAO,EAAE,YAAY,EAAE,CAAC,IAAI,CAAC;AAAA,cACnH,EAAE,MAAM,qBAAqB,OAAO,EAAE,gBAAgB,EAAE;AAAA,cACxD,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,YAAY;AAAA,YACnD;AAAA,YAEA,sDAAC,qCAAa,YAAW,cAAa;AAAA;AAAA,QACxC,GACF;AAAA,SACF;AAAA;AAAA,EAEJ;AAEJ;","names":["Link"]}
@@ -143,7 +143,7 @@ function EditionMint({ contract: rawContract, aside }) {
143
143
  icon: /* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 text-white" }),
144
144
  title: t("Mint an edition"),
145
145
  subtitle: t("Add a new piece to your collection \u2014 its details and authorship are saved permanently. Free to mint, and it's yours."),
146
- headerAccessory: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 rounded-lg border border-border bg-background/60 px-3 py-2 max-w-full", children: /* @__PURE__ */ jsx("span", { className: "tabular-nums text-xs text-foreground/80 truncate", children: t("Collection: {collectionAddress}", { collectionAddress }) }) }),
146
+ headerAccessory: /* @__PURE__ */ jsx("div", { className: "panel flex items-center gap-2 px-3 py-2 max-w-full", children: /* @__PURE__ */ jsx("span", { className: "tabular-nums text-xs text-foreground/80 truncate", children: t("Collection: {collectionAddress}", { collectionAddress }) }) }),
147
147
  aside: /* @__PURE__ */ jsxs(Fragment, { children: [
148
148
  /* @__PURE__ */ jsx(
149
149
  MedialaneCollectionCard,
@@ -178,7 +178,7 @@ function EditionMint({ contract: rawContract, aside }) {
178
178
  }
179
179
  ),
180
180
  uploadError && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive mt-1", children: uploadError }),
181
- uploadSuccess && /* @__PURE__ */ jsxs("p", { className: "text-xs text-emerald-500 mt-1", children: [
181
+ uploadSuccess && /* @__PURE__ */ jsxs("p", { className: "text-xs text-brand-blue mt-1", children: [
182
182
  "\u2713 ",
183
183
  uploadSuccess
184
184
  ] }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/launchpad/edition-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Sparkles } from \"lucide-react\";\nimport { assetHref, normalizeAddress, profileHref } from \"@medialane/sdk\";\nimport { mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Link from \"../link.js\";\nimport { Button } from \"../button.js\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport type { MetadataField } from \"../ip-type-fields.js\";\nimport { EditionMintFields } from \"./edition-mint-fields.js\";\nimport { editionMintSchema, type EditionMintValues } from \"./edition-mint-schema.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { pinAssetMetadata, uploadFileToIpfs } 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 { useT } from \"../../i18n/provider.js\";\n\nconst DEFAULTS: EditionMintValues = {\n value: \"1\",\n recipient: \"\",\n name: \"\",\n description: \"\",\n external_url: \"\",\n ipType: \"NFT\",\n licenseType: \"CC BY-SA\",\n commercialUse: \"Yes\",\n derivatives: \"Share-Alike\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Allowed\",\n royalty: 0,\n};\n\nexport function EditionMint({ contract: rawContract, aside }: { contract: string; aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const collectionAddress = normalizeAddress(\"STARKNET\", rawContract);\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded to IPFS\"), failureMessage: t(\"Image upload failed\") });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [ownerCheck, setOwnerCheck] = useState<\"loading\" | \"ok\" | \"denied\">(\"loading\");\n const [formError, setFormError] = useState<string | null>(null);\n const [metadataResetKey, setMetadataResetKey] = useState(0);\n const [autoExternalUrl, setAutoExternalUrl] = useState(\"\");\n const metadataFieldsRef = useRef<MetadataField[]>([]);\n\n const form = useForm<EditionMintValues>({ resolver: zodResolver(editionMintSchema), defaultValues: DEFAULTS });\n\n useEffect(() => {\n if (walletAddress && !form.getValues(\"recipient\")) form.setValue(\"recipient\", walletAddress);\n }, [walletAddress, form]);\n\n useEffect(() => {\n const suggested = `https://medialane.io/collections/${collectionAddress}`;\n const current = form.getValues(\"external_url\");\n if (!current || current === autoExternalUrl) {\n form.setValue(\"external_url\", suggested, { shouldDirty: false });\n setAutoExternalUrl(suggested);\n }\n }, [autoExternalUrl, collectionAddress, form]);\n\n useEffect(() => {\n if (!walletAddress) return;\n app\n .getClient()\n .api.collections.get(collectionAddress)\n .then((data) => {\n const owner = data.owner ? normalizeAddress(\"STARKNET\", data.owner) : null;\n setOwnerCheck(owner === normalizeAddress(\"STARKNET\", walletAddress) ? \"ok\" : \"denied\");\n })\n .catch(() => setOwnerCheck(\"denied\"));\n }, [app, walletAddress, collectionAddress]);\n\n const uploadDocument = async (file: File) => {\n await app.ensureSignedIn?.();\n return (await uploadFileToIpfs(app.getClient().api, file, \"document\")).uri;\n };\n\n const handleAgain = () => {\n tx.reset();\n metadataFieldsRef.current = [];\n setMetadataResetKey((key) => key + 1);\n setAutoExternalUrl(\"\");\n clearImage();\n form.reset({ ...DEFAULTS, recipient: walletAddress ?? \"\" });\n };\n\n const onSubmit = (values: EditionMintValues) => {\n if (!imageUri) {\n setFormError(\"Upload an image before minting.\");\n return;\n }\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const pinned = await pinAssetMetadata(api, {\n name: values.name,\n description: values.description ?? \"\",\n imageUri,\n externalUrl: values.external_url,\n ipType: values.ipType,\n licenseType: values.licenseType,\n commercialUse: values.commercialUse,\n derivatives: values.derivatives,\n attribution: values.attribution,\n geographicScope: values.geographicScope,\n aiPolicy: values.aiPolicy,\n royalty: String(values.royalty),\n creator: walletAddress,\n templateTraits: metadataFieldsRef.current.filter((f) => f.traitType.trim() && f.value.trim()).map((f) => ({ traitType: f.traitType.trim(), value: f.value.trim() })),\n });\n await runIntentCalls(signer, () =>\n api.intents.create(\"mint\", {\n owner: walletAddress,\n recipient: values.recipient,\n collectionContract: collectionAddress,\n tokenUri: pinned.uri,\n value: values.value,\n royaltyBps: 0,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const mintedTokenId = tx.receipt ? mintedTokenIdFromReceipt(tx.receipt, collectionAddress) : null;\n\n return (\n <WalletRequired\n icon={Sparkles}\n iconClassName=\"text-brand-purple\"\n title={t(\"Secure your account to create\")}\n description={t(\"Secure your account to mint tokens into a multi-editions collection.\")}\n >\n {ownerCheck === \"denied\" ? (\n <div className=\"max-w-lg mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Sparkles className=\"h-10 w-10 text-muted-foreground mx-auto\" />\n <h1 className=\"text-2xl font-bold\">{t(\"Not the owner\")}</h1>\n <p className=\"text-muted-foreground\">{t(\"Only the collection owner can mint tokens. Connect the wallet that deployed this collection.\")}</p>\n <Button asChild variant=\"soft\">\n <Link href=\"/launchpad\">{t(\"Back to Launchpad\")}</Link>\n </Button>\n </div>\n ) : (\n <>\n <ClaimRouteShell\n icon={<Sparkles className=\"h-4 w-4 text-white\" />}\n title={t(\"Mint an edition\")}\n subtitle={t(\"Add a new piece to your collection — its details and authorship are saved permanently. Free to mint, and it's yours.\")}\n headerAccessory={\n <div className=\"flex items-center gap-2 rounded-lg border border-border bg-background/60 px-3 py-2 max-w-full\">\n <span className=\"tabular-nums text-xs text-foreground/80 truncate\">{t(\"Collection: {collectionAddress}\", { collectionAddress })}</span>\n </div>\n }\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={form.watch(\"name\")}\n collection=\"Edition\"\n serial={Number(form.watch(\"value\")) > 1 ? `${form.watch(\"value\")} editions` : undefined}\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 <EditionMintFields\n form={form}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n mintDisabled={imageUploading || tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n metadataResetKey={metadataResetKey}\n onMetadataFieldsChange={(fields) => { metadataFieldsRef.current = fields; }}\n uploadDocument={uploadDocument}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n {formError && <p className=\"text-xs text-destructive mt-1\">{formError}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n\n <TransactionDialog tx={tx} title={t(\"Mint an edition\")} workingLabel=\"Minting your edition…\" firstStepLabel=\"Upload metadata\">\n <TransactionSuccess\n name={form.getValues(\"name\") || \"Your token\"}\n image={imagePreview}\n title={t(\"Editions minted\")}\n description={t(\"Each copy is recorded onchain with the license terms in its metadata.\")}\n actions={[\n ...(mintedTokenId ? [{ href: assetHref(\"STARKNET\", collectionAddress, mintedTokenId), label: t(\"View asset\") }] : []),\n { href: \"/portfolio/assets\", label: t(\"View portfolio\") },\n { label: t(\"Mint another\"), onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n </>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";AAqJQ,SAoBM,UAnBJ,KADF;AAnJR,SAAS,WAAW,QAAQ,gBAAgC;AAC5D,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,WAAW,kBAAkB,mBAAmB;AACzD,SAAS,gCAAgC;AACzC,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAE7B,SAAS,yBAAyB;AAClC,SAAS,yBAAiD;AAC1D,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,sBAAsB;AAC/B,SAAS,+BA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AA,eACxE,GACF;AAAA;AAAA,QACF;AAAA,QAEA,oBAAC,qBAAkB,IAAQ,OAAO,EAAE,iBAAiB,GAAG,cAAa,8BAAwB,gBAAe,mBAC1G;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK,UAAU,MAAM,KAAK;AAAA,YAChC,OAAO;AAAA,YACP,OAAO,EAAE,iBAAiB;AAAA,YAC1B,aAAa,EAAE,uEAAuE;AAAA,YACtF,SAAS;AAAA,cACP,GAAI,gBAAgB,CAAC,EAAE,MAAM,UAAU,YAAY,mBAAmB,aAAa,GAAG,OAAO,EAAE,YAAY,EAAE,CAAC,IAAI,CAAC;AAAA,cACnH,EAAE,MAAM,qBAAqB,OAAO,EAAE,gBAAgB,EAAE;AAAA,cACxD,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,YAAY;AAAA,YACnD;AAAA,YAEA,8BAAC,gBAAa,YAAW,cAAa;AAAA;AAAA,QACxC,GACF;AAAA,SACF;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/launchpad/edition-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Sparkles } from \"lucide-react\";\nimport { assetHref, normalizeAddress, profileHref } from \"@medialane/sdk\";\nimport { mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Link from \"../link.js\";\nimport { Button } from \"../button.js\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport type { MetadataField } from \"../ip-type-fields.js\";\nimport { EditionMintFields } from \"./edition-mint-fields.js\";\nimport { editionMintSchema, type EditionMintValues } from \"./edition-mint-schema.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { pinAssetMetadata, uploadFileToIpfs } 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 { useT } from \"../../i18n/provider.js\";\n\nconst DEFAULTS: EditionMintValues = {\n value: \"1\",\n recipient: \"\",\n name: \"\",\n description: \"\",\n external_url: \"\",\n ipType: \"NFT\",\n licenseType: \"CC BY-SA\",\n commercialUse: \"Yes\",\n derivatives: \"Share-Alike\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Allowed\",\n royalty: 0,\n};\n\nexport function EditionMint({ contract: rawContract, aside }: { contract: string; aside?: ReactNode }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const collectionAddress = normalizeAddress(\"STARKNET\", rawContract);\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: t(\"Image uploaded to IPFS\"), failureMessage: t(\"Image upload failed\") });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [ownerCheck, setOwnerCheck] = useState<\"loading\" | \"ok\" | \"denied\">(\"loading\");\n const [formError, setFormError] = useState<string | null>(null);\n const [metadataResetKey, setMetadataResetKey] = useState(0);\n const [autoExternalUrl, setAutoExternalUrl] = useState(\"\");\n const metadataFieldsRef = useRef<MetadataField[]>([]);\n\n const form = useForm<EditionMintValues>({ resolver: zodResolver(editionMintSchema), defaultValues: DEFAULTS });\n\n useEffect(() => {\n if (walletAddress && !form.getValues(\"recipient\")) form.setValue(\"recipient\", walletAddress);\n }, [walletAddress, form]);\n\n useEffect(() => {\n const suggested = `https://medialane.io/collections/${collectionAddress}`;\n const current = form.getValues(\"external_url\");\n if (!current || current === autoExternalUrl) {\n form.setValue(\"external_url\", suggested, { shouldDirty: false });\n setAutoExternalUrl(suggested);\n }\n }, [autoExternalUrl, collectionAddress, form]);\n\n useEffect(() => {\n if (!walletAddress) return;\n app\n .getClient()\n .api.collections.get(collectionAddress)\n .then((data) => {\n const owner = data.owner ? normalizeAddress(\"STARKNET\", data.owner) : null;\n setOwnerCheck(owner === normalizeAddress(\"STARKNET\", walletAddress) ? \"ok\" : \"denied\");\n })\n .catch(() => setOwnerCheck(\"denied\"));\n }, [app, walletAddress, collectionAddress]);\n\n const uploadDocument = async (file: File) => {\n await app.ensureSignedIn?.();\n return (await uploadFileToIpfs(app.getClient().api, file, \"document\")).uri;\n };\n\n const handleAgain = () => {\n tx.reset();\n metadataFieldsRef.current = [];\n setMetadataResetKey((key) => key + 1);\n setAutoExternalUrl(\"\");\n clearImage();\n form.reset({ ...DEFAULTS, recipient: walletAddress ?? \"\" });\n };\n\n const onSubmit = (values: EditionMintValues) => {\n if (!imageUri) {\n setFormError(\"Upload an image before minting.\");\n return;\n }\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const pinned = await pinAssetMetadata(api, {\n name: values.name,\n description: values.description ?? \"\",\n imageUri,\n externalUrl: values.external_url,\n ipType: values.ipType,\n licenseType: values.licenseType,\n commercialUse: values.commercialUse,\n derivatives: values.derivatives,\n attribution: values.attribution,\n geographicScope: values.geographicScope,\n aiPolicy: values.aiPolicy,\n royalty: String(values.royalty),\n creator: walletAddress,\n templateTraits: metadataFieldsRef.current.filter((f) => f.traitType.trim() && f.value.trim()).map((f) => ({ traitType: f.traitType.trim(), value: f.value.trim() })),\n });\n await runIntentCalls(signer, () =>\n api.intents.create(\"mint\", {\n owner: walletAddress,\n recipient: values.recipient,\n collectionContract: collectionAddress,\n tokenUri: pinned.uri,\n value: values.value,\n royaltyBps: 0,\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const mintedTokenId = tx.receipt ? mintedTokenIdFromReceipt(tx.receipt, collectionAddress) : null;\n\n return (\n <WalletRequired\n icon={Sparkles}\n iconClassName=\"text-brand-purple\"\n title={t(\"Secure your account to create\")}\n description={t(\"Secure your account to mint tokens into a multi-editions collection.\")}\n >\n {ownerCheck === \"denied\" ? (\n <div className=\"max-w-lg mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Sparkles className=\"h-10 w-10 text-muted-foreground mx-auto\" />\n <h1 className=\"text-2xl font-bold\">{t(\"Not the owner\")}</h1>\n <p className=\"text-muted-foreground\">{t(\"Only the collection owner can mint tokens. Connect the wallet that deployed this collection.\")}</p>\n <Button asChild variant=\"soft\">\n <Link href=\"/launchpad\">{t(\"Back to Launchpad\")}</Link>\n </Button>\n </div>\n ) : (\n <>\n <ClaimRouteShell\n icon={<Sparkles className=\"h-4 w-4 text-white\" />}\n title={t(\"Mint an edition\")}\n subtitle={t(\"Add a new piece to your collection — its details and authorship are saved permanently. Free to mint, and it's yours.\")}\n headerAccessory={\n <div className=\"panel flex items-center gap-2 px-3 py-2 max-w-full\">\n <span className=\"tabular-nums text-xs text-foreground/80 truncate\">{t(\"Collection: {collectionAddress}\", { collectionAddress })}</span>\n </div>\n }\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={form.watch(\"name\")}\n collection=\"Edition\"\n serial={Number(form.watch(\"value\")) > 1 ? `${form.watch(\"value\")} editions` : undefined}\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 <EditionMintFields\n form={form}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n mintDisabled={imageUploading || tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n metadataResetKey={metadataResetKey}\n onMetadataFieldsChange={(fields) => { metadataFieldsRef.current = fields; }}\n uploadDocument={uploadDocument}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-brand-blue mt-1\">✓ {uploadSuccess}</p>}\n {formError && <p className=\"text-xs text-destructive mt-1\">{formError}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n\n <TransactionDialog tx={tx} title={t(\"Mint an edition\")} workingLabel=\"Minting your edition…\" firstStepLabel=\"Upload metadata\">\n <TransactionSuccess\n name={form.getValues(\"name\") || \"Your token\"}\n image={imagePreview}\n title={t(\"Editions minted\")}\n description={t(\"Each copy is recorded onchain with the license terms in its metadata.\")}\n actions={[\n ...(mintedTokenId ? [{ href: assetHref(\"STARKNET\", collectionAddress, mintedTokenId), label: t(\"View asset\") }] : []),\n { href: \"/portfolio/assets\", label: t(\"View portfolio\") },\n { label: t(\"Mint another\"), onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n </>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";AAqJQ,SAoBM,UAnBJ,KADF;AAnJR,SAAS,WAAW,QAAQ,gBAAgC;AAC5D,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,WAAW,kBAAkB,mBAAmB;AACzD,SAAS,gCAAgC;AACzC,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAE7B,SAAS,yBAAyB;AAClC,SAAS,yBAAiD;AAC1D,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB,wBA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