@mercurjs/vendor 2.2.1 → 2.3.0-canary.1

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 (217) hide show
  1. package/dist/[id]-3TCOLUQH.js +197 -0
  2. package/dist/{[id]-YB3DBBXT.js → [id]-4QVLDR3S.js} +13 -10
  3. package/dist/{[id]-RJRAZN3T.js → [id]-4VX7CTRZ.js} +8 -6
  4. package/dist/{[id]-OE5TUWNF.js → [id]-5FP6JZM3.js} +9 -7
  5. package/dist/[id]-6FEVCKQU.js +949 -0
  6. package/dist/{[id]-47SUX5X3.js → [id]-7QVJAIDU.js} +13 -10
  7. package/dist/{[id]-BHU5BSQT.js → [id]-CFVBH66J.js} +20 -17
  8. package/dist/{[id]-SKU5SFBG.js → [id]-HAJ3735Z.js} +137 -204
  9. package/dist/{[id]-NGRV5I2A.js → [id]-PBNGQSNY.js} +9 -7
  10. package/dist/[id]-QGZ26C6D.js +286 -0
  11. package/dist/{[id]-ZD5HBP2R.js → [id]-RAJUZUNH.js} +13 -10
  12. package/dist/[id]-RJ3MUR4M.js +697 -0
  13. package/dist/{[id]-PIB2DEVI.js → [id]-RRVYKA7U.js} +12 -9
  14. package/dist/{[id]-BPQNQFVE.js → [id]-Y4HRAAV2.js} +75 -124
  15. package/dist/{[province_id]-CUWKNPBW.js → [province_id]-VWN4OOGM.js} +9 -7
  16. package/dist/{add-MYV5IOGP.js → add-57LM6WKL.js} +157 -227
  17. package/dist/{add-YEUSE5QA.js → add-7HIVF77P.js} +10 -8
  18. package/dist/{add-customer-groups-Q3F357F2.js → add-customer-groups-VJYI5J5Z.js} +8 -6
  19. package/dist/{add-products-WVNYODC6.js → add-products-XWU5ZUTZ.js} +13 -10
  20. package/dist/{add-promotions-F62YE3BE.js → add-promotions-DOJS6CEE.js} +27 -9
  21. package/dist/{add-to-campaign-WBSCTSKW.js → add-to-campaign-B3PGGNFA.js} +3 -2
  22. package/dist/{address-ZMZ4ST5T.js → address-X4TXBPUG.js} +7 -5
  23. package/dist/{adjust-inventory-QUGKDXOC.js → adjust-inventory-2OKDFVLK.js} +2 -3
  24. package/dist/{allocate-items-7NSBGXSF.js → allocate-items-QAYROQMK.js} +4 -2
  25. package/dist/{areas-EJCZBY2E.js → areas-WQ44GWQO.js} +2 -2
  26. package/dist/{breadcrumb-M657ZCG6.js → breadcrumb-4I7MU2QY.js} +1 -1
  27. package/dist/{breadcrumb-KNBZ3JNR.js → breadcrumb-7ZFC43R4.js} +1 -1
  28. package/dist/{breadcrumb-C7M5PG2Q.js → breadcrumb-HMW2K4DW.js} +7 -5
  29. package/dist/{breadcrumb-KLNC72RI.js → breadcrumb-MH2L34OD.js} +2 -2
  30. package/dist/{breadcrumb-QPV566YX.js → breadcrumb-Q7FS3IDL.js} +8 -6
  31. package/dist/{breadcrumb-JWFTKHLE.js → breadcrumb-RQ52GELM.js} +2 -1
  32. package/dist/{breadcrumb-M6NW3DRQ.js → breadcrumb-WBUUK3AP.js} +1 -1
  33. package/dist/breadcrumb-XCPUUZUO.js +26 -0
  34. package/dist/{breadcrumb-MXYWEBK6.js → breadcrumb-Z2QUGZM3.js} +7 -5
  35. package/dist/{campaigns-BPLAE6QQ.js → campaigns-LIPKZKI7.js} +5 -4
  36. package/dist/{categories-H2XAJCGC.js → categories-D2U6VLH5.js} +2 -2
  37. package/dist/{chunk-4RVWITM2.js → chunk-3JWHERV7.js} +76 -23
  38. package/dist/{chunk-BCXREBMV.js → chunk-4ATO577Q.js} +1 -1
  39. package/dist/{chunk-VHFKJLDH.js → chunk-4JVORTN4.js} +1 -1
  40. package/dist/{chunk-HHD2VUED.js → chunk-4UKAKFKL.js} +1 -1
  41. package/dist/{chunk-3L7WHWKB.js → chunk-5DRYAIOY.js} +3 -3
  42. package/dist/{chunk-7TIZP4YG.js → chunk-5RWK4U4V.js} +26 -0
  43. package/dist/{chunk-XQUF3WIS.js → chunk-5ZHZVKNQ.js} +4 -0
  44. package/dist/{chunk-IWAL74YU.js → chunk-6GQLSWOO.js} +1 -1
  45. package/dist/{chunk-HCUIYIIY.js → chunk-6OZQTHCR.js} +1 -1
  46. package/dist/chunk-6XMUN2BZ.js +0 -0
  47. package/dist/{chunk-RLRWDHME.js → chunk-6YQR2AWM.js} +3 -20
  48. package/dist/{chunk-26OOAKQ6.js → chunk-7H6NMQ6U.js} +8 -1
  49. package/dist/{chunk-OKJHUQBY.js → chunk-7JVJIAWS.js} +17 -29
  50. package/dist/chunk-7LIENHWP.js +26 -0
  51. package/dist/{chunk-EPSRO7C5.js → chunk-7LIT4GXO.js} +2 -2
  52. package/dist/chunk-7POOMBIN.js +108 -0
  53. package/dist/{chunk-PF7R7LMW.js → chunk-AHR2FIMC.js} +22 -0
  54. package/dist/{chunk-EJBOBB4B.js → chunk-AQT2G6K2.js} +46 -46
  55. package/dist/{chunk-UEKRQS5Q.js → chunk-ATYOOL7K.js} +2 -2
  56. package/dist/chunk-BR6PEFXX.js +27 -0
  57. package/dist/{chunk-SDFZUBS3.js → chunk-CDZALZ5E.js} +1 -1
  58. package/dist/{chunk-3XW55FZY.js → chunk-CRVVPIFZ.js} +6 -6
  59. package/dist/{chunk-72HQFLZI.js → chunk-CSEB2RNO.js} +1 -1
  60. package/dist/{chunk-X6ZQMFCT.js → chunk-DAOSTHVB.js} +44 -25
  61. package/dist/{chunk-UUBGLS7U.js → chunk-EWJTXSKI.js} +211 -36
  62. package/dist/chunk-FKKI62AC.js +282 -0
  63. package/dist/{chunk-VBKW4GWP.js → chunk-FPBXQIFJ.js} +1 -1
  64. package/dist/{chunk-SI55QRZ4.js → chunk-G5NNOOHR.js} +59 -6
  65. package/dist/chunk-G6J5ZKM3.js +31 -0
  66. package/dist/{chunk-U5V6HNVW.js → chunk-GL3XVUAY.js} +1 -1
  67. package/dist/{chunk-RJE4MAYB.js → chunk-GYLRZXWS.js} +1 -1
  68. package/dist/{chunk-SVYBMLVN.js → chunk-HHCLMWXT.js} +1 -1
  69. package/dist/{chunk-YUQA6TUA.js → chunk-JOCO7JOB.js} +3 -3
  70. package/dist/{chunk-OGUTFP6B.js → chunk-JYUHDM23.js} +13 -51
  71. package/dist/{chunk-QB7BI4B7.js → chunk-K2DXXPNA.js} +153 -86
  72. package/dist/{chunk-XG76XXM2.js → chunk-KKMA6VPG.js} +1 -1
  73. package/dist/chunk-KVAD5JGS.js +11 -0
  74. package/dist/{chunk-YRZ53SAN.js → chunk-L26J5MO2.js} +2 -2
  75. package/dist/{chunk-63XYNXUL.js → chunk-LYP7XK5O.js} +1 -1
  76. package/dist/chunk-MVVFD2JT.js +51 -0
  77. package/dist/{chunk-RVFPWOR2.js → chunk-MY5H7C3A.js} +2 -2
  78. package/dist/{chunk-3GSR455R.js → chunk-NQMHP2LC.js} +1 -1
  79. package/dist/{chunk-2S2WK2OG.js → chunk-NV2RZAHW.js} +1 -10
  80. package/dist/{chunk-4IIATKG7.js → chunk-O7OWHKWA.js} +6 -6
  81. package/dist/{chunk-GIKVFOQL.js → chunk-OJCMHDZI.js} +2 -2
  82. package/dist/chunk-QLOJNFUE.js +53 -0
  83. package/dist/{chunk-GTNCNKTC.js → chunk-RBWIHKUF.js} +1 -1
  84. package/dist/{chunk-XVBONKRV.js → chunk-RCMKDW6O.js} +1 -1
  85. package/dist/{chunk-WJF24CGA.js → chunk-RDLVH6CM.js} +33 -5
  86. package/dist/chunk-SF5N2HX4.js +268 -0
  87. package/dist/{chunk-MQR26KYT.js → chunk-SYHA2RVL.js} +1 -1
  88. package/dist/{chunk-ZXDMPIXN.js → chunk-U3OEGBHH.js} +2 -2
  89. package/dist/chunk-UTGI6R2X.js +334 -0
  90. package/dist/{chunk-VBRTC2VU.js → chunk-VAFGNDAP.js} +4 -3
  91. package/dist/{chunk-4UQMRTSC.js → chunk-VH3TGSWE.js} +46 -2
  92. package/dist/{chunk-ZEKV7LGF.js → chunk-VV2K3EBF.js} +1 -1
  93. package/dist/{chunk-S2VYK3YC.js → chunk-WI2ZAFZF.js} +1 -1
  94. package/dist/chunk-WP3B4NEU.js +32 -0
  95. package/dist/{chunk-DY3XQPHC.js → chunk-WW2XYOHJ.js} +5 -3
  96. package/dist/{chunk-IVYIMGQC.js → chunk-X44P463Q.js} +45 -10
  97. package/dist/{chunk-FEVCBT24.js → chunk-X4G64W5Q.js} +2 -2
  98. package/dist/{chunk-R5KN6IFB.js → chunk-XHWBTV72.js} +2 -2
  99. package/dist/{chunk-OVHIUZ3K.js → chunk-XQ47NZJC.js} +1 -1
  100. package/dist/{chunk-LN7XHEPJ.js → chunk-YT4RAUWM.js} +2 -2
  101. package/dist/{chunk-6VKJM537.js → chunk-ZK4DIDXG.js} +1 -1
  102. package/dist/{collections-52DJLHWW.js → collections-5TH7H2QP.js} +14 -13
  103. package/dist/{configuration-UMRBE5RQ.js → configuration-QK2FW2CV.js} +2 -2
  104. package/dist/{configuration-QEDVL2WF.js → configuration-RYH3VUBV.js} +15 -48
  105. package/dist/{create-ALUKAFJS.js → create-5M66YUYY.js} +2 -2
  106. package/dist/{create-ABRPUMHQ.js → create-A6KZEZMH.js} +7 -6
  107. package/dist/{create-LYNWCP2N.js → create-BTODQ4T4.js} +6 -5
  108. package/dist/{create-2I3GAX4C.js → create-FI6H4AJE.js} +16 -7
  109. package/dist/{create-6IRD2CVC.js → create-GF76Z5I7.js} +15 -13
  110. package/dist/create-ICCAEOSA.js +343 -0
  111. package/dist/{create-NTZH45DW.js → create-JZLU44WB.js} +14 -12
  112. package/dist/{create-GEYXN6SW.js → create-ME43PNL6.js} +7 -5
  113. package/dist/{create-MFGMTZ5A.js → create-MIYJCLAJ.js} +8 -6
  114. package/dist/{create-7SJ5DSQK.js → create-PRDQJ5WI.js} +20 -17
  115. package/dist/{create-S7VYYTUD.js → create-Q6B6JR4K.js} +10 -8
  116. package/dist/{create-5RQ32XPT.js → create-SKQAJNDF.js} +287 -287
  117. package/dist/{create-7FT7N2NH.js → create-WPN3OUJU.js} +3 -2
  118. package/dist/{create-H77ZUZG5.js → create-XBGN6XEF.js} +10 -8
  119. package/dist/{create-G76MVCJU.js → create-ZVGYET6W.js} +5 -4
  120. package/dist/customer-availability-VAOKKCTK.js +164 -0
  121. package/dist/{customer-group-add-customers-T7OYWJCB.js → customer-group-add-customers-BSMUKWVO.js} +1 -1
  122. package/dist/{customer-group-detail-E7HRZ3LE.js → customer-group-detail-QCPC2YWK.js} +2 -2
  123. package/dist/{customer-groups-26HJ55MF.js → customer-groups-6WGUNFHG.js} +2 -2
  124. package/dist/{customers-EXFRZX5F.js → customers-7OGYQSGA.js} +2 -2
  125. package/dist/edit-2BKYNGYL.js +262 -0
  126. package/dist/{edit-WHGYNDEB.js → edit-3S3EH372.js} +20 -17
  127. package/dist/{edit-MPOTIGUY.js → edit-4WP5SGH6.js} +23 -39
  128. package/dist/{edit-QBUYHSE7.js → edit-7D2OZBJS.js} +8 -6
  129. package/dist/{edit-2RN3OT27.js → edit-7T2JMZG3.js} +7 -56
  130. package/dist/edit-AK4E63X6.js +179 -0
  131. package/dist/{edit-NB5VN2E4.js → edit-DRT6VOAA.js} +5 -4
  132. package/dist/{edit-EGBVEWXS.js → edit-GBDHDJK4.js} +9 -7
  133. package/dist/{edit-TIBQEQVV.js → edit-P7FNRVGB.js} +10 -8
  134. package/dist/{edit-6VJWRZHQ.js → edit-PZN7UAJI.js} +7 -5
  135. package/dist/{edit-M4AP65HO.js → edit-RNSXXJVU.js} +8 -6
  136. package/dist/edit-SKRFQ4WN.js +81 -0
  137. package/dist/{edit-H5FJ45ZT.js → edit-ZM7NJVRE.js} +1 -1
  138. package/dist/{edit-budget-PYPHUJPW.js → edit-budget-MOZETGZV.js} +1 -1
  139. package/dist/{edit-inventory-item-BCVECCLT.js → edit-inventory-item-HFGHS732.js} +17 -14
  140. package/dist/{edit-inventory-item-attributes-GWEMP67O.js → edit-inventory-item-attributes-5ORZJF4I.js} +18 -1
  141. package/dist/{edit-price-GLAEAO7R.js → edit-price-KY7LX5QA.js} +2 -2
  142. package/dist/edit-reservation-LSYQUDYQ.js +294 -0
  143. package/dist/{edit-stock-E3PM2YOP.js → edit-stock-77VKJR4Z.js} +2 -2
  144. package/dist/extension-targets.d.ts +6 -3
  145. package/dist/{fulfillment-HDU7GATG.js → fulfillment-DEGKZL42.js} +7 -5
  146. package/dist/{fulfillment-providers-6RZNNT7U.js → fulfillment-providers-LDFPZGNX.js} +12 -11
  147. package/dist/index.css +17 -14
  148. package/dist/index.js +265 -155
  149. package/dist/{inventory-XJ2E6DPC.js → inventory-CMIRAJJY.js} +2 -2
  150. package/dist/{inventory-CKA34HWM.js → inventory-RKAUTQAU.js} +2 -2
  151. package/dist/{invite-755AJC3M.js → invite-KAHF2MCE.js} +7 -5
  152. package/dist/{invite-FD2TXZTW.js → invite-S5O7LFEY.js} +10 -8
  153. package/dist/{loader-UUSAVCK6.js → loader-3BXYSKPT.js} +1 -1
  154. package/dist/{loader-B4T2VBGV.js → loader-CF54CDM6.js} +2 -2
  155. package/dist/{login-UGKYRKMD.js → login-CRSALS6Y.js} +9 -7
  156. package/dist/manage-items-63FPRK7Z.js +302 -0
  157. package/dist/{manage-locations-PRQI5TI4.js → manage-locations-5B4HP6NQ.js} +24 -5
  158. package/dist/{media-TGFAHFBV.js → media-74PEXOLV.js} +8 -6
  159. package/dist/{media-2KEHXPRU.js → media-NKCXFG6X.js} +11 -9
  160. package/dist/{metadata-7JWZ4VFM.js → metadata-22BCBKVE.js} +7 -5
  161. package/dist/{metadata-BQQFHVKF.js → metadata-E3BDAMIO.js} +7 -5
  162. package/dist/{metadata-5TVRCKWX.js → metadata-FRXIY35J.js} +7 -5
  163. package/dist/{metadata-4ZZ4ZIWJ.js → metadata-L6IA2Z26.js} +7 -5
  164. package/dist/metadata-WN6Y35RV.js +69 -0
  165. package/dist/{metadata-G73TILNE.js → metadata-ZZMJNWS3.js} +7 -5
  166. package/dist/{offer-create-page-PPXRYET4.js → offer-create-page-N5CKYGSS.js} +12 -9
  167. package/dist/{offer-detail-page-BFGKAS4L.js → offer-detail-page-AJG6TMJC.js} +3 -3
  168. package/dist/{offer-variant-detail-page-BLHRF4MK.js → offer-variant-detail-page-CEOS2MVM.js} +40 -8
  169. package/dist/{offers-7I67VSHI.js → offers-WFJ6UGVG.js} +15 -11
  170. package/dist/{onboarding-7MURQYXX.js → onboarding-2AZ2KEWJ.js} +7 -5
  171. package/dist/{orders-D7NZNDUS.js → orders-NWYLN6BE.js} +13 -12
  172. package/dist/{organization-T6ZTYMMW.js → organization-PAWIWKHV.js} +9 -7
  173. package/dist/pages/index.d.ts +9 -1
  174. package/dist/pages/index.js +57 -48
  175. package/dist/{payment-details-UQ65D5AY.js → payment-details-O57HNHWS.js} +7 -5
  176. package/dist/{payouts-A336D2HG.js → payouts-26ZOYDRP.js} +2 -2
  177. package/dist/{price-lists-3WRT4TR2.js → price-lists-U5ASDHMI.js} +5 -8
  178. package/dist/{pricing-3NLEJYRP.js → pricing-C425JTFQ.js} +2 -2
  179. package/dist/{pricing-CPPIL627.js → pricing-PDOCJEDS.js} +9 -7
  180. package/dist/{product-tags-7DTA73YT.js → product-tags-MMQ4ZR4W.js} +20 -17
  181. package/dist/{product-types-OB26NF2D.js → product-types-CMI33S32.js} +3 -4
  182. package/dist/{product-variant-detail-4DDE6RJ5.js → product-variant-detail-D73ILATK.js} +7 -5
  183. package/dist/{product-variant-edit-SAZUI4E3.js → product-variant-edit-XN6WGKI2.js} +10 -8
  184. package/dist/{products-RYXTZFGT.js → products-OZJHGW2K.js} +19 -16
  185. package/dist/{products-GJ2KTGBZ.js → products-VWH5TAFY.js} +13 -10
  186. package/dist/{professional-details-UN5B4YDJ.js → professional-details-ZJT6YKZB.js} +7 -5
  187. package/dist/{profile-6MIDTK52.js → profile-EU46MXFW.js} +7 -5
  188. package/dist/{promotions-SQ47TCZL.js → promotions-ALWQ7J7A.js} +5 -5
  189. package/dist/{receive-ZG6FFN7H.js → receive-RRZK3FP2.js} +4 -3
  190. package/dist/{refund-KJX74N6T.js → refund-FLCZAMPR.js} +3 -2
  191. package/dist/{register-RDSK4E4D.js → register-C6ON6OL2.js} +9 -7
  192. package/dist/reservations-C326XEVA.js +350 -0
  193. package/dist/{reset-password-C462PDN2.js → reset-password-ASLKY3GK.js} +1 -1
  194. package/dist/respond-IPRDCH57.js +132 -0
  195. package/dist/{return-reasons-MY63HNF6.js → return-reasons-2BUKIQBO.js} +9 -7
  196. package/dist/reviews-LBLCFBRQ.js +14 -0
  197. package/dist/{settings-TJ6HPHMK.js → settings-Q5GAL2LK.js} +28 -25
  198. package/dist/{shipment-6CTA2GHU.js → shipment-XOU6F7AS.js} +7 -5
  199. package/dist/{shipping-TKKMYQHJ.js → shipping-IMCP7UDV.js} +2 -2
  200. package/dist/{shipping-profile-CFISOMTE.js → shipping-profile-7P3RPEIJ.js} +1 -1
  201. package/dist/{shipping-profiles-5UAZNYKJ.js → shipping-profiles-647FLCNK.js} +9 -7
  202. package/dist/{stock-465GEUY3.js → stock-D3HCV5UR.js} +22 -8
  203. package/dist/{store-2PQB2XWE.js → store-XBNFP6O4.js} +8 -6
  204. package/dist/{store-closure-DYW54VHB.js → store-closure-55EUSKE4.js} +7 -5
  205. package/dist/{store-select-6A5YR7WH.js → store-select-DEOEGT2O.js} +8 -6
  206. package/dist/{team-GXEBC57M.js → team-7MJ3NJUT.js} +10 -8
  207. package/package.json +12 -9
  208. package/dist/[id]-HEVGSOAV.js +0 -598
  209. package/dist/[id]-MU7A6SZO.js +0 -526
  210. package/dist/chunk-2ZFELO2L.js +0 -13
  211. package/dist/chunk-6IJMSVC6.js +0 -16
  212. package/dist/chunk-BNOKKKUU.js +0 -88
  213. package/dist/chunk-BX3JE7IE.js +0 -247
  214. package/dist/edit-4B364HGZ.js +0 -222
  215. package/dist/edit-735HBYH2.js +0 -103
  216. package/dist/edit-SQU5UOGE.js +0 -105
  217. package/dist/{chunk-CYE7HVAV.js → chunk-SCJBJQCL.js} +3 -3
@@ -0,0 +1,282 @@
1
+ import {
2
+ useCustomerGroupTableQuery
3
+ } from "./chunk-VKOE5J66.js";
4
+ import {
5
+ TextCell,
6
+ TextHeader
7
+ } from "./chunk-JHIMVLB2.js";
8
+ import {
9
+ useCustomerGroupTableFilters
10
+ } from "./chunk-CMHI2RPL.js";
11
+ import {
12
+ StackedDrawer,
13
+ StackedFocusModal,
14
+ useStackedModal
15
+ } from "./chunk-GDWBOQI5.js";
16
+ import {
17
+ _DataTable,
18
+ useDataTable
19
+ } from "./chunk-6GQLSWOO.js";
20
+ import {
21
+ useCustomerGroups
22
+ } from "./chunk-II3CLUXA.js";
23
+
24
+ // src/pages/price-lists/common/components/price-list-customer-availability-selector/price-list-customer-availability-selector.tsx
25
+ import { MagnifyingGlass, XMarkMini } from "@medusajs/icons";
26
+ import { Button as Button2, Divider, IconButton, Text, clx } from "@medusajs/ui";
27
+ import { useFieldArray } from "react-hook-form";
28
+ import { useTranslation as useTranslation2 } from "react-i18next";
29
+
30
+ // src/pages/price-lists/common/components/price-list-customer-group-rule-form/price-list-customer-group-rule-form.tsx
31
+ import { Button, Checkbox } from "@medusajs/ui";
32
+ import { keepPreviousData } from "@tanstack/react-query";
33
+ import {
34
+ createColumnHelper
35
+ } from "@tanstack/react-table";
36
+ import { useEffect, useMemo, useState } from "react";
37
+ import { useTranslation } from "react-i18next";
38
+ import { jsx, jsxs } from "react/jsx-runtime";
39
+ var PAGE_SIZE = 50;
40
+ var PREFIX = "cg";
41
+ var initRowSelection = (state) => {
42
+ return state.reduce((acc, group) => {
43
+ acc[group.id] = true;
44
+ return acc;
45
+ }, {});
46
+ };
47
+ var PriceListCustomerGroupRuleForm = ({
48
+ state,
49
+ setState,
50
+ type
51
+ }) => {
52
+ const { t } = useTranslation();
53
+ const [rowSelection, setRowSelection] = useState(
54
+ initRowSelection(state)
55
+ );
56
+ const [intermediate, setIntermediate] = useState(state);
57
+ useEffect(() => {
58
+ setRowSelection(initRowSelection(state));
59
+ setIntermediate(state);
60
+ }, [state]);
61
+ const { searchParams, raw } = useCustomerGroupTableQuery({
62
+ pageSize: PAGE_SIZE,
63
+ prefix: PREFIX
64
+ });
65
+ const sortParam = raw.order ? raw.order.startsWith("-") ? raw.order : raw.order : void 0;
66
+ const { customer_groups: customerGroupsData, count, isLoading, isError, error } = useCustomerGroups(
67
+ { ...searchParams, fields: "id,name,customers.id" },
68
+ {
69
+ placeholderData: keepPreviousData
70
+ },
71
+ sortParam ? { sort: sortParam } : void 0
72
+ );
73
+ const customerGroups = customerGroupsData;
74
+ const updater = (value) => {
75
+ const state2 = typeof value === "function" ? value(rowSelection) : value;
76
+ const currentIds = Object.keys(rowSelection);
77
+ const ids = Object.keys(state2);
78
+ const newIds = ids.filter((id) => !currentIds.includes(id));
79
+ const removedIds = currentIds.filter((id) => !ids.includes(id));
80
+ const newCustomerGroups = customerGroups?.filter((cg) => newIds.includes(cg.id)).map((cg) => ({
81
+ id: cg.id,
82
+ name: cg.name
83
+ })) || [];
84
+ const filteredIntermediate = intermediate.filter(
85
+ (cg) => !removedIds.includes(cg.id)
86
+ );
87
+ setIntermediate([...filteredIntermediate, ...newCustomerGroups]);
88
+ setRowSelection(state2);
89
+ };
90
+ const handleSave = () => {
91
+ setState(intermediate);
92
+ };
93
+ const filters = useCustomerGroupTableFilters();
94
+ const columns = useColumns();
95
+ const { table } = useDataTable({
96
+ data: customerGroups || [],
97
+ columns,
98
+ count,
99
+ enablePagination: true,
100
+ enableRowSelection: true,
101
+ getRowId: (row) => row.id,
102
+ rowSelection: {
103
+ state: rowSelection,
104
+ updater
105
+ },
106
+ pageSize: PAGE_SIZE,
107
+ prefix: PREFIX
108
+ });
109
+ const Component = type === "focus" ? StackedFocusModal : StackedDrawer;
110
+ if (isError) {
111
+ throw error;
112
+ }
113
+ return /* @__PURE__ */ jsxs("div", { className: "flex size-full flex-col overflow-hidden", children: [
114
+ /* @__PURE__ */ jsx(Component.Body, { className: "min-h-0 p-0", children: /* @__PURE__ */ jsx(
115
+ _DataTable,
116
+ {
117
+ table,
118
+ columns,
119
+ pageSize: PAGE_SIZE,
120
+ count,
121
+ isLoading,
122
+ filters,
123
+ layout: "fill",
124
+ pagination: true,
125
+ search: true,
126
+ prefix: PREFIX,
127
+ queryObject: raw,
128
+ orderBy: [
129
+ { key: "name", label: t("fields.name") },
130
+ { key: "created_at", label: t("fields.createdAt") },
131
+ { key: "updated_at", label: t("fields.updatedAt") }
132
+ ]
133
+ }
134
+ ) }),
135
+ /* @__PURE__ */ jsxs(Component.Footer, { children: [
136
+ /* @__PURE__ */ jsx(Component.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", type: "button", children: t("actions.cancel") }) }),
137
+ /* @__PURE__ */ jsx(Button, { type: "button", size: "small", onClick: handleSave, children: t("actions.save") })
138
+ ] })
139
+ ] });
140
+ };
141
+ var columnHelper = createColumnHelper();
142
+ var useColumns = () => {
143
+ const { t } = useTranslation();
144
+ return useMemo(
145
+ () => [
146
+ columnHelper.display({
147
+ id: "select",
148
+ header: ({ table }) => {
149
+ return /* @__PURE__ */ jsx(
150
+ Checkbox,
151
+ {
152
+ checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
153
+ onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
154
+ }
155
+ );
156
+ },
157
+ cell: ({ row }) => {
158
+ return /* @__PURE__ */ jsx(
159
+ Checkbox,
160
+ {
161
+ checked: row.getIsSelected(),
162
+ onCheckedChange: (value) => row.toggleSelected(!!value),
163
+ onClick: (e) => {
164
+ e.stopPropagation();
165
+ }
166
+ }
167
+ );
168
+ }
169
+ }),
170
+ columnHelper.accessor("name", {
171
+ header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.name") }),
172
+ cell: ({ row }) => {
173
+ return /* @__PURE__ */ jsx(
174
+ TextCell,
175
+ {
176
+ text: row.original?.name || "-"
177
+ }
178
+ );
179
+ }
180
+ })
181
+ ],
182
+ [t]
183
+ );
184
+ };
185
+
186
+ // src/pages/price-lists/common/components/price-list-customer-availability-selector/price-list-customer-availability-selector.tsx
187
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
188
+ var PriceListCustomerAvailabilitySelector = ({
189
+ control,
190
+ name,
191
+ stackedId = "cg"
192
+ }) => {
193
+ const { t } = useTranslation2();
194
+ const { setIsOpen } = useStackedModal();
195
+ const { fields, append, remove } = useFieldArray({
196
+ control,
197
+ name,
198
+ keyName: "cg_id"
199
+ });
200
+ const selected = fields;
201
+ const handleAdd = (groups) => {
202
+ const newIds = groups.map((group) => group.id);
203
+ const fieldsToAdd = groups.filter(
204
+ (group) => !selected.some((field) => field.id === group.id)
205
+ );
206
+ for (const field of selected) {
207
+ if (!newIds.includes(field.id)) {
208
+ remove(selected.indexOf(field));
209
+ }
210
+ }
211
+ append(fieldsToAdd);
212
+ setIsOpen(stackedId, false);
213
+ };
214
+ return /* @__PURE__ */ jsxs2(
215
+ "div",
216
+ {
217
+ className: clx(
218
+ "bg-ui-bg-component shadow-elevation-card-rest transition-fg grid gap-1.5 rounded-xl py-1.5",
219
+ "aria-[invalid='true']:shadow-borders-error"
220
+ ),
221
+ role: "application",
222
+ children: [
223
+ /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid gap-1.5 px-1.5 md:grid-cols-2", children: [
224
+ /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-field shadow-borders-base txt-compact-small rounded-md px-2 py-1.5", children: t("priceLists.fields.customerAvailability.attribute") }),
225
+ /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-field shadow-borders-base txt-compact-small rounded-md px-2 py-1.5", children: t("operators.in") })
226
+ ] }),
227
+ /* @__PURE__ */ jsx2("div", { className: "flex items-center gap-1.5 px-1.5", children: /* @__PURE__ */ jsxs2(StackedFocusModal, { id: stackedId, children: [
228
+ /* @__PURE__ */ jsx2(StackedFocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs2(
229
+ "button",
230
+ {
231
+ type: "button",
232
+ className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover shadow-borders-base txt-compact-small text-ui-fg-muted transition-fg focus-visible:shadow-borders-interactive-with-active flex flex-1 items-center gap-x-2 rounded-md px-2 py-1.5 outline-none",
233
+ children: [
234
+ /* @__PURE__ */ jsx2(MagnifyingGlass, {}),
235
+ t("priceLists.fields.customerAvailability.placeholder")
236
+ ]
237
+ }
238
+ ) }),
239
+ /* @__PURE__ */ jsx2(StackedFocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx2(Button2, { variant: "secondary", children: t("actions.browse") }) }),
240
+ /* @__PURE__ */ jsxs2(StackedFocusModal.Content, { children: [
241
+ /* @__PURE__ */ jsx2(StackedFocusModal.Header, {}),
242
+ /* @__PURE__ */ jsx2(
243
+ PriceListCustomerGroupRuleForm,
244
+ {
245
+ state: selected,
246
+ setState: handleAdd,
247
+ type: "focus"
248
+ }
249
+ )
250
+ ] })
251
+ ] }) }),
252
+ selected.length > 0 ? /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-y-1.5", children: [
253
+ /* @__PURE__ */ jsx2(Divider, { variant: "dashed" }),
254
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-col gap-y-1.5 px-1.5", children: selected.map((field, index) => /* @__PURE__ */ jsxs2(
255
+ "div",
256
+ {
257
+ className: "bg-ui-bg-field-component shadow-borders-base flex items-center justify-between gap-2 rounded-md px-2 py-0.5",
258
+ children: [
259
+ /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: field.name }),
260
+ /* @__PURE__ */ jsx2(
261
+ IconButton,
262
+ {
263
+ size: "small",
264
+ variant: "transparent",
265
+ type: "button",
266
+ onClick: () => remove(index),
267
+ children: /* @__PURE__ */ jsx2(XMarkMini, {})
268
+ }
269
+ )
270
+ ]
271
+ },
272
+ field.cg_id
273
+ )) })
274
+ ] }) : null
275
+ ]
276
+ }
277
+ );
278
+ };
279
+
280
+ export {
281
+ PriceListCustomerAvailabilitySelector
282
+ };
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-IWAL74YU.js";
19
+ } from "./chunk-6GQLSWOO.js";
20
20
  import {
21
21
  SingleColumnPageSkeleton
22
22
  } from "./chunk-INNFZYX2.js";
@@ -2,6 +2,9 @@ import {
2
2
  currencies,
3
3
  getCurrencySymbol
4
4
  } from "./chunk-IQPN4PZJ.js";
5
+ import {
6
+ Combobox
7
+ } from "./chunk-VAFGNDAP.js";
5
8
  import {
6
9
  Form
7
10
  } from "./chunk-3QSRE5LS.js";
@@ -13,6 +16,7 @@ import {
13
16
  import {
14
17
  CurrencyInput,
15
18
  DatePicker,
19
+ Divider,
16
20
  Heading,
17
21
  Input,
18
22
  RadioGroup,
@@ -94,7 +98,7 @@ var CreateCampaignFormFields = ({
94
98
  name: `${fieldScope}campaign_identifier`,
95
99
  render: ({ field }) => {
96
100
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
97
- /* @__PURE__ */ jsx(Form.Label, { children: t("campaigns.fields.identifier") }),
101
+ /* @__PURE__ */ jsx(Form.Label, { tooltip: t("campaigns.fields.identifier_tooltip"), children: t("campaigns.fields.identifier") }),
98
102
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field, value: field.value ?? "" }) }),
99
103
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
100
104
  ] });
@@ -163,7 +167,8 @@ var CreateCampaignFormFields = ({
163
167
  }
164
168
  )
165
169
  ] }),
166
- /* @__PURE__ */ jsxs("div", { children: [
170
+ /* @__PURE__ */ jsx(Divider, { variant: "dashed", "data-testid": "campaign-create-form-fields-budget-divider" }),
171
+ /* @__PURE__ */ jsxs("div", { "data-testid": "campaign-create-form-fields-budget-header", children: [
167
172
  /* @__PURE__ */ jsx(Heading, { children: t("campaigns.budget.create.header") }),
168
173
  /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("campaigns.budget.create.hint") })
169
174
  ] }),
@@ -184,7 +189,7 @@ var CreateCampaignFormFields = ({
184
189
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
185
190
  RadioGroup,
186
191
  {
187
- className: "flex gap-y-3",
192
+ className: "grid grid-cols-2 gap-4",
188
193
  ...field,
189
194
  value: field.value,
190
195
  onValueChange: field.onChange,
@@ -237,7 +242,12 @@ var CreateCampaignFormFields = ({
237
242
  onValueChange: onChange,
238
243
  disabled: !!fieldScope?.length,
239
244
  children: [
240
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
245
+ /* @__PURE__ */ jsx(Select.Trigger, { ref, className: "w-full", children: /* @__PURE__ */ jsx(
246
+ Select.Value,
247
+ {
248
+ placeholder: t("campaigns.budget.fields.selectCurrency")
249
+ }
250
+ ) }),
241
251
  /* @__PURE__ */ jsx(Select.Content, { children: Object.values(currencies).filter(
242
252
  (currency2) => !!sellerCurrencyCode && currency2.code.toLowerCase() === sellerCurrencyCode.toLowerCase()
243
253
  ).map((currency2) => /* @__PURE__ */ jsx(
@@ -262,10 +272,11 @@ var CreateCampaignFormFields = ({
262
272
  control: form.control,
263
273
  name: `${fieldScope}budget.limit`,
264
274
  render: ({ field: { onChange, value, ...field } }) => {
265
- return /* @__PURE__ */ jsxs(Form.Item, { className: "basis-1/2", children: [
275
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
266
276
  /* @__PURE__ */ jsx(
267
277
  Form.Label,
268
278
  {
279
+ optional: true,
269
280
  tooltip: !currency && isTypeSpend ? t("promotions.fields.amount.tooltip") : void 0,
270
281
  children: t("campaigns.budget.fields.limit")
271
282
  }
@@ -300,8 +311,50 @@ var CreateCampaignFormFields = ({
300
311
  ] });
301
312
  }
302
313
  }
314
+ ),
315
+ !isTypeSpend && /* @__PURE__ */ jsx(
316
+ Form.Field,
317
+ {
318
+ control: form.control,
319
+ name: `${fieldScope}budget.attribute`,
320
+ render: ({ field }) => {
321
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
322
+ /* @__PURE__ */ jsx(
323
+ Form.Label,
324
+ {
325
+ optional: true,
326
+ tooltip: t("campaigns.budget.fields.budgetAttributeTooltip"),
327
+ children: t("campaigns.budget.fields.budgetAttribute")
328
+ }
329
+ ),
330
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
331
+ Combobox,
332
+ {
333
+ className: "w-full",
334
+ ...field,
335
+ value: field.value ?? void 0,
336
+ onChange: (e) => {
337
+ field.onChange(typeof e === "undefined" ? null : e);
338
+ },
339
+ allowClear: true,
340
+ options: [
341
+ { label: t("fields.customer"), value: "customer_id" },
342
+ { label: t("fields.email"), value: "customer_email" },
343
+ {
344
+ label: t("fields.promotionCode"),
345
+ value: "promotion_code"
346
+ }
347
+ ]
348
+ },
349
+ "attribute"
350
+ ) }),
351
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
352
+ ] });
353
+ }
354
+ }
303
355
  )
304
- ] })
356
+ ] }),
357
+ /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("campaigns.budget.noLimitHint") })
305
358
  ] });
306
359
  };
307
360
 
@@ -0,0 +1,31 @@
1
+ // src/pages/reviews/common/utils.tsx
2
+ import { StarSolid } from "@medusajs/icons";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var getReviewStatusProps = (status, t) => {
5
+ switch (status) {
6
+ case "published":
7
+ return { color: "green", label: t("reviews.status.published") };
8
+ case "rejected":
9
+ return { color: "red", label: t("reviews.status.rejected") };
10
+ case "pending":
11
+ default:
12
+ return { color: "orange", label: t("reviews.status.pending") };
13
+ }
14
+ };
15
+ var StarRating = ({ rating }) => {
16
+ const value = Math.max(0, Math.min(5, Math.round(rating)));
17
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-0.5", "aria-label": `${value} / 5`, children: Array.from({ length: 5 }).map(
18
+ (_, index) => index < value ? /* @__PURE__ */ jsx(StarSolid, { className: "text-ui-tag-orange-icon" }, index) : /* @__PURE__ */ jsx(
19
+ StarSolid,
20
+ {
21
+ className: "text-ui-tag-orange-icon opacity-30"
22
+ },
23
+ index
24
+ )
25
+ ) });
26
+ };
27
+
28
+ export {
29
+ getReviewStatusProps,
30
+ StarRating
31
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ordersQueryKeys
3
- } from "./chunk-OGUTFP6B.js";
3
+ } from "./chunk-JYUHDM23.js";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-RHKRREUU.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  _DataTable,
6
6
  useDataTable
7
- } from "./chunk-IWAL74YU.js";
7
+ } from "./chunk-6GQLSWOO.js";
8
8
  import {
9
9
  useQueryParams
10
10
  } from "./chunk-THHRRYRS.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FileUpload,
3
3
  formatFileSize
4
- } from "./chunk-UEKRQS5Q.js";
4
+ } from "./chunk-ATYOOL7K.js";
5
5
  import {
6
6
  Form
7
7
  } from "./chunk-3QSRE5LS.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-3GSR455R.js";
3
+ } from "./chunk-NQMHP2LC.js";
4
4
  import {
5
5
  DEFAULT_FIELDS,
6
6
  useProductTableQuery
7
7
  } from "./chunk-BEPAXQMU.js";
8
8
  import {
9
9
  useProductTableFilters
10
- } from "./chunk-ZXDMPIXN.js";
10
+ } from "./chunk-U3OEGBHH.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-YV6MK4PZ.js";
14
14
  import {
15
15
  _DataTable,
16
16
  useDataTable
17
- } from "./chunk-IWAL74YU.js";
17
+ } from "./chunk-6GQLSWOO.js";
18
18
  import {
19
19
  ActionMenu
20
20
  } from "./chunk-BDGZ4EQO.js";
@@ -1,5 +1,7 @@
1
1
  import {
2
- inventoryItemLevelsQueryKeys,
2
+ reservationItemsQueryKeys
3
+ } from "./chunk-7POOMBIN.js";
4
+ import {
3
5
  inventoryItemsQueryKeys
4
6
  } from "./chunk-EMUCGKHP.js";
5
7
  import {
@@ -13,48 +15,10 @@ import {
13
15
  } from "./chunk-DTGEFKK4.js";
14
16
 
15
17
  // src/hooks/api/orders.tsx
16
- import {
17
- useMutation as useMutation2,
18
- useQuery as useQuery2
19
- } from "@tanstack/react-query";
20
-
21
- // src/hooks/api/reservations.tsx
22
18
  import {
23
19
  useMutation,
24
20
  useQuery
25
21
  } from "@tanstack/react-query";
26
- var RESERVATION_ITEMS_QUERY_KEY = "reservation_items";
27
- var reservationItemsQueryKeys = queryKeysFactory(
28
- RESERVATION_ITEMS_QUERY_KEY
29
- );
30
- var useReservationItems = (query, options) => {
31
- const { data, ...rest } = useQuery({
32
- queryFn: () => sdk.vendor.reservations.query({ ...query }),
33
- queryKey: reservationItemsQueryKeys.list(query),
34
- ...options
35
- });
36
- return { ...data, ...rest };
37
- };
38
- var useCreateReservationItem = (options) => {
39
- return useMutation({
40
- mutationFn: (payload) => sdk.vendor.reservations.mutate(payload),
41
- onSuccess: (data, variables, context) => {
42
- queryClient.invalidateQueries({
43
- queryKey: reservationItemsQueryKeys.lists()
44
- });
45
- queryClient.invalidateQueries({
46
- queryKey: inventoryItemsQueryKeys.details()
47
- });
48
- queryClient.invalidateQueries({
49
- queryKey: inventoryItemLevelsQueryKeys.details()
50
- });
51
- options?.onSuccess?.(data, variables, context);
52
- },
53
- ...options
54
- });
55
- };
56
-
57
- // src/hooks/api/orders.tsx
58
22
  var ORDERS_QUERY_KEY = "orders";
59
23
  var _orderKeys = queryKeysFactory(ORDERS_QUERY_KEY);
60
24
  _orderKeys.preview = function(id) {
@@ -65,7 +29,7 @@ _orderKeys.changes = function(id) {
65
29
  };
66
30
  var ordersQueryKeys = _orderKeys;
67
31
  var useOrder = (id, query, options) => {
68
- const { data, ...rest } = useQuery2({
32
+ const { data, ...rest } = useQuery({
69
33
  queryFn: async () => sdk.vendor.orders.$id.query({ $id: id, ...query }),
70
34
  queryKey: ordersQueryKeys.detail(id, query),
71
35
  ...options
@@ -73,7 +37,7 @@ var useOrder = (id, query, options) => {
73
37
  return { ...data, ...rest };
74
38
  };
75
39
  var useOrderPreview = (id, query, options) => {
76
- const { data, ...rest } = useQuery2({
40
+ const { data, ...rest } = useQuery({
77
41
  queryFn: async () => sdk.vendor.orders.$id.preview.query({ $id: id, ...query }),
78
42
  queryKey: ordersQueryKeys.preview(id),
79
43
  ...options
@@ -81,7 +45,7 @@ var useOrderPreview = (id, query, options) => {
81
45
  return { ...data, ...rest };
82
46
  };
83
47
  var useOrders = (query, options) => {
84
- const { data, ...rest } = useQuery2({
48
+ const { data, ...rest } = useQuery({
85
49
  queryFn: async () => sdk.vendor.orders.query({ ...query }),
86
50
  queryKey: ordersQueryKeys.list(query),
87
51
  ...options
@@ -89,7 +53,7 @@ var useOrders = (query, options) => {
89
53
  return { ...data, ...rest };
90
54
  };
91
55
  var useOrderChanges = (id, query, options) => {
92
- const { data, ...rest } = useQuery2({
56
+ const { data, ...rest } = useQuery({
93
57
  queryFn: async () => sdk.vendor.orders.$id.changes.query({ $id: id, ...query }),
94
58
  queryKey: ordersQueryKeys.changes(id),
95
59
  ...options
@@ -97,7 +61,7 @@ var useOrderChanges = (id, query, options) => {
97
61
  return { ...data, ...rest };
98
62
  };
99
63
  var useCreateOrderFulfillment = (orderId, options) => {
100
- return useMutation2({
64
+ return useMutation({
101
65
  mutationFn: (payload) => sdk.vendor.orders.$id.fulfillments.mutate({ $id: orderId, ...payload }),
102
66
  onSuccess: (data, variables, context) => {
103
67
  queryClient.invalidateQueries({
@@ -118,7 +82,7 @@ var useCreateOrderFulfillment = (orderId, options) => {
118
82
  });
119
83
  };
120
84
  var useCancelOrderFulfillment = (orderId, fulfillmentId, options) => {
121
- return useMutation2({
85
+ return useMutation({
122
86
  mutationFn: (payload) => sdk.vendor.orders.$id.fulfillments.$fulfillmentId.cancel.mutate({
123
87
  $id: orderId,
124
88
  $fulfillmentId: fulfillmentId,
@@ -143,7 +107,7 @@ var useCancelOrderFulfillment = (orderId, fulfillmentId, options) => {
143
107
  });
144
108
  };
145
109
  var useCreateOrderShipment = (orderId, fulfillmentId, options) => {
146
- return useMutation2({
110
+ return useMutation({
147
111
  mutationFn: (payload) => sdk.vendor.orders.$id.fulfillments.$fulfillmentId.shipments.mutate({
148
112
  $id: orderId,
149
113
  $fulfillmentId: fulfillmentId,
@@ -162,7 +126,7 @@ var useCreateOrderShipment = (orderId, fulfillmentId, options) => {
162
126
  });
163
127
  };
164
128
  var useMarkOrderFulfillmentAsDelivered = (orderId, fulfillmentId, options) => {
165
- return useMutation2({
129
+ return useMutation({
166
130
  mutationFn: () => sdk.vendor.orders.$id.fulfillments.$fulfillmentId.markAsDelivered.mutate({
167
131
  $id: orderId,
168
132
  $fulfillmentId: fulfillmentId
@@ -180,7 +144,7 @@ var useMarkOrderFulfillmentAsDelivered = (orderId, fulfillmentId, options) => {
180
144
  });
181
145
  };
182
146
  var useCancelOrder = (orderId, options) => {
183
- return useMutation2({
147
+ return useMutation({
184
148
  mutationFn: () => sdk.vendor.orders.$id.cancel.mutate({ $id: orderId }),
185
149
  onSuccess: (data, variables, context) => {
186
150
  queryClient.invalidateQueries({
@@ -195,7 +159,7 @@ var useCancelOrder = (orderId, options) => {
195
159
  });
196
160
  };
197
161
  var useOrderCommissionLines = (id, options) => {
198
- const { data, ...rest } = useQuery2({
162
+ const { data, ...rest } = useQuery({
199
163
  queryFn: async () => sdk.vendor.orders.$id.commissionLines.query({ $id: id }),
200
164
  queryKey: ordersQueryKeys.detail(`${id}/commission-lines`),
201
165
  ...options
@@ -204,8 +168,6 @@ var useOrderCommissionLines = (id, options) => {
204
168
  };
205
169
 
206
170
  export {
207
- useReservationItems,
208
- useCreateReservationItem,
209
171
  ordersQueryKeys,
210
172
  useOrder,
211
173
  useOrderPreview,