@mercurjs/vendor 2.1.2 → 2.2.0-canary.2

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 (230) hide show
  1. package/dist/{[id]-H3C3ZSC6.js → [id]-3EC6HYXL.js} +25 -21
  2. package/dist/{[id]-TO6KT3ZE.js → [id]-4OBGG7OH.js} +23 -21
  3. package/dist/{[id]-6PXEWRG7.js → [id]-7BAKUHUO.js} +13 -13
  4. package/dist/{[id]-X4DDKOMQ.js → [id]-COLO4TQJ.js} +26 -22
  5. package/dist/{[id]-7RUAH3TI.js → [id]-K2CT7BXQ.js} +4 -4
  6. package/dist/{[id]-3G5G7ZFV.js → [id]-KJIQTFGE.js} +22 -20
  7. package/dist/{[id]-4VCL3MMM.js → [id]-KRLGIVLR.js} +26 -22
  8. package/dist/{[id]-B3LHVQM5.js → [id]-KVWYLDN3.js} +25 -21
  9. package/dist/{[id]-INOFZHL7.js → [id]-LTNOHLGE.js} +16 -16
  10. package/dist/{[id]-PDGHF5J2.js → [id]-LUFRJLAU.js} +35 -31
  11. package/dist/[id]-UUUQK22M.js +1442 -0
  12. package/dist/{[id]-T2ROPEGY.js → [id]-Y2ISCLUD.js} +7 -7
  13. package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
  14. package/dist/{[id]-UTKO3VG4.js → [id]-ZWWMJAKI.js} +9 -9
  15. package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
  16. package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-H2QAPKVH.js} +20 -18
  17. package/dist/{add-C6OX5C54.js → add-FIWTANZX.js} +34 -30
  18. package/dist/add-PBZQCIZQ.js +392 -0
  19. package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-RAHCP67U.js} +16 -14
  20. package/dist/{add-products-INOLNPO6.js → add-products-N3V2MVLD.js} +23 -19
  21. package/dist/{add-promotions-AHDOP52Q.js → add-promotions-CSCAJZHV.js} +7 -7
  22. package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-DLP7PSQB.js} +4 -4
  23. package/dist/{address-KRENKSLP.js → address-7F5SN7PV.js} +17 -15
  24. package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-SZF4W7LR.js} +2 -2
  25. package/dist/{allocate-items-SUCUZU4D.js → allocate-items-SDFS5GYN.js} +6 -6
  26. package/dist/{areas-UUMZDXLX.js → areas-7Y6BVS5A.js} +8 -8
  27. package/dist/{attributes-CALEHJJG.js → attributes-MBZ76HVZ.js} +3 -3
  28. package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-65SAGUUL.js} +2 -2
  29. package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-7PURSRTT.js} +13 -11
  30. package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-EDPMEN2P.js} +2 -2
  31. package/dist/breadcrumb-FLDHJRVY.js +26 -0
  32. package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-HND5FFWC.js} +2 -2
  33. package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-QV2IAX7N.js} +8 -2
  34. package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-VWELWDB2.js} +1 -1
  35. package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-WRG4SITG.js} +13 -11
  36. package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-ZCG2RHIU.js} +12 -10
  37. package/dist/{campaigns-HS6MIO7X.js → campaigns-L6ULR6KR.js} +5 -5
  38. package/dist/{categories-PKWR3FM3.js → categories-FUZQKBXV.js} +6 -6
  39. package/dist/{chunk-PDQSPKG5.js → chunk-2DXNJURE.js} +1 -1
  40. package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
  41. package/dist/chunk-35G3SZRN.js +101 -0
  42. package/dist/{chunk-6SBMVLJ2.js → chunk-36L54SQQ.js} +1 -1
  43. package/dist/chunk-432S4FGR.js +0 -0
  44. package/dist/{chunk-KQGVSLUI.js → chunk-44RQ5PTN.js} +1803 -914
  45. package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
  46. package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
  47. package/dist/chunk-5ATEALH7.js +68 -0
  48. package/dist/{chunk-CNLP35S7.js → chunk-5L2DCA4W.js} +16 -31
  49. package/dist/{chunk-WITQNQXN.js → chunk-6BS2AVGJ.js} +3 -3
  50. package/dist/{chunk-CYTNBXWF.js → chunk-6Y53VZ3C.js} +9 -9
  51. package/dist/{chunk-ZYOXKUKZ.js → chunk-7LBY5JLV.js} +1 -1
  52. package/dist/chunk-7SLWXX6L.js +811 -0
  53. package/dist/{chunk-LQYMBSRQ.js → chunk-AIZM66CG.js} +1 -1
  54. package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
  55. package/dist/{chunk-WFE6CT6M.js → chunk-AVOIZO63.js} +21 -77
  56. package/dist/chunk-CFRWIQIZ.js +43 -0
  57. package/dist/{chunk-WNVEMFIK.js → chunk-CNMY5HVP.js} +2 -2
  58. package/dist/{chunk-BLVJAKBA.js → chunk-DDH7ULIQ.js} +1 -1
  59. package/dist/chunk-DIW4GRTI.js +503 -0
  60. package/dist/{chunk-JQP7MOFH.js → chunk-DVEKYLPV.js} +1 -1
  61. package/dist/{chunk-ZZO3INVE.js → chunk-DZIXC7OE.js} +1428 -1325
  62. package/dist/{chunk-QX45GVAL.js → chunk-EIUYXS7E.js} +8 -8
  63. package/dist/{chunk-N7OVXN72.js → chunk-EROX26D4.js} +1 -1
  64. package/dist/{chunk-2RHAI7WK.js → chunk-EZ3JOAUS.js} +1 -1
  65. package/dist/{chunk-HFRHHT36.js → chunk-FDR22JMM.js} +63 -8
  66. package/dist/{chunk-PEKANQ3T.js → chunk-FJUUGFXL.js} +2 -2
  67. package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
  68. package/dist/chunk-GGWUWT55.js +95 -0
  69. package/dist/chunk-GKZHBXZK.js +426 -0
  70. package/dist/{chunk-47SXTGLN.js → chunk-GXIAIITP.js} +63 -200
  71. package/dist/{chunk-4MFMCZEJ.js → chunk-H6LZ77GX.js} +2 -2
  72. package/dist/chunk-K4X324QP.js +18 -0
  73. package/dist/{chunk-VQ5EKDA3.js → chunk-KD7RYE6R.js} +1 -1
  74. package/dist/chunk-LEWA4BPH.js +18 -0
  75. package/dist/{chunk-7Q5SDEK7.js → chunk-LNM2D2I4.js} +4 -4
  76. package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
  77. package/dist/{chunk-OXXL4WQU.js → chunk-M7KSRYRI.js} +5 -5
  78. package/dist/{chunk-I2IKYOZX.js → chunk-N4MVIBFM.js} +19 -19
  79. package/dist/{chunk-PCMNEUMV.js → chunk-NHFEY3EI.js} +1 -1
  80. package/dist/{chunk-RTAWYMQP.js → chunk-NJMNYS7G.js} +1 -1
  81. package/dist/{chunk-HGQTL7NX.js → chunk-NSZQERLE.js} +2 -2
  82. package/dist/{chunk-RL7SFZOF.js → chunk-NXNJQZCP.js} +1 -1
  83. package/dist/{chunk-D2MA5TAP.js → chunk-PBD36EZJ.js} +2 -2
  84. package/dist/{chunk-4ZGFODSC.js → chunk-PZ44R4AS.js} +1 -1
  85. package/dist/{chunk-ZEVYT6IX.js → chunk-QNNJN4H6.js} +116 -286
  86. package/dist/{chunk-WBI7FEGI.js → chunk-QS6RWIBL.js} +1 -1
  87. package/dist/chunk-QT7YFHCA.js +198 -0
  88. package/dist/{chunk-GYV6SKY7.js → chunk-QXLRABYH.js} +4 -6
  89. package/dist/chunk-RTBNJQOV.js +2063 -0
  90. package/dist/chunk-RXZFEFNV.js +73 -0
  91. package/dist/{chunk-RUE5BPC2.js → chunk-RZLN2Q6G.js} +1 -1
  92. package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
  93. package/dist/chunk-T6LHVNWO.js +27 -0
  94. package/dist/{chunk-DKQ4XMSN.js → chunk-TNVYTMBL.js} +6 -6
  95. package/dist/{chunk-32RYSB2V.js → chunk-TODJFRLH.js} +2 -2
  96. package/dist/{chunk-P3ZTO6T2.js → chunk-UAF2S447.js} +1 -1
  97. package/dist/{chunk-J6BRLL3F.js → chunk-UCQKXXLD.js} +2 -2
  98. package/dist/chunk-UORPTGV2.js +114 -0
  99. package/dist/{chunk-X4FLOQ45.js → chunk-WBHFU3MG.js} +2 -2
  100. package/dist/chunk-WLT7K7K7.js +63 -0
  101. package/dist/{chunk-4URLUCTD.js → chunk-WUPJADSO.js} +2 -2
  102. package/dist/{chunk-5M3SL4UZ.js → chunk-X2FVFUET.js} +9 -104
  103. package/dist/{chunk-ITI54CII.js → chunk-X4INVIWL.js} +5 -5
  104. package/dist/{chunk-PTW7JNAP.js → chunk-XFQJU6FA.js} +4 -4
  105. package/dist/{collections-DJZI2RM2.js → collections-YCAAFGSW.js} +22 -19
  106. package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
  107. package/dist/{configuration-GN3TO77H.js → configuration-UOSNP45I.js} +3 -3
  108. package/dist/{create-G4T2PAJH.js → create-35MYQPVM.js} +23 -21
  109. package/dist/{create-3EK5CNNX.js → create-B5ZXTK3K.js} +33 -29
  110. package/dist/{create-HKJVSFB7.js → create-BJ4OO6LS.js} +23 -21
  111. package/dist/create-FCKGCZSM.js +210 -0
  112. package/dist/{create-7S7CZWEN.js → create-GB3ZA4LH.js} +4 -4
  113. package/dist/{create-YO55Z3YD.js → create-HI5UI2EZ.js} +32 -38
  114. package/dist/create-JDGM5KXE.js +193 -0
  115. package/dist/{create-IDVCZHIX.js → create-ORXYT74H.js} +14 -12
  116. package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
  117. package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
  118. package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
  119. package/dist/{create-OCFPLNNY.js → create-UQNYMVBM.js} +6 -6
  120. package/dist/{create-OGLPDVOI.js → create-XAD5NMSJ.js} +37 -35
  121. package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
  122. package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
  123. package/dist/{create-3ZVXEPX5.js → create-YDDBH4VQ.js} +25 -21
  124. package/dist/{customers-6ZLE65UX.js → customers-ETXVNM3G.js} +5 -5
  125. package/dist/{edit-QBISX7D3.js → edit-2Q7TRUTL.js} +14 -12
  126. package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
  127. package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
  128. package/dist/{edit-IR6V2IDN.js → edit-FKXIQ6ZI.js} +19 -17
  129. package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
  130. package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
  131. package/dist/{edit-ZSOI56BQ.js → edit-L5ZZLMAY.js} +22 -22
  132. package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
  133. package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
  134. package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
  135. package/dist/{edit-7HTH2UJF.js → edit-REDDBLTA.js} +3 -3
  136. package/dist/{edit-2KRJIPRK.js → edit-SGUY2CCK.js} +19 -17
  137. package/dist/{edit-B75KK5ZX.js → edit-UGEC27HP.js} +35 -31
  138. package/dist/{edit-FNDDSSMT.js → edit-VKT62KHG.js} +37 -8
  139. package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
  140. package/dist/{edit-RNT555GP.js → edit-ZCXUG42Q.js} +13 -11
  141. package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
  142. package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
  143. package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-6B7ITDGD.js} +2 -2
  144. package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-Y7MQZLXI.js} +3 -3
  145. package/dist/{fulfillment-DCS67LTK.js → fulfillment-75Z4H23W.js} +16 -14
  146. package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-DQAU43JZ.js} +20 -17
  147. package/dist/index.css +27 -62
  148. package/dist/index.d.ts +3 -10
  149. package/dist/index.js +522 -458
  150. package/dist/{inventory-OPZ2FSEE.js → inventory-KAUVPMPZ.js} +6 -6
  151. package/dist/{invite-KEJLNXEZ.js → invite-CI2P4GF6.js} +15 -12
  152. package/dist/{invite-764K3TJS.js → invite-Q6EYDZVQ.js} +24 -21
  153. package/dist/loader-FBB5OQRT.js +31 -0
  154. package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
  155. package/dist/{login-OUHRNNXA.js → login-KY342RMK.js} +12 -10
  156. package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-WNHEBS3A.js} +2 -2
  157. package/dist/{media-4KYFHB5V.js → media-B6ME2WXY.js} +41 -9
  158. package/dist/{metadata-NYYL26MQ.js → metadata-2CMH4I6U.js} +16 -14
  159. package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
  160. package/dist/{metadata-OCE6A3JE.js → metadata-GWI6R4ES.js} +15 -13
  161. package/dist/{metadata-G7KZXVNE.js → metadata-NUXUC2JA.js} +15 -13
  162. package/dist/{metadata-XP3ZYW2M.js → metadata-TLDUF5KV.js} +17 -15
  163. package/dist/{metadata-PYY4IB7K.js → metadata-WR4RFXO5.js} +16 -14
  164. package/dist/offer-create-page-4Z6L63BU.js +743 -0
  165. package/dist/offer-detail-page-6MAHNNIO.js +488 -0
  166. package/dist/offer-edit-page-DYQFU6JU.js +151 -0
  167. package/dist/offer-inventory-batch-page-WKCWNDNK.js +290 -0
  168. package/dist/offer-pricing-edit-page-4TYGGSOE.js +195 -0
  169. package/dist/offers-ZG6OTDZ2.js +32 -0
  170. package/dist/{onboarding-WXZHW62K.js → onboarding-43LQQQGQ.js} +22 -20
  171. package/dist/{orders-LWJ472VM.js → orders-ZV4D6L2V.js} +24 -21
  172. package/dist/organization-ZTQGRJWS.js +375 -0
  173. package/dist/{organize-RFOMQCBG.js → organize-HNJUHEEG.js} +4 -4
  174. package/dist/{organize-OVKJ3HZO.js → organize-K6QMAMEN.js} +4 -4
  175. package/dist/pages/index.d.ts +415 -758
  176. package/dist/pages/index.js +81 -77
  177. package/dist/{payment-details-UVXYCTUK.js → payment-details-64US5XWD.js} +17 -15
  178. package/dist/{payouts-TR7K5I37.js → payouts-UXJDTXDL.js} +6 -6
  179. package/dist/{price-lists-S2WNELFZ.js → price-lists-KBPUVSZI.js} +8 -8
  180. package/dist/{pricing-UF27DAXA.js → pricing-DF6C5XK4.js} +35 -32
  181. package/dist/{product-tags-2CKH2M6D.js → product-tags-6MZB4W5R.js} +32 -28
  182. package/dist/{product-types-FX43JEO2.js → product-types-UUHBV4IZ.js} +5 -5
  183. package/dist/product-variant-detail-RVWEYVPC.js +220 -0
  184. package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-YYNPHE4L.js} +126 -66
  185. package/dist/{products-H5EMRJYS.js → products-IWKTGZS6.js} +23 -19
  186. package/dist/{products-2LHGS7X3.js → products-MZBU5MEV.js} +40 -43
  187. package/dist/{professional-details-HYKTH44B.js → professional-details-5T2VS6MM.js} +16 -14
  188. package/dist/{profile-PB27WIRW.js → profile-6XGHAT7H.js} +20 -18
  189. package/dist/{promotions-5EYPGHJP.js → promotions-O7U4BTK6.js} +8 -8
  190. package/dist/{register-4O4F6YZK.js → register-N6WOSMLA.js} +16 -14
  191. package/dist/{reset-password-GTWLBOFK.js → reset-password-EICPAY2N.js} +1 -1
  192. package/dist/{return-reasons-LOKYRGMI.js → return-reasons-IX3LIOCU.js} +16 -14
  193. package/dist/{sales-channels-7R2IY3KG.js → sales-channels-B6FULRWI.js} +8 -7
  194. package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-JW3QUYR7.js} +8 -7
  195. package/dist/{settings-2XDLFYMS.js → settings-MV53ZZ53.js} +39 -35
  196. package/dist/{shipment-4GW2JFWB.js → shipment-Q33QBMXX.js} +13 -11
  197. package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-Y4SNEPZX.js} +2 -2
  198. package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-2NWKCEJK.js} +18 -16
  199. package/dist/{stock-5RXNUPUT.js → stock-7CSVEJJU.js} +19 -17
  200. package/dist/{store-DE2RGX7T.js → store-X23G3JCJ.js} +28 -25
  201. package/dist/{store-closure-DNMCHUXD.js → store-closure-P5PD2RSV.js} +16 -14
  202. package/dist/{store-select-GZEJHRZ7.js → store-select-TREPDS3G.js} +17 -15
  203. package/dist/{tax-regions-UD6P5FVC.js → tax-regions-YXZW7UVX.js} +5 -5
  204. package/dist/{team-JXKAVRPU.js → team-SPP5OY5W.js} +25 -23
  205. package/dist/types-CtCEtTE6.d.ts +16 -0
  206. package/package.json +6 -6
  207. package/dist/[id]-BYP37PU4.js +0 -1314
  208. package/dist/add-KRAGFFBJ.js +0 -158
  209. package/dist/bulk-edit-3SMBLIOA.js +0 -244
  210. package/dist/chunk-4KX6CBJ4.js +0 -178
  211. package/dist/chunk-DLNNTQRY.js +0 -217
  212. package/dist/chunk-FX4V5JCF.js +0 -37
  213. package/dist/chunk-GC33DBKG.js +0 -143
  214. package/dist/chunk-NK4NR6MN.js +0 -173
  215. package/dist/chunk-PFU6FSXY.js +0 -430
  216. package/dist/chunk-QJEOPT2P.js +0 -330
  217. package/dist/chunk-QSGR43JM.js +0 -30
  218. package/dist/chunk-STR3NGWE.js +0 -3736
  219. package/dist/create-3DOO3RNH.js +0 -716
  220. package/dist/create-I7HV3RM6.js +0 -150
  221. package/dist/edit-K2AD335I.js +0 -237
  222. package/dist/edit-VO5XLIEL.js +0 -362
  223. package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
  224. package/dist/organization-LPYQRTQC.js +0 -303
  225. package/dist/prices-3OXV5RGY.js +0 -270
  226. package/dist/product-variant-detail-WV4KXVXR.js +0 -590
  227. package/dist/stock-GPC3BCL6.js +0 -500
  228. package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
  229. package/dist/{chunk-6WY5X4PE.js → chunk-L7QKFC5N.js} +7 -7
  230. /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
@@ -0,0 +1,73 @@
1
+ // src/pages/offers/common/constants.ts
2
+ var OFFERS_PAGE_SIZE = 10;
3
+ var OFFER_DETAIL_FIELDS = [
4
+ "id",
5
+ "sku",
6
+ "ean",
7
+ "upc",
8
+ "variant_id",
9
+ "seller_id",
10
+ "shipping_profile_id",
11
+ "price_set_id",
12
+ "metadata",
13
+ "created_at",
14
+ "updated_at",
15
+ "deleted_at",
16
+ "product_variant.id",
17
+ "product_variant.title",
18
+ "product_variant.sku",
19
+ "product_variant.product_id",
20
+ "product_variant.product.id",
21
+ "product_variant.product.title",
22
+ "product_variant.product.thumbnail",
23
+ "shipping_profile.id",
24
+ "shipping_profile.name",
25
+ "shipping_profile.type",
26
+ "price_set.id",
27
+ "price_set.prices.id",
28
+ "price_set.prices.amount",
29
+ "price_set.prices.currency_code",
30
+ "price_set.prices.min_quantity",
31
+ "price_set.prices.max_quantity",
32
+ "price_set.prices.rules_count",
33
+ "price_set.prices.price_rules.attribute",
34
+ "price_set.prices.price_rules.value",
35
+ "inventory_item_link.id",
36
+ "inventory_item_link.required_quantity",
37
+ "inventory_item_link.inventory_item_id",
38
+ "inventory_item_link.inventory_item.id",
39
+ "inventory_item_link.inventory_item.sku",
40
+ "inventory_item_link.inventory_item.title",
41
+ "inventory_item_link.inventory_item.location_levels.id",
42
+ "inventory_item_link.inventory_item.location_levels.location_id",
43
+ "inventory_item_link.inventory_item.location_levels.stocked_quantity",
44
+ "inventory_item_link.inventory_item.location_levels.reserved_quantity",
45
+ "inventory_item_link.inventory_item.location_levels.incoming_quantity",
46
+ "inventory_item_link.inventory_item.location_levels.available_quantity"
47
+ ].join(",");
48
+ var OFFER_LIST_FIELDS = [
49
+ "id",
50
+ "sku",
51
+ "variant_id",
52
+ "seller_id",
53
+ "created_at",
54
+ "updated_at",
55
+ "deleted_at",
56
+ "product_variant.id",
57
+ "product_variant.title",
58
+ "product_variant.product_id",
59
+ "product_variant.product.id",
60
+ "product_variant.product.title",
61
+ "product_variant.product.status",
62
+ "product_variant.product.thumbnail",
63
+ "product_variant.product.categories.id",
64
+ "product_variant.product.categories.name",
65
+ "shipping_profile.id",
66
+ "shipping_profile.name"
67
+ ].join(",");
68
+
69
+ export {
70
+ OFFERS_PAGE_SIZE,
71
+ OFFER_DETAIL_FIELDS,
72
+ OFFER_LIST_FIELDS
73
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  productsQueryKeys
3
- } from "./chunk-ZEVYT6IX.js";
3
+ } from "./chunk-QNNJN4H6.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -4,19 +4,19 @@ import {
4
4
  import {
5
5
  RouteDrawer,
6
6
  useRouteModal
7
- } from "./chunk-3CK6OINO.js";
7
+ } from "./chunk-GDWBOQI5.js";
8
8
  import {
9
9
  Form
10
10
  } from "./chunk-3QSRE5LS.js";
11
+ import {
12
+ Skeleton
13
+ } from "./chunk-INNFZYX2.js";
11
14
  import {
12
15
  ConditionalTooltip
13
16
  } from "./chunk-LAVHRER2.js";
14
17
  import {
15
18
  useDocumentDirection
16
19
  } from "./chunk-Y7QKP6QU.js";
17
- import {
18
- Skeleton
19
- } from "./chunk-INNFZYX2.js";
20
20
 
21
21
  // src/components/forms/metadata-form/metadata-form.tsx
22
22
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -0,0 +1,27 @@
1
+ import {
2
+ queryKeysFactory
3
+ } from "./chunk-ZA2KFUFR.js";
4
+ import {
5
+ sdk
6
+ } from "./chunk-RIN4CBRB.js";
7
+
8
+ // src/hooks/api/product-variants.tsx
9
+ import {
10
+ useQuery
11
+ } from "@tanstack/react-query";
12
+ var PRODUCT_VARIANT_QUERY_KEY = "product_variant";
13
+ var productVariantQueryKeys = queryKeysFactory(
14
+ PRODUCT_VARIANT_QUERY_KEY
15
+ );
16
+ var useVariants = (query, options) => {
17
+ const { data, ...rest } = useQuery({
18
+ queryFn: () => sdk.vendor.productVariants.query({ ...query }),
19
+ queryKey: productVariantQueryKeys.list(query),
20
+ ...options
21
+ });
22
+ return { ...data, ...rest };
23
+ };
24
+
25
+ export {
26
+ useVariants
27
+ };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  PriceListUpdateProductsSchema,
3
3
  usePriceListGridColumns
4
- } from "./chunk-I2IKYOZX.js";
4
+ } from "./chunk-N4MVIBFM.js";
5
5
  import {
6
6
  isProductRow
7
7
  } from "./chunk-XRNDVICA.js";
8
+ import {
9
+ DataGrid
10
+ } from "./chunk-4LVP635F.js";
8
11
  import {
9
12
  castNumber
10
13
  } from "./chunk-SMQT3ZNO.js";
11
- import {
12
- DataGrid
13
- } from "./chunk-Y2QI7KWS.js";
14
14
  import {
15
15
  KeyboundForm
16
16
  } from "./chunk-U2ZFCAPX.js";
17
17
  import {
18
18
  RouteFocusModal,
19
19
  useRouteModal
20
- } from "./chunk-3CK6OINO.js";
20
+ } from "./chunk-GDWBOQI5.js";
21
21
  import {
22
22
  useBatchPriceListPrices
23
- } from "./chunk-PCMNEUMV.js";
23
+ } from "./chunk-NHFEY3EI.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";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  CreateCampaignFormFields
3
- } from "./chunk-GYV6SKY7.js";
3
+ } from "./chunk-QXLRABYH.js";
4
4
  import {
5
5
  KeyboundForm
6
6
  } from "./chunk-U2ZFCAPX.js";
7
7
  import {
8
8
  RouteDrawer,
9
9
  useRouteModal
10
- } from "./chunk-3CK6OINO.js";
10
+ } from "./chunk-GDWBOQI5.js";
11
11
  import {
12
12
  Form
13
13
  } from "./chunk-3QSRE5LS.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-AIF2KTEE.js";
14
14
  import {
15
15
  SingleColumnPage
16
- } from "./chunk-CAS74NLJ.js";
16
+ } from "./chunk-YV6MK4PZ.js";
17
17
  import {
18
18
  useCustomers
19
19
  } from "./chunk-LWJF63JW.js";
@@ -11,13 +11,13 @@ import {
11
11
  } from "./chunk-AIF2KTEE.js";
12
12
  import {
13
13
  SingleColumnPage
14
- } from "./chunk-CAS74NLJ.js";
14
+ } from "./chunk-YV6MK4PZ.js";
15
15
  import {
16
16
  useQueryParams
17
17
  } from "./chunk-THHRRYRS.js";
18
18
  import {
19
19
  useProductCategories
20
- } from "./chunk-RUE5BPC2.js";
20
+ } from "./chunk-RZLN2Q6G.js";
21
21
 
22
22
  // src/pages/categories/category-list-page.tsx
23
23
  import { Children as Children3 } from "react";
@@ -0,0 +1,114 @@
1
+ import {
2
+ queryClient
3
+ } from "./chunk-RHKRREUU.js";
4
+ import {
5
+ queryKeysFactory
6
+ } from "./chunk-ZA2KFUFR.js";
7
+ import {
8
+ sdk
9
+ } from "./chunk-RIN4CBRB.js";
10
+
11
+ // src/hooks/api/offers.tsx
12
+ import {
13
+ useMutation,
14
+ useQuery
15
+ } from "@tanstack/react-query";
16
+ var OFFERS_QUERY_KEY = "offers";
17
+ var offerQueryKeys = queryKeysFactory(OFFERS_QUERY_KEY);
18
+ var useOffers = (query, options) => {
19
+ const { data, ...rest } = useQuery({
20
+ queryFn: () => sdk.vendor.offers.query({ ...query }),
21
+ queryKey: offerQueryKeys.list(query),
22
+ ...options
23
+ });
24
+ return { ...data, ...rest };
25
+ };
26
+ var useOffer = (id, query, options) => {
27
+ const { data, ...rest } = useQuery({
28
+ queryFn: () => sdk.vendor.offers.$id.query({ $id: id, ...query }),
29
+ queryKey: offerQueryKeys.detail(id, query),
30
+ enabled: !!id,
31
+ ...options
32
+ });
33
+ return { ...data, ...rest };
34
+ };
35
+ var useBulkCreateOffers = (options) => {
36
+ return useMutation({
37
+ mutationFn: (payload) => sdk.vendor.offers.batch.mutate(payload),
38
+ onSuccess: (data, variables, context) => {
39
+ queryClient.invalidateQueries({
40
+ queryKey: offerQueryKeys.lists()
41
+ });
42
+ options?.onSuccess?.(data, variables, context);
43
+ },
44
+ ...options
45
+ });
46
+ };
47
+ var useUpdateOffer = (id, options) => {
48
+ return useMutation({
49
+ mutationFn: (payload) => sdk.vendor.offers.$id.mutate({ $id: id, ...payload }),
50
+ onSuccess: (data, variables, context) => {
51
+ queryClient.invalidateQueries({
52
+ queryKey: offerQueryKeys.lists()
53
+ });
54
+ queryClient.invalidateQueries({
55
+ queryKey: offerQueryKeys.detail(id)
56
+ });
57
+ options?.onSuccess?.(data, variables, context);
58
+ },
59
+ ...options
60
+ });
61
+ };
62
+ var useDeleteOffer = (id, options) => {
63
+ return useMutation({
64
+ mutationFn: () => sdk.vendor.offers.$id.delete({ $id: id }),
65
+ onSuccess: (data, variables, context) => {
66
+ queryClient.invalidateQueries({
67
+ queryKey: offerQueryKeys.lists()
68
+ });
69
+ queryClient.removeQueries({
70
+ queryKey: offerQueryKeys.detail(id)
71
+ });
72
+ options?.onSuccess?.(data, variables, context);
73
+ },
74
+ ...options
75
+ });
76
+ };
77
+ var useBulkDeleteOffers = (options) => {
78
+ return useMutation({
79
+ mutationFn: async (ids) => {
80
+ const results = await Promise.allSettled(
81
+ ids.map((id) => sdk.vendor.offers.$id.delete({ $id: id }))
82
+ );
83
+ const succeeded = results.map((r, i) => r.status === "fulfilled" ? ids[i] : null).filter((x) => x !== null);
84
+ const failed = results.map(
85
+ (r, i) => r.status === "rejected" ? { id: ids[i], error: r.reason } : null
86
+ ).filter(
87
+ (x) => x !== null
88
+ );
89
+ return { succeeded, failed };
90
+ },
91
+ onSuccess: (result, variables, context) => {
92
+ queryClient.invalidateQueries({
93
+ queryKey: offerQueryKeys.lists()
94
+ });
95
+ result.succeeded.forEach((id) => {
96
+ queryClient.removeQueries({
97
+ queryKey: offerQueryKeys.detail(id)
98
+ });
99
+ });
100
+ options?.onSuccess?.(result, variables, context);
101
+ },
102
+ ...options
103
+ });
104
+ };
105
+
106
+ export {
107
+ offerQueryKeys,
108
+ useOffers,
109
+ useOffer,
110
+ useBulkCreateOffers,
111
+ useUpdateOffer,
112
+ useDeleteOffer,
113
+ useBulkDeleteOffers
114
+ };
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-AIF2KTEE.js";
8
8
  import {
9
9
  SingleColumnPage
10
- } from "./chunk-CAS74NLJ.js";
10
+ } from "./chunk-YV6MK4PZ.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-ZEVYT6IX.js";
23
+ } from "./chunk-QNNJN4H6.js";
24
24
 
25
25
  // src/pages/inventory/inventory-list-page.tsx
26
26
  import { Children as Children2 } from "react";
@@ -0,0 +1,63 @@
1
+ import {
2
+ useQueryParams
3
+ } from "./chunk-THHRRYRS.js";
4
+
5
+ // src/hooks/table/query/use-attribute-table-query.tsx
6
+ var useAttributeTableQuery = ({
7
+ prefix,
8
+ pageSize = 20
9
+ }) => {
10
+ const queryObject = useQueryParams(
11
+ ["offset", "q", "order", "created_at", "updated_at", "is_filterable"],
12
+ prefix
13
+ );
14
+ const { offset, q, order, created_at, updated_at, is_filterable } = queryObject;
15
+ const searchParams = {
16
+ limit: pageSize,
17
+ offset: offset ? Number(offset) : 0,
18
+ order,
19
+ created_at: created_at ? JSON.parse(created_at) : void 0,
20
+ updated_at: updated_at ? JSON.parse(updated_at) : void 0,
21
+ is_filterable: is_filterable !== void 0 ? is_filterable === "true" : void 0,
22
+ q
23
+ };
24
+ return {
25
+ searchParams,
26
+ raw: queryObject
27
+ };
28
+ };
29
+
30
+ // src/hooks/table/filters/use-attribute-table-filters.tsx
31
+ import { useTranslation } from "react-i18next";
32
+ var useAttributeTableFilters = () => {
33
+ const { t } = useTranslation();
34
+ const filterableFilter = {
35
+ key: "is_filterable",
36
+ label: t("attributes.fields.filterable"),
37
+ type: "select",
38
+ options: [
39
+ {
40
+ label: t("filters.radio.yes"),
41
+ value: "true"
42
+ },
43
+ {
44
+ label: t("filters.radio.no"),
45
+ value: "false"
46
+ }
47
+ ]
48
+ };
49
+ const dateFilters = [
50
+ { label: t("fields.createdAt"), key: "created_at" },
51
+ { label: t("fields.updatedAt"), key: "updated_at" }
52
+ ].map((f) => ({
53
+ key: f.key,
54
+ label: f.label,
55
+ type: "date"
56
+ }));
57
+ return [filterableFilter, ...dateFilters];
58
+ };
59
+
60
+ export {
61
+ useAttributeTableQuery,
62
+ useAttributeTableFilters
63
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-N7OVXN72.js";
4
+ } from "./chunk-EROX26D4.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-AIF2KTEE.js";
12
12
  import {
13
13
  SingleColumnPage
14
- } from "./chunk-CAS74NLJ.js";
14
+ } from "./chunk-YV6MK4PZ.js";
15
15
  import {
16
16
  useDeletePromotion,
17
17
  usePromotions
@@ -1,27 +1,26 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-GC33DBKG.js";
3
+ } from "./chunk-GGWUWT55.js";
4
4
  import {
5
5
  useProductTableQuery
6
- } from "./chunk-4MFMCZEJ.js";
6
+ } from "./chunk-H6LZ77GX.js";
7
7
  import {
8
8
  useProductTableFilters
9
- } from "./chunk-CNLP35S7.js";
9
+ } from "./chunk-5L2DCA4W.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
13
  } from "./chunk-AIF2KTEE.js";
14
14
  import {
15
15
  SingleColumnPage
16
- } from "./chunk-CAS74NLJ.js";
16
+ } from "./chunk-YV6MK4PZ.js";
17
17
  import {
18
18
  ActionMenu
19
19
  } from "./chunk-BDGZ4EQO.js";
20
20
  import {
21
- useBulkDeleteProducts,
22
21
  useDeleteProduct,
23
22
  useProducts
24
- } from "./chunk-ZEVYT6IX.js";
23
+ } from "./chunk-QNNJN4H6.js";
25
24
 
26
25
  // src/pages/products/product-list-page.tsx
27
26
  import { Children as Children3 } from "react";
@@ -56,25 +55,16 @@ var ProductListHeader = ({ children }) => {
56
55
  };
57
56
 
58
57
  // src/pages/products/_components/product-list-table/product-list-data-table.tsx
59
- import { Checkbox, toast, usePrompt } from "@medusajs/ui";
58
+ import { toast, usePrompt } from "@medusajs/ui";
60
59
  import { keepPreviousData } from "@tanstack/react-query";
61
- import {
62
- createColumnHelper
63
- } from "@tanstack/react-table";
64
- import { useMemo, useState } from "react";
60
+ import { createColumnHelper } from "@tanstack/react-table";
61
+ import { useMemo } from "react";
65
62
  import { useTranslation as useTranslation2 } from "react-i18next";
66
- import { useNavigate } from "react-router-dom";
67
63
  import { Trash } from "@medusajs/icons";
68
64
  import { jsx as jsx2 } from "react/jsx-runtime";
69
65
  var PAGE_SIZE = 10;
70
66
  var ProductListDataTable = () => {
71
67
  const { t } = useTranslation2();
72
- const navigate = useNavigate();
73
- const [rowSelection, setRowSelection] = useState({});
74
- const updater = (newSelection) => {
75
- const update = typeof newSelection === "function" ? newSelection(rowSelection) : newSelection;
76
- setRowSelection(update);
77
- };
78
68
  const { searchParams, raw } = useProductTableQuery({
79
69
  pageSize: PAGE_SIZE
80
70
  });
@@ -91,48 +81,9 @@ var ProductListDataTable = () => {
91
81
  columns,
92
82
  count,
93
83
  enablePagination: true,
94
- enableRowSelection: true,
95
84
  pageSize: PAGE_SIZE,
96
- getRowId: (row) => row?.id || "",
97
- rowSelection: {
98
- state: rowSelection,
99
- updater
100
- }
85
+ getRowId: (row) => row?.id || ""
101
86
  });
102
- const { mutateAsync } = useBulkDeleteProducts();
103
- const prompt = usePrompt();
104
- const handleDelete = async () => {
105
- const keys = Object.keys(rowSelection);
106
- if (keys.length === 0) {
107
- return;
108
- }
109
- const res = await prompt({
110
- title: t("products.bulkDelete.title"),
111
- description: t("products.bulkDelete.description", {
112
- count: keys.length
113
- }),
114
- confirmText: t("actions.delete"),
115
- cancelText: t("actions.cancel")
116
- });
117
- if (!res) {
118
- return;
119
- }
120
- await mutateAsync(keys, {
121
- onSuccess: () => {
122
- setRowSelection({});
123
- toast.success(
124
- t("products.bulkDelete.success", {
125
- count: keys.length
126
- })
127
- );
128
- },
129
- onError: (error2) => {
130
- toast.error(t("products.bulkDelete.error"), {
131
- description: error2.message
132
- });
133
- }
134
- });
135
- };
136
87
  if (isError) {
137
88
  throw error;
138
89
  }
@@ -159,28 +110,6 @@ var ProductListDataTable = () => {
159
110
  key: "updated_at",
160
111
  label: t("fields.updatedAt")
161
112
  }
162
- ],
163
- commands: [
164
- {
165
- action: () => {
166
- const selectedIds = Object.keys(rowSelection);
167
- const selectedProducts = (products ?? []).filter(
168
- (p) => selectedIds.includes(p.id)
169
- );
170
- if (selectedProducts.length > 0) {
171
- navigate("bulk-edit", {
172
- state: { products: selectedProducts }
173
- });
174
- }
175
- },
176
- label: t("actions.edit"),
177
- shortcut: "e"
178
- },
179
- {
180
- action: handleDelete,
181
- label: t("actions.delete"),
182
- shortcut: "d"
183
- }
184
113
  ]
185
114
  }
186
115
  );
@@ -238,30 +167,6 @@ var useColumns = () => {
238
167
  const base = useProductTableColumns();
239
168
  const columns = useMemo(
240
169
  () => [
241
- columnHelper.display({
242
- id: "select",
243
- header: ({ table }) => {
244
- return /* @__PURE__ */ jsx2(
245
- Checkbox,
246
- {
247
- checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
248
- onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
249
- }
250
- );
251
- },
252
- cell: ({ row }) => {
253
- return /* @__PURE__ */ jsx2(
254
- Checkbox,
255
- {
256
- checked: row.getIsSelected(),
257
- onCheckedChange: (value) => row.toggleSelected(!!value),
258
- onClick: (e) => {
259
- e.stopPropagation();
260
- }
261
- }
262
- );
263
- }
264
- }),
265
170
  ...base,
266
171
  columnHelper.display({
267
172
  id: "actions",
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  getLocaleAmount
3
3
  } from "./chunk-PXYDR7WQ.js";
4
- import {
5
- castNumber
6
- } from "./chunk-SMQT3ZNO.js";
7
4
  import {
8
5
  DataGrid,
9
6
  DataGridCellContainer,
@@ -12,16 +9,19 @@ import {
12
9
  useCombinedRefs,
13
10
  useDataGridCell,
14
11
  useDataGridCellError
15
- } from "./chunk-Y2QI7KWS.js";
12
+ } from "./chunk-4LVP635F.js";
16
13
  import {
17
14
  currencies
18
15
  } from "./chunk-IQPN4PZJ.js";
16
+ import {
17
+ castNumber
18
+ } from "./chunk-SMQT3ZNO.js";
19
19
  import {
20
20
  KeyboundForm
21
21
  } from "./chunk-U2ZFCAPX.js";
22
22
  import {
23
23
  StackedFocusModal
24
- } from "./chunk-3CK6OINO.js";
24
+ } from "./chunk-GDWBOQI5.js";
25
25
  import {
26
26
  Form
27
27
  } from "./chunk-3QSRE5LS.js";
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  GEO_ZONE_STACKED_MODAL_ID
3
3
  } from "./chunk-BCU3FKP2.js";
4
+ import {
5
+ countries
6
+ } from "./chunk-JRTZWK77.js";
4
7
  import {
5
8
  _DataTable,
6
9
  useDataTable
@@ -8,16 +11,13 @@ import {
8
11
  import {
9
12
  StackedFocusModal,
10
13
  useStackedModal
11
- } from "./chunk-3CK6OINO.js";
14
+ } from "./chunk-GDWBOQI5.js";
12
15
  import {
13
16
  Form
14
17
  } from "./chunk-3QSRE5LS.js";
15
18
  import {
16
19
  useQueryParams
17
20
  } from "./chunk-THHRRYRS.js";
18
- import {
19
- countries
20
- } from "./chunk-JRTZWK77.js";
21
21
 
22
22
  // src/pages/settings/locations/_common/components/geo-zone-form/geo-zone-form.tsx
23
23
  import { Button as Button2, Checkbox } from "@medusajs/ui";