@mercurjs/vendor 2.2.0-canary.21 → 2.2.0-canary.22

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 (44) hide show
  1. package/dist/{[id]-PD3ISUL5.js → [id]-BGVYXNSX.js} +3 -3
  2. package/dist/{[id]-ZEFQ7FQQ.js → [id]-MXNIHS2A.js} +1 -1
  3. package/dist/{[id]-FIP4UMQ4.js → [id]-NXWDM34U.js} +58 -28
  4. package/dist/{[id]-XUKQKCDN.js → [id]-W5RBRUBB.js} +2 -2
  5. package/dist/{add-GYXNRUAE.js → add-2OW5QLU2.js} +1 -1
  6. package/dist/{add-customer-groups-KIGBZT5G.js → add-customer-groups-MB2GJP77.js} +6 -1
  7. package/dist/{add-promotions-EQ5MMQKG.js → add-promotions-EEQV6QFY.js} +3 -3
  8. package/dist/{chunk-RT3G3GEK.js → chunk-5IFNEL6A.js} +1 -1
  9. package/dist/{chunk-4RFPRO2W.js → chunk-7DZCHZHR.js} +1 -1
  10. package/dist/{chunk-ZZIJSTXN.js → chunk-AYCX7QNB.js} +21 -9
  11. package/dist/{chunk-4OIOYUQE.js → chunk-BYQDKFTG.js} +3 -8
  12. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  13. package/dist/{chunk-R4JLYNUA.js → chunk-KIOTMXSI.js} +2 -2
  14. package/dist/{chunk-LRMWYKSF.js → chunk-KPF6WMZI.js} +1 -1
  15. package/dist/{chunk-3L2DVCOC.js → chunk-MDRCW3OQ.js} +1 -1
  16. package/dist/{chunk-N6MGVXXQ.js → chunk-MP2H5ZC6.js} +1 -1
  17. package/dist/{chunk-H7BVANDX.js → chunk-XCPANKUF.js} +37 -10
  18. package/dist/{collections-7M7O23NO.js → collections-C5XCGVCG.js} +1 -1
  19. package/dist/{create-NR7ULWQS.js → create-22MSY7W6.js} +1 -1
  20. package/dist/{create-SJSLOXOW.js → create-7TV3IEVG.js} +4 -4
  21. package/dist/{customer-group-add-customers-GTM556QA.js → customer-group-add-customers-QPIYYEXU.js} +1 -1
  22. package/dist/{customer-group-create-OYHAXX2T.js → customer-group-create-DQHTB3SK.js} +9 -2
  23. package/dist/{customer-group-detail-KW62TLWA.js → customer-group-detail-B446EA7L.js} +2 -2
  24. package/dist/{customer-group-edit-WH7O4N4L.js → customer-group-edit-H255WS2E.js} +2 -1
  25. package/dist/{customer-groups-UJFZBZ2B.js → customer-groups-YIEFOZ4F.js} +12 -4
  26. package/dist/{customers-4WKIFPUU.js → customers-6KNDRYB4.js} +2 -2
  27. package/dist/{edit-3EN2H52W.js → edit-CSOADLGQ.js} +1 -1
  28. package/dist/{edit-YTS77SJS.js → edit-DQFUUWUB.js} +2 -2
  29. package/dist/{edit-price-K6K2FTMF.js → edit-price-BNEAFMUE.js} +1 -0
  30. package/dist/{edit-stock-6TUSJD5R.js → edit-stock-XK6NE4NH.js} +1 -0
  31. package/dist/index.js +39 -39
  32. package/dist/{invite-VWNUFOFI.js → invite-QMJJAEB5.js} +1 -1
  33. package/dist/{media-KIIJ6WSZ.js → media-EBDOAHHL.js} +3 -3
  34. package/dist/{offer-variant-detail-page-ORH56HZI.js → offer-variant-detail-page-2X5JF5LG.js} +4 -23
  35. package/dist/pages/index.js +9 -9
  36. package/dist/{product-tags-MW2JMRFY.js → product-tags-4FHA7A6P.js} +1 -1
  37. package/dist/{products-TZS2OPK3.js → products-KNJDYGOO.js} +4 -4
  38. package/dist/{promotions-JYO23G6N.js → promotions-VCNOCGYA.js} +4 -4
  39. package/dist/{register-SR2SYX4Q.js → register-V77I2H42.js} +1 -1
  40. package/dist/{reset-password-N22YRMR3.js → reset-password-HVJ7JG6D.js} +1 -1
  41. package/dist/{return-reasons-POR5YPTF.js → return-reasons-IXSWNVGX.js} +1 -1
  42. package/dist/{settings-MHBYIZ2I.js → settings-KRUN36KA.js} +1 -1
  43. package/dist/{team-MY24J5WO.js → team-WSE7PKUH.js} +1 -1
  44. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GJM5XI3E.js";
4
4
  import {
5
5
  useCustomerTableQuery
6
- } from "./chunk-PVZBDWLK.js";
6
+ } from "./chunk-GRH7C3QN.js";
7
7
  import {
8
8
  useCustomerTableFilters
9
9
  } from "./chunk-UO6IX5Y7.js";
@@ -24,9 +24,10 @@ import { useForm } from "react-hook-form";
24
24
  import { useTranslation } from "react-i18next";
25
25
 
26
26
  // src/pages/customer-groups/customer-group-create/components/create-customer-group-form/schema.ts
27
+ import i18n from "i18next";
27
28
  import * as zod from "zod";
28
29
  var CreateCustomerGroupSchema = zod.object({
29
- name: zod.string().min(1)
30
+ name: zod.string().min(1, { message: i18n.t("customerGroups.validation.nameRequired") })
30
31
  });
31
32
 
32
33
  // src/pages/customer-groups/customer-group-create/components/create-customer-group-form/create-customer-group-form.tsx
@@ -56,7 +57,13 @@ var CreateCustomerGroupForm = () => {
56
57
  handleSuccess(`/customer-groups/${customer_group.id}`);
57
58
  },
58
59
  onError: (error) => {
59
- toast.error(error.message);
60
+ const message = error.message?.toLowerCase() ?? "";
61
+ const isDuplicate = error.status === 409 || message.includes("already exist") || message.includes("duplicate") || message.includes("unique");
62
+ toast.error(
63
+ isDuplicate ? t("customerGroups.create.alreadyExistsToast", {
64
+ name: data.name
65
+ }) : error.message
66
+ );
60
67
  }
61
68
  }
62
69
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CustomerGroupDetailPage
3
- } from "./chunk-H7BVANDX.js";
3
+ } from "./chunk-XCPANKUF.js";
4
4
  import {
5
5
  CustomerGroupDetailBreadcrumb
6
6
  } from "./chunk-GL7F6NDU.js";
@@ -8,7 +8,7 @@ import {
8
8
  CUSTOMER_GROUP_DETAIL_FIELDS
9
9
  } from "./chunk-SPFLYPY6.js";
10
10
  import "./chunk-GJM5XI3E.js";
11
- import "./chunk-PVZBDWLK.js";
11
+ import "./chunk-GRH7C3QN.js";
12
12
  import "./chunk-UO6IX5Y7.js";
13
13
  import "./chunk-SYNUA6LQ.js";
14
14
  import "./chunk-FQERBIVS.js";
@@ -26,12 +26,13 @@ import { useParams } from "react-router-dom";
26
26
  // src/pages/customer-groups/customer-group-edit/components/edit-customer-group-form/edit-customer-group-form.tsx
27
27
  import { zodResolver } from "@hookform/resolvers/zod";
28
28
  import { Button, Input, toast } from "@medusajs/ui";
29
+ import i18n from "i18next";
29
30
  import { useForm } from "react-hook-form";
30
31
  import { useTranslation } from "react-i18next";
31
32
  import * as z from "zod";
32
33
  import { jsx, jsxs } from "react/jsx-runtime";
33
34
  var EditCustomerGroupSchema = z.object({
34
- name: z.string().min(1)
35
+ name: z.string().min(1, { message: i18n.t("customerGroups.validation.nameRequired") })
35
36
  });
36
37
  var EditCustomerGroupForm = ({
37
38
  group
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CustomerGroupDetailPage
3
- } from "./chunk-H7BVANDX.js";
3
+ } from "./chunk-XCPANKUF.js";
4
4
  import "./chunk-SPFLYPY6.js";
5
5
  import {
6
6
  useCustomerGroupTableQuery
7
7
  } from "./chunk-VKOE5J66.js";
8
8
  import "./chunk-GJM5XI3E.js";
9
- import "./chunk-PVZBDWLK.js";
9
+ import "./chunk-GRH7C3QN.js";
10
10
  import {
11
11
  useCustomerGroupTableFilters
12
12
  } from "./chunk-CMHI2RPL.js";
@@ -49,7 +49,7 @@ import "./chunk-NBMM2TZK.js";
49
49
  import { Children as Children2 } from "react";
50
50
 
51
51
  // src/pages/customer-groups/customer-group-list/components/customer-group-list-table/customer-group-list-table.tsx
52
- import { PencilSquare, Trash } from "@medusajs/icons";
52
+ import { PencilSquare, Trash, UserGroup } from "@medusajs/icons";
53
53
  import { Button, Container, Heading, toast, usePrompt } from "@medusajs/ui";
54
54
  import { keepPreviousData } from "@tanstack/react-query";
55
55
  import { createColumnHelper } from "@tanstack/react-table";
@@ -94,6 +94,7 @@ var CustomerGroupListDataTable = () => {
94
94
  const { customer_groups, count, isPending, isError, error } = useCustomerGroups(
95
95
  {
96
96
  ...searchParams,
97
+ order: searchParams.order || "name",
97
98
  fields: "id,name,created_at,updated_at,customers.id"
98
99
  },
99
100
  {
@@ -130,8 +131,15 @@ var CustomerGroupListDataTable = () => {
130
131
  { key: "created_at", label: t("fields.createdAt") },
131
132
  { key: "updated_at", label: t("fields.updatedAt") }
132
133
  ],
134
+ defaultOrderBy: "name",
133
135
  noRecords: {
134
- message: t("customerGroups.list.empty.heading")
136
+ icon: /* @__PURE__ */ jsx(UserGroup, { className: "text-ui-fg-subtle" }),
137
+ title: t("customerGroups.list.empty.heading"),
138
+ message: t("customerGroups.list.empty.description"),
139
+ action: {
140
+ to: "/customer-groups/create",
141
+ label: t("actions.create")
142
+ }
135
143
  }
136
144
  }
137
145
  );
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  CustomerListPage
3
- } from "./chunk-4OIOYUQE.js";
3
+ } from "./chunk-BYQDKFTG.js";
4
4
  import "./chunk-GJM5XI3E.js";
5
- import "./chunk-PVZBDWLK.js";
5
+ import "./chunk-GRH7C3QN.js";
6
6
  import "./chunk-UO6IX5Y7.js";
7
7
  import "./chunk-SYNUA6LQ.js";
8
8
  import "./chunk-FQERBIVS.js";
@@ -21,7 +21,7 @@ import "./chunk-DY3XQPHC.js";
21
21
  import "./chunk-VKOE5J66.js";
22
22
  import "./chunk-42R54Z2X.js";
23
23
  import "./chunk-GJM5XI3E.js";
24
- import "./chunk-PVZBDWLK.js";
24
+ import "./chunk-GRH7C3QN.js";
25
25
  import "./chunk-27WLUOI2.js";
26
26
  import "./chunk-N3T24SEK.js";
27
27
  import "./chunk-JHIMVLB2.js";
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  FileUpload,
9
9
  MediaSchema
10
- } from "./chunk-RT3G3GEK.js";
10
+ } from "./chunk-5IFNEL6A.js";
11
11
  import "./chunk-AJLGY3LQ.js";
12
12
  import "./chunk-SMQT3ZNO.js";
13
- import "./chunk-ZZIJSTXN.js";
13
+ import "./chunk-AYCX7QNB.js";
14
14
  import "./chunk-TKGWSUEI.js";
15
15
  import {
16
16
  KeyboundForm
@@ -151,6 +151,7 @@ var EditPriceGrid = ({
151
151
  className: "flex h-full flex-col overflow-hidden",
152
152
  "data-testid": "offer-edit-price-form",
153
153
  children: [
154
+ /* @__PURE__ */ jsx(RouteFocusModal.Header, {}),
154
155
  /* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex-1 overflow-hidden p-0", children: /* @__PURE__ */ jsx(
155
156
  DataGrid,
156
157
  {
@@ -181,6 +181,7 @@ var EditStockGrid = ({
181
181
  className: "flex h-full flex-col overflow-hidden",
182
182
  "data-testid": "offer-edit-stock-form",
183
183
  children: [
184
+ /* @__PURE__ */ jsx(RouteFocusModal.Header, {}),
184
185
  /* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex-1 overflow-hidden p-0", children: /* @__PURE__ */ jsx(
185
186
  DataGrid,
186
187
  {
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-WJ5EU3KW.js";
9
9
  import {
10
10
  I18n
11
- } from "./chunk-ZZIJSTXN.js";
11
+ } from "./chunk-AYCX7QNB.js";
12
12
  import "./chunk-TKGWSUEI.js";
13
13
  import "./chunk-SITRHMZZ.js";
14
14
  import "./chunk-GDWBOQI5.js";
@@ -2907,7 +2907,7 @@ function getRouteMap({
2907
2907
  {
2908
2908
  path: "",
2909
2909
  lazy: async () => {
2910
- const { ProductListPage } = await import("./products-TZS2OPK3.js");
2910
+ const { ProductListPage } = await import("./products-KNJDYGOO.js");
2911
2911
  return {
2912
2912
  Component: ProductListPage
2913
2913
  };
@@ -2916,7 +2916,7 @@ function getRouteMap({
2916
2916
  {
2917
2917
  path: "create",
2918
2918
  lazy: async () => {
2919
- const { ProductCreatePage } = await import("./create-SJSLOXOW.js");
2919
+ const { ProductCreatePage } = await import("./create-7TV3IEVG.js");
2920
2920
  return {
2921
2921
  Component: ProductCreatePage
2922
2922
  };
@@ -2965,7 +2965,7 @@ function getRouteMap({
2965
2965
  },
2966
2966
  {
2967
2967
  path: "media",
2968
- lazy: () => import("./media-KIIJ6WSZ.js")
2968
+ lazy: () => import("./media-EBDOAHHL.js")
2969
2969
  },
2970
2970
  {
2971
2971
  path: "attributes",
@@ -3184,7 +3184,7 @@ function getRouteMap({
3184
3184
  {
3185
3185
  path: "",
3186
3186
  lazy: async () => {
3187
- const { CollectionListPage } = await import("./collections-7M7O23NO.js");
3187
+ const { CollectionListPage } = await import("./collections-C5XCGVCG.js");
3188
3188
  return {
3189
3189
  Component: CollectionListPage
3190
3190
  };
@@ -3236,7 +3236,7 @@ function getRouteMap({
3236
3236
  {
3237
3237
  path: "",
3238
3238
  lazy: async () => {
3239
- const { CustomerListPage } = await import("./customers-4WKIFPUU.js");
3239
+ const { CustomerListPage } = await import("./customers-6KNDRYB4.js");
3240
3240
  return {
3241
3241
  Component: CustomerListPage
3242
3242
  };
@@ -3245,7 +3245,7 @@ function getRouteMap({
3245
3245
  {
3246
3246
  path: ":id",
3247
3247
  lazy: async () => {
3248
- const { loader } = await import("./[id]-FIP4UMQ4.js");
3248
+ const { loader } = await import("./[id]-NXWDM34U.js");
3249
3249
  const { Breadcrumb } = await import("./breadcrumb-LBO2I4OJ.js");
3250
3250
  return {
3251
3251
  Component: Outlet4,
@@ -3259,7 +3259,7 @@ function getRouteMap({
3259
3259
  {
3260
3260
  path: "",
3261
3261
  lazy: async () => {
3262
- const { CustomerDetailPage } = await import("./[id]-FIP4UMQ4.js");
3262
+ const { CustomerDetailPage } = await import("./[id]-NXWDM34U.js");
3263
3263
  return {
3264
3264
  Component: CustomerDetailPage
3265
3265
  };
@@ -3267,7 +3267,7 @@ function getRouteMap({
3267
3267
  children: [
3268
3268
  {
3269
3269
  path: "add-customer-groups",
3270
- lazy: () => import("./add-customer-groups-KIGBZT5G.js")
3270
+ lazy: () => import("./add-customer-groups-MB2GJP77.js")
3271
3271
  }
3272
3272
  ]
3273
3273
  }
@@ -3284,7 +3284,7 @@ function getRouteMap({
3284
3284
  {
3285
3285
  path: "",
3286
3286
  lazy: async () => {
3287
- const { CustomerGroupListPage } = await import("./customer-groups-UJFZBZ2B.js");
3287
+ const { CustomerGroupListPage } = await import("./customer-groups-YIEFOZ4F.js");
3288
3288
  return {
3289
3289
  Component: CustomerGroupListPage
3290
3290
  };
@@ -3292,14 +3292,14 @@ function getRouteMap({
3292
3292
  children: [
3293
3293
  {
3294
3294
  path: "create",
3295
- lazy: () => import("./customer-group-create-OYHAXX2T.js")
3295
+ lazy: () => import("./customer-group-create-DQHTB3SK.js")
3296
3296
  }
3297
3297
  ]
3298
3298
  },
3299
3299
  {
3300
3300
  path: ":id",
3301
3301
  lazy: async () => {
3302
- const { loader } = await import("./customer-group-detail-KW62TLWA.js");
3302
+ const { loader } = await import("./customer-group-detail-B446EA7L.js");
3303
3303
  const { Breadcrumb } = await import("./breadcrumb-PIDJ23EZ.js");
3304
3304
  return {
3305
3305
  Component: Outlet4,
@@ -3313,7 +3313,7 @@ function getRouteMap({
3313
3313
  {
3314
3314
  path: "",
3315
3315
  lazy: async () => {
3316
- const { CustomerGroupDetailPage } = await import("./customer-group-detail-KW62TLWA.js");
3316
+ const { CustomerGroupDetailPage } = await import("./customer-group-detail-B446EA7L.js");
3317
3317
  return {
3318
3318
  Component: CustomerGroupDetailPage
3319
3319
  };
@@ -3321,11 +3321,11 @@ function getRouteMap({
3321
3321
  children: [
3322
3322
  {
3323
3323
  path: "edit",
3324
- lazy: () => import("./customer-group-edit-WH7O4N4L.js")
3324
+ lazy: () => import("./customer-group-edit-H255WS2E.js")
3325
3325
  },
3326
3326
  {
3327
3327
  path: "add-customers",
3328
- lazy: () => import("./customer-group-add-customers-GTM556QA.js")
3328
+ lazy: () => import("./customer-group-add-customers-QPIYYEXU.js")
3329
3329
  }
3330
3330
  ]
3331
3331
  }
@@ -3375,11 +3375,11 @@ function getRouteMap({
3375
3375
  children: [
3376
3376
  {
3377
3377
  path: "edit-price",
3378
- lazy: () => import("./edit-price-K6K2FTMF.js")
3378
+ lazy: () => import("./edit-price-BNEAFMUE.js")
3379
3379
  },
3380
3380
  {
3381
3381
  path: "edit-stock",
3382
- lazy: () => import("./edit-stock-6TUSJD5R.js")
3382
+ lazy: () => import("./edit-stock-XK6NE4NH.js")
3383
3383
  }
3384
3384
  ]
3385
3385
  },
@@ -3400,7 +3400,7 @@ function getRouteMap({
3400
3400
  {
3401
3401
  path: "",
3402
3402
  lazy: async () => {
3403
- const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-ORH56HZI.js");
3403
+ const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-2X5JF5LG.js");
3404
3404
  return { Component: OfferVariantDetailPage };
3405
3405
  },
3406
3406
  children: [
@@ -3511,7 +3511,7 @@ function getRouteMap({
3511
3511
  {
3512
3512
  path: "",
3513
3513
  lazy: async () => {
3514
- const { PromotionListPage } = await import("./promotions-JYO23G6N.js");
3514
+ const { PromotionListPage } = await import("./promotions-VCNOCGYA.js");
3515
3515
  return {
3516
3516
  Component: PromotionListPage
3517
3517
  };
@@ -3526,7 +3526,7 @@ function getRouteMap({
3526
3526
  {
3527
3527
  path: ":id",
3528
3528
  lazy: async () => {
3529
- const { loader } = await import("./[id]-XUKQKCDN.js");
3529
+ const { loader } = await import("./[id]-W5RBRUBB.js");
3530
3530
  const { Breadcrumb } = await import("./breadcrumb-UAUX7XCV.js");
3531
3531
  return {
3532
3532
  Component: Outlet4,
@@ -3540,7 +3540,7 @@ function getRouteMap({
3540
3540
  {
3541
3541
  path: "",
3542
3542
  lazy: async () => {
3543
- const { PromotionDetailPage } = await import("./[id]-XUKQKCDN.js");
3543
+ const { PromotionDetailPage } = await import("./[id]-W5RBRUBB.js");
3544
3544
  return {
3545
3545
  Component: PromotionDetailPage
3546
3546
  };
@@ -3588,7 +3588,7 @@ function getRouteMap({
3588
3588
  {
3589
3589
  path: ":id",
3590
3590
  lazy: async () => {
3591
- const { loader } = await import("./[id]-PD3ISUL5.js");
3591
+ const { loader } = await import("./[id]-BGVYXNSX.js");
3592
3592
  const { Breadcrumb } = await import("./breadcrumb-F3BN5753.js");
3593
3593
  return {
3594
3594
  Component: Outlet4,
@@ -3602,7 +3602,7 @@ function getRouteMap({
3602
3602
  {
3603
3603
  path: "",
3604
3604
  lazy: async () => {
3605
- const { CampaignDetailPage } = await import("./[id]-PD3ISUL5.js");
3605
+ const { CampaignDetailPage } = await import("./[id]-BGVYXNSX.js");
3606
3606
  return {
3607
3607
  Component: CampaignDetailPage
3608
3608
  };
@@ -3623,7 +3623,7 @@ function getRouteMap({
3623
3623
  {
3624
3624
  path: "add-promotions",
3625
3625
  lazy: async () => {
3626
- const { AddPromotionsPage } = await import("./add-promotions-EQ5MMQKG.js");
3626
+ const { AddPromotionsPage } = await import("./add-promotions-EEQV6QFY.js");
3627
3627
  return {
3628
3628
  Component: AddPromotionsPage
3629
3629
  };
@@ -3685,7 +3685,7 @@ function getRouteMap({
3685
3685
  },
3686
3686
  {
3687
3687
  path: "products/add",
3688
- lazy: () => import("./add-GYXNRUAE.js")
3688
+ lazy: () => import("./add-2OW5QLU2.js")
3689
3689
  },
3690
3690
  {
3691
3691
  path: "products/edit",
@@ -3753,7 +3753,7 @@ function getRouteMap({
3753
3753
  {
3754
3754
  index: true,
3755
3755
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3756
- lazy: () => import("./settings-MHBYIZ2I.js")
3756
+ lazy: () => import("./settings-KRUN36KA.js")
3757
3757
  },
3758
3758
  // PROFILE
3759
3759
  {
@@ -3798,7 +3798,7 @@ function getRouteMap({
3798
3798
  children: [
3799
3799
  {
3800
3800
  path: "edit",
3801
- lazy: () => import("./edit-YTS77SJS.js")
3801
+ lazy: () => import("./edit-DQFUUWUB.js")
3802
3802
  },
3803
3803
  {
3804
3804
  path: "address",
@@ -3998,11 +3998,11 @@ function getRouteMap({
3998
3998
  },
3999
3999
  {
4000
4000
  path: "tax-overrides/create",
4001
- lazy: () => import("./create-NR7ULWQS.js")
4001
+ lazy: () => import("./create-22MSY7W6.js")
4002
4002
  },
4003
4003
  {
4004
4004
  path: "tax-overrides/:tax_rate_id/edit",
4005
- lazy: () => import("./edit-3EN2H52W.js")
4005
+ lazy: () => import("./edit-CSOADLGQ.js")
4006
4006
  },
4007
4007
  {
4008
4008
  path: "provinces/create",
@@ -4031,11 +4031,11 @@ function getRouteMap({
4031
4031
  },
4032
4032
  {
4033
4033
  path: "tax-overrides/create",
4034
- lazy: () => import("./create-NR7ULWQS.js")
4034
+ lazy: () => import("./create-22MSY7W6.js")
4035
4035
  },
4036
4036
  {
4037
4037
  path: "tax-overrides/:tax_rate_id/edit",
4038
- lazy: () => import("./edit-3EN2H52W.js")
4038
+ lazy: () => import("./edit-CSOADLGQ.js")
4039
4039
  }
4040
4040
  ]
4041
4041
  }
@@ -4053,14 +4053,14 @@ function getRouteMap({
4053
4053
  {
4054
4054
  path: "",
4055
4055
  lazy: async () => {
4056
- const { ProductTagListPage } = await import("./product-tags-MW2JMRFY.js");
4056
+ const { ProductTagListPage } = await import("./product-tags-4FHA7A6P.js");
4057
4057
  return { Component: ProductTagListPage };
4058
4058
  }
4059
4059
  },
4060
4060
  {
4061
4061
  path: ":id",
4062
4062
  lazy: async () => {
4063
- const { loader } = await import("./[id]-ZEFQ7FQQ.js");
4063
+ const { loader } = await import("./[id]-MXNIHS2A.js");
4064
4064
  const { ProductTagDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-4XSHX5RV.js");
4065
4065
  return {
4066
4066
  Component: Outlet4,
@@ -4074,7 +4074,7 @@ function getRouteMap({
4074
4074
  {
4075
4075
  path: "",
4076
4076
  lazy: async () => {
4077
- const { ProductTagDetailPage } = await import("./[id]-ZEFQ7FQQ.js");
4077
+ const { ProductTagDetailPage } = await import("./[id]-MXNIHS2A.js");
4078
4078
  return { Component: ProductTagDetailPage };
4079
4079
  },
4080
4080
  children: [
@@ -4098,14 +4098,14 @@ function getRouteMap({
4098
4098
  {
4099
4099
  path: "",
4100
4100
  lazy: async () => {
4101
- const { TeamListPage } = await import("./team-MY24J5WO.js");
4101
+ const { TeamListPage } = await import("./team-WSE7PKUH.js");
4102
4102
  return { Component: TeamListPage };
4103
4103
  },
4104
4104
  children: [
4105
4105
  {
4106
4106
  path: "invite",
4107
4107
  lazy: async () => {
4108
- const { TeamInvite } = await import("./invite-VWNUFOFI.js");
4108
+ const { TeamInvite } = await import("./invite-QMJJAEB5.js");
4109
4109
  return { Component: TeamInvite };
4110
4110
  }
4111
4111
  }
@@ -4175,7 +4175,7 @@ function getRouteMap({
4175
4175
  children: [
4176
4176
  {
4177
4177
  path: "",
4178
- lazy: () => import("./return-reasons-POR5YPTF.js"),
4178
+ lazy: () => import("./return-reasons-IXSWNVGX.js"),
4179
4179
  children: [
4180
4180
  {
4181
4181
  path: "create",
@@ -4211,12 +4211,12 @@ function getRouteMap({
4211
4211
  },
4212
4212
  {
4213
4213
  path: "/reset-password",
4214
- lazy: () => import("./reset-password-N22YRMR3.js")
4214
+ lazy: () => import("./reset-password-HVJ7JG6D.js")
4215
4215
  },
4216
4216
  {
4217
4217
  path: "/register",
4218
4218
  lazy: async () => {
4219
- const { RegisterPage } = await import("./register-SR2SYX4Q.js");
4219
+ const { RegisterPage } = await import("./register-V77I2H42.js");
4220
4220
  return { Component: RegisterPage };
4221
4221
  }
4222
4222
  },
@@ -6,7 +6,7 @@ import "./chunk-AYVH6Q5O.js";
6
6
  import "./chunk-VOHEQ7B5.js";
7
7
  import "./chunk-DY3XQPHC.js";
8
8
  import "./chunk-VKOE5J66.js";
9
- import "./chunk-PVZBDWLK.js";
9
+ import "./chunk-GRH7C3QN.js";
10
10
  import "./chunk-N3T24SEK.js";
11
11
  import "./chunk-XBKWFLJG.js";
12
12
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  UploadMediaFormItem
3
- } from "./chunk-3L2DVCOC.js";
3
+ } from "./chunk-MDRCW3OQ.js";
4
4
  import {
5
5
  EditProductMediaSchema
6
- } from "./chunk-RT3G3GEK.js";
6
+ } from "./chunk-5IFNEL6A.js";
7
7
  import "./chunk-AJLGY3LQ.js";
8
8
  import "./chunk-SMQT3ZNO.js";
9
- import "./chunk-ZZIJSTXN.js";
9
+ import "./chunk-AYCX7QNB.js";
10
10
  import "./chunk-TKGWSUEI.js";
11
11
  import {
12
12
  KeyboundForm
@@ -49,7 +49,7 @@ import { Children } from "react";
49
49
  import { useLoaderData, useParams } from "react-router-dom";
50
50
 
51
51
  // src/pages/offers/[id]/_components/offer-inventory-section.tsx
52
- import { Buildings, Component } from "@medusajs/icons";
52
+ import { Buildings } from "@medusajs/icons";
53
53
  import { Container, Heading, Text } from "@medusajs/ui";
54
54
  import { createColumnHelper } from "@tanstack/react-table";
55
55
  import { useMemo } from "react";
@@ -166,32 +166,13 @@ var OfferInventorySection = ({ offer }) => {
166
166
  getRowId: (row) => row.id,
167
167
  pageSize: PAGE_SIZE
168
168
  });
169
- const hasKit = inventoryItems.length > 1;
170
169
  return /* @__PURE__ */ jsxs(
171
170
  Container,
172
171
  {
173
172
  className: "divide-y p-0",
174
173
  "data-testid": "offer-detail-inventory-section",
175
174
  children: [
176
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
177
- /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("offers.detail.inventoryItems") }),
178
- /* @__PURE__ */ jsx(
179
- ActionMenu,
180
- {
181
- groups: [
182
- {
183
- actions: [
184
- {
185
- icon: hasKit ? /* @__PURE__ */ jsx(Component, {}) : /* @__PURE__ */ jsx(Buildings, {}),
186
- label: hasKit ? t("offers.detail.manageKit") : t("offers.actions.manage_inventory"),
187
- to: "inventory"
188
- }
189
- ]
190
- }
191
- ]
192
- }
193
- )
194
- ] }),
175
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("offers.detail.inventoryItems") }) }),
195
176
  inventoryItems.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-6 py-8", children: /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("offers.detail.noInventoryItems") }) }) : /* @__PURE__ */ jsx(
196
177
  _DataTable,
197
178
  {
@@ -414,8 +395,8 @@ var OfferVariantDetailPage = Object.assign(Root, {
414
395
  Shipping: OfferVariantShippingSection,
415
396
  Pricing: OfferPricingSection
416
397
  });
417
- var Component2 = Root;
398
+ var Component = Root;
418
399
  export {
419
- Component2 as Component,
400
+ Component,
420
401
  OfferVariantDetailPage
421
402
  };
@@ -36,9 +36,9 @@ import {
36
36
  import "../chunk-7TIZP4YG.js";
37
37
  import {
38
38
  PromotionListPage
39
- } from "../chunk-4RFPRO2W.js";
40
- import "../chunk-LRMWYKSF.js";
41
- import "../chunk-N6MGVXXQ.js";
39
+ } from "../chunk-7DZCHZHR.js";
40
+ import "../chunk-KPF6WMZI.js";
41
+ import "../chunk-MP2H5ZC6.js";
42
42
  import {
43
43
  InventoryListPage
44
44
  } from "../chunk-XJYQ4SW5.js";
@@ -59,9 +59,9 @@ import "../chunk-VKOE5J66.js";
59
59
  import "../chunk-42R54Z2X.js";
60
60
  import {
61
61
  CustomerListPage
62
- } from "../chunk-4OIOYUQE.js";
62
+ } from "../chunk-BYQDKFTG.js";
63
63
  import "../chunk-GJM5XI3E.js";
64
- import "../chunk-PVZBDWLK.js";
64
+ import "../chunk-GRH7C3QN.js";
65
65
  import {
66
66
  PayoutListPage
67
67
  } from "../chunk-AG6KIAUD.js";
@@ -110,7 +110,7 @@ import "../chunk-PHOCVOZ5.js";
110
110
  import {
111
111
  ProductCreate,
112
112
  ProductCreatePage
113
- } from "../chunk-R4JLYNUA.js";
113
+ } from "../chunk-KIOTMXSI.js";
114
114
  import "../chunk-LEWA4BPH.js";
115
115
  import "../chunk-TKSKCYM3.js";
116
116
  import "../chunk-HJ56YXBU.js";
@@ -123,20 +123,20 @@ import "../chunk-IQPN4PZJ.js";
123
123
  import "../chunk-YVCBMOJG.js";
124
124
  import "../chunk-J434WDD3.js";
125
125
  import "../chunk-OVPAOBZB.js";
126
- import "../chunk-3L2DVCOC.js";
126
+ import "../chunk-MDRCW3OQ.js";
127
127
  import {
128
128
  EditProductMediaSchema,
129
129
  MediaSchema,
130
130
  PRODUCT_CREATE_FORM_DEFAULTS,
131
131
  ProductCreateSchema
132
- } from "../chunk-RT3G3GEK.js";
132
+ } from "../chunk-5IFNEL6A.js";
133
133
  import "../chunk-AJLGY3LQ.js";
134
134
  import "../chunk-SMQT3ZNO.js";
135
135
  import "../chunk-KDE4HKH2.js";
136
136
  import "../chunk-4YWKKCTT.js";
137
137
  import "../chunk-VBRTC2VU.js";
138
138
  import "../chunk-WJ5EU3KW.js";
139
- import "../chunk-ZZIJSTXN.js";
139
+ import "../chunk-AYCX7QNB.js";
140
140
  import "../chunk-TKGWSUEI.js";
141
141
  import "../chunk-SITRHMZZ.js";
142
142
  import "../chunk-GDWBOQI5.js";
@@ -14,7 +14,7 @@ import "./chunk-DY3XQPHC.js";
14
14
  import "./chunk-VKOE5J66.js";
15
15
  import "./chunk-42R54Z2X.js";
16
16
  import "./chunk-GJM5XI3E.js";
17
- import "./chunk-PVZBDWLK.js";
17
+ import "./chunk-GRH7C3QN.js";
18
18
  import "./chunk-27WLUOI2.js";
19
19
  import "./chunk-N3T24SEK.js";
20
20
  import "./chunk-JHIMVLB2.js";