@mercurjs/vendor 2.1.6 → 2.2.0-canary.11

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 (259) hide show
  1. package/dist/[id]-A55T2ORL.js +3066 -0
  2. package/dist/[id]-B4YZTANM.js +1571 -0
  3. package/dist/{[id]-UTKO3VG4.js → [id]-EKLRGVBA.js} +10 -10
  4. package/dist/{[id]-TO6KT3ZE.js → [id]-FE5GYYVZ.js} +28 -25
  5. package/dist/{[id]-4VCL3MMM.js → [id]-GBT6VB4S.js} +29 -23
  6. package/dist/{[id]-3G5G7ZFV.js → [id]-GC3ZYPK4.js} +25 -22
  7. package/dist/{[id]-6PXEWRG7.js → [id]-J6BZG5PU.js} +14 -14
  8. package/dist/{[id]-B3LHVQM5.js → [id]-QOEO3JOV.js} +29 -23
  9. package/dist/{[id]-H3C3ZSC6.js → [id]-QQU5HVFU.js} +29 -23
  10. package/dist/{[id]-PDGHF5J2.js → [id]-SHAJTJNZ.js} +43 -36
  11. package/dist/{[id]-X4DDKOMQ.js → [id]-T5ECVBPF.js} +30 -24
  12. package/dist/{[id]-T2ROPEGY.js → [id]-U5KZEQDR.js} +7 -7
  13. package/dist/{[id]-7RUAH3TI.js → [id]-YPCO3DJV.js} +5 -5
  14. package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
  15. package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
  16. package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-6GUA4PV5.js} +23 -20
  17. package/dist/{add-C6OX5C54.js → add-NTRYWOJF.js} +42 -35
  18. package/dist/add-RU3WL4YB.js +428 -0
  19. package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-U5RZWW4B.js} +19 -16
  20. package/dist/{add-products-INOLNPO6.js → add-products-Q4MMDQKT.js} +26 -20
  21. package/dist/{add-promotions-AHDOP52Q.js → add-promotions-3AYXQXTP.js} +8 -8
  22. package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-QKYQCSR2.js} +4 -4
  23. package/dist/{address-KRENKSLP.js → address-77Y3AOQ3.js} +19 -16
  24. package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-AFJLWF5R.js} +2 -2
  25. package/dist/{allocate-items-SUCUZU4D.js → allocate-items-TCM5A55Y.js} +141 -126
  26. package/dist/{areas-UUMZDXLX.js → areas-XUC5V5UO.js} +8 -8
  27. package/dist/{attributes-CALEHJJG.js → attributes-SZP2MM5L.js} +3 -3
  28. package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-2XA2WOK7.js} +1 -1
  29. package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-5NP23D6X.js} +15 -12
  30. package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-EVZIOB2G.js} +14 -11
  31. package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-FPWBT76A.js} +8 -2
  32. package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-IK6XCQOQ.js} +2 -2
  33. package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-KTARIL65.js} +2 -2
  34. package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-PBR27GGX.js} +3 -3
  35. package/dist/breadcrumb-THJ2HPRB.js +26 -0
  36. package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-TNJSGX4T.js} +15 -12
  37. package/dist/{campaigns-HS6MIO7X.js → campaigns-JAQTSA4Z.js} +6 -6
  38. package/dist/{categories-PKWR3FM3.js → categories-T4QJYX4R.js} +8 -8
  39. package/dist/{chunk-4URLUCTD.js → chunk-25E4KME5.js} +3 -3
  40. package/dist/chunk-27KRIXMQ.js +71 -0
  41. package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
  42. package/dist/{chunk-ZYOXKUKZ.js → chunk-2QTNCGKX.js} +1 -1
  43. package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
  44. package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
  45. package/dist/{chunk-VQ5EKDA3.js → chunk-3PMM6AMP.js} +3 -3
  46. package/dist/{chunk-J6BRLL3F.js → chunk-463CNCJC.js} +3 -3
  47. package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
  48. package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
  49. package/dist/{chunk-RUE5BPC2.js → chunk-5QI3NDJG.js} +1 -1
  50. package/dist/{chunk-PPLC4IKI.js → chunk-5T6UWTRU.js} +10 -5
  51. package/dist/{chunk-WITQNQXN.js → chunk-6FUIK3PX.js} +4 -4
  52. package/dist/{chunk-HGQTL7NX.js → chunk-6K6EQOJF.js} +3 -3
  53. package/dist/{chunk-KAZ5BYTQ.js → chunk-6OUPJNYO.js} +5 -3
  54. package/dist/{chunk-PEKANQ3T.js → chunk-6UZERVBI.js} +2 -2
  55. package/dist/{chunk-RTAWYMQP.js → chunk-7CMRFP5Q.js} +2 -2
  56. package/dist/{chunk-I2IKYOZX.js → chunk-7IPCLQ5V.js} +19 -19
  57. package/dist/chunk-ADGVQVHP.js +101 -0
  58. package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
  59. package/dist/chunk-BER45EYD.js +82 -0
  60. package/dist/{chunk-PCMNEUMV.js → chunk-BXRNZS5K.js} +1 -1
  61. package/dist/chunk-CFRWIQIZ.js +43 -0
  62. package/dist/{chunk-RL7SFZOF.js → chunk-DDJQRV6E.js} +1 -1
  63. package/dist/{chunk-D2MA5TAP.js → chunk-DO4F5FIO.js} +2 -2
  64. package/dist/{chunk-X4FLOQ45.js → chunk-DQKK43PR.js} +3 -3
  65. package/dist/{chunk-6WY5X4PE.js → chunk-E6W57UP3.js} +35 -125
  66. package/dist/chunk-FP6U6BPH.js +61 -0
  67. package/dist/chunk-FWPGOIFA.js +22 -0
  68. package/dist/{chunk-BLVJAKBA.js → chunk-FWS4YJ4B.js} +1 -1
  69. package/dist/chunk-GAE6TKOR.js +811 -0
  70. package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
  71. package/dist/{chunk-PDQSPKG5.js → chunk-GN6KB75Z.js} +1 -1
  72. package/dist/chunk-HDEOZN2Q.js +60 -0
  73. package/dist/chunk-IBEUR3J7.js +173 -0
  74. package/dist/chunk-J6XCRFBW.js +30 -0
  75. package/dist/{chunk-ZEVYT6IX.js → chunk-JAUZ73XE.js} +151 -266
  76. package/dist/{chunk-CNLP35S7.js → chunk-K6LOZ4S3.js} +54 -18
  77. package/dist/{chunk-JQP7MOFH.js → chunk-KIFSQOM2.js} +2 -2
  78. package/dist/{chunk-DARJTN4I.js → chunk-L4KBTV57.js} +9 -2
  79. package/dist/chunk-L57USMYC.js +39 -0
  80. package/dist/chunk-LARLBYU6.js +127 -0
  81. package/dist/chunk-LDZCCWJB.js +518 -0
  82. package/dist/chunk-LEWA4BPH.js +18 -0
  83. package/dist/chunk-LFX6WU4A.js +36 -0
  84. package/dist/{chunk-ITI54CII.js → chunk-LKUW5SV4.js} +6 -6
  85. package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
  86. package/dist/{chunk-4MFMCZEJ.js → chunk-MJCL3WID.js} +2 -2
  87. package/dist/{chunk-32RYSB2V.js → chunk-NBKWY6XN.js} +2 -2
  88. package/dist/{chunk-GYV6SKY7.js → chunk-O7VOGTLX.js} +4 -6
  89. package/dist/{chunk-KQGVSLUI.js → chunk-OYKUQXJX.js} +1926 -957
  90. package/dist/{chunk-CYTNBXWF.js → chunk-OZ44ATGE.js} +8 -8
  91. package/dist/{chunk-7Q5SDEK7.js → chunk-PAVZ6FPK.js} +7 -7
  92. package/dist/{chunk-2RHAI7WK.js → chunk-QLBIBLOY.js} +2 -2
  93. package/dist/chunk-RXV7INUV.js +426 -0
  94. package/dist/chunk-S23FD6FA.js +210 -0
  95. package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
  96. package/dist/{chunk-OXXL4WQU.js → chunk-SPOHNK4X.js} +6 -6
  97. package/dist/{chunk-AIF2KTEE.js → chunk-SSUUT5LK.js} +12 -2
  98. package/dist/{chunk-QX45GVAL.js → chunk-SZBERGA4.js} +8 -8
  99. package/dist/{chunk-6SBMVLJ2.js → chunk-T5MJWWDX.js} +2 -2
  100. package/dist/chunk-T6LHVNWO.js +27 -0
  101. package/dist/chunk-TBYCZRZ7.js +248 -0
  102. package/dist/chunk-TF6V3TFG.js +438 -0
  103. package/dist/chunk-TW324MAT.js +185 -0
  104. package/dist/{chunk-4ZGFODSC.js → chunk-TYESCFYW.js} +1 -1
  105. package/dist/chunk-U5G3AVED.js +64 -0
  106. package/dist/chunk-U6PBLMXD.js +14 -0
  107. package/dist/{chunk-GZMXTNDN.js → chunk-UCYSCKZV.js} +1432 -1380
  108. package/dist/{chunk-P3ZTO6T2.js → chunk-UFFVRF4V.js} +2 -2
  109. package/dist/chunk-UM7ZR3VU.js +14 -0
  110. package/dist/chunk-UORPTGV2.js +114 -0
  111. package/dist/{chunk-5M3SL4UZ.js → chunk-VCOQ7WQ2.js} +30 -106
  112. package/dist/chunk-VCUUITW6.js +35 -0
  113. package/dist/{chunk-PTW7JNAP.js → chunk-VDHW6H5F.js} +5 -5
  114. package/dist/chunk-VZUA5SRD.js +62 -0
  115. package/dist/{chunk-DKQ4XMSN.js → chunk-X4GWB6AT.js} +6 -6
  116. package/dist/{chunk-6YA3C4NB.js → chunk-XCIMOIX6.js} +3 -12
  117. package/dist/chunk-XP23ZVQT.js +2183 -0
  118. package/dist/{chunk-WBI7FEGI.js → chunk-Y2MQ5EMD.js} +29 -24
  119. package/dist/chunk-YBF45CX5.js +23 -0
  120. package/dist/{chunk-N7OVXN72.js → chunk-YGJCJBPM.js} +1 -1
  121. package/dist/{chunk-WNVEMFIK.js → chunk-YHIJCI4U.js} +3 -3
  122. package/dist/{chunk-WFE6CT6M.js → chunk-YQZBAP3S.js} +22 -76
  123. package/dist/chunk-ZHFFTT3I.js +17 -0
  124. package/dist/{collections-DJZI2RM2.js → collections-URH2TCWJ.js} +28 -24
  125. package/dist/{configuration-GN3TO77H.js → configuration-7IYZ6GNP.js} +3 -3
  126. package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
  127. package/dist/{create-7S7CZWEN.js → create-5PSOIHIT.js} +4 -4
  128. package/dist/create-7R6CZU53.js +215 -0
  129. package/dist/{create-3EK5CNNX.js → create-A7B3MLJX.js} +41 -34
  130. package/dist/create-F5R76QML.js +1178 -0
  131. package/dist/create-FKRYB7ZS.js +1784 -0
  132. package/dist/create-GGACODDN.js +1914 -0
  133. package/dist/{create-YO55Z3YD.js → create-HVZYJ3YC.js} +35 -38
  134. package/dist/{create-IDVCZHIX.js → create-JF2OUZQA.js} +16 -13
  135. package/dist/{create-3ZVXEPX5.js → create-JGYG5SBM.js} +29 -23
  136. package/dist/{create-G4T2PAJH.js → create-MS6KKFSV.js} +21 -18
  137. package/dist/{create-OCFPLNNY.js → create-MZYXMGKP.js} +6 -6
  138. package/dist/{create-HKJVSFB7.js → create-O35JRZEF.js} +25 -22
  139. package/dist/{create-OGLPDVOI.js → create-ODOFJF5N.js} +40 -37
  140. package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
  141. package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
  142. package/dist/create-TKXH5KQY.js +239 -0
  143. package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
  144. package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
  145. package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
  146. package/dist/{customers-6ZLE65UX.js → customers-SOLJ2KQQ.js} +5 -5
  147. package/dist/{edit-QBISX7D3.js → edit-2R5QCPTB.js} +16 -13
  148. package/dist/{edit-IR6V2IDN.js → edit-3E4ZO7HT.js} +21 -18
  149. package/dist/{edit-ZSOI56BQ.js → edit-4G5D7TES.js} +52 -40
  150. package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
  151. package/dist/{edit-B75KK5ZX.js → edit-5CROKEJE.js} +41 -34
  152. package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
  153. package/dist/{edit-7HTH2UJF.js → edit-FXNXTVIW.js} +3 -3
  154. package/dist/{edit-RNT555GP.js → edit-G2E5SNGU.js} +15 -12
  155. package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
  156. package/dist/{edit-2KRJIPRK.js → edit-HTLLYECP.js} +21 -18
  157. package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
  158. package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
  159. package/dist/{edit-FNDDSSMT.js → edit-OKU6FMHJ.js} +60 -9
  160. package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
  161. package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
  162. package/dist/edit-VVLITC2E.js +910 -0
  163. package/dist/edit-XSICGAVO.js +176 -0
  164. package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
  165. package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
  166. package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
  167. package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-ZKXXL3QK.js} +2 -2
  168. package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-GSKUMORD.js} +3 -3
  169. package/dist/{fulfillment-DCS67LTK.js → fulfillment-76IVZ266.js} +32 -22
  170. package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-G2L6LEVO.js} +24 -20
  171. package/dist/index.css +104 -65
  172. package/dist/index.d.ts +3 -10
  173. package/dist/index.js +549 -456
  174. package/dist/{inventory-OPZ2FSEE.js → inventory-WSFLTA6Z.js} +7 -7
  175. package/dist/{invite-KEJLNXEZ.js → invite-2673PU4I.js} +17 -13
  176. package/dist/{invite-CQCKEQW2.js → invite-HRXZ5YBP.js} +28 -24
  177. package/dist/loader-VDYPD3RI.js +31 -0
  178. package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
  179. package/dist/{login-OUHRNNXA.js → login-TWUBU6I6.js} +14 -11
  180. package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-XHH5DVIR.js} +2 -2
  181. package/dist/{media-4KYFHB5V.js → media-Z4N5MKFG.js} +42 -9
  182. package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
  183. package/dist/{metadata-OCE6A3JE.js → metadata-D6M66NQK.js} +17 -14
  184. package/dist/{metadata-PYY4IB7K.js → metadata-NIDIBXJT.js} +17 -14
  185. package/dist/{metadata-XP3ZYW2M.js → metadata-Q74OJWUD.js} +18 -15
  186. package/dist/{metadata-NYYL26MQ.js → metadata-REQIFWWH.js} +18 -15
  187. package/dist/{metadata-G7KZXVNE.js → metadata-YVHJPDLD.js} +17 -14
  188. package/dist/offer-create-page-E4FLSDJQ.js +743 -0
  189. package/dist/offer-detail-page-6SIBQTLP.js +492 -0
  190. package/dist/offer-edit-page-3MO566RP.js +151 -0
  191. package/dist/offer-inventory-batch-page-BD6PMDLW.js +290 -0
  192. package/dist/offer-pricing-edit-page-4TINK42V.js +199 -0
  193. package/dist/offers-GVN5LCK6.js +32 -0
  194. package/dist/{onboarding-WXZHW62K.js → onboarding-MK2RIFD4.js} +24 -21
  195. package/dist/{orders-LWJ472VM.js → orders-TVQDR4OJ.js} +30 -26
  196. package/dist/organization-XO3T2K2X.js +340 -0
  197. package/dist/{organize-RFOMQCBG.js → organize-5XRZWD5C.js} +4 -4
  198. package/dist/{organize-OVKJ3HZO.js → organize-Z7JTTDH4.js} +4 -4
  199. package/dist/pages/index.d.ts +439 -758
  200. package/dist/pages/index.js +85 -78
  201. package/dist/{payment-details-UVXYCTUK.js → payment-details-CFTX3QDL.js} +19 -16
  202. package/dist/{payouts-TR7K5I37.js → payouts-7Q7D4FET.js} +8 -8
  203. package/dist/{price-lists-S2WNELFZ.js → price-lists-6TFLA53G.js} +9 -9
  204. package/dist/{pricing-UF27DAXA.js → pricing-ECXV6K7G.js} +41 -37
  205. package/dist/{product-tags-2CKH2M6D.js → product-tags-5O7ZG6SA.js} +40 -33
  206. package/dist/{product-types-FX43JEO2.js → product-types-PKUEL7X5.js} +6 -6
  207. package/dist/product-variant-detail-PUWOMVHQ.js +210 -0
  208. package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-WZNO4CQX.js} +134 -66
  209. package/dist/{products-H5EMRJYS.js → products-BM3IIH5P.js} +27 -21
  210. package/dist/{products-2LHGS7X3.js → products-CPTRYL2Z.js} +44 -45
  211. package/dist/{professional-details-HYKTH44B.js → professional-details-ED4HNYXY.js} +18 -15
  212. package/dist/{profile-PB27WIRW.js → profile-6TGCNNUU.js} +21 -18
  213. package/dist/{promotions-5EYPGHJP.js → promotions-4336KI7E.js} +9 -9
  214. package/dist/receive-224KLULH.js +578 -0
  215. package/dist/refund-IGMSXQNX.js +268 -0
  216. package/dist/{register-X45K325N.js → register-OZ5CRANZ.js} +18 -15
  217. package/dist/{reset-password-GTWLBOFK.js → reset-password-5UHZU4D3.js} +1 -1
  218. package/dist/{return-reasons-LOKYRGMI.js → return-reasons-QJRA2ZX6.js} +21 -17
  219. package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-CZDU7VTE.js} +7 -6
  220. package/dist/{sales-channels-7R2IY3KG.js → sales-channels-U55MUDQP.js} +7 -6
  221. package/dist/{settings-2XDLFYMS.js → settings-2GCQQTO6.js} +47 -40
  222. package/dist/shipment-HWQHMX2L.js +242 -0
  223. package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-ZP7M6VSS.js} +2 -2
  224. package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-C5WBXWZ2.js} +21 -18
  225. package/dist/{stock-5RXNUPUT.js → stock-MQA7PRO6.js} +21 -18
  226. package/dist/{store-MPYOWMZT.js → store-5ZHZR4JI.js} +84 -149
  227. package/dist/{store-closure-DNMCHUXD.js → store-closure-H5WHV3LA.js} +24 -16
  228. package/dist/{store-select-UTPJ7DM7.js → store-select-PZS556FB.js} +19 -16
  229. package/dist/{tax-regions-UD6P5FVC.js → tax-regions-HDLBFZVG.js} +6 -6
  230. package/dist/{team-IMS66MVP.js → team-CLKJCZNH.js} +29 -26
  231. package/dist/types-CtCEtTE6.d.ts +16 -0
  232. package/package.json +5 -5
  233. package/dist/[id]-BYP37PU4.js +0 -1314
  234. package/dist/[id]-INOFZHL7.js +0 -1219
  235. package/dist/add-KRAGFFBJ.js +0 -158
  236. package/dist/bulk-edit-3SMBLIOA.js +0 -244
  237. package/dist/chunk-47SXTGLN.js +0 -397
  238. package/dist/chunk-4KX6CBJ4.js +0 -178
  239. package/dist/chunk-DLNNTQRY.js +0 -217
  240. package/dist/chunk-FX4V5JCF.js +0 -37
  241. package/dist/chunk-GC33DBKG.js +0 -143
  242. package/dist/chunk-LQYMBSRQ.js +0 -66
  243. package/dist/chunk-NK4NR6MN.js +0 -173
  244. package/dist/chunk-PFU6FSXY.js +0 -430
  245. package/dist/chunk-QJEOPT2P.js +0 -330
  246. package/dist/chunk-QSGR43JM.js +0 -30
  247. package/dist/chunk-STR3NGWE.js +0 -3736
  248. package/dist/create-3DOO3RNH.js +0 -716
  249. package/dist/create-I7HV3RM6.js +0 -150
  250. package/dist/edit-K2AD335I.js +0 -237
  251. package/dist/edit-VO5XLIEL.js +0 -362
  252. package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
  253. package/dist/organization-LPYQRTQC.js +0 -303
  254. package/dist/prices-3OXV5RGY.js +0 -270
  255. package/dist/product-variant-detail-WV4KXVXR.js +0 -590
  256. package/dist/shipment-4GW2JFWB.js +0 -174
  257. package/dist/stock-GPC3BCL6.js +0 -500
  258. package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
  259. /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
@@ -1,397 +0,0 @@
1
- import {
2
- queryClient
3
- } from "./chunk-RHKRREUU.js";
4
- import {
5
- queryKeysFactory
6
- } from "./chunk-ZA2KFUFR.js";
7
- import {
8
- fetchQuery,
9
- sdk
10
- } from "./chunk-RIN4CBRB.js";
11
-
12
- // src/hooks/api/members.tsx
13
- import {
14
- useMutation,
15
- useQuery
16
- } from "@tanstack/react-query";
17
- var MEMBERS_QUERY_KEY = "members";
18
- var membersQueryKeys = {
19
- ...queryKeysFactory(MEMBERS_QUERY_KEY),
20
- me: () => [MEMBERS_QUERY_KEY, "me"]
21
- };
22
- var useMe = (options) => {
23
- const { data, ...rest } = useQuery({
24
- queryFn: () => sdk.vendor.members.me.query(),
25
- queryKey: membersQueryKeys.me(),
26
- ...options
27
- });
28
- return {
29
- ...data,
30
- ...rest
31
- };
32
- };
33
- var useUpdateMe = (options) => {
34
- return useMutation({
35
- mutationFn: (payload) => sdk.vendor.members.me.mutate(payload),
36
- onSuccess: (data, variables, context) => {
37
- queryClient.invalidateQueries({ queryKey: membersQueryKeys.me() });
38
- options?.onSuccess?.(data, variables, context);
39
- },
40
- ...options
41
- });
42
- };
43
- var useSellerMembers = (sellerId, query, options) => {
44
- const { data, ...rest } = useQuery({
45
- queryFn: () => sdk.vendor.sellers.$id.members.query({ $id: sellerId, ...query }),
46
- queryKey: membersQueryKeys.list({ sellerId, ...query }),
47
- ...options
48
- });
49
- return {
50
- ...data,
51
- ...rest
52
- };
53
- };
54
- var useRemoveSellerMember = (sellerId, memberId, options) => {
55
- return useMutation({
56
- mutationFn: () => sdk.vendor.sellers.$id.members.$memberId.delete({
57
- $id: sellerId,
58
- $memberId: memberId
59
- }),
60
- onSuccess: (data, variables, context) => {
61
- queryClient.invalidateQueries({
62
- queryKey: membersQueryKeys.lists()
63
- });
64
- options?.onSuccess?.(data, variables, context);
65
- },
66
- ...options
67
- });
68
- };
69
-
70
- // src/hooks/api/tags.tsx
71
- import {
72
- useMutation as useMutation2,
73
- useQuery as useQuery2
74
- } from "@tanstack/react-query";
75
- var TAGS_QUERY_KEY = "tags";
76
- var productTagsQueryKeys = queryKeysFactory(TAGS_QUERY_KEY);
77
- var useProductTag = (id, query, options) => {
78
- const { data, ...rest } = useQuery2({
79
- queryKey: productTagsQueryKeys.detail(id, query),
80
- queryFn: async () => sdk.vendor.productTags.$id.query({ $id: id, ...query }),
81
- ...options
82
- });
83
- return { ...data, ...rest };
84
- };
85
- var useProductTags = (query, options) => {
86
- const { data, ...rest } = useQuery2({
87
- queryKey: productTagsQueryKeys.list(query),
88
- queryFn: async () => sdk.vendor.productTags.query({ ...query }),
89
- ...options
90
- });
91
- return { ...data, ...rest };
92
- };
93
- var useUpdateProductTag = (id, options) => {
94
- return useMutation2({
95
- mutationFn: (payload) => sdk.vendor.productTags.$id.mutate({ $id: id, ...payload }),
96
- onSuccess: (data, variables, context) => {
97
- queryClient.invalidateQueries({
98
- queryKey: productTagsQueryKeys.lists()
99
- });
100
- queryClient.invalidateQueries({
101
- queryKey: productTagsQueryKeys.detail(data.product_tag.id)
102
- });
103
- options?.onSuccess?.(data, variables, context);
104
- },
105
- ...options
106
- });
107
- };
108
- var useDeleteProductTag = (id, options) => {
109
- return useMutation2({
110
- mutationFn: () => sdk.vendor.productTags.$id.delete({ $id: id }),
111
- onSuccess: (data, variables, context) => {
112
- queryClient.invalidateQueries({
113
- queryKey: productTagsQueryKeys.lists()
114
- });
115
- queryClient.invalidateQueries({
116
- queryKey: productTagsQueryKeys.detail(id)
117
- });
118
- options?.onSuccess?.(data, variables, context);
119
- },
120
- ...options
121
- });
122
- };
123
-
124
- // src/hooks/api/currencies.tsx
125
- import { useQuery as useQuery3 } from "@tanstack/react-query";
126
- var CURRENCIES_QUERY_KEY = "currencies";
127
- var currenciesQueryKeys = queryKeysFactory(CURRENCIES_QUERY_KEY);
128
-
129
- // src/hooks/api/feature-flags.tsx
130
- import { useQuery as useQuery4 } from "@tanstack/react-query";
131
- var FEATURE_FLAGS_QUERY_KEY = "feature_flags";
132
- var featureFlagsQueryKeys = queryKeysFactory(FEATURE_FLAGS_QUERY_KEY);
133
- var useFeatureFlags = (options) => {
134
- const { data, ...rest } = useQuery4({
135
- queryFn: () => sdk.vendor.featureFlags.query(),
136
- queryKey: featureFlagsQueryKeys.lists(),
137
- ...options
138
- });
139
- return { ...data, ...rest };
140
- };
141
-
142
- // src/hooks/api/fulfillment.tsx
143
- import { useMutation as useMutation3 } from "@tanstack/react-query";
144
- var FULFILLMENTS_QUERY_KEY = "fulfillments";
145
- var fulfillmentsQueryKeys = queryKeysFactory(FULFILLMENTS_QUERY_KEY);
146
-
147
- // src/hooks/api/invites.tsx
148
- import {
149
- useMutation as useMutation4,
150
- useQuery as useQuery5
151
- } from "@tanstack/react-query";
152
- var INVITES_QUERY_KEY = "invites";
153
- var invitesQueryKeys = queryKeysFactory(INVITES_QUERY_KEY);
154
- var useInvites = (sellerId, query, options) => {
155
- const { data, ...rest } = useQuery5({
156
- queryFn: () => sdk.vendor.sellers.$id.members.invites.query({
157
- $id: sellerId,
158
- ...query
159
- }),
160
- queryKey: invitesQueryKeys.list({ sellerId, ...query }),
161
- ...options
162
- });
163
- return { ...data, ...rest };
164
- };
165
- var useAcceptInvite = (options) => {
166
- return useMutation4({
167
- mutationFn: (payload) => sdk.vendor.members.invites.accept.mutate({
168
- invite_token: payload.invite_token,
169
- first_name: payload.first_name,
170
- last_name: payload.last_name,
171
- fetchOptions: {
172
- headers: {
173
- Authorization: `Bearer ${payload.auth_token}`
174
- }
175
- }
176
- }),
177
- ...options
178
- });
179
- };
180
- var useCreateInvite = (sellerId, options) => {
181
- return useMutation4({
182
- mutationFn: (payload) => sdk.vendor.sellers.$id.members.mutate({ $id: sellerId, ...payload }),
183
- onSuccess: (data, variables, context) => {
184
- queryClient.invalidateQueries({ queryKey: invitesQueryKeys.lists() });
185
- options?.onSuccess?.(data, variables, context);
186
- },
187
- ...options
188
- });
189
- };
190
-
191
- // src/hooks/api/notification.tsx
192
- import { useQuery as useQuery6 } from "@tanstack/react-query";
193
- var NOTIFICATION_QUERY_KEY = "notification";
194
- var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
195
- var useNotifications = (query, options) => {
196
- const { data, ...rest } = useQuery6({
197
- queryFn: () => fetchQuery(`/vendor/notifications`, {
198
- method: "GET",
199
- query
200
- }),
201
- queryKey: notificationQueryKeys.list(query),
202
- ...options
203
- });
204
- return { ...data, ...rest };
205
- };
206
-
207
- // src/hooks/api/payment-collections.tsx
208
- import { useMutation as useMutation5 } from "@tanstack/react-query";
209
- var PAYMENT_COLLECTION_QUERY_KEY = "payment-collection";
210
- var paymentCollectionQueryKeys = queryKeysFactory(
211
- PAYMENT_COLLECTION_QUERY_KEY
212
- );
213
-
214
- // src/hooks/api/payments.tsx
215
- import {
216
- useMutation as useMutation6,
217
- useQuery as useQuery7
218
- } from "@tanstack/react-query";
219
- var PAYMENT_QUERY_KEY = "payment";
220
- var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
221
- var PAYMENT_PROVIDERS_QUERY_KEY = "payment_providers";
222
- var paymentProvidersQueryKeys = queryKeysFactory(
223
- PAYMENT_PROVIDERS_QUERY_KEY
224
- );
225
-
226
- // src/hooks/api/product-variants.tsx
227
- import {
228
- useQuery as useQuery8
229
- } from "@tanstack/react-query";
230
- var PRODUCT_VARIANT_QUERY_KEY = "product_variant";
231
- var productVariantQueryKeys = queryKeysFactory(
232
- PRODUCT_VARIANT_QUERY_KEY
233
- );
234
-
235
- // src/hooks/api/refund-reasons.tsx
236
- import {
237
- useMutation as useMutation7,
238
- useQuery as useQuery9
239
- } from "@tanstack/react-query";
240
- var REFUND_REASONS_QUERY_KEY = "refund_reasons";
241
- var refundReasonsQueryKeys = queryKeysFactory(
242
- REFUND_REASONS_QUERY_KEY
243
- );
244
-
245
- // src/hooks/api/sellers.tsx
246
- import {
247
- useMutation as useMutation8,
248
- useQuery as useQuery10
249
- } from "@tanstack/react-query";
250
- var SELLERS_QUERY_KEY = "sellers";
251
- var sellersQueryKeys = queryKeysFactory(SELLERS_QUERY_KEY);
252
- var useSellers = (query, options) => {
253
- const { data, ...rest } = useQuery10({
254
- queryKey: sellersQueryKeys.list(query),
255
- queryFn: () => sdk.vendor.sellers.query({ ...query }),
256
- ...options
257
- });
258
- return { ...data, ...rest };
259
- };
260
- var useSelectSeller = (options) => {
261
- return useMutation8({
262
- mutationFn: (payload) => sdk.vendor.sellers.select.mutate(payload),
263
- onSuccess: (data, variables, context) => {
264
- queryClient.invalidateQueries({
265
- queryKey: membersQueryKeys.me()
266
- });
267
- options?.onSuccess?.(data, variables, context);
268
- },
269
- ...options
270
- });
271
- };
272
- var useUpdateSeller = (id, options) => {
273
- return useMutation8({
274
- mutationFn: (payload) => sdk.vendor.sellers.$id.mutate({ $id: id, ...payload }),
275
- onSuccess: (data, variables, context) => {
276
- queryClient.invalidateQueries({
277
- queryKey: sellersQueryKeys.all
278
- });
279
- queryClient.invalidateQueries({
280
- queryKey: membersQueryKeys.me()
281
- });
282
- options?.onSuccess?.(data, variables, context);
283
- },
284
- ...options
285
- });
286
- };
287
- var useUpdateSellerAddress = (id, options) => {
288
- return useMutation8({
289
- mutationFn: (payload) => sdk.vendor.sellers.$id.address.mutate({ $id: id, ...payload }),
290
- onSuccess: (data, variables, context) => {
291
- queryClient.invalidateQueries({
292
- queryKey: sellersQueryKeys.all
293
- });
294
- queryClient.invalidateQueries({
295
- queryKey: membersQueryKeys.me()
296
- });
297
- options?.onSuccess?.(data, variables, context);
298
- },
299
- ...options
300
- });
301
- };
302
- var useUpdateSellerPaymentDetails = (id, options) => {
303
- return useMutation8({
304
- mutationFn: (payload) => sdk.vendor.sellers.$id.paymentDetails.mutate({ $id: id, ...payload }),
305
- onSuccess: (data, variables, context) => {
306
- queryClient.invalidateQueries({
307
- queryKey: sellersQueryKeys.all
308
- });
309
- queryClient.invalidateQueries({
310
- queryKey: membersQueryKeys.me()
311
- });
312
- options?.onSuccess?.(data, variables, context);
313
- },
314
- ...options
315
- });
316
- };
317
- var useUpdateSellerProfessionalDetails = (id, options) => {
318
- return useMutation8({
319
- mutationFn: (payload) => sdk.vendor.sellers.$id.professionalDetails.mutate({
320
- $id: id,
321
- ...payload
322
- }),
323
- onSuccess: (data, variables, context) => {
324
- queryClient.invalidateQueries({
325
- queryKey: sellersQueryKeys.all
326
- });
327
- queryClient.invalidateQueries({
328
- queryKey: membersQueryKeys.me()
329
- });
330
- options?.onSuccess?.(data, variables, context);
331
- },
332
- ...options
333
- });
334
- };
335
- var useCreateSellerAccount = (options) => {
336
- return useMutation8({
337
- mutationFn: (payload) => sdk.vendor.sellers.mutate(payload),
338
- onSuccess: (data, variables, context) => {
339
- queryClient.invalidateQueries({
340
- queryKey: sellersQueryKeys.all
341
- });
342
- options?.onSuccess?.(data, variables, context);
343
- },
344
- ...options
345
- });
346
- };
347
-
348
- // src/hooks/api/shipping-option-types.tsx
349
- import {
350
- useMutation as useMutation9,
351
- useQuery as useQuery11
352
- } from "@tanstack/react-query";
353
- var SHIPPING_OPTION_TYPES_QUERY_KEY = "shipping_option_types";
354
- var shippingOptionTypesQueryKeys = queryKeysFactory(
355
- SHIPPING_OPTION_TYPES_QUERY_KEY
356
- );
357
-
358
- // src/hooks/api/subscription.tsx
359
- import { useQuery as useQuery12 } from "@tanstack/react-query";
360
- var SUBSCRIPTION_QUERY_KEY = "subscription";
361
- var subscriptionQueryKeys = queryKeysFactory(SUBSCRIPTION_QUERY_KEY);
362
- var useSubscription = (query, options) => {
363
- const { data, ...rest } = useQuery12({
364
- queryKey: subscriptionQueryKeys.details(),
365
- queryFn: () => sdk.vendor.subscription.query({ ...query }),
366
- ...options
367
- });
368
- return { ...data, ...rest };
369
- };
370
-
371
- export {
372
- useFeatureFlags,
373
- useInvites,
374
- useAcceptInvite,
375
- useCreateInvite,
376
- notificationQueryKeys,
377
- useNotifications,
378
- membersQueryKeys,
379
- useMe,
380
- useUpdateMe,
381
- useSellerMembers,
382
- useRemoveSellerMember,
383
- useSellers,
384
- useSelectSeller,
385
- useUpdateSeller,
386
- useUpdateSellerAddress,
387
- useUpdateSellerPaymentDetails,
388
- useUpdateSellerProfessionalDetails,
389
- useCreateSellerAccount,
390
- subscriptionQueryKeys,
391
- useSubscription,
392
- productTagsQueryKeys,
393
- useProductTag,
394
- useProductTags,
395
- useUpdateProductTag,
396
- useDeleteProductTag
397
- };
@@ -1,178 +0,0 @@
1
- // src/components/common/file-upload/file-upload.tsx
2
- import { ArrowDownTray, XMark } from "@medusajs/icons";
3
- import { IconButton, Text, clx } from "@medusajs/ui";
4
- import { useRef, useState } from "react";
5
-
6
- // src/lib/format-file-size.ts
7
- var formatFileSize = (bytes) => {
8
- if (bytes === 0) return "0 B";
9
- const units = ["B", "KB", "MB", "GB"];
10
- const i = Math.floor(Math.log(bytes) / Math.log(1024));
11
- return `${(bytes / Math.pow(1024, i)).toFixed(2)} ${units[i]}`;
12
- };
13
-
14
- // src/components/common/file-upload/file-upload.tsx
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
- var FileUpload = ({
17
- label,
18
- hint,
19
- multiple = true,
20
- hasError,
21
- formats,
22
- onUploaded,
23
- onRemove,
24
- uploadedImage = "",
25
- fileName,
26
- fileSize
27
- }) => {
28
- const [isDragOver, setIsDragOver] = useState(false);
29
- const inputRef = useRef(null);
30
- const dropZoneRef = useRef(null);
31
- const handleOpenFileSelector = () => {
32
- inputRef.current?.click();
33
- };
34
- const handleDragEnter = (event) => {
35
- event.preventDefault();
36
- event.stopPropagation();
37
- const files = event.dataTransfer?.files;
38
- if (!files) {
39
- return;
40
- }
41
- setIsDragOver(true);
42
- };
43
- const handleDragLeave = (event) => {
44
- event.preventDefault();
45
- event.stopPropagation();
46
- if (!dropZoneRef.current || dropZoneRef.current.contains(event.relatedTarget)) {
47
- return;
48
- }
49
- setIsDragOver(false);
50
- };
51
- const handleUploaded = (files) => {
52
- if (!files) {
53
- return;
54
- }
55
- const fileList = Array.from(files);
56
- const fileObj = fileList.map((file) => {
57
- const id = Math.random().toString(36).substring(7);
58
- const previewUrl = URL.createObjectURL(file);
59
- return {
60
- id,
61
- url: previewUrl,
62
- file
63
- };
64
- });
65
- onUploaded(fileObj);
66
- };
67
- const handleDrop = (event) => {
68
- event.preventDefault();
69
- event.stopPropagation();
70
- setIsDragOver(false);
71
- handleUploaded(event.dataTransfer?.files);
72
- };
73
- const handleFileChange = async (event) => {
74
- handleUploaded(event.target.files);
75
- };
76
- const showFileRow = !multiple && uploadedImage;
77
- if (showFileRow) {
78
- return /* @__PURE__ */ jsxs("div", { children: [
79
- /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-component shadow-borders-base flex items-center gap-x-3 rounded-lg p-3", children: [
80
- /* @__PURE__ */ jsx("div", { className: "flex h-10 w-[30px] shrink-0 items-center justify-center overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
81
- "img",
82
- {
83
- src: uploadedImage,
84
- alt: fileName,
85
- className: "h-full w-full object-cover"
86
- }
87
- ) }),
88
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
89
- /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: fileName || "image" }),
90
- fileSize != null && /* @__PURE__ */ jsx(
91
- Text,
92
- {
93
- size: "small",
94
- leading: "compact",
95
- className: "text-ui-fg-subtle",
96
- children: formatFileSize(fileSize)
97
- }
98
- )
99
- ] }),
100
- onRemove && /* @__PURE__ */ jsx(
101
- IconButton,
102
- {
103
- type: "button",
104
- variant: "transparent",
105
- size: "small",
106
- onClick: onRemove,
107
- children: /* @__PURE__ */ jsx(XMark, {})
108
- }
109
- )
110
- ] }),
111
- /* @__PURE__ */ jsx(
112
- "input",
113
- {
114
- hidden: true,
115
- ref: inputRef,
116
- onChange: handleFileChange,
117
- type: "file",
118
- accept: formats.join(","),
119
- multiple: false
120
- }
121
- )
122
- ] });
123
- }
124
- return /* @__PURE__ */ jsxs("div", { children: [
125
- /* @__PURE__ */ jsxs(
126
- "button",
127
- {
128
- ref: dropZoneRef,
129
- type: "button",
130
- onClick: handleOpenFileSelector,
131
- onDrop: handleDrop,
132
- onDragOver: (e) => e.preventDefault(),
133
- onDragEnter: handleDragEnter,
134
- onDragLeave: handleDragLeave,
135
- className: clx(
136
- "bg-ui-bg-component border-ui-border-strong transition-fg group flex w-full flex-col items-center gap-y-2 rounded-lg border border-dashed p-8",
137
- "hover:border-ui-border-interactive focus:border-ui-border-interactive",
138
- "focus:shadow-borders-focus outline-none focus:border-solid",
139
- {
140
- "!border-ui-border-error": hasError,
141
- "!border-ui-border-interactive": isDragOver
142
- }
143
- ),
144
- children: [
145
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle group-disabled:text-ui-fg-disabled flex items-center gap-x-2", children: [
146
- /* @__PURE__ */ jsx(ArrowDownTray, {}),
147
- /* @__PURE__ */ jsx(Text, { children: label })
148
- ] }),
149
- !!hint && /* @__PURE__ */ jsx(
150
- Text,
151
- {
152
- size: "small",
153
- leading: "compact",
154
- className: "text-ui-fg-muted group-disabled:text-ui-fg-disabled",
155
- children: hint
156
- }
157
- )
158
- ]
159
- }
160
- ),
161
- /* @__PURE__ */ jsx(
162
- "input",
163
- {
164
- hidden: true,
165
- ref: inputRef,
166
- onChange: handleFileChange,
167
- type: "file",
168
- accept: formats.join(","),
169
- multiple
170
- }
171
- )
172
- ] });
173
- };
174
-
175
- export {
176
- formatFileSize,
177
- FileUpload
178
- };