@medusajs/dashboard 2.12.3-preview-20251217090412 → 2.12.3-preview-20251217123836

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 (276) hide show
  1. package/dist/{add-campaign-promotions-4QLXO46G.mjs → add-campaign-promotions-OYPGISTF.mjs} +2 -2
  2. package/dist/add-locales-GGNZCABB.mjs +81 -0
  3. package/dist/{adjust-inventory-2MFA656V.mjs → adjust-inventory-26YXAXQL.mjs} +4 -3
  4. package/dist/{api-key-management-create-ZUVF3SLR.mjs → api-key-management-create-EMP32G2D.mjs} +6 -5
  5. package/dist/{api-key-management-detail-THD74G7I.mjs → api-key-management-detail-FRUN2KFK.mjs} +11 -10
  6. package/dist/{api-key-management-edit-42HNUSXL.mjs → api-key-management-edit-IBM3ZXHK.mjs} +6 -5
  7. package/dist/{api-key-management-list-66CFOILY.mjs → api-key-management-list-KC5GOWAU.mjs} +4 -3
  8. package/dist/{api-key-management-sales-channels-HN3THM5J.mjs → api-key-management-sales-channels-LUB5G6RC.mjs} +6 -5
  9. package/dist/app.css +72 -0
  10. package/dist/app.js +13657 -11324
  11. package/dist/app.mjs +12 -11
  12. package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-B5MSE26J.mjs} +2 -2
  13. package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-QOE3D2BE.mjs} +2 -2
  14. package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-FJOECKGT.mjs} +3 -3
  15. package/dist/{campaign-detail-WR3XHHV2.mjs → campaign-detail-HM3GQJLQ.mjs} +11 -10
  16. package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-K2POQH7M.mjs} +2 -2
  17. package/dist/{categories-metadata-BCZ463KN.mjs → categories-metadata-WKL3MGD7.mjs} +14 -13
  18. package/dist/{category-create-FFIBWXAH.mjs → category-create-KHJZSC7G.mjs} +5 -4
  19. package/dist/{category-detail-4HXJ5Z7N.mjs → category-detail-UTWWDKFP.mjs} +29 -13
  20. package/dist/{category-edit-74MZ6TXN.mjs → category-edit-CTA2EPDG.mjs} +5 -4
  21. package/dist/{category-list-OCJY2UJV.mjs → category-list-QBYJ4T3R.mjs} +20 -4
  22. package/dist/{category-organize-B6EFBFKB.mjs → category-organize-SXP33XET.mjs} +5 -4
  23. package/dist/{category-products-2HXLZDHL.mjs → category-products-XXBTCXFF.mjs} +14 -13
  24. package/dist/{chunk-XIVBRONM.mjs → chunk-23GTCEOV.mjs} +1 -1
  25. package/dist/{chunk-2NZDHAOE.mjs → chunk-27MGH3HR.mjs} +2 -2
  26. package/dist/{chunk-N3FCYZV6.mjs → chunk-2XTBDCGE.mjs} +1 -1
  27. package/dist/{chunk-RU4ZS47V.mjs → chunk-4JQR6QNW.mjs} +2 -2
  28. package/dist/{chunk-F65T2X7G.mjs → chunk-5F427YCP.mjs} +5 -5
  29. package/dist/{chunk-PNPT4W2F.mjs → chunk-5ISRTMYH.mjs} +1 -1
  30. package/dist/{chunk-Z6NHG5LQ.mjs → chunk-6P4Q4AAP.mjs} +3 -3
  31. package/dist/{chunk-F5NZDW7L.mjs → chunk-A2WBKOXJ.mjs} +2 -2
  32. package/dist/{chunk-F63F3FIT.mjs → chunk-A4XYK3MY.mjs} +2 -2
  33. package/dist/{chunk-NT6C7CHT.mjs → chunk-AWRCV3ME.mjs} +1 -1
  34. package/dist/{chunk-5X6SKB2P.mjs → chunk-BMS2QLJY.mjs} +1 -1
  35. package/dist/{chunk-3YPRDSZ6.mjs → chunk-BZKI5J2M.mjs} +1 -1
  36. package/dist/{chunk-25UWYEJX.mjs → chunk-CQOOXWPZ.mjs} +1 -1
  37. package/dist/{chunk-42OOM4DJ.mjs → chunk-D6UW7URG.mjs} +23 -6
  38. package/dist/{chunk-4YAPXPLM.mjs → chunk-DQUXK4WW.mjs} +1 -1
  39. package/dist/{chunk-MY6I7UJG.mjs → chunk-DTCIBQO2.mjs} +3 -3
  40. package/dist/{chunk-W7SLPIO2.mjs → chunk-FKNW5MLZ.mjs} +676 -151
  41. package/dist/{chunk-N4O5FAUC.mjs → chunk-FYWHE3W5.mjs} +1 -1
  42. package/dist/{chunk-QPKW37WR.mjs → chunk-GLBHPDR4.mjs} +249 -14
  43. package/dist/chunk-HGRIOEAR.mjs +32 -0
  44. package/dist/{chunk-PXJFCRIV.mjs → chunk-HNJ65IND.mjs} +4 -4
  45. package/dist/{chunk-Y5UO73CH.mjs → chunk-HTCYX4VD.mjs} +1 -1
  46. package/dist/{chunk-34KFHPN6.mjs → chunk-IAV7IKJ6.mjs} +1 -1
  47. package/dist/{store-add-locales-JLRTXG3Q.mjs → chunk-IKTGFXWR.mjs} +3 -67
  48. package/dist/{chunk-6W3BKVOC.mjs → chunk-KFYQTOGB.mjs} +1 -1
  49. package/dist/{chunk-EQTBJSBZ.mjs → chunk-KIIT4BNH.mjs} +3 -0
  50. package/dist/{chunk-LHNU4DYZ.mjs → chunk-KSDXSKJ7.mjs} +2 -2
  51. package/dist/{chunk-D4J3CEWH.mjs → chunk-N3SAXQVR.mjs} +2 -2
  52. package/dist/{chunk-Q6MSICBU.mjs → chunk-O333RR6K.mjs} +1 -1
  53. package/dist/{chunk-YAPTGHGP.mjs → chunk-OK6NZN2A.mjs} +1 -1
  54. package/dist/{chunk-7AX6R6G6.mjs → chunk-OSHH5GAS.mjs} +13 -1
  55. package/dist/{chunk-35LSPN2U.mjs → chunk-QKALAT7P.mjs} +1 -1
  56. package/dist/{chunk-UM4OIJZ3.mjs → chunk-S22SJRPO.mjs} +1 -1
  57. package/dist/{chunk-HFT7Q5Y5.mjs → chunk-SG2JZPTG.mjs} +1 -1
  58. package/dist/{chunk-B3AOQW2B.mjs → chunk-U6G4M5LP.mjs} +1 -1
  59. package/dist/{chunk-HWKLNKOY.mjs → chunk-U726TGCM.mjs} +1 -1
  60. package/dist/{chunk-HKIF5HVL.mjs → chunk-UJ2TMPV4.mjs} +12 -0
  61. package/dist/{chunk-5DUMSVP6.mjs → chunk-UMCJYHAD.mjs} +3 -3
  62. package/dist/{chunk-NHDFPGQ3.mjs → chunk-UWY5ZV66.mjs} +13 -1
  63. package/dist/{chunk-7ZYDO3XO.mjs → chunk-VFF5WB7C.mjs} +299 -194
  64. package/dist/{chunk-XXBP2Z5M.mjs → chunk-WVA4O7QS.mjs} +1 -1
  65. package/dist/{chunk-AH4DORIW.mjs → chunk-XY7A7GZJ.mjs} +1 -1
  66. package/dist/{chunk-FQDPOKEK.mjs → chunk-Y2YVTIJI.mjs} +1 -1
  67. package/dist/{chunk-L4NOVTH5.mjs → chunk-YIOBBZUB.mjs} +2 -2
  68. package/dist/{chunk-LEJUZW3P.mjs → chunk-Z6BFNHEO.mjs} +12 -0
  69. package/dist/{collection-add-products-JWAQ277T.mjs → collection-add-products-42F7H77E.mjs} +14 -13
  70. package/dist/{collection-create-DCRW344Z.mjs → collection-create-GWKWVT7B.mjs} +5 -4
  71. package/dist/{collection-detail-F4ON763T.mjs → collection-detail-PXIS3G64.mjs} +28 -12
  72. package/dist/{collection-edit-UNFEW6HT.mjs → collection-edit-EZIO2BR5.mjs} +5 -4
  73. package/dist/{collection-list-4C5HVO6Y.mjs → collection-list-O74CGY24.mjs} +29 -13
  74. package/dist/{collection-metadata-P4A5DXBQ.mjs → collection-metadata-U6FMA4IC.mjs} +14 -13
  75. package/dist/{customer-create-XCLZENJS.mjs → customer-create-IA56MXE6.mjs} +2 -2
  76. package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-27M25HTO.mjs} +2 -2
  77. package/dist/{customer-detail-X3RQJPXP.mjs → customer-detail-OMTFJ6CE.mjs} +12 -11
  78. package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-XQ5NWIVX.mjs} +2 -2
  79. package/dist/{customer-group-add-customers-SOXMSWQH.mjs → customer-group-add-customers-XMR2WBXX.mjs} +2 -2
  80. package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-RY4FVEIW.mjs} +2 -2
  81. package/dist/{customer-group-detail-NG32WKJT.mjs → customer-group-detail-ADK3M5LG.mjs} +11 -10
  82. package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-MQWARIQZ.mjs} +2 -2
  83. package/dist/{customer-group-list-EBETHKKO.mjs → customer-group-list-7ZRQ2HWU.mjs} +11 -10
  84. package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-JQJRLLXG.mjs} +3 -3
  85. package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-HN2DYD5I.mjs} +3 -3
  86. package/dist/{customers-add-customer-group-7FYD54MZ.mjs → customers-add-customer-group-5U27WHJB.mjs} +13 -12
  87. package/dist/{edit-inventory-item-Y5W6VTHJ.mjs → edit-inventory-item-H7DAZWIT.mjs} +4 -3
  88. package/dist/{edit-inventory-item-attributes-NAAZDFEJ.mjs → edit-inventory-item-attributes-7HTXXPGZ.mjs} +4 -3
  89. package/dist/{edit-reservation-2UD4RZJX.mjs → edit-reservation-OVTRZHJR.mjs} +5 -4
  90. package/dist/{edit-rules-2W3BXEXR.mjs → edit-rules-BM2ERGVJ.mjs} +13 -12
  91. package/dist/en.json +38 -0
  92. package/dist/{inventory-create-VQEK7C5T.mjs → inventory-create-7MA7B5N2.mjs} +14 -13
  93. package/dist/{inventory-detail-HUHQ6ZNE.mjs → inventory-detail-B4PRHZK3.mjs} +11 -10
  94. package/dist/{inventory-list-RUSSPKHE.mjs → inventory-list-RXJPSVZE.mjs} +2 -1
  95. package/dist/{inventory-metadata-X52VGHA7.mjs → inventory-metadata-C7MJ3GY5.mjs} +14 -13
  96. package/dist/{inventory-stock-EKTOYN2F.mjs → inventory-stock-WVTYPJTX.mjs} +15 -14
  97. package/dist/{invite-VKHAAF4Z.mjs → invite-FVE4ZBKB.mjs} +2 -2
  98. package/dist/{location-create-RPLEXUZR.mjs → location-create-WZ43K3W7.mjs} +2 -2
  99. package/dist/{location-detail-UVWYE6Q2.mjs → location-detail-KO6EBDK5.mjs} +12 -11
  100. package/dist/{location-edit-L4ISEQHX.mjs → location-edit-VCS7GVWQ.mjs} +2 -2
  101. package/dist/{location-fulfillment-providers-HZZUHPVL.mjs → location-fulfillment-providers-IORBE3E3.mjs} +15 -14
  102. package/dist/{location-list-Z42ZYHUF.mjs → location-list-KVBA6J47.mjs} +2 -2
  103. package/dist/{location-sales-channels-XIMOK66B.mjs → location-sales-channels-P3QJTFDT.mjs} +5 -4
  104. package/dist/{location-service-zone-create-7ZNVLEE3.mjs → location-service-zone-create-J43WN6G4.mjs} +3 -3
  105. package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-KHHMSPXD.mjs} +2 -2
  106. package/dist/{location-service-zone-manage-areas-EOULKRYD.mjs → location-service-zone-manage-areas-6ZPMKMSX.mjs} +3 -3
  107. package/dist/{location-service-zone-shipping-option-create-M7G4SKNP.mjs → location-service-zone-shipping-option-create-2R3ZFLVK.mjs} +15 -14
  108. package/dist/{location-service-zone-shipping-option-edit-M2HJAASG.mjs → location-service-zone-shipping-option-edit-4CGPQ3VT.mjs} +2 -2
  109. package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs} +4 -4
  110. package/dist/{login-NSCAMAU6.mjs → login-XKB6OR7I.mjs} +13 -12
  111. package/dist/{manage-locations-JD6FSBOT.mjs → manage-locations-7HH6R4UP.mjs} +4 -3
  112. package/dist/{order-allocate-items-5T57NZOB.mjs → order-allocate-items-HZGGYJ42.mjs} +6 -5
  113. package/dist/{order-create-claim-TE56IE7P.mjs → order-create-claim-NKCOGF4A.mjs} +15 -14
  114. package/dist/{order-create-edit-RDFYBVFY.mjs → order-create-edit-UNQYXGLL.mjs} +14 -13
  115. package/dist/{order-create-exchange-B5ZOEQCJ.mjs → order-create-exchange-WI7OA2WO.mjs} +15 -14
  116. package/dist/{order-create-fulfillment-SRRP6X64.mjs → order-create-fulfillment-2LJTEWDY.mjs} +13 -12
  117. package/dist/{order-create-refund-PTOM65QK.mjs → order-create-refund-7K6UJXGP.mjs} +13 -12
  118. package/dist/{order-create-return-3C2QVNYN.mjs → order-create-return-52GHGW5Z.mjs} +7 -6
  119. package/dist/{order-create-shipment-HNILNFXB.mjs → order-create-shipment-ZTDLLUBY.mjs} +13 -12
  120. package/dist/{order-detail-3OUZOQ7G.mjs → order-detail-JTRUMRLO.mjs} +15 -14
  121. package/dist/{order-edit-billing-address-3IO7GXIK.mjs → order-edit-billing-address-YHYNVLOE.mjs} +13 -12
  122. package/dist/{order-edit-email-QIAEOUBV.mjs → order-edit-email-TCQPEVZY.mjs} +13 -12
  123. package/dist/{order-edit-shipping-address-QGGMHGBC.mjs → order-edit-shipping-address-CFSYQLKD.mjs} +13 -12
  124. package/dist/{order-export-JYYFTOWR.mjs → order-export-G4SBNEJ7.mjs} +14 -13
  125. package/dist/{order-list-RFR3HNDQ.mjs → order-list-GRLQWN4L.mjs} +6 -5
  126. package/dist/{order-metadata-ZBDTMBHZ.mjs → order-metadata-KGPB37VL.mjs} +14 -13
  127. package/dist/{order-receive-return-V42FTCFY.mjs → order-receive-return-JER24SEV.mjs} +14 -13
  128. package/dist/{order-request-transfer-A6NNIN2O.mjs → order-request-transfer-3FBUYZNT.mjs} +13 -12
  129. package/dist/{price-list-configuration-RTUEJENE.mjs → price-list-configuration-6S3MLNXQ.mjs} +6 -5
  130. package/dist/{price-list-create-GRT27KOM.mjs → price-list-create-CXZCFFTP.mjs} +17 -16
  131. package/dist/{price-list-detail-VKIWM7HP.mjs → price-list-detail-XOMU6U5J.mjs} +13 -12
  132. package/dist/{price-list-edit-SW7YIR3Z.mjs → price-list-edit-53UW35L3.mjs} +5 -4
  133. package/dist/{price-list-list-LF2PL4B5.mjs → price-list-list-DG5YEZ44.mjs} +4 -3
  134. package/dist/{price-list-prices-add-ISLZDQNI.mjs → price-list-prices-add-SDX5CQME.mjs} +16 -15
  135. package/dist/{price-list-prices-edit-C6SX2TLJ.mjs → price-list-prices-edit-EKB6NI5D.mjs} +7 -6
  136. package/dist/{product-attributes-REJ5NF2D.mjs → product-attributes-MXDPSOWM.mjs} +14 -13
  137. package/dist/{product-create-4TFE3JHQ.mjs → product-create-3O34JJLS.mjs} +16 -15
  138. package/dist/{product-create-option-GEGQNSMQ.mjs → product-create-option-7AOXAA4S.mjs} +4 -3
  139. package/dist/{product-create-variant-WI6D5CDG.mjs → product-create-variant-OTJKT6WI.mjs} +14 -13
  140. package/dist/{product-detail-BEIDGPKY.mjs → product-detail-SYTLG5D3.mjs} +59 -17
  141. package/dist/{product-edit-ZRQUK5OQ.mjs → product-edit-W72S22NM.mjs} +14 -13
  142. package/dist/{product-edit-option-HBIOBQTS.mjs → product-edit-option-LWJT3CYJ.mjs} +4 -3
  143. package/dist/{product-export-GIEFG4MA.mjs → product-export-57UUAGXF.mjs} +15 -14
  144. package/dist/{product-image-variants-edit-AAMRK4KQ.mjs → product-image-variants-edit-2BW5BJON.mjs} +13 -12
  145. package/dist/{product-import-43UXKCL3.mjs → product-import-6EM4VUXP.mjs} +13 -12
  146. package/dist/{product-list-D4CVUBQQ.mjs → product-list-5V5GEH5K.mjs} +25 -12
  147. package/dist/{product-media-EGK66SRX.mjs → product-media-3VJ7KENL.mjs} +4 -3
  148. package/dist/{product-metadata-55CAQTPS.mjs → product-metadata-JZLHBLZQ.mjs} +14 -13
  149. package/dist/{product-organization-7J7MUM6F.mjs → product-organization-SVXTCWIF.mjs} +15 -14
  150. package/dist/{product-prices-WQDE4XYT.mjs → product-prices-5ZL2RP7A.mjs} +5 -4
  151. package/dist/{product-sales-channels-GIJ7Q57M.mjs → product-sales-channels-PPXUG4KT.mjs} +5 -4
  152. package/dist/{product-shipping-profile-KIDRTPWA.mjs → product-shipping-profile-ETQFZ7DC.mjs} +4 -3
  153. package/dist/{product-stock-22S2HGMM.mjs → product-stock-SJJABF6I.mjs} +15 -14
  154. package/dist/{product-tag-create-7GPE246H.mjs → product-tag-create-XXO4AQEC.mjs} +13 -12
  155. package/dist/{product-tag-detail-R6C2TTA4.mjs → product-tag-detail-BSK64HXL.mjs} +30 -14
  156. package/dist/{product-tag-edit-WA6FGSIP.mjs → product-tag-edit-ENCGDT7E.mjs} +13 -12
  157. package/dist/{product-tag-list-U7PLHMLF.mjs → product-tag-list-SLQGCNDZ.mjs} +30 -14
  158. package/dist/{product-tag-metadata-EJ7FEXSE.mjs → product-tag-metadata-EPXHMU2K.mjs} +14 -13
  159. package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-DRFXTL5O.mjs} +4 -3
  160. package/dist/{product-type-detail-TYQ7MJFE.mjs → product-type-detail-4CRRU7YK.mjs} +29 -13
  161. package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SRHCZDK7.mjs} +4 -3
  162. package/dist/{product-type-list-KIKWBPD7.mjs → product-type-list-QQKAHBJ3.mjs} +19 -3
  163. package/dist/{product-type-metadata-Q6W5GL7Z.mjs → product-type-metadata-73OKOGPP.mjs} +14 -13
  164. package/dist/{product-variant-detail-SPJ7MZTK.mjs → product-variant-detail-RPHLG4HU.mjs} +27 -11
  165. package/dist/{product-variant-edit-BW7QMHC5.mjs → product-variant-edit-JF7NN64Y.mjs} +13 -12
  166. package/dist/{product-variant-manage-inventory-items-BLHCH6QD.mjs → product-variant-manage-inventory-items-Y2VEOHP7.mjs} +4 -3
  167. package/dist/{product-variant-media-KLSUISGH.mjs → product-variant-media-2WLVNGI4.mjs} +4 -3
  168. package/dist/{product-variant-metadata-GDMVC4MZ.mjs → product-variant-metadata-HU2CXGPO.mjs} +14 -13
  169. package/dist/{profile-edit-YBBXXCCK.mjs → profile-edit-ZNXO6WME.mjs} +2 -2
  170. package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-DO67QK6M.mjs} +3 -3
  171. package/dist/{promotion-create-HF6DTKCC.mjs → promotion-create-BHA3FQG2.mjs} +15 -14
  172. package/dist/{promotion-detail-HTM3F2VO.mjs → promotion-detail-F3QSR52W.mjs} +11 -10
  173. package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-6BSOOWQN.mjs} +2 -2
  174. package/dist/{refund-reason-create-RKIH46D6.mjs → refund-reason-create-ZA5TKW2Z.mjs} +13 -12
  175. package/dist/{refund-reason-edit-V3KC6NMO.mjs → refund-reason-edit-N2CRCLKZ.mjs} +13 -12
  176. package/dist/{refund-reason-list-M5BOHFWU.mjs → refund-reason-list-SE4TMGMT.mjs} +11 -10
  177. package/dist/{region-add-countries-OF5RUSYU.mjs → region-add-countries-2VAVXMJQ.mjs} +2 -2
  178. package/dist/{region-create-BGOWVCTR.mjs → region-create-NA7Y2LN4.mjs} +2 -2
  179. package/dist/{region-edit-5GO25GDF.mjs → region-edit-WAU347DP.mjs} +2 -2
  180. package/dist/{region-metadata-5NGUNAXZ.mjs → region-metadata-O5NZBWXP.mjs} +14 -13
  181. package/dist/{reservation-create-Z2SUMBGT.mjs → reservation-create-ZCIYM6JI.mjs} +5 -4
  182. package/dist/{reservation-detail-JH77TQHN.mjs → reservation-detail-UFK6XIXE.mjs} +11 -10
  183. package/dist/{reservation-list-WHBGZSVH.mjs → reservation-list-B47DXTA7.mjs} +3 -2
  184. package/dist/{reservation-metadata-ERCWXYVL.mjs → reservation-metadata-AEJEKGLV.mjs} +14 -13
  185. package/dist/{reset-password-5TAYQEUV.mjs → reset-password-Y5WVXV4Q.mjs} +2 -2
  186. package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-HM54WRJY.mjs} +2 -2
  187. package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-VSIRHVQ6.mjs} +2 -2
  188. package/dist/{sales-channel-add-products-DTAXWL6H.mjs → sales-channel-add-products-2LMB7EF5.mjs} +14 -13
  189. package/dist/{sales-channel-create-E7BDTPWD.mjs → sales-channel-create-MI7HHZYE.mjs} +5 -4
  190. package/dist/{sales-channel-detail-XWHV7J7X.mjs → sales-channel-detail-EUQ4STQI.mjs} +12 -11
  191. package/dist/{sales-channel-edit-HMPA3Y3L.mjs → sales-channel-edit-VSHOIR37.mjs} +5 -4
  192. package/dist/{sales-channel-list-7NSEFCXQ.mjs → sales-channel-list-JXKGHX4G.mjs} +11 -10
  193. package/dist/{sales-channel-metadata-CMZN74K7.mjs → sales-channel-metadata-AJMQ5SQ2.mjs} +14 -13
  194. package/dist/{shipping-option-type-create-4BN2GBHP.mjs → shipping-option-type-create-YVVIA2XC.mjs} +13 -12
  195. package/dist/{shipping-option-type-detail-YB3TCED2.mjs → shipping-option-type-detail-ZZW36XLK.mjs} +12 -11
  196. package/dist/{shipping-option-type-edit-MDO7ALAU.mjs → shipping-option-type-edit-O6F74T3A.mjs} +13 -12
  197. package/dist/{shipping-option-type-list-DJAT4RKX.mjs → shipping-option-type-list-SPTE7MT6.mjs} +12 -11
  198. package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-26R64I3Z.mjs} +2 -2
  199. package/dist/{shipping-profile-metadata-HQI7PCPU.mjs → shipping-profile-metadata-7WFE55VG.mjs} +14 -13
  200. package/dist/{store-add-currencies-PEWNEWCH.mjs → store-add-currencies-OX2WXFMS.mjs} +2 -2
  201. package/dist/store-add-locales-GWCGIXHU.mjs +81 -0
  202. package/dist/{store-detail-MOLAYNQZ.mjs → store-detail-YLJLBBZE.mjs} +11 -10
  203. package/dist/{store-edit-FTLPT55E.mjs → store-edit-5ZS562ZO.mjs} +2 -2
  204. package/dist/{store-metadata-ZJD23O4D.mjs → store-metadata-BZ57I2E6.mjs} +14 -13
  205. package/dist/{tax-region-create-NCO2OQ3I.mjs → tax-region-create-FGTV7VJL.mjs} +13 -12
  206. package/dist/{tax-region-detail-RIABXU7D.mjs → tax-region-detail-PPIMD7OX.mjs} +21 -20
  207. package/dist/{tax-region-edit-YZALLSZY.mjs → tax-region-edit-ELZKA7YH.mjs} +13 -12
  208. package/dist/{tax-region-list-BXZBUXRJ.mjs → tax-region-list-P4LDOPZD.mjs} +3 -3
  209. package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-GKJ7WMRS.mjs} +2 -2
  210. package/dist/{tax-region-province-detail-UKLRVJS2.mjs → tax-region-province-detail-FV2NDT3E.mjs} +20 -19
  211. package/dist/{tax-region-tax-override-create-33XGHH7A.mjs → tax-region-tax-override-create-N572MQPZ.mjs} +16 -15
  212. package/dist/{tax-region-tax-override-edit-WOKZSPTY.mjs → tax-region-tax-override-edit-5DCSJW6D.mjs} +17 -16
  213. package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-MECFGVPL.mjs} +2 -2
  214. package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-7DYSPYOD.mjs} +2 -2
  215. package/dist/translation-list-FK7XYLHX.mjs +527 -0
  216. package/dist/translations-edit-VRXZI5KW.mjs +678 -0
  217. package/dist/{user-detail-KEDJ7N3Q.mjs → user-detail-BJUXLZZQ.mjs} +2 -1
  218. package/dist/{user-edit-LXQCTDGA.mjs → user-edit-ZBB4RMTP.mjs} +2 -2
  219. package/dist/{user-invite-YH33WUC2.mjs → user-invite-GAGIM5DO.mjs} +2 -2
  220. package/dist/{user-metadata-4WOICEE7.mjs → user-metadata-GRJZZ524.mjs} +14 -13
  221. package/dist/{workflow-execution-detail-OKM6P4SX.mjs → workflow-execution-detail-HXTFWGKG.mjs} +11 -10
  222. package/package.json +9 -9
  223. package/src/components/common/icon-avatar/icon-avatar.tsx +4 -0
  224. package/src/components/data-grid/components/data-grid-cell-container.tsx +13 -4
  225. package/src/components/data-grid/components/data-grid-multiline-cell.tsx +103 -0
  226. package/src/components/data-grid/components/data-grid-readonly-cell.tsx +13 -3
  227. package/src/components/data-grid/components/data-grid-root.tsx +271 -60
  228. package/src/components/data-grid/components/data-grid-text-cell.tsx +7 -7
  229. package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +233 -0
  230. package/src/components/data-grid/components/index.ts +2 -0
  231. package/src/components/data-grid/data-grid.tsx +16 -1
  232. package/src/components/data-grid/helpers/create-data-grid-column-helper.ts +18 -0
  233. package/src/components/data-grid/hooks/use-data-grid-cell.tsx +13 -1
  234. package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +1 -0
  235. package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +65 -7
  236. package/src/components/data-grid/types.ts +1 -0
  237. package/src/components/layout/settings-layout/settings-layout.tsx +11 -1
  238. package/src/components/modals/route-focus-modal/route-focus-modal.tsx +8 -3
  239. package/src/components/modals/route-modal-form/route-modal-form.tsx +6 -1
  240. package/src/components/modals/route-modal-provider/route-provider.tsx +16 -4
  241. package/src/dashboard-app/routes/get-route.map.tsx +23 -0
  242. package/src/hooks/api/categories.tsx +32 -0
  243. package/src/hooks/api/collections.tsx +31 -0
  244. package/src/hooks/api/index.ts +1 -0
  245. package/src/hooks/api/product-types.tsx +32 -0
  246. package/src/hooks/api/product-variants.tsx +47 -3
  247. package/src/hooks/api/products.tsx +29 -0
  248. package/src/hooks/api/tags.tsx +32 -0
  249. package/src/hooks/api/translations.tsx +315 -0
  250. package/src/hooks/use-infinite-list.tsx +92 -0
  251. package/src/i18n/translations/$schema.json +122 -0
  252. package/src/i18n/translations/en.json +38 -0
  253. package/src/i18n/translations/es.json +38 -0
  254. package/src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx +16 -1
  255. package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +16 -1
  256. package/src/routes/collections/collection-detail/components/collection-general-section/collection-general-section.tsx +16 -1
  257. package/src/routes/collections/collection-list/components/collection-list-table/collection-row-actions.tsx +16 -1
  258. package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx +16 -1
  259. package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/product-tag-list-table.tsx +16 -1
  260. package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +16 -1
  261. package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +16 -1
  262. package/src/routes/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx +16 -1
  263. package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +16 -1
  264. package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +32 -1
  265. package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +15 -1
  266. package/src/routes/translations/add-locales/add-locales.tsx +29 -0
  267. package/src/routes/translations/add-locales/index.tsx +1 -0
  268. package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +93 -0
  269. package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +48 -0
  270. package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +285 -0
  271. package/src/routes/translations/translation-list/index.tsx +1 -0
  272. package/src/routes/translations/translation-list/translation-list.tsx +138 -0
  273. package/src/routes/translations/translations-edit/components/translations-edit-form/index.ts +1 -0
  274. package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +747 -0
  275. package/src/routes/translations/translations-edit/index.ts +1 -0
  276. package/src/routes/translations/translations-edit/translations-edit.tsx +90 -0
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DISPLAY_OVERRIDE_ITEMS_LIMIT,
3
3
  TaxRegionTaxOverrideEditForm
4
- } from "./chunk-5DUMSVP6.mjs";
5
- import "./chunk-PXJFCRIV.mjs";
4
+ } from "./chunk-UMCJYHAD.mjs";
5
+ import "./chunk-HNJ65IND.mjs";
6
6
  import "./chunk-PA3T6IWL.mjs";
7
7
  import "./chunk-QOCJPBRB.mjs";
8
8
  import "./chunk-QMRGIWOP.mjs";
@@ -35,7 +35,7 @@ import "./chunk-3C6WQ7NH.mjs";
35
35
  import "./chunk-CBSCX7RE.mjs";
36
36
  import "./chunk-LT4MVCA7.mjs";
37
37
  import "./chunk-6OU4CHZI.mjs";
38
- import "./chunk-AH4DORIW.mjs";
38
+ import "./chunk-XY7A7GZJ.mjs";
39
39
  import "./chunk-W7625H47.mjs";
40
40
  import "./chunk-DLZWPHHO.mjs";
41
41
  import "./chunk-LSEYENCI.mjs";
@@ -48,7 +48,7 @@ import "./chunk-WRSGHGAT.mjs";
48
48
  import "./chunk-MOSRJHJ3.mjs";
49
49
  import "./chunk-OMC5JCQH.mjs";
50
50
  import "./chunk-IW4TACOD.mjs";
51
- import "./chunk-MY6I7UJG.mjs";
51
+ import "./chunk-DTCIBQO2.mjs";
52
52
  import "./chunk-R65S6ZZV.mjs";
53
53
  import "./chunk-ZQJPHZKI.mjs";
54
54
  import "./chunk-C76H5USB.mjs";
@@ -58,8 +58,8 @@ import "./chunk-IUCDCPJU.mjs";
58
58
  import "./chunk-6HTZNHPT.mjs";
59
59
  import {
60
60
  RouteDrawer
61
- } from "./chunk-XXBP2Z5M.mjs";
62
- import "./chunk-42OOM4DJ.mjs";
61
+ } from "./chunk-WVA4O7QS.mjs";
62
+ import "./chunk-D6UW7URG.mjs";
63
63
  import "./chunk-MNXC6Q4F.mjs";
64
64
  import "./chunk-DG7J63J2.mjs";
65
65
  import "./chunk-LPEUYMRK.mjs";
@@ -67,7 +67,7 @@ import "./chunk-OC7BQLYI.mjs";
67
67
  import "./chunk-S4DMV3ZT.mjs";
68
68
  import "./chunk-535OVBXR.mjs";
69
69
  import "./chunk-OBQI23QM.mjs";
70
- import "./chunk-QPKW37WR.mjs";
70
+ import "./chunk-GLBHPDR4.mjs";
71
71
  import "./chunk-I4OBEAOJ.mjs";
72
72
  import {
73
73
  useTaxRate
@@ -76,32 +76,33 @@ import "./chunk-6CLQKVAU.mjs";
76
76
  import "./chunk-KI7TOXBR.mjs";
77
77
  import {
78
78
  useProductTypes
79
- } from "./chunk-HKIF5HVL.mjs";
80
- import "./chunk-XIVBRONM.mjs";
79
+ } from "./chunk-UJ2TMPV4.mjs";
80
+ import "./chunk-23GTCEOV.mjs";
81
81
  import "./chunk-WAXMT4IY.mjs";
82
82
  import "./chunk-DYDGGABK.mjs";
83
83
  import "./chunk-LGNTHZ5Y.mjs";
84
84
  import "./chunk-CN7JXSGW.mjs";
85
85
  import "./chunk-5BQQRHQS.mjs";
86
- import "./chunk-Y5UO73CH.mjs";
86
+ import "./chunk-HTCYX4VD.mjs";
87
87
  import "./chunk-5AFMB7XQ.mjs";
88
- import "./chunk-NHDFPGQ3.mjs";
88
+ import "./chunk-UWY5ZV66.mjs";
89
89
  import "./chunk-A63RZVX6.mjs";
90
90
  import {
91
91
  useShippingOptions
92
92
  } from "./chunk-HBXV7ENS.mjs";
93
93
  import "./chunk-CDORR33H.mjs";
94
- import "./chunk-RU4ZS47V.mjs";
95
- import "./chunk-N4O5FAUC.mjs";
96
- import "./chunk-7AX6R6G6.mjs";
97
- import "./chunk-N3FCYZV6.mjs";
94
+ import "./chunk-4JQR6QNW.mjs";
95
+ import "./chunk-FYWHE3W5.mjs";
96
+ import "./chunk-OSHH5GAS.mjs";
97
+ import "./chunk-2XTBDCGE.mjs";
98
98
  import "./chunk-3BF5SC66.mjs";
99
99
  import "./chunk-VCSSQVPD.mjs";
100
100
  import "./chunk-HP2JH45P.mjs";
101
101
  import "./chunk-SQDIZZDW.mjs";
102
102
  import {
103
103
  useProducts
104
- } from "./chunk-LEJUZW3P.mjs";
104
+ } from "./chunk-Z6BFNHEO.mjs";
105
+ import "./chunk-HGRIOEAR.mjs";
105
106
  import "./chunk-FXYH54JP.mjs";
106
107
  import "./chunk-774WSTCC.mjs";
107
108
  import "./chunk-NFEK63OE.mjs";
@@ -8,11 +8,11 @@ import "./chunk-IUCDCPJU.mjs";
8
8
  import {
9
9
  KeyboundForm
10
10
  } from "./chunk-6HTZNHPT.mjs";
11
- import "./chunk-XXBP2Z5M.mjs";
11
+ import "./chunk-WVA4O7QS.mjs";
12
12
  import {
13
13
  RouteFocusModal,
14
14
  useRouteModal
15
- } from "./chunk-42OOM4DJ.mjs";
15
+ } from "./chunk-D6UW7URG.mjs";
16
16
  import {
17
17
  Form
18
18
  } from "./chunk-OBQI23QM.mjs";
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-6HTZNHPT.mjs";
11
11
  import {
12
12
  RouteDrawer
13
- } from "./chunk-XXBP2Z5M.mjs";
13
+ } from "./chunk-WVA4O7QS.mjs";
14
14
  import {
15
15
  useRouteModal
16
- } from "./chunk-42OOM4DJ.mjs";
16
+ } from "./chunk-D6UW7URG.mjs";
17
17
  import {
18
18
  Form
19
19
  } from "./chunk-OBQI23QM.mjs";
@@ -0,0 +1,527 @@
1
+ import {
2
+ IconAvatar
3
+ } from "./chunk-KIIT4BNH.mjs";
4
+ import {
5
+ TwoColumnPage
6
+ } from "./chunk-GIZFNLKK.mjs";
7
+ import {
8
+ TwoColumnPageSkeleton
9
+ } from "./chunk-LPEUYMRK.mjs";
10
+ import {
11
+ useTranslationSettings,
12
+ useTranslationStatistics
13
+ } from "./chunk-GLBHPDR4.mjs";
14
+ import "./chunk-I4OBEAOJ.mjs";
15
+ import "./chunk-HI6URQ7H.mjs";
16
+ import "./chunk-6CLQKVAU.mjs";
17
+ import "./chunk-KI7TOXBR.mjs";
18
+ import "./chunk-UJ2TMPV4.mjs";
19
+ import "./chunk-23GTCEOV.mjs";
20
+ import "./chunk-WAXMT4IY.mjs";
21
+ import "./chunk-DYDGGABK.mjs";
22
+ import "./chunk-LGNTHZ5Y.mjs";
23
+ import "./chunk-CN7JXSGW.mjs";
24
+ import "./chunk-5BQQRHQS.mjs";
25
+ import "./chunk-HTCYX4VD.mjs";
26
+ import "./chunk-5AFMB7XQ.mjs";
27
+ import "./chunk-UWY5ZV66.mjs";
28
+ import "./chunk-A63RZVX6.mjs";
29
+ import "./chunk-HBXV7ENS.mjs";
30
+ import "./chunk-CDORR33H.mjs";
31
+ import "./chunk-4JQR6QNW.mjs";
32
+ import "./chunk-FYWHE3W5.mjs";
33
+ import "./chunk-OSHH5GAS.mjs";
34
+ import "./chunk-2XTBDCGE.mjs";
35
+ import "./chunk-3BF5SC66.mjs";
36
+ import {
37
+ useStore
38
+ } from "./chunk-VCSSQVPD.mjs";
39
+ import "./chunk-HP2JH45P.mjs";
40
+ import "./chunk-SQDIZZDW.mjs";
41
+ import "./chunk-Z6BFNHEO.mjs";
42
+ import "./chunk-HGRIOEAR.mjs";
43
+ import "./chunk-FXYH54JP.mjs";
44
+ import "./chunk-774WSTCC.mjs";
45
+ import "./chunk-NFEK63OE.mjs";
46
+ import "./chunk-QZ7TP4HQ.mjs";
47
+
48
+ // src/routes/translations/translation-list/translation-list.tsx
49
+ import { Container as Container4, Heading as Heading3, Text as Text4 } from "@medusajs/ui";
50
+ import { useTranslation as useTranslation4 } from "react-i18next";
51
+
52
+ // src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx
53
+ import { PencilSquare, Language } from "@medusajs/icons";
54
+ import {
55
+ Container,
56
+ Heading,
57
+ IconButton,
58
+ InlineTip,
59
+ Text,
60
+ Tooltip
61
+ } from "@medusajs/ui";
62
+ import { useTranslation } from "react-i18next";
63
+ import { useCallback, useState } from "react";
64
+ import { useNavigate } from "react-router-dom";
65
+ import { jsx, jsxs } from "react/jsx-runtime";
66
+ var ActiveLocalesSection = ({
67
+ locales
68
+ }) => {
69
+ const { t } = useTranslation();
70
+ const navigate = useNavigate();
71
+ const [isHovered, setIsHovered] = useState(false);
72
+ const handleManageLocales = useCallback(() => {
73
+ navigate("/settings/translations/add-locales");
74
+ }, [navigate]);
75
+ const renderLocales = useCallback(() => {
76
+ const maxLocalesToDetail = 2;
77
+ if (locales.length <= maxLocalesToDetail) {
78
+ return locales.map((locale) => locale.name).join(", ");
79
+ }
80
+ return `${locales.slice(0, maxLocalesToDetail).map((locale) => locale.name).join(", ")} + ${locales.length - maxLocalesToDetail}`;
81
+ }, [locales]);
82
+ const hasLocales = locales.length > 0;
83
+ return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col p-0", children: [
84
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
85
+ /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("translations.activeLocales.heading") }),
86
+ /* @__PURE__ */ jsx(IconButton, { variant: "transparent", onClick: handleManageLocales, children: /* @__PURE__ */ jsx(PencilSquare, {}) })
87
+ ] }),
88
+ /* @__PURE__ */ jsx("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ jsx(
89
+ Tooltip,
90
+ {
91
+ open: isHovered,
92
+ content: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-1 p-1", children: locales.map((locale) => /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: locale.name }, locale.code)) }),
93
+ children: /* @__PURE__ */ jsxs(
94
+ Container,
95
+ {
96
+ className: "bg-ui-bg-component border-r-1 flex items-center gap-x-4 px-[19px] py-2",
97
+ onMouseEnter: () => setIsHovered(true),
98
+ onMouseLeave: () => setIsHovered(false),
99
+ children: [
100
+ /* @__PURE__ */ jsx(IconAvatar, { className: "border-ui-border-base border", children: /* @__PURE__ */ jsx(Language, {}) }),
101
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
102
+ /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: t("translations.activeLocales.subtitle") }),
103
+ /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
104
+ ] })
105
+ ]
106
+ }
107
+ )
108
+ }
109
+ ) : /* @__PURE__ */ jsx(InlineTip, { label: "Tip", children: t("translations.activeLocales.noLocalesTip") }) })
110
+ ] });
111
+ };
112
+
113
+ // src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx
114
+ import { Button, Container as Container2, Text as Text2 } from "@medusajs/ui";
115
+ import { Link } from "react-router-dom";
116
+ import { useTranslation as useTranslation2 } from "react-i18next";
117
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
118
+ var TranslationListSection = ({
119
+ entities,
120
+ hasLocales = false
121
+ }) => {
122
+ const { t } = useTranslation2();
123
+ return /* @__PURE__ */ jsx2(Container2, { className: "divide-y p-0", children: entities.map((entity) => /* @__PURE__ */ jsxs2(
124
+ "div",
125
+ {
126
+ className: "grid grid-cols-[250px_1fr_auto] items-center gap-x-4 px-6 py-4",
127
+ children: [
128
+ /* @__PURE__ */ jsx2(Text2, { size: "small", weight: "plus", children: entity.label }),
129
+ /* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-subtle", children: t("translations.list.metrics", {
130
+ translated: (entity.translatedCount ?? 0).toLocaleString(),
131
+ total: (entity.totalCount ?? 0).toLocaleString()
132
+ }) }),
133
+ /* @__PURE__ */ jsx2(
134
+ Link,
135
+ {
136
+ to: `/settings/translations/edit?reference=${entity.reference}`,
137
+ children: /* @__PURE__ */ jsx2(
138
+ Button,
139
+ {
140
+ variant: "secondary",
141
+ size: "small",
142
+ disabled: !hasLocales || !entity.totalCount,
143
+ children: "Edit"
144
+ }
145
+ )
146
+ }
147
+ )
148
+ ]
149
+ },
150
+ entity.reference
151
+ )) });
152
+ };
153
+
154
+ // src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx
155
+ import { Container as Container3, Divider, Heading as Heading2, Text as Text3, Tooltip as Tooltip2 } from "@medusajs/ui";
156
+ import { useMemo, useState as useState2 } from "react";
157
+ import { useTranslation as useTranslation3 } from "react-i18next";
158
+ import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
159
+ var TranslationsCompletionSection = ({
160
+ statistics,
161
+ locales
162
+ }) => {
163
+ const { t } = useTranslation3();
164
+ const [hoveredLocale, setHoveredLocale] = useState2(null);
165
+ const { translatedCount, totalCount } = Object.values(statistics).reduce(
166
+ (acc, curr) => ({
167
+ translatedCount: acc.translatedCount + curr.translated,
168
+ totalCount: acc.totalCount + curr.expected
169
+ }),
170
+ { totalCount: 0, translatedCount: 0 }
171
+ );
172
+ const percentage = totalCount > 0 ? translatedCount / totalCount * 100 : 0;
173
+ const remaining = Math.max(0, totalCount - translatedCount);
174
+ const localeStats = useMemo(() => {
175
+ const localeMap = /* @__PURE__ */ new Map();
176
+ locales.forEach((locale) => {
177
+ localeMap.set(locale.code, { translated: 0, expected: 0 });
178
+ });
179
+ Object.values(statistics).forEach((entityStats) => {
180
+ if (entityStats.by_locale) {
181
+ Object.entries(entityStats.by_locale).forEach(
182
+ ([localeCode, localeData]) => {
183
+ const existing = localeMap.get(localeCode);
184
+ if (existing) {
185
+ existing.translated += localeData.translated;
186
+ existing.expected += localeData.expected;
187
+ }
188
+ }
189
+ );
190
+ }
191
+ });
192
+ return locales.map((locale) => {
193
+ const stats = localeMap.get(locale.code) || { translated: 0, expected: 0 };
194
+ return {
195
+ code: locale.code,
196
+ name: locale.name,
197
+ translated: stats.translated,
198
+ toTranslate: Math.max(0, stats.expected - stats.translated),
199
+ total: stats.expected
200
+ };
201
+ });
202
+ }, [statistics, locales]);
203
+ const maxTotal = useMemo(
204
+ () => Math.max(...localeStats.map((s) => s.total), 1),
205
+ [localeStats]
206
+ );
207
+ const localeStatsCount = useMemo(() => localeStats.length, [localeStats]);
208
+ return /* @__PURE__ */ jsxs3(Container3, { className: "p-0", children: [
209
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-4 px-6 py-4", children: [
210
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
211
+ /* @__PURE__ */ jsx3(Heading2, { level: "h2", children: t("translations.completion.heading") }),
212
+ /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
213
+ translatedCount.toLocaleString(),
214
+ " ",
215
+ t("general.of"),
216
+ " ",
217
+ totalCount.toLocaleString()
218
+ ] })
219
+ ] }),
220
+ /* @__PURE__ */ jsx3("div", { className: "flex h-3 w-full overflow-hidden", children: percentage > 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
221
+ /* @__PURE__ */ jsx3(
222
+ "div",
223
+ {
224
+ className: "mr-0.5 h-full rounded-sm transition-all",
225
+ style: {
226
+ width: `${percentage}%`,
227
+ backgroundColor: "var(--tag-blue-icon)",
228
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
229
+ }
230
+ }
231
+ ),
232
+ /* @__PURE__ */ jsx3(
233
+ "div",
234
+ {
235
+ className: "h-full flex-1 rounded-sm",
236
+ style: {
237
+ backgroundColor: "var(--tag-blue-border)",
238
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
239
+ }
240
+ }
241
+ )
242
+ ] }) : /* @__PURE__ */ jsx3(
243
+ "div",
244
+ {
245
+ className: "h-full w-full rounded-sm",
246
+ style: {
247
+ backgroundColor: "var(--tag-blue-border)",
248
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
249
+ }
250
+ }
251
+ ) }),
252
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
253
+ /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
254
+ percentage.toFixed(1),
255
+ "%"
256
+ ] }),
257
+ /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
258
+ remaining.toLocaleString(),
259
+ " ",
260
+ t("general.remaining").toLowerCase()
261
+ ] })
262
+ ] })
263
+ ] }),
264
+ localeStats.length > 0 && /* @__PURE__ */ jsxs3(Fragment, { children: [
265
+ /* @__PURE__ */ jsx3(Divider, { variant: "dashed" }),
266
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-3 px-6 pb-6 pt-4", children: [
267
+ /* @__PURE__ */ jsx3("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
268
+ const heightPercent = locale.total / maxTotal * 100;
269
+ const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
270
+ return /* @__PURE__ */ jsx3(
271
+ Tooltip2,
272
+ {
273
+ open: hoveredLocale === locale.code,
274
+ content: /* @__PURE__ */ jsxs3("div", { className: "flex min-w-[150px] flex-col gap-y-1 p-1", children: [
275
+ /* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.name }),
276
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
277
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
278
+ /* @__PURE__ */ jsx3(
279
+ "div",
280
+ {
281
+ className: "h-2 w-2 rounded-full",
282
+ style: {
283
+ backgroundColor: "var(--tag-blue-icon)",
284
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
285
+ }
286
+ }
287
+ ),
288
+ /* @__PURE__ */ jsx3(
289
+ Text3,
290
+ {
291
+ size: "small",
292
+ weight: "plus",
293
+ className: "text-ui-fg-base",
294
+ children: t("translations.completion.translated")
295
+ }
296
+ )
297
+ ] }),
298
+ /* @__PURE__ */ jsx3(
299
+ Text3,
300
+ {
301
+ size: "small",
302
+ weight: "plus",
303
+ className: "text-ui-fg-base",
304
+ children: locale.translated
305
+ }
306
+ )
307
+ ] }),
308
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
309
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
310
+ /* @__PURE__ */ jsx3(
311
+ "div",
312
+ {
313
+ className: "h-2 w-2 rounded-full",
314
+ style: {
315
+ backgroundColor: "var(--tag-blue-border)",
316
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
317
+ }
318
+ }
319
+ ),
320
+ /* @__PURE__ */ jsx3(
321
+ Text3,
322
+ {
323
+ size: "small",
324
+ weight: "plus",
325
+ className: "text-ui-fg-base",
326
+ children: t("translations.completion.toTranslate")
327
+ }
328
+ )
329
+ ] }),
330
+ /* @__PURE__ */ jsx3(
331
+ Text3,
332
+ {
333
+ size: "small",
334
+ weight: "plus",
335
+ className: "text-ui-fg-base",
336
+ children: locale.toTranslate
337
+ }
338
+ )
339
+ ] })
340
+ ] }),
341
+ children: /* @__PURE__ */ jsx3("div", { className: "flex h-full flex-1 items-end justify-center", children: /* @__PURE__ */ jsx3(
342
+ "div",
343
+ {
344
+ className: "flex w-full min-w-2 max-w-[96px] flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
345
+ style: { height: `${heightPercent}%` },
346
+ onMouseEnter: () => setHoveredLocale(locale.code),
347
+ onMouseLeave: () => setHoveredLocale(null),
348
+ children: translatedPercent === 0 ? /* @__PURE__ */ jsx3(
349
+ "div",
350
+ {
351
+ className: "w-full rounded-sm",
352
+ style: {
353
+ height: "100%",
354
+ backgroundColor: "var(--tag-neutral-bg)",
355
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
356
+ }
357
+ }
358
+ ) : /* @__PURE__ */ jsxs3(Fragment, { children: [
359
+ /* @__PURE__ */ jsx3(
360
+ "div",
361
+ {
362
+ className: "w-full rounded-sm",
363
+ style: {
364
+ height: `${100 - translatedPercent}%`,
365
+ backgroundColor: "var(--tag-blue-border)",
366
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
367
+ minHeight: locale.toTranslate > 0 ? "2px" : "0"
368
+ }
369
+ }
370
+ ),
371
+ translatedPercent > 0 && /* @__PURE__ */ jsx3(
372
+ "div",
373
+ {
374
+ className: "mt-0.5 w-full rounded-sm",
375
+ style: {
376
+ height: `${translatedPercent}%`,
377
+ backgroundColor: "var(--tag-blue-icon)",
378
+ boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
379
+ minHeight: locale.translated > 0 ? "2px" : "0"
380
+ }
381
+ }
382
+ )
383
+ ] })
384
+ }
385
+ ) })
386
+ },
387
+ locale.code
388
+ );
389
+ }) }),
390
+ localeStatsCount < 9 && /* @__PURE__ */ jsx3("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ jsx3(
391
+ "div",
392
+ {
393
+ className: "flex flex-1 items-center justify-center",
394
+ children: /* @__PURE__ */ jsx3(
395
+ Text3,
396
+ {
397
+ size: "xsmall",
398
+ weight: "plus",
399
+ className: "text-ui-fg-subtle min-w-2 whitespace-normal break-words text-center leading-tight",
400
+ children: localeStatsCount < 6 ? locale.name : locale.code
401
+ }
402
+ )
403
+ },
404
+ locale.code
405
+ )) }),
406
+ localeStatsCount > 9 && /* @__PURE__ */ jsx3(
407
+ Text3,
408
+ {
409
+ weight: "plus",
410
+ size: "xsmall",
411
+ className: "text-ui-fg-subtle text-center",
412
+ children: t("translations.completion.footer")
413
+ }
414
+ )
415
+ ] })
416
+ ] })
417
+ ] });
418
+ };
419
+
420
+ // src/routes/translations/translation-list/translation-list.tsx
421
+ import { useMemo as useMemo2 } from "react";
422
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
423
+ var TranslationList = () => {
424
+ const { t } = useTranslation4();
425
+ const { store, isPending, isError, error } = useStore();
426
+ const {
427
+ translatable_fields,
428
+ isPending: isTranslationSettingsPending,
429
+ isError: isTranslationSettingsError,
430
+ error: translationSettingsError
431
+ } = useTranslationSettings();
432
+ const {
433
+ statistics,
434
+ isPending: isTranslationStatisticsPending,
435
+ isError: isTranslationStatisticsError,
436
+ error: translationStatisticsError
437
+ } = useTranslationStatistics(
438
+ {
439
+ locales: store?.supported_locales?.map(
440
+ (suportedLocale) => suportedLocale.locale_code
441
+ ) ?? [],
442
+ entity_types: Object.keys(translatable_fields ?? {})
443
+ },
444
+ {
445
+ enabled: !!translatable_fields && !!store && store.supported_locales?.length > 0
446
+ }
447
+ );
448
+ if (isError || isTranslationSettingsError || isTranslationStatisticsError) {
449
+ throw error || translationSettingsError || translationStatisticsError;
450
+ }
451
+ const hasLocales = (store?.supported_locales ?? []).length > 0;
452
+ const translatableEntities = useMemo2(() => {
453
+ if (!translatable_fields) {
454
+ return [];
455
+ }
456
+ return Object.entries(translatable_fields).filter(
457
+ ([entity]) => !["product_option", "product_option_value"].includes(entity)
458
+ ).map(([entity, fields]) => {
459
+ const entityStatistics = statistics?.[entity] ?? {
460
+ translated: 0,
461
+ expected: 0
462
+ };
463
+ return {
464
+ label: entity.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" "),
465
+ reference: entity,
466
+ translatableFields: fields,
467
+ translatedCount: entityStatistics.translated,
468
+ totalCount: entityStatistics.expected
469
+ };
470
+ });
471
+ }, [translatable_fields, statistics]);
472
+ const isReady = !!store && !isPending && !isTranslationSettingsPending && !!translatable_fields && (!!statistics && !isTranslationStatisticsPending || !hasLocales);
473
+ if (!isReady) {
474
+ return /* @__PURE__ */ jsx4(TwoColumnPageSkeleton, { sidebarSections: 2 });
475
+ }
476
+ return /* @__PURE__ */ jsxs4(
477
+ TwoColumnPage,
478
+ {
479
+ widgets: {
480
+ before: [],
481
+ after: [],
482
+ sideBefore: [],
483
+ sideAfter: []
484
+ },
485
+ children: [
486
+ /* @__PURE__ */ jsxs4(TwoColumnPage.Main, { children: [
487
+ /* @__PURE__ */ jsxs4(Container4, { className: "flex flex-col px-6 py-4", children: [
488
+ /* @__PURE__ */ jsxs4(Heading3, { children: [
489
+ "Manage ",
490
+ t("translations.domain")
491
+ ] }),
492
+ /* @__PURE__ */ jsx4(Text4, { className: "text-ui-fg-subtle", size: "small", children: t("translations.subtitle") })
493
+ ] }),
494
+ /* @__PURE__ */ jsx4(
495
+ TranslationListSection,
496
+ {
497
+ entities: translatableEntities,
498
+ hasLocales
499
+ }
500
+ )
501
+ ] }),
502
+ /* @__PURE__ */ jsxs4(TwoColumnPage.Sidebar, { children: [
503
+ /* @__PURE__ */ jsx4(
504
+ ActiveLocalesSection,
505
+ {
506
+ locales: store?.supported_locales?.map(
507
+ (suportedLocale) => suportedLocale.locale
508
+ ) ?? []
509
+ }
510
+ ),
511
+ /* @__PURE__ */ jsx4(
512
+ TranslationsCompletionSection,
513
+ {
514
+ statistics: statistics ?? {},
515
+ locales: store?.supported_locales?.map(
516
+ (supportedLocale) => supportedLocale.locale
517
+ ) ?? []
518
+ }
519
+ )
520
+ ] })
521
+ ]
522
+ }
523
+ );
524
+ };
525
+ export {
526
+ TranslationList as Component
527
+ };