@mercurjs/vendor 2.3.2-canary.1 → 2.3.2-canary.3

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 (78) hide show
  1. package/dist/{[id]-4VX7CTRZ.js → [id]-3RA6ZIRC.js} +2 -1
  2. package/dist/{[id]-HDVONF6C.js → [id]-4XDMVCJV.js} +5 -1
  3. package/dist/{[id]-QGZ26C6D.js → [id]-EJMM3KYO.js} +2 -1
  4. package/dist/{[id]-RAJUZUNH.js → [id]-FFMEP35K.js} +1 -1
  5. package/dist/{[id]-J7JU4NHO.js → [id]-FJGQEQUJ.js} +7 -2
  6. package/dist/{[id]-6FEVCKQU.js → [id]-GTZJPQTI.js} +7 -1
  7. package/dist/{[id]-VECAKEQ3.js → [id]-IA4BUZQV.js} +3 -1
  8. package/dist/{[id]-HAJ3735Z.js → [id]-MXOPY6G5.js} +9 -4
  9. package/dist/{[id]-Y4HRAAV2.js → [id]-R67KMXFA.js} +7 -3
  10. package/dist/{[id]-5FP6JZM3.js → [id]-SIY5USJF.js} +4 -4
  11. package/dist/{[id]-JXASIBQM.js → [id]-VJQTBSXS.js} +3 -1
  12. package/dist/{[id]-C7IFTDTJ.js → [id]-VQ4CWKQS.js} +2 -1
  13. package/dist/{[id]-S4XLEA36.js → [id]-ZJWTSRKB.js} +2 -1
  14. package/dist/{[location_id]-OXNC5E4F.js → [location_id]-LVDP4IEU.js} +7 -1
  15. package/dist/{[province_id]-VWN4OOGM.js → [province_id]-HO33KA4A.js} +3 -3
  16. package/dist/{add-LH5PQF7R.js → add-2ODITOAL.js} +2 -2
  17. package/dist/{add-Y66CX5EI.js → add-7S4M2PHD.js} +2 -2
  18. package/dist/{add-promotions-DOJS6CEE.js → add-promotions-QTNNFJBY.js} +3 -3
  19. package/dist/{campaigns-LIPKZKI7.js → campaigns-F5XONWHD.js} +2 -2
  20. package/dist/{chunk-XWDESNAO.js → chunk-2EKWWAVT.js} +1 -1
  21. package/dist/{chunk-X4G64W5Q.js → chunk-3SB6USNR.js} +6 -3
  22. package/dist/{chunk-K2DXXPNA.js → chunk-BPLFO6FP.js} +5 -2
  23. package/dist/{chunk-43AYUDTL.js → chunk-BY6UE2E6.js} +5 -2
  24. package/dist/{chunk-BDGZ4EQO.js → chunk-CWCR5ZLS.js} +26 -5
  25. package/dist/{chunk-RBWIHKUF.js → chunk-CXAOQF6T.js} +1 -1
  26. package/dist/{chunk-IV57G2CB.js → chunk-DIIC7A2J.js} +1 -1
  27. package/dist/{chunk-FPBXQIFJ.js → chunk-DJVF754Q.js} +3 -1
  28. package/dist/{chunk-4L7NRBQ7.js → chunk-FDOJFORY.js} +1 -1
  29. package/dist/{chunk-2UJ7T3TA.js → chunk-GGTWSLOP.js} +4 -3
  30. package/dist/{chunk-T37GBZ4L.js → chunk-GW7F5VY6.js} +1 -1
  31. package/dist/{chunk-SCJBJQCL.js → chunk-K3QSFT3Y.js} +6 -2
  32. package/dist/{chunk-XHWBTV72.js → chunk-KZT5KNCW.js} +1 -1
  33. package/dist/{chunk-C5HAUJN3.js → chunk-MGU666OW.js} +1 -1
  34. package/dist/{chunk-EWJTXSKI.js → chunk-O6URKGV5.js} +95 -0
  35. package/dist/{chunk-TII3PB6X.js → chunk-OKJAQM7X.js} +3 -1
  36. package/dist/{chunk-X44P463Q.js → chunk-PXCTLUC4.js} +5 -2
  37. package/dist/{chunk-IMIPUUZG.js → chunk-QWMMXTJS.js} +5 -2
  38. package/dist/{chunk-PEXMLTJX.js → chunk-R53PVMSJ.js} +2 -1
  39. package/dist/{chunk-GYLRZXWS.js → chunk-U24WZUI6.js} +4 -2
  40. package/dist/{chunk-3JWHERV7.js → chunk-W6JA4VGA.js} +5 -2
  41. package/dist/{chunk-ZSDHFX2Q.js → chunk-XAJCJEE7.js} +4 -2
  42. package/dist/{chunk-AQT2G6K2.js → chunk-YERPSW4L.js} +1 -1
  43. package/dist/{create-A6KZEZMH.js → create-DPBYLG6E.js} +1 -1
  44. package/dist/{create-NCVZ2JM7.js → create-HBAU3ASL.js} +2 -2
  45. package/dist/{create-RVZ5RLHX.js → create-NJXDBVXF.js} +5 -5
  46. package/dist/{create-ZVGYET6W.js → create-PVDPEIQA.js} +1 -1
  47. package/dist/{create-BTODQ4T4.js → create-SK7Z6MMJ.js} +1 -1
  48. package/dist/{customer-group-detail-QCPC2YWK.js → customer-group-detail-ORI5NZ2R.js} +2 -2
  49. package/dist/{customer-groups-6WGUNFHG.js → customer-groups-RN24OFMH.js} +6 -3
  50. package/dist/{edit-F34KMSTW.js → edit-MZKTHXEK.js} +2 -2
  51. package/dist/{edit-DRT6VOAA.js → edit-OFYBI6WM.js} +1 -1
  52. package/dist/index.css +3 -0
  53. package/dist/index.js +1162 -1033
  54. package/dist/{inventory-CMIRAJJY.js → inventory-BEJYYVQP.js} +2 -2
  55. package/dist/{locations-BN2BTULF.js → locations-V4K3ZW3T.js} +2 -2
  56. package/dist/{media-WVRRRAFL.js → media-46GUVY75.js} +3 -3
  57. package/dist/{offer-detail-page-AJG6TMJC.js → offer-detail-page-2MRU2HNQ.js} +5 -2
  58. package/dist/{offer-variant-detail-page-CEOS2MVM.js → offer-variant-detail-page-SOONG4U7.js} +4 -1
  59. package/dist/{offers-63CGN6AI.js → offers-4VCSQL3K.js} +3 -3
  60. package/dist/pages/index.js +17 -17
  61. package/dist/{price-lists-U5ASDHMI.js → price-lists-U4IR3425.js} +2 -2
  62. package/dist/{product-types-CMI33S32.js → product-types-SS7BPBQH.js} +2 -2
  63. package/dist/{product-variant-detail-D73ILATK.js → product-variant-detail-XIFGH55M.js} +4 -1
  64. package/dist/{products-ZZUYHZXZ.js → products-7KCMWKIU.js} +6 -6
  65. package/dist/{profile-EU46MXFW.js → profile-2M4KL5JF.js} +1 -1
  66. package/dist/{promotions-ALWQ7J7A.js → promotions-V5T5EY7U.js} +5 -5
  67. package/dist/{register-RCIO7QRB.js → register-T2YUB5NP.js} +1 -1
  68. package/dist/{reservations-C326XEVA.js → reservations-C7ZC7XPK.js} +5 -2
  69. package/dist/{reset-password-ASLKY3GK.js → reset-password-U335V424.js} +1 -1
  70. package/dist/{return-reasons-OJG5J6H2.js → return-reasons-EQULPT57.js} +5 -2
  71. package/dist/{sales-channels-LWEVGTY6.js → sales-channels-6MGHGQFY.js} +2 -2
  72. package/dist/{sales-channels-RJLPZDOZ.js → sales-channels-ZXJKYWQW.js} +2 -2
  73. package/dist/{settings-KDM7NZLY.js → settings-HUMLDZ2O.js} +4 -4
  74. package/dist/{shipping-profiles-647FLCNK.js → shipping-profiles-BHEAMDEX.js} +2 -2
  75. package/dist/{store-V3TTFWYV.js → store-6UZNHYJZ.js} +6 -2
  76. package/dist/{tax-regions-MKEWVKZ7.js → tax-regions-X3QJ7SHM.js} +3 -3
  77. package/dist/{team-WKBFUAGW.js → team-ZPOPUKOW.js} +1 -1
  78. package/package.json +9 -8
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-INNFZYX2.js";
49
49
  import {
50
50
  ActionMenu
51
- } from "./chunk-BDGZ4EQO.js";
51
+ } from "./chunk-CWCR5ZLS.js";
52
52
  import "./chunk-LAVHRER2.js";
53
53
  import "./chunk-QHQWEERJ.js";
54
54
  import "./chunk-Y7QKP6QU.js";
@@ -454,6 +454,7 @@ var CustomerGroupRowActions = ({
454
454
  {
455
455
  actions: [
456
456
  {
457
+ permission: "customer:update",
457
458
  label: t2("actions.edit"),
458
459
  icon: /* @__PURE__ */ jsx3(PencilSquare, {}),
459
460
  to: `/customer-groups/${group.id}/edit`
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-INNFZYX2.js";
50
50
  import {
51
51
  ActionMenu
52
- } from "./chunk-BDGZ4EQO.js";
52
+ } from "./chunk-CWCR5ZLS.js";
53
53
  import "./chunk-LAVHRER2.js";
54
54
  import "./chunk-QHQWEERJ.js";
55
55
  import "./chunk-Y7QKP6QU.js";
@@ -118,6 +118,7 @@ var PriceListConfigurationSection = ({
118
118
  {
119
119
  actions: [
120
120
  {
121
+ permission: "price_list:update",
121
122
  label: t("actions.edit"),
122
123
  to: "configuration",
123
124
  icon: /* @__PURE__ */ jsx(PencilSquare, {})
@@ -172,6 +173,7 @@ var PriceListCustomerAvailabilitySection = ({
172
173
  {
173
174
  actions: [
174
175
  {
176
+ permission: "price_list:update",
175
177
  label: t("actions.edit"),
176
178
  to: "customer-availability",
177
179
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
@@ -249,6 +251,7 @@ var PriceListGeneralSection = ({
249
251
  {
250
252
  actions: [
251
253
  {
254
+ permission: "price_list:update",
252
255
  label: t("actions.edit"),
253
256
  to: "edit",
254
257
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {})
@@ -258,6 +261,7 @@ var PriceListGeneralSection = ({
258
261
  {
259
262
  actions: [
260
263
  {
264
+ permission: "price_list:delete",
261
265
  label: t("actions.delete"),
262
266
  onClick: handleDelete,
263
267
  icon: /* @__PURE__ */ jsx3(Trash, {})
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-INNFZYX2.js";
10
10
  import {
11
11
  ActionMenu
12
- } from "./chunk-BDGZ4EQO.js";
12
+ } from "./chunk-CWCR5ZLS.js";
13
13
  import "./chunk-LAVHRER2.js";
14
14
  import "./chunk-Y7QKP6QU.js";
15
15
  import "./chunk-6YQR2AWM.js";
@@ -85,6 +85,7 @@ var ReservationGeneralSection = ({
85
85
  actions: [
86
86
  {
87
87
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
88
+ permission: "reservation_item:update",
88
89
  label: t("actions.edit"),
89
90
  to: `edit`
90
91
  }
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-INNFZYX2.js";
69
69
  import {
70
70
  ActionMenu
71
- } from "./chunk-BDGZ4EQO.js";
71
+ } from "./chunk-CWCR5ZLS.js";
72
72
  import "./chunk-LAVHRER2.js";
73
73
  import "./chunk-QHQWEERJ.js";
74
74
  import "./chunk-Y7QKP6QU.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ProductGeneralSection,
3
3
  ProductMediaSection
4
- } from "./chunk-TII3PB6X.js";
4
+ } from "./chunk-OKJAQM7X.js";
5
5
  import {
6
6
  SectionRow
7
7
  } from "./chunk-4TLP3TAA.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-INNFZYX2.js";
36
36
  import {
37
37
  ActionMenu
38
- } from "./chunk-BDGZ4EQO.js";
38
+ } from "./chunk-CWCR5ZLS.js";
39
39
  import "./chunk-LAVHRER2.js";
40
40
  import "./chunk-QHQWEERJ.js";
41
41
  import "./chunk-Y7QKP6QU.js";
@@ -259,6 +259,7 @@ var ProductOrganizationSection = ({
259
259
  {
260
260
  actions: [
261
261
  {
262
+ permission: "product:update",
262
263
  label: t("actions.edit"),
263
264
  to: "organization",
264
265
  icon: /* @__PURE__ */ jsx2(PencilSquare, {})
@@ -551,6 +552,7 @@ var useColumns = (product) => {
551
552
  actions: [
552
553
  {
553
554
  icon: /* @__PURE__ */ jsx3(PencilSquare2, {}),
555
+ permission: "product:update",
554
556
  label: t("actions.edit"),
555
557
  onClick: () => navigate(
556
558
  `edit-variant?variant_id=${row.original.id}&${tableSearchParams.toString()}`,
@@ -567,6 +569,7 @@ var useColumns = (product) => {
567
569
  actions: [
568
570
  {
569
571
  icon: /* @__PURE__ */ jsx3(Trash, {}),
572
+ permission: "product:delete",
570
573
  label: t("actions.delete"),
571
574
  onClick: () => handleDelete(row.original.id, row.original.title ?? "")
572
575
  }
@@ -670,6 +673,7 @@ var ProductShippingProfileSection = ({
670
673
  {
671
674
  actions: [
672
675
  {
676
+ permission: "product:update",
673
677
  label: t("actions.edit"),
674
678
  to: "shipping-profile",
675
679
  icon: /* @__PURE__ */ jsx5(PencilSquare3, {})
@@ -720,6 +724,7 @@ var ProductSalesChannelSection = ({
720
724
  {
721
725
  actions: [
722
726
  {
727
+ permission: "product:update",
723
728
  label: t("actions.edit"),
724
729
  to: "sales-channels",
725
730
  icon: /* @__PURE__ */ jsx6(PencilSquare4, {})
@@ -44,7 +44,7 @@ import {
44
44
  } from "./chunk-INNFZYX2.js";
45
45
  import {
46
46
  ActionMenu
47
- } from "./chunk-BDGZ4EQO.js";
47
+ } from "./chunk-CWCR5ZLS.js";
48
48
  import "./chunk-LAVHRER2.js";
49
49
  import "./chunk-QHQWEERJ.js";
50
50
  import "./chunk-Y7QKP6QU.js";
@@ -135,6 +135,7 @@ var InventoryItemAttributeSection = ({
135
135
  {
136
136
  actions: [
137
137
  {
138
+ permission: "inventory_item:update",
138
139
  label: t("actions.edit"),
139
140
  to: "attributes",
140
141
  icon: /* @__PURE__ */ jsx(PencilSquare, {})
@@ -229,6 +230,7 @@ var InventoryItemGeneralSection = ({
229
230
  actions: [
230
231
  {
231
232
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
233
+ permission: "inventory_item:update",
232
234
  label: t("actions.edit"),
233
235
  to: "edit"
234
236
  }
@@ -362,6 +364,7 @@ var LocationActions = ({ level }) => {
362
364
  actions: [
363
365
  {
364
366
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
367
+ permission: "inventory_item:update",
365
368
  label: t("actions.edit"),
366
369
  to: `locations/${level.location_id}`
367
370
  }
@@ -371,6 +374,7 @@ var LocationActions = ({ level }) => {
371
374
  actions: [
372
375
  {
373
376
  icon: /* @__PURE__ */ jsx3(Trash, {}),
377
+ permission: "inventory_item:delete",
374
378
  label: t("actions.delete"),
375
379
  onClick: handleDelete,
376
380
  disabled: level.reserved_quantity > 0 || level.stocked_quantity > 0
@@ -625,6 +629,7 @@ var ReservationActions = ({
625
629
  actions: [
626
630
  {
627
631
  icon: /* @__PURE__ */ jsx8(PencilSquare4, {}),
632
+ permission: "inventory_item:update",
628
633
  label: t("actions.edit"),
629
634
  to: `/reservations/${reservation.id}/edit`
630
635
  }
@@ -634,6 +639,7 @@ var ReservationActions = ({
634
639
  actions: [
635
640
  {
636
641
  icon: /* @__PURE__ */ jsx8(Trash2, {}),
642
+ permission: "inventory_item:delete",
637
643
  label: t("actions.delete"),
638
644
  onClick: handleDelete
639
645
  }
@@ -70,7 +70,7 @@ import {
70
70
  } from "./chunk-INNFZYX2.js";
71
71
  import {
72
72
  ActionMenu
73
- } from "./chunk-BDGZ4EQO.js";
73
+ } from "./chunk-CWCR5ZLS.js";
74
74
  import "./chunk-LAVHRER2.js";
75
75
  import "./chunk-QHQWEERJ.js";
76
76
  import "./chunk-Y7QKP6QU.js";
@@ -199,6 +199,7 @@ var ProductTagGeneralSection = ({
199
199
  actions: [
200
200
  {
201
201
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
202
+ permission: "product_tag:update",
202
203
  label: t("actions.edit"),
203
204
  to: "edit"
204
205
  }
@@ -208,6 +209,7 @@ var ProductTagGeneralSection = ({
208
209
  actions: [
209
210
  {
210
211
  icon: /* @__PURE__ */ jsx(Trash, {}),
212
+ permission: "product_tag:delete",
211
213
  label: t("actions.delete"),
212
214
  onClick: handleDelete
213
215
  }
@@ -11,8 +11,8 @@ import {
11
11
  import {
12
12
  usePromotionTableColumns,
13
13
  usePromotionTableQuery
14
- } from "./chunk-AQT2G6K2.js";
15
- import "./chunk-RBWIHKUF.js";
14
+ } from "./chunk-YERPSW4L.js";
15
+ import "./chunk-CXAOQF6T.js";
16
16
  import "./chunk-JHIMVLB2.js";
17
17
  import {
18
18
  usePromotionTableFilters
@@ -20,7 +20,7 @@ import {
20
20
  import "./chunk-MDABSESI.js";
21
21
  import "./chunk-FMFVTERD.js";
22
22
  import "./chunk-PHOCVOZ5.js";
23
- import "./chunk-EWJTXSKI.js";
23
+ import "./chunk-O6URKGV5.js";
24
24
  import {
25
25
  TwoColumnPage
26
26
  } from "./chunk-YV6MK4PZ.js";
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-INNFZYX2.js";
40
40
  import {
41
41
  ActionMenu
42
- } from "./chunk-BDGZ4EQO.js";
42
+ } from "./chunk-CWCR5ZLS.js";
43
43
  import "./chunk-LAVHRER2.js";
44
44
  import "./chunk-QHQWEERJ.js";
45
45
  import "./chunk-Y7QKP6QU.js";
@@ -146,6 +146,7 @@ var CampaignBudget = ({ campaign }) => {
146
146
  actions: [
147
147
  {
148
148
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
149
+ permission: "campaign:update",
149
150
  label: t("actions.edit"),
150
151
  to: "edit-budget"
151
152
  }
@@ -189,6 +190,7 @@ var CampaignConfigurationSection = ({
189
190
  {
190
191
  actions: [
191
192
  {
193
+ permission: "campaign:update",
192
194
  label: t("actions.edit"),
193
195
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
194
196
  to: "configuration"
@@ -291,6 +293,7 @@ var CampaignGeneralSection = ({
291
293
  actions: [
292
294
  {
293
295
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
296
+ permission: "campaign:update",
294
297
  label: t("actions.edit"),
295
298
  to: `/campaigns/${campaign.id}/edit`
296
299
  }
@@ -300,6 +303,7 @@ var CampaignGeneralSection = ({
300
303
  actions: [
301
304
  {
302
305
  icon: /* @__PURE__ */ jsx3(Trash, {}),
306
+ permission: "campaign:delete",
303
307
  label: t("actions.delete"),
304
308
  onClick: handleDelete
305
309
  }
@@ -521,6 +525,7 @@ var PromotionActions = ({ promotion }) => {
521
525
  actions: [
522
526
  {
523
527
  icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
528
+ permission: "campaign:update",
524
529
  label: t("actions.edit"),
525
530
  to: `/promotions/${promotion.id}/edit`
526
531
  }
@@ -9,9 +9,9 @@ import {
9
9
  } from "./chunk-BWGPN6XV.js";
10
10
  import {
11
11
  getPromotionStatus
12
- } from "./chunk-RBWIHKUF.js";
12
+ } from "./chunk-CXAOQF6T.js";
13
13
  import "./chunk-FMFVTERD.js";
14
- import "./chunk-EWJTXSKI.js";
14
+ import "./chunk-O6URKGV5.js";
15
15
  import {
16
16
  TwoColumnPage
17
17
  } from "./chunk-YV6MK4PZ.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-INNFZYX2.js";
25
25
  import {
26
26
  ActionMenu
27
- } from "./chunk-BDGZ4EQO.js";
27
+ } from "./chunk-CWCR5ZLS.js";
28
28
  import "./chunk-LAVHRER2.js";
29
29
  import "./chunk-QHQWEERJ.js";
30
30
  import "./chunk-Y7QKP6QU.js";
@@ -103,6 +103,7 @@ var CampaignSection = ({
103
103
  const warning = campaign && promotion?.status !== "active" ? t("promotions.campaignSection.warnings.promotionMustBeActive") : campaign?.ends_at ? t("promotions.campaignSection.warnings.promotionExpires") : void 0;
104
104
  const actions = [
105
105
  {
106
+ permission: "promotion:update",
106
107
  label: t("actions.edit"),
107
108
  to: "add-to-campaign",
108
109
  icon: /* @__PURE__ */ jsx(PencilSquare, {})
@@ -196,6 +197,7 @@ var PromotionConditionsSection = ({
196
197
  actions: [
197
198
  {
198
199
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
200
+ permission: "promotion:update",
199
201
  label: t("actions.edit"),
200
202
  to: `${ruleType}/edit`
201
203
  }
@@ -339,6 +341,7 @@ var PromotionGeneralSection = ({
339
341
  actions: [
340
342
  {
341
343
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
344
+ permission: "promotion:update",
342
345
  label: t("actions.edit"),
343
346
  to: `/promotions/${promotion.id}/edit`
344
347
  }
@@ -348,6 +351,7 @@ var PromotionGeneralSection = ({
348
351
  actions: [
349
352
  {
350
353
  icon: /* @__PURE__ */ jsx3(Trash, {}),
354
+ permission: "promotion:delete",
351
355
  label: t("actions.delete"),
352
356
  onClick: handleDelete
353
357
  }
@@ -2,14 +2,14 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-SCJBJQCL.js";
5
+ } from "./chunk-K3QSFT3Y.js";
6
6
  import {
7
7
  TaxRegionTable,
8
8
  useTaxRegionTable
9
- } from "./chunk-4L7NRBQ7.js";
9
+ } from "./chunk-FDOJFORY.js";
10
10
  import {
11
11
  TaxRegionCard
12
- } from "./chunk-PEXMLTJX.js";
12
+ } from "./chunk-R53PVMSJ.js";
13
13
  import {
14
14
  getCountryProvinceObjectByIso2
15
15
  } from "./chunk-N2TQXB44.js";
@@ -35,7 +35,7 @@ import "./chunk-THHRRYRS.js";
35
35
  import {
36
36
  SingleColumnPageSkeleton
37
37
  } from "./chunk-INNFZYX2.js";
38
- import "./chunk-BDGZ4EQO.js";
38
+ import "./chunk-CWCR5ZLS.js";
39
39
  import "./chunk-LAVHRER2.js";
40
40
  import "./chunk-Y7QKP6QU.js";
41
41
  import "./chunk-6YQR2AWM.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-INNFZYX2.js";
36
36
  import {
37
37
  ActionMenu
38
- } from "./chunk-BDGZ4EQO.js";
38
+ } from "./chunk-CWCR5ZLS.js";
39
39
  import "./chunk-LAVHRER2.js";
40
40
  import "./chunk-QHQWEERJ.js";
41
41
  import "./chunk-Y7QKP6QU.js";
@@ -115,6 +115,7 @@ var ProductTypeGeneralSection = ({
115
115
  {
116
116
  actions: [
117
117
  {
118
+ permission: "product_type:update",
118
119
  label: t("actions.edit"),
119
120
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
120
121
  to: "edit"
@@ -124,6 +125,7 @@ var ProductTypeGeneralSection = ({
124
125
  {
125
126
  actions: [
126
127
  {
128
+ permission: "product_type:delete",
127
129
  label: t("actions.delete"),
128
130
  icon: /* @__PURE__ */ jsx(Trash, {}),
129
131
  onClick: handleDelete
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-INNFZYX2.js";
10
10
  import {
11
11
  ActionMenu
12
- } from "./chunk-BDGZ4EQO.js";
12
+ } from "./chunk-CWCR5ZLS.js";
13
13
  import "./chunk-LAVHRER2.js";
14
14
  import "./chunk-Y7QKP6QU.js";
15
15
  import {
@@ -96,6 +96,7 @@ var ShippingProfileGeneralSection = ({
96
96
  actions: [
97
97
  {
98
98
  icon: /* @__PURE__ */ jsx(Trash, {}),
99
+ permission: "shipping_profile:delete",
99
100
  label: t("actions.delete"),
100
101
  onClick: handleDelete
101
102
  }
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-INNFZYX2.js";
37
37
  import {
38
38
  ActionMenu
39
- } from "./chunk-BDGZ4EQO.js";
39
+ } from "./chunk-CWCR5ZLS.js";
40
40
  import "./chunk-LAVHRER2.js";
41
41
  import "./chunk-QHQWEERJ.js";
42
42
  import "./chunk-Y7QKP6QU.js";
@@ -379,6 +379,7 @@ var ProductActions = ({
379
379
  actions: [
380
380
  {
381
381
  icon: /* @__PURE__ */ jsx4(PencilSquare, {}),
382
+ permission: "product_collection:update",
382
383
  label: t("actions.edit"),
383
384
  to: `/products/${product.id}/edit`
384
385
  }
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-INNFZYX2.js";
37
37
  import {
38
38
  ActionMenu
39
- } from "./chunk-BDGZ4EQO.js";
39
+ } from "./chunk-CWCR5ZLS.js";
40
40
  import "./chunk-LAVHRER2.js";
41
41
  import "./chunk-Y7QKP6QU.js";
42
42
  import {
@@ -210,6 +210,7 @@ function ShippingOption({
210
210
  {
211
211
  actions: [
212
212
  {
213
+ permission: "stock_location:delete",
213
214
  label: t("actions.delete"),
214
215
  icon: /* @__PURE__ */ jsx(Trash, {}),
215
216
  onClick: handleDelete
@@ -386,6 +387,7 @@ function ServiceZone({
386
387
  {
387
388
  actions: [
388
389
  {
390
+ permission: "stock_location:update",
389
391
  label: t("actions.edit"),
390
392
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
391
393
  to: `/settings/locations/${locationId}/fulfillment-set/${fulfillmentSetId}/service-zone/${zone.id}/edit`
@@ -400,6 +402,7 @@ function ServiceZone({
400
402
  {
401
403
  actions: [
402
404
  {
405
+ permission: "stock_location:delete",
403
406
  label: t("actions.delete"),
404
407
  icon: /* @__PURE__ */ jsx(Trash, {}),
405
408
  onClick: handleDelete
@@ -573,6 +576,7 @@ var Actions = ({ location }) => {
573
576
  actions: [
574
577
  {
575
578
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
579
+ permission: "stock_location:update",
576
580
  label: t("actions.edit"),
577
581
  to: `edit`
578
582
  },
@@ -587,6 +591,7 @@ var Actions = ({ location }) => {
587
591
  actions: [
588
592
  {
589
593
  icon: /* @__PURE__ */ jsx(Trash, {}),
594
+ permission: "stock_location:delete",
590
595
  label: t("actions.delete"),
591
596
  onClick: handleDelete
592
597
  }
@@ -617,6 +622,7 @@ function LocationsFulfillmentProvidersSection({
617
622
  {
618
623
  actions: [
619
624
  {
625
+ permission: "stock_location:update",
620
626
  label: t("actions.edit"),
621
627
  to: "fulfillment-providers",
622
628
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
@@ -2,10 +2,10 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-SCJBJQCL.js";
5
+ } from "./chunk-K3QSFT3Y.js";
6
6
  import {
7
7
  TaxRegionCard
8
- } from "./chunk-PEXMLTJX.js";
8
+ } from "./chunk-R53PVMSJ.js";
9
9
  import {
10
10
  getProvinceByIso2,
11
11
  isProvinceInCountry
@@ -27,7 +27,7 @@ import "./chunk-THHRRYRS.js";
27
27
  import {
28
28
  SingleColumnPageSkeleton
29
29
  } from "./chunk-INNFZYX2.js";
30
- import "./chunk-BDGZ4EQO.js";
30
+ import "./chunk-CWCR5ZLS.js";
31
31
  import "./chunk-LAVHRER2.js";
32
32
  import "./chunk-Y7QKP6QU.js";
33
33
  import "./chunk-6YQR2AWM.js";
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-432S4FGR.js";
5
5
  import {
6
6
  DataTable
7
- } from "./chunk-IV57G2CB.js";
7
+ } from "./chunk-DIIC7A2J.js";
8
8
  import {
9
9
  useAttributeTableFilters,
10
10
  useAttributeTableQuery
@@ -27,7 +27,7 @@ import "./chunk-LRD242C7.js";
27
27
  import {
28
28
  require_dist
29
29
  } from "./chunk-JEHVUKYB.js";
30
- import "./chunk-BDGZ4EQO.js";
30
+ import "./chunk-CWCR5ZLS.js";
31
31
  import "./chunk-LAVHRER2.js";
32
32
  import "./chunk-QHQWEERJ.js";
33
33
  import "./chunk-Y7QKP6QU.js";
@@ -11,7 +11,7 @@ import {
11
11
  useOfferTableColumns,
12
12
  useOfferTableFilters,
13
13
  useOfferTableQuery
14
- } from "./chunk-ZSDHFX2Q.js";
14
+ } from "./chunk-XAJCJEE7.js";
15
15
  import "./chunk-5ZHZVKNQ.js";
16
16
  import "./chunk-6XMUN2BZ.js";
17
17
  import "./chunk-5PF67VIS.js";
@@ -45,7 +45,7 @@ import "./chunk-LRD242C7.js";
45
45
  import "./chunk-JEHVUKYB.js";
46
46
  import "./chunk-WIYFXWRI.js";
47
47
  import "./chunk-INNFZYX2.js";
48
- import "./chunk-BDGZ4EQO.js";
48
+ import "./chunk-CWCR5ZLS.js";
49
49
  import "./chunk-LAVHRER2.js";
50
50
  import "./chunk-QHQWEERJ.js";
51
51
  import "./chunk-Y7QKP6QU.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-AQT2G6K2.js";
5
- import "./chunk-RBWIHKUF.js";
4
+ } from "./chunk-YERPSW4L.js";
5
+ import "./chunk-CXAOQF6T.js";
6
6
  import "./chunk-JHIMVLB2.js";
7
7
  import {
8
8
  usePromotionTableFilters
@@ -10,7 +10,7 @@ import {
10
10
  import "./chunk-MDABSESI.js";
11
11
  import "./chunk-FMFVTERD.js";
12
12
  import "./chunk-PHOCVOZ5.js";
13
- import "./chunk-EWJTXSKI.js";
13
+ import "./chunk-O6URKGV5.js";
14
14
  import "./chunk-TKGWSUEI.js";
15
15
  import {
16
16
  KeyboundForm
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CampaignListPage
3
- } from "./chunk-X44P463Q.js";
3
+ } from "./chunk-PXCTLUC4.js";
4
4
  import "./chunk-5RWK4U4V.js";
5
5
  import "./chunk-WP3B4NEU.js";
6
6
  import "./chunk-WW2XYOHJ.js";
@@ -16,7 +16,7 @@ import "./chunk-3EF54XFY.js";
16
16
  import "./chunk-THHRRYRS.js";
17
17
  import "./chunk-LRD242C7.js";
18
18
  import "./chunk-INNFZYX2.js";
19
- import "./chunk-BDGZ4EQO.js";
19
+ import "./chunk-CWCR5ZLS.js";
20
20
  import "./chunk-LAVHRER2.js";
21
21
  import "./chunk-QHQWEERJ.js";
22
22
  import "./chunk-Y7QKP6QU.js";
@@ -4,7 +4,7 @@ import {
4
4
  OfferListHeader,
5
5
  OfferListTable,
6
6
  OfferListTitle
7
- } from "./chunk-ZSDHFX2Q.js";
7
+ } from "./chunk-XAJCJEE7.js";
8
8
  import {
9
9
  SingleColumnPage
10
10
  } from "./chunk-YV6MK4PZ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-AQT2G6K2.js";
4
+ } from "./chunk-YERPSW4L.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-J75EFK5A.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-6GQLSWOO.js";
15
15
  import {
16
16
  ActionMenu
17
- } from "./chunk-BDGZ4EQO.js";
17
+ } from "./chunk-CWCR5ZLS.js";
18
18
  import {
19
19
  useDeletePromotion,
20
20
  usePromotions
@@ -32,6 +32,7 @@ import { Container } from "@medusajs/ui";
32
32
  import { Children } from "react";
33
33
  import { useTranslation } from "react-i18next";
34
34
  import { Link } from "react-router-dom";
35
+ import { PermissionGuard } from "@mercurjs/dashboard-shared";
35
36
  import { Button, Heading } from "@medusajs/ui";
36
37
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
37
38
  var PromotionListTitle = () => {
@@ -40,7 +41,7 @@ var PromotionListTitle = () => {
40
41
  };
41
42
  var PromotionListCreateButton = () => {
42
43
  const { t } = useTranslation();
43
- return /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) });
44
+ return /* @__PURE__ */ jsx(PermissionGuard, { resource: "promotion", operation: "create", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) });
44
45
  };
45
46
  var PromotionListActions = ({
46
47
  children
@@ -179,11 +180,13 @@ var PromotionActions = ({
179
180
  actions: [
180
181
  {
181
182
  icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
183
+ permission: "promotion:update",
182
184
  label: t("actions.edit"),
183
185
  to: `/promotions/${promotion.id}/edit`
184
186
  },
185
187
  {
186
188
  icon: /* @__PURE__ */ jsx2(Trash, {}),
189
+ permission: "promotion:delete",
187
190
  label: t("actions.delete"),
188
191
  onClick: handleDelete
189
192
  }