@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
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  CreateCampaignForm
3
- } from "./chunk-WJF24CGA.js";
4
- import "./chunk-SI55QRZ4.js";
3
+ } from "./chunk-RDLVH6CM.js";
4
+ import "./chunk-G5NNOOHR.js";
5
5
  import "./chunk-54TMLQH3.js";
6
6
  import "./chunk-IQPN4PZJ.js";
7
+ import "./chunk-VAFGNDAP.js";
7
8
  import "./chunk-TKGWSUEI.js";
8
9
  import "./chunk-SITRHMZZ.js";
9
10
  import {
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-SMQT3ZNO.js";
22
22
  import {
23
23
  Combobox
24
- } from "./chunk-VBRTC2VU.js";
24
+ } from "./chunk-VAFGNDAP.js";
25
25
  import "./chunk-TKGWSUEI.js";
26
26
  import {
27
27
  KeyboundForm
@@ -39,15 +39,16 @@ import "./chunk-WIYFXWRI.js";
39
39
  import "./chunk-INNFZYX2.js";
40
40
  import "./chunk-LAVHRER2.js";
41
41
  import "./chunk-Y7QKP6QU.js";
42
- import {
43
- useRegions
44
- } from "./chunk-RLRWDHME.js";
42
+ import "./chunk-6YQR2AWM.js";
45
43
  import "./chunk-K5324KIX.js";
46
44
  import "./chunk-FV76G2D7.js";
47
45
  import "./chunk-GHDLST2P.js";
48
46
  import "./chunk-YVYYOBAE.js";
49
47
  import "./chunk-L2NJPDUD.js";
50
- import "./chunk-2S2WK2OG.js";
48
+ import {
49
+ useRegions
50
+ } from "./chunk-7LIENHWP.js";
51
+ import "./chunk-NV2RZAHW.js";
51
52
  import "./chunk-MR6REQKT.js";
52
53
  import {
53
54
  shippingProfileQueryKeys
@@ -67,9 +68,10 @@ import {
67
68
  useFulfillmentProviderOptions,
68
69
  useStockLocation
69
70
  } from "./chunk-O72AIZUN.js";
70
- import "./chunk-U5V6HNVW.js";
71
- import "./chunk-PF7R7LMW.js";
72
- import "./chunk-OGUTFP6B.js";
71
+ import "./chunk-GL3XVUAY.js";
72
+ import "./chunk-AHR2FIMC.js";
73
+ import "./chunk-JYUHDM23.js";
74
+ import "./chunk-7POOMBIN.js";
73
75
  import "./chunk-4U2BLH45.js";
74
76
  import "./chunk-EMUCGKHP.js";
75
77
  import "./chunk-A5DJIOHN.js";
@@ -21,7 +21,7 @@ import {
21
21
  useUpdateReturn,
22
22
  useUpdateReturnItem,
23
23
  useUpdateReturnShipping
24
- } from "./chunk-XVBONKRV.js";
24
+ } from "./chunk-RCMKDW6O.js";
25
25
  import {
26
26
  MoneyAmountCell
27
27
  } from "./chunk-5YZ3G5EZ.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-IQPN4PZJ.js";
37
37
  import {
38
38
  Combobox
39
- } from "./chunk-VBRTC2VU.js";
39
+ } from "./chunk-VAFGNDAP.js";
40
40
  import "./chunk-TKGWSUEI.js";
41
41
  import {
42
42
  KeyboundForm
@@ -54,7 +54,7 @@ import "./chunk-FQERBIVS.js";
54
54
  import {
55
55
  _DataTable,
56
56
  useDataTable
57
- } from "./chunk-IWAL74YU.js";
57
+ } from "./chunk-6GQLSWOO.js";
58
58
  import "./chunk-YN3FGNJM.js";
59
59
  import "./chunk-KCHYLLVG.js";
60
60
  import "./chunk-3EF54XFY.js";
@@ -78,7 +78,8 @@ import {
78
78
  import {
79
79
  useOrder,
80
80
  useOrderPreview
81
- } from "./chunk-OGUTFP6B.js";
81
+ } from "./chunk-JYUHDM23.js";
82
+ import "./chunk-7POOMBIN.js";
82
83
  import "./chunk-EMUCGKHP.js";
83
84
  import "./chunk-A5DJIOHN.js";
84
85
  import "./chunk-RHKRREUU.js";
@@ -0,0 +1,164 @@
1
+ import {
2
+ PriceListCustomerAvailabilitySelector
3
+ } from "./chunk-FKKI62AC.js";
4
+ import "./chunk-VKOE5J66.js";
5
+ import "./chunk-JHIMVLB2.js";
6
+ import "./chunk-CMHI2RPL.js";
7
+ import "./chunk-PHOCVOZ5.js";
8
+ import "./chunk-TKGWSUEI.js";
9
+ import {
10
+ KeyboundForm
11
+ } from "./chunk-SITRHMZZ.js";
12
+ import {
13
+ RouteDrawer,
14
+ useRouteModal
15
+ } from "./chunk-GDWBOQI5.js";
16
+ import "./chunk-3QSRE5LS.js";
17
+ import "./chunk-FQERBIVS.js";
18
+ import "./chunk-6GQLSWOO.js";
19
+ import "./chunk-YN3FGNJM.js";
20
+ import "./chunk-KCHYLLVG.js";
21
+ import "./chunk-3EF54XFY.js";
22
+ import "./chunk-THHRRYRS.js";
23
+ import "./chunk-LRD242C7.js";
24
+ import "./chunk-INNFZYX2.js";
25
+ import "./chunk-LAVHRER2.js";
26
+ import "./chunk-QHQWEERJ.js";
27
+ import "./chunk-Y7QKP6QU.js";
28
+ import {
29
+ usePriceList,
30
+ useUpdatePriceList
31
+ } from "./chunk-NV2RZAHW.js";
32
+ import {
33
+ useCustomerGroups
34
+ } from "./chunk-II3CLUXA.js";
35
+ import "./chunk-EMUCGKHP.js";
36
+ import "./chunk-A5DJIOHN.js";
37
+ import "./chunk-RHKRREUU.js";
38
+ import "./chunk-ZA2KFUFR.js";
39
+ import "./chunk-DTGEFKK4.js";
40
+ import "./chunk-NBMM2TZK.js";
41
+
42
+ // src/pages/price-lists/[id]/customer-availability/index.tsx
43
+ import { Heading as Heading2 } from "@medusajs/ui";
44
+ import { useTranslation as useTranslation2 } from "react-i18next";
45
+ import { useParams } from "react-router-dom";
46
+
47
+ // src/pages/price-lists/[id]/customer-availability/price-list-customer-availability-form/price-list-customer-availability-form.tsx
48
+ import { zodResolver } from "@hookform/resolvers/zod";
49
+ import { Button, Heading, Text, toast } from "@medusajs/ui";
50
+ import { useForm } from "react-hook-form";
51
+ import { useTranslation } from "react-i18next";
52
+ import { z } from "zod";
53
+ import { jsx, jsxs } from "react/jsx-runtime";
54
+ var PriceListCustomerAvailabilitySchema = z.object({
55
+ customer_group_id: z.array(z.object({ id: z.string(), name: z.string() })).default([])
56
+ });
57
+ var PriceListCustomerAvailabilityForm = ({
58
+ priceList,
59
+ customerGroups
60
+ }) => {
61
+ const { t } = useTranslation();
62
+ const { handleSuccess } = useRouteModal();
63
+ const form = useForm({
64
+ defaultValues: {
65
+ customer_group_id: customerGroups
66
+ },
67
+ resolver: zodResolver(PriceListCustomerAvailabilitySchema)
68
+ });
69
+ const { mutateAsync, isPending } = useUpdatePriceList(priceList.id);
70
+ const handleSubmit = form.handleSubmit(async (values) => {
71
+ const rules = { ...priceList.rules };
72
+ if (values.customer_group_id.length) {
73
+ rules["customer.groups.id"] = values.customer_group_id.map(
74
+ (group) => group.id
75
+ );
76
+ } else {
77
+ delete rules["customer.groups.id"];
78
+ }
79
+ await mutateAsync(
80
+ { rules },
81
+ {
82
+ onSuccess: () => {
83
+ toast.success(t("priceLists.customerAvailability.edit.successToast"));
84
+ handleSuccess();
85
+ },
86
+ onError: (error) => toast.error(error.message)
87
+ }
88
+ );
89
+ });
90
+ return /* @__PURE__ */ jsxs(RouteDrawer.Form, { form, "data-testid": "price-list-customer-availability-form", children: [
91
+ /* @__PURE__ */ jsx(RouteDrawer.Description, { className: "sr-only", children: t("priceLists.customerAvailability.edit.description") }),
92
+ /* @__PURE__ */ jsxs(
93
+ KeyboundForm,
94
+ {
95
+ className: "flex flex-1 flex-col overflow-hidden",
96
+ onSubmit: handleSubmit,
97
+ children: [
98
+ /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-4 overflow-auto", "data-testid": "price-list-customer-availability-form-body", children: [
99
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-1", children: [
100
+ /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("priceLists.fields.customerAvailability.label") }),
101
+ /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("priceLists.fields.customerAvailability.hint") })
102
+ ] }),
103
+ /* @__PURE__ */ jsx(
104
+ PriceListCustomerAvailabilitySelector,
105
+ {
106
+ control: form.control,
107
+ name: "customer_group_id"
108
+ }
109
+ )
110
+ ] }),
111
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { className: "shrink-0", "data-testid": "price-list-customer-availability-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
112
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": "price-list-customer-availability-form-cancel-button", children: t("actions.cancel") }) }),
113
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, "data-testid": "price-list-customer-availability-form-save-button", children: t("actions.save") })
114
+ ] }) })
115
+ ]
116
+ }
117
+ )
118
+ ] });
119
+ };
120
+
121
+ // src/pages/price-lists/[id]/customer-availability/index.tsx
122
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
123
+ var Component = () => {
124
+ const { t } = useTranslation2();
125
+ const { id } = useParams();
126
+ const { price_list, isPending, isError, error } = usePriceList(id);
127
+ const customerGroupIds = price_list?.rules?.["customer.groups.id"];
128
+ const {
129
+ customer_groups,
130
+ isPending: isCustomerGroupsPending,
131
+ isError: isCustomerGroupsError,
132
+ error: customerGroupsError
133
+ } = useCustomerGroups(
134
+ {
135
+ id: customerGroupIds
136
+ },
137
+ { enabled: !!customerGroupIds?.length }
138
+ );
139
+ const initialCustomerGroups = customer_groups?.map((group) => ({
140
+ id: group.id,
141
+ name: group.name
142
+ })) || [];
143
+ const isCustomerGroupsReady = isPending ? false : !(!!customerGroupIds?.length && isCustomerGroupsPending);
144
+ const ready = !isPending && !!price_list && isCustomerGroupsReady;
145
+ if (isError) {
146
+ throw error;
147
+ }
148
+ if (isCustomerGroupsError) {
149
+ throw customerGroupsError;
150
+ }
151
+ return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
152
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { children: t("priceLists.customerAvailability.edit.header") }) }) }),
153
+ ready && /* @__PURE__ */ jsx2(
154
+ PriceListCustomerAvailabilityForm,
155
+ {
156
+ priceList: price_list,
157
+ customerGroups: initialCustomerGroups
158
+ }
159
+ )
160
+ ] });
161
+ };
162
+ export {
163
+ Component
164
+ };
@@ -23,7 +23,7 @@ import "./chunk-FQERBIVS.js";
23
23
  import {
24
24
  _DataTable,
25
25
  useDataTable
26
- } from "./chunk-IWAL74YU.js";
26
+ } from "./chunk-6GQLSWOO.js";
27
27
  import "./chunk-YN3FGNJM.js";
28
28
  import "./chunk-KCHYLLVG.js";
29
29
  import "./chunk-3EF54XFY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CustomerGroupDetailPage
3
- } from "./chunk-VBKW4GWP.js";
3
+ } from "./chunk-FPBXQIFJ.js";
4
4
  import {
5
5
  CustomerGroupDetailBreadcrumb
6
6
  } from "./chunk-TDL742KZ.js";
@@ -15,7 +15,7 @@ import "./chunk-DB6ANJBO.js";
15
15
  import "./chunk-PHOCVOZ5.js";
16
16
  import "./chunk-YV6MK4PZ.js";
17
17
  import "./chunk-FQERBIVS.js";
18
- import "./chunk-IWAL74YU.js";
18
+ import "./chunk-6GQLSWOO.js";
19
19
  import "./chunk-YN3FGNJM.js";
20
20
  import "./chunk-KCHYLLVG.js";
21
21
  import "./chunk-3EF54XFY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CustomerGroupDetailPage
3
- } from "./chunk-VBKW4GWP.js";
3
+ } from "./chunk-FPBXQIFJ.js";
4
4
  import "./chunk-SPFLYPY6.js";
5
5
  import "./chunk-GJM5XI3E.js";
6
6
  import "./chunk-GRH7C3QN.js";
@@ -21,7 +21,7 @@ import "./chunk-FQERBIVS.js";
21
21
  import {
22
22
  _DataTable,
23
23
  useDataTable
24
- } from "./chunk-IWAL74YU.js";
24
+ } from "./chunk-6GQLSWOO.js";
25
25
  import "./chunk-YN3FGNJM.js";
26
26
  import "./chunk-KCHYLLVG.js";
27
27
  import "./chunk-3EF54XFY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CustomerListPage
3
- } from "./chunk-SDFZUBS3.js";
3
+ } from "./chunk-CDZALZ5E.js";
4
4
  import "./chunk-GJM5XI3E.js";
5
5
  import "./chunk-GRH7C3QN.js";
6
6
  import "./chunk-ZC2ME3UB.js";
@@ -9,7 +9,7 @@ import "./chunk-DB6ANJBO.js";
9
9
  import "./chunk-PHOCVOZ5.js";
10
10
  import "./chunk-YV6MK4PZ.js";
11
11
  import "./chunk-FQERBIVS.js";
12
- import "./chunk-IWAL74YU.js";
12
+ import "./chunk-6GQLSWOO.js";
13
13
  import "./chunk-YN3FGNJM.js";
14
14
  import "./chunk-KCHYLLVG.js";
15
15
  import "./chunk-3EF54XFY.js";
@@ -0,0 +1,262 @@
1
+ import "./chunk-TKGWSUEI.js";
2
+ import {
3
+ KeyboundForm
4
+ } from "./chunk-SITRHMZZ.js";
5
+ import {
6
+ RouteDrawer,
7
+ useRouteModal
8
+ } from "./chunk-GDWBOQI5.js";
9
+ import {
10
+ Form
11
+ } from "./chunk-3QSRE5LS.js";
12
+ import {
13
+ useDocumentDirection
14
+ } from "./chunk-Y7QKP6QU.js";
15
+ import {
16
+ usePriceList,
17
+ useUpdatePriceList
18
+ } from "./chunk-NV2RZAHW.js";
19
+ import "./chunk-II3CLUXA.js";
20
+ import "./chunk-EMUCGKHP.js";
21
+ import "./chunk-A5DJIOHN.js";
22
+ import "./chunk-RHKRREUU.js";
23
+ import "./chunk-ZA2KFUFR.js";
24
+ import "./chunk-DTGEFKK4.js";
25
+ import "./chunk-NBMM2TZK.js";
26
+
27
+ // src/pages/price-lists/[id]/edit/index.tsx
28
+ import { Heading } from "@medusajs/ui";
29
+ import { useTranslation as useTranslation2 } from "react-i18next";
30
+ import { useParams } from "react-router-dom";
31
+ import { useLinkQuery } from "@mercurjs/dashboard-shared";
32
+
33
+ // src/pages/price-lists/[id]/edit/price-list-edit-form/edit-price-list-form.tsx
34
+ import { Button, Input, RadioGroup, Textarea, toast } from "@medusajs/ui";
35
+ import { useTranslation } from "react-i18next";
36
+ import { z } from "zod";
37
+ import {
38
+ FormExtensionZone,
39
+ useExtendableForm
40
+ } from "@mercurjs/dashboard-shared";
41
+
42
+ // src/pages/price-lists/common/constants.ts
43
+ import {
44
+ PriceListDateStatus,
45
+ PriceListStatus,
46
+ PriceListType
47
+ } from "@mercurjs/dashboard-shared";
48
+
49
+ // src/pages/price-lists/[id]/edit/price-list-edit-form/edit-price-list-form.tsx
50
+ import { jsx, jsxs } from "react/jsx-runtime";
51
+ var PriceListEditSchema = z.object({
52
+ status: z.nativeEnum(PriceListStatus),
53
+ type: z.nativeEnum(PriceListType),
54
+ title: z.string().min(1),
55
+ description: z.string().optional()
56
+ });
57
+ var PriceListEditForm = ({ priceList }) => {
58
+ const { t } = useTranslation();
59
+ const { handleSuccess } = useRouteModal();
60
+ const direction = useDocumentDirection();
61
+ const form = useExtendableForm({
62
+ schema: PriceListEditSchema,
63
+ model: "price_list",
64
+ zone: "edit",
65
+ data: priceList,
66
+ defaultValues: {
67
+ type: priceList.type,
68
+ title: priceList.title,
69
+ description: priceList.description,
70
+ status: priceList.status
71
+ }
72
+ });
73
+ const { mutateAsync, isPending } = useUpdatePriceList(priceList.id);
74
+ const handleSubmit = form.handleSubmit(async (values) => {
75
+ const { additional_data, ...rest } = values;
76
+ const payload = additional_data && Object.keys(additional_data).length ? { ...rest, additional_data } : rest;
77
+ await mutateAsync(payload, {
78
+ onSuccess: ({ price_list }) => {
79
+ toast.success(
80
+ t("priceLists.edit.successToast", {
81
+ title: price_list.title
82
+ })
83
+ );
84
+ handleSuccess();
85
+ },
86
+ onError: (error) => {
87
+ toast.error(error.message);
88
+ }
89
+ });
90
+ });
91
+ return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, "data-testid": "price-list-edit-form", children: /* @__PURE__ */ jsxs(
92
+ KeyboundForm,
93
+ {
94
+ className: "flex flex-1 flex-col overflow-hidden",
95
+ onSubmit: handleSubmit,
96
+ children: [
97
+ /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-6 overflow-auto", "data-testid": "price-list-edit-form-body", children: [
98
+ /* @__PURE__ */ jsx(
99
+ Form.Field,
100
+ {
101
+ control: form.control,
102
+ name: "type",
103
+ render: ({ field: { onChange, ...field } }) => {
104
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "price-list-edit-form-type-item", children: [
105
+ /* @__PURE__ */ jsxs("div", { children: [
106
+ /* @__PURE__ */ jsx(Form.Label, { "data-testid": "price-list-edit-form-type-label", children: t("priceLists.fields.type.label") }),
107
+ /* @__PURE__ */ jsx(Form.Hint, { "data-testid": "price-list-edit-form-type-hint", children: t("priceLists.fields.type.hint") })
108
+ ] }),
109
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "price-list-edit-form-type-control", children: /* @__PURE__ */ jsxs(
110
+ RadioGroup,
111
+ {
112
+ dir: direction,
113
+ ...field,
114
+ onValueChange: onChange,
115
+ "data-testid": "price-list-edit-form-type-radio-group",
116
+ children: [
117
+ /* @__PURE__ */ jsx(
118
+ RadioGroup.ChoiceBox,
119
+ {
120
+ value: PriceListType.SALE,
121
+ label: t("priceLists.fields.type.options.sale.label"),
122
+ description: t(
123
+ "priceLists.fields.type.options.sale.description"
124
+ ),
125
+ "data-testid": "price-list-edit-form-type-option-sale"
126
+ }
127
+ ),
128
+ /* @__PURE__ */ jsx(
129
+ RadioGroup.ChoiceBox,
130
+ {
131
+ value: PriceListType.OVERRIDE,
132
+ label: t(
133
+ "priceLists.fields.type.options.override.label"
134
+ ),
135
+ description: t(
136
+ "priceLists.fields.type.options.override.description"
137
+ ),
138
+ "data-testid": "price-list-edit-form-type-option-override"
139
+ }
140
+ )
141
+ ]
142
+ }
143
+ ) }),
144
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "price-list-edit-form-type-error" })
145
+ ] });
146
+ }
147
+ }
148
+ ),
149
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
150
+ /* @__PURE__ */ jsx(
151
+ Form.Field,
152
+ {
153
+ control: form.control,
154
+ name: "status",
155
+ render: ({ field: { onChange, ...rest } }) => {
156
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "price-list-edit-form-status-item", children: [
157
+ /* @__PURE__ */ jsx(Form.Label, { "data-testid": "price-list-edit-form-status-label", children: t("priceLists.fields.status.label") }),
158
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "price-list-edit-form-status-control", children: /* @__PURE__ */ jsxs(
159
+ RadioGroup,
160
+ {
161
+ dir: direction,
162
+ onValueChange: onChange,
163
+ ...rest,
164
+ "data-testid": "price-list-edit-form-status-radio-group",
165
+ children: [
166
+ /* @__PURE__ */ jsx(
167
+ RadioGroup.ChoiceBox,
168
+ {
169
+ value: PriceListStatus.DRAFT,
170
+ label: t("priceLists.fields.status.options.draft"),
171
+ description: t(
172
+ "priceLists.fields.status.descriptions.draft"
173
+ ),
174
+ "data-testid": "price-list-edit-form-status-option-draft"
175
+ }
176
+ ),
177
+ /* @__PURE__ */ jsx(
178
+ RadioGroup.ChoiceBox,
179
+ {
180
+ value: PriceListStatus.ACTIVE,
181
+ label: t("priceLists.fields.status.options.active"),
182
+ description: t(
183
+ "priceLists.fields.status.descriptions.active"
184
+ ),
185
+ "data-testid": "price-list-edit-form-status-option-active"
186
+ }
187
+ )
188
+ ]
189
+ }
190
+ ) }),
191
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "price-list-edit-form-status-error" })
192
+ ] });
193
+ }
194
+ }
195
+ ),
196
+ /* @__PURE__ */ jsx(
197
+ Form.Field,
198
+ {
199
+ control: form.control,
200
+ name: "title",
201
+ render: ({ field }) => {
202
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "price-list-edit-form-title-item", children: [
203
+ /* @__PURE__ */ jsx(Form.Label, { "data-testid": "price-list-edit-form-title-label", children: t("fields.title") }),
204
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "price-list-edit-form-title-control", children: /* @__PURE__ */ jsx(Input, { ...field, "data-testid": "price-list-edit-form-title-input" }) }),
205
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "price-list-edit-form-title-error" })
206
+ ] });
207
+ }
208
+ }
209
+ ),
210
+ /* @__PURE__ */ jsx(
211
+ Form.Field,
212
+ {
213
+ control: form.control,
214
+ name: "description",
215
+ render: ({ field }) => {
216
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "price-list-edit-form-description-item", children: [
217
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, "data-testid": "price-list-edit-form-description-label", children: t("fields.description") }),
218
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "price-list-edit-form-description-control", children: /* @__PURE__ */ jsx(Textarea, { ...field, "data-testid": "price-list-edit-form-description-input" }) }),
219
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "price-list-edit-form-description-error" })
220
+ ] });
221
+ }
222
+ }
223
+ )
224
+ ] }),
225
+ /* @__PURE__ */ jsx(
226
+ FormExtensionZone,
227
+ {
228
+ model: "price_list",
229
+ zone: "edit",
230
+ control: form.control,
231
+ data: priceList
232
+ }
233
+ )
234
+ ] }),
235
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { className: "shrink-0", "data-testid": "price-list-edit-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
236
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": "price-list-edit-form-cancel-button", children: t("actions.cancel") }) }),
237
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, "data-testid": "price-list-edit-form-save-button", children: t("actions.save") })
238
+ ] }) })
239
+ ]
240
+ }
241
+ ) });
242
+ };
243
+
244
+ // src/pages/price-lists/[id]/edit/index.tsx
245
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
246
+ var Component = () => {
247
+ const { t } = useTranslation2();
248
+ const { id } = useParams();
249
+ const linkQuery = useLinkQuery("price_list");
250
+ const { price_list, isLoading, isError, error } = usePriceList(id, linkQuery);
251
+ const ready = !isLoading && price_list;
252
+ if (isError) {
253
+ throw error;
254
+ }
255
+ return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
256
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("priceLists.edit.header") }) }),
257
+ ready && /* @__PURE__ */ jsx2(PriceListEditForm, { priceList: price_list })
258
+ ] });
259
+ };
260
+ export {
261
+ Component
262
+ };