@mercurjs/admin 2.2.0-canary.24 → 2.2.0-canary.27

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 (148) hide show
  1. package/dist/{add-campaign-promotions-2IOKLEMG.js → add-campaign-promotions-TSVKITKJ.js} +5 -5
  2. package/dist/{api-key-management-list-FVOOICQR.js → api-key-management-list-CUL3EU54.js} +3 -3
  3. package/dist/{attribute-create-Q3IEGYRG.js → attribute-create-VR3TJH5H.js} +14 -15
  4. package/dist/{attribute-detail-SDYWELHS.js → attribute-detail-AIARG6IK.js} +2 -2
  5. package/dist/{attribute-edit-4YPWXZRX.js → attribute-edit-3PISS3NP.js} +1 -1
  6. package/dist/{attribute-edit-possible-value-YHEWXK6L.js → attribute-edit-possible-value-QZWGVFK2.js} +1 -1
  7. package/dist/{attribute-list-HW3R6764.js → attribute-list-TH4VPJUA.js} +3 -3
  8. package/dist/{campaign-detail-5WNSQVKG.js → campaign-detail-E77T2QAI.js} +6 -6
  9. package/dist/{campaign-list-NQGNOFVZ.js → campaign-list-RSWCOH4J.js} +3 -3
  10. package/dist/{category-detail-SNN3ZBPS.js → category-detail-M7SYPDPA.js} +3 -3
  11. package/dist/{category-list-OKKJX73E.js → category-list-XAINIL74.js} +3 -3
  12. package/dist/{category-products-HTNBFHSW.js → category-products-LWPBSQMC.js} +2 -2
  13. package/dist/{chunk-RXZZEPW3.js → chunk-2KOE4QV6.js} +2 -2
  14. package/dist/{chunk-3VTAK3S6.js → chunk-3C53G3UL.js} +1 -1
  15. package/dist/{chunk-POSHDM4L.js → chunk-3C5MNNUD.js} +1 -1
  16. package/dist/{chunk-BHJFT3ST.js → chunk-3MC3ZGY2.js} +1 -1
  17. package/dist/{chunk-A3IFGUDD.js → chunk-3YVZLXH7.js} +1 -1
  18. package/dist/{chunk-PAGH4K4C.js → chunk-45HY2CTD.js} +29 -49
  19. package/dist/{chunk-ASNNJIW7.js → chunk-4INT6ILW.js} +14 -21
  20. package/dist/{chunk-FP6YPFKF.js → chunk-4KLVH4XT.js} +8 -6
  21. package/dist/{chunk-PQAEYURH.js → chunk-5AC76XY6.js} +1 -1
  22. package/dist/{chunk-S6E7XAWX.js → chunk-6ERWTLAW.js} +1 -1
  23. package/dist/{chunk-7IVRL4AF.js → chunk-7GSUDIU3.js} +1 -1
  24. package/dist/{chunk-K7EOVKKV.js → chunk-7I7FFT4A.js} +1 -1
  25. package/dist/{chunk-EAC3J2Z4.js → chunk-7JLBIALC.js} +1 -1
  26. package/dist/{chunk-Z7AXFQPD.js → chunk-CGG4U2MZ.js} +2 -2
  27. package/dist/{chunk-STPSVH3T.js → chunk-CGIVQ7D2.js} +2 -2
  28. package/dist/{chunk-22EOFXNK.js → chunk-CPL24ZKA.js} +1 -1
  29. package/dist/{chunk-CVFVEDMV.js → chunk-D6ELCGPF.js} +1 -1
  30. package/dist/{chunk-6PTZK4CH.js → chunk-DZO3C6BC.js} +1 -1
  31. package/dist/{chunk-A7JOHU6Q.js → chunk-E3O5GAYR.js} +1 -1
  32. package/dist/{chunk-FBD7WJPO.js → chunk-EWTSVKNN.js} +1 -1
  33. package/dist/{chunk-RWW3TAJQ.js → chunk-GSIFJY3P.js} +2 -2
  34. package/dist/{chunk-V3ATA433.js → chunk-GY7LZODD.js} +1 -1
  35. package/dist/{chunk-CKD5563X.js → chunk-HSNKADGW.js} +1 -1
  36. package/dist/{chunk-3ZCBTIIC.js → chunk-HTTJLQR3.js} +1 -1
  37. package/dist/{chunk-BFT3CN5L.js → chunk-HXPW7OZG.js} +1 -1
  38. package/dist/{chunk-NZOB3LPA.js → chunk-I7OXXHTR.js} +1 -1
  39. package/dist/{chunk-NQEXDLYH.js → chunk-JGCGVEFZ.js} +1 -1
  40. package/dist/{chunk-X45JKZYW.js → chunk-K5UDB76J.js} +1 -1
  41. package/dist/{chunk-NEZ35LWM.js → chunk-LC3QY7KZ.js} +1 -1
  42. package/dist/{chunk-XJ3WC4G7.js → chunk-LM6IBDJ3.js} +1 -1
  43. package/dist/{chunk-47TXYMFT.js → chunk-LMTZHAXQ.js} +1 -1
  44. package/dist/{chunk-ZIIZGCTQ.js → chunk-LOCIDCV2.js} +2 -2
  45. package/dist/{chunk-IAWZQKUH.js → chunk-LSJMVVI4.js} +1 -1
  46. package/dist/{chunk-KAAUSK5T.js → chunk-LULXENH7.js} +2 -2
  47. package/dist/{chunk-5PWXUMCA.js → chunk-M3BDFG5D.js} +1 -1
  48. package/dist/{chunk-PAEKCYFU.js → chunk-MYDNPTDK.js} +1 -1
  49. package/dist/{chunk-COP7NFSJ.js → chunk-NHBHU7X7.js} +1 -1
  50. package/dist/{chunk-MVNO35S5.js → chunk-NVBITQAB.js} +1 -1
  51. package/dist/{chunk-4FHHNYIV.js → chunk-O4XMXNZL.js} +2 -2
  52. package/dist/{chunk-LNPJFQWA.js → chunk-O5BX4VGQ.js} +1 -1
  53. package/dist/{chunk-746L7AHM.js → chunk-OQTFMCR7.js} +1 -1
  54. package/dist/{chunk-SEY52XON.js → chunk-ORWIYNP2.js} +1 -1
  55. package/dist/{chunk-4GRFDNQQ.js → chunk-P23LLUTC.js} +1 -1
  56. package/dist/{chunk-634XVU3D.js → chunk-PAYQJPGK.js} +8 -1
  57. package/dist/{chunk-CPWOVYZE.js → chunk-PJVUDTJF.js} +1 -1
  58. package/dist/{chunk-FZHLRCBV.js → chunk-PL44IXBM.js} +1 -1
  59. package/dist/{chunk-R2UDZINP.js → chunk-PSM56FCC.js} +2 -2
  60. package/dist/{chunk-IO5S4RFO.js → chunk-RF3LELGM.js} +1 -1
  61. package/dist/{chunk-LYCKVPWQ.js → chunk-RJNZPFXH.js} +4 -4
  62. package/dist/{chunk-JZBVDH6A.js → chunk-RNBZLAMF.js} +1 -1
  63. package/dist/{chunk-ORENI3LP.js → chunk-S55ACYBL.js} +1 -1
  64. package/dist/{chunk-3EQOAHVG.js → chunk-SINWGUXZ.js} +2 -2
  65. package/dist/{chunk-FCLS6CKW.js → chunk-TAKY7IW6.js} +1 -1
  66. package/dist/{chunk-KNB55WE4.js → chunk-TKFNBBX7.js} +1 -1
  67. package/dist/{chunk-MEAFCHUY.js → chunk-TLMVUH67.js} +1 -1
  68. package/dist/{chunk-7PAVVX2P.js → chunk-TY6PRG7C.js} +1 -1
  69. package/dist/{chunk-4O7GPTNJ.js → chunk-UESUZHNN.js} +1 -1
  70. package/dist/{chunk-UWKKDBBZ.js → chunk-W7ZOQUWH.js} +1 -1
  71. package/dist/{chunk-3FN3YH2F.js → chunk-X4RTQG5W.js} +1 -1
  72. package/dist/{chunk-2H3KXP53.js → chunk-XNCSX2EJ.js} +2 -2
  73. package/dist/{chunk-SMQM5N45.js → chunk-ZF75KDQ2.js} +1 -1
  74. package/dist/{chunk-KNZ6ICKB.js → chunk-ZUW6LUA4.js} +1 -1
  75. package/dist/{collection-add-products-CKF2VFVK.js → collection-add-products-JEV3HTQA.js} +2 -2
  76. package/dist/{collection-detail-UDBTTHLK.js → collection-detail-ZGKHTJ5H.js} +3 -3
  77. package/dist/{collection-list-U74G2R6W.js → collection-list-TRNIZE2V.js} +3 -3
  78. package/dist/{commission-rule-commission-edit-EAOSJNA2.js → commission-rule-commission-edit-L2F2PNRI.js} +11 -23
  79. package/dist/{commission-rule-create-X3AYVCQG.js → commission-rule-create-SCZ3PBTF.js} +50 -151
  80. package/dist/{commission-rule-detail-EITJYZG5.js → commission-rule-detail-4RULHWYE.js} +3 -3
  81. package/dist/{commission-rule-edit-FZLHYL4A.js → commission-rule-edit-W5KIEYZY.js} +16 -28
  82. package/dist/{commissions-list-TT2ITT75.js → commissions-list-QDBOLLAF.js} +5 -5
  83. package/dist/{customer-detail-3OQ7RSDN.js → customer-detail-HSVYFZN7.js} +3 -3
  84. package/dist/{customer-group-add-customers-4OAYSXWK.js → customer-group-add-customers-MOWMJ7PG.js} +2 -2
  85. package/dist/{customer-group-detail-CH4UIK3X.js → customer-group-detail-YHWFAT2F.js} +3 -3
  86. package/dist/{customer-group-list-777C2B57.js → customer-group-list-GAG6CY33.js} +3 -3
  87. package/dist/{customer-list-U7VFBV7E.js → customer-list-4Y27FCH6.js} +3 -3
  88. package/dist/{customers-add-customer-group-AZ3ILZMA.js → customers-add-customer-group-DBKMGNEY.js} +2 -2
  89. package/dist/{global-commission-edit-3CEVUAAP.js → global-commission-edit-4HDRIZSC.js} +45 -57
  90. package/dist/index.js +106 -106
  91. package/dist/{inventory-detail-W7BGKWKL.js → inventory-detail-BT3EEWZT.js} +3 -3
  92. package/dist/{inventory-list-SCRYOBZV.js → inventory-list-JCSZES64.js} +3 -3
  93. package/dist/{location-detail-GAINHCV5.js → location-detail-MPSZ6VYO.js} +2 -2
  94. package/dist/{location-fulfillment-providers-6DFBFALS.js → location-fulfillment-providers-6SHQJMAO.js} +2 -2
  95. package/dist/{location-service-zone-create-IOB7DWBR.js → location-service-zone-create-R6OUVLOC.js} +3 -3
  96. package/dist/{location-service-zone-manage-areas-CWWABV5M.js → location-service-zone-manage-areas-V5QULP5K.js} +3 -3
  97. package/dist/{marketplace-add-currencies-YVJA6G6V.js → marketplace-add-currencies-J5NZQFVS.js} +2 -2
  98. package/dist/{marketplace-detail-M7DWNMIH.js → marketplace-detail-BIYPD5HW.js} +3 -3
  99. package/dist/{offer-detail-page-2DG3W7VG.js → offer-detail-page-CHPMMAI3.js} +3 -3
  100. package/dist/{offer-variant-detail-page-U4LDYFE3.js → offer-variant-detail-page-DW4L5LZW.js} +3 -3
  101. package/dist/{offers-PYM6LQSX.js → offers-GLTALPMB.js} +2 -2
  102. package/dist/{order-create-claim-2MO3LM6J.js → order-create-claim-CQ7ECVA6.js} +2 -2
  103. package/dist/{order-create-edit-UFD26FE2.js → order-create-edit-AIE4ULOL.js} +2 -2
  104. package/dist/{order-create-exchange-4PWNGE6U.js → order-create-exchange-NUTFZBDA.js} +2 -2
  105. package/dist/{order-create-return-Y7QS52UL.js → order-create-return-LDLSBK3K.js} +2 -2
  106. package/dist/{order-detail-HPYAUA2N.js → order-detail-5AT6CB7Y.js} +3 -3
  107. package/dist/{order-edit-billing-address-5XHAAGT7.js → order-edit-billing-address-5CV6WCIA.js} +1 -1
  108. package/dist/{order-list-IVXCYRGB.js → order-list-YHFF6DGL.js} +3 -3
  109. package/dist/pages/index.d.ts +333 -333
  110. package/dist/pages/index.js +57 -57
  111. package/dist/{payout-list-7WJZFNW5.js → payout-list-OJCFABOS.js} +3 -3
  112. package/dist/{price-list-configuration-6LD6DTEQ.js → price-list-configuration-CNNPJPFF.js} +3 -3
  113. package/dist/{price-list-create-SR24HYH3.js → price-list-create-WA62TKA2.js} +4 -4
  114. package/dist/{price-list-detail-QIMJQ6DD.js → price-list-detail-GUKZPZ5N.js} +3 -3
  115. package/dist/{price-list-list-GIVZGIYW.js → price-list-list-GQ5KMQOH.js} +3 -3
  116. package/dist/{price-list-prices-add-VE5RTT5O.js → price-list-prices-add-3TR5HL2I.js} +3 -3
  117. package/dist/{product-create-LY3HDOLG.js → product-create-RLFRPP6W.js} +3 -3
  118. package/dist/{product-list-4JGMM4AF.js → product-list-33W3IZGZ.js} +3 -3
  119. package/dist/{product-media-PWPVCTC2.js → product-media-NVYHJEI3.js} +2 -2
  120. package/dist/{product-tag-detail-LPILT2ZS.js → product-tag-detail-UG55ECBZ.js} +3 -3
  121. package/dist/{product-tag-list-CK6W4LSP.js → product-tag-list-ZCXPJR6Z.js} +3 -3
  122. package/dist/{product-type-detail-KOGHJIMG.js → product-type-detail-5U53ERTD.js} +3 -3
  123. package/dist/{product-type-list-TM26QMHR.js → product-type-list-3QPADFNI.js} +3 -3
  124. package/dist/{promotion-detail-ORDL76NG.js → promotion-detail-WAGO4GG4.js} +4 -4
  125. package/dist/{promotion-list-NMD23NXJ.js → promotion-list-ONYUXHN3.js} +6 -6
  126. package/dist/{region-add-countries-5I2UDAJU.js → region-add-countries-UPRSJ6ZY.js} +2 -2
  127. package/dist/{region-create-SIB6WZPV.js → region-create-3YST5TQW.js} +2 -2
  128. package/dist/{region-detail-P2HHBYFV.js → region-detail-2HFBXNZX.js} +3 -3
  129. package/dist/{region-list-2XXKCDDX.js → region-list-Z6PIQFHM.js} +3 -3
  130. package/dist/{reservation-list-RGD6O4RY.js → reservation-list-RM6QUKG7.js} +3 -3
  131. package/dist/{reset-password-GA3NEKEX.js → reset-password-VQ5PYBJ5.js} +1 -1
  132. package/dist/{return-reason-list-2LFMI7CT.js → return-reason-list-IXHFGQUJ.js} +3 -3
  133. package/dist/{sales-channel-add-products-7ERGMGJ7.js → sales-channel-add-products-76RTGNYX.js} +2 -2
  134. package/dist/{sales-channel-detail-LWVBJCJQ.js → sales-channel-detail-QBCCXUMD.js} +3 -3
  135. package/dist/{shipping-option-type-list-QA2TA7XQ.js → shipping-option-type-list-QLBJ333L.js} +3 -3
  136. package/dist/{shipping-profiles-list-JF2SQIQ7.js → shipping-profiles-list-LI6KACDB.js} +3 -3
  137. package/dist/{store-details-CSHIHCVO.js → store-details-SNDIUE5E.js} +3 -3
  138. package/dist/{store-edit-QJXV27DI.js → store-edit-W4PB6TBU.js} +2 -2
  139. package/dist/{store-list-FGLLHZPD.js → store-list-IPMJOHOA.js} +3 -3
  140. package/dist/{tax-region-create-MS6G5YVE.js → tax-region-create-G24BSFF4.js} +1 -1
  141. package/dist/{tax-region-detail-EU5U3SFN.js → tax-region-detail-L5AKP2R6.js} +4 -4
  142. package/dist/{tax-region-list-FIBHEFVD.js → tax-region-list-6LH6TYQZ.js} +3 -3
  143. package/dist/{tax-region-province-detail-U4RULBEK.js → tax-region-province-detail-INTRLPOC.js} +3 -3
  144. package/dist/{tax-region-tax-override-create-I5FQMBBC.js → tax-region-tax-override-create-M4NJX2F4.js} +3 -3
  145. package/dist/{tax-region-tax-override-edit-4X56DGNL.js → tax-region-tax-override-edit-LMMRTZZG.js} +3 -3
  146. package/dist/{user-invite-NJZWT4M5.js → user-invite-RER7BW6S.js} +2 -2
  147. package/dist/{user-list-TR7RSGUO.js → user-list-IUJTQS5X.js} +3 -3
  148. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useDeleteCommissionRuleAction,
3
3
  useScopeReferenceNames
4
- } from "./chunk-BHJFT3ST.js";
4
+ } from "./chunk-3MC3ZGY2.js";
5
5
  import {
6
6
  formatCommissionValue,
7
7
  getIsActiveProps,
8
8
  getScopeSummary,
9
9
  getScopeTypeLabel,
10
10
  referenceIds
11
- } from "./chunk-STPSVH3T.js";
11
+ } from "./chunk-CGIVQ7D2.js";
12
12
  import {
13
13
  SectionRow
14
14
  } from "./chunk-3XPXUIK3.js";
@@ -71,21 +71,14 @@ var ScopeSection = ({ rule }) => {
71
71
  /* @__PURE__ */ jsx(
72
72
  SectionRow,
73
73
  {
74
- title: t("commissions.fields.code", "Code"),
75
- value: rule.code
76
- }
77
- ),
78
- /* @__PURE__ */ jsx(
79
- SectionRow,
80
- {
81
- title: t("commissions.rules.columns.type", "Type"),
74
+ title: t("commissions.rules.columns.type"),
82
75
  value: getScopeTypeLabel(rule.rules, t)
83
76
  }
84
77
  ),
85
78
  stores.length > 0 && /* @__PURE__ */ jsx(
86
79
  SectionRow,
87
80
  {
88
- title: t("commissions.fields.stores", "Stores"),
81
+ title: t("commissions.fields.stores"),
89
82
  value: getScopeSummary(
90
83
  (rule.rules ?? []).filter((r) => r.reference === "seller"),
91
84
  names
@@ -95,7 +88,7 @@ var ScopeSection = ({ rule }) => {
95
88
  productTypes.length > 0 && /* @__PURE__ */ jsx(
96
89
  SectionRow,
97
90
  {
98
- title: t("commissions.fields.productTypes", "Product Types"),
91
+ title: t("commissions.fields.productTypes"),
99
92
  value: getScopeSummary(
100
93
  (rule.rules ?? []).filter((r) => r.reference === "product_type"),
101
94
  names
@@ -105,7 +98,7 @@ var ScopeSection = ({ rule }) => {
105
98
  categories.length > 0 && /* @__PURE__ */ jsx(
106
99
  SectionRow,
107
100
  {
108
- title: t("commissions.fields.categories", "Categories"),
101
+ title: t("commissions.fields.categories"),
109
102
  value: getScopeSummary(
110
103
  (rule.rules ?? []).filter(
111
104
  (r) => r.reference === "product_category"
@@ -120,7 +113,7 @@ var CommissionSection = ({ rule }) => {
120
113
  const { t } = useTranslation();
121
114
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
122
115
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
123
- /* @__PURE__ */ jsx(Heading, { children: t("commissions.create.commission", "Commission") }),
116
+ /* @__PURE__ */ jsx(Heading, { children: t("commissions.create.commission") }),
124
117
  /* @__PURE__ */ jsx(
125
118
  ActionMenu,
126
119
  {
@@ -141,29 +134,29 @@ var CommissionSection = ({ rule }) => {
141
134
  /* @__PURE__ */ jsx(
142
135
  SectionRow,
143
136
  {
144
- title: t("commissions.fields.type.label", "Type"),
145
- value: rule.type === "percentage" ? t("commissions.fields.type.percentage", "Percentage") : t("commissions.fields.type.fixed", "Fixed")
137
+ title: t("commissions.fields.type.label"),
138
+ value: rule.type === "percentage" ? t("commissions.fields.type.percentage") : t("commissions.fields.type.fixed")
146
139
  }
147
140
  ),
148
141
  /* @__PURE__ */ jsx(
149
142
  SectionRow,
150
143
  {
151
- title: t("commissions.global.value", "Value"),
144
+ title: t("commissions.global.value"),
152
145
  value: formatCommissionValue(rule)
153
146
  }
154
147
  ),
155
148
  /* @__PURE__ */ jsx(
156
149
  SectionRow,
157
150
  {
158
- title: t("commissions.global.tax", "Tax"),
159
- value: rule.include_tax ? t("commissions.global.included", "Included in commission") : t("commissions.global.notIncluded", "Not included")
151
+ title: t("commissions.global.tax"),
152
+ value: rule.include_tax ? t("commissions.global.included") : t("commissions.global.notIncluded")
160
153
  }
161
154
  ),
162
155
  /* @__PURE__ */ jsx(
163
156
  SectionRow,
164
157
  {
165
- title: t("commissions.global.shipping", "Shipping"),
166
- value: rule.include_shipping ? t("commissions.global.included", "Included in commission") : t("commissions.global.notIncluded", "Not included")
158
+ title: t("commissions.global.shipping"),
159
+ value: rule.include_shipping ? t("commissions.global.included") : t("commissions.global.notIncluded")
167
160
  }
168
161
  )
169
162
  ] });
@@ -11932,9 +11932,9 @@ var en_default = {
11932
11932
  details: "Details",
11933
11933
  type: "Type"
11934
11934
  },
11935
- fillNameWarning: "Please fill in at least the name field before proceeding to Type configuration.",
11936
- possibleValuesRequired: "At least one possible value is required for this type",
11937
- categoriesRequired: "Please select at least one category, or enable the global attribute switch.",
11935
+ titleRequired: "Please enter a title",
11936
+ possibleValuesRequired: "Please add at least one value",
11937
+ categoriesRequired: "Please select at least one category",
11938
11938
  successToast: 'Attribute "{{name}}" was successfully created.'
11939
11939
  },
11940
11940
  edit: {
@@ -12277,6 +12277,8 @@ var en_default = {
12277
12277
  selectValues: "Select Values"
12278
12278
  },
12279
12279
  fields: {
12280
+ yes: "Yes",
12281
+ no: "No",
12280
12282
  amount: "Amount",
12281
12283
  reference: "Reference",
12282
12284
  reference_id: "Reference ID",
@@ -12691,6 +12693,7 @@ var en_default = {
12691
12693
  fields: {
12692
12694
  code: "Code",
12693
12695
  value: "Value",
12696
+ status: "Status",
12694
12697
  enabled: "Enabled",
12695
12698
  enabledHint: "Enable or disable this commission rule.",
12696
12699
  stores: "Stores",
@@ -12746,7 +12749,7 @@ var en_default = {
12746
12749
  },
12747
12750
  empty: {
12748
12751
  heading: "No commission rules yet",
12749
- description: "Create a commission rule to override the global commission for specific stores, product types, or categories."
12752
+ description: "Create a commission rule to override the global commission for\nspecific stores, product types, or categories."
12750
12753
  }
12751
12754
  },
12752
12755
  status: {
@@ -33639,8 +33642,7 @@ var pl_default = {
33639
33642
  details: "Szczeg\xF3\u0142y",
33640
33643
  type: "Typ"
33641
33644
  },
33642
- fillNameWarning: "Wype\u0142nij przynajmniej pole nazwy przed przej\u015Bciem do konfiguracji typu.",
33643
- possibleValuesRequired: "Dla tego typu wymagana jest co najmniej jedna mo\u017Cliwa warto\u015B\u0107",
33645
+ possibleValuesRequired: "Dodaj co najmniej jedn\u0105 warto\u015B\u0107",
33644
33646
  successToast: 'Atrybut "{{name}}" zosta\u0142 pomy\u015Blnie utworzony.'
33645
33647
  },
33646
33648
  edit: {
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-NQEXDLYH.js";
13
+ } from "./chunk-JGCGVEFZ.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-NQEXDLYH.js";
16
+ } from "./chunk-JGCGVEFZ.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  _DataTable,
21
21
  useDataTable
22
- } from "./chunk-NQEXDLYH.js";
22
+ } from "./chunk-JGCGVEFZ.js";
23
23
  import {
24
24
  TabbedForm,
25
25
  defineTabMeta,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-FP6YPFKF.js";
3
+ } from "./chunk-4KLVH4XT.js";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var getPromotionStatusMap = () => ({
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-NQEXDLYH.js";
16
+ } from "./chunk-JGCGVEFZ.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PriceListCustomerGroupRuleForm
3
- } from "./chunk-A3IFGUDD.js";
3
+ } from "./chunk-3YVZLXH7.js";
4
4
  import {
5
5
  PriceListCreateProductsSchema,
6
6
  PriceListRulesSchema,
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  _DataTable,
25
25
  useDataTable
26
- } from "./chunk-NQEXDLYH.js";
26
+ } from "./chunk-JGCGVEFZ.js";
27
27
  import {
28
28
  TabbedForm,
29
29
  defineTabMeta,
@@ -87,10 +87,10 @@ var formatCommissionValue = (rate) => {
87
87
  };
88
88
  var getIsActiveProps = (isEnabled, t) => isEnabled ? {
89
89
  color: "green",
90
- label: t("commissions.status.enabled", "Active")
90
+ label: t("commissions.status.enabled")
91
91
  } : {
92
92
  color: "red",
93
- label: t("commissions.status.disabled", "Inactive")
93
+ label: t("commissions.status.disabled")
94
94
  };
95
95
  var buildValuesPayload = (currencies, fixedValues = {}) => currencies.map((code) => ({
96
96
  currency_code: code,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  _DataTable,
6
6
  useDataTable
7
- } from "./chunk-NQEXDLYH.js";
7
+ } from "./chunk-JGCGVEFZ.js";
8
8
  import {
9
9
  useAttributeTableFilters
10
10
  } from "./chunk-RT6L7JXU.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  _DataTable,
3
3
  useDataTable
4
- } from "./chunk-NQEXDLYH.js";
4
+ } from "./chunk-JGCGVEFZ.js";
5
5
  import {
6
6
  SingleColumnPage
7
7
  } from "./chunk-H6MYB7GB.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  _DataTable,
10
10
  useDataTable
11
- } from "./chunk-NQEXDLYH.js";
11
+ } from "./chunk-JGCGVEFZ.js";
12
12
  import {
13
13
  SingleColumnPage
14
14
  } from "./chunk-H6MYB7GB.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  _DataTable,
18
18
  useDataTable
19
- } from "./chunk-NQEXDLYH.js";
19
+ } from "./chunk-JGCGVEFZ.js";
20
20
  import {
21
21
  SingleColumnPage
22
22
  } from "./chunk-H6MYB7GB.js";
@@ -2,11 +2,11 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-3FN3YH2F.js";
5
+ } from "./chunk-X4RTQG5W.js";
6
6
  import {
7
7
  TaxRegionTable,
8
8
  useTaxRegionTable
9
- } from "./chunk-COP7NFSJ.js";
9
+ } from "./chunk-NHBHU7X7.js";
10
10
  import {
11
11
  TaxRegionCard
12
12
  } from "./chunk-Q2ULPJJ6.js";
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  _DataTable,
39
39
  useDataTable
40
- } from "./chunk-NQEXDLYH.js";
40
+ } from "./chunk-JGCGVEFZ.js";
41
41
  import {
42
42
  StackedDrawer,
43
43
  StackedFocusModal
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  _DataTable,
6
6
  useDataTable
7
- } from "./chunk-NQEXDLYH.js";
7
+ } from "./chunk-JGCGVEFZ.js";
8
8
  import {
9
9
  SingleColumnPage
10
10
  } from "./chunk-H6MYB7GB.js";
@@ -10,7 +10,7 @@ import {
10
10
  decorateVariantsWithDefaultValues,
11
11
  generateVariantsFromAttributes,
12
12
  normalizeProductFormValues
13
- } from "./chunk-5PWXUMCA.js";
13
+ } from "./chunk-M3BDFG5D.js";
14
14
  import {
15
15
  HandleInput
16
16
  } from "./chunk-HJ56YXBU.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-NQEXDLYH.js";
16
+ } from "./chunk-JGCGVEFZ.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  NoRecords,
10
10
  NoResults
11
- } from "./chunk-634XVU3D.js";
11
+ } from "./chunk-PAYQJPGK.js";
12
12
  import {
13
13
  useDate
14
14
  } from "./chunk-UZWFZMOX.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  _DataTable,
14
14
  useDataTable
15
- } from "./chunk-NQEXDLYH.js";
15
+ } from "./chunk-JGCGVEFZ.js";
16
16
  import {
17
17
  currencies
18
18
  } from "./chunk-IQPN4PZJ.js";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
14
- } from "./chunk-NQEXDLYH.js";
14
+ } from "./chunk-JGCGVEFZ.js";
15
15
  import {
16
16
  SingleColumnPage
17
17
  } from "./chunk-H6MYB7GB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TaxRegionTable,
3
3
  useTaxRegionTable
4
- } from "./chunk-COP7NFSJ.js";
4
+ } from "./chunk-NHBHU7X7.js";
5
5
  import {
6
6
  useTaxRegionTableQuery
7
7
  } from "./chunk-AYVH6Q5O.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-7PAVVX2P.js";
4
+ } from "./chunk-TY6PRG7C.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
8
8
  import {
9
9
  _DataTable,
10
10
  useDataTable
11
- } from "./chunk-NQEXDLYH.js";
11
+ } from "./chunk-JGCGVEFZ.js";
12
12
  import {
13
13
  SingleColumnPage
14
14
  } from "./chunk-H6MYB7GB.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-NQEXDLYH.js";
13
+ } from "./chunk-JGCGVEFZ.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -31,10 +31,10 @@ import {
31
31
  import {
32
32
  _DataTable,
33
33
  useDataTable
34
- } from "./chunk-NQEXDLYH.js";
34
+ } from "./chunk-JGCGVEFZ.js";
35
35
  import {
36
36
  NoRecords
37
- } from "./chunk-634XVU3D.js";
37
+ } from "./chunk-PAYQJPGK.js";
38
38
  import {
39
39
  currencies
40
40
  } from "./chunk-IQPN4PZJ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AJLGY3LQ.js";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-FP6YPFKF.js";
6
+ } from "./chunk-4KLVH4XT.js";
7
7
 
8
8
  // src/pages/products/product-create/constants.ts
9
9
  import { z } from "zod";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-NQEXDLYH.js";
13
+ } from "./chunk-JGCGVEFZ.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  NoRecords,
10
10
  NoResults
11
- } from "./chunk-634XVU3D.js";
11
+ } from "./chunk-PAYQJPGK.js";
12
12
  import {
13
13
  TableFooterSkeleton
14
14
  } from "./chunk-INNFZYX2.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  NoRecords
13
- } from "./chunk-634XVU3D.js";
13
+ } from "./chunk-PAYQJPGK.js";
14
14
  import {
15
15
  ActionMenu
16
16
  } from "./chunk-BDGZ4EQO.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  _DataTable,
9
9
  useDataTable
10
- } from "./chunk-NQEXDLYH.js";
10
+ } from "./chunk-JGCGVEFZ.js";
11
11
  import {
12
12
  SingleColumnPage
13
13
  } from "./chunk-H6MYB7GB.js";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  _DataTable,
28
28
  useDataTable
29
- } from "./chunk-NQEXDLYH.js";
29
+ } from "./chunk-JGCGVEFZ.js";
30
30
  import {
31
31
  TwoColumnPage
32
32
  } from "./chunk-E74OUNA3.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-JRTZWK77.js";
23
23
  import {
24
24
  NoRecords
25
- } from "./chunk-634XVU3D.js";
25
+ } from "./chunk-PAYQJPGK.js";
26
26
  import {
27
27
  TwoColumnPage
28
28
  } from "./chunk-E74OUNA3.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  _DataTable,
16
16
  useDataTable
17
- } from "./chunk-NQEXDLYH.js";
17
+ } from "./chunk-JGCGVEFZ.js";
18
18
  import {
19
19
  SingleColumnPage
20
20
  } from "./chunk-H6MYB7GB.js";
@@ -48,7 +48,14 @@ var NoRecords = ({
48
48
  icon,
49
49
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-y-1", children: [
50
50
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: title ?? t("general.noRecordsTitle") }),
51
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-muted", children: message ?? t("general.noRecordsMessage") })
51
+ /* @__PURE__ */ jsx(
52
+ Text,
53
+ {
54
+ size: "small",
55
+ className: "text-ui-fg-muted whitespace-pre-line text-center",
56
+ children: message ?? t("general.noRecordsMessage")
57
+ }
58
+ )
52
59
  ] })
53
60
  ] }),
54
61
  buttonVariant === "default" && /* @__PURE__ */ jsx(DefaultButton, { action }),
@@ -72,7 +72,7 @@ import {
72
72
  import {
73
73
  _DataTable,
74
74
  useDataTable
75
- } from "./chunk-NQEXDLYH.js";
75
+ } from "./chunk-JGCGVEFZ.js";
76
76
  import {
77
77
  TwoColumnPage
78
78
  } from "./chunk-E74OUNA3.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
13
- } from "./chunk-NQEXDLYH.js";
13
+ } from "./chunk-JGCGVEFZ.js";
14
14
  import {
15
15
  SingleColumnPage
16
16
  } from "./chunk-H6MYB7GB.js";
@@ -30,10 +30,10 @@ import {
30
30
  import {
31
31
  _DataTable,
32
32
  useDataTable
33
- } from "./chunk-NQEXDLYH.js";
33
+ } from "./chunk-JGCGVEFZ.js";
34
34
  import {
35
35
  NoRecords
36
- } from "./chunk-634XVU3D.js";
36
+ } from "./chunk-PAYQJPGK.js";
37
37
  import {
38
38
  TwoColumnPage
39
39
  } from "./chunk-E74OUNA3.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  _DataTable,
24
24
  useDataTable
25
- } from "./chunk-NQEXDLYH.js";
25
+ } from "./chunk-JGCGVEFZ.js";
26
26
  import {
27
27
  TwoColumnPage
28
28
  } from "./chunk-E74OUNA3.js";
@@ -15,8 +15,8 @@ var ATTRIBUTE_TYPE_OPTIONS = [
15
15
  import_types.AttributeType.TOGGLE,
16
16
  import_types.AttributeType.TEXT
17
17
  ];
18
- var CreateAttributeSchema = z.object({
19
- name: z.string().min(1),
18
+ var createAttributeSchema = (t) => z.object({
19
+ name: z.string().min(1, { message: t("attributes.create.titleRequired") }),
20
20
  description: z.string().max(250).optional(),
21
21
  handle: z.string().optional(),
22
22
  is_filterable: z.boolean().default(false),
@@ -52,7 +52,7 @@ var CreateAttributeSchema = z.object({
52
52
  if (!data.is_global && (data.category_ids ?? []).length === 0) {
53
53
  ctx.addIssue({
54
54
  code: z.ZodIssueCode.custom,
55
- message: "attributes.create.categoriesRequired",
55
+ message: t("attributes.create.categoriesRequired"),
56
56
  path: ["category_ids"]
57
57
  });
58
58
  }
@@ -81,7 +81,7 @@ var UpdatePossibleValueSchema = z.object({
81
81
 
82
82
  export {
83
83
  ATTRIBUTE_TYPE_OPTIONS,
84
- CreateAttributeSchema,
84
+ createAttributeSchema,
85
85
  UpdateAttributeSchema,
86
86
  UpdatePossibleValueSchema
87
87
  };
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-NQEXDLYH.js";
16
+ } from "./chunk-JGCGVEFZ.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-NQEXDLYH.js";
16
+ } from "./chunk-JGCGVEFZ.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";