@medusajs/dashboard 2.6.0-snapshot-20250221164338 → 3.0.0-preview-20250211091350

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 (152) hide show
  1. package/dist/{add-campaign-promotions-UZ54EPHR.mjs → add-campaign-promotions-YQ6JJK6I.mjs} +3 -3
  2. package/dist/{api-key-management-detail-4SSWQW4Y.mjs → api-key-management-detail-V6UELD25.mjs} +3 -2
  3. package/dist/{api-key-management-list-KS65RZEW.mjs → api-key-management-list-MKVE46ZE.mjs} +2 -1
  4. package/dist/app.css +0 -7
  5. package/dist/app.js +11038 -11102
  6. package/dist/app.mjs +113 -113
  7. package/dist/{campaign-detail-BSGQQVOO.mjs → campaign-detail-PGM2SOEA.mjs} +5 -4
  8. package/dist/{campaign-list-I5JP6MBH.mjs → campaign-list-6TW2SO7C.mjs} +2 -1
  9. package/dist/{categories-metadata-DCW4MWLW.mjs → categories-metadata-D3EM5VK2.mjs} +2 -1
  10. package/dist/{category-detail-Q5B3MS3Q.mjs → category-detail-Z6GWCJUW.mjs} +3 -2
  11. package/dist/{category-list-RCAUXT4U.mjs → category-list-6WTV4T7D.mjs} +2 -1
  12. package/dist/{category-products-TAKPXANA.mjs → category-products-ND7PSI4Q.mjs} +1 -1
  13. package/dist/{chunk-Y2ZAIM5S.mjs → chunk-4M3ZY7KA.mjs} +1 -3
  14. package/dist/chunk-53IEL2PE.mjs +46 -0
  15. package/dist/{chunk-7I5DQGWY.mjs → chunk-77TK23EH.mjs} +0 -1
  16. package/dist/{chunk-L5UZLG5F.mjs → chunk-HP4JZCP4.mjs} +4 -3
  17. package/dist/{chunk-BBQEC2BG.mjs → chunk-IQ2LC4FN.mjs} +1 -1
  18. package/dist/{chunk-NVPP33RF.mjs → chunk-MAWEQJDF.mjs} +1 -1
  19. package/dist/{chunk-DJD7KVMY.mjs → chunk-ODVOHYAS.mjs} +1 -1
  20. package/dist/{chunk-QXEWLJCG.mjs → chunk-QX7ANQDG.mjs} +10 -16
  21. package/dist/{chunk-OHX7ZPSQ.mjs → chunk-TKREK46F.mjs} +1 -1
  22. package/dist/{chunk-6AYVHNRZ.mjs → chunk-UT3IS7J3.mjs} +1 -16
  23. package/dist/{chunk-5MEZIE5U.mjs → chunk-VIJAVLIU.mjs} +32 -79
  24. package/dist/{chunk-3LLQ6F7F.mjs → chunk-W6N53UNG.mjs} +0 -13
  25. package/dist/{chunk-B3XEMIUY.mjs → chunk-ZVVQK46Y.mjs} +1 -1
  26. package/dist/{collection-add-products-2Z7QFHNL.mjs → collection-add-products-KGBBZFCE.mjs} +1 -1
  27. package/dist/{collection-detail-SUFD5QJS.mjs → collection-detail-AZZ2NT4L.mjs} +3 -2
  28. package/dist/{collection-list-KYQAHGDT.mjs → collection-list-2AFD2BXW.mjs} +3 -2
  29. package/dist/{collection-metadata-CPRJIHOK.mjs → collection-metadata-XSJPOGIP.mjs} +2 -1
  30. package/dist/{customer-detail-X2FBNDNC.mjs → customer-detail-MWT2NNQK.mjs} +2 -1
  31. package/dist/{customer-group-detail-JHFLLKLX.mjs → customer-group-detail-ULS2F7OQ.mjs} +2 -1
  32. package/dist/{customer-group-list-AXLT3R34.mjs → customer-group-list-LZSSOYBR.mjs} +2 -1
  33. package/dist/{customer-group-metadata-ZH3O4GSV.mjs → customer-group-metadata-MTAZJYBH.mjs} +2 -1
  34. package/dist/{customer-list-34WHJZX2.mjs → customer-list-JAKCVGFG.mjs} +2 -1
  35. package/dist/{customer-metadata-CFAZB6JT.mjs → customer-metadata-RO5DVFXZ.mjs} +2 -1
  36. package/dist/{edit-rules-7V6RS4IB.mjs → edit-rules-6XNJL6AE.mjs} +2 -2
  37. package/dist/{inventory-detail-B6URMXNE.mjs → inventory-detail-S56TNEU5.mjs} +2 -1
  38. package/dist/{inventory-list-SV4JJIXG.mjs → inventory-list-P2ZZH6EN.mjs} +2 -1
  39. package/dist/{inventory-metadata-3Z32WNP6.mjs → inventory-metadata-IDMV4XVV.mjs} +2 -1
  40. package/dist/{location-detail-B32EQ2K7.mjs → location-detail-IEGCZTAI.mjs} +7 -14
  41. package/dist/{location-list-CYLKB6HD.mjs → location-list-ITU5AOC7.mjs} +3 -2
  42. package/dist/{location-service-zone-create-DZYFXRJF.mjs → location-service-zone-create-2JT4IKFH.mjs} +7 -4
  43. package/dist/{location-service-zone-edit-NGJZWWTI.mjs → location-service-zone-edit-LKYVVXDR.mjs} +5 -2
  44. package/dist/{location-service-zone-manage-areas-FVUWYMND.mjs → location-service-zone-manage-areas-PT4R2I3K.mjs} +2 -2
  45. package/dist/{location-service-zone-shipping-option-create-7PGX2ROX.mjs → location-service-zone-shipping-option-create-KXZIUIZQ.mjs} +11 -41
  46. package/dist/{location-service-zone-shipping-option-edit-C7DKT3UB.mjs → location-service-zone-shipping-option-edit-SC4HD6LU.mjs} +6 -13
  47. package/dist/{login-NA32GY3B.mjs → login-TN5VDDLW.mjs} +2 -1
  48. package/dist/{order-create-claim-I63DJFYK.mjs → order-create-claim-FFWV762A.mjs} +2 -2
  49. package/dist/{order-create-edit-XM4R5G7H.mjs → order-create-edit-LS3ARJDM.mjs} +1 -1
  50. package/dist/{order-create-exchange-6EANY5IO.mjs → order-create-exchange-3OVNNNW3.mjs} +2 -2
  51. package/dist/{order-create-refund-2CADVJ27.mjs → order-create-refund-2D46DG3T.mjs} +1 -1
  52. package/dist/{order-create-return-JCVPCOKI.mjs → order-create-return-PJ3LFXDG.mjs} +2 -2
  53. package/dist/{order-detail-DLR4YI44.mjs → order-detail-YYP4INKH.mjs} +38 -26
  54. package/dist/{order-edit-billing-address-MXL5XNP2.mjs → order-edit-billing-address-3PYGDUWT.mjs} +1 -1
  55. package/dist/{order-edit-email-T6NWLCLB.mjs → order-edit-email-C5AMYZDN.mjs} +1 -1
  56. package/dist/{order-edit-shipping-address-VWRK7BYT.mjs → order-edit-shipping-address-T6I4D234.mjs} +1 -1
  57. package/dist/{order-list-CKBGBIQM.mjs → order-list-IMVPWMTQ.mjs} +2 -1
  58. package/dist/{order-metadata-GGAOWANV.mjs → order-metadata-DRR355QQ.mjs} +2 -1
  59. package/dist/{order-request-transfer-B3BQ3HMQ.mjs → order-request-transfer-U5OYJEI6.mjs} +2 -2
  60. package/dist/{price-list-create-EA66HJIE.mjs → price-list-create-QKTF4G3M.mjs} +1 -1
  61. package/dist/{price-list-detail-IAHWYG7T.mjs → price-list-detail-G5Y3VVRK.mjs} +3 -2
  62. package/dist/{price-list-list-FDPYDTKZ.mjs → price-list-list-XPNVK6IC.mjs} +2 -1
  63. package/dist/{price-list-prices-add-HM4BA5GZ.mjs → price-list-prices-add-NIFFLI7Y.mjs} +1 -1
  64. package/dist/{product-attributes-RLUJ3TMF.mjs → product-attributes-WLWSFTCO.mjs} +3 -2
  65. package/dist/{product-create-DI2OY2SB.mjs → product-create-P7U26TXX.mjs} +16 -10
  66. package/dist/{product-create-variant-YDVQX3WZ.mjs → product-create-variant-ZQKPGLQQ.mjs} +1 -1
  67. package/dist/{product-detail-5NIH3SMD.mjs → product-detail-6LXT2IIU.mjs} +4 -3
  68. package/dist/{product-edit-PIVZPPPB.mjs → product-edit-IDL5IGVQ.mjs} +3 -2
  69. package/dist/{product-export-WYNJBBNR.mjs → product-export-JGH4CULP.mjs} +1 -1
  70. package/dist/{product-list-QAJBAJCQ.mjs → product-list-XOFUYF5S.mjs} +3 -2
  71. package/dist/{product-media-PBKLEGU3.mjs → product-media-RSCMACQU.mjs} +2 -2
  72. package/dist/{product-metadata-FBTDH2FF.mjs → product-metadata-EW6JGOKL.mjs} +2 -1
  73. package/dist/{product-organization-DSLOXW5A.mjs → product-organization-6N7JBWH5.mjs} +4 -3
  74. package/dist/{product-prices-V2GFT2G7.mjs → product-prices-NPJIYAIK.mjs} +3 -1
  75. package/dist/{product-shipping-profile-NLRGC7KV.mjs → product-shipping-profile-EK6G3NTZ.mjs} +5 -12
  76. package/dist/{product-tag-detail-7XVM7Y5E.mjs → product-tag-detail-NDZJLI2Q.mjs} +3 -2
  77. package/dist/{product-tag-list-4RN3TID2.mjs → product-tag-list-A73PYQRI.mjs} +3 -2
  78. package/dist/{product-type-detail-QXOXDTQH.mjs → product-type-detail-AQ5SUXFF.mjs} +3 -2
  79. package/dist/{product-type-list-NI6QQVX4.mjs → product-type-list-TUHBNIIB.mjs} +2 -1
  80. package/dist/{product-variant-detail-WFDTTF4Y.mjs → product-variant-detail-3XZBP2QJ.mjs} +2 -1
  81. package/dist/{product-variant-edit-ZCOZ2OHG.mjs → product-variant-edit-7FZ7PQ6U.mjs} +1 -1
  82. package/dist/{product-variant-manage-inventory-items-2JUO2FGP.mjs → product-variant-manage-inventory-items-PRFQHHZD.mjs} +1 -1
  83. package/dist/{product-variant-metadata-TUYVF4C5.mjs → product-variant-metadata-PY76KWCU.mjs} +2 -1
  84. package/dist/{profile-detail-VCI642G7.mjs → profile-detail-EYSOSXIU.mjs} +2 -1
  85. package/dist/{promotion-create-UI7NBO2K.mjs → promotion-create-DUY3VRR7.mjs} +2 -2
  86. package/dist/{promotion-detail-LRLVERBI.mjs → promotion-detail-KUVY3KBM.mjs} +4 -3
  87. package/dist/{promotion-list-5FMJO53N.mjs → promotion-list-6PKG7DBB.mjs} +5 -4
  88. package/dist/{region-create-QE2IO46D.mjs → region-create-3UVS7VHZ.mjs} +1 -1
  89. package/dist/{region-detail-D7XDE57X.mjs → region-detail-SGGN2NPK.mjs} +2 -1
  90. package/dist/{region-edit-UTIINDKG.mjs → region-edit-GPMEIHUM.mjs} +1 -1
  91. package/dist/{region-list-I2G6N2SP.mjs → region-list-ETVUX5R3.mjs} +2 -1
  92. package/dist/{region-metadata-YFRRLV5I.mjs → region-metadata-J4QDEISD.mjs} +2 -1
  93. package/dist/{reservation-create-CENQKDIW.mjs → reservation-create-O3ALBX5F.mjs} +1 -1
  94. package/dist/{reservation-detail-4JHMO7WY.mjs → reservation-detail-X46PRDBS.mjs} +2 -1
  95. package/dist/{reservation-list-5D5YHF2E.mjs → reservation-list-HF5TGB2X.mjs} +2 -1
  96. package/dist/{reservation-metadata-XIHGYPGA.mjs → reservation-metadata-GBTOI33G.mjs} +2 -1
  97. package/dist/{reset-password-V7XNNW3U.mjs → reset-password-CXIAZ6KT.mjs} +1 -1
  98. package/dist/{return-reason-list-UHUURCNJ.mjs → return-reason-list-R2B2M5F3.mjs} +3 -2
  99. package/dist/{sales-channel-add-products-WO6ZGXV5.mjs → sales-channel-add-products-XX6XXL67.mjs} +1 -1
  100. package/dist/{sales-channel-detail-PAOUTJJB.mjs → sales-channel-detail-A5LWMTIW.mjs} +3 -2
  101. package/dist/{sales-channel-list-VH2MIY3C.mjs → sales-channel-list-WIDZSTDW.mjs} +2 -1
  102. package/dist/{sales-channel-metadata-B2OYQIVZ.mjs → sales-channel-metadata-EU2OLGZU.mjs} +2 -1
  103. package/dist/{shipping-profile-detail-7E5Y3TE7.mjs → shipping-profile-detail-E2ZVCQB5.mjs} +2 -1
  104. package/dist/{shipping-profile-metadata-5XEC3GKU.mjs → shipping-profile-metadata-B3XD5644.mjs} +2 -1
  105. package/dist/{shipping-profiles-list-Q5KNKB3G.mjs → shipping-profiles-list-QF6YVBB6.mjs} +2 -1
  106. package/dist/{store-detail-4MCDPZIL.mjs → store-detail-RK42OQIJ.mjs} +2 -1
  107. package/dist/{store-edit-FFZQFGNN.mjs → store-edit-VP2ZK6DB.mjs} +1 -1
  108. package/dist/{store-metadata-PMRHY3QN.mjs → store-metadata-Z2PO4TKS.mjs} +2 -1
  109. package/dist/{tax-region-detail-BQJHDRQT.mjs → tax-region-detail-MUS2Q44R.mjs} +2 -1
  110. package/dist/{tax-region-list-AYS4JBDG.mjs → tax-region-list-OAH2FFY2.mjs} +2 -1
  111. package/dist/{tax-region-province-detail-YLFL2QHN.mjs → tax-region-province-detail-WENPM2PD.mjs} +2 -1
  112. package/dist/{tax-region-tax-override-create-TCWZQYJ4.mjs → tax-region-tax-override-create-VANMBRAP.mjs} +2 -2
  113. package/dist/{tax-region-tax-override-edit-U6UWIVZX.mjs → tax-region-tax-override-edit-IY5SXK2S.mjs} +2 -2
  114. package/dist/{user-detail-MLWL3L57.mjs → user-detail-I53MPAAS.mjs} +2 -1
  115. package/dist/{user-list-6YBGEIUH.mjs → user-list-6DWTXQUP.mjs} +2 -1
  116. package/dist/{user-metadata-AKNNB4TJ.mjs → user-metadata-ISZ5VACI.mjs} +2 -1
  117. package/dist/{workflow-execution-detail-FDHQQNLK.mjs → workflow-execution-detail-ERZLGDON.mjs} +2 -1
  118. package/dist/{workflow-execution-list-GM7JUXXT.mjs → workflow-execution-list-VEHTWIZD.mjs} +2 -1
  119. package/package.json +11 -11
  120. package/src/components/common/inline-tip/index.ts +1 -0
  121. package/src/components/common/inline-tip/inline-tip.tsx +60 -0
  122. package/src/components/forms/metadata-form/metadata-form.tsx +8 -19
  123. package/src/components/inputs/combobox/combobox.tsx +0 -14
  124. package/src/extensions/forms/form-extension-zone/form-extension-zone.tsx +3 -5
  125. package/src/extensions/routes/utils.ts +32 -158
  126. package/src/extensions/types.ts +0 -2
  127. package/src/hooks/table/query/use-product-table-query.tsx +0 -4
  128. package/src/i18n/translations/$schema.json +2 -55
  129. package/src/i18n/translations/en.json +1 -16
  130. package/src/providers/router-provider/route-extensions.tsx +0 -1
  131. package/src/routes/api-key-management/api-key-management-detail/components/api-key-general-section/api-key-general-section.tsx +1 -3
  132. package/src/routes/locations/location-detail/components/location-general-section/location-general-section.tsx +3 -13
  133. package/src/routes/locations/location-service-zone-create/components/create-service-zone-form/create-service-zone-form.tsx +3 -2
  134. package/src/routes/locations/location-service-zone-edit/components/edit-region-form/edit-service-zone-form.tsx +3 -4
  135. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +46 -54
  136. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +2 -8
  137. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-prices-form.tsx +2 -27
  138. package/src/routes/locations/location-service-zone-shipping-option-create/location-service-zone-shipping-option-create.tsx +3 -14
  139. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +42 -50
  140. package/src/routes/locations/location-service-zone-shipping-option-edit/location-service-zone-shipping-option-edit.tsx +1 -15
  141. package/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx +4 -23
  142. package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +28 -21
  143. package/src/routes/orders/order-detail/constants.ts +0 -1
  144. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +2 -2
  145. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +9 -7
  146. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx +1 -3
  147. package/src/routes/products/product-create/constants.ts +4 -4
  148. package/src/routes/products/product-create/utils.ts +1 -1
  149. package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +1 -2
  150. package/src/routes/products/product-prices/product-prices.tsx +3 -1
  151. package/src/routes/products/product-shipping-profile/components/product-organization-form/product-shipping-profile-form.tsx +2 -13
  152. package/dist/{chunk-EGUG76J6.mjs → chunk-N6PBCMOV.mjs} +3 -3
@@ -45,8 +45,9 @@ import "./chunk-SY6HAFQV.mjs";
45
45
  import "./chunk-HYULYW73.mjs";
46
46
  import {
47
47
  useDashboardExtension
48
- } from "./chunk-5MEZIE5U.mjs";
48
+ } from "./chunk-VIJAVLIU.mjs";
49
49
  import "./chunk-ONB3JEHR.mjs";
50
+ import "./chunk-53IEL2PE.mjs";
50
51
  import "./chunk-5ZZZZK7A.mjs";
51
52
  import "./chunk-FXYH54JP.mjs";
52
53
  import "./chunk-774WSTCC.mjs";
@@ -1,7 +1,7 @@
1
1
  import "./chunk-XRTVFYCW.mjs";
2
2
  import {
3
3
  MetadataForm
4
- } from "./chunk-QXEWLJCG.mjs";
4
+ } from "./chunk-QX7ANQDG.mjs";
5
5
  import "./chunk-LPEUYMRK.mjs";
6
6
  import "./chunk-OC7BQLYI.mjs";
7
7
  import {
@@ -11,6 +11,7 @@ import {
11
11
  import "./chunk-IUCDCPJU.mjs";
12
12
  import "./chunk-6HTZNHPT.mjs";
13
13
  import "./chunk-AYRG2MQL.mjs";
14
+ import "./chunk-53IEL2PE.mjs";
14
15
  import "./chunk-FXYH54JP.mjs";
15
16
  import "./chunk-774WSTCC.mjs";
16
17
  import "./chunk-WAYDNCEG.mjs";
@@ -36,8 +36,9 @@ import {
36
36
  } from "./chunk-S3MWIWV4.mjs";
37
37
  import {
38
38
  useDashboardExtension
39
- } from "./chunk-5MEZIE5U.mjs";
39
+ } from "./chunk-VIJAVLIU.mjs";
40
40
  import "./chunk-ONB3JEHR.mjs";
41
+ import "./chunk-53IEL2PE.mjs";
41
42
  import "./chunk-FXYH54JP.mjs";
42
43
  import "./chunk-774WSTCC.mjs";
43
44
  import "./chunk-WAYDNCEG.mjs";
@@ -1,7 +1,7 @@
1
1
  import "./chunk-XRTVFYCW.mjs";
2
2
  import {
3
3
  MetadataForm
4
- } from "./chunk-QXEWLJCG.mjs";
4
+ } from "./chunk-QX7ANQDG.mjs";
5
5
  import "./chunk-LPEUYMRK.mjs";
6
6
  import "./chunk-OC7BQLYI.mjs";
7
7
  import {
@@ -11,6 +11,7 @@ import {
11
11
  import "./chunk-IUCDCPJU.mjs";
12
12
  import "./chunk-6HTZNHPT.mjs";
13
13
  import "./chunk-AYRG2MQL.mjs";
14
+ import "./chunk-53IEL2PE.mjs";
14
15
  import "./chunk-FXYH54JP.mjs";
15
16
  import "./chunk-774WSTCC.mjs";
16
17
  import "./chunk-WAYDNCEG.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RulesFormField
3
- } from "./chunk-BBQEC2BG.mjs";
4
- import "./chunk-3LLQ6F7F.mjs";
3
+ } from "./chunk-IQ2LC4FN.mjs";
4
+ import "./chunk-W6N53UNG.mjs";
5
5
  import {
6
6
  usePromotion,
7
7
  usePromotionAddRules,
@@ -79,8 +79,9 @@ import "./chunk-SY6HAFQV.mjs";
79
79
  import "./chunk-HYULYW73.mjs";
80
80
  import {
81
81
  useDashboardExtension
82
- } from "./chunk-5MEZIE5U.mjs";
82
+ } from "./chunk-VIJAVLIU.mjs";
83
83
  import "./chunk-ONB3JEHR.mjs";
84
+ import "./chunk-53IEL2PE.mjs";
84
85
  import {
85
86
  inventoryItemsQueryKeys,
86
87
  useDeleteInventoryItemLevel,
@@ -32,8 +32,9 @@ import {
32
32
  } from "./chunk-QDC5CTTV.mjs";
33
33
  import {
34
34
  useDashboardExtension
35
- } from "./chunk-5MEZIE5U.mjs";
35
+ } from "./chunk-VIJAVLIU.mjs";
36
36
  import "./chunk-ONB3JEHR.mjs";
37
+ import "./chunk-53IEL2PE.mjs";
37
38
  import {
38
39
  useDeleteInventoryItem,
39
40
  useInventoryItems
@@ -1,7 +1,7 @@
1
1
  import "./chunk-XRTVFYCW.mjs";
2
2
  import {
3
3
  MetadataForm
4
- } from "./chunk-QXEWLJCG.mjs";
4
+ } from "./chunk-QX7ANQDG.mjs";
5
5
  import "./chunk-LPEUYMRK.mjs";
6
6
  import "./chunk-OC7BQLYI.mjs";
7
7
  import "./chunk-QE3BG56P.mjs";
@@ -35,6 +35,7 @@ import "./chunk-6HTZNHPT.mjs";
35
35
  import {
36
36
  RouteDrawer
37
37
  } from "./chunk-AYRG2MQL.mjs";
38
+ import "./chunk-53IEL2PE.mjs";
38
39
  import {
39
40
  useInventoryItem,
40
41
  useUpdateInventoryItem
@@ -2,10 +2,10 @@ import {
2
2
  isOptionEnabledInStore,
3
3
  isReturnOption
4
4
  } from "./chunk-R2O6QX4D.mjs";
5
+ import "./chunk-PYIO3TDQ.mjs";
5
6
  import {
6
7
  ListSummary
7
8
  } from "./chunk-I3VB6NM2.mjs";
8
- import "./chunk-PYIO3TDQ.mjs";
9
9
  import {
10
10
  formatProvider
11
11
  } from "./chunk-IR5DHEKS.mjs";
@@ -75,8 +75,9 @@ import "./chunk-SY6HAFQV.mjs";
75
75
  import "./chunk-HYULYW73.mjs";
76
76
  import {
77
77
  useDashboardExtension
78
- } from "./chunk-5MEZIE5U.mjs";
78
+ } from "./chunk-VIJAVLIU.mjs";
79
79
  import "./chunk-ONB3JEHR.mjs";
80
+ import "./chunk-53IEL2PE.mjs";
80
81
  import "./chunk-5ZZZZK7A.mjs";
81
82
  import {
82
83
  queryClient
@@ -279,8 +280,7 @@ function ShippingOption({
279
280
  function ServiceZoneOptions({
280
281
  zone,
281
282
  locationId,
282
- fulfillmentSetId,
283
- type
283
+ fulfillmentSetId
284
284
  }) {
285
285
  const { t } = useTranslation();
286
286
  const shippingOptions = zone.shipping_options.filter(
@@ -291,7 +291,7 @@ function ServiceZoneOptions({
291
291
  /* @__PURE__ */ jsx2(Divider, { variant: "dashed" }),
292
292
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4 px-6 py-4", children: [
293
293
  /* @__PURE__ */ jsxs("div", { className: "item-center flex justify-between", children: [
294
- /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-subtle txt-small self-center font-medium", children: t(`stockLocations.shippingOptions.create.${type}.label`) }),
294
+ /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-subtle txt-small self-center font-medium", children: t("stockLocations.shippingOptions.create.shipping.label") }),
295
295
  /* @__PURE__ */ jsx2(
296
296
  LinkButton,
297
297
  {
@@ -334,12 +334,7 @@ function ServiceZoneOptions({
334
334
  ] })
335
335
  ] });
336
336
  }
337
- function ServiceZone({
338
- zone,
339
- locationId,
340
- fulfillmentSetId,
341
- type
342
- }) {
337
+ function ServiceZone({ zone, locationId, fulfillmentSetId }) {
343
338
  const { t } = useTranslation();
344
339
  const prompt = usePrompt();
345
340
  const [open, setOpen] = useState(true);
@@ -407,7 +402,7 @@ function ServiceZone({
407
402
  }
408
403
  ),
409
404
  /* @__PURE__ */ jsx2("span", { children: "\xB7" }),
410
- /* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle txt-small", children: t(`stockLocations.shippingOptions.fields.count.${type}`, {
405
+ /* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle txt-small", children: t("stockLocations.shippingOptions.fields.count.shipping", {
411
406
  count: shippingOptionsCount
412
407
  }) }),
413
408
  /* @__PURE__ */ jsx2("span", { children: "\xB7" }),
@@ -471,7 +466,6 @@ function ServiceZone({
471
466
  {
472
467
  fulfillmentSetId,
473
468
  locationId,
474
- type,
475
469
  zone
476
470
  }
477
471
  )
@@ -579,7 +573,6 @@ function FulfillmentSet(props) {
579
573
  ServiceZone,
580
574
  {
581
575
  zone,
582
- type,
583
576
  locationId,
584
577
  fulfillmentSetId: fulfillmentSet.id
585
578
  },
@@ -1,7 +1,7 @@
1
+ import "./chunk-PYIO3TDQ.mjs";
1
2
  import {
2
3
  BadgeListSummary
3
4
  } from "./chunk-BKJC5BGQ.mjs";
4
- import "./chunk-PYIO3TDQ.mjs";
5
5
  import {
6
6
  LinkButton
7
7
  } from "./chunk-6WKBBTKM.mjs";
@@ -27,8 +27,9 @@ import {
27
27
  } from "./chunk-QDC5CTTV.mjs";
28
28
  import {
29
29
  useDashboardExtension
30
- } from "./chunk-5MEZIE5U.mjs";
30
+ } from "./chunk-VIJAVLIU.mjs";
31
31
  import "./chunk-ONB3JEHR.mjs";
32
+ import "./chunk-53IEL2PE.mjs";
32
33
  import {
33
34
  queryClient
34
35
  } from "./chunk-FXYH54JP.mjs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  GeoZoneForm
3
- } from "./chunk-EGUG76J6.mjs";
4
- import "./chunk-NOAFLTPV.mjs";
3
+ } from "./chunk-N6PBCMOV.mjs";
5
4
  import {
6
5
  GEO_ZONE_STACKED_MODAL_ID
7
6
  } from "./chunk-PYIO3TDQ.mjs";
7
+ import "./chunk-NOAFLTPV.mjs";
8
8
  import "./chunk-LQTHYS2Z.mjs";
9
9
  import "./chunk-RAKBTSZ7.mjs";
10
10
  import "./chunk-YEDAFXMB.mjs";
@@ -34,6 +34,9 @@ import {
34
34
  StackedFocusModal,
35
35
  useRouteModal
36
36
  } from "./chunk-AYRG2MQL.mjs";
37
+ import {
38
+ InlineTip
39
+ } from "./chunk-53IEL2PE.mjs";
37
40
  import "./chunk-FXYH54JP.mjs";
38
41
  import "./chunk-774WSTCC.mjs";
39
42
  import {
@@ -46,7 +49,7 @@ import { json, useParams } from "react-router-dom";
46
49
 
47
50
  // src/routes/locations/location-service-zone-create/components/create-service-zone-form/create-service-zone-form.tsx
48
51
  import { zodResolver } from "@hookform/resolvers/zod";
49
- import { Button, Heading, InlineTip, Input, toast } from "@medusajs/ui";
52
+ import { Button, Heading, Input, toast } from "@medusajs/ui";
50
53
  import { useForm } from "react-hook-form";
51
54
  import { useTranslation } from "react-i18next";
52
55
  import { z } from "zod";
@@ -124,7 +127,7 @@ function CreateServiceZoneForm({
124
127
  }
125
128
  }
126
129
  ) }),
127
- /* @__PURE__ */ jsx(InlineTip, { label: t("general.tip"), children: t("stockLocations.serviceZones.fields.tip") }),
130
+ /* @__PURE__ */ jsx(InlineTip, { children: t("stockLocations.serviceZones.fields.tip") }),
128
131
  /* @__PURE__ */ jsx(GeoZoneForm, { form })
129
132
  ] }) }),
130
133
  /* @__PURE__ */ jsx(GeoZoneForm.AreaDrawer, { form })
@@ -13,6 +13,9 @@ import {
13
13
  RouteDrawer,
14
14
  useRouteModal
15
15
  } from "./chunk-AYRG2MQL.mjs";
16
+ import {
17
+ InlineTip
18
+ } from "./chunk-53IEL2PE.mjs";
16
19
  import "./chunk-FXYH54JP.mjs";
17
20
  import "./chunk-774WSTCC.mjs";
18
21
  import {
@@ -26,7 +29,7 @@ import { useTranslation as useTranslation2 } from "react-i18next";
26
29
  import { json, useParams } from "react-router-dom";
27
30
 
28
31
  // src/routes/locations/location-service-zone-edit/components/edit-region-form/edit-service-zone-form.tsx
29
- import { Button, InlineTip, Input, toast } from "@medusajs/ui";
32
+ import { Button, Input, toast } from "@medusajs/ui";
30
33
  import { useForm } from "react-hook-form";
31
34
  import { useTranslation } from "react-i18next";
32
35
  import * as zod from "zod";
@@ -88,7 +91,7 @@ var EditServiceZoneForm = ({
88
91
  }
89
92
  }
90
93
  ) }),
91
- /* @__PURE__ */ jsx(InlineTip, { label: t("general.tip"), children: t("stockLocations.serviceZones.fields.tip") })
94
+ /* @__PURE__ */ jsx(InlineTip, { children: t("stockLocations.serviceZones.fields.tip") })
92
95
  ] }) }),
93
96
  /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
94
97
  /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  GeoZoneForm
3
- } from "./chunk-EGUG76J6.mjs";
4
- import "./chunk-NOAFLTPV.mjs";
3
+ } from "./chunk-N6PBCMOV.mjs";
5
4
  import {
6
5
  GEO_ZONE_STACKED_MODAL_ID
7
6
  } from "./chunk-PYIO3TDQ.mjs";
7
+ import "./chunk-NOAFLTPV.mjs";
8
8
  import "./chunk-LQTHYS2Z.mjs";
9
9
  import "./chunk-RAKBTSZ7.mjs";
10
10
  import "./chunk-YEDAFXMB.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-6CNRNROJ.mjs";
19
19
  import {
20
20
  Combobox
21
- } from "./chunk-3LLQ6F7F.mjs";
21
+ } from "./chunk-W6N53UNG.mjs";
22
22
  import {
23
23
  DataGrid
24
24
  } from "./chunk-GE4APTT2.mjs";
@@ -108,11 +108,9 @@ var CreateShippingOptionDetailsForm = ({
108
108
  zone,
109
109
  locationId,
110
110
  fulfillmentProviderOptions,
111
- selectedProviderId,
112
- type
111
+ selectedProviderId
113
112
  }) => {
114
113
  const { t } = useTranslation();
115
- const isPickup = type === "pickup" /* Pickup */;
116
114
  const shippingProfiles = useComboboxData({
117
115
  queryFn: (params) => sdk.admin.shippingProfile.list(params),
118
116
  queryKey: ["shipping_profiles"],
@@ -135,16 +133,16 @@ var CreateShippingOptionDetailsForm = ({
135
133
  return /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8 px-6 py-16", children: [
136
134
  /* @__PURE__ */ jsxs("div", { children: [
137
135
  /* @__PURE__ */ jsx(Heading, { children: t(
138
- `stockLocations.shippingOptions.create.${isPickup ? "pickup" : isReturn ? "returns" : "shipping"}.header`,
136
+ `stockLocations.shippingOptions.create.${isReturn ? "returns" : "shipping"}.header`,
139
137
  {
140
138
  zone: zone.name
141
139
  }
142
140
  ) }),
143
141
  /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t(
144
- `stockLocations.shippingOptions.create.${isReturn ? "returns" : isPickup ? "pickup" : "shipping"}.hint`
142
+ `stockLocations.shippingOptions.create.${isReturn ? "returns" : "shipping"}.hint`
145
143
  ) })
146
144
  ] }),
147
- !isPickup && /* @__PURE__ */ jsx(
145
+ /* @__PURE__ */ jsx(
148
146
  Form.Field,
149
147
  {
150
148
  control: form.control,
@@ -311,14 +309,12 @@ var CreateShippingOptionDetailsForm = ({
311
309
  };
312
310
 
313
311
  // src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-prices-form.tsx
314
- import { useEffect, useMemo, useState } from "react";
312
+ import { useMemo, useState } from "react";
315
313
  import { useWatch } from "react-hook-form";
316
314
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
317
315
  var CreateShippingOptionsPricesForm = ({
318
- form,
319
- type
316
+ form
320
317
  }) => {
321
- const isPickup = type === "pickup" /* Pickup */;
322
318
  const { getIsOpen, setIsOpen } = useStackedModal();
323
319
  const [selectedPrice, setSelectedPrice] = useState(null);
324
320
  const onOpenConditionalPricesModal = (info) => {
@@ -362,20 +358,6 @@ var CreateShippingOptionsPricesForm = ({
362
358
  () => [[...currencies || [], ...regions || []]],
363
359
  [currencies, regions]
364
360
  );
365
- useEffect(() => {
366
- if (!isLoading && isPickup) {
367
- if (currencies.length > 0) {
368
- currencies.forEach((currency) => {
369
- form.setValue(`currency_prices.${currency}`, "0");
370
- });
371
- }
372
- if (regions.length > 0) {
373
- regions.forEach((region) => {
374
- form.setValue(`region_prices.${region.id}`, "0");
375
- });
376
- }
377
- }
378
- }, [isLoading, isPickup]);
379
361
  if (isStoreError) {
380
362
  throw storeError;
381
363
  }
@@ -446,8 +428,7 @@ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
446
428
  function CreateShippingOptionsForm({
447
429
  zone,
448
430
  isReturn,
449
- locationId,
450
- type
431
+ locationId
451
432
  }) {
452
433
  const [activeTab, setActiveTab] = useState2("details" /* DETAILS */);
453
434
  const [validDetails, setValidDetails] = useState2(false);
@@ -667,7 +648,6 @@ function CreateShippingOptionsForm({
667
648
  form,
668
649
  zone,
669
650
  isReturn,
670
- type,
671
651
  locationId,
672
652
  fulfillmentProviderOptions: fulfillmentProviderOptions || [],
673
653
  selectedProviderId
@@ -675,7 +655,7 @@ function CreateShippingOptionsForm({
675
655
  )
676
656
  }
677
657
  ),
678
- /* @__PURE__ */ jsx3(ProgressTabs.Content, { value: "pricing" /* PRICING */, className: "size-full", children: /* @__PURE__ */ jsx3(CreateShippingOptionsPricesForm, { form, type }) })
658
+ /* @__PURE__ */ jsx3(ProgressTabs.Content, { value: "pricing" /* PRICING */, className: "size-full", children: /* @__PURE__ */ jsx3(CreateShippingOptionsPricesForm, { form }) })
679
659
  ] }),
680
660
  /* @__PURE__ */ jsx3(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-end gap-x-2", children: [
681
661
  /* @__PURE__ */ jsx3(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", children: t("actions.cancel") }) }),
@@ -721,16 +701,7 @@ function LocationServiceZoneShippingOptionCreate() {
721
701
  const { stock_location, isPending, isFetching, isError, error } = useStockLocation(location_id, {
722
702
  fields: LOC_CREATE_SHIPPING_OPTION_FIELDS
723
703
  });
724
- const fulfillmentSet = stock_location?.fulfillment_sets?.find(
725
- (f) => f.id === fset_id
726
- );
727
- if (!isPending && !isFetching && !fulfillmentSet) {
728
- throw json(
729
- { message: `Fulfillment set with ID ${fset_id} was not found` },
730
- 404
731
- );
732
- }
733
- const zone = fulfillmentSet?.service_zones?.find((z2) => z2.id === zone_id);
704
+ const zone = stock_location?.fulfillment_sets?.find((f) => f.id === fset_id)?.service_zones?.find((z2) => z2.id === zone_id);
734
705
  if (!isPending && !isFetching && !zone) {
735
706
  throw json(
736
707
  { message: `Service zone with ID ${zone_id} was not found` },
@@ -745,8 +716,7 @@ function LocationServiceZoneShippingOptionCreate() {
745
716
  {
746
717
  zone,
747
718
  isReturn,
748
- locationId: location_id,
749
- type: fulfillmentSet.type
719
+ locationId: location_id
750
720
  }
751
721
  ) });
752
722
  }
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6CNRNROJ.mjs";
10
10
  import {
11
11
  Combobox
12
- } from "./chunk-3LLQ6F7F.mjs";
12
+ } from "./chunk-W6N53UNG.mjs";
13
13
  import {
14
14
  useShippingOptions,
15
15
  useUpdateShippingOptions
@@ -67,12 +67,10 @@ var EditShippingOptionSchema = zod.object({
67
67
  });
68
68
  var EditShippingOptionForm = ({
69
69
  locationId,
70
- shippingOption,
71
- type
70
+ shippingOption
72
71
  }) => {
73
72
  const { t } = useTranslation();
74
73
  const { handleSuccess } = useRouteModal();
75
- const isPickup = type === "pickup" /* Pickup */;
76
74
  const shippingProfiles = useComboboxData({
77
75
  queryFn: (params) => sdk.admin.shippingProfile.list(params),
78
76
  queryKey: ["shipping_profiles"],
@@ -132,7 +130,7 @@ var EditShippingOptionForm = ({
132
130
  });
133
131
  return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex flex-1 flex-col", children: [
134
132
  /* @__PURE__ */ jsx(RouteDrawer.Body, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-8", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-8", children: [
135
- !isPickup && /* @__PURE__ */ jsx(
133
+ /* @__PURE__ */ jsx(
136
134
  Form.Field,
137
135
  {
138
136
  control: form.control,
@@ -242,8 +240,7 @@ var LocationServiceZoneShippingOptionEdit = () => {
242
240
  const { t } = useTranslation2();
243
241
  const { location_id, so_id } = useParams();
244
242
  const { shipping_options, isPending, isFetching, isError, error } = useShippingOptions({
245
- id: so_id,
246
- fields: "+service_zone.fulfillment_set.type"
243
+ id: so_id
247
244
  });
248
245
  const shippingOption = shipping_options?.find((so) => so.id === so_id);
249
246
  if (!isPending && !isFetching && !shippingOption) {
@@ -255,17 +252,13 @@ var LocationServiceZoneShippingOptionEdit = () => {
255
252
  if (isError) {
256
253
  throw error;
257
254
  }
258
- const isPickup = shippingOption?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
259
255
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
260
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t(
261
- `stockLocations.${isPickup ? "pickupOptions" : "shippingOptions"}.edit.header`
262
- ) }) }),
256
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("stockLocations.shippingOptions.edit.header") }) }),
263
257
  shippingOption && /* @__PURE__ */ jsx2(
264
258
  EditShippingOptionForm,
265
259
  {
266
260
  shippingOption,
267
- locationId: location_id,
268
- type: shippingOption.service_zone.fulfillment_set.type
261
+ locationId: location_id
269
262
  }
270
263
  )
271
264
  ] });
@@ -32,10 +32,11 @@ import "./chunk-SY6HAFQV.mjs";
32
32
  import "./chunk-HYULYW73.mjs";
33
33
  import {
34
34
  useDashboardExtension
35
- } from "./chunk-5MEZIE5U.mjs";
35
+ } from "./chunk-VIJAVLIU.mjs";
36
36
  import {
37
37
  isFetchError
38
38
  } from "./chunk-ONB3JEHR.mjs";
39
+ import "./chunk-53IEL2PE.mjs";
39
40
  import "./chunk-5ZZZZK7A.mjs";
40
41
  import "./chunk-FXYH54JP.mjs";
41
42
  import "./chunk-774WSTCC.mjs";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-A2MEYV4D.mjs";
36
36
  import {
37
37
  DEFAULT_FIELDS
38
- } from "./chunk-7I5DQGWY.mjs";
38
+ } from "./chunk-77TK23EH.mjs";
39
39
  import {
40
40
  getStylizedAmount
41
41
  } from "./chunk-PDWBYQOW.mjs";
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunk-MNXC6Q4F.mjs";
61
61
  import {
62
62
  Combobox
63
- } from "./chunk-3LLQ6F7F.mjs";
63
+ } from "./chunk-W6N53UNG.mjs";
64
64
  import {
65
65
  currencies
66
66
  } from "./chunk-MWVM4TYO.mjs";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-AS54JDUL.mjs";
13
13
  import {
14
14
  DEFAULT_FIELDS
15
- } from "./chunk-7I5DQGWY.mjs";
15
+ } from "./chunk-77TK23EH.mjs";
16
16
  import {
17
17
  getStylizedAmount
18
18
  } from "./chunk-PDWBYQOW.mjs";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-A2MEYV4D.mjs";
36
36
  import {
37
37
  DEFAULT_FIELDS
38
- } from "./chunk-7I5DQGWY.mjs";
38
+ } from "./chunk-77TK23EH.mjs";
39
39
  import {
40
40
  getStylizedAmount
41
41
  } from "./chunk-PDWBYQOW.mjs";
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunk-MNXC6Q4F.mjs";
61
61
  import {
62
62
  Combobox
63
- } from "./chunk-3LLQ6F7F.mjs";
63
+ } from "./chunk-W6N53UNG.mjs";
64
64
  import {
65
65
  currencies
66
66
  } from "./chunk-MWVM4TYO.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-OV5NMSY6.mjs";
8
8
  import {
9
9
  DEFAULT_FIELDS
10
- } from "./chunk-7I5DQGWY.mjs";
10
+ } from "./chunk-77TK23EH.mjs";
11
11
  import "./chunk-7DXVXBSA.mjs";
12
12
  import {
13
13
  getLocaleAmount
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-A2MEYV4D.mjs";
23
23
  import {
24
24
  DEFAULT_FIELDS
25
- } from "./chunk-7I5DQGWY.mjs";
25
+ } from "./chunk-77TK23EH.mjs";
26
26
  import {
27
27
  getStylizedAmount
28
28
  } from "./chunk-PDWBYQOW.mjs";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-MNXC6Q4F.mjs";
48
48
  import {
49
49
  Combobox
50
- } from "./chunk-3LLQ6F7F.mjs";
50
+ } from "./chunk-W6N53UNG.mjs";
51
51
  import {
52
52
  currencies
53
53
  } from "./chunk-MWVM4TYO.mjs";