@medusajs/loyalty-plugin 0.0.1

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 (335) hide show
  1. package/.medusa/server/src/admin/components/action-menu.js +63 -0
  2. package/.medusa/server/src/admin/components/chip-group.js +82 -0
  3. package/.medusa/server/src/admin/components/chip-input.js +157 -0
  4. package/.medusa/server/src/admin/components/combobox.js +324 -0
  5. package/.medusa/server/src/admin/components/conditional-tooltip.js +15 -0
  6. package/.medusa/server/src/admin/components/data-grid/components/data-grid-boolean-cell.js +66 -0
  7. package/.medusa/server/src/admin/components/data-grid/components/data-grid-cell-container.js +77 -0
  8. package/.medusa/server/src/admin/components/data-grid/components/data-grid-currency-cell.js +110 -0
  9. package/.medusa/server/src/admin/components/data-grid/components/data-grid-duplicate-cell.js +16 -0
  10. package/.medusa/server/src/admin/components/data-grid/components/data-grid-keyboard-shortcut-modal.js +214 -0
  11. package/.medusa/server/src/admin/components/data-grid/components/data-grid-number-cell.js +77 -0
  12. package/.medusa/server/src/admin/components/data-grid/components/data-grid-readonly-cell.js +32 -0
  13. package/.medusa/server/src/admin/components/data-grid/components/data-grid-root.js +743 -0
  14. package/.medusa/server/src/admin/components/data-grid/components/data-grid-row-error-indicator.js +37 -0
  15. package/.medusa/server/src/admin/components/data-grid/components/data-grid-skeleton.js +54 -0
  16. package/.medusa/server/src/admin/components/data-grid/components/data-grid-text-cell.js +66 -0
  17. package/.medusa/server/src/admin/components/data-grid/components/data-grid-toggleable-number-cell.js +166 -0
  18. package/.medusa/server/src/admin/components/data-grid/components/index.js +16 -0
  19. package/.medusa/server/src/admin/components/data-grid/context/data-grid-context.js +7 -0
  20. package/.medusa/server/src/admin/components/data-grid/context/index.js +6 -0
  21. package/.medusa/server/src/admin/components/data-grid/context/use-data-grid-context.js +14 -0
  22. package/.medusa/server/src/admin/components/data-grid/data-grid.js +31 -0
  23. package/.medusa/server/src/admin/components/data-grid/helpers/create-data-grid-column-helper.js +28 -0
  24. package/.medusa/server/src/admin/components/data-grid/helpers/create-data-grid-price-columns.js +85 -0
  25. package/.medusa/server/src/admin/components/data-grid/helpers/index.js +6 -0
  26. package/.medusa/server/src/admin/components/data-grid/hooks/index.js +31 -0
  27. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-cell-error.js +50 -0
  28. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-cell-handlers.js +123 -0
  29. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-cell-metadata.js +52 -0
  30. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-cell-snapshot.js +43 -0
  31. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-cell.js +191 -0
  32. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-clipboard-events.js +70 -0
  33. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-column-visibility.js +51 -0
  34. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-duplicate-cell.js +15 -0
  35. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-error-highlighting.js +86 -0
  36. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-form-handlers.js +149 -0
  37. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-keydown-event.js +482 -0
  38. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-mouse-up-event.js +64 -0
  39. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-navigation.js +81 -0
  40. package/.medusa/server/src/admin/components/data-grid/hooks/use-data-grid-query-tool.js +14 -0
  41. package/.medusa/server/src/admin/components/data-grid/index.js +8 -0
  42. package/.medusa/server/src/admin/components/data-grid/models/data-grid-bulk-update-command.js +27 -0
  43. package/.medusa/server/src/admin/components/data-grid/models/data-grid-matrix.js +296 -0
  44. package/.medusa/server/src/admin/components/data-grid/models/data-grid-query-tool.js +62 -0
  45. package/.medusa/server/src/admin/components/data-grid/models/data-grid-update-command.js +25 -0
  46. package/.medusa/server/src/admin/components/data-grid/models/index.js +10 -0
  47. package/.medusa/server/src/admin/components/data-grid/types.js +1 -0
  48. package/.medusa/server/src/admin/components/data-grid/utils.js +18 -0
  49. package/.medusa/server/src/admin/components/data-table/components/data-table-status-cell/data-table-status-cell.js +36 -0
  50. package/.medusa/server/src/admin/components/data-table/data-table.js +271 -0
  51. package/.medusa/server/src/admin/components/data-table/helpers/general/use-data-table-date-columns.js +51 -0
  52. package/.medusa/server/src/admin/components/data-table/helpers/general/use-data-table-date-filters.js +90 -0
  53. package/.medusa/server/src/admin/components/data-table/helpers/sales-channels/index.js +10 -0
  54. package/.medusa/server/src/admin/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.js +48 -0
  55. package/.medusa/server/src/admin/components/data-table/helpers/sales-channels/use-sales-channel-table-empty-state.js +19 -0
  56. package/.medusa/server/src/admin/components/data-table/helpers/sales-channels/use-sales-channel-table-filters.js +30 -0
  57. package/.medusa/server/src/admin/components/data-table/helpers/sales-channels/use-sales-channel-table-query.js +23 -0
  58. package/.medusa/server/src/admin/components/data-table/index.js +4 -0
  59. package/.medusa/server/src/admin/components/data-table.js +249 -0
  60. package/.medusa/server/src/admin/components/display-id.js +18 -0
  61. package/.medusa/server/src/admin/components/file-upload.js +116 -0
  62. package/.medusa/server/src/admin/components/form.js +151 -0
  63. package/.medusa/server/src/admin/components/handle-input.js +22 -0
  64. package/.medusa/server/src/admin/components/header.js +41 -0
  65. package/.medusa/server/src/admin/components/icon-avatar.js +27 -0
  66. package/.medusa/server/src/admin/components/json-view-section.js +139 -0
  67. package/.medusa/server/src/admin/components/keybound-form.js +32 -0
  68. package/.medusa/server/src/admin/components/layouts/single-column.js +7 -0
  69. package/.medusa/server/src/admin/components/layouts/two-column.js +13 -0
  70. package/.medusa/server/src/admin/components/listicle.js +20 -0
  71. package/.medusa/server/src/admin/components/modals/index.js +19 -0
  72. package/.medusa/server/src/admin/components/modals/route-drawer/index.js +4 -0
  73. package/.medusa/server/src/admin/components/modals/route-drawer/route-drawer.js +57 -0
  74. package/.medusa/server/src/admin/components/modals/route-focus-modal/index.js +4 -0
  75. package/.medusa/server/src/admin/components/modals/route-focus-modal/route-focus-modal.js +71 -0
  76. package/.medusa/server/src/admin/components/modals/route-modal-form/index.js +4 -0
  77. package/.medusa/server/src/admin/components/modals/route-modal-form/route-modal-form.js +60 -0
  78. package/.medusa/server/src/admin/components/modals/route-modal-provider/index.js +6 -0
  79. package/.medusa/server/src/admin/components/modals/route-modal-provider/route-modal-context.js +5 -0
  80. package/.medusa/server/src/admin/components/modals/route-modal-provider/route-provider.js +30 -0
  81. package/.medusa/server/src/admin/components/modals/route-modal-provider/use-route-modal.js +12 -0
  82. package/.medusa/server/src/admin/components/modals/stacked-drawer/index.js +5 -0
  83. package/.medusa/server/src/admin/components/modals/stacked-drawer/stacked-drawer.js +55 -0
  84. package/.medusa/server/src/admin/components/modals/stacked-focus-modal/index.js +5 -0
  85. package/.medusa/server/src/admin/components/modals/stacked-focus-modal/stacked-focus-modal.js +63 -0
  86. package/.medusa/server/src/admin/components/modals/stacked-modal-provider/index.js +6 -0
  87. package/.medusa/server/src/admin/components/modals/stacked-modal-provider/stacked-modal-context.js +5 -0
  88. package/.medusa/server/src/admin/components/modals/stacked-modal-provider/stacked-modal-provider.js +47 -0
  89. package/.medusa/server/src/admin/components/modals/stacked-modal-provider/use-stacked-modal.js +14 -0
  90. package/.medusa/server/src/admin/components/placeholder-cell.js +7 -0
  91. package/.medusa/server/src/admin/components/product/product-cell/index.js +5 -0
  92. package/.medusa/server/src/admin/components/product/product-cell/product-cell.js +15 -0
  93. package/.medusa/server/src/admin/components/product/product-status-cell/index.js +5 -0
  94. package/.medusa/server/src/admin/components/product/product-status-cell/product-status-cell.js +18 -0
  95. package/.medusa/server/src/admin/components/product/sales-channels-cell/index.js +5 -0
  96. package/.medusa/server/src/admin/components/product/sales-channels-cell/sales-channels-cell.js +31 -0
  97. package/.medusa/server/src/admin/components/product/variant-cell/index.js +5 -0
  98. package/.medusa/server/src/admin/components/product/variant-cell/variant-cell.js +15 -0
  99. package/.medusa/server/src/admin/components/section-row.js +32 -0
  100. package/.medusa/server/src/admin/components/sidebar-link.js +31 -0
  101. package/.medusa/server/src/admin/components/sortable-list.js +152 -0
  102. package/.medusa/server/src/admin/components/switch-box.js +43 -0
  103. package/.medusa/server/src/admin/components/tax-badge.js +18 -0
  104. package/.medusa/server/src/admin/components/thumbnail.js +28 -0
  105. package/.medusa/server/src/admin/components/upload-media-form-item.js +83 -0
  106. package/.medusa/server/src/admin/hooks/api/customers.js +26 -0
  107. package/.medusa/server/src/admin/hooks/api/gift-cards.js +107 -0
  108. package/.medusa/server/src/admin/hooks/api/order.js +16 -0
  109. package/.medusa/server/src/admin/hooks/api/price-preferences.js +19 -0
  110. package/.medusa/server/src/admin/hooks/api/products.js +127 -0
  111. package/.medusa/server/src/admin/hooks/api/regions.js +17 -0
  112. package/.medusa/server/src/admin/hooks/api/sales-channels.js +28 -0
  113. package/.medusa/server/src/admin/hooks/api/store-credit-accounts.js +41 -0
  114. package/.medusa/server/src/admin/hooks/api/store.js +31 -0
  115. package/.medusa/server/src/admin/hooks/api/transaction-groups.js +23 -0
  116. package/.medusa/server/src/admin/hooks/api/transactions.js +23 -0
  117. package/.medusa/server/src/admin/hooks/commands/use-command-history.js +45 -0
  118. package/.medusa/server/src/admin/hooks/common/use-combobox-data.js +59 -0
  119. package/.medusa/server/src/admin/hooks/common/use-data-table-date-filters.js +89 -0
  120. package/.medusa/server/src/admin/hooks/common/use-date.js +32 -0
  121. package/.medusa/server/src/admin/hooks/common/use-debounced-search.js +22 -0
  122. package/.medusa/server/src/admin/hooks/common/use-query-params.js +14 -0
  123. package/.medusa/server/src/admin/hooks/query/use-customers-filters.js +30 -0
  124. package/.medusa/server/src/admin/hooks/query/use-transaction-groups-filters.js +30 -0
  125. package/.medusa/server/src/admin/hooks/sales-channels/index.js +10 -0
  126. package/.medusa/server/src/admin/hooks/sales-channels/use-sales-channel-table-columns.js +48 -0
  127. package/.medusa/server/src/admin/hooks/sales-channels/use-sales-channel-table-empty-state.js +19 -0
  128. package/.medusa/server/src/admin/hooks/sales-channels/use-sales-channel-table-filters.js +30 -0
  129. package/.medusa/server/src/admin/hooks/sales-channels/use-sales-channel-table-query.js +23 -0
  130. package/.medusa/server/src/admin/lib/currencies.js +729 -0
  131. package/.medusa/server/src/admin/lib/query-key.js +17 -0
  132. package/.medusa/server/src/admin/lib/sdk.js +10 -0
  133. package/.medusa/server/src/admin/routes/gift-card-products/@create/page.js +75 -0
  134. package/.medusa/server/src/admin/routes/gift-card-products/_id_/@denominations/components/gift-card-product-edit-denominations-form.js +172 -0
  135. package/.medusa/server/src/admin/routes/gift-card-products/_id_/@denominations/page.js +30 -0
  136. package/.medusa/server/src/admin/routes/gift-card-products/_id_/@edit/components/gift-card-product-edit-form.js +180 -0
  137. package/.medusa/server/src/admin/routes/gift-card-products/_id_/@edit/page.js +30 -0
  138. package/.medusa/server/src/admin/routes/gift-card-products/_id_/components/product-general-section.js +97 -0
  139. package/.medusa/server/src/admin/routes/gift-card-products/_id_/components/product-media-section.js +162 -0
  140. package/.medusa/server/src/admin/routes/gift-card-products/_id_/components/product-sales-channel-section.js +89 -0
  141. package/.medusa/server/src/admin/routes/gift-card-products/_id_/components/product-variant-section.js +199 -0
  142. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/edit-product-media-form/edit-product-media-form.js +353 -0
  143. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/edit-product-media-form/index.js +5 -0
  144. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-gallery/index.js +4 -0
  145. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-gallery/product-media-gallery.js +247 -0
  146. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-view/index.js +4 -0
  147. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-view/product-media-view-context.js +5 -0
  148. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-view/product-media-view.js +48 -0
  149. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/components/product-media-view/use-product-media-view.js +14 -0
  150. package/.medusa/server/src/admin/routes/gift-card-products/_id_/media/page.js +28 -0
  151. package/.medusa/server/src/admin/routes/gift-card-products/_id_/page.js +40 -0
  152. package/.medusa/server/src/admin/routes/gift-card-products/_id_/prices/components/prices-edit.js +121 -0
  153. package/.medusa/server/src/admin/routes/gift-card-products/_id_/prices/components/variant-pricing-form.js +72 -0
  154. package/.medusa/server/src/admin/routes/gift-card-products/_id_/prices/page.js +23 -0
  155. package/.medusa/server/src/admin/routes/gift-card-products/_id_/sales-channels/components/edit-sales-channel-form.js +123 -0
  156. package/.medusa/server/src/admin/routes/gift-card-products/_id_/sales-channels/page.js +23 -0
  157. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/general-form-section.js +1 -0
  158. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-denominations-form.js +98 -0
  159. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-details-form.js +28 -0
  160. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form-denominations.js +96 -0
  161. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form-general.js +90 -0
  162. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form-media.js +288 -0
  163. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form-organize-section.js +111 -0
  164. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form-organize.js +23 -0
  165. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-create-form.js +285 -0
  166. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/gift-card-product-sales-channel-stacked-modal.js +124 -0
  167. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/index.js +4 -0
  168. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/schema.js +112 -0
  169. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-product-create-form/types.js +1 -0
  170. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-products-table/columns.js +35 -0
  171. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-products-table/filters.js +11 -0
  172. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-products-table/gift-card-products-table.js +61 -0
  173. package/.medusa/server/src/admin/routes/gift-card-products/components/gift-card-products-table/query.js +23 -0
  174. package/.medusa/server/src/admin/routes/gift-card-products/page.js +18 -0
  175. package/.medusa/server/src/admin/routes/gift-cards/_id_/@expiration/page.js +137 -0
  176. package/.medusa/server/src/admin/routes/gift-cards/_id_/@note/page.js +87 -0
  177. package/.medusa/server/src/admin/routes/gift-cards/_id_/@owner/components/transfer-icon.js +352 -0
  178. package/.medusa/server/src/admin/routes/gift-cards/_id_/@owner/page.js +116 -0
  179. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-balance-section.js +49 -0
  180. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-general-section.js +177 -0
  181. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-note-section.js +27 -0
  182. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-order-section.js +33 -0
  183. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-owner-section.js +33 -0
  184. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/gift-card-transactions-section.js +18 -0
  185. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/transactions-table/columns.js +50 -0
  186. package/.medusa/server/src/admin/routes/gift-cards/_id_/components/transactions-table/query.js +23 -0
  187. package/.medusa/server/src/admin/routes/gift-cards/_id_/page.js +78 -0
  188. package/.medusa/server/src/admin/routes/gift-cards/components/gift-card-products-section.js +40 -0
  189. package/.medusa/server/src/admin/routes/gift-cards/components/gift-cards-table/columns.js +57 -0
  190. package/.medusa/server/src/admin/routes/gift-cards/components/gift-cards-table/filters.js +13 -0
  191. package/.medusa/server/src/admin/routes/gift-cards/components/gift-cards-table/gift-cards-table.js +61 -0
  192. package/.medusa/server/src/admin/routes/gift-cards/components/gift-cards-table/query.js +23 -0
  193. package/.medusa/server/src/admin/routes/gift-cards/page.js +27 -0
  194. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/credit-card-icon.js +126 -0
  195. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/store-credit-account-balance-section.js +31 -0
  196. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/store-credit-account-details-section.js +43 -0
  197. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/transactions-table/columns.js +44 -0
  198. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/transactions-table/filters.js +18 -0
  199. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/transactions-table/query.js +37 -0
  200. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/components/transactions-table/table.js +58 -0
  201. package/.medusa/server/src/admin/routes/store-credit-accounts/_id_/page.js +39 -0
  202. package/.medusa/server/src/admin/routes/store-credit-accounts/components/store-credit-accounts-table/columns.js +58 -0
  203. package/.medusa/server/src/admin/routes/store-credit-accounts/components/store-credit-accounts-table/filters.js +13 -0
  204. package/.medusa/server/src/admin/routes/store-credit-accounts/components/store-credit-accounts-table/query.js +31 -0
  205. package/.medusa/server/src/admin/routes/store-credit-accounts/components/store-credit-accounts-table/table.js +56 -0
  206. package/.medusa/server/src/admin/routes/store-credit-accounts/page.js +19 -0
  207. package/.medusa/server/src/admin/utils/date-utils.js +27 -0
  208. package/.medusa/server/src/admin/utils/format-amount.js +9 -0
  209. package/.medusa/server/src/admin/utils/format-date.js +21 -0
  210. package/.medusa/server/src/admin/utils/refs.js +20 -0
  211. package/.medusa/server/src/admin/utils/statuses.js +23 -0
  212. package/.medusa/server/src/admin/utils/validations.js +71 -0
  213. package/.medusa/server/src/admin/utils/variants.js +92 -0
  214. package/.medusa/server/src/admin/widgets/customer-gift-cards-widget.js +67 -0
  215. package/.medusa/server/src/admin/widgets/customer-store-credit-widget.js +42 -0
  216. package/.medusa/server/src/admin/widgets/order-gift-cards-widget.js +58 -0
  217. package/.medusa/server/src/api/admin/gift-cards/[id]/redeem/route.js +25 -0
  218. package/.medusa/server/src/api/admin/gift-cards/[id]/route.js +41 -0
  219. package/.medusa/server/src/api/admin/gift-cards/[id]/transfer/route.js +24 -0
  220. package/.medusa/server/src/api/admin/gift-cards/middlewares.js +55 -0
  221. package/.medusa/server/src/api/admin/gift-cards/query-config.js +29 -0
  222. package/.medusa/server/src/api/admin/gift-cards/route.js +42 -0
  223. package/.medusa/server/src/api/admin/gift-cards/validators.js +69 -0
  224. package/.medusa/server/src/api/admin/store-credit-accounts/[id]/route.js +24 -0
  225. package/.medusa/server/src/api/admin/store-credit-accounts/[id]/transactions/route.js +23 -0
  226. package/.medusa/server/src/api/admin/store-credit-accounts/middlewares.js +38 -0
  227. package/.medusa/server/src/api/admin/store-credit-accounts/query-config.js +43 -0
  228. package/.medusa/server/src/api/admin/store-credit-accounts/route.js +52 -0
  229. package/.medusa/server/src/api/admin/store-credit-accounts/validators.js +51 -0
  230. package/.medusa/server/src/api/admin/transaction-groups/middlewares.js +16 -0
  231. package/.medusa/server/src/api/admin/transaction-groups/query-config.js +13 -0
  232. package/.medusa/server/src/api/admin/transaction-groups/route.js +27 -0
  233. package/.medusa/server/src/api/admin/transaction-groups/validators.js +19 -0
  234. package/.medusa/server/src/api/middlewares.js +22 -0
  235. package/.medusa/server/src/api/store/carts/[id]/gift-cards/route.js +43 -0
  236. package/.medusa/server/src/api/store/carts/middlewares.js +26 -0
  237. package/.medusa/server/src/api/store/carts/query-config.js +9 -0
  238. package/.medusa/server/src/api/store/carts/validators.js +15 -0
  239. package/.medusa/server/src/api/store/gift-card-invitations/[code]/accept/route.js +24 -0
  240. package/.medusa/server/src/api/store/gift-card-invitations/[code]/reject/route.js +24 -0
  241. package/.medusa/server/src/api/store/gift-card-invitations/middlewares.js +30 -0
  242. package/.medusa/server/src/api/store/gift-card-invitations/query-config.js +17 -0
  243. package/.medusa/server/src/api/store/gift-card-invitations/validators.js +14 -0
  244. package/.medusa/server/src/api/store/gift-cards/[id]/invitation/route.js +26 -0
  245. package/.medusa/server/src/api/store/gift-cards/[id]/redeem/route.js +24 -0
  246. package/.medusa/server/src/api/store/gift-cards/[id]/route.js +16 -0
  247. package/.medusa/server/src/api/store/gift-cards/middlewares.js +46 -0
  248. package/.medusa/server/src/api/store/gift-cards/query-config.js +26 -0
  249. package/.medusa/server/src/api/store/gift-cards/route.js +28 -0
  250. package/.medusa/server/src/api/store/gift-cards/validators.js +26 -0
  251. package/.medusa/server/src/api/store/store-credit-accounts/[id]/route.js +31 -0
  252. package/.medusa/server/src/api/store/store-credit-accounts/middlewares.js +28 -0
  253. package/.medusa/server/src/api/store/store-credit-accounts/query-config.js +24 -0
  254. package/.medusa/server/src/api/store/store-credit-accounts/route.js +40 -0
  255. package/.medusa/server/src/api/store/store-credit-accounts/validators.js +17 -0
  256. package/.medusa/server/src/links/cart-gift-cards-link.js +13 -0
  257. package/.medusa/server/src/links/customer-gift-card-link.js +13 -0
  258. package/.medusa/server/src/links/customer-store-credit-account-link.js +13 -0
  259. package/.medusa/server/src/links/order-gift-cards-link.js +13 -0
  260. package/.medusa/server/src/links/order-line-item-gift-card-link.js +19 -0
  261. package/.medusa/server/src/modules/loyalty/index.js +12 -0
  262. package/.medusa/server/src/modules/loyalty/migrations/Migration20250123130553.js +17 -0
  263. package/.medusa/server/src/modules/loyalty/migrations/Migration20250127174331.js +19 -0
  264. package/.medusa/server/src/modules/loyalty/migrations/Migration20250206141026.js +19 -0
  265. package/.medusa/server/src/modules/loyalty/migrations/Migration20250206141429.js +14 -0
  266. package/.medusa/server/src/modules/loyalty/migrations/Migration20250206144714.js +14 -0
  267. package/.medusa/server/src/modules/loyalty/models/gift-card-invitation.js +20 -0
  268. package/.medusa/server/src/modules/loyalty/models/gift-card.js +28 -0
  269. package/.medusa/server/src/modules/loyalty/service.js +15 -0
  270. package/.medusa/server/src/modules/store-credit/index.js +12 -0
  271. package/.medusa/server/src/modules/store-credit/migrations/Migration20250129115518.js +16 -0
  272. package/.medusa/server/src/modules/store-credit/migrations/Migration20250130213237.js +18 -0
  273. package/.medusa/server/src/modules/store-credit/migrations/Migration20250130220640.js +19 -0
  274. package/.medusa/server/src/modules/store-credit/migrations/Migration20250131205753.js +14 -0
  275. package/.medusa/server/src/modules/store-credit/models/account-transaction.js +27 -0
  276. package/.medusa/server/src/modules/store-credit/models/store-credit-account.js +29 -0
  277. package/.medusa/server/src/modules/store-credit/models/transaction-group.js +28 -0
  278. package/.medusa/server/src/modules/store-credit/service.js +412 -0
  279. package/.medusa/server/src/providers/index.js +12 -0
  280. package/.medusa/server/src/providers/store-credit-payment/index.js +12 -0
  281. package/.medusa/server/src/providers/store-credit-payment/service.js +181 -0
  282. package/.medusa/server/src/subscribers/create-gift-card.js +94 -0
  283. package/.medusa/server/src/types/cart/index.js +3 -0
  284. package/.medusa/server/src/types/http/gift-card.js +3 -0
  285. package/.medusa/server/src/types/http/index.js +21 -0
  286. package/.medusa/server/src/types/http/store-credit-account.js +3 -0
  287. package/.medusa/server/src/types/http/transaction-group.js +3 -0
  288. package/.medusa/server/src/types/http/transaction.js +3 -0
  289. package/.medusa/server/src/types/index.js +21 -0
  290. package/.medusa/server/src/types/loyalty/index.js +20 -0
  291. package/.medusa/server/src/types/loyalty/module.js +17 -0
  292. package/.medusa/server/src/types/loyalty/service.js +3 -0
  293. package/.medusa/server/src/types/loyalty/workflows.js +3 -0
  294. package/.medusa/server/src/types/modules.js +14 -0
  295. package/.medusa/server/src/types/store-credit/index.js +19 -0
  296. package/.medusa/server/src/types/store-credit/module.js +10 -0
  297. package/.medusa/server/src/types/store-credit/service.js +3 -0
  298. package/.medusa/server/src/workflows/carts/workflows/add-gift-card-to-cart.js +167 -0
  299. package/.medusa/server/src/workflows/carts/workflows/confirm-cart-credit-lines.js +95 -0
  300. package/.medusa/server/src/workflows/carts/workflows/refresh-cart-gift-cards.js +136 -0
  301. package/.medusa/server/src/workflows/carts/workflows/remove-gift-cart-from-cart.js +66 -0
  302. package/.medusa/server/src/workflows/common/steps/validate-presence-of.js +11 -0
  303. package/.medusa/server/src/workflows/gift-card-invitation/steps/create-gift-card-invitation.js +17 -0
  304. package/.medusa/server/src/workflows/gift-card-invitation/steps/delete-gift-card-invitation.js +20 -0
  305. package/.medusa/server/src/workflows/gift-card-invitation/steps/update-gift-card-invitation.js +31 -0
  306. package/.medusa/server/src/workflows/gift-card-invitation/workflows/accept-gift-card-invitation.js +79 -0
  307. package/.medusa/server/src/workflows/gift-card-invitation/workflows/create-gift-card-invitation.js +66 -0
  308. package/.medusa/server/src/workflows/gift-card-invitation/workflows/delete-gift-card-invitation.js +10 -0
  309. package/.medusa/server/src/workflows/gift-card-invitation/workflows/reject-gift-card-invitation.js +70 -0
  310. package/.medusa/server/src/workflows/gift-cards/steps/create-gift-cards.js +17 -0
  311. package/.medusa/server/src/workflows/gift-cards/steps/delete-gift-cards.js +17 -0
  312. package/.medusa/server/src/workflows/gift-cards/steps/retrieve-gift-card-balance.js +20 -0
  313. package/.medusa/server/src/workflows/gift-cards/steps/update-gift-cards.js +34 -0
  314. package/.medusa/server/src/workflows/gift-cards/workflows/create-gift-cards.js +12 -0
  315. package/.medusa/server/src/workflows/gift-cards/workflows/delete-gift-card.js +19 -0
  316. package/.medusa/server/src/workflows/gift-cards/workflows/redeem-gift-card.js +90 -0
  317. package/.medusa/server/src/workflows/gift-cards/workflows/transfer-gift-card.js +48 -0
  318. package/.medusa/server/src/workflows/gift-cards/workflows/update-gift-cards.js +12 -0
  319. package/.medusa/server/src/workflows/hooks/after-order-created.js +31 -0
  320. package/.medusa/server/src/workflows/hooks/after-order-credit-lines-created.js +31 -0
  321. package/.medusa/server/src/workflows/hooks/before-payment-collection-refresh.js +26 -0
  322. package/.medusa/server/src/workflows/hooks/complete-cart-before-payment-authorization.js +27 -0
  323. package/.medusa/server/src/workflows/orders/workflows/link-gift-cards-to-order.js +58 -0
  324. package/.medusa/server/src/workflows/orders/workflows/refund-gift-card-credit-lines.js +96 -0
  325. package/.medusa/server/src/workflows/store-credit/steps/create-store-credit-accounts.js +17 -0
  326. package/.medusa/server/src/workflows/store-credit/steps/create-transaction-groups.js +17 -0
  327. package/.medusa/server/src/workflows/store-credit/steps/credit-account.js +17 -0
  328. package/.medusa/server/src/workflows/store-credit/steps/debit-account.js +17 -0
  329. package/.medusa/server/src/workflows/store-credit/workflows/create-store-credit-accounts.js +57 -0
  330. package/.medusa/server/src/workflows/store-credit/workflows/create-transaction-groups.js +12 -0
  331. package/.medusa/server/src/workflows/store-credit/workflows/credit-accounts.js +12 -0
  332. package/.medusa/server/src/workflows/store-credit/workflows/debit-accounts.js +12 -0
  333. package/.medusa/server/types/loyalty/module.js +8 -0
  334. package/README.md +62 -0
  335. package/package.json +94 -0
@@ -0,0 +1,137 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { zodResolver } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
3
+ import { Heading, toast, RadioGroup, clx, DatePicker, Button } from "@medusajs/ui";
4
+ import { useState } from "react";
5
+ import { useForm } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/react-hook-form/dist/index.esm.mjs";
6
+ import { useParams } from "react-router-dom";
7
+ import { z } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/zod/lib/index.mjs";
8
+ import { Form } from "../../../../components/form.js";
9
+ import { KeyboundForm } from "../../../../components/keybound-form.js";
10
+ import { RouteDrawer } from "../../../../components/modals/route-drawer/route-drawer.js";
11
+ import "../../../../components/modals/route-focus-modal/route-focus-modal.js";
12
+ import "../../../../components/modals/route-modal-provider/route-modal-context.js";
13
+ import { useRouteModal } from "../../../../components/modals/route-modal-provider/use-route-modal.js";
14
+ import "../../../../components/modals/stacked-drawer/stacked-drawer.js";
15
+ import "../../../../components/modals/stacked-focus-modal/stacked-focus-modal.js";
16
+ import "../../../../components/modals/stacked-modal-provider/stacked-modal-context.js";
17
+ import { useGiftCard, useUpdateGiftCard } from "../../../../hooks/api/gift-cards.js";
18
+ const GiftCardExpiration = () => {
19
+ const { id } = useParams();
20
+ const {
21
+ gift_card: giftCard,
22
+ isPending,
23
+ isError,
24
+ error
25
+ } = useGiftCard(id, {});
26
+ if (isError) {
27
+ throw error;
28
+ }
29
+ const isReady = !isPending && !!giftCard;
30
+ return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
31
+ /* @__PURE__ */ jsxs(RouteDrawer.Header, { children: [
32
+ /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit expiration date" }) }),
33
+ /* @__PURE__ */ jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Edit the expiration date for the gift card" }) })
34
+ ] }),
35
+ isReady && /* @__PURE__ */ jsx(GiftCardExpirationForm, { giftCard })
36
+ ] });
37
+ };
38
+ const GiftCardExpirationForm = ({ giftCard }) => {
39
+ const form = useForm({
40
+ defaultValues: {
41
+ expires_at: giftCard.expires_at ? new Date(giftCard.expires_at) : null
42
+ },
43
+ resolver: zodResolver(schema)
44
+ });
45
+ const { mutateAsync, isPending } = useUpdateGiftCard(giftCard.id);
46
+ const { handleSuccess } = useRouteModal();
47
+ const [isSettingExpiration, setIsSettingExpiration] = useState(
48
+ !!giftCard.expires_at
49
+ );
50
+ const onSubmit = form.handleSubmit(async (data) => {
51
+ var _a;
52
+ await mutateAsync(
53
+ {
54
+ expires_at: isSettingExpiration ? (_a = data.expires_at) == null ? void 0 : _a.toISOString() : null
55
+ },
56
+ {
57
+ onSuccess: () => {
58
+ handleSuccess();
59
+ },
60
+ onError: (error) => {
61
+ toast.error(error.message);
62
+ }
63
+ }
64
+ );
65
+ });
66
+ return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
67
+ KeyboundForm,
68
+ {
69
+ className: "flex flex-1 flex-col overflow-hidden",
70
+ onSubmit,
71
+ children: [
72
+ /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: [
73
+ /* @__PURE__ */ jsxs(
74
+ RadioGroup,
75
+ {
76
+ className: "flex flex-col gap-y-3",
77
+ value: isSettingExpiration.toString(),
78
+ onValueChange: (value) => setIsSettingExpiration(value === "true"),
79
+ children: [
80
+ /* @__PURE__ */ jsx(
81
+ RadioGroup.ChoiceBox,
82
+ {
83
+ value: "false",
84
+ description: "",
85
+ label: "No expiration date",
86
+ className: clx("basis-1/2")
87
+ }
88
+ ),
89
+ /* @__PURE__ */ jsx(
90
+ RadioGroup.ChoiceBox,
91
+ {
92
+ value: "true",
93
+ label: "Set expiration date",
94
+ description: "",
95
+ className: clx("basis-1/2")
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ ),
101
+ isSettingExpiration && /* @__PURE__ */ jsx(
102
+ Form.Field,
103
+ {
104
+ control: form.control,
105
+ name: "expires_at",
106
+ render: ({ field }) => {
107
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
108
+ /* @__PURE__ */ jsx(Form.Label, { children: "Expiration date" }),
109
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
110
+ DatePicker,
111
+ {
112
+ granularity: "minute",
113
+ hourCycle: 12,
114
+ shouldCloseOnSelect: false,
115
+ ...field
116
+ }
117
+ ) }),
118
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
119
+ ] });
120
+ }
121
+ }
122
+ )
123
+ ] }),
124
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
125
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
126
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
127
+ ] }) })
128
+ ]
129
+ }
130
+ ) });
131
+ };
132
+ const schema = z.object({
133
+ expires_at: z.date().nullish()
134
+ });
135
+ export {
136
+ GiftCardExpiration as default
137
+ };
@@ -0,0 +1,87 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { zodResolver } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
3
+ import { Heading, toast, Textarea, Button } from "@medusajs/ui";
4
+ import { useForm } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/react-hook-form/dist/index.esm.mjs";
5
+ import { useParams } from "react-router-dom";
6
+ import { z } from "/Users/oliverjuhl/Desktop/medusa/loyalty-plugin/node_modules/zod/lib/index.mjs";
7
+ import { Form } from "../../../../components/form.js";
8
+ import { KeyboundForm } from "../../../../components/keybound-form.js";
9
+ import { RouteDrawer } from "../../../../components/modals/route-drawer/route-drawer.js";
10
+ import "../../../../components/modals/route-focus-modal/route-focus-modal.js";
11
+ import "react";
12
+ import "../../../../components/modals/route-modal-provider/route-modal-context.js";
13
+ import { useRouteModal } from "../../../../components/modals/route-modal-provider/use-route-modal.js";
14
+ import "../../../../components/modals/stacked-drawer/stacked-drawer.js";
15
+ import "../../../../components/modals/stacked-focus-modal/stacked-focus-modal.js";
16
+ import "../../../../components/modals/stacked-modal-provider/stacked-modal-context.js";
17
+ import { useGiftCard, useUpdateGiftCard } from "../../../../hooks/api/gift-cards.js";
18
+ const Note = () => {
19
+ const { id } = useParams();
20
+ const {
21
+ gift_card: giftCard,
22
+ isPending,
23
+ isError,
24
+ error
25
+ } = useGiftCard(id, {});
26
+ if (isError) {
27
+ throw error;
28
+ }
29
+ const isReady = !isPending && !!giftCard;
30
+ return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
31
+ /* @__PURE__ */ jsxs(RouteDrawer.Header, { children: [
32
+ /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit note" }) }),
33
+ /* @__PURE__ */ jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Edit the note for the gift card" }) })
34
+ ] }),
35
+ isReady && /* @__PURE__ */ jsx(GiftCardNoteForm, { giftCard })
36
+ ] });
37
+ };
38
+ const GiftCardNoteForm = ({ giftCard }) => {
39
+ const form = useForm({
40
+ defaultValues: {
41
+ note: giftCard.note ?? ""
42
+ },
43
+ resolver: zodResolver(schema)
44
+ });
45
+ const { mutateAsync, isPending } = useUpdateGiftCard(giftCard.id);
46
+ const { handleSuccess } = useRouteModal();
47
+ const onSubmit = form.handleSubmit(async (data) => {
48
+ await mutateAsync(
49
+ { note: data.note },
50
+ {
51
+ onSuccess: () => handleSuccess(),
52
+ onError: (error) => toast.error(error.message)
53
+ }
54
+ );
55
+ });
56
+ return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
57
+ KeyboundForm,
58
+ {
59
+ className: "flex flex-1 flex-col overflow-hidden",
60
+ onSubmit,
61
+ children: [
62
+ /* @__PURE__ */ jsx(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: /* @__PURE__ */ jsx(
63
+ Form.Field,
64
+ {
65
+ control: form.control,
66
+ name: "note",
67
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
68
+ /* @__PURE__ */ jsx(Form.Label, { children: "Note" }),
69
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Textarea, { ...field }) }),
70
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
71
+ ] })
72
+ }
73
+ ) }),
74
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
75
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
76
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
77
+ ] }) })
78
+ ]
79
+ }
80
+ ) });
81
+ };
82
+ const schema = z.object({
83
+ note: z.string().optional()
84
+ });
85
+ export {
86
+ Note as default
87
+ };
@@ -0,0 +1,352 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ const TransferIcon = () => /* @__PURE__ */ jsxs(
3
+ "svg",
4
+ {
5
+ width: "514",
6
+ height: "182",
7
+ viewBox: "0 0 514 182",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ jsx("rect", { x: "0.5", y: "0.5", width: "513", height: "181", rx: "6.5", fill: "#FAFAFA" }),
12
+ /* @__PURE__ */ jsx("rect", { x: "0.5", y: "0.5", width: "513", height: "181", rx: "6.5", stroke: "#E4E4E7" }),
13
+ /* @__PURE__ */ jsx(
14
+ "rect",
15
+ {
16
+ x: "0.00428286",
17
+ y: "-0.742904",
18
+ width: "33.5",
19
+ height: "65.5",
20
+ rx: "6.75",
21
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 306.755 89.438)",
22
+ fill: "#D4D4D8",
23
+ stroke: "#52525B",
24
+ "stroke-width": "1.5"
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsx(
28
+ "rect",
29
+ {
30
+ x: "0.00428286",
31
+ y: "-0.742904",
32
+ width: "33.5",
33
+ height: "65.5",
34
+ rx: "6.75",
35
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 306.755 86.438)",
36
+ fill: "white",
37
+ stroke: "#52525B",
38
+ "stroke-width": "1.5"
39
+ }
40
+ ),
41
+ /* @__PURE__ */ jsx(
42
+ "path",
43
+ {
44
+ d: "M297.579 108.142L296.126 108.959",
45
+ stroke: "#52525B",
46
+ "stroke-width": "1.5",
47
+ "stroke-linecap": "round",
48
+ "stroke-linejoin": "round"
49
+ }
50
+ ),
51
+ /* @__PURE__ */ jsx(
52
+ "path",
53
+ {
54
+ opacity: "0.88",
55
+ d: "M299.305 110.546L297.257 110.534",
56
+ stroke: "#52525B",
57
+ "stroke-width": "1.5",
58
+ "stroke-linecap": "round",
59
+ "stroke-linejoin": "round"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ jsx(
63
+ "path",
64
+ {
65
+ opacity: "0.75",
66
+ d: "M297.552 112.929L296.108 112.096",
67
+ stroke: "#52525B",
68
+ "stroke-width": "1.5",
69
+ "stroke-linecap": "round",
70
+ "stroke-linejoin": "round"
71
+ }
72
+ ),
73
+ /* @__PURE__ */ jsx(
74
+ "path",
75
+ {
76
+ opacity: "0.63",
77
+ d: "M293.347 113.897L293.354 112.73",
78
+ stroke: "#52525B",
79
+ "stroke-width": "1.5",
80
+ "stroke-linecap": "round",
81
+ "stroke-linejoin": "round"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsx(
85
+ "path",
86
+ {
87
+ opacity: "0.5",
88
+ d: "M289.154 112.881L290.606 112.064",
89
+ stroke: "#52525B",
90
+ "stroke-width": "1.5",
91
+ "stroke-linecap": "round",
92
+ "stroke-linejoin": "round"
93
+ }
94
+ ),
95
+ /* @__PURE__ */ jsx(
96
+ "path",
97
+ {
98
+ opacity: "0.38",
99
+ d: "M287.428 110.477L289.476 110.489",
100
+ stroke: "#52525B",
101
+ "stroke-width": "1.5",
102
+ "stroke-linecap": "round",
103
+ "stroke-linejoin": "round"
104
+ }
105
+ ),
106
+ /* @__PURE__ */ jsx(
107
+ "path",
108
+ {
109
+ opacity: "0.25",
110
+ d: "M289.181 108.094L290.624 108.928",
111
+ stroke: "#52525B",
112
+ "stroke-width": "1.5",
113
+ "stroke-linecap": "round",
114
+ "stroke-linejoin": "round"
115
+ }
116
+ ),
117
+ /* @__PURE__ */ jsx(
118
+ "path",
119
+ {
120
+ opacity: "0.13",
121
+ d: "M293.386 107.126L293.379 108.293",
122
+ stroke: "#52525B",
123
+ "stroke-width": "1.5",
124
+ "stroke-linecap": "round",
125
+ "stroke-linejoin": "round"
126
+ }
127
+ ),
128
+ /* @__PURE__ */ jsx(
129
+ "rect",
130
+ {
131
+ width: "12",
132
+ height: "3",
133
+ rx: "1.5",
134
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 313.446 93.2925)",
135
+ fill: "#D4D4D8"
136
+ }
137
+ ),
138
+ /* @__PURE__ */ jsx(
139
+ "rect",
140
+ {
141
+ x: "0.00428286",
142
+ y: "-0.742904",
143
+ width: "33.5",
144
+ height: "65.5",
145
+ rx: "6.75",
146
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 234.023 47.4146)",
147
+ fill: "#D4D4D8",
148
+ stroke: "#52525B",
149
+ "stroke-width": "1.5"
150
+ }
151
+ ),
152
+ /* @__PURE__ */ jsx(
153
+ "rect",
154
+ {
155
+ x: "0.00428286",
156
+ y: "-0.742904",
157
+ width: "33.5",
158
+ height: "65.5",
159
+ rx: "6.75",
160
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 234.023 44.4146)",
161
+ fill: "white",
162
+ stroke: "#52525B",
163
+ "stroke-width": "1.5"
164
+ }
165
+ ),
166
+ /* @__PURE__ */ jsx(
167
+ "rect",
168
+ {
169
+ width: "12",
170
+ height: "3",
171
+ rx: "1.5",
172
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 240.714 51.269)",
173
+ fill: "#D4D4D8"
174
+ }
175
+ ),
176
+ /* @__PURE__ */ jsx(
177
+ "rect",
178
+ {
179
+ width: "17",
180
+ height: "3",
181
+ rx: "1.5",
182
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 214.556 67.958)",
183
+ fill: "#D4D4D8"
184
+ }
185
+ ),
186
+ /* @__PURE__ */ jsx(
187
+ "rect",
188
+ {
189
+ width: "12",
190
+ height: "3",
191
+ rx: "1.5",
192
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 210.197 70.4092)",
193
+ fill: "#D4D4D8"
194
+ }
195
+ ),
196
+ /* @__PURE__ */ jsx(
197
+ "path",
198
+ {
199
+ d: "M209.36 64.9564C207.928 64.1287 205.59 64.1152 204.148 64.9264C202.706 65.7375 202.698 67.0703 204.131 67.898C205.563 68.7257 207.901 68.7392 209.343 67.928C210.785 67.1169 210.793 65.7841 209.36 64.9564ZM205.438 67.1626C204.722 66.7488 204.726 66.0822 205.447 65.6768C206.168 65.2713 207.337 65.2781 208.053 65.6918C208.769 66.1055 208.765 66.7722 208.044 67.1776C207.324 67.583 206.154 67.5763 205.438 67.1626Z",
200
+ fill: "#A1A1AA"
201
+ }
202
+ ),
203
+ /* @__PURE__ */ jsx(
204
+ "rect",
205
+ {
206
+ width: "17",
207
+ height: "3",
208
+ rx: "1.5",
209
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 226.758 61.0942)",
210
+ fill: "#A1A1AA"
211
+ }
212
+ ),
213
+ /* @__PURE__ */ jsx(
214
+ "rect",
215
+ {
216
+ width: "12",
217
+ height: "3",
218
+ rx: "1.5",
219
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 222.399 63.5454)",
220
+ fill: "#A1A1AA"
221
+ }
222
+ ),
223
+ /* @__PURE__ */ jsx(
224
+ "path",
225
+ {
226
+ d: "M221.562 58.0926C220.13 57.2649 217.792 57.2514 216.35 58.0626C214.908 58.8737 214.9 60.2065 216.333 61.0342C217.766 61.8619 220.103 61.8754 221.545 61.0642C222.987 60.2531 222.995 58.9203 221.562 58.0926ZM220.858 59.8971L217.815 60.1265C217.683 60.1366 217.55 60.1133 217.449 60.0629C217.44 60.0584 217.432 60.0544 217.425 60.0499C217.339 60.0004 217.29 59.9335 217.291 59.8637L217.294 59.12C217.294 58.9751 217.501 58.8585 217.756 58.8599C218.01 58.8614 218.217 58.98 218.216 59.1256L218.214 59.5669L220.732 59.3768C220.984 59.3577 221.217 59.4584 221.251 59.6029C221.286 59.7468 221.11 59.8787 220.858 59.8976L220.858 59.8971Z",
227
+ fill: "#52525B"
228
+ }
229
+ ),
230
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip0_28788_23850)", children: /* @__PURE__ */ jsx(
231
+ "path",
232
+ {
233
+ d: "M250.105 82.8025L257.489 82.845L257.514 78.6353",
234
+ stroke: "#A1A1AA",
235
+ "stroke-width": "1.5",
236
+ "stroke-linecap": "round",
237
+ "stroke-linejoin": "round"
238
+ }
239
+ ) }),
240
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip1_28788_23850)", children: /* @__PURE__ */ jsx(
241
+ "path",
242
+ {
243
+ d: "M260.496 88.8059L267.88 88.8485L267.904 84.6387",
244
+ stroke: "#A1A1AA",
245
+ "stroke-width": "1.5",
246
+ "stroke-linecap": "round",
247
+ "stroke-linejoin": "round"
248
+ }
249
+ ) }),
250
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip2_28788_23850)", children: /* @__PURE__ */ jsx(
251
+ "path",
252
+ {
253
+ d: "M270.886 94.8093L278.27 94.8519L278.294 90.6421",
254
+ stroke: "#A1A1AA",
255
+ "stroke-width": "1.5",
256
+ "stroke-linecap": "round",
257
+ "stroke-linejoin": "round"
258
+ }
259
+ ) }),
260
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip3_28788_23850)", children: /* @__PURE__ */ jsx(
261
+ "path",
262
+ {
263
+ d: "M243.113 90.1911L235.728 90.1486L235.704 94.3583",
264
+ stroke: "#A1A1AA",
265
+ "stroke-width": "1.5",
266
+ "stroke-linecap": "round",
267
+ "stroke-linejoin": "round"
268
+ }
269
+ ) }),
270
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip4_28788_23850)", children: /* @__PURE__ */ jsx(
271
+ "path",
272
+ {
273
+ d: "M253.503 96.1945L246.119 96.152L246.095 100.362",
274
+ stroke: "#A1A1AA",
275
+ "stroke-width": "1.5",
276
+ "stroke-linecap": "round",
277
+ "stroke-linejoin": "round"
278
+ }
279
+ ) }),
280
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip5_28788_23850)", children: /* @__PURE__ */ jsx(
281
+ "path",
282
+ {
283
+ d: "M263.893 102.198L256.509 102.155L256.484 106.365",
284
+ stroke: "#A1A1AA",
285
+ "stroke-width": "1.5",
286
+ "stroke-linecap": "round",
287
+ "stroke-linejoin": "round"
288
+ }
289
+ ) }),
290
+ /* @__PURE__ */ jsxs("defs", { children: [
291
+ /* @__PURE__ */ jsx("clipPath", { id: "clip0_28788_23850", children: /* @__PURE__ */ jsx(
292
+ "rect",
293
+ {
294
+ width: "12",
295
+ height: "12",
296
+ fill: "white",
297
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 255.359 75.6509)"
298
+ }
299
+ ) }),
300
+ /* @__PURE__ */ jsx("clipPath", { id: "clip1_28788_23850", children: /* @__PURE__ */ jsx(
301
+ "rect",
302
+ {
303
+ width: "12",
304
+ height: "12",
305
+ fill: "white",
306
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 265.75 81.6543)"
307
+ }
308
+ ) }),
309
+ /* @__PURE__ */ jsx("clipPath", { id: "clip2_28788_23850", children: /* @__PURE__ */ jsx(
310
+ "rect",
311
+ {
312
+ width: "12",
313
+ height: "12",
314
+ fill: "white",
315
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 276.14 87.6577)"
316
+ }
317
+ ) }),
318
+ /* @__PURE__ */ jsx("clipPath", { id: "clip3_28788_23850", children: /* @__PURE__ */ jsx(
319
+ "rect",
320
+ {
321
+ width: "12",
322
+ height: "12",
323
+ fill: "white",
324
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 237.928 85.4561)"
325
+ }
326
+ ) }),
327
+ /* @__PURE__ */ jsx("clipPath", { id: "clip4_28788_23850", children: /* @__PURE__ */ jsx(
328
+ "rect",
329
+ {
330
+ width: "12",
331
+ height: "12",
332
+ fill: "white",
333
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 248.318 91.4595)"
334
+ }
335
+ ) }),
336
+ /* @__PURE__ */ jsx("clipPath", { id: "clip5_28788_23850", children: /* @__PURE__ */ jsx(
337
+ "rect",
338
+ {
339
+ width: "12",
340
+ height: "12",
341
+ fill: "white",
342
+ transform: "matrix(0.865865 0.500278 -0.871576 0.490261 258.708 97.4629)"
343
+ }
344
+ ) })
345
+ ] })
346
+ ]
347
+ }
348
+ );
349
+ export {
350
+ TransferIcon,
351
+ TransferIcon as default
352
+ };