@medusajs/dashboard 3.0.0-snapshot-20251211181725 → 3.0.0-snapshot-20251212092246

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 (248) hide show
  1. package/dist/{add-campaign-promotions-PHAHMGXP.mjs → add-campaign-promotions-JQKPED4U.mjs} +2 -2
  2. package/dist/{adjust-inventory-I5VYMAI4.mjs → adjust-inventory-2MFA656V.mjs} +2 -2
  3. package/dist/{api-key-management-create-CVRFY4PL.mjs → api-key-management-create-ZUVF3SLR.mjs} +2 -2
  4. package/dist/{api-key-management-detail-G7O7TDPW.mjs → api-key-management-detail-I45X6X64.mjs} +6 -6
  5. package/dist/{api-key-management-edit-JMU3WEPX.mjs → api-key-management-edit-42HNUSXL.mjs} +2 -2
  6. package/dist/{api-key-management-sales-channels-4OU5VGIG.mjs → api-key-management-sales-channels-7FVABESO.mjs} +2 -2
  7. package/dist/app.css +0 -35
  8. package/dist/app.js +12062 -13079
  9. package/dist/app.mjs +4 -4
  10. package/dist/{campaign-budget-edit-B5MSE26J.mjs → campaign-budget-edit-6DMZGUCI.mjs} +2 -2
  11. package/dist/{campaign-configuration-QOE3D2BE.mjs → campaign-configuration-UNFRB5HR.mjs} +2 -2
  12. package/dist/{campaign-create-FJOECKGT.mjs → campaign-create-QXG7PD3S.mjs} +3 -3
  13. package/dist/{campaign-detail-I2N5WUEC.mjs → campaign-detail-P3CSDHZN.mjs} +3 -3
  14. package/dist/{campaign-edit-K2POQH7M.mjs → campaign-edit-HN4US7DV.mjs} +2 -2
  15. package/dist/{categories-metadata-DNVBNWAJ.mjs → categories-metadata-BCZ463KN.mjs} +6 -6
  16. package/dist/{category-create-L2KJCHPO.mjs → category-create-FFIBWXAH.mjs} +2 -2
  17. package/dist/{category-detail-XEFMQSZG.mjs → category-detail-VDUHW3QT.mjs} +8 -24
  18. package/dist/{category-edit-U6SLZSAX.mjs → category-edit-74MZ6TXN.mjs} +2 -2
  19. package/dist/{category-list-W7JW4PWA.mjs → category-list-AH2EGTI7.mjs} +1 -16
  20. package/dist/{category-organize-LLSVAO3U.mjs → category-organize-B6EFBFKB.mjs} +2 -2
  21. package/dist/{category-products-LF7P7MBF.mjs → category-products-VOD3XRPG.mjs} +8 -8
  22. package/dist/{chunk-RKUXD6IZ.mjs → chunk-25UWYEJX.mjs} +1 -1
  23. package/dist/chunk-35LSPN2U.mjs +66 -0
  24. package/dist/{chunk-BZKI5J2M.mjs → chunk-3YPRDSZ6.mjs} +1 -1
  25. package/dist/{chunk-D6UW7URG.mjs → chunk-42OOM4DJ.mjs} +6 -23
  26. package/dist/{chunk-FPBKWWSI.mjs → chunk-4YAPXPLM.mjs} +1 -1
  27. package/dist/{chunk-EQBVGH3N.mjs → chunk-B3AOQW2B.mjs} +1 -1
  28. package/dist/{chunk-N3SAXQVR.mjs → chunk-D4J3CEWH.mjs} +2 -2
  29. package/dist/{chunk-PS5T2R6J.mjs → chunk-EI27JC4V.mjs} +3 -3
  30. package/dist/{chunk-F5I264Q3.mjs → chunk-EQTBJSBZ.mjs} +0 -3
  31. package/dist/{chunk-4VNR7DND.mjs → chunk-F5NZDW7L.mjs} +2 -2
  32. package/dist/{chunk-JJGE3EV6.mjs → chunk-F63F3FIT.mjs} +2 -2
  33. package/dist/{chunk-DCYB22MH.mjs → chunk-HFT7Q5Y5.mjs} +1 -1
  34. package/dist/{chunk-I6C52ARQ.mjs → chunk-HWKLNKOY.mjs} +1 -1
  35. package/dist/{chunk-LCEKY54O.mjs → chunk-KF7ZWW4K.mjs} +2 -2
  36. package/dist/{chunk-YIOBBZUB.mjs → chunk-L4NOVTH5.mjs} +2 -2
  37. package/dist/{chunk-DS5IRNJY.mjs → chunk-LHNU4DYZ.mjs} +2 -2
  38. package/dist/{chunk-7GJ5T4R3.mjs → chunk-M4Z2YEYB.mjs} +9 -9
  39. package/dist/{chunk-R2EBIESZ.mjs → chunk-MY6I7UJG.mjs} +1 -1
  40. package/dist/{chunk-3BJLNORD.mjs → chunk-PNPT4W2F.mjs} +1 -1
  41. package/dist/{chunk-6GLZIACV.mjs → chunk-Q6MSICBU.mjs} +1 -1
  42. package/dist/{chunk-3ESSTIV2.mjs → chunk-QPKW37WR.mjs} +13 -188
  43. package/dist/{chunk-GN6OCHP4.mjs → chunk-RU4ZS47V.mjs} +11 -1
  44. package/dist/{chunk-UEJOY5PF.mjs → chunk-SKA4AJO4.mjs} +3 -3
  45. package/dist/{chunk-CFQNWTZV.mjs → chunk-UM4OIJZ3.mjs} +1 -1
  46. package/dist/{chunk-ZADXDNB3.mjs → chunk-UWBENEHD.mjs} +202 -234
  47. package/dist/{chunk-FEB3ZGTL.mjs → chunk-W7SLPIO2.mjs} +17 -214
  48. package/dist/{chunk-WVA4O7QS.mjs → chunk-XXBP2Z5M.mjs} +1 -1
  49. package/dist/{chunk-AFXODJBA.mjs → chunk-YAPTGHGP.mjs} +1 -1
  50. package/dist/{chunk-HPPR6PXK.mjs → chunk-YWLAUILP.mjs} +4 -4
  51. package/dist/{chunk-FIFVOKTK.mjs → chunk-Z6NHG5LQ.mjs} +1 -1
  52. package/dist/{collection-add-products-EM7SAFEH.mjs → collection-add-products-P5B564HQ.mjs} +8 -8
  53. package/dist/{collection-create-4JX4YE47.mjs → collection-create-DCRW344Z.mjs} +2 -2
  54. package/dist/{collection-detail-UQXMMKRW.mjs → collection-detail-PCL3HYPB.mjs} +7 -22
  55. package/dist/{collection-edit-MXL35GQQ.mjs → collection-edit-UNFEW6HT.mjs} +2 -2
  56. package/dist/{collection-list-EO56ZH4Q.mjs → collection-list-ANPFZOFP.mjs} +14 -29
  57. package/dist/{collection-metadata-UXEYXJY4.mjs → collection-metadata-P4A5DXBQ.mjs} +6 -6
  58. package/dist/{customer-create-IA56MXE6.mjs → customer-create-XCLZENJS.mjs} +2 -2
  59. package/dist/{customer-create-address-27M25HTO.mjs → customer-create-address-4HZUIAM7.mjs} +2 -2
  60. package/dist/{customer-detail-OD5I5YWW.mjs → customer-detail-ENPJO3DW.mjs} +6 -6
  61. package/dist/{customer-edit-XQ5NWIVX.mjs → customer-edit-BW5GVTQI.mjs} +2 -2
  62. package/dist/{customer-group-add-customers-FRJP6RCY.mjs → customer-group-add-customers-A7OGFFJ4.mjs} +5 -5
  63. package/dist/{customer-group-create-RY4FVEIW.mjs → customer-group-create-6YV7W6TI.mjs} +2 -2
  64. package/dist/{customer-group-detail-SOWUWFJ4.mjs → customer-group-detail-DVNRFZX5.mjs} +6 -6
  65. package/dist/{customer-group-edit-MQWARIQZ.mjs → customer-group-edit-7NXU34BQ.mjs} +2 -2
  66. package/dist/{customer-group-list-A5LER6CN.mjs → customer-group-list-P2QX5AO4.mjs} +3 -3
  67. package/dist/{customer-group-metadata-JQJRLLXG.mjs → customer-group-metadata-WK2BGEGO.mjs} +3 -3
  68. package/dist/{customer-metadata-HN2DYD5I.mjs → customer-metadata-ZUWCUTM7.mjs} +3 -3
  69. package/dist/{customers-add-customer-group-75EEIDW6.mjs → customers-add-customer-group-RVR476OP.mjs} +8 -8
  70. package/dist/{edit-inventory-item-RATTNP2Y.mjs → edit-inventory-item-Y5W6VTHJ.mjs} +2 -2
  71. package/dist/{edit-inventory-item-attributes-JHH5GSNL.mjs → edit-inventory-item-attributes-NAAZDFEJ.mjs} +2 -2
  72. package/dist/{edit-reservation-UZCSNLHY.mjs → edit-reservation-2UD4RZJX.mjs} +2 -2
  73. package/dist/{edit-rules-IKV4MGHV.mjs → edit-rules-2W3BXEXR.mjs} +5 -5
  74. package/dist/en.json +12 -12
  75. package/dist/{inventory-create-DBD7EA7N.mjs → inventory-create-VQEK7C5T.mjs} +6 -6
  76. package/dist/{inventory-detail-Q2HAUD2Y.mjs → inventory-detail-UYDDNO24.mjs} +3 -3
  77. package/dist/{inventory-metadata-NQXJBGAQ.mjs → inventory-metadata-X52VGHA7.mjs} +6 -6
  78. package/dist/{inventory-stock-WAZ7CXTY.mjs → inventory-stock-EKTOYN2F.mjs} +7 -7
  79. package/dist/{invite-WISVECE2.mjs → invite-VKHAAF4Z.mjs} +2 -3
  80. package/dist/{location-create-WZ43K3W7.mjs → location-create-RPLEXUZR.mjs} +2 -2
  81. package/dist/{location-detail-2LKEMZ3X.mjs → location-detail-UVWYE6Q2.mjs} +9 -11
  82. package/dist/{location-edit-VCS7GVWQ.mjs → location-edit-L4ISEQHX.mjs} +2 -2
  83. package/dist/{location-fulfillment-providers-6WNUCXQL.mjs → location-fulfillment-providers-3BGI2NNW.mjs} +6 -6
  84. package/dist/{location-list-UK3WRDL5.mjs → location-list-Z42ZYHUF.mjs} +2 -3
  85. package/dist/{location-sales-channels-NKNM5TQK.mjs → location-sales-channels-YMABMECM.mjs} +2 -2
  86. package/dist/{location-service-zone-create-3FWF3DG5.mjs → location-service-zone-create-NSMZCD5N.mjs} +3 -3
  87. package/dist/{location-service-zone-edit-KHHMSPXD.mjs → location-service-zone-edit-6OUAFEZD.mjs} +2 -2
  88. package/dist/{location-service-zone-manage-areas-YFEAZUUN.mjs → location-service-zone-manage-areas-SEC6LKCZ.mjs} +3 -3
  89. package/dist/{location-service-zone-shipping-option-create-DSLYSNY4.mjs → location-service-zone-shipping-option-create-M7G4SKNP.mjs} +7 -7
  90. package/dist/{location-service-zone-shipping-option-edit-QCURIIGL.mjs → location-service-zone-shipping-option-edit-M2HJAASG.mjs} +5 -5
  91. package/dist/{location-service-zone-shipping-option-pricing-Z5IFOLFJ.mjs → location-service-zone-shipping-option-pricing-23QLNSBT.mjs} +4 -4
  92. package/dist/{login-2DAZRDSC.mjs → login-NSCAMAU6.mjs} +5 -6
  93. package/dist/{manage-locations-MLNMPQ5I.mjs → manage-locations-JD6FSBOT.mjs} +2 -2
  94. package/dist/{order-allocate-items-I5KMPZY5.mjs → order-allocate-items-5T57NZOB.mjs} +3 -3
  95. package/dist/{order-create-claim-E543W2TJ.mjs → order-create-claim-JLCXZNHU.mjs} +7 -7
  96. package/dist/{order-create-edit-HDWLEUKF.mjs → order-create-edit-QB6LIWSF.mjs} +6 -6
  97. package/dist/{order-create-exchange-HBQWTMXR.mjs → order-create-exchange-GOU4AJXP.mjs} +13 -13
  98. package/dist/{order-create-fulfillment-PN3HLLB2.mjs → order-create-fulfillment-SRRP6X64.mjs} +5 -5
  99. package/dist/{order-create-refund-EC7XRI5O.mjs → order-create-refund-PTOM65QK.mjs} +5 -5
  100. package/dist/{order-create-return-LTGYASZZ.mjs → order-create-return-3EOY7TOC.mjs} +4 -4
  101. package/dist/{order-create-shipment-CPEAPIJU.mjs → order-create-shipment-HNILNFXB.mjs} +5 -5
  102. package/dist/{order-detail-MPNBAUUI.mjs → order-detail-BCBUUVU7.mjs} +11 -11
  103. package/dist/{order-edit-billing-address-KMV6RJ6F.mjs → order-edit-billing-address-3IO7GXIK.mjs} +5 -5
  104. package/dist/{order-edit-email-377D6O22.mjs → order-edit-email-QIAEOUBV.mjs} +5 -5
  105. package/dist/{order-edit-shipping-address-HEFMKAJP.mjs → order-edit-shipping-address-QGGMHGBC.mjs} +5 -5
  106. package/dist/order-export-LPAWHHSK.mjs +121 -0
  107. package/dist/{order-list-QOYJFYD5.mjs → order-list-Y4FET3XV.mjs} +38 -82
  108. package/dist/{order-metadata-QABOWLXK.mjs → order-metadata-ZBDTMBHZ.mjs} +6 -6
  109. package/dist/{order-receive-return-4WFBZ2T7.mjs → order-receive-return-V42FTCFY.mjs} +6 -6
  110. package/dist/{order-request-transfer-ISZSSGKO.mjs → order-request-transfer-A6NNIN2O.mjs} +5 -5
  111. package/dist/{price-list-configuration-WZFAJ7ZM.mjs → price-list-configuration-54D4JW6G.mjs} +4 -4
  112. package/dist/{price-list-create-DQFXQ247.mjs → price-list-create-5DI6QXFL.mjs} +15 -15
  113. package/dist/{price-list-detail-WWJPFIT2.mjs → price-list-detail-7XY3MDV5.mjs} +6 -6
  114. package/dist/{price-list-edit-I5QNCWJP.mjs → price-list-edit-SW7YIR3Z.mjs} +2 -2
  115. package/dist/{price-list-prices-add-6BCDF4DE.mjs → price-list-prices-add-UA2DT4AM.mjs} +10 -10
  116. package/dist/{price-list-prices-edit-Z4YJ4YBY.mjs → price-list-prices-edit-C6SX2TLJ.mjs} +4 -4
  117. package/dist/{product-attributes-RKEXUYKR.mjs → product-attributes-4AEBLFIM.mjs} +6 -6
  118. package/dist/{product-create-S7YVI2MR.mjs → product-create-TGR3I2H2.mjs} +7 -7
  119. package/dist/{product-create-option-UMZKRNTC.mjs → product-create-option-GEGQNSMQ.mjs} +2 -2
  120. package/dist/{product-create-variant-JRKDSU6D.mjs → product-create-variant-WI6D5CDG.mjs} +6 -6
  121. package/dist/{product-detail-G7ZVDV46.mjs → product-detail-YLYXIRRB.mjs} +10 -52
  122. package/dist/{product-edit-CMHKUDQP.mjs → product-edit-ALZUODMD.mjs} +6 -6
  123. package/dist/{product-edit-option-ZMTSLRG5.mjs → product-edit-option-HBIOBQTS.mjs} +2 -2
  124. package/dist/{product-export-H7KYYMGI.mjs → product-export-CPL66H6S.mjs} +15 -15
  125. package/dist/{product-image-variants-edit-HU6NVV6T.mjs → product-image-variants-edit-X3LUMPLJ.mjs} +5 -5
  126. package/dist/{product-import-5PKTI7YC.mjs → product-import-43UXKCL3.mjs} +5 -5
  127. package/dist/{product-list-ABFSFWKV.mjs → product-list-47T2IZ3F.mjs} +7 -19
  128. package/dist/{product-media-ULNJ7JJY.mjs → product-media-EGK66SRX.mjs} +2 -2
  129. package/dist/{product-metadata-GHL5HV37.mjs → product-metadata-55CAQTPS.mjs} +6 -6
  130. package/dist/{product-organization-Z7SXABDX.mjs → product-organization-KHZELN3F.mjs} +6 -6
  131. package/dist/{product-prices-5WCCQDS6.mjs → product-prices-WQDE4XYT.mjs} +3 -3
  132. package/dist/{product-sales-channels-2PN4L7II.mjs → product-sales-channels-ZICOOOKY.mjs} +2 -2
  133. package/dist/{product-shipping-profile-45XXB7FM.mjs → product-shipping-profile-KIDRTPWA.mjs} +2 -2
  134. package/dist/{product-stock-NHC7WD6Z.mjs → product-stock-22S2HGMM.mjs} +7 -7
  135. package/dist/{product-tag-create-MQ6AUCQM.mjs → product-tag-create-7GPE246H.mjs} +5 -5
  136. package/dist/{product-tag-detail-CGURSGJE.mjs → product-tag-detail-BQG2LJK6.mjs} +16 -31
  137. package/dist/{product-tag-edit-TOJYTW4H.mjs → product-tag-edit-WA6FGSIP.mjs} +5 -5
  138. package/dist/{product-tag-list-2U4CIGK5.mjs → product-tag-list-PW7WDCQH.mjs} +16 -31
  139. package/dist/{product-tag-metadata-JMFWGTR3.mjs → product-tag-metadata-EJ7FEXSE.mjs} +6 -6
  140. package/dist/{product-type-create-KHSNCQCV.mjs → product-type-create-HBDROTGB.mjs} +2 -2
  141. package/dist/{product-type-detail-UY6Y3T3G.mjs → product-type-detail-TJQS4BVU.mjs} +7 -22
  142. package/dist/{product-type-edit-3LRBWZ3S.mjs → product-type-edit-H3JCMVRV.mjs} +2 -2
  143. package/dist/{product-type-list-XU6DADMO.mjs → product-type-list-7WQ5D2KV.mjs} +4 -19
  144. package/dist/{product-type-metadata-EGMTZ622.mjs → product-type-metadata-Q6W5GL7Z.mjs} +6 -6
  145. package/dist/{product-variant-detail-5EKVJXUT.mjs → product-variant-detail-LYGQDASG.mjs} +5 -21
  146. package/dist/{product-variant-edit-KKLHPWXO.mjs → product-variant-edit-BW7QMHC5.mjs} +5 -5
  147. package/dist/{product-variant-manage-inventory-items-OGM64KYP.mjs → product-variant-manage-inventory-items-BLHCH6QD.mjs} +2 -2
  148. package/dist/{product-variant-media-C3KCFODU.mjs → product-variant-media-KLSUISGH.mjs} +2 -2
  149. package/dist/{product-variant-metadata-LBOIYBBF.mjs → product-variant-metadata-GDMVC4MZ.mjs} +6 -6
  150. package/dist/{profile-edit-YZCUGEXF.mjs → profile-edit-5EEKOEO5.mjs} +2 -2
  151. package/dist/{promotion-add-campaign-DO67QK6M.mjs → promotion-add-campaign-JRTM7WBR.mjs} +3 -3
  152. package/dist/{promotion-create-U6CJPBYU.mjs → promotion-create-HF6DTKCC.mjs} +12 -12
  153. package/dist/{promotion-detail-BYXN4YXZ.mjs → promotion-detail-MDVDMQUM.mjs} +3 -3
  154. package/dist/{promotion-edit-details-6BSOOWQN.mjs → promotion-edit-details-AREFQ6O5.mjs} +2 -2
  155. package/dist/{refund-reason-create-TFC4T4GK.mjs → refund-reason-create-RKIH46D6.mjs} +5 -5
  156. package/dist/{refund-reason-edit-WTM7WR5V.mjs → refund-reason-edit-V3KC6NMO.mjs} +5 -5
  157. package/dist/{refund-reason-list-7Q6WDYH6.mjs → refund-reason-list-FR7POQS5.mjs} +4 -4
  158. package/dist/{region-add-countries-7U4J5RW6.mjs → region-add-countries-AFWXMQ6W.mjs} +2 -2
  159. package/dist/{region-create-IUGX33M5.mjs → region-create-YC4VZ4AS.mjs} +2 -2
  160. package/dist/{region-edit-WAU347DP.mjs → region-edit-5GO25GDF.mjs} +2 -2
  161. package/dist/{region-metadata-EGOMWMMB.mjs → region-metadata-5NGUNAXZ.mjs} +6 -6
  162. package/dist/{reservation-create-C6HTEF3R.mjs → reservation-create-Z2SUMBGT.mjs} +2 -2
  163. package/dist/{reservation-detail-FYS6LFU6.mjs → reservation-detail-JH77TQHN.mjs} +3 -3
  164. package/dist/{reservation-metadata-LZJV35OW.mjs → reservation-metadata-ERCWXYVL.mjs} +6 -6
  165. package/dist/{reset-password-XKX43KUT.mjs → reset-password-5TAYQEUV.mjs} +2 -3
  166. package/dist/{return-reason-create-HM54WRJY.mjs → return-reason-create-NXWDC6AC.mjs} +2 -2
  167. package/dist/{return-reason-edit-VSIRHVQ6.mjs → return-reason-edit-M6IKNNKB.mjs} +2 -2
  168. package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
  169. package/dist/{sales-channel-add-products-XPS4JTBL.mjs → sales-channel-add-products-SPGDWA44.mjs} +8 -8
  170. package/dist/{sales-channel-create-4XLJDVJO.mjs → sales-channel-create-E7BDTPWD.mjs} +2 -2
  171. package/dist/{sales-channel-detail-5YUELAQ5.mjs → sales-channel-detail-D7VNPSCN.mjs} +6 -6
  172. package/dist/{sales-channel-edit-UZGSXD5X.mjs → sales-channel-edit-HMPA3Y3L.mjs} +2 -2
  173. package/dist/{sales-channel-list-N3KDOVBS.mjs → sales-channel-list-QGWQVXVW.mjs} +3 -3
  174. package/dist/{sales-channel-metadata-MU4BVKOJ.mjs → sales-channel-metadata-CMZN74K7.mjs} +6 -6
  175. package/dist/{shipping-option-type-create-AS4AVWZV.mjs → shipping-option-type-create-4BN2GBHP.mjs} +5 -5
  176. package/dist/{shipping-option-type-detail-MCFL4BJE.mjs → shipping-option-type-detail-YB3TCED2.mjs} +4 -4
  177. package/dist/{shipping-option-type-edit-PJOD3TA4.mjs → shipping-option-type-edit-MDO7ALAU.mjs} +5 -5
  178. package/dist/{shipping-option-type-list-VD567MQD.mjs → shipping-option-type-list-6TPD3AMM.mjs} +4 -4
  179. package/dist/{shipping-profile-create-26R64I3Z.mjs → shipping-profile-create-752TMBBE.mjs} +2 -2
  180. package/dist/{shipping-profile-metadata-6MHI75CB.mjs → shipping-profile-metadata-HQI7PCPU.mjs} +6 -6
  181. package/dist/{store-add-currencies-ZFS3WZHG.mjs → store-add-currencies-3VMLZ6KB.mjs} +2 -2
  182. package/dist/{store-add-locales-ERJXWD4L.mjs → store-add-locales-XJJCEO6Q.mjs} +4 -4
  183. package/dist/{store-detail-EGDXIVWC.mjs → store-detail-DNK76PXP.mjs} +3 -3
  184. package/dist/{store-edit-AB5CDUTK.mjs → store-edit-EPAHLLKP.mjs} +2 -2
  185. package/dist/{store-metadata-ZBUQ62YT.mjs → store-metadata-ZJD23O4D.mjs} +6 -6
  186. package/dist/{tax-region-create-N4YVNQKV.mjs → tax-region-create-NCO2OQ3I.mjs} +5 -5
  187. package/dist/{tax-region-detail-UJASYH57.mjs → tax-region-detail-C42CLE64.mjs} +22 -23
  188. package/dist/{tax-region-edit-W3B5EUCJ.mjs → tax-region-edit-YZALLSZY.mjs} +5 -5
  189. package/dist/{tax-region-list-4MQMCMKY.mjs → tax-region-list-BXZBUXRJ.mjs} +3 -4
  190. package/dist/{tax-region-province-create-GKJ7WMRS.mjs → tax-region-province-create-5JP3PVID.mjs} +2 -2
  191. package/dist/{tax-region-province-detail-K4PDPHXP.mjs → tax-region-province-detail-G2DPC6XM.mjs} +21 -22
  192. package/dist/{tax-region-tax-override-create-NUI4Z76X.mjs → tax-region-tax-override-create-WIVKENVO.mjs} +16 -16
  193. package/dist/{tax-region-tax-override-edit-Q4GJHUMJ.mjs → tax-region-tax-override-edit-UDEO3UIY.mjs} +17 -17
  194. package/dist/{tax-region-tax-rate-create-MECFGVPL.mjs → tax-region-tax-rate-create-O2SDSXCH.mjs} +2 -2
  195. package/dist/{tax-region-tax-rate-edit-7DYSPYOD.mjs → tax-region-tax-rate-edit-W62VEVKT.mjs} +2 -2
  196. package/dist/{user-edit-ZBB4RMTP.mjs → user-edit-LXQCTDGA.mjs} +2 -2
  197. package/dist/{user-invite-XB635N26.mjs → user-invite-2OKB7SCF.mjs} +2 -2
  198. package/dist/{user-metadata-2FTA4EB3.mjs → user-metadata-4WOICEE7.mjs} +6 -6
  199. package/dist/{workflow-execution-detail-MGIZSKVA.mjs → workflow-execution-detail-OKM6P4SX.mjs} +3 -3
  200. package/package.json +9 -9
  201. package/src/components/common/icon-avatar/icon-avatar.tsx +0 -4
  202. package/src/components/data-grid/components/index.ts +0 -1
  203. package/src/components/data-grid/data-grid.tsx +0 -2
  204. package/src/components/layout/settings-layout/settings-layout.tsx +1 -11
  205. package/src/components/modals/route-focus-modal/route-focus-modal.tsx +3 -8
  206. package/src/components/modals/route-modal-form/route-modal-form.tsx +1 -6
  207. package/src/components/modals/route-modal-provider/route-provider.tsx +4 -16
  208. package/src/dashboard-app/routes/get-route.map.tsx +6 -20
  209. package/src/hooks/api/index.ts +0 -1
  210. package/src/hooks/api/orders.tsx +18 -1
  211. package/src/hooks/api/product-variants.tsx +1 -7
  212. package/src/i18n/translations/$schema.json +40 -36
  213. package/src/i18n/translations/en.json +12 -12
  214. package/src/i18n/translations/es.json +0 -12
  215. package/src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx +1 -16
  216. package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +1 -16
  217. package/src/routes/collections/collection-detail/components/collection-general-section/collection-general-section.tsx +1 -16
  218. package/src/routes/collections/collection-list/components/collection-list-table/collection-row-actions.tsx +1 -16
  219. package/src/routes/orders/order-export/components/export-filters.tsx +22 -0
  220. package/src/routes/orders/order-export/index.ts +1 -0
  221. package/src/routes/orders/order-export/order-export.tsx +66 -0
  222. package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx +14 -6
  223. package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +8 -2
  224. package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx +1 -16
  225. package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/product-tag-list-table.tsx +1 -16
  226. package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +1 -16
  227. package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +1 -16
  228. package/src/routes/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx +1 -16
  229. package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +1 -16
  230. package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +1 -32
  231. package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +1 -15
  232. package/dist/chunk-4Y2NYEXF.mjs +0 -0
  233. package/dist/chunk-JQBWAJQZ.mjs +0 -0
  234. package/dist/translation-list-5ZOAGLCT.mjs +0 -146
  235. package/dist/translations-edit-QPJLE55N.mjs +0 -390
  236. package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +0 -233
  237. package/src/hooks/api/translations.tsx +0 -254
  238. package/src/routes/translations/translation-list/index.tsx +0 -1
  239. package/src/routes/translations/translation-list/translation-list.tsx +0 -131
  240. package/src/routes/translations/translations-edit/components/translations-edit-form/index.ts +0 -1
  241. package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +0 -423
  242. package/src/routes/translations/translations-edit/index.ts +0 -1
  243. package/src/routes/translations/translations-edit/translations-edit.tsx +0 -67
  244. package/src/routes/translations/translations-edit/utils/index.ts +0 -1
  245. package/src/routes/translations/translations-edit/utils/reference-label-map.ts +0 -10
  246. package/dist/{chunk-CTUJXJYA.mjs → chunk-6WKBBTKM.mjs} +0 -0
  247. package/dist/{customer-list-ZXCGIXJC.mjs → customer-list-TG4D4QOT.mjs} +3 -3
  248. package/dist/{region-list-XQRIBDMF.mjs → region-list-JAQXIBYD.mjs} +3 -3
@@ -1,146 +0,0 @@
1
- import {
2
- LinkButton
3
- } from "./chunk-CTUJXJYA.mjs";
4
- import {
5
- IconAvatar
6
- } from "./chunk-F5I264Q3.mjs";
7
- import {
8
- SingleColumnPage
9
- } from "./chunk-GIZFNLKK.mjs";
10
- import {
11
- ActionMenu
12
- } from "./chunk-OZPB6JBL.mjs";
13
- import "./chunk-OC7BQLYI.mjs";
14
- import "./chunk-S4DMV3ZT.mjs";
15
- import "./chunk-QZ7TP4HQ.mjs";
16
-
17
- // src/routes/translations/translation-list/translation-list.tsx
18
- import { Button, Container, Heading, Text } from "@medusajs/ui";
19
- import { useTranslation } from "react-i18next";
20
- import { Link, useNavigate } from "react-router-dom";
21
- import { Buildings, Pencil } from "@medusajs/icons";
22
- import { jsx, jsxs } from "react/jsx-runtime";
23
- var TRANSLATABLE_ENTITIES = [
24
- {
25
- icon: /* @__PURE__ */ jsx(Buildings, {}),
26
- label: "Product",
27
- reference: "product"
28
- },
29
- {
30
- icon: /* @__PURE__ */ jsx(Buildings, {}),
31
- label: "Product Variants",
32
- reference: "product_variant"
33
- },
34
- {
35
- icon: /* @__PURE__ */ jsx(Buildings, {}),
36
- label: "Product Categories",
37
- reference: "product_category"
38
- },
39
- {
40
- icon: /* @__PURE__ */ jsx(Buildings, {}),
41
- label: "Product Collections",
42
- reference: "product_collection"
43
- },
44
- {
45
- icon: /* @__PURE__ */ jsx(Buildings, {}),
46
- label: "Product Types",
47
- reference: "product_type"
48
- },
49
- {
50
- icon: /* @__PURE__ */ jsx(Buildings, {}),
51
- label: "Product Tags",
52
- reference: "product_tag"
53
- },
54
- {
55
- icon: /* @__PURE__ */ jsx(Buildings, {}),
56
- label: "Product Options",
57
- reference: "product_option"
58
- },
59
- {
60
- icon: /* @__PURE__ */ jsx(Buildings, {}),
61
- label: "Product Option Values",
62
- reference: "product_option_value"
63
- }
64
- ];
65
- var TranslationList = () => {
66
- const { t } = useTranslation();
67
- const navigate = useNavigate();
68
- const handleManageLocales = () => {
69
- navigate("/settings/store/locales");
70
- };
71
- return /* @__PURE__ */ jsxs(
72
- SingleColumnPage,
73
- {
74
- widgets: {
75
- before: [],
76
- after: []
77
- },
78
- children: [
79
- /* @__PURE__ */ jsx(Container, { className: "p-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
80
- /* @__PURE__ */ jsxs("div", { children: [
81
- /* @__PURE__ */ jsxs(Heading, { children: [
82
- "Manage ",
83
- t("translations.domain")
84
- ] }),
85
- /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: t("translations.subtitle") })
86
- ] }),
87
- /* @__PURE__ */ jsx(
88
- Button,
89
- {
90
- variant: "secondary",
91
- size: "small",
92
- onClick: handleManageLocales,
93
- children: t("translations.actions.manageLocales")
94
- }
95
- )
96
- ] }) }),
97
- TRANSLATABLE_ENTITIES.map((entity) => /* @__PURE__ */ jsx(Container, { className: "p-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-3", children: [
98
- /* @__PURE__ */ jsxs(
99
- Link,
100
- {
101
- to: `/settings/translations/edit?reference=${entity.reference}`,
102
- className: "transition-fg hover:bg-ui-bg-base-hover active:bg-ui-bg-base-pressed focus-visible:shadow-borders-interactive-with-active -mx-2 flex flex-1 items-center gap-x-2 rounded-md px-2 py-1.5 outline-none",
103
- children: [
104
- /* @__PURE__ */ jsx(IconAvatar, { variant: "squared", children: entity.icon }),
105
- /* @__PURE__ */ jsx(Text, { size: "small", children: entity.label })
106
- ]
107
- }
108
- ),
109
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
110
- /* @__PURE__ */ jsx(
111
- ActionMenu,
112
- {
113
- groups: [
114
- {
115
- actions: [
116
- {
117
- icon: /* @__PURE__ */ jsx(Pencil, {}),
118
- label: t("actions.edit"),
119
- onClick: () => {
120
- navigate(
121
- `/settings/translations/edit?reference=${entity.label.toLowerCase()}`
122
- );
123
- }
124
- }
125
- ]
126
- }
127
- ]
128
- }
129
- ),
130
- /* @__PURE__ */ jsx(Text, { children: "|" }),
131
- /* @__PURE__ */ jsx(
132
- LinkButton,
133
- {
134
- to: `/settings/translations/${entity.label.toLowerCase()}`,
135
- children: t("actions.viewDetails")
136
- }
137
- )
138
- ] })
139
- ] }) }, entity.label))
140
- ]
141
- }
142
- );
143
- };
144
- export {
145
- TranslationList as Component
146
- };
@@ -1,390 +0,0 @@
1
- import {
2
- DataGrid,
3
- createDataGridHelper
4
- } from "./chunk-FEB3ZGTL.mjs";
5
- import "./chunk-DK4WIVY6.mjs";
6
- import "./chunk-IUCDCPJU.mjs";
7
- import {
8
- KeyboundForm
9
- } from "./chunk-6HTZNHPT.mjs";
10
- import "./chunk-WVA4O7QS.mjs";
11
- import {
12
- RouteFocusModal,
13
- useRouteModal
14
- } from "./chunk-D6UW7URG.mjs";
15
- import {
16
- useFeatureFlag
17
- } from "./chunk-G4BWCU5P.mjs";
18
- import "./chunk-LPEUYMRK.mjs";
19
- import "./chunk-OC7BQLYI.mjs";
20
- import {
21
- useDocumentDirection
22
- } from "./chunk-S4DMV3ZT.mjs";
23
- import "./chunk-OBQI23QM.mjs";
24
- import {
25
- useBatchTranslations,
26
- useReferenceTranslations
27
- } from "./chunk-3ESSTIV2.mjs";
28
- import "./chunk-I4OBEAOJ.mjs";
29
- import "./chunk-XIVBRONM.mjs";
30
- import "./chunk-HI6URQ7H.mjs";
31
- import "./chunk-6CLQKVAU.mjs";
32
- import "./chunk-KI7TOXBR.mjs";
33
- import "./chunk-HKIF5HVL.mjs";
34
- import "./chunk-WAXMT4IY.mjs";
35
- import "./chunk-DYDGGABK.mjs";
36
- import "./chunk-LGNTHZ5Y.mjs";
37
- import "./chunk-CN7JXSGW.mjs";
38
- import "./chunk-5BQQRHQS.mjs";
39
- import "./chunk-Y5UO73CH.mjs";
40
- import "./chunk-5AFMB7XQ.mjs";
41
- import "./chunk-NHDFPGQ3.mjs";
42
- import "./chunk-A63RZVX6.mjs";
43
- import "./chunk-HBXV7ENS.mjs";
44
- import "./chunk-CDORR33H.mjs";
45
- import "./chunk-GN6OCHP4.mjs";
46
- import "./chunk-N4O5FAUC.mjs";
47
- import "./chunk-7AX6R6G6.mjs";
48
- import "./chunk-N3FCYZV6.mjs";
49
- import "./chunk-3BF5SC66.mjs";
50
- import {
51
- useStore
52
- } from "./chunk-VCSSQVPD.mjs";
53
- import "./chunk-HP2JH45P.mjs";
54
- import "./chunk-SQDIZZDW.mjs";
55
- import "./chunk-LEJUZW3P.mjs";
56
- import "./chunk-FXYH54JP.mjs";
57
- import "./chunk-774WSTCC.mjs";
58
- import "./chunk-NFEK63OE.mjs";
59
- import "./chunk-QZ7TP4HQ.mjs";
60
-
61
- // src/routes/translations/translations-edit/translations-edit.tsx
62
- import { useNavigate, useSearchParams } from "react-router-dom";
63
-
64
- // src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx
65
- import { zodResolver } from "@hookform/resolvers/zod";
66
- import { Button, ProgressTabs, toast } from "@medusajs/ui";
67
- import { useMemo, useRef } from "react";
68
- import { useForm } from "react-hook-form";
69
- import { useTranslation } from "react-i18next";
70
- import { z } from "zod";
71
-
72
- // src/routes/translations/translations-edit/utils/reference-label-map.ts
73
- var REFERENCE_LABEL_MAP = {
74
- product: "Products",
75
- product_variant: "Product Variants",
76
- product_category: "Product Categories",
77
- product_collection: "Product Collections",
78
- product_type: "Product Types",
79
- product_tag: "Product Tags",
80
- product_option: "Product Options",
81
- product_option_value: "Product Option Values"
82
- };
83
-
84
- // src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx
85
- import { jsx, jsxs } from "react/jsx-runtime";
86
- var LocaleTranslationSchema = z.object({
87
- id: z.string().nullish(),
88
- locale_code: z.string(),
89
- fields: z.record(z.string().optional())
90
- });
91
- var EntityTranslationsSchema = z.object({
92
- locales: z.record(LocaleTranslationSchema)
93
- });
94
- var TranslationsFormSchema = z.object({
95
- entities: z.record(EntityTranslationsSchema)
96
- });
97
- function isEntityRow(row) {
98
- return row._type === "entity";
99
- }
100
- function initTranslationsFormState(translations, references, availableLocales, translatableFields) {
101
- const existingMap = /* @__PURE__ */ new Map();
102
- for (const t of translations) {
103
- existingMap.set(`${t.reference_id}:${t.locale_code}`, t);
104
- }
105
- const entitiesTranslationState = {};
106
- for (const reference of references) {
107
- const locales = {};
108
- for (const locale of availableLocales) {
109
- const key = `${reference.id}:${locale.locale_code}`;
110
- const existing = existingMap.get(key);
111
- const isDefaultLocale = locale.is_default;
112
- const fields = {};
113
- for (const fieldName of translatableFields) {
114
- const fieldValue = isDefaultLocale ? existing?.translations?.[fieldName] ?? reference[fieldName] : existing?.translations?.[fieldName] ?? "";
115
- fields[fieldName] = fieldValue;
116
- }
117
- locales[locale.locale_code] = {
118
- id: existing?.id ?? null,
119
- locale_code: locale.locale_code,
120
- fields
121
- };
122
- }
123
- entitiesTranslationState[reference.id] = { locales };
124
- }
125
- return {
126
- entities: entitiesTranslationState
127
- };
128
- }
129
- function buildTranslationRows(references, availableLocales, translations) {
130
- const existingMap = /* @__PURE__ */ new Map();
131
- for (const t of translations) {
132
- existingMap.set(`${t.reference_id}:${t.locale_code}`, t);
133
- }
134
- return references.map((reference) => ({
135
- _type: "entity",
136
- reference_id: reference.id,
137
- subRows: availableLocales.map((locale) => {
138
- const key = `${reference.id}:${locale.locale_code}`;
139
- const existing = existingMap.get(key);
140
- return {
141
- _type: "locale",
142
- reference_id: reference.id,
143
- locale_code: locale.locale_code,
144
- locale_name: locale.locale.name,
145
- id: existing?.id
146
- };
147
- })
148
- }));
149
- }
150
- function transformToBatchPayload(currentState, initialState, entityType) {
151
- const payload = {
152
- create: [],
153
- update: [],
154
- delete: []
155
- };
156
- for (const [entityId, entityData] of Object.entries(currentState.entities)) {
157
- for (const [localeCode, localeTranslations] of Object.entries(
158
- entityData.locales
159
- )) {
160
- const initial = initialState.entities[entityId]?.locales[localeCode];
161
- const hasContent = Object.values(localeTranslations.fields).some(
162
- (v) => v !== void 0 && v.trim() !== ""
163
- );
164
- const hadContent = initial && Object.values(initial.fields).some(
165
- (v) => v !== void 0 && v.trim() !== ""
166
- );
167
- if (!localeTranslations.id && hasContent) {
168
- payload.create.push({
169
- reference_id: entityId,
170
- reference: entityType,
171
- locale_code: localeTranslations.locale_code,
172
- translations: localeTranslations.fields
173
- });
174
- } else if (localeTranslations.id && hasContent) {
175
- const hasChanged = !initial || JSON.stringify(localeTranslations.fields) !== JSON.stringify(initial.fields);
176
- if (hasChanged) {
177
- payload.update.push({
178
- id: localeTranslations.id,
179
- translations: localeTranslations.fields
180
- });
181
- }
182
- } else if (localeTranslations.id && !hasContent && hadContent) {
183
- payload.delete.push(localeTranslations.id);
184
- }
185
- }
186
- }
187
- return payload;
188
- }
189
- var columnHelper = createDataGridHelper();
190
- function useTranslationsGridColumns({
191
- translatableFields,
192
- modalFields = []
193
- }) {
194
- const { t } = useTranslation();
195
- const columns = useMemo(() => {
196
- return [
197
- columnHelper.column({
198
- id: "locale",
199
- header: t("translations.bulk.mainColumn"),
200
- cell: (context) => {
201
- const row = context.row.original;
202
- if (isEntityRow(row)) {
203
- return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context });
204
- }
205
- return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, color: "normal", children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center gap-x-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: row.locale_name }) }) });
206
- },
207
- disableHiding: true
208
- }),
209
- ...translatableFields.map((fieldName) => {
210
- const useModal = modalFields.includes(fieldName);
211
- return columnHelper.column({
212
- id: fieldName,
213
- header: t(`fields.${fieldName}`, { defaultValue: fieldName }),
214
- cell: (context) => {
215
- const row = context.row.original;
216
- if (isEntityRow(row)) {
217
- return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, children: /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted", children: "\u2014" }) });
218
- }
219
- if (useModal) {
220
- return /* @__PURE__ */ jsx(
221
- DataGrid.ExpandableTextCell,
222
- {
223
- context,
224
- fieldLabel: fieldName
225
- }
226
- );
227
- }
228
- return /* @__PURE__ */ jsx(DataGrid.TextCell, { context });
229
- },
230
- field: (context) => {
231
- const row = context.row.original;
232
- if (isEntityRow(row)) {
233
- return null;
234
- }
235
- return `entities.${row.reference_id}.locales.${row.locale_code}.fields.${fieldName}`;
236
- },
237
- type: "text"
238
- });
239
- })
240
- ];
241
- }, [t, translatableFields, modalFields]);
242
- return columns;
243
- }
244
- var TranslationsEditForm = ({
245
- translations,
246
- references,
247
- entityType,
248
- availableLocales,
249
- translatableFields,
250
- modalFields = []
251
- }) => {
252
- const { t } = useTranslation();
253
- const { handleSuccess, setCloseOnEscape } = useRouteModal();
254
- const direction = useDocumentDirection();
255
- const entities = useMemo(() => references, [references]);
256
- const initialState = useRef(
257
- initTranslationsFormState(
258
- translations,
259
- entities,
260
- availableLocales,
261
- translatableFields
262
- )
263
- );
264
- const form = useForm({
265
- resolver: zodResolver(TranslationsFormSchema),
266
- defaultValues: initialState.current
267
- });
268
- const rows = useMemo(
269
- () => buildTranslationRows(entities, availableLocales, translations),
270
- [entities, availableLocales, translations]
271
- );
272
- const { mutateAsync, isPending } = useBatchTranslations(entityType);
273
- const handleSubmit = form.handleSubmit(async (values) => {
274
- const payload = transformToBatchPayload(
275
- values,
276
- initialState.current,
277
- entityType
278
- );
279
- if (payload.create.length === 0 && payload.update.length === 0 && payload.delete.length === 0) {
280
- toast.info(
281
- t("translations.noChanges", { defaultValue: "No changes to save" })
282
- );
283
- return;
284
- }
285
- await mutateAsync(payload, {
286
- onSuccess: () => {
287
- toast.success(
288
- t("translations.edit.successToast", {
289
- defaultValue: "Translations updated successfully"
290
- })
291
- );
292
- handleSuccess();
293
- },
294
- onError: (error) => {
295
- toast.error(error.message);
296
- }
297
- });
298
- });
299
- const columns = useTranslationsGridColumns({
300
- translatableFields,
301
- modalFields
302
- });
303
- return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, children: /* @__PURE__ */ jsx(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: /* @__PURE__ */ jsxs(
304
- ProgressTabs,
305
- {
306
- dir: direction,
307
- defaultValue: entityType,
308
- className: "flex h-full flex-col overflow-hidden",
309
- children: [
310
- /* @__PURE__ */ jsx(RouteFocusModal.Header, { children: /* @__PURE__ */ jsx("div", { className: "-my-2 w-full border-l", children: /* @__PURE__ */ jsx(ProgressTabs.List, { className: "justify-start-start flex w-full items-center", children: /* @__PURE__ */ jsx(ProgressTabs.Trigger, { value: entityType, children: REFERENCE_LABEL_MAP[entityType] }) }) }) }),
311
- /* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "size-full overflow-hidden", children: /* @__PURE__ */ jsx(
312
- ProgressTabs.Content,
313
- {
314
- value: entityType,
315
- className: "size-full overflow-y-auto",
316
- children: /* @__PURE__ */ jsx(
317
- DataGrid,
318
- {
319
- columns,
320
- data: rows,
321
- getSubRows: (row) => {
322
- if (isEntityRow(row)) {
323
- return row.subRows;
324
- }
325
- },
326
- state: form,
327
- onEditingChange: (editing) => setCloseOnEscape(!editing)
328
- }
329
- )
330
- }
331
- ) }),
332
- /* @__PURE__ */ jsx(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
333
- /* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
334
- /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
335
- ] }) })
336
- ]
337
- }
338
- ) }) });
339
- };
340
-
341
- // src/routes/translations/translations-edit/translations-edit.tsx
342
- import { useEffect } from "react";
343
- import { jsx as jsx2 } from "react/jsx-runtime";
344
- var TranslationsEdit = () => {
345
- const isTranslationsEnabled = useFeatureFlag("translation");
346
- const navigate = useNavigate();
347
- const [searchParams] = useSearchParams();
348
- const reference = searchParams.get("reference");
349
- const referenceIdParam = searchParams.getAll("reference_id");
350
- useEffect(() => {
351
- if (!reference || !isTranslationsEnabled) {
352
- navigate(-1);
353
- return;
354
- }
355
- }, [reference, navigate, isTranslationsEnabled]);
356
- const {
357
- translations,
358
- references,
359
- translatableFields,
360
- isPending,
361
- isError,
362
- error
363
- } = useReferenceTranslations(reference, referenceIdParam, {
364
- enabled: !!reference
365
- });
366
- const {
367
- store,
368
- isPending: isStorePending,
369
- isError: isStoreError,
370
- error: storeError
371
- } = useStore();
372
- const ready = !isPending && !!translations && !!translatableFields && !!references && !isStorePending && !!store;
373
- if (isError || isStoreError) {
374
- throw error || storeError;
375
- }
376
- return /* @__PURE__ */ jsx2(RouteFocusModal, { prev: referenceIdParam.length ? -1 : "..", children: ready && /* @__PURE__ */ jsx2(
377
- TranslationsEditForm,
378
- {
379
- translations,
380
- references,
381
- entityType: reference,
382
- availableLocales: store?.supported_locales ?? [],
383
- translatableFields,
384
- modalFields: translatableFields
385
- }
386
- ) });
387
- };
388
- export {
389
- TranslationsEdit as Component
390
- };