@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
@@ -16,7 +16,7 @@ import {
16
16
  TrianglesMini,
17
17
  XMarkMini
18
18
  } from "@medusajs/icons";
19
- import { clx, Text } from "@medusajs/ui";
19
+ import { Badge, clx, Text } from "@medusajs/ui";
20
20
  import { matchSorter } from "match-sorter";
21
21
  import {
22
22
  Fragment,
@@ -305,7 +305,7 @@ var ComboboxImpl = ({
305
305
  },
306
306
  "aria-busy": isPending,
307
307
  children: [
308
- results.map(({ value, label, disabled }) => /* @__PURE__ */ jsxs(
308
+ results.map(({ value, label, secondaryLabel, disabled }) => /* @__PURE__ */ jsxs(
309
309
  PrimitiveComboboxItem,
310
310
  {
311
311
  value,
@@ -321,7 +321,8 @@ var ComboboxImpl = ({
321
321
  ),
322
322
  children: [
323
323
  /* @__PURE__ */ jsx(PrimitiveComboboxItemCheck, { className: "flex !size-5 shrink-0 items-center justify-center", children: isArrayValue ? /* @__PURE__ */ jsx(CheckMini, {}) : /* @__PURE__ */ jsx(EllipseMiniSolid, {}) }),
324
- /* @__PURE__ */ jsx(PrimitiveComboboxItemValue, { className: "txt-compact-small truncate", children: label })
324
+ /* @__PURE__ */ jsx(PrimitiveComboboxItemValue, { className: "txt-compact-small flex-1 overflow-hidden text-ellipsis whitespace-nowrap", children: label }),
325
+ secondaryLabel && /* @__PURE__ */ jsx(Badge, { size: "2xsmall", className: "ml-auto shrink-0", children: secondaryLabel })
325
326
  ]
326
327
  },
327
328
  value
@@ -9877,6 +9877,48 @@ var require_promotion_cost = __commonJS({
9877
9877
  }
9878
9878
  });
9879
9879
 
9880
+ // ../types/dist/review/common.js
9881
+ var require_common42 = __commonJS({
9882
+ "../types/dist/review/common.js"(exports) {
9883
+ "use strict";
9884
+ Object.defineProperty(exports, "__esModule", { value: true });
9885
+ }
9886
+ });
9887
+
9888
+ // ../types/dist/review/mutation.js
9889
+ var require_mutation3 = __commonJS({
9890
+ "../types/dist/review/mutation.js"(exports) {
9891
+ "use strict";
9892
+ Object.defineProperty(exports, "__esModule", { value: true });
9893
+ }
9894
+ });
9895
+
9896
+ // ../types/dist/review/index.js
9897
+ var require_review = __commonJS({
9898
+ "../types/dist/review/index.js"(exports) {
9899
+ "use strict";
9900
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
9901
+ if (k2 === void 0) k2 = k;
9902
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9903
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9904
+ desc = { enumerable: true, get: function() {
9905
+ return m[k];
9906
+ } };
9907
+ }
9908
+ Object.defineProperty(o, k2, desc);
9909
+ }) : (function(o, m, k, k2) {
9910
+ if (k2 === void 0) k2 = k;
9911
+ o[k2] = m[k];
9912
+ }));
9913
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
9914
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
9915
+ };
9916
+ Object.defineProperty(exports, "__esModule", { value: true });
9917
+ __exportStar(require_common42(), exports);
9918
+ __exportStar(require_mutation3(), exports);
9919
+ }
9920
+ });
9921
+
9880
9922
  // ../types/dist/product/status.js
9881
9923
  var require_status = __commonJS({
9882
9924
  "../types/dist/product/status.js"(exports) {
@@ -9893,7 +9935,7 @@ var require_status = __commonJS({
9893
9935
  });
9894
9936
 
9895
9937
  // ../types/dist/product/common.js
9896
- var require_common42 = __commonJS({
9938
+ var require_common43 = __commonJS({
9897
9939
  "../types/dist/product/common.js"(exports) {
9898
9940
  "use strict";
9899
9941
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -9959,7 +10001,7 @@ var require_product5 = __commonJS({
9959
10001
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
9960
10002
  };
9961
10003
  Object.defineProperty(exports, "__esModule", { value: true });
9962
- __exportStar(require_common42(), exports);
10004
+ __exportStar(require_common43(), exports);
9963
10005
  __exportStar(require_mutations26(), exports);
9964
10006
  }
9965
10007
  });
@@ -9984,6 +10026,7 @@ var require_modules = __commonJS({
9984
10026
  MercurModules2["ADMIN_UI"] = "admin_ui";
9985
10027
  MercurModules2["CODEGEN"] = "codegen";
9986
10028
  MercurModules2["PROMOTION_COST"] = "promotion_cost";
10029
+ MercurModules2["REVIEW"] = "review";
9987
10030
  })(MercurModules || (exports.MercurModules = MercurModules = {}));
9988
10031
  }
9989
10032
  });
@@ -10072,6 +10115,7 @@ var require_dist2 = __commonJS({
10072
10115
  __exportStar(require_payout2(), exports);
10073
10116
  __exportStar(require_offer2(), exports);
10074
10117
  __exportStar(require_promotion_cost(), exports);
10118
+ __exportStar(require_review(), exports);
10075
10119
  var status_1 = require_status();
10076
10120
  Object.defineProperty(exports, "ProductStatus", { enumerable: true, get: function() {
10077
10121
  return status_1.ProductStatus;
@@ -1,5 +1,5 @@
1
1
  // src/pages/inventory/[id]/constants.ts
2
- var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options,+stocked_quantity,+reserved_quantity,*location_levels";
2
+ var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options,+stocked_quantity,+reserved_quantity,*location_levels,+offers.id,+offers.sku,+offers.product_id,+offers.product_variant.title,+offers.product_variant.product.title,+offers.product_variant.product.thumbnail";
3
3
 
4
4
  export {
5
5
  INVENTORY_DETAIL_FIELDS
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PHOCVOZ5.js";
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-4UQMRTSC.js";
9
+ } from "./chunk-VH3TGSWE.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-NBMM2TZK.js";
@@ -0,0 +1,32 @@
1
+ // src/pages/campaigns/common/utils/campaign-status.ts
2
+ import { isAfter, isBefore } from "date-fns";
3
+ function campaignStatus(campaign) {
4
+ if (campaign.ends_at) {
5
+ if (isBefore(new Date(campaign.ends_at), /* @__PURE__ */ new Date())) {
6
+ return "expired";
7
+ }
8
+ }
9
+ if (campaign.starts_at) {
10
+ if (isAfter(new Date(campaign.starts_at), /* @__PURE__ */ new Date())) {
11
+ return "scheduled";
12
+ }
13
+ }
14
+ return "active";
15
+ }
16
+ var statusColor = (status) => {
17
+ switch (status) {
18
+ case "expired":
19
+ return "red";
20
+ case "scheduled":
21
+ return "orange";
22
+ case "active":
23
+ return "green";
24
+ default:
25
+ return "grey";
26
+ }
27
+ };
28
+
29
+ export {
30
+ campaignStatus,
31
+ statusColor
32
+ };
@@ -8,16 +8,18 @@ var useCampaignTableQuery = ({
8
8
  pageSize = 20
9
9
  }) => {
10
10
  const queryObject = useQueryParams(
11
- ["offset", "q", "order", "created_at", "updated_at"],
11
+ ["offset", "q", "order", "created_at", "updated_at", "budget_type", "status"],
12
12
  prefix
13
13
  );
14
- const { offset, q, order, created_at, updated_at } = queryObject;
14
+ const { offset, q, order, created_at, updated_at, budget_type, status } = queryObject;
15
15
  const searchParams = {
16
16
  limit: pageSize,
17
17
  offset: offset ? Number(offset) : 0,
18
- order,
18
+ order: order ?? "-created_at",
19
19
  created_at: created_at ? JSON.parse(created_at) : void 0,
20
20
  updated_at: updated_at ? JSON.parse(updated_at) : void 0,
21
+ budget_type,
22
+ status,
21
23
  q
22
24
  };
23
25
  return {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  useCampaignTableColumns
3
- } from "./chunk-7TIZP4YG.js";
3
+ } from "./chunk-5RWK4U4V.js";
4
4
  import {
5
5
  useCampaignTableQuery
6
- } from "./chunk-DY3XQPHC.js";
6
+ } from "./chunk-WW2XYOHJ.js";
7
7
  import {
8
8
  SingleColumnPage
9
9
  } from "./chunk-YV6MK4PZ.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-IWAL74YU.js";
13
+ } from "./chunk-6GQLSWOO.js";
14
14
  import {
15
15
  ActionMenu
16
16
  } from "./chunk-BDGZ4EQO.js";
@@ -61,12 +61,47 @@ import { toast, usePrompt } from "@medusajs/ui";
61
61
  import { keepPreviousData } from "@tanstack/react-query";
62
62
  import { createColumnHelper } from "@tanstack/react-table";
63
63
  import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
64
+ import { useMemo as useMemo2 } from "react";
65
+ import { useTranslation as useTranslation3 } from "react-i18next";
66
+
67
+ // src/hooks/table/filters/use-campaign-table-filters.tsx
64
68
  import { useMemo } from "react";
65
69
  import { useTranslation as useTranslation2 } from "react-i18next";
70
+ var useCampaignTableFilters = () => {
71
+ const { t } = useTranslation2();
72
+ return useMemo(() => {
73
+ const typeFilter = {
74
+ key: "budget_type",
75
+ label: t("campaigns.fields.type"),
76
+ type: "select",
77
+ options: [
78
+ { label: t("campaigns.budget.type.spend.title"), value: "spend" },
79
+ { label: t("campaigns.budget.type.usage.title"), value: "usage" }
80
+ ]
81
+ };
82
+ const statusFilter = {
83
+ key: "status",
84
+ label: t("fields.status"),
85
+ type: "select",
86
+ options: [
87
+ { label: t("campaigns.status.active"), value: "active" },
88
+ { label: t("campaigns.status.scheduled"), value: "scheduled" },
89
+ { label: t("campaigns.status.expired"), value: "expired" }
90
+ ]
91
+ };
92
+ const dateFilters = [
93
+ { label: t("fields.createdAt"), key: "created_at", type: "date" },
94
+ { label: t("fields.updatedAt"), key: "updated_at", type: "date" }
95
+ ];
96
+ return [typeFilter, statusFilter, ...dateFilters];
97
+ }, [t]);
98
+ };
99
+
100
+ // src/pages/campaigns/_components/campaign-list-table/campaign-list-data-table.tsx
66
101
  import { jsx as jsx2 } from "react/jsx-runtime";
67
102
  var PAGE_SIZE = 20;
68
103
  var CampaignListDataTable = () => {
69
- const { t } = useTranslation2();
104
+ const { t } = useTranslation3();
70
105
  const { raw, searchParams } = useCampaignTableQuery({ pageSize: PAGE_SIZE });
71
106
  const linkQuery = useLinkQuery("campaign");
72
107
  const {
@@ -82,6 +117,7 @@ var CampaignListDataTable = () => {
82
117
  }
83
118
  );
84
119
  const { columns } = useColumns();
120
+ const filters = useCampaignTableFilters();
85
121
  const { table } = useDataTable({
86
122
  data: campaigns ?? [],
87
123
  columns,
@@ -102,6 +138,7 @@ var CampaignListDataTable = () => {
102
138
  pageSize: PAGE_SIZE,
103
139
  pagination: true,
104
140
  search: true,
141
+ filters,
105
142
  navigateTo: (row) => row.id,
106
143
  isLoading,
107
144
  queryObject: raw,
@@ -114,17 +151,15 @@ var CampaignListDataTable = () => {
114
151
  );
115
152
  };
116
153
  var CampaignActions = ({ campaign }) => {
117
- const { t } = useTranslation2();
154
+ const { t } = useTranslation3();
118
155
  const prompt = usePrompt();
119
156
  const { mutateAsync } = useDeleteCampaign(campaign.id);
120
157
  const handleDelete = async () => {
121
158
  const confirm = await prompt({
122
- title: t("general.areYouSure"),
123
- description: t("campaigns.deleteCampaignWarning", {
159
+ title: t("campaigns.delete.title"),
160
+ description: t("campaigns.delete.description", {
124
161
  name: campaign.name
125
162
  }),
126
- verificationInstruction: t("general.typeToConfirm"),
127
- verificationText: campaign.name,
128
163
  confirmText: t("actions.delete"),
129
164
  cancelText: t("actions.cancel")
130
165
  });
@@ -175,7 +210,7 @@ var useColumns = () => {
175
210
  model: "campaign",
176
211
  columns: base
177
212
  });
178
- const columns = useMemo(
213
+ const columns = useMemo2(
179
214
  () => [
180
215
  ...extended,
181
216
  columnHelper.display({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-EJBOBB4B.js";
4
+ } from "./chunk-AQT2G6K2.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-J75EFK5A.js";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
14
- } from "./chunk-IWAL74YU.js";
14
+ } from "./chunk-6GQLSWOO.js";
15
15
  import {
16
16
  ActionMenu
17
17
  } from "./chunk-BDGZ4EQO.js";
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-VOHEQ7B5.js";
10
10
  import {
11
11
  useProductTypeTableFilters
12
- } from "./chunk-2ZFELO2L.js";
12
+ } from "./chunk-7H6NMQ6U.js";
13
13
  import {
14
14
  SingleColumnPage
15
15
  } from "./chunk-YV6MK4PZ.js";
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-IWAL74YU.js";
19
+ } from "./chunk-6GQLSWOO.js";
20
20
  import {
21
21
  ActionMenu
22
22
  } from "./chunk-BDGZ4EQO.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OVPAOBZB.js";
4
4
  import {
5
5
  Combobox
6
- } from "./chunk-VBRTC2VU.js";
6
+ } from "./chunk-VAFGNDAP.js";
7
7
  import {
8
8
  Form
9
9
  } from "./chunk-3QSRE5LS.js";
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-BI2AYXZQ.js";
7
7
  import {
8
8
  useCollectionTableFilters
9
- } from "./chunk-HHD2VUED.js";
9
+ } from "./chunk-4UKAKFKL.js";
10
10
  import {
11
11
  SingleColumnPage
12
12
  } from "./chunk-YV6MK4PZ.js";
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-IWAL74YU.js";
16
+ } from "./chunk-6GQLSWOO.js";
17
17
  import {
18
18
  useCollections
19
19
  } from "./chunk-OCYVN77Z.js";
@@ -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";
@@ -1,20 +1,19 @@
1
1
  import {
2
2
  CollectionListPage
3
- } from "./chunk-LN7XHEPJ.js";
3
+ } from "./chunk-YT4RAUWM.js";
4
4
  import "./chunk-YNGA3GRX.js";
5
5
  import "./chunk-BI2AYXZQ.js";
6
6
  import "./chunk-MG4GKUJW.js";
7
7
  import "./chunk-AYVH6Q5O.js";
8
8
  import "./chunk-VOHEQ7B5.js";
9
- import "./chunk-DY3XQPHC.js";
9
+ import "./chunk-WW2XYOHJ.js";
10
10
  import "./chunk-GRH7C3QN.js";
11
11
  import "./chunk-VKOE5J66.js";
12
12
  import "./chunk-42R54Z2X.js";
13
13
  import "./chunk-N3T24SEK.js";
14
14
  import "./chunk-JHIMVLB2.js";
15
- import "./chunk-HHD2VUED.js";
16
- import "./chunk-2ZFELO2L.js";
17
- import "./chunk-26OOAKQ6.js";
15
+ import "./chunk-4UKAKFKL.js";
16
+ import "./chunk-7H6NMQ6U.js";
18
17
  import "./chunk-J75EFK5A.js";
19
18
  import "./chunk-XBKWFLJG.js";
20
19
  import "./chunk-5ALC4Z2H.js";
@@ -22,29 +21,30 @@ import "./chunk-ZC2ME3UB.js";
22
21
  import "./chunk-CMHI2RPL.js";
23
22
  import "./chunk-UAE6XBYL.js";
24
23
  import "./chunk-BEPAXQMU.js";
25
- import "./chunk-ZXDMPIXN.js";
24
+ import "./chunk-U3OEGBHH.js";
26
25
  import "./chunk-PHOCVOZ5.js";
27
26
  import "./chunk-YV6MK4PZ.js";
28
27
  import "./chunk-FQERBIVS.js";
29
- import "./chunk-IWAL74YU.js";
28
+ import "./chunk-6GQLSWOO.js";
30
29
  import "./chunk-YN3FGNJM.js";
31
30
  import "./chunk-KCHYLLVG.js";
32
31
  import "./chunk-3EF54XFY.js";
33
32
  import "./chunk-THHRRYRS.js";
34
33
  import "./chunk-LRD242C7.js";
35
- import "./chunk-4UQMRTSC.js";
34
+ import "./chunk-VH3TGSWE.js";
36
35
  import "./chunk-WIYFXWRI.js";
37
36
  import "./chunk-INNFZYX2.js";
38
37
  import "./chunk-LAVHRER2.js";
39
38
  import "./chunk-QHQWEERJ.js";
40
39
  import "./chunk-Y7QKP6QU.js";
41
- import "./chunk-RLRWDHME.js";
40
+ import "./chunk-6YQR2AWM.js";
42
41
  import "./chunk-K5324KIX.js";
43
42
  import "./chunk-FV76G2D7.js";
44
43
  import "./chunk-GHDLST2P.js";
45
44
  import "./chunk-YVYYOBAE.js";
46
45
  import "./chunk-L2NJPDUD.js";
47
- import "./chunk-2S2WK2OG.js";
46
+ import "./chunk-7LIENHWP.js";
47
+ import "./chunk-NV2RZAHW.js";
48
48
  import "./chunk-MR6REQKT.js";
49
49
  import "./chunk-EPSDO2MJ.js";
50
50
  import "./chunk-BHEU34FL.js";
@@ -55,9 +55,10 @@ import "./chunk-J2XUEO2E.js";
55
55
  import "./chunk-DETQ6IBQ.js";
56
56
  import "./chunk-VWPNMEOE.js";
57
57
  import "./chunk-O72AIZUN.js";
58
- import "./chunk-U5V6HNVW.js";
59
- import "./chunk-PF7R7LMW.js";
60
- import "./chunk-OGUTFP6B.js";
58
+ import "./chunk-GL3XVUAY.js";
59
+ import "./chunk-AHR2FIMC.js";
60
+ import "./chunk-JYUHDM23.js";
61
+ import "./chunk-7POOMBIN.js";
61
62
  import "./chunk-4U2BLH45.js";
62
63
  import "./chunk-EMUCGKHP.js";
63
64
  import "./chunk-A5DJIOHN.js";
@@ -77,7 +77,7 @@ var CampaignConfigurationForm = ({
77
77
  name: "starts_at",
78
78
  render: ({ field }) => {
79
79
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
80
- /* @__PURE__ */ jsx(Form.Label, { children: t("campaigns.fields.start_date") }),
80
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("campaigns.fields.start_date") }),
81
81
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
82
82
  DatePicker,
83
83
  {
@@ -99,7 +99,7 @@ var CampaignConfigurationForm = ({
99
99
  name: "ends_at",
100
100
  render: ({ field }) => {
101
101
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
102
- /* @__PURE__ */ jsx(Form.Label, { children: t("campaigns.fields.end_date") }),
102
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("campaigns.fields.end_date") }),
103
103
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
104
104
  DatePicker,
105
105
  {
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  usePriceList,
14
14
  useUpdatePriceList
15
- } from "./chunk-2S2WK2OG.js";
15
+ } from "./chunk-NV2RZAHW.js";
16
16
  import "./chunk-II3CLUXA.js";
17
17
  import "./chunk-EMUCGKHP.js";
18
18
  import "./chunk-A5DJIOHN.js";
@@ -28,53 +28,33 @@ import { useParams } from "react-router-dom";
28
28
 
29
29
  // src/pages/price-lists/[id]/configuration/price-list-configuration-form/price-list-configuration-form.tsx
30
30
  import { zodResolver } from "@hookform/resolvers/zod";
31
- import {
32
- Button,
33
- DatePicker,
34
- Divider,
35
- toast
36
- } from "@medusajs/ui";
37
- import { useFieldArray, useForm } from "react-hook-form";
31
+ import { Button, DatePicker, toast } from "@medusajs/ui";
32
+ import { useForm } from "react-hook-form";
38
33
  import { useTranslation } from "react-i18next";
39
34
  import { z } from "zod";
40
35
  import { jsx, jsxs } from "react/jsx-runtime";
41
36
  var PriceListConfigurationSchema = z.object({
42
37
  ends_at: z.date().nullable(),
43
- starts_at: z.date().nullable(),
44
- customer_group_id: z.array(
45
- z.object({
46
- id: z.string(),
47
- name: z.string()
48
- })
49
- )
38
+ starts_at: z.date().nullable()
50
39
  });
51
40
  var PriceListConfigurationForm = ({
52
- priceList,
53
- customerGroups
41
+ priceList
54
42
  }) => {
55
43
  const { t } = useTranslation();
56
44
  const { handleSuccess } = useRouteModal();
57
45
  const form = useForm({
58
46
  defaultValues: {
59
47
  ends_at: priceList.ends_at ? new Date(priceList.ends_at) : null,
60
- starts_at: priceList.starts_at ? new Date(priceList.starts_at) : null,
61
- customer_group_id: customerGroups
48
+ starts_at: priceList.starts_at ? new Date(priceList.starts_at) : null
62
49
  },
63
50
  resolver: zodResolver(PriceListConfigurationSchema)
64
51
  });
65
- const { remove: _remove } = useFieldArray({
66
- control: form.control,
67
- name: "customer_group_id",
68
- keyName: "cg_id"
69
- });
70
52
  const { mutateAsync } = useUpdatePriceList(priceList.id);
71
53
  const handleSubmit = form.handleSubmit(async (values) => {
72
- const rules = { ...priceList.rules };
73
54
  await mutateAsync(
74
55
  {
75
56
  starts_at: values.starts_at?.toISOString() || null,
76
- ends_at: values.ends_at?.toISOString() || null,
77
- rules
57
+ ends_at: values.ends_at?.toISOString() || null
78
58
  },
79
59
  {
80
60
  onSuccess: () => {
@@ -85,7 +65,7 @@ var PriceListConfigurationForm = ({
85
65
  }
86
66
  );
87
67
  });
88
- return /* @__PURE__ */ jsxs(RouteDrawer.Form, { form, children: [
68
+ return /* @__PURE__ */ jsxs(RouteDrawer.Form, { form, "data-testid": "price-list-configuration-form", children: [
89
69
  /* @__PURE__ */ jsx(RouteDrawer.Description, { className: "sr-only", children: t("priceLists.configuration.edit.description") }),
90
70
  /* @__PURE__ */ jsxs(
91
71
  KeyboundForm,
@@ -93,7 +73,7 @@ var PriceListConfigurationForm = ({
93
73
  className: "flex flex-1 flex-col overflow-hidden",
94
74
  onSubmit: handleSubmit,
95
75
  children: [
96
- /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-8 overflow-auto", children: [
76
+ /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-4 overflow-auto", "data-testid": "price-list-configuration-form-body", children: [
97
77
  /* @__PURE__ */ jsx(
98
78
  Form.Field,
99
79
  {
@@ -102,10 +82,7 @@ var PriceListConfigurationForm = ({
102
82
  render: ({ field }) => {
103
83
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
104
84
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-3", children: [
105
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
106
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("priceLists.fields.startsAt.label") }),
107
- /* @__PURE__ */ jsx(Form.Hint, { children: t("priceLists.fields.startsAt.hint") })
108
- ] }),
85
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("priceLists.fields.startsAt.label") }),
109
86
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
110
87
  DatePicker,
111
88
  {
@@ -120,7 +97,6 @@ var PriceListConfigurationForm = ({
120
97
  }
121
98
  }
122
99
  ),
123
- /* @__PURE__ */ jsx(Divider, {}),
124
100
  /* @__PURE__ */ jsx(
125
101
  Form.Field,
126
102
  {
@@ -129,10 +105,7 @@ var PriceListConfigurationForm = ({
129
105
  render: ({ field }) => {
130
106
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
131
107
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-3", children: [
132
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
133
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("priceLists.fields.endsAt.label") }),
134
- /* @__PURE__ */ jsx(Form.Hint, { children: t("priceLists.fields.endsAt.hint") })
135
- ] }),
108
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("priceLists.fields.endsAt.label") }),
136
109
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
137
110
  DatePicker,
138
111
  {
@@ -148,9 +121,9 @@ var PriceListConfigurationForm = ({
148
121
  }
149
122
  )
150
123
  ] }),
151
- /* @__PURE__ */ jsx(RouteDrawer.Footer, { className: "shrink-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
152
- /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
153
- /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: t("actions.save") })
124
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { className: "shrink-0", "data-testid": "price-list-configuration-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
125
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": "price-list-configuration-form-cancel-button", children: t("actions.cancel") }) }),
126
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", "data-testid": "price-list-configuration-form-save-button", children: t("actions.save") })
154
127
  ] }) })
155
128
  ]
156
129
  }
@@ -170,13 +143,7 @@ var Component = () => {
170
143
  }
171
144
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
172
145
  /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.configuration.edit.header") }) }) }),
173
- ready && /* @__PURE__ */ jsx2(
174
- PriceListConfigurationForm,
175
- {
176
- priceList: price_list,
177
- customerGroups: []
178
- }
179
- )
146
+ ready && /* @__PURE__ */ jsx2(PriceListConfigurationForm, { priceList: price_list })
180
147
  ] });
181
148
  };
182
149
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GeoZoneForm
3
- } from "./chunk-BCXREBMV.js";
3
+ } from "./chunk-4ATO577Q.js";
4
4
  import {
5
5
  GEO_ZONE_STACKED_MODAL_ID
6
6
  } from "./chunk-BCU3FKP2.js";
@@ -18,7 +18,7 @@ import {
18
18
  Form
19
19
  } from "./chunk-3QSRE5LS.js";
20
20
  import "./chunk-FQERBIVS.js";
21
- import "./chunk-IWAL74YU.js";
21
+ import "./chunk-6GQLSWOO.js";
22
22
  import "./chunk-YN3FGNJM.js";
23
23
  import "./chunk-KCHYLLVG.js";
24
24
  import "./chunk-3EF54XFY.js";