@mercurjs/vendor 2.2.0-rc.2 → 2.2.0
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]-MIASQVLP.js → [id]-FOWK6QIJ.js} +1 -1
- package/dist/{[id]-3HIZGJWE.js → [id]-H3YKIFO3.js} +2 -2
- package/dist/{[id]-ONBG5DZJ.js → [id]-WUXFJPPB.js} +3 -3
- package/dist/{add-ZIP3VEAV.js → add-HARVSLKD.js} +4 -3
- package/dist/{add-FDIWOFVE.js → add-IEIH4CBT.js} +2 -1
- package/dist/{add-promotions-3BALABRA.js → add-promotions-7KCUDY3S.js} +3 -3
- package/dist/{allocate-items-5HHGU3XW.js → allocate-items-646J75L2.js} +1 -1
- package/dist/{areas-XQE3AYPZ.js → areas-VO7NUUUL.js} +7 -5
- package/dist/{chunk-UDPMSL6L.js → chunk-53JNB4BP.js} +1 -1
- package/dist/{chunk-XRNDVICA.js → chunk-BNOKKKUU.js} +5 -2
- package/dist/{chunk-ASN3XS2R.js → chunk-D6XR2USM.js} +2 -2
- package/dist/{chunk-VR7P4DAZ.js → chunk-DSNCEHLY.js} +1 -1
- package/dist/{chunk-55TS752B.js → chunk-E73SSHJR.js} +4 -2
- package/dist/{chunk-H3PVTKOP.js → chunk-JDMNEMRJ.js} +2 -2
- package/dist/{chunk-GGXGKMYK.js → chunk-S5KWI3MM.js} +1 -1
- package/dist/{chunk-OATVHDPZ.js → chunk-SCPQYA26.js} +1 -1
- package/dist/{chunk-E5VLRRZR.js → chunk-UWU6VSO4.js} +1 -1
- package/dist/{chunk-DREOA2LP.js → chunk-X6ZQMFCT.js} +1 -1
- package/dist/{chunk-57ZJ6HTU.js → chunk-YXEC5XAV.js} +3 -0
- package/dist/{chunk-ESXMD6CR.js → chunk-ZZ4JC4WE.js} +36393 -2091
- package/dist/{chunk-RZHVUQ7G.js → chunk-ZZ7T7GN5.js} +1 -1
- package/dist/{create-B4VIR7YP.js → create-7VKH255E.js} +7 -5
- package/dist/{create-4ZRQVXT5.js → create-DU2V6X5H.js} +2 -2
- package/dist/{create-XU35U2HL.js → create-G6VJD52A.js} +4 -4
- package/dist/{create-3ZQFAKYR.js → create-Y2FZ4565.js} +14 -13
- package/dist/{create-7Z63KA2P.js → create-Z6ZHEAKU.js} +9 -9
- package/dist/{edit-ISFEI7YX.js → edit-3AM5DZE7.js} +2 -2
- package/dist/{edit-QII5YJ2R.js → edit-3HMTDPZK.js} +3 -3
- package/dist/{edit-5XPDTCB5.js → edit-CKO32TA3.js} +3 -3
- package/dist/{edit-FF2ZWS6U.js → edit-H5FJ45ZT.js} +5 -5
- package/dist/{edit-NTTJKLUI.js → edit-RY35FORN.js} +5 -5
- package/dist/index.js +32 -32
- package/dist/{login-FK6ATIQV.js → login-VMLJYOCF.js} +1 -1
- package/dist/{media-2Z2UIOQU.js → media-ZXUMWWXV.js} +3 -3
- package/dist/{offer-create-page-QAHHXLLJ.js → offer-create-page-VHNJL3UO.js} +1 -1
- package/dist/pages/index.js +10 -10
- package/dist/{price-lists-5CSCTVWN.js → price-lists-5C4MCWWR.js} +2 -2
- package/dist/{pricing-NHI4NSLA.js → pricing-OQ4RKZO5.js} +7 -5
- package/dist/{products-27ASSSVK.js → products-QIGSKI65.js} +4 -4
- package/dist/{promotions-E4Z6APSX.js → promotions-JT5PFYPT.js} +4 -4
- package/dist/{register-IKY5DDUR.js → register-S4EBPL7B.js} +3 -1
- package/dist/{reset-password-RMKCQLBX.js → reset-password-VTYSKEFH.js} +1 -1
- package/dist/{stock-VMND7PJY.js → stock-QOUDJSFO.js} +2 -2
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoZoneForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E73SSHJR.js";
|
|
4
4
|
import {
|
|
5
5
|
GEO_ZONE_STACKED_MODAL_ID
|
|
6
6
|
} from "./chunk-BCU3FKP2.js";
|
|
@@ -40,7 +40,7 @@ import "./chunk-DTGEFKK4.js";
|
|
|
40
40
|
import "./chunk-NBMM2TZK.js";
|
|
41
41
|
|
|
42
42
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zones/create/index.tsx
|
|
43
|
-
import {
|
|
43
|
+
import { useParams } from "react-router-dom";
|
|
44
44
|
|
|
45
45
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zones/create/_components/create-service-zone-form.tsx
|
|
46
46
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -148,9 +148,11 @@ function LocationCreateServiceZone() {
|
|
|
148
148
|
);
|
|
149
149
|
const type = fulfillmentSet?.type === "pickup" /* Pickup */ ? "pickup" /* Pickup */ : "shipping" /* Shipping */;
|
|
150
150
|
if (!isPending && !isFetching && !fulfillmentSet) {
|
|
151
|
-
throw
|
|
152
|
-
{
|
|
153
|
-
|
|
151
|
+
throw new Response(
|
|
152
|
+
JSON.stringify({
|
|
153
|
+
message: `Fulfillment set with ID: ${fset_id} was not found.`
|
|
154
|
+
}),
|
|
155
|
+
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
154
156
|
);
|
|
155
157
|
}
|
|
156
158
|
if (isError) {
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
PriceListRulesSchema,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6ZQMFCT.js";
|
|
7
7
|
import {
|
|
8
8
|
exctractPricesFromProducts,
|
|
9
9
|
isProductRow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BNOKKKUU.js";
|
|
11
11
|
import "./chunk-6IJMSVC6.js";
|
|
12
12
|
import {
|
|
13
13
|
useProductTableColumns
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductCreate,
|
|
3
3
|
ProductCreatePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D6XR2USM.js";
|
|
5
5
|
import "./chunk-LEWA4BPH.js";
|
|
6
6
|
import "./chunk-5FBQOAXU.js";
|
|
7
7
|
import "./chunk-HJ56YXBU.js";
|
|
@@ -9,13 +9,13 @@ import "./chunk-IQPN4PZJ.js";
|
|
|
9
9
|
import "./chunk-YVCBMOJG.js";
|
|
10
10
|
import "./chunk-P76QYIFF.js";
|
|
11
11
|
import "./chunk-OVPAOBZB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SCPQYA26.js";
|
|
13
13
|
import {
|
|
14
14
|
EditProductMediaSchema,
|
|
15
15
|
MediaSchema,
|
|
16
16
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
17
17
|
ProductCreateSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UWU6VSO4.js";
|
|
19
19
|
import "./chunk-AJLGY3LQ.js";
|
|
20
20
|
import "./chunk-SMQT3ZNO.js";
|
|
21
21
|
import "./chunk-KDE4HKH2.js";
|
|
@@ -23,7 +23,7 @@ import "./chunk-4OQLPIUZ.js";
|
|
|
23
23
|
import "./chunk-NWU7EGGF.js";
|
|
24
24
|
import "./chunk-VBRTC2VU.js";
|
|
25
25
|
import "./chunk-WJ5EU3KW.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-ZZ4JC4WE.js";
|
|
27
27
|
import "./chunk-TKGWSUEI.js";
|
|
28
28
|
import "./chunk-SITRHMZZ.js";
|
|
29
29
|
import "./chunk-GDWBOQI5.js";
|
|
@@ -81,22 +81,23 @@ import { useForm, useWatch } from "react-hook-form";
|
|
|
81
81
|
import { Trans, useTranslation } from "react-i18next";
|
|
82
82
|
|
|
83
83
|
// src/pages/promotions/create/create-promotion-form/form-schema.ts
|
|
84
|
+
import i18n from "i18next";
|
|
84
85
|
import { z } from "zod";
|
|
85
86
|
var RuleSchema = z.array(
|
|
86
87
|
z.object({
|
|
87
88
|
id: z.string().optional(),
|
|
88
|
-
attribute: z.string().min(1, { message: "
|
|
89
|
+
attribute: z.string().min(1, { message: i18n.t("validation.requiredField") }),
|
|
89
90
|
operator: z.preprocess(
|
|
90
91
|
(val) => val === "" ? void 0 : val,
|
|
91
92
|
z.enum(["gt", "lt", "eq", "ne", "in", "lte", "gte"], {
|
|
92
|
-
required_error: "
|
|
93
|
-
invalid_type_error: "
|
|
93
|
+
required_error: i18n.t("validation.requiredField"),
|
|
94
|
+
invalid_type_error: i18n.t("validation.requiredField")
|
|
94
95
|
})
|
|
95
96
|
),
|
|
96
97
|
values: z.union([
|
|
97
|
-
z.number().min(1, { message: "
|
|
98
|
-
z.string().min(1, { message: "
|
|
99
|
-
z.array(z.string()).min(1, { message: "
|
|
98
|
+
z.number().min(1, { message: i18n.t("validation.requiredField") }),
|
|
99
|
+
z.string().min(1, { message: i18n.t("validation.requiredField") }),
|
|
100
|
+
z.array(z.string()).min(1, { message: i18n.t("validation.requiredField") })
|
|
100
101
|
]),
|
|
101
102
|
required: z.boolean().optional(),
|
|
102
103
|
disguised: z.boolean().optional(),
|
|
@@ -132,7 +133,7 @@ var CreatePromotionSchema = z.object({
|
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
path: ["application_method.max_quantity"],
|
|
135
|
-
message:
|
|
136
|
+
message: i18n.t("validation.requiredField")
|
|
136
137
|
}
|
|
137
138
|
);
|
|
138
139
|
|
|
@@ -178,8 +179,8 @@ var templates = [
|
|
|
178
179
|
{
|
|
179
180
|
id: "percentage_off_product",
|
|
180
181
|
type: "standard",
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
titleKey: "promotions.templates.percentageOffProduct.title",
|
|
183
|
+
descriptionKey: "promotions.templates.percentageOffProduct.description",
|
|
183
184
|
hiddenFields: [...commonHiddenFields],
|
|
184
185
|
defaults: {
|
|
185
186
|
is_automatic: "false",
|
|
@@ -566,8 +567,8 @@ var CreatePromotionForm = () => {
|
|
|
566
567
|
RadioGroup.ChoiceBox,
|
|
567
568
|
{
|
|
568
569
|
value: template.id,
|
|
569
|
-
label: template.
|
|
570
|
-
description: template.
|
|
570
|
+
label: t(template.titleKey),
|
|
571
|
+
description: t(template.descriptionKey)
|
|
571
572
|
},
|
|
572
573
|
template.id
|
|
573
574
|
);
|
|
@@ -595,14 +596,14 @@ var CreatePromotionForm = () => {
|
|
|
595
596
|
className: "text-fg-base",
|
|
596
597
|
children: [
|
|
597
598
|
t(`promotions.sections.details`),
|
|
598
|
-
currentTemplate?.
|
|
599
|
+
currentTemplate?.titleKey && /* @__PURE__ */ jsx(
|
|
599
600
|
Badge,
|
|
600
601
|
{
|
|
601
602
|
className: "ml-2 align-middle",
|
|
602
603
|
color: "grey",
|
|
603
604
|
size: "2xsmall",
|
|
604
605
|
rounded: "full",
|
|
605
|
-
children: currentTemplate
|
|
606
|
+
children: t(currentTemplate.titleKey)
|
|
606
607
|
}
|
|
607
608
|
)
|
|
608
609
|
]
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
import "./chunk-NBMM2TZK.js";
|
|
82
82
|
|
|
83
83
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/create/index.tsx
|
|
84
|
-
import {
|
|
84
|
+
import { useParams, useSearchParams } from "react-router-dom";
|
|
85
85
|
|
|
86
86
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/create/_components/create-shipping-options-form.tsx
|
|
87
87
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -612,20 +612,20 @@ function LocationServiceZoneShippingOptionCreate() {
|
|
|
612
612
|
(f) => f.id === fset_id
|
|
613
613
|
);
|
|
614
614
|
if (!isPending && !isFetching && !fulfillmentSet) {
|
|
615
|
-
throw
|
|
616
|
-
{
|
|
615
|
+
throw new Response(
|
|
616
|
+
JSON.stringify({
|
|
617
617
|
message: `Fulfillment set with ID ${fset_id} was not found`
|
|
618
|
-
},
|
|
619
|
-
404
|
|
618
|
+
}),
|
|
619
|
+
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
620
620
|
);
|
|
621
621
|
}
|
|
622
622
|
const zone = fulfillmentSet?.service_zones?.find((z2) => z2.id === zone_id);
|
|
623
623
|
if (!isPending && !isFetching && !zone) {
|
|
624
|
-
throw
|
|
625
|
-
{
|
|
624
|
+
throw new Response(
|
|
625
|
+
JSON.stringify({
|
|
626
626
|
message: `Service zone with ID ${zone_id} was not found`
|
|
627
|
-
},
|
|
628
|
-
404
|
|
627
|
+
}),
|
|
628
|
+
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
629
629
|
);
|
|
630
630
|
}
|
|
631
631
|
if (isError) {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
FileUpload,
|
|
9
9
|
MediaSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UWU6VSO4.js";
|
|
11
11
|
import "./chunk-AJLGY3LQ.js";
|
|
12
12
|
import "./chunk-SMQT3ZNO.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ZZ4JC4WE.js";
|
|
14
14
|
import "./chunk-TKGWSUEI.js";
|
|
15
15
|
import {
|
|
16
16
|
KeyboundForm
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListPricesEditForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JDMNEMRJ.js";
|
|
4
4
|
import {
|
|
5
5
|
usePriceListCurrencyData
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-X6ZQMFCT.js";
|
|
7
|
+
import "./chunk-BNOKKKUU.js";
|
|
8
8
|
import "./chunk-6IJMSVC6.js";
|
|
9
9
|
import "./chunk-5FBQOAXU.js";
|
|
10
10
|
import "./chunk-IQPN4PZJ.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListPricesEditForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JDMNEMRJ.js";
|
|
4
4
|
import {
|
|
5
5
|
usePriceListCurrencyData
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-X6ZQMFCT.js";
|
|
7
|
+
import "./chunk-BNOKKKUU.js";
|
|
8
8
|
import "./chunk-6IJMSVC6.js";
|
|
9
9
|
import "./chunk-5FBQOAXU.js";
|
|
10
10
|
import "./chunk-IQPN4PZJ.js";
|
|
@@ -37,7 +37,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
37
37
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/edit/index.tsx
|
|
38
38
|
import { Heading } from "@medusajs/ui";
|
|
39
39
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
40
|
-
import {
|
|
40
|
+
import { useParams } from "react-router-dom";
|
|
41
41
|
|
|
42
42
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/edit/_components/edit-shipping-option-form.tsx
|
|
43
43
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -213,11 +213,11 @@ var LocationServiceZoneShippingOptionEdit = () => {
|
|
|
213
213
|
});
|
|
214
214
|
const shippingOption = shipping_options?.find((so) => so?.id === so_id);
|
|
215
215
|
if (!isPending && !isFetching && !shippingOption) {
|
|
216
|
-
throw
|
|
217
|
-
{
|
|
216
|
+
throw new Response(
|
|
217
|
+
JSON.stringify({
|
|
218
218
|
message: `Shipping option with ID ${so_id} was not found`
|
|
219
|
-
},
|
|
220
|
-
404
|
|
219
|
+
}),
|
|
220
|
+
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
223
|
if (isError) {
|
|
@@ -24,7 +24,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
24
24
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/edit/index.tsx
|
|
25
25
|
import { Heading } from "@medusajs/ui";
|
|
26
26
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
27
|
-
import {
|
|
27
|
+
import { useParams } from "react-router-dom";
|
|
28
28
|
|
|
29
29
|
// src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/edit/_components/edit-service-zone-form.tsx
|
|
30
30
|
import { Button, InlineTip, Input, toast } from "@medusajs/ui";
|
|
@@ -110,11 +110,11 @@ var LocationServiceZoneEdit = () => {
|
|
|
110
110
|
});
|
|
111
111
|
const serviceZone = stock_location?.fulfillment_sets?.find((f) => f.id === fset_id)?.service_zones.find((z) => z.id === zone_id);
|
|
112
112
|
if (!isPending && !isFetching && !serviceZone) {
|
|
113
|
-
throw
|
|
114
|
-
{
|
|
113
|
+
throw new Response(
|
|
114
|
+
JSON.stringify({
|
|
115
115
|
message: `Service zone with ID ${zone_id} was not found`
|
|
116
|
-
},
|
|
117
|
-
404
|
|
116
|
+
}),
|
|
117
|
+
{ status: 404, headers: { "Content-Type": "application/json" } }
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
if (isError) {
|
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-
|
|
11
|
+
} from "./chunk-ZZ4JC4WE.js";
|
|
12
12
|
import "./chunk-TKGWSUEI.js";
|
|
13
13
|
import "./chunk-SITRHMZZ.js";
|
|
14
14
|
import "./chunk-GDWBOQI5.js";
|
|
@@ -2925,7 +2925,7 @@ function getRouteMap({
|
|
|
2925
2925
|
{
|
|
2926
2926
|
path: "",
|
|
2927
2927
|
lazy: async () => {
|
|
2928
|
-
const { productListLoader, ProductListPage } = await import("./products-
|
|
2928
|
+
const { productListLoader, ProductListPage } = await import("./products-QIGSKI65.js");
|
|
2929
2929
|
return {
|
|
2930
2930
|
Component: ProductListPage,
|
|
2931
2931
|
loader: productListLoader
|
|
@@ -2935,7 +2935,7 @@ function getRouteMap({
|
|
|
2935
2935
|
{
|
|
2936
2936
|
path: "create",
|
|
2937
2937
|
lazy: async () => {
|
|
2938
|
-
const { ProductCreatePage } = await import("./create-
|
|
2938
|
+
const { ProductCreatePage } = await import("./create-G6VJD52A.js");
|
|
2939
2939
|
return {
|
|
2940
2940
|
Component: ProductCreatePage
|
|
2941
2941
|
};
|
|
@@ -2984,7 +2984,7 @@ function getRouteMap({
|
|
|
2984
2984
|
},
|
|
2985
2985
|
{
|
|
2986
2986
|
path: "media",
|
|
2987
|
-
lazy: () => import("./media-
|
|
2987
|
+
lazy: () => import("./media-ZXUMWWXV.js")
|
|
2988
2988
|
},
|
|
2989
2989
|
{
|
|
2990
2990
|
path: "attributes",
|
|
@@ -2996,7 +2996,7 @@ function getRouteMap({
|
|
|
2996
2996
|
},
|
|
2997
2997
|
{
|
|
2998
2998
|
path: "attributes/add",
|
|
2999
|
-
lazy: () => import("./add-
|
|
2999
|
+
lazy: () => import("./add-IEIH4CBT.js")
|
|
3000
3000
|
},
|
|
3001
3001
|
{
|
|
3002
3002
|
path: "attributes/:attribute_id/edit",
|
|
@@ -3089,7 +3089,7 @@ function getRouteMap({
|
|
|
3089
3089
|
},
|
|
3090
3090
|
{
|
|
3091
3091
|
path: "allocate-items",
|
|
3092
|
-
lazy: () => import("./allocate-items-
|
|
3092
|
+
lazy: () => import("./allocate-items-646J75L2.js")
|
|
3093
3093
|
},
|
|
3094
3094
|
{
|
|
3095
3095
|
path: ":f_id/create-shipment",
|
|
@@ -3396,7 +3396,7 @@ function getRouteMap({
|
|
|
3396
3396
|
children: [
|
|
3397
3397
|
{
|
|
3398
3398
|
path: "create",
|
|
3399
|
-
lazy: () => import("./offer-create-page-
|
|
3399
|
+
lazy: () => import("./offer-create-page-VHNJL3UO.js")
|
|
3400
3400
|
}
|
|
3401
3401
|
]
|
|
3402
3402
|
},
|
|
@@ -3497,7 +3497,7 @@ function getRouteMap({
|
|
|
3497
3497
|
},
|
|
3498
3498
|
{
|
|
3499
3499
|
path: "stock",
|
|
3500
|
-
lazy: () => import("./stock-
|
|
3500
|
+
lazy: () => import("./stock-QOUDJSFO.js")
|
|
3501
3501
|
}
|
|
3502
3502
|
]
|
|
3503
3503
|
},
|
|
@@ -3559,7 +3559,7 @@ function getRouteMap({
|
|
|
3559
3559
|
{
|
|
3560
3560
|
path: "",
|
|
3561
3561
|
lazy: async () => {
|
|
3562
|
-
const { PromotionListPage } = await import("./promotions-
|
|
3562
|
+
const { PromotionListPage } = await import("./promotions-JT5PFYPT.js");
|
|
3563
3563
|
return {
|
|
3564
3564
|
Component: PromotionListPage
|
|
3565
3565
|
};
|
|
@@ -3567,14 +3567,14 @@ function getRouteMap({
|
|
|
3567
3567
|
children: [
|
|
3568
3568
|
{
|
|
3569
3569
|
path: "create",
|
|
3570
|
-
lazy: () => import("./create-
|
|
3570
|
+
lazy: () => import("./create-Y2FZ4565.js")
|
|
3571
3571
|
}
|
|
3572
3572
|
]
|
|
3573
3573
|
},
|
|
3574
3574
|
{
|
|
3575
3575
|
path: ":id",
|
|
3576
3576
|
lazy: async () => {
|
|
3577
|
-
const { loader } = await import("./[id]-
|
|
3577
|
+
const { loader } = await import("./[id]-H3YKIFO3.js");
|
|
3578
3578
|
const { Breadcrumb } = await import("./breadcrumb-4O2P6XRS.js");
|
|
3579
3579
|
return {
|
|
3580
3580
|
Component: Outlet4,
|
|
@@ -3588,7 +3588,7 @@ function getRouteMap({
|
|
|
3588
3588
|
{
|
|
3589
3589
|
path: "",
|
|
3590
3590
|
lazy: async () => {
|
|
3591
|
-
const { PromotionDetailPage } = await import("./[id]-
|
|
3591
|
+
const { PromotionDetailPage } = await import("./[id]-H3YKIFO3.js");
|
|
3592
3592
|
return {
|
|
3593
3593
|
Component: PromotionDetailPage
|
|
3594
3594
|
};
|
|
@@ -3636,7 +3636,7 @@ function getRouteMap({
|
|
|
3636
3636
|
{
|
|
3637
3637
|
path: ":id",
|
|
3638
3638
|
lazy: async () => {
|
|
3639
|
-
const { loader } = await import("./[id]-
|
|
3639
|
+
const { loader } = await import("./[id]-WUXFJPPB.js");
|
|
3640
3640
|
const { Breadcrumb } = await import("./breadcrumb-WIB5IGST.js");
|
|
3641
3641
|
return {
|
|
3642
3642
|
Component: Outlet4,
|
|
@@ -3650,7 +3650,7 @@ function getRouteMap({
|
|
|
3650
3650
|
{
|
|
3651
3651
|
path: "",
|
|
3652
3652
|
lazy: async () => {
|
|
3653
|
-
const { CampaignDetailPage } = await import("./[id]-
|
|
3653
|
+
const { CampaignDetailPage } = await import("./[id]-WUXFJPPB.js");
|
|
3654
3654
|
return {
|
|
3655
3655
|
Component: CampaignDetailPage
|
|
3656
3656
|
};
|
|
@@ -3671,7 +3671,7 @@ function getRouteMap({
|
|
|
3671
3671
|
{
|
|
3672
3672
|
path: "add-promotions",
|
|
3673
3673
|
lazy: async () => {
|
|
3674
|
-
const { AddPromotionsPage } = await import("./add-promotions-
|
|
3674
|
+
const { AddPromotionsPage } = await import("./add-promotions-7KCUDY3S.js");
|
|
3675
3675
|
return {
|
|
3676
3676
|
Component: AddPromotionsPage
|
|
3677
3677
|
};
|
|
@@ -3692,20 +3692,20 @@ function getRouteMap({
|
|
|
3692
3692
|
{
|
|
3693
3693
|
path: "",
|
|
3694
3694
|
lazy: async () => {
|
|
3695
|
-
const { PriceListListPage } = await import("./price-lists-
|
|
3695
|
+
const { PriceListListPage } = await import("./price-lists-5C4MCWWR.js");
|
|
3696
3696
|
return { Component: PriceListListPage };
|
|
3697
3697
|
},
|
|
3698
3698
|
children: [
|
|
3699
3699
|
{
|
|
3700
3700
|
path: "create",
|
|
3701
|
-
lazy: () => import("./create-
|
|
3701
|
+
lazy: () => import("./create-DU2V6X5H.js")
|
|
3702
3702
|
}
|
|
3703
3703
|
]
|
|
3704
3704
|
},
|
|
3705
3705
|
{
|
|
3706
3706
|
path: ":id",
|
|
3707
3707
|
lazy: async () => {
|
|
3708
|
-
const { loader } = await import("./[id]-
|
|
3708
|
+
const { loader } = await import("./[id]-FOWK6QIJ.js");
|
|
3709
3709
|
const { Breadcrumb } = await import("./breadcrumb-UVODV3YP.js");
|
|
3710
3710
|
return {
|
|
3711
3711
|
Component: Outlet4,
|
|
@@ -3719,7 +3719,7 @@ function getRouteMap({
|
|
|
3719
3719
|
{
|
|
3720
3720
|
path: "",
|
|
3721
3721
|
lazy: async () => {
|
|
3722
|
-
const { PriceListDetailPage } = await import("./[id]-
|
|
3722
|
+
const { PriceListDetailPage } = await import("./[id]-FOWK6QIJ.js");
|
|
3723
3723
|
return { Component: PriceListDetailPage };
|
|
3724
3724
|
},
|
|
3725
3725
|
children: [
|
|
@@ -3733,15 +3733,15 @@ function getRouteMap({
|
|
|
3733
3733
|
},
|
|
3734
3734
|
{
|
|
3735
3735
|
path: "products/add",
|
|
3736
|
-
lazy: () => import("./add-
|
|
3736
|
+
lazy: () => import("./add-HARVSLKD.js")
|
|
3737
3737
|
},
|
|
3738
3738
|
{
|
|
3739
3739
|
path: "products/edit",
|
|
3740
|
-
lazy: () => import("./edit-
|
|
3740
|
+
lazy: () => import("./edit-3HMTDPZK.js")
|
|
3741
3741
|
},
|
|
3742
3742
|
{
|
|
3743
3743
|
path: "products/:variant_id/edit",
|
|
3744
|
-
lazy: () => import("./edit-
|
|
3744
|
+
lazy: () => import("./edit-CKO32TA3.js")
|
|
3745
3745
|
}
|
|
3746
3746
|
]
|
|
3747
3747
|
}
|
|
@@ -3818,7 +3818,7 @@ function getRouteMap({
|
|
|
3818
3818
|
children: [
|
|
3819
3819
|
{
|
|
3820
3820
|
path: "edit",
|
|
3821
|
-
lazy: () => import("./edit-
|
|
3821
|
+
lazy: () => import("./edit-3AM5DZE7.js")
|
|
3822
3822
|
},
|
|
3823
3823
|
{
|
|
3824
3824
|
path: "address",
|
|
@@ -3950,27 +3950,27 @@ function getRouteMap({
|
|
|
3950
3950
|
},
|
|
3951
3951
|
{
|
|
3952
3952
|
path: "fulfillment-set/:fset_id/service-zones/create",
|
|
3953
|
-
lazy: () => import("./create-
|
|
3953
|
+
lazy: () => import("./create-7VKH255E.js")
|
|
3954
3954
|
},
|
|
3955
3955
|
{
|
|
3956
3956
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/edit",
|
|
3957
|
-
lazy: () => import("./edit-
|
|
3957
|
+
lazy: () => import("./edit-RY35FORN.js")
|
|
3958
3958
|
},
|
|
3959
3959
|
{
|
|
3960
3960
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/areas",
|
|
3961
|
-
lazy: () => import("./areas-
|
|
3961
|
+
lazy: () => import("./areas-VO7NUUUL.js")
|
|
3962
3962
|
},
|
|
3963
3963
|
{
|
|
3964
3964
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/create",
|
|
3965
|
-
lazy: () => import("./create-
|
|
3965
|
+
lazy: () => import("./create-Z6ZHEAKU.js")
|
|
3966
3966
|
},
|
|
3967
3967
|
{
|
|
3968
3968
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/edit",
|
|
3969
|
-
lazy: () => import("./edit-
|
|
3969
|
+
lazy: () => import("./edit-H5FJ45ZT.js")
|
|
3970
3970
|
},
|
|
3971
3971
|
{
|
|
3972
3972
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/pricing",
|
|
3973
|
-
lazy: () => import("./pricing-
|
|
3973
|
+
lazy: () => import("./pricing-OQ4RKZO5.js")
|
|
3974
3974
|
}
|
|
3975
3975
|
]
|
|
3976
3976
|
}
|
|
@@ -4225,18 +4225,18 @@ function getRouteMap({
|
|
|
4225
4225
|
{
|
|
4226
4226
|
path: "/login",
|
|
4227
4227
|
lazy: async () => {
|
|
4228
|
-
const { LoginPage } = await import("./login-
|
|
4228
|
+
const { LoginPage } = await import("./login-VMLJYOCF.js");
|
|
4229
4229
|
return { Component: LoginPage };
|
|
4230
4230
|
}
|
|
4231
4231
|
},
|
|
4232
4232
|
{
|
|
4233
4233
|
path: "/reset-password",
|
|
4234
|
-
lazy: () => import("./reset-password-
|
|
4234
|
+
lazy: () => import("./reset-password-VTYSKEFH.js")
|
|
4235
4235
|
},
|
|
4236
4236
|
{
|
|
4237
4237
|
path: "/register",
|
|
4238
4238
|
lazy: async () => {
|
|
4239
|
-
const { RegisterPage } = await import("./register-
|
|
4239
|
+
const { RegisterPage } = await import("./register-S4EBPL7B.js");
|
|
4240
4240
|
return { Component: RegisterPage };
|
|
4241
4241
|
}
|
|
4242
4242
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UploadMediaFormItem
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SCPQYA26.js";
|
|
4
4
|
import {
|
|
5
5
|
EditProductMediaSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UWU6VSO4.js";
|
|
7
7
|
import "./chunk-AJLGY3LQ.js";
|
|
8
8
|
import "./chunk-SMQT3ZNO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZZ4JC4WE.js";
|
|
10
10
|
import "./chunk-TKGWSUEI.js";
|
|
11
11
|
import {
|
|
12
12
|
KeyboundForm
|
|
@@ -652,7 +652,7 @@ var CreateOfferForm = () => {
|
|
|
652
652
|
toast.success(t("offers.create.successToast"));
|
|
653
653
|
handleSuccess("/offers");
|
|
654
654
|
} catch (err) {
|
|
655
|
-
const message = err instanceof Error ? err.message : "
|
|
655
|
+
const message = err instanceof Error ? err.message : t("general.unknownError");
|
|
656
656
|
const attributed = attachErrorToRow(message, rows, form);
|
|
657
657
|
if (!attributed) {
|
|
658
658
|
toast.error(message);
|
package/dist/pages/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginPage
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YXEC5XAV.js";
|
|
4
4
|
import "../chunk-QEFPTNPC.js";
|
|
5
5
|
import "../chunk-CP5IL4P6.js";
|
|
6
6
|
import {
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
} from "../chunk-KUH5ZX7G.js";
|
|
25
25
|
import {
|
|
26
26
|
PriceListListPage
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-53JNB4BP.js";
|
|
28
28
|
import "../chunk-4F5GP7J7.js";
|
|
29
29
|
import "../chunk-DSY5PNK6.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-BNOKKKUU.js";
|
|
31
31
|
import "../chunk-6IJMSVC6.js";
|
|
32
32
|
import {
|
|
33
33
|
CampaignListPage
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
import "../chunk-7TIZP4YG.js";
|
|
36
36
|
import {
|
|
37
37
|
PromotionListPage
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
38
|
+
} from "../chunk-ZZ7T7GN5.js";
|
|
39
|
+
import "../chunk-DSNCEHLY.js";
|
|
40
|
+
import "../chunk-S5KWI3MM.js";
|
|
41
41
|
import {
|
|
42
42
|
InventoryListPage
|
|
43
43
|
} from "../chunk-N7YRIXJA.js";
|
|
@@ -110,7 +110,7 @@ import "../chunk-PHOCVOZ5.js";
|
|
|
110
110
|
import {
|
|
111
111
|
ProductCreate,
|
|
112
112
|
ProductCreatePage
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-D6XR2USM.js";
|
|
114
114
|
import "../chunk-LEWA4BPH.js";
|
|
115
115
|
import "../chunk-5FBQOAXU.js";
|
|
116
116
|
import "../chunk-HJ56YXBU.js";
|
|
@@ -118,13 +118,13 @@ import "../chunk-IQPN4PZJ.js";
|
|
|
118
118
|
import "../chunk-YVCBMOJG.js";
|
|
119
119
|
import "../chunk-P76QYIFF.js";
|
|
120
120
|
import "../chunk-OVPAOBZB.js";
|
|
121
|
-
import "../chunk-
|
|
121
|
+
import "../chunk-SCPQYA26.js";
|
|
122
122
|
import {
|
|
123
123
|
EditProductMediaSchema,
|
|
124
124
|
MediaSchema,
|
|
125
125
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
126
126
|
ProductCreateSchema
|
|
127
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-UWU6VSO4.js";
|
|
128
128
|
import "../chunk-AJLGY3LQ.js";
|
|
129
129
|
import "../chunk-SMQT3ZNO.js";
|
|
130
130
|
import "../chunk-KDE4HKH2.js";
|
|
@@ -132,7 +132,7 @@ import "../chunk-4OQLPIUZ.js";
|
|
|
132
132
|
import "../chunk-NWU7EGGF.js";
|
|
133
133
|
import "../chunk-VBRTC2VU.js";
|
|
134
134
|
import "../chunk-WJ5EU3KW.js";
|
|
135
|
-
import "../chunk-
|
|
135
|
+
import "../chunk-ZZ4JC4WE.js";
|
|
136
136
|
import "../chunk-TKGWSUEI.js";
|
|
137
137
|
import "../chunk-SITRHMZZ.js";
|
|
138
138
|
import "../chunk-GDWBOQI5.js";
|