@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,6 +1,3 @@
1
- import {
2
- isProductRow
3
- } from "./chunk-BNOKKKUU.js";
4
1
  import {
5
2
  DataGrid,
6
3
  createDataGridHelper,
@@ -11,7 +8,7 @@ import {
11
8
  } from "./chunk-WIYFXWRI.js";
12
9
  import {
13
10
  useRegions
14
- } from "./chunk-RLRWDHME.js";
11
+ } from "./chunk-7LIENHWP.js";
15
12
  import {
16
13
  usePricePreferences
17
14
  } from "./chunk-BHEU34FL.js";
@@ -67,53 +64,63 @@ var usePriceListCurrencyData = () => {
67
64
  // src/pages/price-lists/common/hooks/use-price-list-grid-columns.tsx
68
65
  import { useMemo } from "react";
69
66
  import { useTranslation } from "react-i18next";
67
+ import {
68
+ isPriceListGroupRow
69
+ } from "@mercurjs/dashboard-shared";
70
70
  import { jsx, jsxs } from "react/jsx-runtime";
71
71
  var columnHelper = createDataGridHelper();
72
72
  var usePriceListGridColumns = ({
73
73
  currencies = [],
74
- regions: _regions = [],
74
+ regions = [],
75
75
  pricePreferences = []
76
76
  }) => {
77
77
  const { t } = useTranslation();
78
78
  const colDefs = useMemo(() => {
79
79
  return [
80
80
  columnHelper.column({
81
- id: t("fields.title"),
82
- header: t("fields.title"),
81
+ id: t("priceLists.fields.offerVariant"),
82
+ header: t("priceLists.fields.offerVariant"),
83
83
  cell: (context) => {
84
- const entity = context.row.original;
85
- if (isProductRow(entity)) {
84
+ const row = context.row.original;
85
+ if (isPriceListGroupRow(row)) {
86
86
  return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center gap-x-2 overflow-hidden", children: [
87
- /* @__PURE__ */ jsx(Thumbnail, { src: entity.thumbnail, size: "small" }),
88
- /* @__PURE__ */ jsx("span", { className: "truncate", children: entity.title })
87
+ /* @__PURE__ */ jsx(Thumbnail, { src: row.product_thumbnail, size: "small" }),
88
+ /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: row.product_title })
89
89
  ] }) });
90
90
  }
91
- return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, color: "normal", children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center gap-x-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: entity.title }) }) });
91
+ return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, color: "normal", children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center gap-x-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: row.variant_title }) }) });
92
92
  },
93
93
  disableHiding: true
94
94
  }),
95
+ columnHelper.column({
96
+ id: "offer_sku",
97
+ name: t("fields.sku"),
98
+ header: t("fields.sku"),
99
+ cell: (context) => {
100
+ const row = context.row.original;
101
+ const sku = isPriceListGroupRow(row) ? "" : row.sku;
102
+ return /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, children: /* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle truncate", children: sku }) });
103
+ }
104
+ }),
95
105
  ...createDataGridPriceColumns({
96
106
  currencies,
107
+ regions,
97
108
  pricePreferences,
98
- isReadyOnly: (context) => {
99
- const entity = context.row.original;
100
- return isProductRow(entity);
101
- },
109
+ isReadyOnly: (context) => isPriceListGroupRow(context.row.original),
102
110
  getFieldName: (context, value) => {
103
- const entity = context.row.original;
104
- if (isProductRow(entity)) {
111
+ const row = context.row.original;
112
+ if (isPriceListGroupRow(row)) {
105
113
  return null;
106
114
  }
107
115
  if (context.column.id?.startsWith("currency_prices")) {
108
- return `products.${entity.product_id}.variants.${entity.id}.currency_prices.${value}.amount`;
116
+ return `offers.${row.offer_id}.currency_prices.${value}.amount`;
109
117
  }
110
- return `products.${entity.product_id}.variants.${entity.id}.region_prices.${value}.amount`;
118
+ return `offers.${row.offer_id}.region_prices.${value}.amount`;
111
119
  },
112
- t,
113
- showCurrentPriceCell: true
120
+ t
114
121
  })
115
122
  ];
116
- }, [t, currencies, pricePreferences]);
123
+ }, [t, currencies, regions, pricePreferences]);
117
124
  return colDefs;
118
125
  };
119
126
 
@@ -144,6 +151,12 @@ var PriceListCreateProductsSchema = z.record(
144
151
  variants: PriceListCreateProductVariantsSchema
145
152
  })
146
153
  );
154
+ var PriceListCreateOfferSchema = z.object({
155
+ variant_id: z.string(),
156
+ currency_prices: z.record(PriceListCreateCurrencyPriceSchema.optional()),
157
+ region_prices: z.record(PriceListCreateRegionPriceSchema.optional())
158
+ });
159
+ var PriceListCreateOffersSchema = z.record(PriceListCreateOfferSchema);
147
160
  var PriceListUpdateCurrencyPriceSchema = z.object({
148
161
  amount: z.string().or(z.number()).optional(),
149
162
  id: z.string().nullish()
@@ -163,11 +176,17 @@ var PriceListUpdateProductsSchema = z.record(
163
176
  variants: PriceListUpdateProductVariantsSchema
164
177
  })
165
178
  );
179
+ var PriceListUpdateOfferSchema = z.object({
180
+ variant_id: z.string(),
181
+ currency_prices: z.record(PriceListUpdateCurrencyPriceSchema.optional()),
182
+ region_prices: z.record(PriceListUpdateRegionPriceSchema.optional())
183
+ });
184
+ var PriceListUpdateOffersSchema = z.record(PriceListUpdateOfferSchema);
166
185
 
167
186
  export {
168
187
  usePriceListCurrencyData,
169
188
  usePriceListGridColumns,
170
189
  PriceListRulesSchema,
171
- PriceListCreateProductsSchema,
172
- PriceListUpdateProductsSchema
190
+ PriceListCreateOffersSchema,
191
+ PriceListUpdateOffersSchema
173
192
  };
@@ -13561,7 +13561,11 @@ var en_default = {
13561
13561
  requiresShipping: "Requires shipping",
13562
13562
  requiresShippingHint: "Does the inventory item require shipping?",
13563
13563
  descriptionPlaceholder: "The item description",
13564
- successToast: "Inventory item was successfully created."
13564
+ successToast: "Inventory item was successfully created.",
13565
+ errors: {
13566
+ titleRequired: "Please enter a title"
13567
+ },
13568
+ attributesHint: "These are default values used to describe the item. They are not defined by Marketplace."
13565
13569
  },
13566
13570
  reservation: {
13567
13571
  header: "Reservation of {{itemName}}",
@@ -13582,19 +13586,34 @@ var en_default = {
13582
13586
  updateSuccessToast: "Reservation was successfully updated.",
13583
13587
  deleteSuccessToast: "Reservation was successfully deleted.",
13584
13588
  errors: {
13585
- noAvaliableQuantity: "Stock location doesn't have available quantity.",
13586
- quantityOutOfRange: "Minimum quantity is 1 and maximum quantity is {{max}}"
13587
- }
13589
+ noAvaliableQuantity: "Stock location doesn't have available quantity",
13590
+ quantityOutOfRange: "Minimum quantity is 1 and maximum quantity is {{max}}",
13591
+ idRequired: "Inventory item is required",
13592
+ selectLocation: "Please select a location",
13593
+ enterQuantity: "Please enter a quantity",
13594
+ pleaseEnterQuantity: "Please enter quantity"
13595
+ },
13596
+ deleteTitle: "Delete reservation",
13597
+ deleteDescription: "You are about to delete a reservation. This action cannot be undone.",
13598
+ deleteBlockedDescription: "This reservation cannot be deleted because it's linked to an unfulfilled order.",
13599
+ gotIt: "Got it",
13600
+ locationPlaceholder: "Select location",
13601
+ itemId: "Item ID",
13602
+ goToInventoryItem: "Go to inventory item",
13603
+ reserved: "Reserved",
13604
+ itemPlaceholder: "Select item"
13588
13605
  },
13589
13606
  adjustInventory: {
13590
13607
  errors: {
13591
- stockedQuantity: "Stocked quantity cannot be updated to less than the reserved quantity of {{quantity}}."
13608
+ stockedQuantity: "Stocked quantity cannot be updated to less than the reserved quantity of {{quantity}}.",
13609
+ enterQuantity: "Please enter quantity"
13592
13610
  }
13593
13611
  },
13594
13612
  toast: {
13595
13613
  updateLocations: "Locations updated successfully.",
13596
13614
  updateLevel: "Inventory level updated successfully.",
13597
- updateItem: "Inventory item updated successfully."
13615
+ updateItem: "Inventory item updated successfully.",
13616
+ deleteItem: "Inventory item was successfully deleted."
13598
13617
  },
13599
13618
  stock: {
13600
13619
  title: "Update inventory levels",
@@ -13605,6 +13624,30 @@ var en_default = {
13605
13624
  disablePrompt_other: "You are about to disable {{count}} location levels. This action cannot be undone.",
13606
13625
  disabledToggleTooltip: "Cannot disable: clear incoming and/or reserved quantity before disabling.",
13607
13626
  successToast: "Inventory levels updated successfully."
13627
+ },
13628
+ associatedOffers: "Associated offers",
13629
+ attributes: {
13630
+ tip: "These are default values used to describe the item. They are not managed by Marketplace."
13631
+ },
13632
+ item: {
13633
+ deleteTitle: "Delete inventory item",
13634
+ deleteDescription: "You are about to delete an inventory item. This action cannot be undone."
13635
+ },
13636
+ level: {
13637
+ deleteTitle: "Delete inventory level",
13638
+ deleteDescription: "You're about to delete inventory level from {{location}}. This will delete stock and reservations for this location and cannot be undone."
13639
+ },
13640
+ list: {
13641
+ noRecordsTitle: "No inventory items yet",
13642
+ noRecordsMessage: "Create inventory items to manage inventory"
13643
+ },
13644
+ locations: {
13645
+ noRecordsTitle: "No locations yet",
13646
+ noRecordsMessage: "Add a location to start managing stock levels"
13647
+ },
13648
+ reservations: {
13649
+ noRecordsTitle: "No reservations yet",
13650
+ noRecordsMessage: "There are no reservations to show"
13608
13651
  }
13609
13652
  },
13610
13653
  offers: {
@@ -13647,6 +13690,10 @@ var en_default = {
13647
13690
  },
13648
13691
  shipping: {
13649
13692
  successToast: "Shipping configuration was successfully updated."
13693
+ },
13694
+ inventory: {
13695
+ manageInventoryHint: "When enabled, we'll change the inventory quantity for you when orders and returns are created.",
13696
+ allowBackordersHint: "When enabled, customers can purchase the variant even if there's no available quantity."
13650
13697
  }
13651
13698
  },
13652
13699
  pricing: {
@@ -13659,7 +13706,24 @@ var en_default = {
13659
13706
  header: "Manage inventory items",
13660
13707
  description: "Attach, detach, or change the required quantity per item.",
13661
13708
  successToast: "Stock levels were successfully updated.",
13662
- empty: "No inventory items attached"
13709
+ empty: "No inventory items attached",
13710
+ itemsHeading: "Inventory items",
13711
+ kitHeading: "Inventory kit",
13712
+ defineHint: "Define inventory items required for this variant. Add multiple items to create an inventory kit.",
13713
+ itemPlaceholder: "Select inventory item",
13714
+ quantityPlaceholder: "Enter required quantity",
13715
+ manageItemsAction: "Manage inventory Items",
13716
+ manageItemsButton: "Manage inventory items",
13717
+ notManagedTitle: "Inventory is not managed",
13718
+ notManagedDesc: `Turn on "Manage Inventory" to track the variant's inventory.`,
13719
+ editVariant: "Edit variant",
13720
+ noItemsTitle: "No inventory items yet",
13721
+ noItemsDesc: "Manage inventory items required for this variant",
13722
+ itemsManageSuccessToast: "Inventory items were successfully updated.",
13723
+ validation: {
13724
+ itemId: "Please select inventory item",
13725
+ quantity: "Please enter required quantity"
13726
+ }
13663
13727
  },
13664
13728
  delete: {
13665
13729
  description: "You are about to delete offer {{sku}}. This cannot be undone.",
@@ -13700,7 +13764,10 @@ var en_default = {
13700
13764
  notEnabled: "Not enabled",
13701
13765
  enabled: "Enabled",
13702
13766
  variantsCount_one: "{{count}} variant",
13703
- variantsCount_other: "{{count}} variants"
13767
+ variantsCount_other: "{{count}} variants",
13768
+ manageInventory: "Manage inventory",
13769
+ allowBackorders: "Allow backorders",
13770
+ store: "Store"
13704
13771
  },
13705
13772
  status: {
13706
13773
  published: "Published",
@@ -15227,21 +15294,22 @@ var en_default = {
15227
15294
  scheduled: "Scheduled"
15228
15295
  },
15229
15296
  delete: {
15230
- title: "Are you sure?",
15231
- description: "You are about to delete the campaign '{{name}}'. This action cannot be undone.",
15232
- successToast: "Campaign '{{name}}' was successfully deleted."
15297
+ title: "Delete campaign",
15298
+ description: "You are about to delete a campaign {{name}}. This action cannot be undone.",
15299
+ successToast: "Campaign was successfully deleted."
15233
15300
  },
15234
15301
  edit: {
15235
15302
  header: "Edit Campaign",
15236
15303
  description: "Edit the details of the campaign.",
15237
- successToast: "Campaign '{{name}}' was successfully updated."
15304
+ successToast: "Campaign was successfully updated."
15238
15305
  },
15239
15306
  configuration: {
15240
15307
  header: "Configuration",
15308
+ expiryWarning: "The promotion will expire when campaign expires.",
15241
15309
  edit: {
15242
15310
  header: "Edit Campaign Configuration",
15243
15311
  description: "Edit the configuration of the campaign.",
15244
- successToast: "Campaign configuration was successfully updated."
15312
+ successToast: "Campaign was successfully updated."
15245
15313
  }
15246
15314
  },
15247
15315
  create: {
@@ -15249,11 +15317,18 @@ var en_default = {
15249
15317
  description: "Create a promotional campaign.",
15250
15318
  hint: "Create a promotional campaign.",
15251
15319
  header: "Create Campaign",
15252
- successToast: "Campaign '{{name}}' was successfully created."
15320
+ successToast: "Campaign was successfully created."
15321
+ },
15322
+ validation: {
15323
+ name_required: "Please enter a name",
15324
+ identifier_required: "Please enter an identifier",
15325
+ currency_required: "Please select a currency"
15253
15326
  },
15254
15327
  fields: {
15255
15328
  name: "Name",
15256
15329
  identifier: "Identifier",
15330
+ identifier_tooltip: "The identifier is your business-friendly campaign code that you use for integrations, reporting, and easily recognizing the campaign \u2013 it is not the technical ID from the database.",
15331
+ type: "Type",
15257
15332
  start_date: "Start date",
15258
15333
  end_date: "End date",
15259
15334
  total_spend: "Budget spent",
@@ -15267,16 +15342,19 @@ var en_default = {
15267
15342
  budget: {
15268
15343
  attribute: {
15269
15344
  customer_id: "customer",
15270
- customer_email: "email"
15345
+ customer_email: "email",
15346
+ promotion_code: "promotion code"
15271
15347
  },
15272
15348
  create: {
15273
15349
  hint: "Create a budget for the campaign.",
15274
15350
  header: "Campaign Budget"
15275
15351
  },
15276
- details: "Campaign budget",
15352
+ noLimitHint: "If you don't set any limits, the campaign budget will have no limit.",
15353
+ details: "Budget",
15277
15354
  fields: {
15278
15355
  type: "Type",
15279
15356
  currency: "Currency",
15357
+ selectCurrency: "Select currency",
15280
15358
  limit: "Limit",
15281
15359
  used: "Used",
15282
15360
  budgetAttribute: "Limit usage per",
@@ -15294,6 +15372,10 @@ var en_default = {
15294
15372
  title: "Usage",
15295
15373
  description: "Set a limit on how many times the promotion can be used."
15296
15374
  },
15375
+ use_by_attribute: {
15376
+ title: "Usage",
15377
+ description: "Set a limit on how many times the promotion can be used."
15378
+ },
15297
15379
  useByAttribute: {
15298
15380
  title: "Usage by attribute (customer id, email, etc.)",
15299
15381
  titleCustomerId: "Usage per customer",
@@ -15307,22 +15389,27 @@ var en_default = {
15307
15389
  },
15308
15390
  promotions: {
15309
15391
  remove: {
15310
- title: "Remove promotion from campaign",
15392
+ title: "Remove promotions",
15311
15393
  description: "You are about to remove {{count}} promotion(s) from the campaign. This action cannot be undone."
15312
15394
  },
15313
15395
  alreadyAdded: "This promotion has already been added to the campaign.",
15314
15396
  alreadyAddedDiffCampaign: "This promotion has already been added to a different campaign ({{name}}).",
15315
15397
  currencyMismatch: "Currency of the promotion and campaign doesn't match",
15316
15398
  toast: {
15317
- success: "Successfully added {{count}} promotion(s) to campaign"
15399
+ added_one: "Promotion was successfully added to campaign.",
15400
+ added_other: "Promotions were successfully added to campaign.",
15401
+ removed_one: "Promotion was successfully removed from campaign.",
15402
+ removed_other: "Promotions were successfully removed from campaign."
15318
15403
  },
15319
15404
  add: {
15405
+ tip: "You can only add promotions that are not already in another campaign.",
15320
15406
  list: {
15321
15407
  noRecordsMessage: "Create a promotion first."
15322
15408
  }
15323
15409
  },
15324
15410
  list: {
15325
- noRecordsMessage: "There are no promotions in the campaign."
15411
+ noRecordsTitle: "No promotions yet",
15412
+ noRecordsMessage: "This campaign doesn't have any promotions"
15326
15413
  }
15327
15414
  },
15328
15415
  deleteCampaignWarning: "You are about to delete the campaign {{name}}. This action cannot be undone.",
@@ -15337,10 +15424,10 @@ var en_default = {
15337
15424
  },
15338
15425
  create: {
15339
15426
  header: "Create Price List",
15340
- subheader: "Create a new price list to manage the prices of your products.",
15427
+ subheader: "Create a new price list to manage the prices of your offers.",
15341
15428
  tabs: {
15342
15429
  details: "Details",
15343
- products: "Products",
15430
+ products: "Offers",
15344
15431
  prices: "Prices"
15345
15432
  },
15346
15433
  successToast: "Price list {{title}} was successfully created.",
@@ -15348,34 +15435,52 @@ var en_default = {
15348
15435
  list: {
15349
15436
  noRecordsMessage: "Create a product first."
15350
15437
  }
15438
+ },
15439
+ validation: {
15440
+ title: "Please enter a title",
15441
+ description: "Please enter a description"
15351
15442
  }
15352
15443
  },
15353
15444
  edit: {
15354
15445
  header: "Edit Price List",
15355
- successToast: "Price list {{title}} was successfully updated."
15446
+ successToast: "Price list was successfully updated."
15356
15447
  },
15357
15448
  configuration: {
15358
15449
  header: "Configuration",
15359
15450
  edit: {
15360
15451
  header: "Edit Price List Configuration",
15361
15452
  description: "Edit the configuration of the price list.",
15362
- successToast: "Price list configuration was successfully updated."
15453
+ successToast: "Price list was successfully updated."
15454
+ }
15455
+ },
15456
+ customerAvailability: {
15457
+ header: "Customer availability",
15458
+ add: "Add customer groups",
15459
+ list: {
15460
+ noRecordsTitle: "No customer groups",
15461
+ noRecordsMessage: "Add customer groups to restrict which customers this price list applies to."
15462
+ },
15463
+ edit: {
15464
+ header: "Customer availability",
15465
+ description: "Choose which customer groups the price list should be applied to.",
15466
+ successToast: "Price list was successfully updated."
15363
15467
  }
15364
15468
  },
15365
15469
  products: {
15366
- header: "Products",
15470
+ header: "Offers",
15367
15471
  actions: {
15368
- addProducts: "Add products",
15369
- editPrices: "Edit prices"
15472
+ addProducts: "Add offers",
15473
+ editPrices: "Edit prices",
15474
+ editPricesDisabled: "Add offers before editing prices"
15370
15475
  },
15371
15476
  delete: {
15372
- confirmation_one: "You are about to delete the prices for {{count}} product in the price list. This action cannot be undone.",
15373
- confirmation_other: "You are about to delete the prices for {{count}} products in the price list. This action cannot be undone.",
15374
- successToast_one: "Successfully deleted prices for {{count}} product.",
15375
- successToast_other: "Successfully deleted prices for {{count}} products."
15477
+ confirmation_one: "You are about to remove {{count}} offer from the price list. This action cannot be undone.",
15478
+ confirmation_other: "You are about to remove {{count}} offers from the price list. This action cannot be undone.",
15479
+ successToast_one: "Successfully removed {{count}} offer from the price list.",
15480
+ successToast_other: "Successfully removed {{count}} offers from the price list."
15376
15481
  },
15377
15482
  add: {
15378
- successToast: "Prices were successfully added to the price list.",
15483
+ successToast: "Price list was successfully updated.",
15379
15484
  atLeastOnePrice: "At least one price must be added.",
15380
15485
  alreadyInPriceList: "This product is already in the price list",
15381
15486
  noVariants: "This product has no variants",
@@ -15383,7 +15488,7 @@ var en_default = {
15383
15488
  description: "Add products and set prices for the price list"
15384
15489
  },
15385
15490
  edit: {
15386
- successToast: "Prices were successfully updated.",
15491
+ successToast: "Price list was successfully updated.",
15387
15492
  title: "Edit Prices for {{title}}",
15388
15493
  description: "Update prices for products in the price list"
15389
15494
  }
@@ -15400,6 +15505,10 @@ var en_default = {
15400
15505
  draft: "Draft",
15401
15506
  expired: "Expired",
15402
15507
  scheduled: "Scheduled"
15508
+ },
15509
+ descriptions: {
15510
+ draft: "Customers will not be able to see the price list",
15511
+ active: "Customers will be able to see the price list"
15403
15512
  }
15404
15513
  },
15405
15514
  type: {
@@ -15408,7 +15517,7 @@ var en_default = {
15408
15517
  options: {
15409
15518
  sale: {
15410
15519
  label: "Sale",
15411
- description: "Sale prices are temporary price changes for products."
15520
+ description: "Sale prices are temporary price changes for offers."
15412
15521
  },
15413
15522
  override: {
15414
15523
  label: "Override",
@@ -15417,11 +15526,11 @@ var en_default = {
15417
15526
  }
15418
15527
  },
15419
15528
  startsAt: {
15420
- label: "Price list has a start date?",
15529
+ label: "Start date",
15421
15530
  hint: "Schedule the price list to activate in the future."
15422
15531
  },
15423
15532
  endsAt: {
15424
- label: "Price list has an expiry date?",
15533
+ label: "Expiry date",
15425
15534
  hint: "Schedule the price list to deactivate in the future."
15426
15535
  },
15427
15536
  customerAvailability: {
@@ -15430,6 +15539,13 @@ var en_default = {
15430
15539
  hint: "Choose which customer groups the price list should be applied to.",
15431
15540
  placeholder: "Search for customer groups",
15432
15541
  attribute: "Customer groups"
15542
+ },
15543
+ offerVariant: "Offer/Variant"
15544
+ },
15545
+ list: {
15546
+ noRecords: {
15547
+ title: "No price lists yet",
15548
+ message: "Create price lists for sales and price overrides"
15433
15549
  }
15434
15550
  }
15435
15551
  },
@@ -15445,6 +15561,51 @@ var en_default = {
15445
15561
  canceled: "Canceled"
15446
15562
  }
15447
15563
  },
15564
+ reviews: {
15565
+ domain: "Reviews",
15566
+ status: {
15567
+ pending: "Pending",
15568
+ published: "Published",
15569
+ rejected: "Rejected"
15570
+ },
15571
+ fields: {
15572
+ rating: "Rating",
15573
+ content: "Content",
15574
+ response: "Response"
15575
+ },
15576
+ filters: {
15577
+ stars_one: "{{count}} star",
15578
+ stars_other: "{{count}} stars"
15579
+ },
15580
+ list: {
15581
+ columns: {
15582
+ reviewId: "Review ID",
15583
+ rating: "Rating",
15584
+ content: "Content",
15585
+ customer: "Customer",
15586
+ date: "Date",
15587
+ status: "Status",
15588
+ response: "Response"
15589
+ },
15590
+ noRecordsTitle: "No reviews yet",
15591
+ noRecordsMessage: "Once customer submit reviews, they'll appear here",
15592
+ noResultsTitle: "No results",
15593
+ noResultsMessage: "Try changing the filters or search query"
15594
+ },
15595
+ detail: {
15596
+ customer: "Customer",
15597
+ order: "Order"
15598
+ },
15599
+ respond: {
15600
+ action: "Respond",
15601
+ header: "Respond to review",
15602
+ label: "Response",
15603
+ confirmTitle: "Respond to review",
15604
+ confirmDescription: "Your response will be published on the storefront and visible to customers. Once saved, it cannot be edited or deleted.",
15605
+ successToast: "Response was successfully sent.",
15606
+ validation: "Please write a response"
15607
+ }
15608
+ },
15448
15609
  profile: {
15449
15610
  domain: "Profile",
15450
15611
  manageYourProfileDetails: "Manage your profile details.",
@@ -15854,7 +16015,21 @@ var en_default = {
15854
16015
  reservations: {
15855
16016
  domain: "Reservations",
15856
16017
  subtitle: "Manage the reserved quantity of inventory items.",
15857
- deleteWarning: "You are about to delete a reservation. This action cannot be undone."
16018
+ deleteWarning: "You are about to delete a reservation. This action cannot be undone.",
16019
+ list: {
16020
+ noRecordsTitle: "No reservations yet",
16021
+ noRecordsMessage: "Create reservations to manage the reserved quantity of inventory items"
16022
+ },
16023
+ delete: {
16024
+ title: "Delete reservation",
16025
+ description: "You are about to delete a reservation. This action cannot be undone.",
16026
+ lockedTitle: "Delete reservation",
16027
+ lockedDescription: "This reservation cannot be deleted because it's linked to an unfulfilled order."
16028
+ },
16029
+ edit: {
16030
+ lockedTitle: "Edit reservation",
16031
+ lockedDescription: "This reservation cannot be edited because it's linked to an unfulfilled order."
16032
+ }
15858
16033
  },
15859
16034
  salesChannels: {
15860
16035
  domain: "Sales Channels",