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

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 (51) hide show
  1. package/dist/{[id]-ZEFQ7FQQ.js → [id]-35EHXGJK.js} +2 -2
  2. package/dist/{[id]-3JICOSAI.js → [id]-5PXEWKER.js} +2 -2
  3. package/dist/{[id]-PD3ISUL5.js → [id]-BGVYXNSX.js} +3 -3
  4. package/dist/{[id]-FIP4UMQ4.js → [id]-PGKXY75Z.js} +58 -28
  5. package/dist/{[id]-XUKQKCDN.js → [id]-W5RBRUBB.js} +2 -2
  6. package/dist/{[id]-E7DYRMMO.js → [id]-YJIKYRC4.js} +2 -2
  7. package/dist/{add-GYXNRUAE.js → add-EE67SXQJ.js} +2 -2
  8. package/dist/{add-customer-groups-KIGBZT5G.js → add-customer-groups-MB2GJP77.js} +6 -1
  9. package/dist/{add-promotions-EQ5MMQKG.js → add-promotions-EEQV6QFY.js} +3 -3
  10. package/dist/{categories-3P2DRH5V.js → categories-JM5HQP3Q.js} +1 -1
  11. package/dist/{chunk-RT3G3GEK.js → chunk-5IFNEL6A.js} +1 -1
  12. package/dist/{chunk-4RFPRO2W.js → chunk-7DZCHZHR.js} +1 -1
  13. package/dist/{chunk-ZZIJSTXN.js → chunk-AYCX7QNB.js} +21 -9
  14. package/dist/{chunk-4OIOYUQE.js → chunk-BYQDKFTG.js} +3 -8
  15. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  16. package/dist/{chunk-R4JLYNUA.js → chunk-KIOTMXSI.js} +2 -2
  17. package/dist/{chunk-LRMWYKSF.js → chunk-KPF6WMZI.js} +1 -1
  18. package/dist/{chunk-3L2DVCOC.js → chunk-MDRCW3OQ.js} +1 -1
  19. package/dist/{chunk-N6MGVXXQ.js → chunk-MP2H5ZC6.js} +1 -1
  20. package/dist/{chunk-HZCSJLGH.js → chunk-OCKJNR4P.js} +1 -1
  21. package/dist/{chunk-4EQIJMQT.js → chunk-QPZDRSZB.js} +1 -1
  22. package/dist/{chunk-AKKIZD2P.js → chunk-UUDRVBJX.js} +1 -1
  23. package/dist/{chunk-H7BVANDX.js → chunk-XCPANKUF.js} +37 -10
  24. package/dist/{chunk-II3ACSV2.js → chunk-YNGA3GRX.js} +1 -1
  25. package/dist/{collections-7M7O23NO.js → collections-66Q55JUI.js} +3 -3
  26. package/dist/{create-SJSLOXOW.js → create-7TV3IEVG.js} +4 -4
  27. package/dist/{create-NR7ULWQS.js → create-IGK3RHU7.js} +3 -3
  28. package/dist/{customer-group-add-customers-GTM556QA.js → customer-group-add-customers-QPIYYEXU.js} +1 -1
  29. package/dist/{customer-group-create-OYHAXX2T.js → customer-group-create-DQHTB3SK.js} +9 -2
  30. package/dist/{customer-group-detail-KW62TLWA.js → customer-group-detail-B446EA7L.js} +2 -2
  31. package/dist/{customer-group-edit-WH7O4N4L.js → customer-group-edit-H255WS2E.js} +2 -1
  32. package/dist/{customer-groups-UJFZBZ2B.js → customer-groups-YIEFOZ4F.js} +12 -4
  33. package/dist/{customers-4WKIFPUU.js → customers-6KNDRYB4.js} +2 -2
  34. package/dist/{edit-YTS77SJS.js → edit-DQFUUWUB.js} +2 -2
  35. package/dist/{edit-3EN2H52W.js → edit-FPTAY3EX.js} +3 -3
  36. package/dist/{edit-price-K6K2FTMF.js → edit-price-BNEAFMUE.js} +1 -0
  37. package/dist/{edit-stock-6TUSJD5R.js → edit-stock-XK6NE4NH.js} +1 -0
  38. package/dist/index.js +44 -44
  39. package/dist/{invite-VWNUFOFI.js → invite-QMJJAEB5.js} +1 -1
  40. package/dist/{media-KIIJ6WSZ.js → media-EBDOAHHL.js} +3 -3
  41. package/dist/{offer-variant-detail-page-ORH56HZI.js → offer-variant-detail-page-2X5JF5LG.js} +4 -23
  42. package/dist/pages/index.js +12 -12
  43. package/dist/{product-tags-MW2JMRFY.js → product-tags-3XMULQGD.js} +2 -2
  44. package/dist/{products-TZS2OPK3.js → products-KNJDYGOO.js} +4 -4
  45. package/dist/{promotions-JYO23G6N.js → promotions-VCNOCGYA.js} +4 -4
  46. package/dist/{register-SR2SYX4Q.js → register-V77I2H42.js} +1 -1
  47. package/dist/{reset-password-N22YRMR3.js → reset-password-HVJ7JG6D.js} +1 -1
  48. package/dist/{return-reasons-POR5YPTF.js → return-reasons-IHEACVG3.js} +2 -2
  49. package/dist/{settings-MHBYIZ2I.js → settings-CGD3WPJK.js} +2 -2
  50. package/dist/{team-MY24J5WO.js → team-WSE7PKUH.js} +1 -1
  51. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-GJM5XI3E.js";
7
7
  import {
8
8
  useCustomerTableQuery
9
- } from "./chunk-PVZBDWLK.js";
9
+ } from "./chunk-GRH7C3QN.js";
10
10
  import {
11
11
  useCustomerTableFilters
12
12
  } from "./chunk-UO6IX5Y7.js";
@@ -35,8 +35,15 @@ import { Children } from "react";
35
35
  import { useLoaderData, useParams } from "react-router-dom";
36
36
 
37
37
  // src/pages/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx
38
- import { Trash } from "@medusajs/icons";
39
- import { Button, Checkbox, Container, Heading, usePrompt } from "@medusajs/ui";
38
+ import { XCircle } from "@medusajs/icons";
39
+ import {
40
+ Button,
41
+ Checkbox,
42
+ Container,
43
+ Heading,
44
+ toast,
45
+ usePrompt
46
+ } from "@medusajs/ui";
40
47
  import { createColumnHelper } from "@tanstack/react-table";
41
48
  import { useMemo, useState } from "react";
42
49
  import { useTranslation } from "react-i18next";
@@ -52,6 +59,7 @@ var CustomerGroupCustomerSection = ({
52
59
  const { searchParams, raw } = useCustomerTableQuery({ pageSize: PAGE_SIZE });
53
60
  const { customers, count, isLoading, isError, error } = useCustomers({
54
61
  ...searchParams,
62
+ order: searchParams.order || "email",
55
63
  groups: [group.id]
56
64
  });
57
65
  const columns = useColumns();
@@ -94,6 +102,14 @@ var CustomerGroupCustomerSection = ({
94
102
  await mutateAsync(keys, {
95
103
  onSuccess: () => {
96
104
  setRowSelection({});
105
+ toast.success(
106
+ t("customerGroups.customers.remove.successToast", {
107
+ count: keys.length
108
+ })
109
+ );
110
+ },
111
+ onError: (e) => {
112
+ toast.error(e.message);
97
113
  }
98
114
  });
99
115
  };
@@ -156,6 +172,7 @@ var CustomerGroupCustomerSection = ({
156
172
  { key: "created_at", label: t("fields.createdAt") },
157
173
  { key: "updated_at", label: t("fields.updatedAt") }
158
174
  ],
175
+ defaultOrderBy: "email",
159
176
  queryObject: raw,
160
177
  commands: [
161
178
  {
@@ -165,6 +182,7 @@ var CustomerGroupCustomerSection = ({
165
182
  }
166
183
  ],
167
184
  noRecords: {
185
+ title: t("customerGroups.customers.list.noRecordsTitle"),
168
186
  message: t("customerGroups.customers.list.noRecordsMessage")
169
187
  }
170
188
  }
@@ -194,7 +212,16 @@ var CustomerActions = ({
194
212
  if (!res) {
195
213
  return;
196
214
  }
197
- await mutateAsync([customer.id]);
215
+ await mutateAsync([customer.id], {
216
+ onSuccess: () => {
217
+ toast.success(
218
+ t("customerGroups.customers.remove.successToast", { count: 1 })
219
+ );
220
+ },
221
+ onError: (e) => {
222
+ toast.error(e.message);
223
+ }
224
+ });
198
225
  };
199
226
  return /* @__PURE__ */ jsx(
200
227
  ActionMenu,
@@ -203,7 +230,7 @@ var CustomerActions = ({
203
230
  {
204
231
  actions: [
205
232
  {
206
- icon: /* @__PURE__ */ jsx(Trash, {}),
233
+ icon: /* @__PURE__ */ jsx(XCircle, {}),
207
234
  label: t("actions.remove"),
208
235
  onClick: handleRemove
209
236
  }
@@ -262,8 +289,8 @@ var useColumns = () => {
262
289
  };
263
290
 
264
291
  // src/pages/customer-groups/customer-group-detail/components/customer-group-general-section/customer-group-general-section.tsx
265
- import { PencilSquare, Trash as Trash2 } from "@medusajs/icons";
266
- import { Container as Container2, Heading as Heading2, Text, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
292
+ import { PencilSquare, Trash } from "@medusajs/icons";
293
+ import { Container as Container2, Heading as Heading2, Text, toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
267
294
  import { useTranslation as useTranslation2 } from "react-i18next";
268
295
  import { useNavigate } from "react-router-dom";
269
296
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -288,7 +315,7 @@ var CustomerGroupGeneralSection = ({
288
315
  }
289
316
  await mutateAsync(void 0, {
290
317
  onSuccess: () => {
291
- toast.success(
318
+ toast2.success(
292
319
  t("customerGroups.delete.successToast", {
293
320
  name: group.name
294
321
  })
@@ -296,7 +323,7 @@ var CustomerGroupGeneralSection = ({
296
323
  navigate("/customer-groups", { replace: true });
297
324
  },
298
325
  onError: (error) => {
299
- toast.error(error.message);
326
+ toast2.error(error.message);
300
327
  }
301
328
  });
302
329
  };
@@ -329,7 +356,7 @@ var CustomerGroupGeneralSection = ({
329
356
  {
330
357
  actions: [
331
358
  {
332
- icon: /* @__PURE__ */ jsx2(Trash2, {}),
359
+ icon: /* @__PURE__ */ jsx2(Trash, {}),
333
360
  label: t("actions.delete"),
334
361
  onClick: handleDelete
335
362
  }
@@ -22,7 +22,7 @@ var useCollectionTableColumns = () => {
22
22
  header: t("fields.title"),
23
23
  cell: ({ getValue, row }) => {
24
24
  const gallery = getCollectionGallery(
25
- row.original.images
25
+ row.original.media_images
26
26
  );
27
27
  const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
28
28
  return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CollectionListPage
3
- } from "./chunk-4EQIJMQT.js";
4
- import "./chunk-II3ACSV2.js";
3
+ } from "./chunk-QPZDRSZB.js";
4
+ import "./chunk-YNGA3GRX.js";
5
5
  import "./chunk-BI2AYXZQ.js";
6
6
  import "./chunk-MG4GKUJW.js";
7
7
  import "./chunk-AYVH6Q5O.js";
@@ -9,7 +9,7 @@ import "./chunk-VOHEQ7B5.js";
9
9
  import "./chunk-DY3XQPHC.js";
10
10
  import "./chunk-VKOE5J66.js";
11
11
  import "./chunk-42R54Z2X.js";
12
- import "./chunk-PVZBDWLK.js";
12
+ import "./chunk-GRH7C3QN.js";
13
13
  import "./chunk-N3T24SEK.js";
14
14
  import "./chunk-JHIMVLB2.js";
15
15
  import "./chunk-HHD2VUED.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ProductCreate,
3
3
  ProductCreatePage
4
- } from "./chunk-R4JLYNUA.js";
4
+ } from "./chunk-KIOTMXSI.js";
5
5
  import "./chunk-LEWA4BPH.js";
6
6
  import "./chunk-TKSKCYM3.js";
7
7
  import "./chunk-HJ56YXBU.js";
@@ -14,20 +14,20 @@ import "./chunk-IQPN4PZJ.js";
14
14
  import "./chunk-YVCBMOJG.js";
15
15
  import "./chunk-J434WDD3.js";
16
16
  import "./chunk-OVPAOBZB.js";
17
- import "./chunk-3L2DVCOC.js";
17
+ import "./chunk-MDRCW3OQ.js";
18
18
  import {
19
19
  EditProductMediaSchema,
20
20
  MediaSchema,
21
21
  PRODUCT_CREATE_FORM_DEFAULTS,
22
22
  ProductCreateSchema
23
- } from "./chunk-RT3G3GEK.js";
23
+ } from "./chunk-5IFNEL6A.js";
24
24
  import "./chunk-AJLGY3LQ.js";
25
25
  import "./chunk-SMQT3ZNO.js";
26
26
  import "./chunk-KDE4HKH2.js";
27
27
  import "./chunk-4YWKKCTT.js";
28
28
  import "./chunk-VBRTC2VU.js";
29
29
  import "./chunk-WJ5EU3KW.js";
30
- import "./chunk-ZZIJSTXN.js";
30
+ import "./chunk-AYCX7QNB.js";
31
31
  import "./chunk-TKGWSUEI.js";
32
32
  import "./chunk-SITRHMZZ.js";
33
33
  import "./chunk-GDWBOQI5.js";
@@ -3,7 +3,7 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-HZCSJLGH.js";
6
+ } from "./chunk-OCKJNR4P.js";
7
7
  import "./chunk-Q4UVXS46.js";
8
8
  import {
9
9
  PercentageInput
@@ -12,7 +12,7 @@ import "./chunk-N335VHD3.js";
12
12
  import "./chunk-EBZ5VZEO.js";
13
13
  import "./chunk-4F5GP7J7.js";
14
14
  import "./chunk-7TIZP4YG.js";
15
- import "./chunk-II3ACSV2.js";
15
+ import "./chunk-YNGA3GRX.js";
16
16
  import "./chunk-BI2AYXZQ.js";
17
17
  import "./chunk-MG4GKUJW.js";
18
18
  import "./chunk-AYVH6Q5O.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";
@@ -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";
@@ -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
@@ -3,7 +3,7 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-HZCSJLGH.js";
6
+ } from "./chunk-OCKJNR4P.js";
7
7
  import "./chunk-Q4UVXS46.js";
8
8
  import {
9
9
  PercentageInput
@@ -12,7 +12,7 @@ import "./chunk-N335VHD3.js";
12
12
  import "./chunk-EBZ5VZEO.js";
13
13
  import "./chunk-4F5GP7J7.js";
14
14
  import "./chunk-7TIZP4YG.js";
15
- import "./chunk-II3ACSV2.js";
15
+ import "./chunk-YNGA3GRX.js";
16
16
  import "./chunk-BI2AYXZQ.js";
17
17
  import "./chunk-MG4GKUJW.js";
18
18
  import "./chunk-AYVH6Q5O.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";
@@ -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
  {