@mercurjs/vendor 2.2.0-canary.20 → 2.2.0-canary.21
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.
- package/dist/{[id]-26KNXVZ3.js → [id]-3JICOSAI.js} +111 -20
- package/dist/{[id]-7MPUE2JE.js → [id]-CR76L5TG.js} +4 -13
- package/dist/{[id]-45QR6M3C.js → [id]-E7DYRMMO.js} +141 -51
- package/dist/{[id]-W4ARB473.js → [id]-PD3ISUL5.js} +3 -3
- package/dist/{[id]-ZB25Z6NK.js → [id]-XUKQKCDN.js} +2 -2
- package/dist/{[id]-E76GYCHF.js → [id]-ZEFQ7FQQ.js} +2 -1
- package/dist/{add-TFZ5CKSA.js → add-GYXNRUAE.js} +2 -1
- package/dist/{add-promotions-3KKONG7D.js → add-promotions-EQ5MMQKG.js} +3 -3
- package/dist/{allocate-items-UOSOCC6N.js → allocate-items-URVRAFPS.js} +36 -5
- package/dist/{categories-VYVQ5G3H.js → categories-3P2DRH5V.js} +4 -2
- package/dist/{chunk-YXJYCCIU.js → chunk-3L2DVCOC.js} +1 -1
- package/dist/chunk-42R54Z2X.js +8 -0
- package/dist/{chunk-AJREJFHL.js → chunk-4EQIJMQT.js} +1 -1
- package/dist/{chunk-6XO5XJJX.js → chunk-4RFPRO2W.js} +1 -1
- package/dist/{chunk-GMIN5OB5.js → chunk-AKKIZD2P.js} +30 -32
- package/dist/chunk-EEBJYXWA.js +15 -0
- package/dist/{chunk-4XSO2NKC.js → chunk-HZCSJLGH.js} +1 -1
- package/dist/{chunk-JQV7CXEC.js → chunk-II3ACSV2.js} +17 -2
- package/dist/{chunk-GLOEJSV4.js → chunk-LRMWYKSF.js} +1 -1
- package/dist/chunk-LYYM7H7H.js +59 -0
- package/dist/{chunk-VKMNSMCS.js → chunk-N6MGVXXQ.js} +1 -1
- package/dist/{chunk-VDH3AG7D.js → chunk-R4JLYNUA.js} +2 -2
- package/dist/{chunk-M2JP43HN.js → chunk-RT3G3GEK.js} +1 -1
- package/dist/{chunk-WBFAUHKO.js → chunk-ZZIJSTXN.js} +44 -9
- package/dist/{collections-A5GNFU6H.js → collections-7M7O23NO.js} +4 -2
- package/dist/{create-KV4S6DA2.js → create-NR7ULWQS.js} +3 -2
- package/dist/{create-HU3EIJO6.js → create-SJSLOXOW.js} +4 -4
- package/dist/{edit-VPU333HQ.js → edit-3EN2H52W.js} +3 -2
- package/dist/{edit-HOIS3BEW.js → edit-6K3NSVI7.js} +1 -1
- package/dist/{edit-RXDAL7SX.js → edit-YTS77SJS.js} +2 -2
- package/dist/{fulfillment-6I3ERWZW.js → fulfillment-VEF6HG6D.js} +9 -22
- package/dist/index.js +37 -37
- package/dist/{media-Q3AN34MZ.js → media-KIIJ6WSZ.js} +3 -3
- package/dist/{offer-create-page-ZRPBFHZO.js → offer-create-page-DV4JCIL2.js} +4 -6
- package/dist/{offer-variant-detail-page-LYG62KTY.js → offer-variant-detail-page-ORH56HZI.js} +1 -1
- package/dist/pages/index.js +12 -11
- package/dist/{product-tags-RNK4N72O.js → product-tags-MW2JMRFY.js} +2 -1
- package/dist/{products-P5DGEYTS.js → products-TZS2OPK3.js} +4 -4
- package/dist/{promotions-SY4DKTT5.js → promotions-JYO23G6N.js} +4 -4
- package/dist/{register-JZK5LFZU.js → register-SR2SYX4Q.js} +1 -1
- package/dist/{reset-password-HGLJ75PJ.js → reset-password-N22YRMR3.js} +1 -1
- package/dist/{return-reasons-2TMOZGMV.js → return-reasons-POR5YPTF.js} +2 -1
- package/dist/{settings-QEARGBMK.js → settings-MHBYIZ2I.js} +2 -1
- package/dist/{shipping-UBQAPPM4.js → shipping-W4SPR3JO.js} +19 -10
- package/package.json +1 -1
- package/dist/chunk-BDZOSMAX.js +0 -23
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-LRMWYKSF.js";
|
|
5
|
+
import "./chunk-N6MGVXXQ.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableFilters
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import "./chunk-YN3FGNJM.js";
|
|
19
19
|
import "./chunk-KCHYLLVG.js";
|
|
20
20
|
import "./chunk-3EF54XFY.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ZZIJSTXN.js";
|
|
22
22
|
import "./chunk-TKGWSUEI.js";
|
|
23
23
|
import {
|
|
24
24
|
KeyboundForm
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getReservationsLimitCount
|
|
3
|
+
} from "./chunk-EEBJYXWA.js";
|
|
1
4
|
import {
|
|
2
5
|
getFulfillableQuantity
|
|
3
6
|
} from "./chunk-RXM4B6HR.js";
|
|
@@ -21,7 +24,8 @@ import {
|
|
|
21
24
|
import {
|
|
22
25
|
ordersQueryKeys,
|
|
23
26
|
useCreateReservationItem,
|
|
24
|
-
useOrder
|
|
27
|
+
useOrder,
|
|
28
|
+
useReservationItems
|
|
25
29
|
} from "./chunk-7RGUD6PI.js";
|
|
26
30
|
import "./chunk-TSTUAL6N.js";
|
|
27
31
|
import "./chunk-A5DJIOHN.js";
|
|
@@ -342,6 +346,14 @@ function OrderAllocateItemsItem({
|
|
|
342
346
|
}
|
|
343
347
|
|
|
344
348
|
// src/pages/orders/[id]/allocate-items/order-create-fulfillment-form/utils.ts
|
|
349
|
+
function getAllocatableItems(items, reservations) {
|
|
350
|
+
const reserved = new Set(
|
|
351
|
+
reservations.map((r) => r.line_item_id).filter((id) => !!id)
|
|
352
|
+
);
|
|
353
|
+
return items.filter(
|
|
354
|
+
(item) => !!item.offer?.inventory_item_link?.length && item.quantity - (item.detail?.fulfilled_quantity ?? 0) > 0 && !reserved.has(item.id)
|
|
355
|
+
);
|
|
356
|
+
}
|
|
345
357
|
function buildAllocationPayload(quantity, selected) {
|
|
346
358
|
const rows = Object.entries(quantity).filter(([key]) => !key.endsWith("-")).map(([key, value]) => {
|
|
347
359
|
const separatorIndex = key.indexOf("-");
|
|
@@ -380,11 +392,19 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
380
392
|
const [disableSubmit, setDisableSubmit] = useState2(false);
|
|
381
393
|
const [filterTerm, setFilterTerm] = useState2("");
|
|
382
394
|
const { mutateAsync: allocateItems, isPending: isMutating } = useCreateReservationItem();
|
|
395
|
+
const { reservations } = useReservationItems(
|
|
396
|
+
{
|
|
397
|
+
line_item_id: order?.items?.map((i) => i.id),
|
|
398
|
+
limit: getReservationsLimitCount(order)
|
|
399
|
+
},
|
|
400
|
+
{ enabled: Array.isArray(order?.items) }
|
|
401
|
+
);
|
|
383
402
|
const itemsToAllocate = useMemo2(
|
|
384
|
-
() =>
|
|
385
|
-
|
|
403
|
+
() => getAllocatableItems(
|
|
404
|
+
order.items,
|
|
405
|
+
reservations ?? []
|
|
386
406
|
),
|
|
387
|
-
[order.items]
|
|
407
|
+
[order.items, reservations]
|
|
388
408
|
);
|
|
389
409
|
const filteredItems = useMemo2(() => {
|
|
390
410
|
return itemsToAllocate.filter(
|
|
@@ -410,7 +430,18 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
410
430
|
});
|
|
411
431
|
return;
|
|
412
432
|
}
|
|
413
|
-
const
|
|
433
|
+
const allocatableIds = new Set(itemsToAllocate.map((i) => i.id));
|
|
434
|
+
const allocations = result.items.filter(
|
|
435
|
+
(item) => allocatableIds.has(item.line_item_id)
|
|
436
|
+
);
|
|
437
|
+
if (allocations.length === 0) {
|
|
438
|
+
form.setError("root.quantityNotAllocated", {
|
|
439
|
+
type: "manual",
|
|
440
|
+
message: t("orders.allocateItems.error.noItemsSelected")
|
|
441
|
+
});
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
const promises = allocations.map(
|
|
414
445
|
(item) => allocateItems({
|
|
415
446
|
location_id: data.location_id,
|
|
416
447
|
inventory_item_id: item.inventory_item_id,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AKKIZD2P.js";
|
|
4
4
|
import "./chunk-JHIMVLB2.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-LYYM7H7H.js";
|
|
6
6
|
import "./chunk-FQERBIVS.js";
|
|
7
|
+
import "./chunk-DB6ANJBO.js";
|
|
7
8
|
import "./chunk-PHOCVOZ5.js";
|
|
8
9
|
import "./chunk-WKRW5OPL.js";
|
|
9
10
|
import "./chunk-YN3FGNJM.js";
|
|
@@ -12,6 +13,7 @@ import "./chunk-3EF54XFY.js";
|
|
|
12
13
|
import "./chunk-YV6MK4PZ.js";
|
|
13
14
|
import "./chunk-THHRRYRS.js";
|
|
14
15
|
import "./chunk-LRD242C7.js";
|
|
16
|
+
import "./chunk-WIYFXWRI.js";
|
|
15
17
|
import "./chunk-INNFZYX2.js";
|
|
16
18
|
import "./chunk-247L47JD.js";
|
|
17
19
|
import "./chunk-LAVHRER2.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/pages/collections/common/components/collection-image-fields/types.ts
|
|
2
|
+
var getCollectionGallery = (images) => (images ?? []).filter((image) => !image.type).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
|
|
3
|
+
var getCollectionIcon = (images) => (images ?? []).find((image) => image.type === "icon") ?? null;
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
getCollectionGallery,
|
|
7
|
+
getCollectionIcon
|
|
8
|
+
};
|
|
@@ -3,8 +3,14 @@ import {
|
|
|
3
3
|
TextHeader
|
|
4
4
|
} from "./chunk-JHIMVLB2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
getCategoryGallery,
|
|
7
|
+
getCategoryPath,
|
|
8
|
+
getIsActiveProps,
|
|
9
|
+
getIsInternalProps
|
|
10
|
+
} from "./chunk-LYYM7H7H.js";
|
|
11
|
+
import {
|
|
12
|
+
StatusCell
|
|
13
|
+
} from "./chunk-DB6ANJBO.js";
|
|
8
14
|
import {
|
|
9
15
|
_DataTable,
|
|
10
16
|
useDataTable
|
|
@@ -15,6 +21,9 @@ import {
|
|
|
15
21
|
import {
|
|
16
22
|
useQueryParams
|
|
17
23
|
} from "./chunk-THHRRYRS.js";
|
|
24
|
+
import {
|
|
25
|
+
Thumbnail
|
|
26
|
+
} from "./chunk-WIYFXWRI.js";
|
|
18
27
|
import {
|
|
19
28
|
useProductCategories
|
|
20
29
|
} from "./chunk-247L47JD.js";
|
|
@@ -89,6 +98,10 @@ var useCategoryTableColumns = () => {
|
|
|
89
98
|
chip.id
|
|
90
99
|
)) });
|
|
91
100
|
}
|
|
101
|
+
const gallery = getCategoryGallery(
|
|
102
|
+
row.original.images
|
|
103
|
+
);
|
|
104
|
+
const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
|
|
92
105
|
return /* @__PURE__ */ jsxs2("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
|
|
93
106
|
/* @__PURE__ */ jsx2("div", { className: "flex size-7 items-center justify-center", children: row.getCanExpand() ? /* @__PURE__ */ jsx2(
|
|
94
107
|
IconButton,
|
|
@@ -112,6 +125,7 @@ var useCategoryTableColumns = () => {
|
|
|
112
125
|
)
|
|
113
126
|
}
|
|
114
127
|
) : null }),
|
|
128
|
+
/* @__PURE__ */ jsx2(Thumbnail, { src: thumbnailSrc }),
|
|
115
129
|
/* @__PURE__ */ jsx2("span", { className: "truncate", children: getValue() })
|
|
116
130
|
] });
|
|
117
131
|
}
|
|
@@ -121,37 +135,21 @@ var useCategoryTableColumns = () => {
|
|
|
121
135
|
cell: ({ getValue }) => {
|
|
122
136
|
return /* @__PURE__ */ jsx2(TextCell, { text: `/${getValue()}` });
|
|
123
137
|
}
|
|
138
|
+
}),
|
|
139
|
+
columnHelper.accessor("is_active", {
|
|
140
|
+
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("fields.status") }),
|
|
141
|
+
cell: ({ getValue }) => {
|
|
142
|
+
const { color, label } = getIsActiveProps(getValue(), t);
|
|
143
|
+
return /* @__PURE__ */ jsx2(StatusCell, { color, children: label });
|
|
144
|
+
}
|
|
145
|
+
}),
|
|
146
|
+
columnHelper.accessor("is_internal", {
|
|
147
|
+
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("categories.fields.visibility.label") }),
|
|
148
|
+
cell: ({ getValue }) => {
|
|
149
|
+
const { color, label } = getIsInternalProps(getValue(), t);
|
|
150
|
+
return /* @__PURE__ */ jsx2(StatusCell, { color, children: label });
|
|
151
|
+
}
|
|
124
152
|
})
|
|
125
|
-
// columnHelper.accessor('is_active', {
|
|
126
|
-
// header: () => (
|
|
127
|
-
// <TextHeader text={t('fields.status')} />
|
|
128
|
-
// ),
|
|
129
|
-
// cell: ({ getValue }) => {
|
|
130
|
-
// console.log('getValue', getValue());
|
|
131
|
-
// // const { color, label } = getIsActiveProps(
|
|
132
|
-
// // getValue(),
|
|
133
|
-
// // t
|
|
134
|
-
// // );
|
|
135
|
-
// return (
|
|
136
|
-
// // <StatusCell color={color}>{label}</StatusCell>
|
|
137
|
-
// <span>eee</span>
|
|
138
|
-
// );
|
|
139
|
-
// },
|
|
140
|
-
// }),
|
|
141
|
-
// columnHelper.accessor('is_internal', {
|
|
142
|
-
// header: () => (
|
|
143
|
-
// <TextHeader
|
|
144
|
-
// text={t('categories.fields.visibility.label')}
|
|
145
|
-
// />
|
|
146
|
-
// ),
|
|
147
|
-
// cell: ({ getValue }) => {
|
|
148
|
-
// // const { color, label } = getIsInternalProps(
|
|
149
|
-
// // getValue(),
|
|
150
|
-
// // t
|
|
151
|
-
// // );
|
|
152
|
-
// return <span>ddd</span>;
|
|
153
|
-
// },
|
|
154
|
-
// }),
|
|
155
153
|
],
|
|
156
154
|
[t]
|
|
157
155
|
);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/lib/orders.ts
|
|
2
|
+
function getReservationsLimitCount(order) {
|
|
3
|
+
if (!order?.items?.length) {
|
|
4
|
+
return 0;
|
|
5
|
+
}
|
|
6
|
+
return order.items.reduce((acc, item) => {
|
|
7
|
+
const offerLinkCount = item.offer?.inventory_item_link?.length;
|
|
8
|
+
const variantInventoryCount = item.variant?.inventory_items?.length;
|
|
9
|
+
return acc + (offerLinkCount || variantInventoryCount || 1);
|
|
10
|
+
}, 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
getReservationsLimitCount
|
|
15
|
+
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCollectionGallery
|
|
3
|
+
} from "./chunk-42R54Z2X.js";
|
|
1
4
|
import {
|
|
2
5
|
TextCell
|
|
3
6
|
} from "./chunk-JHIMVLB2.js";
|
|
7
|
+
import {
|
|
8
|
+
Thumbnail
|
|
9
|
+
} from "./chunk-WIYFXWRI.js";
|
|
4
10
|
|
|
5
11
|
// src/hooks/table/columns/use-collection-table-columns.tsx
|
|
6
12
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
7
13
|
import { useMemo } from "react";
|
|
8
14
|
import { useTranslation } from "react-i18next";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
16
|
var columnHelper = createColumnHelper();
|
|
11
17
|
var useCollectionTableColumns = () => {
|
|
12
18
|
const { t } = useTranslation();
|
|
@@ -14,7 +20,16 @@ var useCollectionTableColumns = () => {
|
|
|
14
20
|
() => [
|
|
15
21
|
columnHelper.accessor("title", {
|
|
16
22
|
header: t("fields.title"),
|
|
17
|
-
cell: ({ getValue }) =>
|
|
23
|
+
cell: ({ getValue, row }) => {
|
|
24
|
+
const gallery = getCollectionGallery(
|
|
25
|
+
row.original.images
|
|
26
|
+
);
|
|
27
|
+
const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Thumbnail, { src: thumbnailSrc }),
|
|
30
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: getValue() })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
18
33
|
}),
|
|
19
34
|
columnHelper.accessor("handle", {
|
|
20
35
|
header: t("fields.handle"),
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/pages/categories/common/components/category-image-fields/types.ts
|
|
2
|
+
var getCategoryGallery = (images) => (images ?? []).filter((image) => !image.type).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
|
|
3
|
+
var getCategoryIcon = (images) => (images ?? []).find((image) => image.type === "icon") ?? null;
|
|
4
|
+
|
|
5
|
+
// src/pages/categories/common/utils.ts
|
|
6
|
+
function getIsActiveProps(isActive, t) {
|
|
7
|
+
switch (isActive) {
|
|
8
|
+
case true:
|
|
9
|
+
return {
|
|
10
|
+
label: t("categories.fields.status.active"),
|
|
11
|
+
color: "green"
|
|
12
|
+
};
|
|
13
|
+
case false:
|
|
14
|
+
return {
|
|
15
|
+
label: t("categories.fields.status.inactive"),
|
|
16
|
+
color: "red"
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function getIsInternalProps(isInternal, t) {
|
|
21
|
+
switch (isInternal) {
|
|
22
|
+
case true:
|
|
23
|
+
return {
|
|
24
|
+
label: t("categories.fields.visibility.internal"),
|
|
25
|
+
color: "blue"
|
|
26
|
+
};
|
|
27
|
+
case false:
|
|
28
|
+
return {
|
|
29
|
+
label: t("categories.fields.visibility.public"),
|
|
30
|
+
color: "green"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function getCategoryPath(category) {
|
|
35
|
+
if (!category) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
const path = category.parent_category ? getCategoryPath(category.parent_category) : [];
|
|
39
|
+
path.push({ id: category.id, name: category.name });
|
|
40
|
+
return path;
|
|
41
|
+
}
|
|
42
|
+
function getCategoryChildren(category) {
|
|
43
|
+
if (!category || !category.category_children) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
return category.category_children.map((child) => ({
|
|
47
|
+
id: child.id,
|
|
48
|
+
name: child.name
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
getCategoryGallery,
|
|
54
|
+
getCategoryIcon,
|
|
55
|
+
getIsActiveProps,
|
|
56
|
+
getIsInternalProps,
|
|
57
|
+
getCategoryPath,
|
|
58
|
+
getCategoryChildren
|
|
59
|
+
};
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
} from "./chunk-OVPAOBZB.js";
|
|
27
27
|
import {
|
|
28
28
|
UploadMediaFormItem
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3L2DVCOC.js";
|
|
30
30
|
import {
|
|
31
31
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
32
32
|
ProductCreateSchema,
|
|
33
33
|
generateVariantsFromAttributes,
|
|
34
34
|
normalizeProductFormValues
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RT3G3GEK.js";
|
|
36
36
|
import {
|
|
37
37
|
ChipInput
|
|
38
38
|
} from "./chunk-KDE4HKH2.js";
|
|
@@ -9733,6 +9733,22 @@ var en_default = {
|
|
|
9733
9733
|
successToast_one: "Product was successfully removed from the collection.",
|
|
9734
9734
|
successToast_other: "Products were successfully removed from the collection."
|
|
9735
9735
|
}
|
|
9736
|
+
},
|
|
9737
|
+
media: {
|
|
9738
|
+
label: "Media",
|
|
9739
|
+
thumbnail: "Thumbnail",
|
|
9740
|
+
banner: "Banner",
|
|
9741
|
+
empty: {
|
|
9742
|
+
header: "No media yet",
|
|
9743
|
+
description: "Media added by the marketplace operator will appear here."
|
|
9744
|
+
}
|
|
9745
|
+
},
|
|
9746
|
+
icon: {
|
|
9747
|
+
label: "Icon",
|
|
9748
|
+
empty: {
|
|
9749
|
+
header: "No icon yet",
|
|
9750
|
+
description: "An icon added by the marketplace operator will appear here."
|
|
9751
|
+
}
|
|
9736
9752
|
}
|
|
9737
9753
|
},
|
|
9738
9754
|
categories: {
|
|
@@ -9776,6 +9792,22 @@ var en_default = {
|
|
|
9776
9792
|
header: "Organize",
|
|
9777
9793
|
action: "Edit ranking"
|
|
9778
9794
|
},
|
|
9795
|
+
media: {
|
|
9796
|
+
label: "Media",
|
|
9797
|
+
thumbnail: "Thumbnail",
|
|
9798
|
+
banner: "Banner",
|
|
9799
|
+
empty: {
|
|
9800
|
+
header: "No media yet",
|
|
9801
|
+
description: "Media added by the marketplace operator will appear here."
|
|
9802
|
+
}
|
|
9803
|
+
},
|
|
9804
|
+
icon: {
|
|
9805
|
+
label: "Icon",
|
|
9806
|
+
empty: {
|
|
9807
|
+
header: "No icon yet",
|
|
9808
|
+
description: "An icon added by the marketplace operator will appear here."
|
|
9809
|
+
}
|
|
9810
|
+
},
|
|
9779
9811
|
fields: {
|
|
9780
9812
|
visibility: {
|
|
9781
9813
|
label: "Visibility",
|
|
@@ -9899,6 +9931,14 @@ var en_default = {
|
|
|
9899
9931
|
description: "Update the offer's identity, shipping profile, or metadata.",
|
|
9900
9932
|
successToast: "Offer updated"
|
|
9901
9933
|
},
|
|
9934
|
+
variant: {
|
|
9935
|
+
edit: {
|
|
9936
|
+
successToast: "Offer variant was successfully updated."
|
|
9937
|
+
},
|
|
9938
|
+
shipping: {
|
|
9939
|
+
successToast: "Shipping configuration was successfully updated."
|
|
9940
|
+
}
|
|
9941
|
+
},
|
|
9902
9942
|
pricing: {
|
|
9903
9943
|
header: "Manage prices",
|
|
9904
9944
|
description: "Add, change, or remove prices on this offer's ladder.",
|
|
@@ -9913,7 +9953,6 @@ var en_default = {
|
|
|
9913
9953
|
},
|
|
9914
9954
|
delete: {
|
|
9915
9955
|
description: "You are about to delete offer {{sku}}. This cannot be undone.",
|
|
9916
|
-
descriptionByName: "You are about to delete the offer {{name}}. This action cannot be undone.",
|
|
9917
9956
|
successToast: "Offer was successfully deleted."
|
|
9918
9957
|
},
|
|
9919
9958
|
bulkDelete: {
|
|
@@ -9974,6 +10013,7 @@ var en_default = {
|
|
|
9974
10013
|
},
|
|
9975
10014
|
validation: {
|
|
9976
10015
|
skuRequired: "SKU is required for rows with a stock location enabled or a non-zero price.",
|
|
10016
|
+
shippingProfileRequired: "Select a shipping profile to publish this row.",
|
|
9977
10017
|
duplicateSku: "Another row in this submission already uses this SKU.",
|
|
9978
10018
|
duplicatePriceRule: "Another price row already has this combination of currency, region, customer group, and quantity bounds.",
|
|
9979
10019
|
duplicateInventoryItem: "This inventory item is already attached.",
|
|
@@ -10460,8 +10500,8 @@ var en_default = {
|
|
|
10460
10500
|
remainingQty: "{{count}} returnable",
|
|
10461
10501
|
noteHint: "Add an internal note for this exchange (visible only to your team).",
|
|
10462
10502
|
toast: {
|
|
10463
|
-
|
|
10464
|
-
|
|
10503
|
+
canceledSuccessfully: "Exchange canceled successfully",
|
|
10504
|
+
confirmedSuccessfully: "Exchange confirmed successfully"
|
|
10465
10505
|
},
|
|
10466
10506
|
manage: "Manage Exchange",
|
|
10467
10507
|
confirm: "Confirm Exchange",
|
|
@@ -10488,10 +10528,6 @@ var en_default = {
|
|
|
10488
10528
|
tooltips: {
|
|
10489
10529
|
onlyReturnShippingOptions: "This list will consist of only return shipping options."
|
|
10490
10530
|
},
|
|
10491
|
-
toast: {
|
|
10492
|
-
canceledSuccessfully: "Exchange canceled successfully",
|
|
10493
|
-
confirmedSuccessfully: "Exchange confirmed successfully"
|
|
10494
|
-
},
|
|
10495
10531
|
panel: {
|
|
10496
10532
|
title: "Exchange initiated",
|
|
10497
10533
|
description: "There is an open exchange request to be completed"
|
|
@@ -10533,7 +10569,6 @@ var en_default = {
|
|
|
10533
10569
|
},
|
|
10534
10570
|
fulfillment: {
|
|
10535
10571
|
cancelWarning: "You are about to cancel a fulfillment. This action cannot be undone.",
|
|
10536
|
-
cancelDisabledTooltip: "A shipped fulfillment can no longer be canceled.",
|
|
10537
10572
|
markAsDeliveredWarning: "You are about to mark fulfillment as delivered. This action cannot be undone.",
|
|
10538
10573
|
differentOptionSelected: "The selected shipping option is different from the one selected by the customer.",
|
|
10539
10574
|
disabledItemTooltip: "The location or shipping option you have selected don\u2019t allow fulfillment of this item.",
|
|
@@ -10557,7 +10592,7 @@ var en_default = {
|
|
|
10557
10592
|
markAsDelivered: "Mark as delivered",
|
|
10558
10593
|
itemsToFulfillDesc: "Choose items and quantities to fulfill",
|
|
10559
10594
|
locationDescription: "Choose which location you want to fulfill items from.",
|
|
10560
|
-
sendNotificationHint: "Notify
|
|
10595
|
+
sendNotificationHint: "Notify customer about fulfillment.",
|
|
10561
10596
|
methodDescription: "Choose a different shipping method from the one customer selected",
|
|
10562
10597
|
error: {
|
|
10563
10598
|
wrongQuantity: "Only one item is available for fulfillment",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CollectionListPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4EQIJMQT.js";
|
|
4
|
+
import "./chunk-II3ACSV2.js";
|
|
5
5
|
import "./chunk-BI2AYXZQ.js";
|
|
6
6
|
import "./chunk-MG4GKUJW.js";
|
|
7
7
|
import "./chunk-AYVH6Q5O.js";
|
|
8
8
|
import "./chunk-VOHEQ7B5.js";
|
|
9
9
|
import "./chunk-DY3XQPHC.js";
|
|
10
10
|
import "./chunk-VKOE5J66.js";
|
|
11
|
+
import "./chunk-42R54Z2X.js";
|
|
11
12
|
import "./chunk-PVZBDWLK.js";
|
|
12
13
|
import "./chunk-N3T24SEK.js";
|
|
13
14
|
import "./chunk-JHIMVLB2.js";
|
|
@@ -32,6 +33,7 @@ import "./chunk-YV6MK4PZ.js";
|
|
|
32
33
|
import "./chunk-THHRRYRS.js";
|
|
33
34
|
import "./chunk-LRD242C7.js";
|
|
34
35
|
import "./chunk-6FLSBL4Q.js";
|
|
36
|
+
import "./chunk-WIYFXWRI.js";
|
|
35
37
|
import "./chunk-INNFZYX2.js";
|
|
36
38
|
import "./chunk-KZYRC3WR.js";
|
|
37
39
|
import "./chunk-F4OJN2F2.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
TargetItem,
|
|
4
4
|
TaxRateRuleReferenceSchema,
|
|
5
5
|
createTaxRulePayload
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HZCSJLGH.js";
|
|
7
7
|
import "./chunk-Q4UVXS46.js";
|
|
8
8
|
import {
|
|
9
9
|
PercentageInput
|
|
@@ -12,13 +12,14 @@ 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-
|
|
15
|
+
import "./chunk-II3ACSV2.js";
|
|
16
16
|
import "./chunk-BI2AYXZQ.js";
|
|
17
17
|
import "./chunk-MG4GKUJW.js";
|
|
18
18
|
import "./chunk-AYVH6Q5O.js";
|
|
19
19
|
import "./chunk-VOHEQ7B5.js";
|
|
20
20
|
import "./chunk-DY3XQPHC.js";
|
|
21
21
|
import "./chunk-VKOE5J66.js";
|
|
22
|
+
import "./chunk-42R54Z2X.js";
|
|
22
23
|
import "./chunk-GJM5XI3E.js";
|
|
23
24
|
import "./chunk-PVZBDWLK.js";
|
|
24
25
|
import "./chunk-27WLUOI2.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductCreate,
|
|
3
3
|
ProductCreatePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R4JLYNUA.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-
|
|
17
|
+
import "./chunk-3L2DVCOC.js";
|
|
18
18
|
import {
|
|
19
19
|
EditProductMediaSchema,
|
|
20
20
|
MediaSchema,
|
|
21
21
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
22
22
|
ProductCreateSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RT3G3GEK.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-
|
|
30
|
+
import "./chunk-ZZIJSTXN.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-
|
|
6
|
+
} from "./chunk-HZCSJLGH.js";
|
|
7
7
|
import "./chunk-Q4UVXS46.js";
|
|
8
8
|
import {
|
|
9
9
|
PercentageInput
|
|
@@ -12,13 +12,14 @@ 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-
|
|
15
|
+
import "./chunk-II3ACSV2.js";
|
|
16
16
|
import "./chunk-BI2AYXZQ.js";
|
|
17
17
|
import "./chunk-MG4GKUJW.js";
|
|
18
18
|
import "./chunk-AYVH6Q5O.js";
|
|
19
19
|
import "./chunk-VOHEQ7B5.js";
|
|
20
20
|
import "./chunk-DY3XQPHC.js";
|
|
21
21
|
import "./chunk-VKOE5J66.js";
|
|
22
|
+
import "./chunk-42R54Z2X.js";
|
|
22
23
|
import "./chunk-GJM5XI3E.js";
|
|
23
24
|
import "./chunk-PVZBDWLK.js";
|
|
24
25
|
import "./chunk-27WLUOI2.js";
|
|
@@ -46,7 +46,7 @@ var EditOfferVariantForm = ({ offer }) => {
|
|
|
46
46
|
sku ? { sku } : {},
|
|
47
47
|
{
|
|
48
48
|
onSuccess: () => {
|
|
49
|
-
toast.success(t("offers.edit.successToast"));
|
|
49
|
+
toast.success(t("offers.variant.edit.successToast"));
|
|
50
50
|
handleSuccess();
|
|
51
51
|
},
|
|
52
52
|
onError: (error) => toast.error(error.message)
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
FileUpload,
|
|
9
9
|
MediaSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RT3G3GEK.js";
|
|
11
11
|
import "./chunk-AJLGY3LQ.js";
|
|
12
12
|
import "./chunk-SMQT3ZNO.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ZZIJSTXN.js";
|
|
14
14
|
import "./chunk-TKGWSUEI.js";
|
|
15
15
|
import {
|
|
16
16
|
KeyboundForm
|