@mercurjs/vendor 2.2.0-rc.3 → 2.2.1-canary.0

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 (200) hide show
  1. package/dist/{[id]-OV5VX7KD.js → [id]-4H5PHF5Y.js} +12 -12
  2. package/dist/{[id]-LJABCC3D.js → [id]-DO6VH55G.js} +14 -14
  3. package/dist/{[id]-RFC2YGFT.js → [id]-JZSYMEEU.js} +3 -3
  4. package/dist/{[id]-AXGVRF7M.js → [id]-L3SFKXZ7.js} +9 -9
  5. package/dist/{[id]-NGB5OLRW.js → [id]-ME4FNZNO.js} +77 -240
  6. package/dist/{[id]-VKEADKFV.js → [id]-OHHNUQEA.js} +13 -13
  7. package/dist/{[id]-FOWK6QIJ.js → [id]-UPNT4QPB.js} +14 -14
  8. package/dist/{[id]-H3YKIFO3.js → [id]-URI4QFRU.js} +81 -32
  9. package/dist/{[id]-WUXFJPPB.js → [id]-V4RDXDN5.js} +7 -7
  10. package/dist/{[id]-IFWREJVP.js → [id]-X75OHEV7.js} +13 -13
  11. package/dist/{[id]-DKF4YEXN.js → [id]-XMJLPBNR.js} +10 -10
  12. package/dist/{[id]-3GF4DR5K.js → [id]-ZD5HBP2R.js} +11 -11
  13. package/dist/{[location_id]-ZG5GZKHC.js → [location_id]-CJDVYICJ.js} +1 -1
  14. package/dist/{[province_id]-KEDQTW6S.js → [province_id]-4WMI4GFG.js} +9 -9
  15. package/dist/{add-HARVSLKD.js → add-Q4A7JELU.js} +14 -14
  16. package/dist/{add-IEIH4CBT.js → add-YEUSE5QA.js} +9 -9
  17. package/dist/{add-customer-groups-EJIRM264.js → add-customer-groups-U2VVS2U4.js} +9 -9
  18. package/dist/{add-products-MW2JYTSJ.js → add-products-GVD6RS4H.js} +13 -13
  19. package/dist/{add-promotions-7KCUDY3S.js → add-promotions-C4EVHYS6.js} +7 -7
  20. package/dist/{add-to-campaign-B7RFNWPF.js → add-to-campaign-WBSCTSKW.js} +2 -2
  21. package/dist/{address-CP2MSWLA.js → address-ZMZ4ST5T.js} +7 -7
  22. package/dist/{adjust-inventory-CQPDV5X7.js → adjust-inventory-QUGKDXOC.js} +1 -1
  23. package/dist/{allocate-items-646J75L2.js → allocate-items-7NSBGXSF.js} +2 -2
  24. package/dist/{areas-VO7NUUUL.js → areas-V6PALYZ5.js} +3 -3
  25. package/dist/{attributes-HU6I723C.js → attributes-6KZMMR7U.js} +1 -1
  26. package/dist/{breadcrumb-3M7RKX5V.js → breadcrumb-C7M5PG2Q.js} +7 -7
  27. package/dist/{breadcrumb-X5TTCKIB.js → breadcrumb-CX5327S5.js} +1 -1
  28. package/dist/{breadcrumb-C7X6FV2H.js → breadcrumb-JWFTKHLE.js} +2 -2
  29. package/dist/{breadcrumb-4Z7NR2BO.js → breadcrumb-KLNC72RI.js} +2 -2
  30. package/dist/{breadcrumb-HK53R6S2.js → breadcrumb-KNBZ3JNR.js} +1 -1
  31. package/dist/{breadcrumb-UVODV3YP.js → breadcrumb-M657ZCG6.js} +2 -2
  32. package/dist/{breadcrumb-KV6K64PW.js → breadcrumb-M6NW3DRQ.js} +1 -1
  33. package/dist/{breadcrumb-TPITDYD7.js → breadcrumb-MXYWEBK6.js} +7 -7
  34. package/dist/{breadcrumb-FF7H3XPP.js → breadcrumb-NBO7UIBV.js} +2 -2
  35. package/dist/{breadcrumb-EAYZVNKS.js → breadcrumb-QPV566YX.js} +7 -7
  36. package/dist/{campaigns-JKFMRYZE.js → campaigns-JVLK7PZZ.js} +3 -3
  37. package/dist/{categories-2PGWWGP6.js → categories-V5UXBO7N.js} +5 -5
  38. package/dist/{chunk-P7UBW2EI.js → chunk-2S2WK2OG.js} +1 -1
  39. package/dist/{chunk-AAKR2CB4.js → chunk-3GSR455R.js} +1 -1
  40. package/dist/{chunk-DSNCEHLY.js → chunk-3WQSQ46M.js} +54 -12
  41. package/dist/{chunk-53JNB4BP.js → chunk-4E26HOEQ.js} +3 -3
  42. package/dist/{chunk-B25W27XK.js → chunk-4PLH6C5Y.js} +2 -2
  43. package/dist/{chunk-52KJSIHS.js → chunk-4UQMRTSC.js} +1393 -1359
  44. package/dist/{chunk-D6XR2USM.js → chunk-5YRE7YS6.js} +6 -6
  45. package/dist/{chunk-DHARUTMI.js → chunk-63F4K3JV.js} +1 -1
  46. package/dist/{chunk-RPMYKDNA.js → chunk-6VKJM537.js} +1 -1
  47. package/dist/{chunk-2GVPLCQR.js → chunk-72HQFLZI.js} +1 -1
  48. package/dist/{chunk-ORI73OPX.js → chunk-7BIBEQTK.js} +1 -1
  49. package/dist/{chunk-YVI3LZ3X.js → chunk-7LSQNTWJ.js} +5 -5
  50. package/dist/{chunk-ZZ4JC4WE.js → chunk-A2KHOOJJ.js} +305 -271
  51. package/dist/{chunk-F4ORNDFU.js → chunk-B6PFCERY.js} +1 -1
  52. package/dist/{chunk-P76QYIFF.js → chunk-BTQN4KKH.js} +1 -1
  53. package/dist/{chunk-JDMNEMRJ.js → chunk-BX3JE7IE.js} +1 -1
  54. package/dist/{chunk-54SCBOWD.js → chunk-BZ62QUXM.js} +5 -5
  55. package/dist/{chunk-3IZSQI6K.js → chunk-CQ2LZLMZ.js} +1 -1
  56. package/dist/{chunk-656G74I2.js → chunk-DETQ6IBQ.js} +1 -1
  57. package/dist/{chunk-YAUGB4LD.js → chunk-EMUCGKHP.js} +19 -23
  58. package/dist/{chunk-D6RN3ONJ.js → chunk-EPSRO7C5.js} +2 -2
  59. package/dist/{chunk-6PSJJHI4.js → chunk-GIKVFOQL.js} +1 -1
  60. package/dist/{chunk-DSY5PNK6.js → chunk-HCUIYIIY.js} +1 -1
  61. package/dist/{chunk-SCPQYA26.js → chunk-HJKH5CIN.js} +1 -1
  62. package/dist/{chunk-KUH5ZX7G.js → chunk-IMIPUUZG.js} +1 -1
  63. package/dist/chunk-J75EFK5A.js +59 -0
  64. package/dist/{chunk-IP6TSKUQ.js → chunk-JB32ZD4Y.js} +2 -2
  65. package/dist/chunk-MDABSESI.js +38 -0
  66. package/dist/{chunk-UWU6VSO4.js → chunk-MJDXUH62.js} +2 -2
  67. package/dist/{chunk-RSOV55K7.js → chunk-NIBVITRN.js} +1 -1
  68. package/dist/{chunk-XKEYHWBS.js → chunk-OCYVN77Z.js} +1 -1
  69. package/dist/{chunk-DIAWPVYS.js → chunk-OGUTFP6B.js} +1 -1
  70. package/dist/{chunk-OCS24TF4.js → chunk-OTBX6TP5.js} +1 -1
  71. package/dist/{chunk-OZ2UHCWA.js → chunk-OZJVEN6Y.js} +1 -1
  72. package/dist/{chunk-N7YRIXJA.js → chunk-OZUKJHBG.js} +2 -2
  73. package/dist/{chunk-5DKUSZQ7.js → chunk-PF7R7LMW.js} +1 -1
  74. package/dist/{chunk-WJ4KVDFV.js → chunk-PFZJDFJE.js} +1 -1
  75. package/dist/{chunk-7TQNE3E2.js → chunk-RR276N7K.js} +1 -1
  76. package/dist/{chunk-57ZJ6HTU.js → chunk-RVFPWOR2.js} +4 -1
  77. package/dist/{chunk-MDGTQT5D.js → chunk-RW2EF2S2.js} +15 -44
  78. package/dist/{chunk-S5KWI3MM.js → chunk-RZNF5OGM.js} +12 -12
  79. package/dist/{chunk-G64YUZSL.js → chunk-S2VYK3YC.js} +1 -1
  80. package/dist/{chunk-E73SSHJR.js → chunk-SA7ZGKMI.js} +1 -1
  81. package/dist/{chunk-SFQOECF7.js → chunk-SI55QRZ4.js} +7 -6
  82. package/dist/{chunk-XQO243HC.js → chunk-TGAJLPO4.js} +1 -1
  83. package/dist/{chunk-WN2NWWVO.js → chunk-TII3PB6X.js} +1 -1
  84. package/dist/{chunk-VUWAOX7H.js → chunk-U5V6HNVW.js} +1 -1
  85. package/dist/{chunk-XEQU2OQP.js → chunk-UJ57OE7G.js} +4 -4
  86. package/dist/{chunk-4GPAS5GW.js → chunk-UST2RGWB.js} +3 -2
  87. package/dist/{chunk-DRKRLQZZ.js → chunk-VHFKJLDH.js} +1 -1
  88. package/dist/{chunk-KGHHGMDU.js → chunk-VVTBCP3J.js} +2 -2
  89. package/dist/{chunk-XUJUJD2E.js → chunk-VVX7PL6K.js} +77 -14
  90. package/dist/{chunk-P27MQBMZ.js → chunk-WJF24CGA.js} +1 -1
  91. package/dist/{chunk-OQTL7PXK.js → chunk-XVBONKRV.js} +1 -1
  92. package/dist/{chunk-ZZ7T7GN5.js → chunk-YG5K4DQ2.js} +25 -16
  93. package/dist/{chunk-4ZWIWI2H.js → chunk-Z6KOYIKK.js} +2 -2
  94. package/dist/{chunk-VQTQILLY.js → chunk-ZEXF3ABX.js} +1 -1
  95. package/dist/{chunk-CVXKASWV.js → chunk-ZHXIOG62.js} +1 -1
  96. package/dist/{chunk-LFX6R456.js → chunk-ZXDMPIXN.js} +3 -3
  97. package/dist/{collections-BLDMQOVB.js → collections-K7H2MWBH.js} +13 -13
  98. package/dist/{configuration-YVYVOLSP.js → configuration-QEDVL2WF.js} +2 -2
  99. package/dist/{create-FYKFT7TQ.js → create-2I3GAX4C.js} +7 -7
  100. package/dist/{create-3WBHG32J.js → create-2VDED7TL.js} +6 -6
  101. package/dist/{create-QZVZF3MJ.js → create-7FT7N2NH.js} +2 -2
  102. package/dist/{create-PO3JC6QK.js → create-GEOTGYQK.js} +7 -7
  103. package/dist/{create-NNBIDU4Q.js → create-GEYXN6SW.js} +7 -7
  104. package/dist/{create-Z6ZHEAKU.js → create-H77ZUZG5.js} +7 -7
  105. package/dist/{create-Y2FZ4565.js → create-HQVENM5H.js} +159 -132
  106. package/dist/{create-TDQISX3H.js → create-LJO4YEDW.js} +5 -5
  107. package/dist/{create-ZLYEPOAQ.js → create-MFGMTZ5A.js} +8 -8
  108. package/dist/{create-PO2JF7F5.js → create-PF2465JI.js} +15 -15
  109. package/dist/{create-XORPYXNT.js → create-S7VYYTUD.js} +9 -9
  110. package/dist/{create-7VKH255E.js → create-T6WOFJDM.js} +3 -3
  111. package/dist/{create-DU2V6X5H.js → create-V4YOFXW7.js} +13 -13
  112. package/dist/{create-G6VJD52A.js → create-VWONAYEZ.js} +15 -15
  113. package/dist/{customer-group-add-customers-UTBBZ6T4.js → customer-group-add-customers-GUJQAPU4.js} +2 -2
  114. package/dist/{customer-group-detail-WSBXE23J.js → customer-group-detail-ZQOMC6C5.js} +3 -3
  115. package/dist/{customer-groups-TWCYFU3U.js → customer-groups-JKF46LEB.js} +3 -3
  116. package/dist/{customers-6HDZKARD.js → customers-OZJ5UBIZ.js} +3 -3
  117. package/dist/{edit-K2IP2H25.js → edit-4B364HGZ.js} +2 -2
  118. package/dist/{edit-Y4XONJJU.js → edit-6VJWRZHQ.js} +7 -7
  119. package/dist/{edit-IVBVZ5NL.js → edit-735HBYH2.js} +2 -2
  120. package/dist/{edit-YDMBLXGU.js → edit-M4AP65HO.js} +8 -8
  121. package/dist/{edit-CKO32TA3.js → edit-MPOTIGUY.js} +8 -8
  122. package/dist/{edit-3AM5DZE7.js → edit-PUGFEETJ.js} +10 -10
  123. package/dist/edit-QBUYHSE7.js +122 -0
  124. package/dist/{edit-CNXA4GKJ.js → edit-QHXQ4XOC.js} +6 -6
  125. package/dist/{edit-YPIJHIGC.js → edit-RJUZDCAC.js} +15 -15
  126. package/dist/{edit-3HMTDPZK.js → edit-SQU5UOGE.js} +8 -8
  127. package/dist/{edit-OOY2XGLZ.js → edit-TFFIBHDE.js} +53 -42
  128. package/dist/edit-TTW5DB77.js +525 -0
  129. package/dist/{edit-inventory-item-5VBH365V.js → edit-inventory-item-BCVECCLT.js} +1 -1
  130. package/dist/{edit-inventory-item-attributes-RMKG2IRO.js → edit-inventory-item-attributes-GWEMP67O.js} +1 -1
  131. package/dist/{edit-price-PDS4XN2J.js → edit-price-GLAEAO7R.js} +2 -2
  132. package/dist/{edit-stock-UI6HXHJJ.js → edit-stock-E3PM2YOP.js} +2 -2
  133. package/dist/extension-targets.d.ts +2 -2
  134. package/dist/{fulfillment-6GC3NRFT.js → fulfillment-HDU7GATG.js} +7 -7
  135. package/dist/{fulfillment-providers-IND53UPG.js → fulfillment-providers-KT6GFVHM.js} +12 -12
  136. package/dist/index.css +9 -0
  137. package/dist/index.js +158 -158
  138. package/dist/{inventory-BDST2XIX.js → inventory-4DHRHO5G.js} +4 -4
  139. package/dist/{inventory-LSG2IEWD.js → inventory-CKA34HWM.js} +2 -2
  140. package/dist/{invite-DD2G6UUM.js → invite-4CRK5AKM.js} +10 -10
  141. package/dist/{invite-CNJQ27AY.js → invite-755AJC3M.js} +7 -7
  142. package/dist/{loader-MJTR2S7V.js → loader-B4T2VBGV.js} +2 -2
  143. package/dist/{loader-BLRQLIJT.js → loader-UUSAVCK6.js} +1 -1
  144. package/dist/{locations-HHP2DZ4N.js → locations-BN2BTULF.js} +2 -2
  145. package/dist/{login-FK6ATIQV.js → login-UGKYRKMD.js} +9 -9
  146. package/dist/{manage-locations-V2AJVZXA.js → manage-locations-PRQI5TI4.js} +1 -1
  147. package/dist/{media-ZXUMWWXV.js → media-QXTBUKRL.js} +11 -11
  148. package/dist/{media-T26YU24S.js → media-TGFAHFBV.js} +9 -9
  149. package/dist/{metadata-WB37SSTG.js → metadata-4ZZ4ZIWJ.js} +7 -7
  150. package/dist/{metadata-XS3VAC3N.js → metadata-5TVRCKWX.js} +7 -7
  151. package/dist/{metadata-BGYWXGMG.js → metadata-7JWZ4VFM.js} +7 -7
  152. package/dist/{metadata-3CER2AEK.js → metadata-BQQFHVKF.js} +7 -7
  153. package/dist/{metadata-MSAODJ2T.js → metadata-G73TILNE.js} +7 -7
  154. package/dist/{offer-create-page-VHNJL3UO.js → offer-create-page-WPGYWE3P.js} +12 -12
  155. package/dist/{offer-detail-page-ZLGP4ELR.js → offer-detail-page-MCCTZS4U.js} +16 -23
  156. package/dist/{offer-variant-detail-page-2A7TRGYS.js → offer-variant-detail-page-ITNWEDPL.js} +16 -19
  157. package/dist/{offers-ZBAZOZ7Q.js → offers-VURV22HI.js} +13 -13
  158. package/dist/{onboarding-XCCZ2TMN.js → onboarding-7MURQYXX.js} +7 -7
  159. package/dist/{orders-VFSDZYOV.js → orders-WX5YB4QC.js} +13 -13
  160. package/dist/{organization-YB45TRUN.js → organization-T6ZTYMMW.js} +9 -9
  161. package/dist/{organize-T62CDRZC.js → organize-F2KDXDHQ.js} +3 -3
  162. package/dist/{organize-HQLROEUF.js → organize-GZ5URDMH.js} +3 -3
  163. package/dist/pages/index.d.ts +1 -2
  164. package/dist/pages/index.js +40 -39
  165. package/dist/{payment-details-O4EWCOYQ.js → payment-details-UQ65D5AY.js} +7 -7
  166. package/dist/{payouts-7O5W2X5J.js → payouts-64CG65KK.js} +3 -3
  167. package/dist/{price-lists-5C4MCWWR.js → price-lists-ZRXB2V7W.js} +6 -6
  168. package/dist/{pricing-CF3FJP6A.js → pricing-3NLEJYRP.js} +2 -2
  169. package/dist/{pricing-OQ4RKZO5.js → pricing-CPPIL627.js} +7 -7
  170. package/dist/{product-tags-2TLA7BVO.js → product-tags-AE5K6YFE.js} +15 -15
  171. package/dist/{product-types-LZAMCLGS.js → product-types-OMPZFQH4.js} +3 -3
  172. package/dist/{product-variant-detail-UNG6LWDP.js → product-variant-detail-4DDE6RJ5.js} +8 -8
  173. package/dist/{product-variant-edit-K5U3JZFW.js → product-variant-edit-SAZUI4E3.js} +9 -9
  174. package/dist/{products-WJJBC3NI.js → products-4AAGMX3C.js} +13 -13
  175. package/dist/{products-QIGSKI65.js → products-7SPJXANH.js} +19 -19
  176. package/dist/{professional-details-ZCRAWCXZ.js → professional-details-UN5B4YDJ.js} +7 -7
  177. package/dist/{profile-T2QLFLI7.js → profile-6MIDTK52.js} +7 -7
  178. package/dist/{promotions-JT5PFYPT.js → promotions-FUPYU3EL.js} +8 -8
  179. package/dist/{receive-QCVCAR3R.js → receive-ZG6FFN7H.js} +3 -3
  180. package/dist/{refund-GAOWE636.js → refund-KJX74N6T.js} +3 -3
  181. package/dist/{register-L4ADQUUW.js → register-GAG7SNL6.js} +11 -9
  182. package/dist/{reset-password-VTYSKEFH.js → reset-password-YI7COKLV.js} +1 -1
  183. package/dist/{return-reasons-RH6IEU2M.js → return-reasons-I7YVFYB7.js} +5 -5
  184. package/dist/{sales-channels-ZHYGTRWU.js → sales-channels-LWEVGTY6.js} +3 -2
  185. package/dist/{sales-channels-C5M2ZA5L.js → sales-channels-RJLPZDOZ.js} +3 -2
  186. package/dist/{settings-5IUDEPUN.js → settings-YWUHDHET.js} +19 -19
  187. package/dist/{shipment-UP2OGESO.js → shipment-6CTA2GHU.js} +7 -7
  188. package/dist/{shipping-ACK5UOA5.js → shipping-TKKMYQHJ.js} +2 -2
  189. package/dist/{shipping-profile-3US7LC5E.js → shipping-profile-CFISOMTE.js} +1 -1
  190. package/dist/{shipping-profiles-34432J3C.js → shipping-profiles-42EXTQKX.js} +10 -10
  191. package/dist/{stock-QOUDJSFO.js → stock-465GEUY3.js} +7 -7
  192. package/dist/{store-BCNSSIO6.js → store-BRVTHHXV.js} +9 -9
  193. package/dist/{store-closure-QGR3F45Y.js → store-closure-DYW54VHB.js} +7 -7
  194. package/dist/{store-select-55ZOJGGV.js → store-select-6A5YR7WH.js} +8 -8
  195. package/dist/{tax-regions-RTPVM4IC.js → tax-regions-SQVEIHUK.js} +2 -2
  196. package/dist/{team-DAUWBJAI.js → team-5SBIRJKL.js} +10 -10
  197. package/package.json +15 -15
  198. package/dist/chunk-S2WEYEQR.js +0 -14
  199. package/dist/edit-DCMMX4GW.js +0 -366
  200. package/dist/edit-P6YZBA32.js +0 -324
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-7TQNE3E2.js";
19
+ } from "./chunk-RR276N7K.js";
20
20
  import {
21
21
  ActionMenu
22
22
  } from "./chunk-BDGZ4EQO.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-INNFZYX2.js";
7
7
  import {
8
8
  useProductCategories
9
- } from "./chunk-656G74I2.js";
9
+ } from "./chunk-DETQ6IBQ.js";
10
10
 
11
11
  // src/pages/products/common/components/category-combobox/single-category-combobox.tsx
12
12
  import {
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-GDWBOQI5.js";
21
21
  import {
22
22
  useBatchPriceListPrices
23
- } from "./chunk-P7UBW2EI.js";
23
+ } from "./chunk-2S2WK2OG.js";
24
24
 
25
25
  // src/pages/price-lists/[id]/products/[variant_id]/edit/price-list-prices-edit-form/price-list-prices-edit-form.tsx
26
26
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -7,13 +7,13 @@ import {
7
7
  CategoryHeader,
8
8
  ProductStatusCell,
9
9
  ProductStatusHeader
10
- } from "./chunk-G64YUZSL.js";
10
+ } from "./chunk-S2VYK3YC.js";
11
11
  import {
12
12
  ProductCell
13
13
  } from "./chunk-FWPGOIFA.js";
14
14
  import {
15
15
  useProductTableFilters
16
- } from "./chunk-LFX6R456.js";
16
+ } from "./chunk-ZXDMPIXN.js";
17
17
  import {
18
18
  PlaceholderCell
19
19
  } from "./chunk-PHOCVOZ5.js";
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  _DataTable,
25
25
  useDataTable
26
- } from "./chunk-7TQNE3E2.js";
26
+ } from "./chunk-RR276N7K.js";
27
27
  import {
28
28
  useQueryParams
29
29
  } from "./chunk-THHRRYRS.js";
@@ -32,10 +32,10 @@ import {
32
32
  } from "./chunk-BDGZ4EQO.js";
33
33
  import {
34
34
  useBulkDeleteOffers
35
- } from "./chunk-5DKUSZQ7.js";
35
+ } from "./chunk-PF7R7LMW.js";
36
36
  import {
37
37
  useProducts
38
- } from "./chunk-YAUGB4LD.js";
38
+ } from "./chunk-EMUCGKHP.js";
39
39
 
40
40
  // src/pages/offers/offer-list-page.tsx
41
41
  import { Children as Children2 } from "react";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  NoRecords,
10
10
  NoResults
11
- } from "./chunk-CVXKASWV.js";
11
+ } from "./chunk-ZHXIOG62.js";
12
12
  import {
13
13
  TableFooterSkeleton
14
14
  } from "./chunk-INNFZYX2.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  productsQueryKeys
3
- } from "./chunk-YAUGB4LD.js";
3
+ } from "./chunk-EMUCGKHP.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -34,6 +34,23 @@ var sortAttributeValuesByRank = (attributes) => {
34
34
  }
35
35
  });
36
36
  };
37
+ var useProductAttribute = (id, query, options) => {
38
+ const { data, ...rest } = useQuery({
39
+ queryKey: productAttributesQueryKeys.detail(id, query),
40
+ queryFn: async () => {
41
+ const res = await sdk.vendor.productAttributes.$id.query({
42
+ $id: id,
43
+ ...query
44
+ });
45
+ sortAttributeValuesByRank(
46
+ res?.product_attribute ? [res.product_attribute] : void 0
47
+ );
48
+ return res;
49
+ },
50
+ ...options
51
+ });
52
+ return { ...data, ...rest };
53
+ };
37
54
  var useProductAttributes = (query, options) => {
38
55
  const { data, ...rest } = useQuery({
39
56
  queryKey: productAttributesQueryKeys.list(query),
@@ -264,27 +281,6 @@ var useBatchProductAttributes = (productId, options) => {
264
281
  ...options
265
282
  });
266
283
  };
267
- var useRemoveAttributeFromProduct = (productId, attributeId, options) => {
268
- return useMutation({
269
- mutationFn: () => sdk.vendor.products.$id.attributes.batch.mutate({
270
- $id: productId,
271
- remove: [attributeId]
272
- }),
273
- onSuccess: (data, variables, context) => {
274
- queryClient.invalidateQueries({
275
- queryKey: productAttributesQueryKeys.lists()
276
- });
277
- queryClient.invalidateQueries({
278
- queryKey: productsQueryKeys.detail(productId)
279
- });
280
- queryClient.invalidateQueries({
281
- queryKey: productChangeQueryKeys.detail(productId)
282
- });
283
- options?.onSuccess?.(data, variables, context);
284
- },
285
- ...options
286
- });
287
- };
288
284
 
289
285
  // src/hooks/api/inventory.tsx
290
286
  var INVENTORY_ITEMS_QUERY_KEY = "inventory_items";
@@ -475,6 +471,7 @@ export {
475
471
  useUpdateInventoryLevel,
476
472
  useBatchInventoryItemLocationLevels,
477
473
  useBatchInventoryItemsLocationLevels,
474
+ useProductAttribute,
478
475
  useProductAttributes,
479
476
  productsQueryKeys,
480
477
  variantsQueryKeys,
@@ -491,6 +488,5 @@ export {
491
488
  useUpdateProductVariant,
492
489
  useDeleteVariant,
493
490
  useDeleteVariantLazy,
494
- useBatchProductAttributes,
495
- useRemoveAttributeFromProduct
491
+ useBatchProductAttributes
496
492
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  returnsQueryKeys
3
- } from "./chunk-OQTL7PXK.js";
3
+ } from "./chunk-XVBONKRV.js";
4
4
  import {
5
5
  ordersQueryKeys
6
- } from "./chunk-DIAWPVYS.js";
6
+ } from "./chunk-OGUTFP6B.js";
7
7
  import {
8
8
  queryClient
9
9
  } from "./chunk-RHKRREUU.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-VBRTC2VU.js";
4
4
  import {
5
5
  require_dist
6
- } from "./chunk-52KJSIHS.js";
6
+ } from "./chunk-4UQMRTSC.js";
7
7
  import {
8
8
  __toESM
9
9
  } from "./chunk-NBMM2TZK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDeletePriceList
3
- } from "./chunk-P7UBW2EI.js";
3
+ } from "./chunk-2S2WK2OG.js";
4
4
 
5
5
  // src/pages/price-lists/common/hooks/use-delete-price-list-action.tsx
6
6
  import { toast, usePrompt } from "@medusajs/ui";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FileUpload,
3
3
  formatFileSize
4
- } from "./chunk-UWU6VSO4.js";
4
+ } from "./chunk-MJDXUH62.js";
5
5
  import {
6
6
  Form
7
7
  } from "./chunk-3QSRE5LS.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-W6Y3PPU5.js";
7
7
  import {
8
8
  SidebarLink
9
- } from "./chunk-4GPAS5GW.js";
9
+ } from "./chunk-UST2RGWB.js";
10
10
  import {
11
11
  TwoColumnPage
12
12
  } from "./chunk-YV6MK4PZ.js";
@@ -0,0 +1,59 @@
1
+ import {
2
+ useCampaigns
3
+ } from "./chunk-MR6REQKT.js";
4
+
5
+ // src/hooks/table/filters/use-promotion-table-filters.tsx
6
+ import { useTranslation } from "react-i18next";
7
+ import { useMemo } from "react";
8
+ var usePromotionTableFilters = () => {
9
+ const { t } = useTranslation();
10
+ const { campaigns } = useCampaigns({ limit: 100, fields: "id,name" });
11
+ return useMemo(() => {
12
+ const typeFilter = {
13
+ key: "application_method_type",
14
+ label: t("promotions.fields.type"),
15
+ type: "select",
16
+ options: [
17
+ {
18
+ label: t("promotions.fields.typeLabels.percentageItems"),
19
+ value: "percentage"
20
+ },
21
+ {
22
+ label: t("promotions.fields.typeLabels.amountItems"),
23
+ value: "fixed"
24
+ }
25
+ ]
26
+ };
27
+ const methodFilter = {
28
+ key: "is_automatic",
29
+ label: t("promotions.fields.method"),
30
+ type: "select",
31
+ options: [
32
+ { label: t("promotions.form.method.code.title"), value: "false" },
33
+ {
34
+ label: t("promotions.form.method.automatic.title"),
35
+ value: "true"
36
+ }
37
+ ]
38
+ };
39
+ const campaignFilter = {
40
+ key: "campaign_id",
41
+ label: t("promotions.fields.campaign"),
42
+ type: "select",
43
+ searchable: true,
44
+ options: (campaigns ?? []).map((campaign) => ({
45
+ label: campaign.name,
46
+ value: campaign.id
47
+ }))
48
+ };
49
+ const dateFilters = [
50
+ { label: t("fields.createdAt"), key: "created_at", type: "date" },
51
+ { label: t("fields.updatedAt"), key: "updated_at", type: "date" }
52
+ ];
53
+ return [typeFilter, methodFilter, campaignFilter, ...dateFilters];
54
+ }, [t, campaigns]);
55
+ };
56
+
57
+ export {
58
+ usePromotionTableFilters
59
+ };
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  _DataTable,
19
19
  useDataTable
20
- } from "./chunk-7TQNE3E2.js";
20
+ } from "./chunk-RR276N7K.js";
21
21
  import {
22
22
  useQueryParams
23
23
  } from "./chunk-THHRRYRS.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-WIYFXWRI.js";
27
27
  import {
28
28
  useProductCategories
29
- } from "./chunk-656G74I2.js";
29
+ } from "./chunk-DETQ6IBQ.js";
30
30
 
31
31
  // src/pages/categories/category-list-page.tsx
32
32
  import { Children as Children3 } from "react";
@@ -0,0 +1,38 @@
1
+ // src/components/data-table/components/data-table-status-cell/data-table-status-cell.tsx
2
+ import { clx } from "@medusajs/ui";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var DataTableStatusCell = ({
5
+ color,
6
+ children
7
+ }) => {
8
+ return /* @__PURE__ */ jsxs("div", { className: "txt-compact-small text-ui-fg-subtle flex h-full w-full items-center gap-x-2 overflow-hidden", children: [
9
+ /* @__PURE__ */ jsx(
10
+ "div",
11
+ {
12
+ role: "presentation",
13
+ className: "flex h-5 w-2 items-center justify-center",
14
+ children: /* @__PURE__ */ jsx(
15
+ "div",
16
+ {
17
+ className: clx(
18
+ "h-2 w-2 rounded-sm shadow-[0px_0px_0px_1px_rgba(0,0,0,0.12)_inset]",
19
+ {
20
+ "bg-ui-tag-neutral-icon": color === "grey",
21
+ "bg-ui-tag-green-icon": color === "green",
22
+ "bg-ui-tag-red-icon": color === "red",
23
+ "bg-ui-tag-blue-icon": color === "blue",
24
+ "bg-ui-tag-orange-icon": color === "orange",
25
+ "bg-ui-tag-purple-icon": color === "purple"
26
+ }
27
+ )
28
+ }
29
+ )
30
+ }
31
+ ),
32
+ /* @__PURE__ */ jsx("span", { className: "truncate", children })
33
+ ] });
34
+ };
35
+
36
+ export {
37
+ DataTableStatusCell
38
+ };
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-AJLGY3LQ.js";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-ZZ4JC4WE.js";
6
+ } from "./chunk-A2KHOOJJ.js";
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-52KJSIHS.js";
9
+ } from "./chunk-4UQMRTSC.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-NBMM2TZK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  variantsQueryKeys
3
- } from "./chunk-YAUGB4LD.js";
3
+ } from "./chunk-EMUCGKHP.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  productsQueryKeys
3
- } from "./chunk-YAUGB4LD.js";
3
+ } from "./chunk-EMUCGKHP.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  inventoryItemLevelsQueryKeys,
3
3
  inventoryItemsQueryKeys
4
- } from "./chunk-YAUGB4LD.js";
4
+ } from "./chunk-EMUCGKHP.js";
5
5
  import {
6
6
  queryClient
7
7
  } from "./chunk-RHKRREUU.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-7TQNE3E2.js";
16
+ } from "./chunk-RR276N7K.js";
17
17
  import {
18
18
  useProductTags
19
19
  } from "./chunk-RLRWDHME.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-7TQNE3E2.js";
16
+ } from "./chunk-RR276N7K.js";
17
17
  import {
18
18
  usePayouts
19
19
  } from "./chunk-J2XUEO2E.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-7TQNE3E2.js";
10
+ } from "./chunk-RR276N7K.js";
11
11
  import {
12
12
  useQueryParams
13
13
  } from "./chunk-THHRRYRS.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  useDeleteInventoryItem,
22
22
  useInventoryItems
23
- } from "./chunk-YAUGB4LD.js";
23
+ } from "./chunk-EMUCGKHP.js";
24
24
 
25
25
  // src/pages/inventory/inventory-list-page.tsx
26
26
  import { Children as Children2 } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  productsQueryKeys
3
- } from "./chunk-YAUGB4LD.js";
3
+ } from "./chunk-EMUCGKHP.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-7TQNE3E2.js";
16
+ } from "./chunk-RR276N7K.js";
17
17
  import {
18
18
  useCustomers
19
19
  } from "./chunk-II3CLUXA.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  NoRecords,
10
10
  NoResults
11
- } from "./chunk-CVXKASWV.js";
11
+ } from "./chunk-ZHXIOG62.js";
12
12
  import {
13
13
  useDate
14
14
  } from "./chunk-LRD242C7.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-3QSRE5LS.js";
13
13
  import {
14
14
  require_dist
15
- } from "./chunk-52KJSIHS.js";
15
+ } from "./chunk-4UQMRTSC.js";
16
16
  import {
17
17
  useFeatureFlags
18
18
  } from "./chunk-RLRWDHME.js";
@@ -148,11 +148,13 @@ var LoginForm = () => {
148
148
  ] }) });
149
149
  };
150
150
  var LoginFooter = () => {
151
+ const { t } = useTranslation();
151
152
  const { feature_flags } = useFeatureFlags();
152
153
  return /* @__PURE__ */ jsxs("div", { className: "mt-auto flex flex-col gap-y-2", children: [
153
154
  /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small", children: /* @__PURE__ */ jsx(
154
155
  Trans,
155
156
  {
157
+ t,
156
158
  i18nKey: "login.forgotPassword",
157
159
  components: [
158
160
  /* @__PURE__ */ jsx(
@@ -169,6 +171,7 @@ var LoginFooter = () => {
169
171
  feature_flags?.[import_types.MercurFeatureFlags.SELLER_REGISTRATION] && /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small", children: /* @__PURE__ */ jsx(
170
172
  Trans,
171
173
  {
174
+ t,
172
175
  i18nKey: "login.notSellerYet",
173
176
  components: [
174
177
  /* @__PURE__ */ jsx(
@@ -1,3 +1,6 @@
1
+ import {
2
+ DataTableStatusCell
3
+ } from "./chunk-MDABSESI.js";
1
4
  import {
2
5
  useDataTableDateFilters
3
6
  } from "./chunk-NWU7EGGF.js";
@@ -11,42 +14,10 @@ import {
11
14
  // src/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.tsx
12
15
  import { useMemo as useMemo2 } from "react";
13
16
  import { useTranslation as useTranslation2 } from "react-i18next";
14
- import { createDataTableColumnHelper as createDataTableColumnHelper2, Tooltip as Tooltip2 } from "@medusajs/ui";
15
-
16
- // src/components/data-table/components/data-table-status-cell/data-table-status-cell.tsx
17
- import { clx } from "@medusajs/ui";
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var DataTableStatusCell = ({
20
- color,
21
- children
22
- }) => {
23
- return /* @__PURE__ */ jsxs("div", { className: "txt-compact-small text-ui-fg-subtle flex h-full w-full items-center gap-x-2 overflow-hidden", children: [
24
- /* @__PURE__ */ jsx(
25
- "div",
26
- {
27
- role: "presentation",
28
- className: "flex h-5 w-2 items-center justify-center",
29
- children: /* @__PURE__ */ jsx(
30
- "div",
31
- {
32
- className: clx(
33
- "h-2 w-2 rounded-sm shadow-[0px_0px_0px_1px_rgba(0,0,0,0.12)_inset]",
34
- {
35
- "bg-ui-tag-neutral-icon": color === "grey",
36
- "bg-ui-tag-green-icon": color === "green",
37
- "bg-ui-tag-red-icon": color === "red",
38
- "bg-ui-tag-blue-icon": color === "blue",
39
- "bg-ui-tag-orange-icon": color === "orange",
40
- "bg-ui-tag-purple-icon": color === "purple"
41
- }
42
- )
43
- }
44
- )
45
- }
46
- ),
47
- /* @__PURE__ */ jsx("span", { className: "truncate", children })
48
- ] });
49
- };
17
+ import {
18
+ createDataTableColumnHelper as createDataTableColumnHelper2,
19
+ Tooltip as Tooltip2
20
+ } from "@medusajs/ui";
50
21
 
51
22
  // src/components/data-table/helpers/general/use-data-table-date-columns.tsx
52
23
  import {
@@ -55,7 +26,7 @@ import {
55
26
  } from "@medusajs/ui";
56
27
  import { useMemo } from "react";
57
28
  import { useTranslation } from "react-i18next";
58
- import { jsx as jsx2 } from "react/jsx-runtime";
29
+ import { jsx } from "react/jsx-runtime";
59
30
  var columnHelper = createDataTableColumnHelper();
60
31
  var useDataTableDateColumns = () => {
61
32
  const { t } = useTranslation();
@@ -65,14 +36,14 @@ var useDataTableDateColumns = () => {
65
36
  columnHelper.accessor("created_at", {
66
37
  header: t("fields.createdAt"),
67
38
  cell: ({ row }) => {
68
- return /* @__PURE__ */ jsx2(
39
+ return /* @__PURE__ */ jsx(
69
40
  Tooltip,
70
41
  {
71
42
  content: getFullDate({
72
43
  date: row.original.created_at,
73
44
  includeTime: true
74
45
  }),
75
- children: /* @__PURE__ */ jsx2("span", { children: getFullDate({ date: row.original.created_at }) })
46
+ children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.created_at }) })
76
47
  }
77
48
  );
78
49
  },
@@ -83,14 +54,14 @@ var useDataTableDateColumns = () => {
83
54
  columnHelper.accessor("updated_at", {
84
55
  header: t("fields.updatedAt"),
85
56
  cell: ({ row }) => {
86
- return /* @__PURE__ */ jsx2(
57
+ return /* @__PURE__ */ jsx(
87
58
  Tooltip,
88
59
  {
89
60
  content: getFullDate({
90
61
  date: row.original.updated_at,
91
62
  includeTime: true
92
63
  }),
93
- children: /* @__PURE__ */ jsx2("span", { children: getFullDate({ date: row.original.updated_at }) })
64
+ children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.updated_at }) })
94
65
  }
95
66
  );
96
67
  },
@@ -103,7 +74,7 @@ var useDataTableDateColumns = () => {
103
74
  };
104
75
 
105
76
  // src/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.tsx
106
- import { jsx as jsx3 } from "react/jsx-runtime";
77
+ import { jsx as jsx2 } from "react/jsx-runtime";
107
78
  var columnHelper2 = createDataTableColumnHelper2();
108
79
  var useSalesChannelTableColumns = () => {
109
80
  const { t } = useTranslation2();
@@ -120,7 +91,7 @@ var useSalesChannelTableColumns = () => {
120
91
  columnHelper2.accessor("description", {
121
92
  header: () => t("fields.description"),
122
93
  cell: ({ getValue }) => {
123
- return /* @__PURE__ */ jsx3(Tooltip2, { content: getValue(), children: /* @__PURE__ */ jsx3("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: getValue() }) }) });
94
+ return /* @__PURE__ */ jsx2(Tooltip2, { content: getValue(), children: /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: getValue() }) }) });
124
95
  },
125
96
  enableSorting: true,
126
97
  sortLabel: t("fields.description"),
@@ -137,7 +108,7 @@ var useSalesChannelTableColumns = () => {
137
108
  sortDescLabel: t("filters.sorting.alphabeticallyDesc"),
138
109
  cell: ({ getValue }) => {
139
110
  const value = getValue();
140
- return /* @__PURE__ */ jsx3(DataTableStatusCell, { color: value ? "grey" : "green", children: value ? t("general.disabled") : t("general.enabled") });
111
+ return /* @__PURE__ */ jsx2(DataTableStatusCell, { color: value ? "grey" : "green", children: value ? t("general.disabled") : t("general.enabled") });
141
112
  }
142
113
  }),
143
114
  ...dateColumns
@@ -1,9 +1,6 @@
1
- import {
2
- StatusCell
3
- } from "./chunk-DB6ANJBO.js";
4
1
  import {
5
2
  i18n
6
- } from "./chunk-ZZ4JC4WE.js";
3
+ } from "./chunk-A2KHOOJJ.js";
7
4
 
8
5
  // src/lib/promotions.ts
9
6
  var promotionStatusMap = {
@@ -19,6 +16,15 @@ var promotionStatusMap = {
19
16
  `${i18n.t("promotions.fields.campaign")} ${i18n.t("statuses.expired")?.toLowerCase()}`
20
17
  ]
21
18
  };
19
+ var getPromotionType = (promotion) => {
20
+ const applicationMethod = promotion.application_method;
21
+ if (!applicationMethod?.type) {
22
+ return "-";
23
+ }
24
+ const base = applicationMethod.type === "fixed" ? "promotions.fields.typeLabels.amount" : "promotions.fields.typeLabels.percentage";
25
+ const targetSuffix = applicationMethod.target_type === "shipping_methods" ? "Shipping" : applicationMethod.target_type === "order" ? "Order" : "Items";
26
+ return i18n.t(`${base}${targetSuffix}`);
27
+ };
22
28
  var getPromotionStatus = (promotion) => {
23
29
  const date = /* @__PURE__ */ new Date();
24
30
  const campaign = promotion.campaign;
@@ -36,13 +42,7 @@ var getPromotionStatus = (promotion) => {
36
42
  return promotionStatusMap[promotion.status.toUpperCase()];
37
43
  };
38
44
 
39
- // src/components/table/table-cells/promotion/status-cell/status-cell.tsx
40
- import { jsx } from "react/jsx-runtime";
41
- var StatusCell2 = ({ promotion }) => {
42
- const [color, text] = getPromotionStatus(promotion);
43
- return /* @__PURE__ */ jsx(StatusCell, { color, children: text });
44
- };
45
-
46
45
  export {
47
- StatusCell2 as StatusCell
46
+ getPromotionType,
47
+ getPromotionStatus
48
48
  };
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PHOCVOZ5.js";
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-52KJSIHS.js";
9
+ } from "./chunk-4UQMRTSC.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-NBMM2TZK.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  _DataTable,
16
16
  useDataTable
17
- } from "./chunk-7TQNE3E2.js";
17
+ } from "./chunk-RR276N7K.js";
18
18
  import {
19
19
  useQueryParams
20
20
  } from "./chunk-THHRRYRS.js";