@mercurjs/vendor 2.3.6-canary.0 → 2.3.6-canary.10

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 (215) hide show
  1. package/dist/{[id]-QWI3RWE6.js → [id]-3KQSZR3L.js} +1 -1
  2. package/dist/{[id]-DGDRYOXA.js → [id]-3O3TT4PG.js} +22 -66
  3. package/dist/{[id]-SUL3Y557.js → [id]-4HS3AFWP.js} +30 -29
  4. package/dist/{[id]-XMQMLZD7.js → [id]-ANSCV6IL.js} +29 -18
  5. package/dist/{[id]-QQYIWAS5.js → [id]-AS6S672Q.js} +37 -32
  6. package/dist/{[id]-3TCOLUQH.js → [id]-BFTKEDHY.js} +4 -3
  7. package/dist/{[id]-6ZGJSZKC.js → [id]-D7HBF5NA.js} +40 -27
  8. package/dist/{[id]-DMARVBSH.js → [id]-EGFFDRR4.js} +24 -23
  9. package/dist/{[id]-3UP67OLL.js → [id]-FYRRVBZZ.js} +40 -28
  10. package/dist/{[id]-T7TRQELE.js → [id]-GWIBSEEQ.js} +24 -22
  11. package/dist/{[id]-ZFA3U2AU.js → [id]-IHSO5B72.js} +30 -19
  12. package/dist/{[id]-HP4YGPRA.js → [id]-IMJ6YDKQ.js} +108 -71
  13. package/dist/{[id]-I77TGPCB.js → [id]-P7NZAWSE.js} +16 -16
  14. package/dist/{[id]-ZLTRZVOF.js → [id]-RKTD6MQZ.js} +1 -1
  15. package/dist/{[id]-V3UXNOG3.js → [id]-WYYIBCFV.js} +25 -113
  16. package/dist/{[location_id]-GV5V3UX7.js → [location_id]-K2M7RIV6.js} +35 -21
  17. package/dist/{add-TF35LMT6.js → add-AWFWTD7Y.js} +11 -11
  18. package/dist/{add-QIJFHIEN.js → add-CHGHWEWQ.js} +27 -23
  19. package/dist/{add-customer-groups-XZIG2U2J.js → add-customer-groups-IKUP3Q4T.js} +8 -12
  20. package/dist/{add-products-SQ2GDSFZ.js → add-products-JZTDUTZG.js} +19 -16
  21. package/dist/{add-promotions-M67SJXUX.js → add-promotions-JE3IT6PF.js} +19 -16
  22. package/dist/{add-to-campaign-FWHQHE76.js → add-to-campaign-U4WPKKWF.js} +12 -6
  23. package/dist/{address-LEIF75DM.js → address-6IXPPNZD.js} +3 -5
  24. package/dist/{adjust-inventory-QUOAKTI7.js → adjust-inventory-RAMVDJ4H.js} +6 -2
  25. package/dist/{allocate-items-QAYROQMK.js → allocate-items-PE6DKXXQ.js} +36 -13
  26. package/dist/{areas-F57XNJQH.js → areas-2VLOAWC7.js} +5 -7
  27. package/dist/{breadcrumb-BJ4ACJY6.js → breadcrumb-ANAR7OFI.js} +4 -6
  28. package/dist/{breadcrumb-MXYBRR6Y.js → breadcrumb-IWVKVMML.js} +4 -6
  29. package/dist/{breadcrumb-VZPXSRPJ.js → breadcrumb-UUJ2KDHC.js} +3 -5
  30. package/dist/{campaigns-QXER6MLC.js → campaigns-WJ6VLMWS.js} +7 -9
  31. package/dist/{categories-CDC7V4AD.js → categories-7A5XCNUB.js} +6 -8
  32. package/dist/chunk-3UOYBH5O.js +8 -0
  33. package/dist/{chunk-S5XT7KIL.js → chunk-43XB5SOF.js} +19 -10
  34. package/dist/{chunk-P2BPLLID.js → chunk-4GWGFBV5.js} +1 -1
  35. package/dist/{chunk-INNFZYX2.js → chunk-4RI5QHNO.js} +0 -1
  36. package/dist/{chunk-2DSTAKTK.js → chunk-6CKTPQJL.js} +3 -3
  37. package/dist/chunk-A4MHEFSG.js +196 -0
  38. package/dist/{chunk-27V45JNG.js → chunk-AVDRED5I.js} +1 -1
  39. package/dist/{chunk-INYLPVCG.js → chunk-AWPOH6IK.js} +3 -3
  40. package/dist/{chunk-FPZWASXD.js → chunk-CMZOZFZU.js} +1 -1
  41. package/dist/{chunk-372IUJ3U.js → chunk-D5CDWGYE.js} +1 -1
  42. package/dist/{chunk-IFDFLUKF.js → chunk-DIYWXW7K.js} +19 -8
  43. package/dist/{chunk-PYB3BNZW.js → chunk-DLZGEG6J.js} +8 -4
  44. package/dist/chunk-EIWUECQV.js +19 -0
  45. package/dist/{chunk-KWFSBUD6.js → chunk-ESRIX7ZH.js} +1485 -1411
  46. package/dist/{chunk-BRAZRY7I.js → chunk-EXNGI5EU.js} +1 -1
  47. package/dist/{chunk-4JVORTN4.js → chunk-FND43M4U.js} +35 -15
  48. package/dist/{chunk-L5IEFKWP.js → chunk-GSRMAHJE.js} +306 -59
  49. package/dist/{chunk-SF5N2HX4.js → chunk-HPUEHOQE.js} +13 -3
  50. package/dist/{chunk-KKMA6VPG.js → chunk-HW3QQO3Z.js} +1 -1
  51. package/dist/{chunk-LS3YHJZO.js → chunk-HW6LONKX.js} +7 -6
  52. package/dist/{chunk-MAEP2UCK.js → chunk-J654EXP7.js} +1 -2
  53. package/dist/{chunk-OKJAQM7X.js → chunk-J6VZ25XV.js} +29 -10
  54. package/dist/{chunk-JZTJJXIE.js → chunk-K4DHPZKX.js} +1 -1
  55. package/dist/{chunk-ZWTCVOHQ.js → chunk-KGLQNWMA.js} +6 -1
  56. package/dist/{chunk-MGS4GBO4.js → chunk-KH6YWAFX.js} +2 -2
  57. package/dist/{chunk-CZZWCAN5.js → chunk-LEKY3BLG.js} +5 -5
  58. package/dist/{chunk-VD67WK26.js → chunk-LFUX2JW3.js} +1 -1
  59. package/dist/{chunk-BTQN4KKH.js → chunk-LLRUNGEW.js} +28 -11
  60. package/dist/{chunk-FXOFOHE7.js → chunk-M52LISWR.js} +28 -21
  61. package/dist/{chunk-DIIC7A2J.js → chunk-MKAGFKBV.js} +16 -3
  62. package/dist/{chunk-MP7EYSQR.js → chunk-N3OUMXNV.js} +1 -1
  63. package/dist/{chunk-J75EFK5A.js → chunk-N45KT7VP.js} +13 -3
  64. package/dist/{chunk-ZC2ME3UB.js → chunk-O6NPVVWQ.js} +3 -1
  65. package/dist/{chunk-KKH7K3XV.js → chunk-OHNQU57W.js} +1 -1
  66. package/dist/{chunk-RDLVH6CM.js → chunk-ONQMJ6XX.js} +1 -1
  67. package/dist/{chunk-MP3RJZLD.js → chunk-OSQQD2Z6.js} +1 -22
  68. package/dist/{chunk-K67UE3ON.js → chunk-P7RWZG2D.js} +21 -11
  69. package/dist/{chunk-7MSALRUW.js → chunk-Q3XB5IKS.js} +96 -41
  70. package/dist/{chunk-IRB6EAIZ.js → chunk-S2VRZMKR.js} +2 -2
  71. package/dist/{chunk-6YQR2AWM.js → chunk-SGXPBAWE.js} +24 -40
  72. package/dist/{chunk-L2NJPDUD.js → chunk-SQQTCTTG.js} +1 -17
  73. package/dist/{chunk-H7BSQCXR.js → chunk-SWZYH77J.js} +1 -1
  74. package/dist/chunk-SXFFUU76.js +2865 -0
  75. package/dist/{chunk-XQ47NZJC.js → chunk-TLNMIAXA.js} +1 -1
  76. package/dist/{chunk-T2VHOLCA.js → chunk-TSYOZAKY.js} +11 -63
  77. package/dist/{chunk-MM7HB4WQ.js → chunk-U5U446UX.js} +52 -340
  78. package/dist/{chunk-CPOQJYQA.js → chunk-U6JJXK3G.js} +3 -3
  79. package/dist/{chunk-3SS2LCKQ.js → chunk-UKFEMWID.js} +1 -1
  80. package/dist/{chunk-QORY5QKJ.js → chunk-VD676ADU.js} +18 -11
  81. package/dist/{chunk-W34KDYZA.js → chunk-VHFHMV3X.js} +10 -5
  82. package/dist/{chunk-EZTOWRW3.js → chunk-VU5DJ7UT.js} +21 -12
  83. package/dist/{chunk-U64VSAGN.js → chunk-VUP35A4G.js} +1 -1
  84. package/dist/{chunk-QWMMXTJS.js → chunk-WBS4CTG3.js} +27 -25
  85. package/dist/{chunk-3DOTNN32.js → chunk-WIBM2YZE.js} +15 -3
  86. package/dist/{chunk-TD5VKPIR.js → chunk-WOB5FDJQ.js} +9 -8
  87. package/dist/{chunk-J7V45IKE.js → chunk-XAASERO6.js} +1 -1
  88. package/dist/{chunk-WE756NT7.js → chunk-XR3LEDV6.js} +12 -8
  89. package/dist/{chunk-AFYD5MPA.js → chunk-Y4RJAL2Q.js} +1 -1
  90. package/dist/{chunk-QSOQS4EE.js → chunk-YXJUIFQA.js} +3 -3
  91. package/dist/{chunk-G5NNOOHR.js → chunk-Z6CTOMOU.js} +1 -1
  92. package/dist/{collections-LKPOX523.js → collections-QRXR5T6B.js} +13 -19
  93. package/dist/{create-R4WETVZJ.js → create-3Y65NWBS.js} +29 -25
  94. package/dist/{create-QWKM5M5G.js → create-3YY5BZGH.js} +102 -61
  95. package/dist/{create-62LVK4ZB.js → create-7NFVN6KC.js} +48 -26
  96. package/dist/{create-K2NJHBHH.js → create-BTKGE6I5.js} +4 -6
  97. package/dist/{create-RUABSALH.js → create-F64OZ6AE.js} +17 -20
  98. package/dist/{create-N2AR6DLO.js → create-FJCUJC34.js} +5 -7
  99. package/dist/{create-WPN3OUJU.js → create-FSILPYTR.js} +3 -3
  100. package/dist/{create-ICCAEOSA.js → create-QJA6ZJGP.js} +70 -47
  101. package/dist/{create-XRUMTD7N.js → create-TVPSBARM.js} +14 -11
  102. package/dist/{create-7EUIVS55.js → create-UH2FR6HF.js} +105 -66
  103. package/dist/{create-P37RBGDK.js → create-ZM7BDG4R.js} +21 -12
  104. package/dist/{create-ERCAI2PI.js → create-ZPWVXJ2Q.js} +110 -73
  105. package/dist/{create-GLLQSYQD.js → create-ZXVHEYDZ.js} +5 -7
  106. package/dist/{customer-availability-F2OP7QS5.js → customer-availability-EBUO7VZ2.js} +13 -11
  107. package/dist/{customer-group-add-customers-MR2OSBTY.js → customer-group-add-customers-DUVSOO77.js} +13 -8
  108. package/dist/{customer-group-detail-JZ5MOHES.js → customer-group-detail-FUPDYQGJ.js} +7 -10
  109. package/dist/{customer-groups-JWIU67CG.js → customer-groups-DD7W3RPJ.js} +14 -16
  110. package/dist/{customers-LTS4BBXQ.js → customers-FDGCY475.js} +6 -8
  111. package/dist/{edit-LIUL7GP2.js → edit-2OPGBOKL.js} +3 -5
  112. package/dist/{edit-K4VVN6G3.js → edit-6EOMUHOG.js} +9 -6
  113. package/dist/{edit-QPTRBYJQ.js → edit-B3ZFXRG2.js} +1 -1
  114. package/dist/{edit-JOUC7DPC.js → edit-BIGRH37K.js} +4 -6
  115. package/dist/{edit-JPYFVMNA.js → edit-BJGLNEOY.js} +16 -14
  116. package/dist/{edit-RO7VYRIZ.js → edit-C2ERLQSF.js} +34 -14
  117. package/dist/{edit-67H4MI4N.js → edit-DBR4JU3C.js} +19 -9
  118. package/dist/{edit-EJ5NQJGS.js → edit-FMC5C6VD.js} +1 -1
  119. package/dist/{edit-BRJA6WWU.js → edit-GQLFC5AY.js} +9 -6
  120. package/dist/{edit-E2I2D4SP.js → edit-LKYBLIN7.js} +6 -8
  121. package/dist/{edit-FLABLGHV.js → edit-SH3ACKUG.js} +10 -9
  122. package/dist/{edit-price-QTKLZX6V.js → edit-price-IJNC2VNH.js} +18 -9
  123. package/dist/{edit-reservation-446DRAKQ.js → edit-reservation-TLVYWSUT.js} +8 -5
  124. package/dist/{edit-stock-XVFVYLGU.js → edit-stock-DVFWXRPY.js} +23 -10
  125. package/dist/extension-targets.d.ts +15 -1
  126. package/dist/{fulfillment-KHNLOEZ4.js → fulfillment-3WMJ6DAN.js} +71 -40
  127. package/dist/{fulfillment-providers-5Y3NKLTH.js → fulfillment-providers-TF7GXRQK.js} +24 -19
  128. package/dist/home-2YFO2XMD.js +57 -0
  129. package/dist/index.css +268 -12
  130. package/dist/index.d.ts +1 -3
  131. package/dist/index.js +434 -3759
  132. package/dist/{inventory-P5362DRY.js → inventory-BFTQKWYK.js} +6 -9
  133. package/dist/{inventory-Q3I6Z7AT.js → inventory-OV2QCW25.js} +17 -9
  134. package/dist/{invite-TGSHN6JL.js → invite-KEMOCT7L.js} +8 -14
  135. package/dist/{invite-TEZZQFWW.js → invite-PVWR6QMR.js} +25 -12
  136. package/dist/{locations-V4K3ZW3T.js → locations-E76VEJS6.js} +2 -4
  137. package/dist/{login-I6NQC47V.js → login-3TESKATR.js} +7 -9
  138. package/dist/{manage-items-63FPRK7Z.js → manage-items-NLTC6IZW.js} +32 -18
  139. package/dist/{manage-locations-ZCE7QN4T.js → manage-locations-E2YI2BQZ.js} +13 -2
  140. package/dist/{media-UDWJKTEE.js → media-4JXOSS33.js} +4 -6
  141. package/dist/{media-V26WTPNX.js → media-WONUGWLH.js} +7 -9
  142. package/dist/{metadata-RIPZF3Y4.js → metadata-67K7LJ6H.js} +5 -7
  143. package/dist/{metadata-FYKHWVFY.js → metadata-J6N5GLMG.js} +5 -7
  144. package/dist/{metadata-GJJUXE2R.js → metadata-KQ3FNELH.js} +5 -7
  145. package/dist/{metadata-I6VP5JQG.js → metadata-P4ZXOFK2.js} +5 -7
  146. package/dist/{metadata-O6OX5MPW.js → metadata-PDMTEO6V.js} +5 -7
  147. package/dist/{offer-create-page-JV7YHF3Z.js → offer-create-page-SXVM6TO6.js} +36 -20
  148. package/dist/{offer-detail-page-CYHBXCSJ.js → offer-detail-page-2NNWJUMB.js} +39 -17
  149. package/dist/{offer-variant-detail-page-BQQHAR67.js → offer-variant-detail-page-R2MHHUFX.js} +21 -17
  150. package/dist/{offers-IRFEGWBD.js → offers-ACIXZCFI.js} +13 -18
  151. package/dist/{onboarding-ZW5A2LEG.js → onboarding-T5VAM6VV.js} +10 -7
  152. package/dist/{orders-CQMQBAV7.js → orders-LXUFSBK7.js} +12 -16
  153. package/dist/{organization-YELUM5LQ.js → organization-XLDN7AF6.js} +71 -39
  154. package/dist/pages/index.js +53 -57
  155. package/dist/{payment-details-OWPYCN4N.js → payment-details-4MNF46RW.js} +3 -5
  156. package/dist/{payouts-23RQNMAF.js → payouts-C7MZ44DZ.js} +5 -7
  157. package/dist/{price-lists-3NFRDOFR.js → price-lists-KIXTYR6V.js} +7 -9
  158. package/dist/{pricing-DKX2IPKN.js → pricing-CPZPYNIU.js} +10 -5
  159. package/dist/{pricing-SOHHQXIC.js → pricing-NYMFDWM2.js} +36 -20
  160. package/dist/{product-tags-RMVY5VBE.js → product-tags-NF2VHHLS.js} +17 -23
  161. package/dist/{product-types-B4RL7RCW.js → product-types-VWQOKX46.js} +7 -11
  162. package/dist/{product-variant-detail-OCWJDILZ.js → product-variant-detail-FPXXLCOT.js} +23 -17
  163. package/dist/{product-variant-edit-ORLH3GH2.js → product-variant-edit-QG5ZEJFT.js} +5 -7
  164. package/dist/{products-XXR5X5WL.js → products-SWB5VGL3.js} +21 -24
  165. package/dist/{products-Z7IZBB5V.js → products-VV5VT2IN.js} +19 -16
  166. package/dist/{professional-details-PKUMISZZ.js → professional-details-C55Y6JT2.js} +3 -5
  167. package/dist/{profile-FTPHSYCX.js → profile-YEZVWGU4.js} +7 -10
  168. package/dist/{promotions-R66OE35H.js → promotions-XXJGALJ4.js} +11 -13
  169. package/dist/{receive-RRZK3FP2.js → receive-6UIBHJSV.js} +34 -18
  170. package/dist/{refund-FLCZAMPR.js → refund-CFNDFKYB.js} +36 -12
  171. package/dist/{register-T2XSCP6I.js → register-N6Q6SLFX.js} +22 -15
  172. package/dist/{reservations-JLXQIXHB.js → reservations-AEYROZK6.js} +20 -17
  173. package/dist/{reset-password-MGQZARZD.js → reset-password-JXYR6B3X.js} +1 -1
  174. package/dist/{return-reasons-VQ7RS4DA.js → return-reasons-PDWS4ONE.js} +16 -20
  175. package/dist/{reviews-LBLCFBRQ.js → reviews-WB5AUOXN.js} +1 -1
  176. package/dist/{sales-channels-T5V6WTXM.js → sales-channels-DMWGW7CM.js} +10 -5
  177. package/dist/{sales-channels-DUMO3GMT.js → sales-channels-Q333DZVU.js} +10 -5
  178. package/dist/settings-UMETMOBF.js +41 -0
  179. package/dist/{shipment-P6VTMH5Q.js → shipment-YTYE2UIX.js} +3 -5
  180. package/dist/{shipping-6AB5ZGWE.js → shipping-MLPJKAHR.js} +41 -17
  181. package/dist/{shipping-profile-7P3RPEIJ.js → shipping-profile-7F74LJ5W.js} +24 -10
  182. package/dist/{shipping-profiles-VSREDGWI.js → shipping-profiles-M6X7EZ73.js} +8 -12
  183. package/dist/{stock-SOOPTVQ3.js → stock-BLFYUMVX.js} +20 -13
  184. package/dist/{store-GLZATKS6.js → store-CEQZT4FF.js} +47 -46
  185. package/dist/{store-closure-O6E5VV4C.js → store-closure-UZMWOAMV.js} +3 -5
  186. package/dist/{store-select-7FVUSNIV.js → store-select-TBLBB72Q.js} +6 -8
  187. package/dist/{team-5QN3RLLP.js → team-BEA4EMHL.js} +18 -19
  188. package/package.json +14 -14
  189. package/dist/[id]-XKA7KISN.js +0 -330
  190. package/dist/[province_id]-23JBZ3BX.js +0 -210
  191. package/dist/chunk-AYVH6Q5O.js +0 -31
  192. package/dist/chunk-CWCR5ZLS.js +0 -107
  193. package/dist/chunk-E3EB44VM.js +0 -185
  194. package/dist/chunk-FV76G2D7.js +0 -89
  195. package/dist/chunk-GHDLST2P.js +0 -67
  196. package/dist/chunk-KCHYLLVG.js +0 -134
  197. package/dist/chunk-MDFKI2FL.js +0 -36
  198. package/dist/chunk-MG4GKUJW.js +0 -31
  199. package/dist/chunk-N2TQXB44.js +0 -1280
  200. package/dist/chunk-Q3YIXMVC.js +0 -719
  201. package/dist/chunk-Q4UVXS46.js +0 -14
  202. package/dist/chunk-QDPLZDMX.js +0 -17
  203. package/dist/chunk-R53PVMSJ.js +0 -254
  204. package/dist/chunk-XVILDST7.js +0 -543
  205. package/dist/chunk-YN3FGNJM.js +0 -122
  206. package/dist/create-3SBSLZQO.js +0 -194
  207. package/dist/create-5XXJTZSK.js +0 -230
  208. package/dist/create-E4BS73BX.js +0 -634
  209. package/dist/create-T3KSWODJ.js +0 -310
  210. package/dist/edit-NPZARFKL.js +0 -747
  211. package/dist/edit-RRA6J5FW.js +0 -193
  212. package/dist/home-I3OILW5Z.js +0 -16
  213. package/dist/settings-GX3SQTCF.js +0 -117
  214. package/dist/tax-regions-SLN3LO5X.js +0 -90
  215. package/dist/{chunk-BQJSBWOC.js → chunk-KMHHWTP3.js} +3 -3
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-YV6MK4PZ.js";
8
8
  import {
9
9
  SingleColumnPageSkeleton
10
- } from "./chunk-INNFZYX2.js";
10
+ } from "./chunk-4RI5QHNO.js";
11
11
  import {
12
12
  usePayout
13
13
  } from "./chunk-J2XUEO2E.js";
@@ -1,18 +1,15 @@
1
- import {
2
- useDeleteProductTypeAction
3
- } from "./chunk-MDFKI2FL.js";
4
1
  import {
5
2
  useProductTableColumns
6
- } from "./chunk-BRAZRY7I.js";
3
+ } from "./chunk-EXNGI5EU.js";
7
4
  import "./chunk-6XMUN2BZ.js";
8
- import "./chunk-P2BPLLID.js";
5
+ import "./chunk-4GWGFBV5.js";
9
6
  import {
10
7
  useProductTableQuery
11
8
  } from "./chunk-BEPAXQMU.js";
12
9
  import "./chunk-FWPGOIFA.js";
13
10
  import {
14
11
  useProductTableFilters
15
- } from "./chunk-QORY5QKJ.js";
12
+ } from "./chunk-VD676ADU.js";
16
13
  import "./chunk-DB6ANJBO.js";
17
14
  import "./chunk-PHOCVOZ5.js";
18
15
  import {
@@ -22,38 +19,30 @@ import "./chunk-FQERBIVS.js";
22
19
  import {
23
20
  _DataTable,
24
21
  useDataTable
25
- } from "./chunk-L5IEFKWP.js";
26
- import "./chunk-YN3FGNJM.js";
27
- import "./chunk-KCHYLLVG.js";
28
- import "./chunk-3DOTNN32.js";
22
+ } from "./chunk-GSRMAHJE.js";
23
+ import "./chunk-WIBM2YZE.js";
29
24
  import "./chunk-THHRRYRS.js";
30
25
  import "./chunk-WQ467F7S.js";
31
- import "./chunk-KWFSBUD6.js";
26
+ import "./chunk-ESRIX7ZH.js";
27
+ import "./chunk-Y7QKP6QU.js";
32
28
  import "./chunk-WIYFXWRI.js";
33
29
  import {
34
30
  SingleColumnPageSkeleton
35
- } from "./chunk-INNFZYX2.js";
36
- import {
37
- ActionMenu
38
- } from "./chunk-CWCR5ZLS.js";
39
- import "./chunk-LAVHRER2.js";
31
+ } from "./chunk-4RI5QHNO.js";
40
32
  import "./chunk-QFKER4GM.js";
41
- import "./chunk-Y7QKP6QU.js";
42
- import "./chunk-6YQR2AWM.js";
33
+ import "./chunk-SGXPBAWE.js";
43
34
  import "./chunk-K5324KIX.js";
44
- import "./chunk-FV76G2D7.js";
45
- import "./chunk-GHDLST2P.js";
46
- import "./chunk-YVYYOBAE.js";
47
35
  import {
48
36
  productTypesQueryKeys,
49
37
  useProductType
50
- } from "./chunk-L2NJPDUD.js";
38
+ } from "./chunk-SQQTCTTG.js";
39
+ import "./chunk-YVYYOBAE.js";
51
40
  import "./chunk-7LIENHWP.js";
52
41
  import "./chunk-NV2RZAHW.js";
53
42
  import "./chunk-MR6REQKT.js";
54
43
  import "./chunk-JBV2QQYF.js";
55
44
  import "./chunk-BHEU34FL.js";
56
- import "./chunk-W34KDYZA.js";
45
+ import "./chunk-VHFHMV3X.js";
57
46
  import "./chunk-II3CLUXA.js";
58
47
  import "./chunk-OCYVN77Z.js";
59
48
  import "./chunk-J2XUEO2E.js";
@@ -94,59 +83,26 @@ var productTypeLoader = async ({ params }) => {
94
83
  // src/pages/settings/product-types/[id]/product-type-detail-page.tsx
95
84
  import { Children } from "react";
96
85
  import { useLoaderData, useParams } from "react-router-dom";
97
- import { WidgetZone } from "@mercurjs/dashboard-shared";
86
+ import { PermissionGuard, WidgetZone } from "@mercurjs/dashboard-shared";
98
87
 
99
88
  // src/pages/settings/product-types/[id]/_components/product-type-general-section.tsx
100
- import { PencilSquare, Trash } from "@medusajs/icons";
101
89
  import { Container, Heading } from "@medusajs/ui";
102
- import { useTranslation } from "react-i18next";
103
- import { jsx, jsxs } from "react/jsx-runtime";
90
+ import { jsx } from "react/jsx-runtime";
104
91
  var ProductTypeGeneralSection = ({
105
92
  productType
106
93
  }) => {
107
- const { t } = useTranslation();
108
- const handleDelete = useDeleteProductTypeAction(productType.id);
109
- return /* @__PURE__ */ jsxs(Container, { className: "flex items-center justify-between", children: [
110
- /* @__PURE__ */ jsx(Heading, { children: productType.value }),
111
- /* @__PURE__ */ jsx(
112
- ActionMenu,
113
- {
114
- groups: [
115
- {
116
- actions: [
117
- {
118
- permission: "product_type:update",
119
- label: t("actions.edit"),
120
- icon: /* @__PURE__ */ jsx(PencilSquare, {}),
121
- to: "edit"
122
- }
123
- ]
124
- },
125
- {
126
- actions: [
127
- {
128
- permission: "product_type:delete",
129
- label: t("actions.delete"),
130
- icon: /* @__PURE__ */ jsx(Trash, {}),
131
- onClick: handleDelete
132
- }
133
- ]
134
- }
135
- ]
136
- }
137
- )
138
- ] });
94
+ return /* @__PURE__ */ jsx(Container, { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(Heading, { children: productType.value }) });
139
95
  };
140
96
 
141
97
  // src/pages/settings/product-types/[id]/_components/product-type-product-section.tsx
142
98
  import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
143
- import { useTranslation as useTranslation2 } from "react-i18next";
144
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
99
+ import { useTranslation } from "react-i18next";
100
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
145
101
  var PAGE_SIZE = 10;
146
102
  var ProductTypeProductSection = ({
147
103
  productType
148
104
  }) => {
149
- const { t } = useTranslation2();
105
+ const { t } = useTranslation();
150
106
  const { searchParams, raw } = useProductTableQuery({
151
107
  pageSize: PAGE_SIZE
152
108
  });
@@ -167,7 +123,7 @@ var ProductTypeProductSection = ({
167
123
  if (isError) {
168
124
  throw error;
169
125
  }
170
- return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
126
+ return /* @__PURE__ */ jsxs(Container2, { className: "divide-y p-0", children: [
171
127
  /* @__PURE__ */ jsx2("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("products.domain") }) }),
172
128
  /* @__PURE__ */ jsx2(
173
129
  _DataTable,
@@ -193,7 +149,7 @@ var ProductTypeProductSection = ({
193
149
  };
194
150
 
195
151
  // src/pages/settings/product-types/[id]/product-type-detail-page.tsx
196
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
152
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
197
153
  var Root = ({ children }) => {
198
154
  const { id } = useParams();
199
155
  const initialData = useLoaderData();
@@ -210,9 +166,9 @@ var Root = ({ children }) => {
210
166
  if (isError) {
211
167
  throw error;
212
168
  }
213
- return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-types.detail.main", data: product_type, children: [
169
+ return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(WidgetZone, { id: "product-types.detail.main", data: product_type, children: [
214
170
  /* @__PURE__ */ jsx3(ProductTypeGeneralSection, { productType: product_type }),
215
- /* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type })
171
+ /* @__PURE__ */ jsx3(PermissionGuard, { permission: "products:view", children: /* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type }) })
216
172
  ] }) });
217
173
  };
218
174
  var ProductTypeDetailPage = Object.assign(Root, {
@@ -12,6 +12,7 @@ import "./chunk-JRTZWK77.js";
12
12
  import {
13
13
  PlaceholderCell
14
14
  } from "./chunk-PHOCVOZ5.js";
15
+ import "./chunk-LAVHRER2.js";
15
16
  import {
16
17
  SectionRow
17
18
  } from "./chunk-4TLP3TAA.js";
@@ -26,40 +27,35 @@ import "./chunk-FQERBIVS.js";
26
27
  import {
27
28
  _DataTable,
28
29
  useDataTable
29
- } from "./chunk-L5IEFKWP.js";
30
- import "./chunk-YN3FGNJM.js";
31
- import "./chunk-KCHYLLVG.js";
32
- import "./chunk-3DOTNN32.js";
30
+ } from "./chunk-GSRMAHJE.js";
31
+ import "./chunk-WIBM2YZE.js";
33
32
  import {
34
33
  useQueryParams
35
34
  } from "./chunk-THHRRYRS.js";
35
+ import {
36
+ ActionMenu
37
+ } from "./chunk-3UOYBH5O.js";
36
38
  import {
37
39
  useDate
38
40
  } from "./chunk-WQ467F7S.js";
41
+ import "./chunk-Y7QKP6QU.js";
39
42
  import {
40
43
  Thumbnail
41
44
  } from "./chunk-WIYFXWRI.js";
42
45
  import {
43
46
  TwoColumnPageSkeleton
44
- } from "./chunk-INNFZYX2.js";
45
- import {
46
- ActionMenu
47
- } from "./chunk-CWCR5ZLS.js";
48
- import "./chunk-LAVHRER2.js";
47
+ } from "./chunk-4RI5QHNO.js";
49
48
  import "./chunk-QFKER4GM.js";
50
- import "./chunk-Y7QKP6QU.js";
51
- import "./chunk-6YQR2AWM.js";
49
+ import "./chunk-SGXPBAWE.js";
52
50
  import "./chunk-K5324KIX.js";
53
- import "./chunk-FV76G2D7.js";
54
- import "./chunk-GHDLST2P.js";
51
+ import "./chunk-SQQTCTTG.js";
55
52
  import "./chunk-YVYYOBAE.js";
56
- import "./chunk-L2NJPDUD.js";
57
53
  import "./chunk-7LIENHWP.js";
58
54
  import "./chunk-NV2RZAHW.js";
59
55
  import "./chunk-MR6REQKT.js";
60
56
  import "./chunk-JBV2QQYF.js";
61
57
  import "./chunk-BHEU34FL.js";
62
- import "./chunk-W34KDYZA.js";
58
+ import "./chunk-VHFHMV3X.js";
63
59
  import "./chunk-II3CLUXA.js";
64
60
  import "./chunk-OCYVN77Z.js";
65
61
  import "./chunk-J2XUEO2E.js";
@@ -135,7 +131,7 @@ var InventoryItemAttributeSection = ({
135
131
  {
136
132
  actions: [
137
133
  {
138
- permission: "inventory_item:update",
134
+ permission: "inventory_items:edit",
139
135
  label: t("actions.edit"),
140
136
  to: "attributes",
141
137
  icon: /* @__PURE__ */ jsx(PencilSquare, {})
@@ -230,7 +226,7 @@ var InventoryItemGeneralSection = ({
230
226
  actions: [
231
227
  {
232
228
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
233
- permission: "inventory_item:update",
229
+ permission: "inventory_items:edit",
234
230
  label: t("actions.edit"),
235
231
  to: "edit"
236
232
  }
@@ -319,7 +315,7 @@ var InventoryItemGeneralSection = ({
319
315
  import { Button, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
320
316
  import { useTranslation as useTranslation6 } from "react-i18next";
321
317
  import { Link } from "react-router-dom";
322
- import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
318
+ import { DisplayExtensionZone as DisplayExtensionZone3, PermissionAction } from "@mercurjs/dashboard-shared";
323
319
 
324
320
  // src/pages/inventory/[id]/_components/location-levels-table/use-location-list-table-columns.tsx
325
321
  import { createColumnHelper } from "@tanstack/react-table";
@@ -364,7 +360,7 @@ var LocationActions = ({ level }) => {
364
360
  actions: [
365
361
  {
366
362
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
367
- permission: "inventory_item:update",
363
+ permission: "inventory_items:edit",
368
364
  label: t("actions.edit"),
369
365
  to: `locations/${level.location_id}`
370
366
  }
@@ -374,7 +370,7 @@ var LocationActions = ({ level }) => {
374
370
  actions: [
375
371
  {
376
372
  icon: /* @__PURE__ */ jsx3(Trash, {}),
377
- permission: "inventory_item:delete",
373
+ permission: "inventory_items:manage",
378
374
  label: t("actions.delete"),
379
375
  onClick: handleDelete,
380
376
  disabled: level.reserved_quantity > 0 || level.stocked_quantity > 0
@@ -531,7 +527,7 @@ var InventoryItemLocationLevelsSection = ({
531
527
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
532
528
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
533
529
  /* @__PURE__ */ jsx6(Heading3, { children: t("inventory.locationLevels") }),
534
- /* @__PURE__ */ jsx6(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx6(Link, { to: "locations", children: t("inventory.manageLocations") }) })
530
+ /* @__PURE__ */ jsx6(PermissionAction, { permission: "inventory_items:edit", children: /* @__PURE__ */ jsx6(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx6(Link, { to: "locations", children: t("inventory.manageLocations") }) }) })
535
531
  ] }),
536
532
  /* @__PURE__ */ jsx6(ItemLocationListTable, { inventory_item_id: inventoryItem.id }),
537
533
  /* @__PURE__ */ jsx6(
@@ -547,11 +543,12 @@ var InventoryItemLocationLevelsSection = ({
547
543
 
548
544
  // src/pages/inventory/[id]/_components/inventory-item-reservations.tsx
549
545
  import { Button as Button2, Container as Container4, Heading as Heading4 } from "@medusajs/ui";
550
- import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
546
+ import { DisplayExtensionZone as DisplayExtensionZone4, PermissionAction as PermissionAction2 } from "@mercurjs/dashboard-shared";
551
547
  import { useTranslation as useTranslation11 } from "react-i18next";
552
548
  import { Link as Link2 } from "react-router-dom";
553
549
 
554
550
  // src/pages/inventory/[id]/_components/reservations-table/reservation-list-table.tsx
551
+ import { useCan } from "@mercurjs/dashboard-shared";
555
552
  import { useMemo as useMemo3 } from "react";
556
553
  import { useTranslation as useTranslation10 } from "react-i18next";
557
554
 
@@ -629,7 +626,7 @@ var ReservationActions = ({
629
626
  actions: [
630
627
  {
631
628
  icon: /* @__PURE__ */ jsx8(PencilSquare4, {}),
632
- permission: "inventory_item:update",
629
+ permission: "reservations:edit",
633
630
  label: t("actions.edit"),
634
631
  to: `/reservations/${reservation.id}/edit`
635
632
  }
@@ -639,7 +636,7 @@ var ReservationActions = ({
639
636
  actions: [
640
637
  {
641
638
  icon: /* @__PURE__ */ jsx8(Trash2, {}),
642
- permission: "inventory_item:delete",
639
+ permission: "reservations:manage",
643
640
  label: t("actions.delete"),
644
641
  onClick: handleDelete
645
642
  }
@@ -758,9 +755,13 @@ var ReservationItemTable = ({
758
755
  fields: "+line_item.order_id",
759
756
  inventory_item_id: [inventoryItem.id]
760
757
  });
761
- const { stock_locations } = useStockLocations({
762
- id: (reservations || []).map((r) => r.location_id)
763
- });
758
+ const canViewLocations = useCan("stock_locations");
759
+ const { stock_locations } = useStockLocations(
760
+ {
761
+ id: (reservations || []).map((r) => r.location_id)
762
+ },
763
+ { enabled: canViewLocations }
764
+ );
764
765
  const data = useMemo3(() => {
765
766
  const locationMap = new Map((stock_locations || []).map((l) => [l.id, l]));
766
767
  return (reservations || []).map((r) => ({
@@ -814,7 +815,7 @@ var InventoryItemReservationsSection = ({
814
815
  "data-testid": "inventory-item-reservations-header",
815
816
  children: [
816
817
  /* @__PURE__ */ jsx11(Heading4, { "data-testid": "inventory-item-reservations-title", children: t("reservations.domain") }),
817
- /* @__PURE__ */ jsx11(
818
+ /* @__PURE__ */ jsx11(PermissionAction2, { permission: "reservations:edit", children: /* @__PURE__ */ jsx11(
818
819
  Button2,
819
820
  {
820
821
  size: "small",
@@ -823,7 +824,7 @@ var InventoryItemReservationsSection = ({
823
824
  "data-testid": "inventory-create-reservation-button",
824
825
  children: /* @__PURE__ */ jsx11(Link2, { to: `/reservations/create?item_id=${inventoryItem.id}`, children: t("actions.create") })
825
826
  }
826
- )
827
+ ) })
827
828
  ]
828
829
  }
829
830
  ),
@@ -1,6 +1,3 @@
1
- import {
2
- formatPercentage
3
- } from "./chunk-QDPLZDMX.js";
4
1
  import {
5
2
  BadgeListSummary
6
3
  } from "./chunk-QLOJNFUE.js";
@@ -9,25 +6,23 @@ import {
9
6
  } from "./chunk-T7BYPH4H.js";
10
7
  import {
11
8
  getPromotionStatus
12
- } from "./chunk-H7BSQCXR.js";
9
+ } from "./chunk-SWZYH77J.js";
13
10
  import "./chunk-FMFVTERD.js";
14
- import "./chunk-MM7HB4WQ.js";
11
+ import "./chunk-U5U446UX.js";
15
12
  import {
16
13
  TwoColumnPage
17
14
  } from "./chunk-YV6MK4PZ.js";
18
15
  import {
19
16
  NoRecords
20
- } from "./chunk-3DOTNN32.js";
17
+ } from "./chunk-WIBM2YZE.js";
18
+ import {
19
+ ActionMenu
20
+ } from "./chunk-3UOYBH5O.js";
21
21
  import "./chunk-WQ467F7S.js";
22
22
  import {
23
23
  TwoColumnPageSkeleton
24
- } from "./chunk-INNFZYX2.js";
25
- import {
26
- ActionMenu
27
- } from "./chunk-CWCR5ZLS.js";
28
- import "./chunk-LAVHRER2.js";
24
+ } from "./chunk-4RI5QHNO.js";
29
25
  import "./chunk-QFKER4GM.js";
30
- import "./chunk-Y7QKP6QU.js";
31
26
  import {
32
27
  promotionsQueryKeys,
33
28
  useDeletePromotion,
@@ -103,7 +98,7 @@ var CampaignSection = ({
103
98
  const warning = campaign && promotion?.status !== "active" ? t("promotions.campaignSection.warnings.promotionMustBeActive") : campaign?.ends_at ? t("promotions.campaignSection.warnings.promotionExpires") : void 0;
104
99
  const actions = [
105
100
  {
106
- permission: "promotion:update",
101
+ permission: "promotions:edit",
107
102
  label: t("actions.edit"),
108
103
  to: "add-to-campaign",
109
104
  icon: /* @__PURE__ */ jsx(PencilSquare, {})
@@ -138,7 +133,8 @@ var CampaignSection = ({
138
133
  message: t("promotions.campaignSection.noRecordsMessage"),
139
134
  action: {
140
135
  to: `/promotions/${id}/add-to-campaign`,
141
- label: t("promotions.campaignSection.addToCampaign")
136
+ label: t("promotions.campaignSection.addToCampaign"),
137
+ permission: "promotions:edit"
142
138
  }
143
139
  }
144
140
  ),
@@ -197,7 +193,7 @@ var PromotionConditionsSection = ({
197
193
  actions: [
198
194
  {
199
195
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
200
- permission: "promotion:update",
196
+ permission: "promotions:edit",
201
197
  label: t("actions.edit"),
202
198
  to: `${ruleType}/edit`
203
199
  }
@@ -216,7 +212,8 @@ var PromotionConditionsSection = ({
216
212
  message: t("promotions.conditions.list.noRecordsMessage"),
217
213
  action: {
218
214
  to: `${ruleType}/edit`,
219
- label: t("promotions.conditions.add")
215
+ label: t("promotions.conditions.add"),
216
+ permission: "promotions:edit"
220
217
  }
221
218
  }
222
219
  ),
@@ -257,6 +254,20 @@ var formatCurrency = (amount, currency) => {
257
254
  }).format(amount);
258
255
  };
259
256
 
257
+ // src/lib/percentage-helpers.ts
258
+ var formatter = new Intl.NumberFormat([], {
259
+ style: "percent",
260
+ minimumFractionDigits: 2,
261
+ maximumFractionDigits: 4
262
+ });
263
+ var formatPercentage = (value, isPercentageValue = false) => {
264
+ let val = value || 0;
265
+ if (!isPercentageValue) {
266
+ val = val / 100;
267
+ }
268
+ return formatter.format(val);
269
+ };
270
+
260
271
  // src/pages/promotions/[id]/_components/promotion-general-section/promotion-general-section.tsx
261
272
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
262
273
  function getTypeLabelKey(promotion) {
@@ -341,7 +352,7 @@ var PromotionGeneralSection = ({
341
352
  actions: [
342
353
  {
343
354
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
344
- permission: "promotion:update",
355
+ permission: "promotions:edit",
345
356
  label: t("actions.edit"),
346
357
  to: `/promotions/${promotion.id}/edit`
347
358
  }
@@ -351,7 +362,7 @@ var PromotionGeneralSection = ({
351
362
  actions: [
352
363
  {
353
364
  icon: /* @__PURE__ */ jsx3(Trash, {}),
354
- permission: "promotion:delete",
365
+ permission: "promotions:manage",
355
366
  label: t("actions.delete"),
356
367
  onClick: handleDelete
357
368
  }