@medialane/ui 0.372.1 → 0.373.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1023) hide show
  1. package/dist/components/account/add-guardian-dialog.cjs +6 -3
  2. package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
  3. package/dist/components/account/add-guardian-dialog.js +6 -3
  4. package/dist/components/account/add-guardian-dialog.js.map +1 -1
  5. package/dist/components/account/device-approval-dialog.cjs +10 -8
  6. package/dist/components/account/device-approval-dialog.cjs.map +1 -1
  7. package/dist/components/account/device-approval-dialog.js +10 -8
  8. package/dist/components/account/device-approval-dialog.js.map +1 -1
  9. package/dist/components/account/devices-section.cjs +8 -6
  10. package/dist/components/account/devices-section.cjs.map +1 -1
  11. package/dist/components/account/devices-section.js +8 -6
  12. package/dist/components/account/devices-section.js.map +1 -1
  13. package/dist/components/account/email-code-entry.cjs +7 -9
  14. package/dist/components/account/email-code-entry.cjs.map +1 -1
  15. package/dist/components/account/email-code-entry.js +7 -9
  16. package/dist/components/account/email-code-entry.js.map +1 -1
  17. package/dist/components/account/guardian-recovery-section.cjs +26 -35
  18. package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
  19. package/dist/components/account/guardian-recovery-section.js +26 -35
  20. package/dist/components/account/guardian-recovery-section.js.map +1 -1
  21. package/dist/components/account-page.cjs +16 -13
  22. package/dist/components/account-page.cjs.map +1 -1
  23. package/dist/components/account-page.js +16 -13
  24. package/dist/components/account-page.js.map +1 -1
  25. package/dist/components/accounts-page.cjs +15 -10
  26. package/dist/components/accounts-page.cjs.map +1 -1
  27. package/dist/components/accounts-page.js +15 -10
  28. package/dist/components/accounts-page.js.map +1 -1
  29. package/dist/components/activities-feed.cjs +10 -9
  30. package/dist/components/activities-feed.cjs.map +1 -1
  31. package/dist/components/activities-feed.js +10 -9
  32. package/dist/components/activities-feed.js.map +1 -1
  33. package/dist/components/activity-card.cjs +6 -2
  34. package/dist/components/activity-card.cjs.map +1 -1
  35. package/dist/components/activity-card.js +6 -2
  36. package/dist/components/activity-card.js.map +1 -1
  37. package/dist/components/activity-feed-shell.cjs +5 -4
  38. package/dist/components/activity-feed-shell.cjs.map +1 -1
  39. package/dist/components/activity-feed-shell.js +5 -4
  40. package/dist/components/activity-feed-shell.js.map +1 -1
  41. package/dist/components/activity-row.cjs +9 -5
  42. package/dist/components/activity-row.cjs.map +1 -1
  43. package/dist/components/activity-row.js +9 -5
  44. package/dist/components/activity-row.js.map +1 -1
  45. package/dist/components/activity-timeline-row.cjs +11 -8
  46. package/dist/components/activity-timeline-row.cjs.map +1 -1
  47. package/dist/components/activity-timeline-row.js +11 -8
  48. package/dist/components/activity-timeline-row.js.map +1 -1
  49. package/dist/components/address-display.cjs +3 -1
  50. package/dist/components/address-display.cjs.map +1 -1
  51. package/dist/components/address-display.js +3 -1
  52. package/dist/components/address-display.js.map +1 -1
  53. package/dist/components/alert.d.cts +1 -1
  54. package/dist/components/alert.d.ts +1 -1
  55. package/dist/components/approve-mint-dialog.cjs +17 -15
  56. package/dist/components/approve-mint-dialog.cjs.map +1 -1
  57. package/dist/components/approve-mint-dialog.js +17 -15
  58. package/dist/components/approve-mint-dialog.js.map +1 -1
  59. package/dist/components/archive-asset-dialog.cjs +13 -14
  60. package/dist/components/archive-asset-dialog.cjs.map +1 -1
  61. package/dist/components/archive-asset-dialog.js +13 -14
  62. package/dist/components/archive-asset-dialog.js.map +1 -1
  63. package/dist/components/archived-asset-notice.cjs +5 -2
  64. package/dist/components/archived-asset-notice.cjs.map +1 -1
  65. package/dist/components/archived-asset-notice.js +5 -2
  66. package/dist/components/archived-asset-notice.js.map +1 -1
  67. package/dist/components/asset-card.cjs +5 -3
  68. package/dist/components/asset-card.cjs.map +1 -1
  69. package/dist/components/asset-card.js +5 -3
  70. package/dist/components/asset-card.js.map +1 -1
  71. package/dist/components/asset-collection-bar.cjs +4 -2
  72. package/dist/components/asset-collection-bar.cjs.map +1 -1
  73. package/dist/components/asset-collection-bar.js +4 -2
  74. package/dist/components/asset-collection-bar.js.map +1 -1
  75. package/dist/components/asset-comments-dialog.cjs +3 -1
  76. package/dist/components/asset-comments-dialog.cjs.map +1 -1
  77. package/dist/components/asset-comments-dialog.js +3 -1
  78. package/dist/components/asset-comments-dialog.js.map +1 -1
  79. package/dist/components/asset-license-summary.cjs +3 -1
  80. package/dist/components/asset-license-summary.cjs.map +1 -1
  81. package/dist/components/asset-license-summary.js +3 -1
  82. package/dist/components/asset-license-summary.js.map +1 -1
  83. package/dist/components/asset-marketplace-panel.cjs +15 -17
  84. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  85. package/dist/components/asset-marketplace-panel.js +15 -17
  86. package/dist/components/asset-marketplace-panel.js.map +1 -1
  87. package/dist/components/asset-markets-tab.cjs +8 -6
  88. package/dist/components/asset-markets-tab.cjs.map +1 -1
  89. package/dist/components/asset-markets-tab.js +8 -6
  90. package/dist/components/asset-markets-tab.js.map +1 -1
  91. package/dist/components/asset-overview-content.cjs +15 -13
  92. package/dist/components/asset-overview-content.cjs.map +1 -1
  93. package/dist/components/asset-overview-content.js +15 -13
  94. package/dist/components/asset-overview-content.js.map +1 -1
  95. package/dist/components/asset-owners-panel.cjs +7 -6
  96. package/dist/components/asset-owners-panel.cjs.map +1 -1
  97. package/dist/components/asset-owners-panel.js +7 -6
  98. package/dist/components/asset-owners-panel.js.map +1 -1
  99. package/dist/components/asset-page.cjs +21 -17
  100. package/dist/components/asset-page.cjs.map +1 -1
  101. package/dist/components/asset-page.js +21 -17
  102. package/dist/components/asset-page.js.map +1 -1
  103. package/dist/components/asset-picker.cjs +12 -12
  104. package/dist/components/asset-picker.cjs.map +1 -1
  105. package/dist/components/asset-picker.js +12 -12
  106. package/dist/components/asset-picker.js.map +1 -1
  107. package/dist/components/asset-provenance-tab.cjs +26 -27
  108. package/dist/components/asset-provenance-tab.cjs.map +1 -1
  109. package/dist/components/asset-provenance-tab.js +26 -27
  110. package/dist/components/asset-provenance-tab.js.map +1 -1
  111. package/dist/components/asset-publication.cjs +3 -1
  112. package/dist/components/asset-publication.cjs.map +1 -1
  113. package/dist/components/asset-publication.js +3 -1
  114. package/dist/components/asset-publication.js.map +1 -1
  115. package/dist/components/asset-search-picker.cjs +4 -6
  116. package/dist/components/asset-search-picker.cjs.map +1 -1
  117. package/dist/components/asset-search-picker.js +4 -6
  118. package/dist/components/asset-search-picker.js.map +1 -1
  119. package/dist/components/asset-top-sections.cjs +3 -1
  120. package/dist/components/asset-top-sections.cjs.map +1 -1
  121. package/dist/components/asset-top-sections.js +3 -1
  122. package/dist/components/asset-top-sections.js.map +1 -1
  123. package/dist/components/asset-type-panels.cjs +17 -13
  124. package/dist/components/asset-type-panels.cjs.map +1 -1
  125. package/dist/components/asset-type-panels.js +17 -13
  126. package/dist/components/asset-type-panels.js.map +1 -1
  127. package/dist/components/asset-unavailable.cjs +5 -2
  128. package/dist/components/asset-unavailable.cjs.map +1 -1
  129. package/dist/components/asset-unavailable.js +5 -2
  130. package/dist/components/asset-unavailable.js.map +1 -1
  131. package/dist/components/asset-utility-icons.cjs +4 -2
  132. package/dist/components/asset-utility-icons.cjs.map +1 -1
  133. package/dist/components/asset-utility-icons.js +4 -2
  134. package/dist/components/asset-utility-icons.js.map +1 -1
  135. package/dist/components/asset-video.cjs +3 -4
  136. package/dist/components/asset-video.cjs.map +1 -1
  137. package/dist/components/asset-video.js +3 -4
  138. package/dist/components/asset-video.js.map +1 -1
  139. package/dist/components/back-button.cjs +3 -1
  140. package/dist/components/back-button.cjs.map +1 -1
  141. package/dist/components/back-button.js +3 -1
  142. package/dist/components/back-button.js.map +1 -1
  143. package/dist/components/badge.d.cts +1 -1
  144. package/dist/components/badge.d.ts +1 -1
  145. package/dist/components/button.d.cts +1 -1
  146. package/dist/components/button.d.ts +1 -1
  147. package/dist/components/cancel-order-confirm.cjs +4 -2
  148. package/dist/components/cancel-order-confirm.cjs.map +1 -1
  149. package/dist/components/cancel-order-confirm.js +4 -2
  150. package/dist/components/cancel-order-confirm.js.map +1 -1
  151. package/dist/components/claim-rail.cjs +5 -2
  152. package/dist/components/claim-rail.cjs.map +1 -1
  153. package/dist/components/claim-rail.js +5 -2
  154. package/dist/components/claim-rail.js.map +1 -1
  155. package/dist/components/club-owner-actions.cjs +3 -1
  156. package/dist/components/club-owner-actions.cjs.map +1 -1
  157. package/dist/components/club-owner-actions.js +3 -1
  158. package/dist/components/club-owner-actions.js.map +1 -1
  159. package/dist/components/coin-guarantees.cjs +13 -8
  160. package/dist/components/coin-guarantees.cjs.map +1 -1
  161. package/dist/components/coin-guarantees.js +13 -8
  162. package/dist/components/coin-guarantees.js.map +1 -1
  163. package/dist/components/coin-launch-preview.cjs +17 -14
  164. package/dist/components/coin-launch-preview.cjs.map +1 -1
  165. package/dist/components/coin-launch-preview.js +17 -14
  166. package/dist/components/coin-launch-preview.js.map +1 -1
  167. package/dist/components/coin-row.cjs +6 -3
  168. package/dist/components/coin-row.cjs.map +1 -1
  169. package/dist/components/coin-row.js +6 -3
  170. package/dist/components/coin-row.js.map +1 -1
  171. package/dist/components/coins-explorer.cjs +13 -10
  172. package/dist/components/coins-explorer.cjs.map +1 -1
  173. package/dist/components/coins-explorer.js +13 -10
  174. package/dist/components/coins-explorer.js.map +1 -1
  175. package/dist/components/collection-card.cjs +9 -5
  176. package/dist/components/collection-card.cjs.map +1 -1
  177. package/dist/components/collection-card.js +9 -5
  178. package/dist/components/collection-card.js.map +1 -1
  179. package/dist/components/collection-filters-dialog.cjs +6 -7
  180. package/dist/components/collection-filters-dialog.cjs.map +1 -1
  181. package/dist/components/collection-filters-dialog.js +6 -7
  182. package/dist/components/collection-filters-dialog.js.map +1 -1
  183. package/dist/components/collection-filters.cjs +14 -13
  184. package/dist/components/collection-filters.cjs.map +1 -1
  185. package/dist/components/collection-filters.js +14 -13
  186. package/dist/components/collection-filters.js.map +1 -1
  187. package/dist/components/collection-header.cjs +9 -5
  188. package/dist/components/collection-header.cjs.map +1 -1
  189. package/dist/components/collection-header.js +9 -5
  190. package/dist/components/collection-header.js.map +1 -1
  191. package/dist/components/collection-name-claim.cjs +10 -8
  192. package/dist/components/collection-name-claim.cjs.map +1 -1
  193. package/dist/components/collection-name-claim.js +10 -8
  194. package/dist/components/collection-name-claim.js.map +1 -1
  195. package/dist/components/collection-page.cjs +29 -23
  196. package/dist/components/collection-page.cjs.map +1 -1
  197. package/dist/components/collection-page.js +29 -23
  198. package/dist/components/collection-page.js.map +1 -1
  199. package/dist/components/collection-provenance-tab.cjs +19 -13
  200. package/dist/components/collection-provenance-tab.cjs.map +1 -1
  201. package/dist/components/collection-provenance-tab.js +19 -13
  202. package/dist/components/collection-provenance-tab.js.map +1 -1
  203. package/dist/components/collection-settings.cjs +59 -55
  204. package/dist/components/collection-settings.cjs.map +1 -1
  205. package/dist/components/collection-settings.js +59 -55
  206. package/dist/components/collection-settings.js.map +1 -1
  207. package/dist/components/collection-showcase.cjs +8 -4
  208. package/dist/components/collection-showcase.cjs.map +1 -1
  209. package/dist/components/collection-showcase.js +8 -4
  210. package/dist/components/collection-showcase.js.map +1 -1
  211. package/dist/components/collection-slug-claim.cjs +22 -24
  212. package/dist/components/collection-slug-claim.cjs.map +1 -1
  213. package/dist/components/collection-slug-claim.js +22 -24
  214. package/dist/components/collection-slug-claim.js.map +1 -1
  215. package/dist/components/collections-page.cjs +36 -30
  216. package/dist/components/collections-page.cjs.map +1 -1
  217. package/dist/components/collections-page.js +36 -30
  218. package/dist/components/collections-page.js.map +1 -1
  219. package/dist/components/comments-section.cjs +19 -16
  220. package/dist/components/comments-section.cjs.map +1 -1
  221. package/dist/components/comments-section.js +19 -16
  222. package/dist/components/comments-section.js.map +1 -1
  223. package/dist/components/create-sponsorship-aside.cjs +7 -5
  224. package/dist/components/create-sponsorship-aside.cjs.map +1 -1
  225. package/dist/components/create-sponsorship-aside.js +7 -5
  226. package/dist/components/create-sponsorship-aside.js.map +1 -1
  227. package/dist/components/creation-record.cjs +9 -5
  228. package/dist/components/creation-record.cjs.map +1 -1
  229. package/dist/components/creation-record.js +9 -5
  230. package/dist/components/creation-record.js.map +1 -1
  231. package/dist/components/creator-chip.cjs +3 -1
  232. package/dist/components/creator-chip.cjs.map +1 -1
  233. package/dist/components/creator-chip.js +3 -1
  234. package/dist/components/creator-chip.js.map +1 -1
  235. package/dist/components/creator-header.cjs +3 -1
  236. package/dist/components/creator-header.cjs.map +1 -1
  237. package/dist/components/creator-header.js +3 -1
  238. package/dist/components/creator-header.js.map +1 -1
  239. package/dist/components/creator-page.cjs +19 -16
  240. package/dist/components/creator-page.cjs.map +1 -1
  241. package/dist/components/creator-page.js +19 -16
  242. package/dist/components/creator-page.js.map +1 -1
  243. package/dist/components/cta-card-grid.cjs +4 -2
  244. package/dist/components/cta-card-grid.cjs.map +1 -1
  245. package/dist/components/cta-card-grid.js +4 -2
  246. package/dist/components/cta-card-grid.js.map +1 -1
  247. package/dist/components/dialog.cjs +25 -21
  248. package/dist/components/dialog.cjs.map +1 -1
  249. package/dist/components/dialog.js +25 -21
  250. package/dist/components/dialog.js.map +1 -1
  251. package/dist/components/discover-community-section.cjs +8 -7
  252. package/dist/components/discover-community-section.cjs.map +1 -1
  253. package/dist/components/discover-community-section.js +8 -7
  254. package/dist/components/discover-community-section.js.map +1 -1
  255. package/dist/components/discover-features.cjs +18 -14
  256. package/dist/components/discover-features.cjs.map +1 -1
  257. package/dist/components/discover-features.js +18 -14
  258. package/dist/components/discover-features.js.map +1 -1
  259. package/dist/components/discover-feed-section.cjs +9 -7
  260. package/dist/components/discover-feed-section.cjs.map +1 -1
  261. package/dist/components/discover-feed-section.js +9 -7
  262. package/dist/components/discover-feed-section.js.map +1 -1
  263. package/dist/components/discover-hero.cjs +7 -3
  264. package/dist/components/discover-hero.cjs.map +1 -1
  265. package/dist/components/discover-hero.js +7 -3
  266. package/dist/components/discover-hero.js.map +1 -1
  267. package/dist/components/discover-page.cjs +3 -1
  268. package/dist/components/discover-page.cjs.map +1 -1
  269. package/dist/components/discover-page.js +3 -1
  270. package/dist/components/discover-page.js.map +1 -1
  271. package/dist/components/drop/create/artwork-section.cjs +9 -9
  272. package/dist/components/drop/create/artwork-section.cjs.map +1 -1
  273. package/dist/components/drop/create/artwork-section.js +9 -9
  274. package/dist/components/drop/create/artwork-section.js.map +1 -1
  275. package/dist/components/drop/create/details-section.cjs +19 -15
  276. package/dist/components/drop/create/details-section.cjs.map +1 -1
  277. package/dist/components/drop/create/details-section.js +19 -15
  278. package/dist/components/drop/create/details-section.js.map +1 -1
  279. package/dist/components/drop/create/drop-create.cjs +14 -9
  280. package/dist/components/drop/create/drop-create.cjs.map +1 -1
  281. package/dist/components/drop/create/drop-create.js +14 -9
  282. package/dist/components/drop/create/drop-create.js.map +1 -1
  283. package/dist/components/drop/create/exclusive-fields.cjs +7 -5
  284. package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
  285. package/dist/components/drop/create/exclusive-fields.js +7 -5
  286. package/dist/components/drop/create/exclusive-fields.js.map +1 -1
  287. package/dist/components/drop/create/launch-dialog.cjs +33 -34
  288. package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
  289. package/dist/components/drop/create/launch-dialog.js +33 -34
  290. package/dist/components/drop/create/launch-dialog.js.map +1 -1
  291. package/dist/components/drop/create/list-section.cjs +8 -8
  292. package/dist/components/drop/create/list-section.cjs.map +1 -1
  293. package/dist/components/drop/create/list-section.js +8 -8
  294. package/dist/components/drop/create/list-section.js.map +1 -1
  295. package/dist/components/drop/create/sale-section.cjs +8 -6
  296. package/dist/components/drop/create/sale-section.cjs.map +1 -1
  297. package/dist/components/drop/create/sale-section.js +8 -6
  298. package/dist/components/drop/create/sale-section.js.map +1 -1
  299. package/dist/components/drop/drop-card.cjs +5 -3
  300. package/dist/components/drop/drop-card.cjs.map +1 -1
  301. package/dist/components/drop/drop-card.js +5 -3
  302. package/dist/components/drop/drop-card.js.map +1 -1
  303. package/dist/components/drop/drop-features.cjs +5 -4
  304. package/dist/components/drop/drop-features.cjs.map +1 -1
  305. package/dist/components/drop/drop-features.js +5 -4
  306. package/dist/components/drop/drop-features.js.map +1 -1
  307. package/dist/components/drop/drop-listing.cjs +11 -8
  308. package/dist/components/drop/drop-listing.cjs.map +1 -1
  309. package/dist/components/drop/drop-listing.js +11 -8
  310. package/dist/components/drop/drop-listing.js.map +1 -1
  311. package/dist/components/drop/drop-status.cjs +12 -16
  312. package/dist/components/drop/drop-status.cjs.map +1 -1
  313. package/dist/components/drop/drop-status.js +12 -16
  314. package/dist/components/drop/drop-status.js.map +1 -1
  315. package/dist/components/drop/drop-token-link.cjs +6 -3
  316. package/dist/components/drop/drop-token-link.cjs.map +1 -1
  317. package/dist/components/drop/drop-token-link.js +6 -3
  318. package/dist/components/drop/drop-token-link.js.map +1 -1
  319. package/dist/components/drop/my-drops.cjs +5 -3
  320. package/dist/components/drop/my-drops.cjs.map +1 -1
  321. package/dist/components/drop/my-drops.js +5 -3
  322. package/dist/components/drop/my-drops.js.map +1 -1
  323. package/dist/components/drop/page/drop-action-box.cjs +10 -9
  324. package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
  325. package/dist/components/drop/page/drop-action-box.js +10 -9
  326. package/dist/components/drop/page/drop-action-box.js.map +1 -1
  327. package/dist/components/drop/page/drop-activity.cjs +3 -1
  328. package/dist/components/drop/page/drop-activity.cjs.map +1 -1
  329. package/dist/components/drop/page/drop-activity.js +3 -1
  330. package/dist/components/drop/page/drop-activity.js.map +1 -1
  331. package/dist/components/drop/page/drop-manage.cjs +30 -36
  332. package/dist/components/drop/page/drop-manage.cjs.map +1 -1
  333. package/dist/components/drop/page/drop-manage.js +30 -36
  334. package/dist/components/drop/page/drop-manage.js.map +1 -1
  335. package/dist/components/drop/page/drop-mint-dialog.cjs +10 -13
  336. package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
  337. package/dist/components/drop/page/drop-mint-dialog.js +10 -13
  338. package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
  339. package/dist/components/drop/page/drop-page.cjs +11 -9
  340. package/dist/components/drop/page/drop-page.cjs.map +1 -1
  341. package/dist/components/drop/page/drop-page.js +11 -9
  342. package/dist/components/drop/page/drop-page.js.map +1 -1
  343. package/dist/components/drop-item-list.cjs +9 -5
  344. package/dist/components/drop-item-list.cjs.map +1 -1
  345. package/dist/components/drop-item-list.js +9 -5
  346. package/dist/components/drop-item-list.js.map +1 -1
  347. package/dist/components/drops-page.cjs +4 -2
  348. package/dist/components/drops-page.cjs.map +1 -1
  349. package/dist/components/drops-page.js +4 -2
  350. package/dist/components/drops-page.js.map +1 -1
  351. package/dist/components/editions-page.cjs +21 -23
  352. package/dist/components/editions-page.cjs.map +1 -1
  353. package/dist/components/editions-page.js +21 -23
  354. package/dist/components/editions-page.js.map +1 -1
  355. package/dist/components/empty-or-error.cjs +5 -3
  356. package/dist/components/empty-or-error.cjs.map +1 -1
  357. package/dist/components/empty-or-error.js +5 -3
  358. package/dist/components/empty-or-error.js.map +1 -1
  359. package/dist/components/expandable-text.cjs +3 -1
  360. package/dist/components/expandable-text.cjs.map +1 -1
  361. package/dist/components/expandable-text.js +3 -1
  362. package/dist/components/expandable-text.js.map +1 -1
  363. package/dist/components/external-link-field.cjs +7 -4
  364. package/dist/components/external-link-field.cjs.map +1 -1
  365. package/dist/components/external-link-field.js +7 -4
  366. package/dist/components/external-link-field.js.map +1 -1
  367. package/dist/components/fast-mint/asset-form-parts.cjs +12 -8
  368. package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
  369. package/dist/components/fast-mint/asset-form-parts.js +12 -8
  370. package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
  371. package/dist/components/fast-mint/collection-section.cjs +11 -12
  372. package/dist/components/fast-mint/collection-section.cjs.map +1 -1
  373. package/dist/components/fast-mint/collection-section.js +11 -12
  374. package/dist/components/fast-mint/collection-section.js.map +1 -1
  375. package/dist/components/fast-mint/dropzone.cjs +7 -5
  376. package/dist/components/fast-mint/dropzone.cjs.map +1 -1
  377. package/dist/components/fast-mint/dropzone.js +7 -5
  378. package/dist/components/fast-mint/dropzone.js.map +1 -1
  379. package/dist/components/fast-mint/fast-mint.cjs +14 -11
  380. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  381. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  382. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  383. package/dist/components/fast-mint/fast-mint.js +14 -11
  384. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  385. package/dist/components/fast-mint/formats/nft.cjs +9 -6
  386. package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
  387. package/dist/components/fast-mint/formats/nft.js +9 -6
  388. package/dist/components/fast-mint/formats/nft.js.map +1 -1
  389. package/dist/components/fast-mint/formats/pop.cjs +15 -12
  390. package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
  391. package/dist/components/fast-mint/formats/pop.js +15 -12
  392. package/dist/components/fast-mint/formats/pop.js.map +1 -1
  393. package/dist/components/fast-mint/formats/tiers.cjs +9 -6
  394. package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
  395. package/dist/components/fast-mint/formats/tiers.js +9 -6
  396. package/dist/components/fast-mint/formats/tiers.js.map +1 -1
  397. package/dist/components/fast-mint/ip-type-section.cjs +6 -4
  398. package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
  399. package/dist/components/fast-mint/ip-type-section.js +6 -4
  400. package/dist/components/fast-mint/ip-type-section.js.map +1 -1
  401. package/dist/components/fast-mint/licensing-section.cjs +11 -9
  402. package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
  403. package/dist/components/fast-mint/licensing-section.js +11 -9
  404. package/dist/components/fast-mint/licensing-section.js.map +1 -1
  405. package/dist/components/fast-mint/success-view.cjs +3 -1
  406. package/dist/components/fast-mint/success-view.cjs.map +1 -1
  407. package/dist/components/fast-mint/success-view.js +3 -1
  408. package/dist/components/fast-mint/success-view.js.map +1 -1
  409. package/dist/components/featured-carousel.cjs +13 -7
  410. package/dist/components/featured-carousel.cjs.map +1 -1
  411. package/dist/components/featured-carousel.js +13 -7
  412. package/dist/components/featured-carousel.js.map +1 -1
  413. package/dist/components/floating-comments-button.cjs +4 -2
  414. package/dist/components/floating-comments-button.cjs.map +1 -1
  415. package/dist/components/floating-comments-button.js +4 -2
  416. package/dist/components/floating-comments-button.js.map +1 -1
  417. package/dist/components/form.cjs +3 -1
  418. package/dist/components/form.cjs.map +1 -1
  419. package/dist/components/form.js +3 -1
  420. package/dist/components/form.js.map +1 -1
  421. package/dist/components/gated-content.cjs +14 -11
  422. package/dist/components/gated-content.cjs.map +1 -1
  423. package/dist/components/gated-content.js +14 -11
  424. package/dist/components/gated-content.js.map +1 -1
  425. package/dist/components/help-icon.cjs +3 -1
  426. package/dist/components/help-icon.cjs.map +1 -1
  427. package/dist/components/help-icon.js +3 -1
  428. package/dist/components/help-icon.js.map +1 -1
  429. package/dist/components/hidden-content-banner.cjs +4 -1
  430. package/dist/components/hidden-content-banner.cjs.map +1 -1
  431. package/dist/components/hidden-content-banner.js +4 -1
  432. package/dist/components/hidden-content-banner.js.map +1 -1
  433. package/dist/components/home-page.cjs +8 -4
  434. package/dist/components/home-page.cjs.map +1 -1
  435. package/dist/components/home-page.js +8 -4
  436. package/dist/components/home-page.js.map +1 -1
  437. package/dist/components/ip-type-display.cjs +12 -10
  438. package/dist/components/ip-type-display.cjs.map +1 -1
  439. package/dist/components/ip-type-display.js +12 -10
  440. package/dist/components/ip-type-display.js.map +1 -1
  441. package/dist/components/ip-type-fields.cjs +28 -28
  442. package/dist/components/ip-type-fields.cjs.map +1 -1
  443. package/dist/components/ip-type-fields.js +28 -28
  444. package/dist/components/ip-type-fields.js.map +1 -1
  445. package/dist/components/ip-type-nav.cjs +3 -1
  446. package/dist/components/ip-type-nav.cjs.map +1 -1
  447. package/dist/components/ip-type-nav.js +3 -1
  448. package/dist/components/ip-type-nav.js.map +1 -1
  449. package/dist/components/ip-type-page.cjs +41 -42
  450. package/dist/components/ip-type-page.cjs.map +1 -1
  451. package/dist/components/ip-type-page.js +41 -42
  452. package/dist/components/ip-type-page.js.map +1 -1
  453. package/dist/components/journey-content.cjs +18 -18
  454. package/dist/components/journey-content.cjs.map +1 -1
  455. package/dist/components/journey-content.js +18 -18
  456. package/dist/components/journey-content.js.map +1 -1
  457. package/dist/components/launchpad/coin-create.cjs +46 -49
  458. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  459. package/dist/components/launchpad/coin-create.js +46 -49
  460. package/dist/components/launchpad/coin-create.js.map +1 -1
  461. package/dist/components/launchpad/collection-create-form.cjs +21 -17
  462. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  463. package/dist/components/launchpad/collection-create-form.js +21 -17
  464. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  465. package/dist/components/launchpad/collection-create-presets.cjs +57 -56
  466. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  467. package/dist/components/launchpad/collection-create-presets.js +57 -56
  468. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  469. package/dist/components/launchpad/collection-picker.cjs +15 -11
  470. package/dist/components/launchpad/collection-picker.cjs.map +1 -1
  471. package/dist/components/launchpad/collection-picker.js +15 -11
  472. package/dist/components/launchpad/collection-picker.js.map +1 -1
  473. package/dist/components/launchpad/edition-mint-fields.cjs +48 -42
  474. package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
  475. package/dist/components/launchpad/edition-mint-fields.js +48 -42
  476. package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
  477. package/dist/components/launchpad/edition-mint.cjs +16 -17
  478. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  479. package/dist/components/launchpad/edition-mint.js +16 -17
  480. package/dist/components/launchpad/edition-mint.js.map +1 -1
  481. package/dist/components/launchpad/pop-create-fields.cjs +40 -34
  482. package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
  483. package/dist/components/launchpad/pop-create-fields.js +40 -34
  484. package/dist/components/launchpad/pop-create-fields.js.map +1 -1
  485. package/dist/components/launchpad/pop-create-schema.cjs +3 -2
  486. package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
  487. package/dist/components/launchpad/pop-create-schema.js +3 -2
  488. package/dist/components/launchpad/pop-create-schema.js.map +1 -1
  489. package/dist/components/launchpad/pop-create.cjs +10 -8
  490. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  491. package/dist/components/launchpad/pop-create.js +10 -8
  492. package/dist/components/launchpad/pop-create.js.map +1 -1
  493. package/dist/components/launchpad/remix-mint.cjs +50 -47
  494. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  495. package/dist/components/launchpad/remix-mint.js +50 -47
  496. package/dist/components/launchpad/remix-mint.js.map +1 -1
  497. package/dist/components/launchpad/single-edition-mint.cjs +46 -43
  498. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  499. package/dist/components/launchpad/single-edition-mint.js +46 -43
  500. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  501. package/dist/components/launchpad/sponsorship-create.cjs +30 -27
  502. package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
  503. package/dist/components/launchpad/sponsorship-create.js +30 -27
  504. package/dist/components/launchpad/sponsorship-create.js.map +1 -1
  505. package/dist/components/launchpad/tier-mint-form.cjs +56 -48
  506. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  507. package/dist/components/launchpad/tier-mint-form.d.cts +2 -0
  508. package/dist/components/launchpad/tier-mint-form.d.ts +2 -0
  509. package/dist/components/launchpad/tier-mint-form.js +56 -48
  510. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  511. package/dist/components/launchpad/tier-mint-presets.cjs +33 -32
  512. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  513. package/dist/components/launchpad/tier-mint-presets.d.cts +3 -1
  514. package/dist/components/launchpad/tier-mint-presets.d.ts +3 -1
  515. package/dist/components/launchpad/tier-mint-presets.js +33 -32
  516. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  517. package/dist/components/launchpad-filter-bar.cjs +6 -4
  518. package/dist/components/launchpad-filter-bar.cjs.map +1 -1
  519. package/dist/components/launchpad-filter-bar.js +6 -4
  520. package/dist/components/launchpad-filter-bar.js.map +1 -1
  521. package/dist/components/launchpad-page.cjs +7 -5
  522. package/dist/components/launchpad-page.cjs.map +1 -1
  523. package/dist/components/launchpad-page.js +7 -5
  524. package/dist/components/launchpad-page.js.map +1 -1
  525. package/dist/components/launchpad-services.cjs +22 -14
  526. package/dist/components/launchpad-services.cjs.map +1 -1
  527. package/dist/components/launchpad-services.d.cts +4 -3
  528. package/dist/components/launchpad-services.d.ts +4 -3
  529. package/dist/components/launchpad-services.js +26 -16
  530. package/dist/components/launchpad-services.js.map +1 -1
  531. package/dist/components/launchpad-strip.cjs +9 -6
  532. package/dist/components/launchpad-strip.cjs.map +1 -1
  533. package/dist/components/launchpad-strip.js +10 -7
  534. package/dist/components/launchpad-strip.js.map +1 -1
  535. package/dist/components/license-request-page.cjs +27 -22
  536. package/dist/components/license-request-page.cjs.map +1 -1
  537. package/dist/components/license-request-page.js +27 -22
  538. package/dist/components/license-request-page.js.map +1 -1
  539. package/dist/components/license-terms-builder.cjs +38 -31
  540. package/dist/components/license-terms-builder.cjs.map +1 -1
  541. package/dist/components/license-terms-builder.js +38 -31
  542. package/dist/components/license-terms-builder.js.map +1 -1
  543. package/dist/components/link.cjs +18 -1
  544. package/dist/components/link.cjs.map +1 -1
  545. package/dist/components/link.d.cts +8 -2
  546. package/dist/components/link.d.ts +8 -2
  547. package/dist/components/link.js +19 -2
  548. package/dist/components/link.js.map +1 -1
  549. package/dist/components/listing-card-menu.cjs +6 -4
  550. package/dist/components/listing-card-menu.cjs.map +1 -1
  551. package/dist/components/listing-card-menu.js +6 -4
  552. package/dist/components/listing-card-menu.js.map +1 -1
  553. package/dist/components/listing-card.cjs +9 -4
  554. package/dist/components/listing-card.cjs.map +1 -1
  555. package/dist/components/listing-card.js +9 -4
  556. package/dist/components/listing-card.js.map +1 -1
  557. package/dist/components/listings-grid.cjs +6 -10
  558. package/dist/components/listings-grid.cjs.map +1 -1
  559. package/dist/components/listings-grid.js +6 -10
  560. package/dist/components/listings-grid.js.map +1 -1
  561. package/dist/components/make-offer-picker.cjs +13 -15
  562. package/dist/components/make-offer-picker.cjs.map +1 -1
  563. package/dist/components/make-offer-picker.js +13 -15
  564. package/dist/components/make-offer-picker.js.map +1 -1
  565. package/dist/components/marketplace-dialog-primitives.cjs +3 -1
  566. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  567. package/dist/components/marketplace-dialog-primitives.js +3 -1
  568. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  569. package/dist/components/marketplace-filters.cjs +27 -21
  570. package/dist/components/marketplace-filters.cjs.map +1 -1
  571. package/dist/components/marketplace-filters.js +27 -21
  572. package/dist/components/marketplace-filters.js.map +1 -1
  573. package/dist/components/marketplace-search.cjs +11 -9
  574. package/dist/components/marketplace-search.cjs.map +1 -1
  575. package/dist/components/marketplace-search.js +11 -9
  576. package/dist/components/marketplace-search.js.map +1 -1
  577. package/dist/components/media-wallet/action-modal.cjs +3 -1
  578. package/dist/components/media-wallet/action-modal.cjs.map +1 -1
  579. package/dist/components/media-wallet/action-modal.js +3 -1
  580. package/dist/components/media-wallet/action-modal.js.map +1 -1
  581. package/dist/components/media-wallet/activate-card.cjs +4 -2
  582. package/dist/components/media-wallet/activate-card.cjs.map +1 -1
  583. package/dist/components/media-wallet/activate-card.js +4 -2
  584. package/dist/components/media-wallet/activate-card.js.map +1 -1
  585. package/dist/components/media-wallet/back-button.cjs +4 -1
  586. package/dist/components/media-wallet/back-button.cjs.map +1 -1
  587. package/dist/components/media-wallet/back-button.js +4 -1
  588. package/dist/components/media-wallet/back-button.js.map +1 -1
  589. package/dist/components/media-wallet/media-wallet-activity.cjs +20 -13
  590. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  591. package/dist/components/media-wallet/media-wallet-activity.js +20 -13
  592. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  593. package/dist/components/media-wallet/media-wallet-header.cjs +4 -2
  594. package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
  595. package/dist/components/media-wallet/media-wallet-header.js +4 -2
  596. package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
  597. package/dist/components/media-wallet/media-wallet-home.cjs +25 -23
  598. package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
  599. package/dist/components/media-wallet/media-wallet-home.js +25 -23
  600. package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
  601. package/dist/components/media-wallet/media-wallet-overlay.cjs +4 -2
  602. package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
  603. package/dist/components/media-wallet/media-wallet-overlay.js +4 -2
  604. package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
  605. package/dist/components/media-wallet/media-wallet-send.cjs +30 -33
  606. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  607. package/dist/components/media-wallet/media-wallet-send.js +30 -33
  608. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  609. package/dist/components/media-wallet/media-wallet-token-detail.cjs +11 -12
  610. package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
  611. package/dist/components/media-wallet/media-wallet-token-detail.js +11 -12
  612. package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
  613. package/dist/components/media-wallet/nft-strip.cjs +3 -1
  614. package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
  615. package/dist/components/media-wallet/nft-strip.js +3 -1
  616. package/dist/components/media-wallet/nft-strip.js.map +1 -1
  617. package/dist/components/media-wallet/receive-card.cjs +7 -5
  618. package/dist/components/media-wallet/receive-card.cjs.map +1 -1
  619. package/dist/components/media-wallet/receive-card.js +7 -5
  620. package/dist/components/media-wallet/receive-card.js.map +1 -1
  621. package/dist/components/media-wallet/success-dialog.cjs +3 -1
  622. package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
  623. package/dist/components/media-wallet/success-dialog.js +3 -1
  624. package/dist/components/media-wallet/success-dialog.js.map +1 -1
  625. package/dist/components/medialane-collection-card.cjs +3 -1
  626. package/dist/components/medialane-collection-card.cjs.map +1 -1
  627. package/dist/components/medialane-collection-card.js +3 -1
  628. package/dist/components/medialane-collection-card.js.map +1 -1
  629. package/dist/components/more-menu.cjs +7 -5
  630. package/dist/components/more-menu.cjs.map +1 -1
  631. package/dist/components/more-menu.js +7 -5
  632. package/dist/components/more-menu.js.map +1 -1
  633. package/dist/components/nav-command-menu.cjs +28 -22
  634. package/dist/components/nav-command-menu.cjs.map +1 -1
  635. package/dist/components/nav-command-menu.d.cts +1 -1
  636. package/dist/components/nav-command-menu.d.ts +1 -1
  637. package/dist/components/nav-command-menu.js +28 -22
  638. package/dist/components/nav-command-menu.js.map +1 -1
  639. package/dist/components/nav-language-switch.cjs +56 -0
  640. package/dist/components/nav-language-switch.cjs.map +1 -0
  641. package/dist/components/nav-language-switch.d.cts +8 -0
  642. package/dist/components/nav-language-switch.d.ts +8 -0
  643. package/dist/components/nav-language-switch.js +32 -0
  644. package/dist/components/nav-language-switch.js.map +1 -0
  645. package/dist/components/nav-shell.cjs +7 -3
  646. package/dist/components/nav-shell.cjs.map +1 -1
  647. package/dist/components/nav-shell.js +7 -3
  648. package/dist/components/nav-shell.js.map +1 -1
  649. package/dist/components/nav-theme-toggle.cjs +5 -3
  650. package/dist/components/nav-theme-toggle.cjs.map +1 -1
  651. package/dist/components/nav-theme-toggle.js +5 -3
  652. package/dist/components/nav-theme-toggle.js.map +1 -1
  653. package/dist/components/new-collection-menu.cjs +8 -5
  654. package/dist/components/new-collection-menu.cjs.map +1 -1
  655. package/dist/components/new-collection-menu.js +8 -5
  656. package/dist/components/new-collection-menu.js.map +1 -1
  657. package/dist/components/order-fields.cjs +6 -7
  658. package/dist/components/order-fields.cjs.map +1 -1
  659. package/dist/components/order-fields.js +6 -7
  660. package/dist/components/order-fields.js.map +1 -1
  661. package/dist/components/parent-attribution-banner.cjs +3 -1
  662. package/dist/components/parent-attribution-banner.cjs.map +1 -1
  663. package/dist/components/parent-attribution-banner.js +3 -1
  664. package/dist/components/parent-attribution-banner.js.map +1 -1
  665. package/dist/components/pop-burn-button.cjs +7 -5
  666. package/dist/components/pop-burn-button.cjs.map +1 -1
  667. package/dist/components/pop-burn-button.js +7 -5
  668. package/dist/components/pop-burn-button.js.map +1 -1
  669. package/dist/components/pop-claim-button.cjs +6 -4
  670. package/dist/components/pop-claim-button.cjs.map +1 -1
  671. package/dist/components/pop-claim-button.js +6 -4
  672. package/dist/components/pop-claim-button.js.map +1 -1
  673. package/dist/components/pop-manage-page.cjs +28 -31
  674. package/dist/components/pop-manage-page.cjs.map +1 -1
  675. package/dist/components/pop-manage-page.js +28 -31
  676. package/dist/components/pop-manage-page.js.map +1 -1
  677. package/dist/components/pop-my-events-page.cjs +18 -12
  678. package/dist/components/pop-my-events-page.cjs.map +1 -1
  679. package/dist/components/pop-my-events-page.js +18 -12
  680. package/dist/components/pop-my-events-page.js.map +1 -1
  681. package/dist/components/portfolio-activity.cjs +6 -4
  682. package/dist/components/portfolio-activity.cjs.map +1 -1
  683. package/dist/components/portfolio-activity.js +6 -4
  684. package/dist/components/portfolio-activity.js.map +1 -1
  685. package/dist/components/portfolio-assets.cjs +5 -3
  686. package/dist/components/portfolio-assets.cjs.map +1 -1
  687. package/dist/components/portfolio-assets.js +5 -3
  688. package/dist/components/portfolio-assets.js.map +1 -1
  689. package/dist/components/portfolio-chip-filter.cjs +3 -1
  690. package/dist/components/portfolio-chip-filter.cjs.map +1 -1
  691. package/dist/components/portfolio-chip-filter.js +3 -1
  692. package/dist/components/portfolio-chip-filter.js.map +1 -1
  693. package/dist/components/portfolio-collections.cjs +7 -5
  694. package/dist/components/portfolio-collections.cjs.map +1 -1
  695. package/dist/components/portfolio-collections.js +7 -5
  696. package/dist/components/portfolio-collections.js.map +1 -1
  697. package/dist/components/portfolio-header.cjs +5 -4
  698. package/dist/components/portfolio-header.cjs.map +1 -1
  699. package/dist/components/portfolio-header.js +5 -4
  700. package/dist/components/portfolio-header.js.map +1 -1
  701. package/dist/components/portfolio-orders.cjs +19 -14
  702. package/dist/components/portfolio-orders.cjs.map +1 -1
  703. package/dist/components/portfolio-orders.js +19 -14
  704. package/dist/components/portfolio-orders.js.map +1 -1
  705. package/dist/components/portfolio-section.cjs +3 -1
  706. package/dist/components/portfolio-section.cjs.map +1 -1
  707. package/dist/components/portfolio-section.js +3 -1
  708. package/dist/components/portfolio-section.js.map +1 -1
  709. package/dist/components/portfolio-shell.cjs +15 -12
  710. package/dist/components/portfolio-shell.cjs.map +1 -1
  711. package/dist/components/portfolio-shell.js +15 -12
  712. package/dist/components/portfolio-shell.js.map +1 -1
  713. package/dist/components/portfolio-sponsorships.cjs +39 -31
  714. package/dist/components/portfolio-sponsorships.cjs.map +1 -1
  715. package/dist/components/portfolio-sponsorships.js +39 -31
  716. package/dist/components/portfolio-sponsorships.js.map +1 -1
  717. package/dist/components/price-history-chart.cjs +7 -6
  718. package/dist/components/price-history-chart.cjs.map +1 -1
  719. package/dist/components/price-history-chart.js +7 -6
  720. package/dist/components/price-history-chart.js.map +1 -1
  721. package/dist/components/remix-browse-page.cjs +14 -11
  722. package/dist/components/remix-browse-page.cjs.map +1 -1
  723. package/dist/components/remix-browse-page.js +14 -11
  724. package/dist/components/remix-browse-page.js.map +1 -1
  725. package/dist/components/remixes-tab.cjs +8 -11
  726. package/dist/components/remixes-tab.cjs.map +1 -1
  727. package/dist/components/remixes-tab.js +8 -11
  728. package/dist/components/remixes-tab.js.map +1 -1
  729. package/dist/components/report-dialog.cjs +25 -23
  730. package/dist/components/report-dialog.cjs.map +1 -1
  731. package/dist/components/report-dialog.js +25 -23
  732. package/dist/components/report-dialog.js.map +1 -1
  733. package/dist/components/rewards/badge-unlocked.cjs +4 -4
  734. package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
  735. package/dist/components/rewards/badge-unlocked.js +4 -4
  736. package/dist/components/rewards/badge-unlocked.js.map +1 -1
  737. package/dist/components/rewards/leaderboard-panel.cjs +5 -3
  738. package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
  739. package/dist/components/rewards/leaderboard-panel.js +5 -3
  740. package/dist/components/rewards/leaderboard-panel.js.map +1 -1
  741. package/dist/components/rewards/leaderboard-table.cjs +13 -7
  742. package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
  743. package/dist/components/rewards/leaderboard-table.js +13 -7
  744. package/dist/components/rewards/leaderboard-table.js.map +1 -1
  745. package/dist/components/rewards/level-journey-list.cjs +6 -4
  746. package/dist/components/rewards/level-journey-list.cjs.map +1 -1
  747. package/dist/components/rewards/level-journey-list.js +6 -4
  748. package/dist/components/rewards/level-journey-list.js.map +1 -1
  749. package/dist/components/rewards/level-up-celebration.cjs +3 -1
  750. package/dist/components/rewards/level-up-celebration.cjs.map +1 -1
  751. package/dist/components/rewards/level-up-celebration.js +3 -1
  752. package/dist/components/rewards/level-up-celebration.js.map +1 -1
  753. package/dist/components/rewards/rewards-dashboard.cjs +51 -41
  754. package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
  755. package/dist/components/rewards/rewards-dashboard.js +51 -41
  756. package/dist/components/rewards/rewards-dashboard.js.map +1 -1
  757. package/dist/components/rewards/score-summary-card.cjs +9 -13
  758. package/dist/components/rewards/score-summary-card.cjs.map +1 -1
  759. package/dist/components/rewards/score-summary-card.js +9 -13
  760. package/dist/components/rewards/score-summary-card.js.map +1 -1
  761. package/dist/components/rewards/xp-earned.cjs +6 -7
  762. package/dist/components/rewards/xp-earned.cjs.map +1 -1
  763. package/dist/components/rewards/xp-earned.js +6 -7
  764. package/dist/components/rewards/xp-earned.js.map +1 -1
  765. package/dist/components/rewards-page.cjs +4 -1
  766. package/dist/components/rewards-page.cjs.map +1 -1
  767. package/dist/components/rewards-page.js +4 -1
  768. package/dist/components/rewards-page.js.map +1 -1
  769. package/dist/components/rewards-section.cjs +8 -5
  770. package/dist/components/rewards-section.cjs.map +1 -1
  771. package/dist/components/rewards-section.js +8 -5
  772. package/dist/components/rewards-section.js.map +1 -1
  773. package/dist/components/route-error.cjs +5 -6
  774. package/dist/components/route-error.cjs.map +1 -1
  775. package/dist/components/route-error.js +5 -6
  776. package/dist/components/route-error.js.map +1 -1
  777. package/dist/components/router.cjs +19 -3
  778. package/dist/components/router.cjs.map +1 -1
  779. package/dist/components/router.d.cts +7 -1
  780. package/dist/components/router.d.ts +7 -1
  781. package/dist/components/router.js +17 -1
  782. package/dist/components/router.js.map +1 -1
  783. package/dist/components/search-page.cjs +13 -11
  784. package/dist/components/search-page.cjs.map +1 -1
  785. package/dist/components/search-page.js +13 -11
  786. package/dist/components/search-page.js.map +1 -1
  787. package/dist/components/service-collections-page.cjs +22 -19
  788. package/dist/components/service-collections-page.cjs.map +1 -1
  789. package/dist/components/service-collections-page.d.cts +12 -12
  790. package/dist/components/service-collections-page.d.ts +12 -12
  791. package/dist/components/service-collections-page.js +22 -19
  792. package/dist/components/service-collections-page.js.map +1 -1
  793. package/dist/components/settings-snapshots.cjs +16 -20
  794. package/dist/components/settings-snapshots.cjs.map +1 -1
  795. package/dist/components/settings-snapshots.js +16 -20
  796. package/dist/components/settings-snapshots.js.map +1 -1
  797. package/dist/components/share-button.cjs +3 -1
  798. package/dist/components/share-button.cjs.map +1 -1
  799. package/dist/components/share-button.js +3 -1
  800. package/dist/components/share-button.js.map +1 -1
  801. package/dist/components/sheet.cjs +22 -18
  802. package/dist/components/sheet.cjs.map +1 -1
  803. package/dist/components/sheet.js +22 -18
  804. package/dist/components/sheet.js.map +1 -1
  805. package/dist/components/sign-in-prompt.cjs +3 -1
  806. package/dist/components/sign-in-prompt.cjs.map +1 -1
  807. package/dist/components/sign-in-prompt.js +3 -1
  808. package/dist/components/sign-in-prompt.js.map +1 -1
  809. package/dist/components/soulbound-card.cjs +14 -9
  810. package/dist/components/soulbound-card.cjs.map +1 -1
  811. package/dist/components/soulbound-card.d.cts +1 -1
  812. package/dist/components/soulbound-card.d.ts +1 -1
  813. package/dist/components/soulbound-card.js +14 -9
  814. package/dist/components/soulbound-card.js.map +1 -1
  815. package/dist/components/sponsorship-offer-page.cjs +29 -24
  816. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  817. package/dist/components/sponsorship-offer-page.js +29 -24
  818. package/dist/components/sponsorship-offer-page.js.map +1 -1
  819. package/dist/components/sponsorship-offers-page.cjs +11 -9
  820. package/dist/components/sponsorship-offers-page.cjs.map +1 -1
  821. package/dist/components/sponsorship-offers-page.js +11 -9
  822. package/dist/components/sponsorship-offers-page.js.map +1 -1
  823. package/dist/components/stat-tile.cjs +4 -1
  824. package/dist/components/stat-tile.cjs.map +1 -1
  825. package/dist/components/stat-tile.js +4 -1
  826. package/dist/components/stat-tile.js.map +1 -1
  827. package/dist/components/token-card.cjs +20 -18
  828. package/dist/components/token-card.cjs.map +1 -1
  829. package/dist/components/token-card.js +20 -18
  830. package/dist/components/token-card.js.map +1 -1
  831. package/dist/components/transaction-dialog-states.cjs +3 -1
  832. package/dist/components/transaction-dialog-states.cjs.map +1 -1
  833. package/dist/components/transaction-dialog-states.d.cts +2 -0
  834. package/dist/components/transaction-dialog-states.d.ts +2 -0
  835. package/dist/components/transaction-dialog-states.js +3 -1
  836. package/dist/components/transaction-dialog-states.js.map +1 -1
  837. package/dist/components/transaction-dialog.cjs +5 -3
  838. package/dist/components/transaction-dialog.cjs.map +1 -1
  839. package/dist/components/transaction-dialog.js +5 -3
  840. package/dist/components/transaction-dialog.js.map +1 -1
  841. package/dist/components/transfer-collection-ownership.cjs +19 -16
  842. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  843. package/dist/components/transfer-collection-ownership.js +19 -16
  844. package/dist/components/transfer-collection-ownership.js.map +1 -1
  845. package/dist/components/transfer-dialog.cjs +16 -17
  846. package/dist/components/transfer-dialog.cjs.map +1 -1
  847. package/dist/components/transfer-dialog.js +16 -17
  848. package/dist/components/transfer-dialog.js.map +1 -1
  849. package/dist/components/wallet/export-key-section.cjs +8 -6
  850. package/dist/components/wallet/export-key-section.cjs.map +1 -1
  851. package/dist/components/wallet/export-key-section.js +8 -6
  852. package/dist/components/wallet/export-key-section.js.map +1 -1
  853. package/dist/components/wallet/self-fund-consent-dialog.cjs +10 -8
  854. package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
  855. package/dist/components/wallet/self-fund-consent-dialog.js +10 -8
  856. package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
  857. package/dist/components/wallet-required.cjs +3 -1
  858. package/dist/components/wallet-required.cjs.map +1 -1
  859. package/dist/components/wallet-required.js +3 -1
  860. package/dist/components/wallet-required.js.map +1 -1
  861. package/dist/data/activity.cjs +14 -13
  862. package/dist/data/activity.cjs.map +1 -1
  863. package/dist/data/activity.js +14 -13
  864. package/dist/data/activity.js.map +1 -1
  865. package/dist/data/coins.cjs +7 -5
  866. package/dist/data/coins.cjs.map +1 -1
  867. package/dist/data/coins.js +7 -5
  868. package/dist/data/coins.js.map +1 -1
  869. package/dist/data/gated-content-types.cjs +6 -5
  870. package/dist/data/gated-content-types.cjs.map +1 -1
  871. package/dist/data/gated-content-types.js +6 -5
  872. package/dist/data/gated-content-types.js.map +1 -1
  873. package/dist/data/ip-templates.cjs +27 -26
  874. package/dist/data/ip-templates.cjs.map +1 -1
  875. package/dist/data/ip-templates.js +27 -26
  876. package/dist/data/ip-templates.js.map +1 -1
  877. package/dist/data/ip-types.cjs +10 -9
  878. package/dist/data/ip-types.cjs.map +1 -1
  879. package/dist/data/ip-types.js +10 -9
  880. package/dist/data/ip-types.js.map +1 -1
  881. package/dist/data/ip.cjs +23 -22
  882. package/dist/data/ip.cjs.map +1 -1
  883. package/dist/data/ip.js +23 -22
  884. package/dist/data/ip.js.map +1 -1
  885. package/dist/data/launchpad-services.cjs +151 -129
  886. package/dist/data/launchpad-services.cjs.map +1 -1
  887. package/dist/data/launchpad-services.d.cts +4 -1
  888. package/dist/data/launchpad-services.d.ts +4 -1
  889. package/dist/data/launchpad-services.js +148 -128
  890. package/dist/data/launchpad-services.js.map +1 -1
  891. package/dist/data/nav-commands.cjs +48 -47
  892. package/dist/data/nav-commands.cjs.map +1 -1
  893. package/dist/data/nav-commands.js +48 -47
  894. package/dist/data/nav-commands.js.map +1 -1
  895. package/dist/i18n/catalogs.cjs +34 -0
  896. package/dist/i18n/catalogs.cjs.map +1 -0
  897. package/dist/i18n/catalogs.d.cts +6 -0
  898. package/dist/i18n/catalogs.d.ts +6 -0
  899. package/dist/i18n/catalogs.js +10 -0
  900. package/dist/i18n/catalogs.js.map +1 -0
  901. package/dist/i18n/format.cjs +68 -0
  902. package/dist/i18n/format.cjs.map +1 -0
  903. package/dist/i18n/format.d.cts +6 -0
  904. package/dist/i18n/format.d.ts +6 -0
  905. package/dist/i18n/format.js +41 -0
  906. package/dist/i18n/format.js.map +1 -0
  907. package/dist/i18n/index.cjs +83 -0
  908. package/dist/i18n/index.cjs.map +1 -0
  909. package/dist/i18n/index.d.cts +12 -0
  910. package/dist/i18n/index.d.ts +12 -0
  911. package/dist/i18n/index.js +37 -0
  912. package/dist/i18n/index.js.map +1 -0
  913. package/dist/i18n/language-choice.cjs +40 -0
  914. package/dist/i18n/language-choice.cjs.map +1 -0
  915. package/dist/i18n/language-choice.d.cts +12 -0
  916. package/dist/i18n/language-choice.d.ts +12 -0
  917. package/dist/i18n/language-choice.js +16 -0
  918. package/dist/i18n/language-choice.js.map +1 -0
  919. package/dist/i18n/locales.cjs +32 -0
  920. package/dist/i18n/locales.cjs.map +1 -0
  921. package/dist/i18n/locales.d.cts +9 -0
  922. package/dist/i18n/locales.d.ts +9 -0
  923. package/dist/i18n/locales.js +7 -0
  924. package/dist/i18n/locales.js.map +1 -0
  925. package/dist/i18n/localize-router.cjs +35 -0
  926. package/dist/i18n/localize-router.cjs.map +1 -0
  927. package/dist/i18n/localize-router.d.cts +8 -0
  928. package/dist/i18n/localize-router.d.ts +8 -0
  929. package/dist/i18n/localize-router.js +11 -0
  930. package/dist/i18n/localize-router.js.map +1 -0
  931. package/dist/i18n/make-t.cjs +43 -0
  932. package/dist/i18n/make-t.cjs.map +1 -0
  933. package/dist/i18n/make-t.d.cts +11 -0
  934. package/dist/i18n/make-t.d.ts +11 -0
  935. package/dist/i18n/make-t.js +18 -0
  936. package/dist/i18n/make-t.js.map +1 -0
  937. package/dist/i18n/provider.cjs +50 -0
  938. package/dist/i18n/provider.cjs.map +1 -0
  939. package/dist/i18n/provider.d.cts +14 -0
  940. package/dist/i18n/provider.d.ts +14 -0
  941. package/dist/i18n/provider.js +24 -0
  942. package/dist/i18n/provider.js.map +1 -0
  943. package/dist/i18n/resolve-locale.cjs +59 -0
  944. package/dist/i18n/resolve-locale.cjs.map +1 -0
  945. package/dist/i18n/resolve-locale.d.cts +16 -0
  946. package/dist/i18n/resolve-locale.d.ts +16 -0
  947. package/dist/i18n/resolve-locale.js +34 -0
  948. package/dist/i18n/resolve-locale.js.map +1 -0
  949. package/dist/i18n/translate.cjs +71 -0
  950. package/dist/i18n/translate.cjs.map +1 -0
  951. package/dist/i18n/translate.d.cts +21 -0
  952. package/dist/i18n/translate.d.ts +21 -0
  953. package/dist/i18n/translate.js +44 -0
  954. package/dist/i18n/translate.js.map +1 -0
  955. package/dist/i18n/use-format.cjs +42 -0
  956. package/dist/i18n/use-format.cjs.map +1 -0
  957. package/dist/i18n/use-format.d.cts +8 -0
  958. package/dist/i18n/use-format.d.ts +8 -0
  959. package/dist/i18n/use-format.js +18 -0
  960. package/dist/i18n/use-format.js.map +1 -0
  961. package/dist/i18n/with-locale.cjs +44 -0
  962. package/dist/i18n/with-locale.cjs.map +1 -0
  963. package/dist/i18n/with-locale.d.cts +4 -0
  964. package/dist/i18n/with-locale.d.ts +4 -0
  965. package/dist/i18n/with-locale.js +19 -0
  966. package/dist/i18n/with-locale.js.map +1 -0
  967. package/dist/index.d.cts +2 -0
  968. package/dist/index.d.ts +2 -0
  969. package/dist/utils/describe-error.cjs +2 -1
  970. package/dist/utils/describe-error.cjs.map +1 -1
  971. package/dist/utils/describe-error.js +2 -1
  972. package/dist/utils/describe-error.js.map +1 -1
  973. package/dist/utils/drop/draft.cjs +2 -1
  974. package/dist/utils/drop/draft.cjs.map +1 -1
  975. package/dist/utils/drop/draft.js +2 -1
  976. package/dist/utils/drop/draft.js.map +1 -1
  977. package/dist/utils/drop/sale.cjs +2 -1
  978. package/dist/utils/drop/sale.cjs.map +1 -1
  979. package/dist/utils/drop/sale.js +2 -1
  980. package/dist/utils/drop/sale.js.map +1 -1
  981. package/dist/utils/drop/view.cjs +11 -8
  982. package/dist/utils/drop/view.cjs.map +1 -1
  983. package/dist/utils/drop/view.js +11 -8
  984. package/dist/utils/drop/view.js.map +1 -1
  985. package/dist/utils/empty-messages.cjs +17 -16
  986. package/dist/utils/empty-messages.cjs.map +1 -1
  987. package/dist/utils/empty-messages.js +17 -16
  988. package/dist/utils/empty-messages.js.map +1 -1
  989. package/dist/utils/format-activity.cjs +2 -1
  990. package/dist/utils/format-activity.cjs.map +1 -1
  991. package/dist/utils/format-activity.js +2 -1
  992. package/dist/utils/format-activity.js.map +1 -1
  993. package/dist/utils/format.cjs +14 -13
  994. package/dist/utils/format.cjs.map +1 -1
  995. package/dist/utils/format.d.cts +5 -5
  996. package/dist/utils/format.d.ts +5 -5
  997. package/dist/utils/format.js +14 -13
  998. package/dist/utils/format.js.map +1 -1
  999. package/dist/utils/ipfs-upload.cjs +6 -5
  1000. package/dist/utils/ipfs-upload.cjs.map +1 -1
  1001. package/dist/utils/ipfs-upload.js +6 -5
  1002. package/dist/utils/ipfs-upload.js.map +1 -1
  1003. package/dist/utils/media-wallet/wallet-format.cjs +5 -3
  1004. package/dist/utils/media-wallet/wallet-format.cjs.map +1 -1
  1005. package/dist/utils/media-wallet/wallet-format.d.cts +2 -2
  1006. package/dist/utils/media-wallet/wallet-format.d.ts +2 -2
  1007. package/dist/utils/media-wallet/wallet-format.js +5 -3
  1008. package/dist/utils/media-wallet/wallet-format.js.map +1 -1
  1009. package/dist/utils/success-messages.cjs +84 -79
  1010. package/dist/utils/success-messages.cjs.map +1 -1
  1011. package/dist/utils/success-messages.d.cts +33 -41
  1012. package/dist/utils/success-messages.d.ts +33 -41
  1013. package/dist/utils/success-messages.js +84 -79
  1014. package/dist/utils/success-messages.js.map +1 -1
  1015. package/dist/utils/token-profile-link.cjs +3 -2
  1016. package/dist/utils/token-profile-link.cjs.map +1 -1
  1017. package/dist/utils/token-profile-link.js +3 -2
  1018. package/dist/utils/token-profile-link.js.map +1 -1
  1019. package/dist/utils/wallet-failure.cjs +9 -8
  1020. package/dist/utils/wallet-failure.cjs.map +1 -1
  1021. package/dist/utils/wallet-failure.js +9 -8
  1022. package/dist/utils/wallet-failure.js.map +1 -1
  1023. package/package.json +7 -1
@@ -4,6 +4,7 @@ import { DialogTransactionSuccess } from "./transaction-success.js";
4
4
  import { MarketplaceErrorState, MarketplaceProcessingState } from "./marketplace-dialog-primitives.js";
5
5
  import { EXPLORER_URL } from "../utils/explorer-url.js";
6
6
  import { isBusyPhase } from "../utils/use-transaction.js";
7
+ import { useT } from "../i18n/provider.js";
7
8
  function TransactionDialogStates({
8
9
  phase,
9
10
  asset,
@@ -20,6 +21,7 @@ function TransactionDialogStates({
20
21
  onDone,
21
22
  children
22
23
  }) {
24
+ const t = useT();
23
25
  const busy = isBusyPhase(phase);
24
26
  if (phase === "success" && !error) {
25
27
  return /* @__PURE__ */ jsx(
@@ -29,7 +31,7 @@ function TransactionDialogStates({
29
31
  image: asset.image,
30
32
  ...success,
31
33
  txHash,
32
- actions: successActions ?? [{ label: "Done", onClick: onDone }],
34
+ actions: successActions ?? [{ label: t("Done"), onClick: onDone }],
33
35
  children: successChildren
34
36
  }
35
37
  );
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transaction-dialog-states.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { DialogTransactionSuccess, type TransactionSuccessAction } from \"./transaction-success.js\";\nimport { MarketplaceErrorState, MarketplaceProcessingState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { isBusyPhase, type TransactionPhase } from \"../utils/use-transaction.js\";\nimport type { SuccessMessage } from \"../utils/success-messages.js\";\n\nexport interface TransactionDialogStatesProps {\n phase: TransactionPhase;\n asset: { name: string; image?: string | null };\n statusMessage?: string;\n statusDescription?: string;\n txHash: string | null;\n error: string | null;\n success: SuccessMessage;\n successActions?: TransactionSuccessAction[];\n successChildren?: ReactNode;\n errorTitle: string;\n errorDescription: string;\n onRetry?: () => void;\n onDone: () => void;\n children: ReactNode;\n}\n\nexport function TransactionDialogStates({\n phase,\n asset,\n statusMessage = \"Confirming onchain…\",\n statusDescription,\n txHash,\n error,\n success,\n successActions,\n successChildren,\n errorTitle,\n errorDescription,\n onRetry,\n onDone,\n children,\n}: TransactionDialogStatesProps) {\n const busy = isBusyPhase(phase);\n\n if (phase === \"success\" && !error) {\n return (\n <DialogTransactionSuccess\n name={asset.name}\n image={asset.image}\n {...success}\n txHash={txHash}\n actions={successActions ?? [{ label: \"Done\", onClick: onDone }]}\n >\n {successChildren}\n </DialogTransactionSuccess>\n );\n }\n\n if (!busy && error && txHash) {\n return (\n <MarketplaceErrorState\n tokenImage={asset.image}\n name={asset.name}\n title={errorTitle}\n description={errorDescription}\n error={error}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n onRetry={onRetry}\n onDone={onDone}\n />\n );\n }\n\n if (busy) {\n return (\n <MarketplaceProcessingState\n title={statusMessage}\n description={statusDescription}\n imageUrl={asset.image}\n imageAlt={asset.name}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n />\n );\n }\n\n return <>{children}</>;\n}\n"],"mappings":";AA8CM,SAyCG,UAzCH;AA3CN,SAAS,gCAA+D;AACxE,SAAS,uBAAuB,kCAAkC;AAClE,SAAS,oBAAoB;AAC7B,SAAS,mBAA0C;AAoB5C,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAiC;AAC/B,QAAM,OAAO,YAAY,KAAK;AAE9B,MAAI,UAAU,aAAa,CAAC,OAAO;AACjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,MAAM;AAAA,QACZ,OAAO,MAAM;AAAA,QACZ,GAAG;AAAA,QACJ;AAAA,QACA,SAAS,kBAAkB,CAAC,EAAE,OAAO,QAAQ,SAAS,OAAO,CAAC;AAAA,QAE7D;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,MAAI,CAAC,QAAQ,SAAS,QAAQ;AAC5B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,MAAM;AAAA,QAClB,MAAM,MAAM;AAAA,QACZ,OAAO;AAAA,QACP,aAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA,aAAa;AAAA,QACb;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,MAAI,MAAM;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,aAAa;AAAA,QACb,UAAU,MAAM;AAAA,QAChB,UAAU,MAAM;AAAA,QAChB;AAAA,QACA,aAAa;AAAA;AAAA,IACf;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transaction-dialog-states.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { DialogTransactionSuccess, type TransactionSuccessAction } from \"./transaction-success.js\";\nimport { MarketplaceErrorState, MarketplaceProcessingState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { isBusyPhase, type TransactionPhase } from \"../utils/use-transaction.js\";\nimport type { SuccessMessage } from \"../utils/success-messages.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogStatesProps {\n phase: TransactionPhase;\n asset: { name: string; image?: string | null };\n statusMessage?: string;\n statusDescription?: string;\n txHash: string | null;\n error: string | null;\n success: SuccessMessage;\n successActions?: TransactionSuccessAction[];\n successChildren?: ReactNode;\n errorTitle: string;\n errorDescription: string;\n onRetry?: () => void;\n onDone: () => void;\n children: ReactNode;\n}\n\nexport function TransactionDialogStates({\n phase,\n asset,\n statusMessage = \"Confirming onchain…\",\n statusDescription,\n txHash,\n error,\n success,\n successActions,\n successChildren,\n errorTitle,\n errorDescription,\n onRetry,\n onDone,\n children,\n}: TransactionDialogStatesProps) {\n const t = useT();\n const busy = isBusyPhase(phase);\n\n if (phase === \"success\" && !error) {\n return (\n <DialogTransactionSuccess\n name={asset.name}\n image={asset.image}\n {...success}\n txHash={txHash}\n actions={successActions ?? [{ label: t(\"Done\"), onClick: onDone }]}\n >\n {successChildren}\n </DialogTransactionSuccess>\n );\n }\n\n if (!busy && error && txHash) {\n return (\n <MarketplaceErrorState\n tokenImage={asset.image}\n name={asset.name}\n title={errorTitle}\n description={errorDescription}\n error={error}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n onRetry={onRetry}\n onDone={onDone}\n />\n );\n }\n\n if (busy) {\n return (\n <MarketplaceProcessingState\n title={statusMessage}\n description={statusDescription}\n imageUrl={asset.image}\n imageAlt={asset.name}\n txHash={txHash}\n explorerUrl={EXPLORER_URL}\n />\n );\n }\n\n return <>{children}</>;\n}\n"],"mappings":";AAgDM,SAyCG,UAzCH;AA7CN,SAAS,gCAA+D;AACxE,SAAS,uBAAuB,kCAAkC;AAClE,SAAS,oBAAoB;AAC7B,SAAS,mBAA0C;AAEnD,SAAS,YAAY;AAmBd,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAiC;AAC/B,QAAM,IAAI,KAAK;AACf,QAAM,OAAO,YAAY,KAAK;AAE9B,MAAI,UAAU,aAAa,CAAC,OAAO;AACjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,MAAM;AAAA,QACZ,OAAO,MAAM;AAAA,QACZ,GAAG;AAAA,QACJ;AAAA,QACA,SAAS,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,OAAO,CAAC;AAAA,QAEhE;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,MAAI,CAAC,QAAQ,SAAS,QAAQ;AAC5B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,MAAM;AAAA,QAClB,MAAM,MAAM;AAAA,QACZ,OAAO;AAAA,QACP,aAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA,aAAa;AAAA,QACb;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,MAAI,MAAM;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,aAAa;AAAA,QACb,UAAU,MAAM;AAAA,QAChB,UAAU,MAAM;AAAA,QAChB;AAAA,QACA,aAAa;AAAA;AAAA,IACf;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}
@@ -27,8 +27,10 @@ var import_lucide_react = require("lucide-react");
27
27
  var import_dialog = require("./dialog.js");
28
28
  var import_button = require("./button.js");
29
29
  var import_use_confetti = require("../utils/use-confetti.js");
30
+ var import_provider = require("../i18n/provider.js");
30
31
  const ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 };
31
32
  function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare", children }) {
33
+ const t = (0, import_provider.useT)();
32
34
  const { phase, error, reset, retryable = true } = tx;
33
35
  const working = phase === "preparing" || phase === "submitting" || phase === "confirming";
34
36
  const success = phase === "success";
@@ -50,7 +52,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
50
52
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-8 w-8 animate-spin text-primary" }) }),
51
53
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1 text-center", children: [
52
54
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-lg font-semibold", children: workingLabel }),
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? "Waiting for block confirmation" : "Submitting transaction" })
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? t("Waiting for block confirmation") : t("Submitting transaction") })
54
56
  ] }),
55
57
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: "w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4", children: steps.map((label, i) => {
56
58
  const active = i === ACTIVE_STEP[phase];
@@ -60,7 +62,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
60
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: done ? "text-sm text-foreground" : active ? "text-sm font-medium text-primary" : "text-sm text-muted-foreground", children: label })
61
63
  ] }, label);
62
64
  }) }),
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-xs text-muted-foreground", children: "This usually takes 10\u201330 seconds." })
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-xs text-muted-foreground", children: t("This usually takes 10\u201330 seconds.") })
64
66
  ] }),
65
67
  success && children,
66
68
  failed && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-5 py-2", children: [
@@ -69,7 +71,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
69
71
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xl font-bold", children: title }),
70
72
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mx-auto max-w-xs text-sm text-muted-foreground", children: error })
71
73
  ] }),
72
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? "Try again" : "Close" })
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? t("Try again") : t("Close") })
73
75
  ] })
74
76
  ]
75
77
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? \"Waiting for block confirmation\" : \"Submitting transaction\"}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">This usually takes 10–30 seconds.</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? \"Try again\" : \"Close\"}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;A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AY,KAAK;AAClC,mBACE,6CAAC,QAAe,aAAS,MAAC,gBAAc,SAAS,SAAS,QAAW,WAAU,2BAC5E;AAAA,qBACC,4CAAC,oCAAa,WAAU,qCAAoC,IAC1D,SACF,4CAAC,+BAAQ,WAAU,8CAA6C,IAEhE,4CAAC,SAAI,WAAU,qEAAoE;AAAA,cAErF,4CAAC,UAAK,WAAW,OAAO,4BAA4B,SAAS,qCAAqC,iCAC/F,iBACH;AAAA,iBAVO,KAWT;AAAA,UAEJ,CAAC,GACH;AAAA,UACA,4CAAC,OAAE,WAAU,6CAA4C,oDAAiC;AAAA,WAC5F;AAAA,QAGD,WAAW;AAAA,QAEX,UACC,6CAAC,SAAI,WAAU,yCACb;AAAA,sDAAC,SAAI,WAAU,6EACb,sDAAC,+BAAQ,WAAU,4BAA2B,GAChD;AAAA,UACA,6CAAC,SAAI,WAAU,yBACb;AAAA,wDAAC,OAAE,WAAU,qBAAqB,iBAAM;AAAA,YACxC,4CAAC,OAAE,WAAU,kDAAkD,iBAAM;AAAA,aACvE;AAAA,UACA,4CAAC,wBAAO,SAAQ,WAAU,WAAU,UAAS,SAAS,OACnD,sBAAY,cAAc,SAC7B;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const t = useT();\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? t(\"Waiting for block confirmation\") : t(\"Submitting transaction\")}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">{t(\"This usually takes 10–30 seconds.\")}</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? t(\"Try again\") : t(\"Close\")}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCQ;AAnCR,0BAA+C;AAC/C,oBAAmD;AACnD,oBAAuB;AACvB,0BAA4B;AAE5B,sBAAqB;AAUrB,MAAM,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,EAAE;AAE1D,SAAS,kBAAkB,EAAE,IAAI,OAAO,cAAc,iBAAiB,WAAW,SAAS,GAA2B;AAC3H,QAAM,QAAI,sBAAK;AACf,QAAM,EAAE,OAAO,OAAO,OAAO,YAAY,KAAK,IAAI;AAClD,QAAM,UAAU,UAAU,eAAe,UAAU,gBAAgB,UAAU;AAC7E,QAAM,UAAU,UAAU;AAC1B,QAAM,SAAS,UAAU;AACzB,QAAM,QAAQ,CAAC,gBAAgB,sBAAsB,qBAAqB;AAE1E,uCAAY,OAAO;AAEnB,SACE,4CAAC,wBAAO,MAAM,UAAU,QAAQ,OAAK,MAAC,cAAc,CAAC,SAAS;AAAE,QAAI,CAAC,QAAQ,CAAC,QAAS,OAAM;AAAA,EAAG,GAC9F;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,mBAAmB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACzD,i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AAA,aACvE;AAAA,UACA,4CAAC,wBAAO,SAAQ,WAAU,WAAU,UAAS,SAAS,OACnD,sBAAY,EAAE,WAAW,IAAI,EAAE,OAAO,GACzC;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}
@@ -4,8 +4,10 @@ import { CheckCircle2, Loader2, XCircle } from "lucide-react";
4
4
  import { Dialog, DialogContent, DialogTitle } from "./dialog.js";
5
5
  import { Button } from "./button.js";
6
6
  import { useConfetti } from "../utils/use-confetti.js";
7
+ import { useT } from "../i18n/provider.js";
7
8
  const ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 };
8
9
  function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare", children }) {
10
+ const t = useT();
9
11
  const { phase, error, reset, retryable = true } = tx;
10
12
  const working = phase === "preparing" || phase === "submitting" || phase === "confirming";
11
13
  const success = phase === "success";
@@ -27,7 +29,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
27
29
  /* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Loader2, { className: "h-8 w-8 animate-spin text-primary" }) }),
28
30
  /* @__PURE__ */ jsxs("div", { className: "space-y-1 text-center", children: [
29
31
  /* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", children: workingLabel }),
30
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? "Waiting for block confirmation" : "Submitting transaction" })
32
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: phase === "confirming" ? t("Waiting for block confirmation") : t("Submitting transaction") })
31
33
  ] }),
32
34
  /* @__PURE__ */ jsx("ol", { className: "w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4", children: steps.map((label, i) => {
33
35
  const active = i === ACTIVE_STEP[phase];
@@ -37,7 +39,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
37
39
  /* @__PURE__ */ jsx("span", { className: done ? "text-sm text-foreground" : active ? "text-sm font-medium text-primary" : "text-sm text-muted-foreground", children: label })
38
40
  ] }, label);
39
41
  }) }),
40
- /* @__PURE__ */ jsx("p", { className: "text-center text-xs text-muted-foreground", children: "This usually takes 10\u201330 seconds." })
42
+ /* @__PURE__ */ jsx("p", { className: "text-center text-xs text-muted-foreground", children: t("This usually takes 10\u201330 seconds.") })
41
43
  ] }),
42
44
  success && children,
43
45
  failed && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-5 py-2", children: [
@@ -46,7 +48,7 @@ function TransactionDialog({ tx, title, workingLabel, firstStepLabel = "Prepare"
46
48
  /* @__PURE__ */ jsx("p", { className: "text-xl font-bold", children: title }),
47
49
  /* @__PURE__ */ jsx("p", { className: "mx-auto max-w-xs text-sm text-muted-foreground", children: error })
48
50
  ] }),
49
- /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? "Try again" : "Close" })
51
+ /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick: reset, children: retryable ? t("Try again") : t("Close") })
50
52
  ] })
51
53
  ]
52
54
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transaction-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? \"Waiting for block confirmation\" : \"Submitting transaction\"}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">This usually takes 10–30 seconds.</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? \"Try again\" : \"Close\"}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AAoCQ,cAOI,YAPJ;AAjCR,SAAS,cAAc,SAAS,eAAe;AAC/C,SAAS,QAAQ,eAAe,mBAAmB;AACnD,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAW5B,MAAM,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,EAAE;AAE1D,SAAS,kBAAkB,EAAE,IAAI,OAAO,cAAc,iBAAiB,WAAW,SAAS,GAA2B;AAC3H,QAAM,EAAE,OAAO,OAAO,OAAO,YAAY,KAAK,IAAI;AAClD,QAAM,UAAU,UAAU,eAAe,UAAU,gBAAgB,UAAU;AAC7E,QAAM,UAAU,UAAU;AAC1B,QAAM,SAAS,UAAU;AACzB,QAAM,QAAQ,CAAC,gBAAgB,sBAAsB,qBAAqB;AAE1E,cAAY,OAAO;AAEnB,SACE,oBAAC,UAAO,MAAM,UAAU,QAAQ,OAAK,MAAC,cAAc,CAAC,SAAS;AAAE,QAAI,CAAC,QAAQ,CAAC,QAAS,OAAM;AAAA,EAAG,GAC9F;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,mBAAmB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACzD,iBAAiB,UAAU,CAAC,MAAM,EAAE,eAAe,IAAI;AAAA,MACtD,GAAI,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;AAAA,MAEtC;AAAA,4BAAC,eAAY,WAAU,WAAW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og.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { Button } from \"./button.js\";\nimport { useConfetti } from \"../utils/use-confetti.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransactionDialogProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"phase\" | \"error\" | \"reset\"> & { retryable?: boolean };\n title: string;\n workingLabel: string;\n firstStepLabel?: string;\n children?: ReactNode;\n}\n\nconst ACTIVE_STEP = { preparing: 0, submitting: 1, confirming: 2 } as const;\n\nexport function TransactionDialog({ tx, title, workingLabel, firstStepLabel = \"Prepare\", children }: TransactionDialogProps) {\n const t = useT();\n const { phase, error, reset, retryable = true } = tx;\n const working = phase === \"preparing\" || phase === \"submitting\" || phase === \"confirming\";\n const success = phase === \"success\";\n const failed = phase === \"error\";\n const steps = [firstStepLabel, \"Submit transaction\", \"Confirm transaction\"];\n\n useConfetti(success);\n\n return (\n <Dialog open={phase !== \"idle\"} modal onOpenChange={(open) => { if (!open && !working) reset(); }}>\n <DialogContent\n className=\"sm:max-w-md\"\n onInteractOutside={working ? (e) => e.preventDefault() : undefined}\n onEscapeKeyDown={working ? (e) => e.preventDefault() : undefined}\n {...(working ? { hideClose: true } : {})}\n >\n <DialogTitle className=\"sr-only\">{working ? workingLabel : title}</DialogTitle>\n\n {working && (\n <div className=\"flex flex-col items-center gap-6 py-4\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-primary/10\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-lg font-semibold\">{workingLabel}</p>\n <p className=\"text-sm text-muted-foreground\">\n {phase === \"confirming\" ? t(\"Waiting for block confirmation\") : t(\"Submitting transaction\")}\n </p>\n </div>\n <ol className=\"w-full space-y-2 rounded-xl border border-border/60 bg-muted/30 p-4\">\n {steps.map((label, i) => {\n const active = i === ACTIVE_STEP[phase];\n const done = i < ACTIVE_STEP[phase];\n return (\n <li key={label} data-step aria-current={active ? \"step\" : undefined} className=\"flex items-center gap-3\">\n {done ? (\n <CheckCircle2 className=\"h-4 w-4 shrink-0 text-emerald-500\" />\n ) : active ? (\n <Loader2 className=\"h-4 w-4 shrink-0 animate-spin text-primary\" />\n ) : (\n <div className=\"h-4 w-4 shrink-0 rounded-full border-2 border-muted-foreground/30\" />\n )}\n <span className={done ? \"text-sm text-foreground\" : active ? \"text-sm font-medium text-primary\" : \"text-sm text-muted-foreground\"}>\n {label}\n </span>\n </li>\n );\n })}\n </ol>\n <p className=\"text-center text-xs text-muted-foreground\">{t(\"This usually takes 10–30 seconds.\")}</p>\n </div>\n )}\n\n {success && children}\n\n {failed && (\n <div className=\"flex flex-col items-center gap-5 py-2\">\n <div className=\"flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10\">\n <XCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n <div className=\"space-y-1 text-center\">\n <p className=\"text-xl font-bold\">{title}</p>\n <p className=\"mx-auto max-w-xs text-sm text-muted-foreground\">{error}</p>\n </div>\n <Button variant=\"outline\" className=\"w-full\" onClick={reset}>\n {retryable ? t(\"Try again\") : t(\"Close\")}\n </Button>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AAsCQ,cAOI,YAPJ;AAnCR,SAAS,cAAc,SAAS,eAAe;AAC/C,SAAS,QAAQ,eAAe,mBAAmB;AACnD,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAE5B,SAAS,YAAY;AAUrB,MAAM,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,EAAE;AAE1D,SAAS,kBAAkB,EAAE,IAAI,OAAO,cAAc,iBAAiB,WAAW,SAAS,GAA2B;AAC3H,QAAM,IAAI,KAAK;AACf,QAAM,EAAE,OAAO,OAAO,OAAO,YAAY,KAA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WAAW,OAAO,4BAA4B,SAAS,qCAAqC,iCAC/F,iBACH;AAAA,iBAVO,KAWT;AAAA,UAEJ,CAAC,GACH;AAAA,UACA,oBAAC,OAAE,WAAU,6CAA6C,YAAE,wCAAmC,GAAE;AAAA,WACnG;AAAA,QAGD,WAAW;AAAA,QAEX,UACC,qBAAC,SAAI,WAAU,yCACb;AAAA,8BAAC,SAAI,WAAU,6EACb,8BAAC,WAAQ,WAAU,4BAA2B,GAChD;AAAA,UACA,qBAAC,SAAI,WAAU,yBACb;AAAA,gCAAC,OAAE,WAAU,qBAAqB,iBAAM;AAAA,YACxC,oBAAC,OAAE,WAAU,kDAAkD,iBAAM;AAAA,aACvE;AAAA,UACA,oBAAC,UAAO,SAAQ,WAAU,WAAU,UAAS,SAAS,OACnD,sBAAY,EAAE,WAAW,IAAI,EAAE,OAAO,GACzC;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;","names":[]}
@@ -38,7 +38,9 @@ var import_address = require("../utils/address.js");
38
38
  var import_run_intent_calls = require("../utils/run-intent-calls.js");
39
39
  var import_success_messages = require("../utils/success-messages.js");
40
40
  var import_use_transaction = require("../utils/use-transaction.js");
41
+ var import_provider = require("../i18n/provider.js");
41
42
  function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }) {
43
+ const t = (0, import_provider.useT)();
42
44
  const app = (0, import_medialane_app.useMedialaneApp)();
43
45
  const tx = (0, import_use_transaction.useTransaction)();
44
46
  const [open, setOpen] = (0, import_react.useState)(false);
@@ -68,34 +70,35 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
68
70
  setOpen(true);
69
71
  }, children: [
70
72
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-4 w-4" }),
71
- "Transfer ownership"
73
+ t("Transfer ownership")
72
74
  ] }),
73
75
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog, { open, onOpenChange: (next) => {
74
76
  if (!next) close();
75
77
  }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl", children: [
76
78
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogTitle, { className: "sr-only", children: [
77
- "Transfer ownership of ",
78
- collectionName ?? "collection"
79
+ t("Transfer ownership of"),
80
+ " ",
81
+ collectionName ?? t("collection")
79
82
  ] }),
80
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: "Transfer the on-chain owner of this collection. Existing tokens are unaffected." }),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: t("Transfer the on-chain owner of this collection. Existing tokens are unaffected.") }),
81
84
  confirming ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
82
85
  import_marketplace_dialog_primitives.MarketplaceConfirmStep,
83
86
  {
84
87
  description: `Transfer ownership to ${(0, import_address.shortenAddress)(trimmed)}?`,
85
- secondaryLabel: "Back",
88
+ secondaryLabel: t("Back"),
86
89
  onSecondary: () => setConfirming(false),
87
- primaryLabel: "Transfer ownership",
90
+ primaryLabel: t("Transfer ownership"),
88
91
  onPrimary: transfer,
89
92
  primaryIcon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-4 w-4" })
90
93
  }
91
94
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-6 space-y-4", children: [
92
95
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
93
96
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserRoundCog, { className: "h-5 w-5" }),
94
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-lg", children: "Transfer collection ownership" })
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-lg", children: t("Transfer collection ownership") })
95
98
  ] }),
96
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: "The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected." }),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.") }),
97
100
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
98
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { htmlFor: "new-owner", children: "New owner address" }),
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { htmlFor: "new-owner", children: t("New owner address") }),
99
102
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
103
  import_input.Input,
101
104
  {
@@ -108,22 +111,22 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
108
111
  autoComplete: "off"
109
112
  }
110
113
  ),
111
- trimmed && !isValid && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-red-500", children: "Not a valid Starknet address." }),
112
- wouldNoop && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-amber-500", children: "This is already the current owner." })
114
+ trimmed && !isValid && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-red-500", children: t("Not a valid Starknet address.") }),
115
+ wouldNoop && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-amber-500", children: t("This is already the current owner.") })
113
116
  ] }),
114
117
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex gap-2 pt-2", children: [
115
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "flex-1", onClick: close, children: "Cancel" }),
116
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: "Continue" })
118
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "flex-1", onClick: close, children: t("Cancel") }),
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: t("Continue") })
117
120
  ] })
118
121
  ] })
119
122
  ] }) }),
120
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: t("Transfer ownership"), workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
124
  import_transaction_success.TransactionSuccess,
122
125
  {
123
126
  name: collectionName ?? "Collection",
124
- ...import_success_messages.successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: (0, import_address.shortenAddress)(trimmed) }),
127
+ ...import_success_messages.successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: (0, import_address.shortenAddress)(trimmed) }, t),
125
128
  txHash: tx.txHash,
126
- actions: [{ label: "Done", onClick: tx.reset }]
129
+ actions: [{ label: t("Done"), onClick: tx.reset }]
127
130
  }
128
131
  ) })
129
132
  ] });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) })}\n txHash={tx.txHash}\n actions={[{ label: \"Done\", onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuDI;AArDJ,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MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eAAe,sBAEtH;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,4CAAC,+CAAkB,IAAQ,OAAM,sBAAqB,cAAa,gCAA0B,gBAAe,oBAC1G;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,kBAAkB;AAAA,QACvB,GAAG,wCAAgB,qBAAqB,EAAE,MAAM,kBAAkB,kBAAkB,QAAI,+BAAe,OAAO,EAAE,CAAC;AAAA,QAClH,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,QAAQ,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IAChD,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const t = useT();\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n {t(\"Transfer ownership\")}\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">{t(\"Transfer ownership of\")} {collectionName ?? t(\"collection\")}</DialogTitle>\n <DialogDescription className=\"sr-only\">{t(\"Transfer the on-chain owner of this collection. Existing tokens are unaffected.\")}</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel={t(\"Back\")}\n onSecondary={() => setConfirming(false)}\n primaryLabel={t(\"Transfer ownership\")}\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">{t(\"Transfer collection ownership\")}</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n {t(\"The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\")}\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">{t(\"New owner address\")}</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">{t(\"Not a valid Starknet address.\")}</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">{t(\"This is already the current owner.\")}</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n {t(\"Cancel\")}\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n {t(\"Continue\")}\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title={t(\"Transfer ownership\")} workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) }, t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyDI;AAvDJ,mBAAyB;AACzB,0BAA6B;AAC7B,iBAAiC;AACjC,oBAAuB;AACvB,oBAAsE;AACtE,mBAAsB;AACtB,mBAAsB;AACtB,2CAAuC;AACvC,2BAAgC;AAChC,gCAAkC;AAClC,iCAAmC;AACnC,qBAA+B;AAC/B,8BAA+B;AAC/B,8BAAgC;AAChC,6BAA+B;AAC/B,sBAAqB;AASd,SAAS,4BAA4B,EAAE,cAAc,cAAc,gBAAgB,cAAc,GAAqC;AAC3I,QAAM,QAAI,sBAAK;AACf,QAAM,UAAM,sCAAgB;AAC5B,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AkB,IAAQ,OAAO,EAAE,oBAAoB,GAAG,cAAa,gCAA0B,gBAAe,oBAC/G;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,kBAAkB;AAAA,QACvB,GAAG,wCAAgB,qBAAqB,EAAE,MAAM,kBAAkB,kBAAkB,QAAI,+BAAe,OAAO,EAAE,GAAG,CAAC;AAAA,QACrH,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IACnD,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -15,7 +15,9 @@ import { shortenAddress } from "../utils/address.js";
15
15
  import { runIntentCalls } from "../utils/run-intent-calls.js";
16
16
  import { successMessages } from "../utils/success-messages.js";
17
17
  import { useTransaction } from "../utils/use-transaction.js";
18
+ import { useT } from "../i18n/provider.js";
18
19
  function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }) {
20
+ const t = useT();
19
21
  const app = useMedialaneApp();
20
22
  const tx = useTransaction();
21
23
  const [open, setOpen] = useState(false);
@@ -45,34 +47,35 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
45
47
  setOpen(true);
46
48
  }, children: [
47
49
  /* @__PURE__ */ jsx(UserRoundCog, { className: "h-4 w-4" }),
48
- "Transfer ownership"
50
+ t("Transfer ownership")
49
51
  ] }),
50
52
  /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: (next) => {
51
53
  if (!next) close();
52
54
  }, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl", children: [
53
55
  /* @__PURE__ */ jsxs(DialogTitle, { className: "sr-only", children: [
54
- "Transfer ownership of ",
55
- collectionName ?? "collection"
56
+ t("Transfer ownership of"),
57
+ " ",
58
+ collectionName ?? t("collection")
56
59
  ] }),
57
- /* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: "Transfer the on-chain owner of this collection. Existing tokens are unaffected." }),
60
+ /* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: t("Transfer the on-chain owner of this collection. Existing tokens are unaffected.") }),
58
61
  confirming ? /* @__PURE__ */ jsx(
59
62
  MarketplaceConfirmStep,
60
63
  {
61
64
  description: `Transfer ownership to ${shortenAddress(trimmed)}?`,
62
- secondaryLabel: "Back",
65
+ secondaryLabel: t("Back"),
63
66
  onSecondary: () => setConfirming(false),
64
- primaryLabel: "Transfer ownership",
67
+ primaryLabel: t("Transfer ownership"),
65
68
  onPrimary: transfer,
66
69
  primaryIcon: /* @__PURE__ */ jsx(UserRoundCog, { className: "h-4 w-4" })
67
70
  }
68
71
  ) : /* @__PURE__ */ jsxs("div", { className: "p-6 space-y-4", children: [
69
72
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
70
73
  /* @__PURE__ */ jsx(UserRoundCog, { className: "h-5 w-5" }),
71
- /* @__PURE__ */ jsx("p", { className: "font-bold text-lg", children: "Transfer collection ownership" })
74
+ /* @__PURE__ */ jsx("p", { className: "font-bold text-lg", children: t("Transfer collection ownership") })
72
75
  ] }),
73
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected." }),
76
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.") }),
74
77
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
75
- /* @__PURE__ */ jsx(Label, { htmlFor: "new-owner", children: "New owner address" }),
78
+ /* @__PURE__ */ jsx(Label, { htmlFor: "new-owner", children: t("New owner address") }),
76
79
  /* @__PURE__ */ jsx(
77
80
  Input,
78
81
  {
@@ -85,22 +88,22 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
85
88
  autoComplete: "off"
86
89
  }
87
90
  ),
88
- trimmed && !isValid && /* @__PURE__ */ jsx("p", { className: "text-xs text-red-500", children: "Not a valid Starknet address." }),
89
- wouldNoop && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-500", children: "This is already the current owner." })
91
+ trimmed && !isValid && /* @__PURE__ */ jsx("p", { className: "text-xs text-red-500", children: t("Not a valid Starknet address.") }),
92
+ wouldNoop && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-500", children: t("This is already the current owner.") })
90
93
  ] }),
91
94
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2 pt-2", children: [
92
- /* @__PURE__ */ jsx(Button, { variant: "ghost", className: "flex-1", onClick: close, children: "Cancel" }),
93
- /* @__PURE__ */ jsx(Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: "Continue" })
95
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", className: "flex-1", onClick: close, children: t("Cancel") }),
96
+ /* @__PURE__ */ jsx(Button, { className: "flex-1", onClick: () => setConfirming(true), disabled: !isValid || wouldNoop || !app.walletAddress, children: t("Continue") })
94
97
  ] })
95
98
  ] })
96
99
  ] }) }),
97
- /* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ jsx(
100
+ /* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Transfer ownership"), workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ jsx(
98
101
  TransactionSuccess,
99
102
  {
100
103
  name: collectionName ?? "Collection",
101
- ...successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: shortenAddress(trimmed) }),
104
+ ...successMessages.ownershipTransferred({ name: collectionName ?? "the collection", to: shortenAddress(trimmed) }, t),
102
105
  txHash: tx.txHash,
103
- actions: [{ label: "Done", onClick: tx.reset }]
106
+ actions: [{ label: t("Done"), onClick: tx.reset }]
104
107
  }
105
108
  ) })
106
109
  ] });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) })}\n txHash={tx.txHash}\n actions={[{ label: \"Done\", onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";AAuDI,mBAEI,KADF,YADF;AArDJ,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,cAAc;AACvB,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AACtE,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AASxB,SAAS,4BAA4B,EAAE,cAAc,cAAc,gBAAgB,cAAc,GAAqC;AAC3I,QAAM,MAAM,gBAAgB;AAC5B,QAAM,KAAK,eAAe;AAC1B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAClD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,EAAE;AAE3C,QAAM,UAAU,SAAS,KAAK;AAC9B,QAAM,UAAU,wBAAwB,KAAK,OAAO;AACpD,QAAM,YAAY,WAAW,iBAAiB,YAAY,OAAO,MAAM,iBAAiB,YAAY,YAAY;AAEhH,QAAM,QAAQ,MAAM;AAClB,YAAQ,KAAK;AACb,kBAAc,KAAK;AAAA,EACrB;AAEA,QAAM,WAAW,MAAM;AACrB,UAAM;AACN,SAAK,GACF,IAAI,OAAO,WAAW;AACrB,YAAM;AAAA,QAAe;AAAA,QAAQ,MAC3B,IAAI,UAAU,EAAE,aAAa,iCAAiC,EAAE,OAAO,OAAO,SAAS,cAAc,OAAO,YAAY,GAAG,UAAU,QAAQ,CAAC;AAAA,MAChJ;AAAA,IACF,CAAC,EAC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UACf;AAAA,UACC,WAAW,CAAC,WAAW,oBAAC,OAAE,WAAU,wBAAuB,2CAA6B;AAAA,UACxF,aAAa,oBAAC,OAAE,WAAU,0BAAyB,gDAAkC;AAAA,WACxF;AAAA,QACA,qBAAC,SAAI,WAAU,mBACb;AAAA,8BAAC,UAAO,SAAQ,SAAQ,WAAU,UAAS,SAAS,OAAO,oBAE3D;AAAA,UACA,oBAAC,UAAO,WAAU,UAAS,SAAS,MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eAAe,sBAEtH;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,oBAAC,qBAAkB,IAAQ,OAAM,sBAAqB,cAAa,gCAA0B,gBAAe,oBAC1G;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,kBAAkB;AAAA,QACvB,GAAG,gBAAgB,qBAAqB,EAAE,MAAM,kBAAkB,kBAAkB,IAAI,eAAe,OAAO,EAAE,CAAC;AAAA,QAClH,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,QAAQ,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IAChD,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const t = useT();\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().createIntent(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n {t(\"Transfer ownership\")}\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">{t(\"Transfer ownership of\")} {collectionName ?? t(\"collection\")}</DialogTitle>\n <DialogDescription className=\"sr-only\">{t(\"Transfer the on-chain owner of this collection. Existing tokens are unaffected.\")}</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel={t(\"Back\")}\n onSecondary={() => setConfirming(false)}\n primaryLabel={t(\"Transfer ownership\")}\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">{t(\"Transfer collection ownership\")}</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n {t(\"The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\")}\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">{t(\"New owner address\")}</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">{t(\"Not a valid Starknet address.\")}</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">{t(\"This is already the current owner.\")}</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n {t(\"Cancel\")}\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n {t(\"Continue\")}\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title={t(\"Transfer ownership\")} workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n {...successMessages.ownershipTransferred({ name: collectionName ?? \"the collection\", to: shortenAddress(trimmed) }, t)}\n txHash={tx.txHash}\n actions={[{ label: t(\"Done\"), onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";AAyDI,mBAEI,KADF,YADF;AAvDJ,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,cAAc;AACvB,SAAS,QAAQ,eAAe,mBA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0B,YAAE,oCAAoC,GAAE;AAAA,WAC/F;AAAA,QACA,qBAAC,SAAI,WAAU,mBACb;AAAA,8BAAC,UAAO,SAAQ,SAAQ,WAAU,UAAS,SAAS,OACjD,YAAE,QAAQ,GACb;AAAA,UACA,oBAAC,UAAO,WAAU,UAAS,SAAS,MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eACpG,YAAE,UAAU,GACf;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,oBAAC,qBAAkB,IAAQ,OAAO,EAAE,oBAAoB,GAAG,cAAa,gCAA0B,gBAAe,oBAC/G;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,kBAAkB;AAAA,QACvB,GAAG,gBAAgB,qBAAqB,EAAE,MAAM,kBAAkB,kBAAkB,IAAI,eAAe,OAAO,EAAE,GAAG,CAAC;AAAA,QACrH,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IACnD,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -46,6 +46,7 @@ var import_marketplace_dialog_primitives = require("./marketplace-dialog-primiti
46
46
  var import_transaction_dialog_states = require("./transaction-dialog-states.js");
47
47
  var import_use_transaction = require("../utils/use-transaction.js");
48
48
  var import_success_messages = require("../utils/success-messages.js");
49
+ var import_provider = require("../i18n/provider.js");
49
50
  const schema = z.object({
50
51
  toAddress: z.string().min(1, "Recipient address is required").regex(/^0x[0-9a-fA-F]{1,64}$/, "Must be a valid Starknet address (0x followed by hex characters)")
51
52
  });
@@ -64,6 +65,7 @@ function TransferDialog({
64
65
  onTransfer,
65
66
  onSuccess
66
67
  }) {
68
+ const t = (0, import_provider.useT)();
67
69
  const { phase, txHash, error, retryable = true, reset } = tx;
68
70
  const busy = (0, import_use_transaction.isBusyPhase)(phase);
69
71
  const [step, setStep] = (0, import_react.useState)("form");
@@ -92,7 +94,7 @@ function TransferDialog({
92
94
  if (walletAddress) {
93
95
  try {
94
96
  if (BigInt(values.toAddress) === BigInt(walletAddress)) {
95
- form.setError("toAddress", { message: "Cannot transfer to yourself" });
97
+ form.setError("toAddress", { message: t("Cannot transfer to yourself") });
96
98
  return;
97
99
  }
98
100
  } catch {
@@ -109,11 +111,8 @@ function TransferDialog({
109
111
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xs text-center text-muted-foreground", children: footerNote })
110
112
  ] });
111
113
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog, { open, onOpenChange: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent, { className: "max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl flex flex-col max-h-[92svh]", children: [
112
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogTitle, { className: "sr-only", children: [
113
- "Transfer ",
114
- displayName
115
- ] }),
116
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: "Enter a recipient Starknet address to transfer this asset onchain." }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogTitle, { className: "sr-only", children: t("Transfer {displayName}", { displayName }) }),
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: t("Enter a recipient Starknet address to transfer this asset onchain.") }),
117
116
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
118
117
  import_transaction_dialog_states.TransactionDialogStates,
119
118
  {
@@ -121,13 +120,13 @@ function TransferDialog({
121
120
  asset: { name: displayName, image: tokenImage },
122
121
  txHash,
123
122
  error,
124
- success: import_success_messages.successMessages.transferred({ name: displayName, to: recipientShort }),
125
- successActions: [{ label: "Done", onClick: () => {
123
+ success: import_success_messages.successMessages.transferred({ name: displayName, to: recipientShort }, t),
124
+ successActions: [{ label: t("Done"), onClick: () => {
126
125
  close();
127
126
  onSuccess?.();
128
127
  } }],
129
- errorTitle: "Transfer failed",
130
- errorDescription: "The transaction was submitted, but the transfer could not be completed.",
128
+ errorTitle: t("Transfer failed"),
129
+ errorDescription: t("The transaction was submitted, but the transfer could not be completed."),
131
130
  onRetry: retryable ? () => {
132
131
  reset();
133
132
  setStep("form");
@@ -154,14 +153,14 @@ function TransferDialog({
154
153
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
154
  import_marketplace_dialog_primitives.MarketplaceConfirmStep,
156
155
  {
157
- description: "Transfer this asset?",
156
+ description: t("Transfer this asset?"),
158
157
  error,
159
- secondaryLabel: "Back",
158
+ secondaryLabel: t("Back"),
160
159
  onSecondary: () => {
161
160
  reset();
162
161
  setStep("form");
163
162
  },
164
- primaryLabel: "Transfer",
163
+ primaryLabel: t("Transfer"),
165
164
  onPrimary: () => {
166
165
  if (pendingAddress) onTransfer(pendingAddress);
167
166
  },
@@ -173,11 +172,11 @@ function TransferDialog({
173
172
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-base leading-tight truncate", children: displayName }),
174
173
  hasActiveListing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_alert.Alert, { variant: "destructive", children: [
175
174
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertCircle, { className: "h-4 w-4" }),
176
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: "This token has an active listing. Cancelling the listing first keeps the sale from completing after the transfer." })
175
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: t("This token has an active listing. Cancelling the listing first keeps the sale from completing after the transfer.") })
177
176
  ] }),
178
177
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_alert.Alert, { children: [
179
178
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertCircle, { className: "h-4 w-4" }),
180
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: "Transfers are final and recorded onchain." })
179
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert.AlertDescription, { className: "text-xs", children: t("Transfers are final and recorded onchain.") })
181
180
  ] }),
182
181
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-3", children: [
183
182
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -186,7 +185,7 @@ function TransferDialog({
186
185
  control: form.control,
187
186
  name: "toAddress",
188
187
  render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
189
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Recipient address" }),
188
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Recipient address") }),
190
189
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: "0x\u2026", autoComplete: "off", spellCheck: false, ...field }) }),
191
190
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
192
191
  ] })
@@ -205,7 +204,7 @@ function TransferDialog({
205
204
  className: "w-full h-11 rounded-[11px] flex items-center justify-center gap-2 text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-transparent",
206
205
  children: [
207
206
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRightLeft, { className: "h-4 w-4" }),
208
- canTransfer ? "Transfer" : connectLabel
207
+ canTransfer ? t("Transfer") : connectLabel
209
208
  ]
210
209
  }
211
210
  ) }),