@mercurjs/vendor 2.0.2 → 2.1.0-canary.5
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]-DCCF7277.js → [id]-57VYN5YF.js} +2 -3
- package/dist/{[id]-UAOAQVEM.js → [id]-FWI6NCSF.js} +3 -4
- package/dist/{[id]-6WYSWXWC.js → [id]-IQNYVYZU.js} +1 -2
- package/dist/{[id]-LZPT5Y55.js → [id]-KCUHMQWF.js} +1 -2
- package/dist/{[id]-ENTJSLN2.js → [id]-KMRB5RAW.js} +3 -3
- package/dist/{[id]-PHS2WYFX.js → [id]-LCMQBEOS.js} +2 -3
- package/dist/{[id]-OGHRZ2VY.js → [id]-LJJPLKJ6.js} +5 -4
- package/dist/{[id]-VKG2WEIR.js → [id]-M3PNP527.js} +1 -2
- package/dist/{[id]-EJAHMOOE.js → [id]-MZOT4GAO.js} +2 -3
- package/dist/{[id]-TLZZ53G7.js → [id]-WYIWRY5O.js} +2 -2
- package/dist/{[province_id]-XGA44S7P.js → [province_id]-2MRNXHKU.js} +1 -2
- package/dist/{add-7ZTE42IE.js → add-RDOKD6CX.js} +2 -2
- package/dist/{add-AKC7LTK3.js → add-W7ATBCKS.js} +2 -3
- package/dist/{add-customer-groups-BRC3DKQ2.js → add-customer-groups-ZZVSJJH3.js} +1 -2
- package/dist/{add-products-ZSULNZVI.js → add-products-PINICUAZ.js} +2 -3
- package/dist/{add-promotions-TNFVT5ST.js → add-promotions-W57766OG.js} +3 -3
- package/dist/{address-3DSJESKM.js → address-MQS4I2N6.js} +58 -71
- package/dist/{breadcrumb-ZMVHXCOX.js → breadcrumb-A3XUO3R2.js} +2 -3
- package/dist/{breadcrumb-UH7FAYU2.js → breadcrumb-MPXARU5F.js} +1 -2
- package/dist/{breadcrumb-D6QNYOAO.js → breadcrumb-Q5KJBAPD.js} +1 -2
- package/dist/{chunk-CUMY2VZ5.js → chunk-5LKZCG77.js} +1 -96
- package/dist/{chunk-7XC7ZRG7.js → chunk-5VBEGZ5W.js} +1 -1
- package/dist/{chunk-573EQEW2.js → chunk-6HPF5UZA.js} +1 -1
- package/dist/{chunk-RV5UTYBG.js → chunk-EQQ3BLQ3.js} +2 -2
- package/dist/{chunk-LA6XSPQG.js → chunk-FI2RBY7M.js} +287 -309
- package/dist/{chunk-RMBCBXWD.js → chunk-GQFNE5VL.js} +1 -1
- package/dist/chunk-HFRHHT36.js +98 -0
- package/dist/{chunk-O7E4KQAK.js → chunk-I4F7UYZE.js} +1 -1
- package/dist/chunk-JWB2HSCJ.js +30 -0
- package/dist/{chunk-FNG7ZA7N.js → chunk-NCQBAHWT.js} +1 -1
- package/dist/{chunk-T7LEJIIM.js → chunk-PT3UQCSN.js} +1 -1
- package/dist/chunk-TLE6YHGH.js +26 -0
- package/dist/{chunk-JRT2U4UI.js → chunk-TRKJKAM6.js} +130 -33
- package/dist/{chunk-ASEVHHCT.js → chunk-UDG47AEE.js} +1 -1
- package/dist/{chunk-XZG2HZYW.js → chunk-WFE6CT6M.js} +1 -1
- package/dist/{chunk-N2WKLVUX.js → chunk-XF3W2U3Q.js} +1 -1
- package/dist/{chunk-JKKRKFCS.js → chunk-YPSJN3XT.js} +29 -32
- package/dist/{chunk-NYRRRCJS.js → chunk-ZCJ737TR.js} +66 -21
- package/dist/{collections-2M4RFH4P.js → collections-NNFGWUTW.js} +2 -3
- package/dist/{create-D4F457BD.js → create-GCSVAMEH.js} +1 -2
- package/dist/{create-2TUWGQ2D.js → create-N3WNCW7U.js} +1 -2
- package/dist/{create-QK2SSLZK.js → create-T73PSKIV.js} +3 -4
- package/dist/{create-OF2OZ7EI.js → create-TXBY6W3X.js} +1 -2
- package/dist/{create-6IRE6AMF.js → create-V3TFI4BJ.js} +8 -7
- package/dist/{create-IFMEEHN4.js → create-VPG7P53M.js} +2 -3
- package/dist/{create-YITFTHMA.js → create-WY4KXB66.js} +1 -2
- package/dist/{create-3WUTLUJO.js → create-YCOR6HY3.js} +1 -2
- package/dist/{edit-SGEECDCR.js → edit-2QUFOE5S.js} +1 -2
- package/dist/{edit-UQAQVEUI.js → edit-62WJ7SBJ.js} +27 -10
- package/dist/{edit-QRJIWTU2.js → edit-B245OLC7.js} +1 -2
- package/dist/{edit-PIE7Y73J.js → edit-CPVFMQEI.js} +3 -4
- package/dist/{edit-ONSN756P.js → edit-F4F6EQDZ.js} +1 -1
- package/dist/{edit-Z7EZRPUP.js → edit-JGBH64CC.js} +1 -1
- package/dist/{edit-J5SC7GHQ.js → edit-KWSXWWOA.js} +1 -2
- package/dist/{edit-ZEIL7EQW.js → edit-QYKH2ZZA.js} +1 -2
- package/dist/{edit-stocks-and-prices-543AYFDJ.js → edit-stocks-and-prices-Y233WVZ3.js} +1 -2
- package/dist/{fulfillment-5LNFBSBS.js → fulfillment-FBF3MITY.js} +1 -2
- package/dist/{fulfillment-providers-U7Z7QMOQ.js → fulfillment-providers-Y2YOREHX.js} +2 -3
- package/dist/index.css +35 -29
- package/dist/index.js +86 -87
- package/dist/invite-G7WOO5RZ.js +368 -0
- package/dist/{invite-SI2KIPWI.js → invite-Y2TACGCW.js} +3 -5
- package/dist/{login-QDS5UXKV.js → login-3U4XGDAD.js} +3 -3
- package/dist/{media-RDXCLPKQ.js → media-O2GIGGFG.js} +2 -2
- package/dist/{metadata-7JKDCVYY.js → metadata-7RA6MXW7.js} +1 -2
- package/dist/{metadata-ZV5RYLKR.js → metadata-GSBDSRNM.js} +1 -2
- package/dist/{metadata-X4UIPNL6.js → metadata-JXRXW6UQ.js} +1 -2
- package/dist/{metadata-W5XIPFVU.js → metadata-QM4UGMX5.js} +1 -2
- package/dist/{metadata-UKBRUFH2.js → metadata-RODKLIDO.js} +1 -2
- package/dist/onboarding-7XHOLSKH.js +943 -0
- package/dist/{orders-IAL3JNPU.js → orders-HKUVFCTQ.js} +2 -3
- package/dist/pages/index.d.ts +140 -140
- package/dist/pages/index.js +16 -14
- package/dist/{payment-details-ATUYMVJX.js → payment-details-VWR2S32W.js} +1 -2
- package/dist/{pricing-RBESFX5P.js → pricing-6UZ6SXIE.js} +1 -2
- package/dist/{product-tags-W4BL6RWV.js → product-tags-YXVFIPGQ.js} +3 -4
- package/dist/{product-variant-detail-KU5OCL7E.js → product-variant-detail-O2NOUFFC.js} +1 -2
- package/dist/{products-3VVYJUH7.js → products-3NIIOQBB.js} +2 -3
- package/dist/{products-YYLVCOOY.js → products-T2EMLRXQ.js} +10 -9
- package/dist/{professional-details-6Y5K6GBL.js → professional-details-SJ4AF5TM.js} +1 -2
- package/dist/{promotions-NBJTFP6N.js → promotions-ZEH4RHL3.js} +4 -4
- package/dist/register-4SX23YPM.js +210 -0
- package/dist/{reset-password-PLCDLFL4.js → reset-password-4LWDUVMH.js} +1 -1
- package/dist/{sales-channels-UIDLFCX6.js → sales-channels-2OVI6RTV.js} +3 -2
- package/dist/{sales-channels-UWPEFKAO.js → sales-channels-BKOYQXVC.js} +3 -2
- package/dist/{settings-5MNWE5CR.js → settings-F6KJREHK.js} +3 -4
- package/dist/{shipping-profiles-O7XB2DTE.js → shipping-profiles-AQMJSXDB.js} +1 -2
- package/dist/{stock-VJAAYYW5.js → stock-4G4WQIR7.js} +1 -2
- package/dist/{stock-2CGEFBXO.js → stock-NJADHNRP.js} +1 -2
- package/dist/{store-ZBSMNWFT.js → store-E4JEK2CQ.js} +220 -118
- package/dist/{store-closure-43FK32AQ.js → store-closure-QPK4LBBZ.js} +35 -19
- package/dist/{store-select-Q2HE572R.js → store-select-XPC6NIV5.js} +31 -22
- package/dist/{team-ZLZJJWIY.js → team-DZ5CV3LG.js} +1 -2
- package/package.json +5 -5
- package/dist/chunk-STBCWNZQ.js +0 -57
- package/dist/invite-P6HTOEIV.js +0 -301
- package/dist/onboarding-DLIBZRKE.js +0 -873
- package/dist/register-ZLE6MNPF.js +0 -223
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useDate
|
|
3
|
+
} from "./chunk-LRD242C7.js";
|
|
4
|
+
|
|
5
|
+
// src/components/data-table/helpers/general/use-data-table-date-filters.tsx
|
|
6
|
+
import { createDataTableFilterHelper } from "@medusajs/ui";
|
|
7
|
+
import { subDays, subMonths } from "date-fns";
|
|
8
|
+
import { useMemo } from "react";
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
var filterHelper = createDataTableFilterHelper();
|
|
11
|
+
var useDateFilterOptions = () => {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const today = useMemo(() => {
|
|
14
|
+
const date = /* @__PURE__ */ new Date();
|
|
15
|
+
date.setHours(0, 0, 0, 0);
|
|
16
|
+
return date;
|
|
17
|
+
}, []);
|
|
18
|
+
return useMemo(() => {
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
label: t("filters.date.today"),
|
|
22
|
+
value: {
|
|
23
|
+
$gte: today.toISOString()
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: t("filters.date.lastSevenDays"),
|
|
28
|
+
value: {
|
|
29
|
+
$gte: subDays(today, 7).toISOString()
|
|
30
|
+
// 7 days ago
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: t("filters.date.lastThirtyDays"),
|
|
35
|
+
value: {
|
|
36
|
+
$gte: subDays(today, 30).toISOString()
|
|
37
|
+
// 30 days ago
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: t("filters.date.lastNinetyDays"),
|
|
42
|
+
value: {
|
|
43
|
+
$gte: subDays(today, 90).toISOString()
|
|
44
|
+
// 90 days ago
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: t("filters.date.lastTwelveMonths"),
|
|
49
|
+
value: {
|
|
50
|
+
$gte: subMonths(today, 12).toISOString()
|
|
51
|
+
// 12 months ago
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
}, [today, t]);
|
|
56
|
+
};
|
|
57
|
+
var useDataTableDateFilters = (disableRangeOption) => {
|
|
58
|
+
const { t } = useTranslation();
|
|
59
|
+
const { getFullDate } = useDate();
|
|
60
|
+
const dateFilterOptions = useDateFilterOptions();
|
|
61
|
+
const rangeOptions = useMemo(() => {
|
|
62
|
+
if (disableRangeOption) {
|
|
63
|
+
return {
|
|
64
|
+
disableRangeOption: true
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
rangeOptionStartLabel: t("filters.date.starting"),
|
|
69
|
+
rangeOptionEndLabel: t("filters.date.ending"),
|
|
70
|
+
rangeOptionLabel: t("filters.date.custom"),
|
|
71
|
+
options: dateFilterOptions
|
|
72
|
+
};
|
|
73
|
+
}, [disableRangeOption, t, dateFilterOptions]);
|
|
74
|
+
return useMemo(() => {
|
|
75
|
+
return [
|
|
76
|
+
filterHelper.accessor("created_at", {
|
|
77
|
+
type: "date",
|
|
78
|
+
label: t("fields.createdAt"),
|
|
79
|
+
format: "date",
|
|
80
|
+
formatDateValue: (date) => getFullDate({ date }),
|
|
81
|
+
options: dateFilterOptions,
|
|
82
|
+
...rangeOptions
|
|
83
|
+
}),
|
|
84
|
+
filterHelper.accessor("updated_at", {
|
|
85
|
+
type: "date",
|
|
86
|
+
label: t("fields.updatedAt"),
|
|
87
|
+
format: "date",
|
|
88
|
+
formatDateValue: (date) => getFullDate({ date }),
|
|
89
|
+
options: dateFilterOptions,
|
|
90
|
+
...rangeOptions
|
|
91
|
+
})
|
|
92
|
+
];
|
|
93
|
+
}, [t, dateFilterOptions, getFullDate, rangeOptions]);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
useDataTableDateFilters
|
|
98
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/components/layout/auth-layout/auth-layout.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var AuthLayout = ({ children }) => {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-dvh w-dvw overflow-hidden", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "bg-ui-bg-base border-ui-border-base flex h-full w-full flex-col overflow-y-auto border-r lg:w-[584px] lg:shrink-0", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col p-8 lg:px-14 lg:py-12", children }) }),
|
|
6
|
+
/* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: "relative hidden flex-1 items-center justify-center overflow-hidden lg:flex",
|
|
10
|
+
style: {
|
|
11
|
+
backgroundImage: "url(/onboarding/bg.svg)",
|
|
12
|
+
backgroundSize: "cover",
|
|
13
|
+
backgroundPosition: "center"
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ jsx(
|
|
16
|
+
"img",
|
|
17
|
+
{
|
|
18
|
+
src: "/onboarding/0.png",
|
|
19
|
+
alt: "",
|
|
20
|
+
className: "max-h-[75%] w-[75%] object-contain"
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
AuthLayout
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/components/inputs/handle-input/handle-input.tsx
|
|
2
|
+
import { Input, Text } from "@medusajs/ui";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var HandleInput = forwardRef(
|
|
6
|
+
(props, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
8
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 z-10 flex w-8 items-center justify-center border-r", children: /* @__PURE__ */ jsx(
|
|
9
|
+
Text,
|
|
10
|
+
{
|
|
11
|
+
className: "text-ui-fg-muted",
|
|
12
|
+
size: "small",
|
|
13
|
+
leading: "compact",
|
|
14
|
+
weight: "plus",
|
|
15
|
+
children: "/"
|
|
16
|
+
}
|
|
17
|
+
) }),
|
|
18
|
+
/* @__PURE__ */ jsx(Input, { ref, ...props, className: "pl-10" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
HandleInput.displayName = "HandleInput";
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
HandleInput
|
|
26
|
+
};
|
|
@@ -11458,6 +11458,7 @@ var en_default = {
|
|
|
11458
11458
|
domain: "Seller",
|
|
11459
11459
|
manageYourStoresDetails: "Manage your seller's details",
|
|
11460
11460
|
editStore: "Edit seller",
|
|
11461
|
+
handleTooltip: "The handle becomes the URL slug for your store. Leave empty to auto-generate from the name.",
|
|
11461
11462
|
profileCompletion: {
|
|
11462
11463
|
title: "Complete store profile",
|
|
11463
11464
|
steps: {
|
|
@@ -11469,14 +11470,14 @@ var en_default = {
|
|
|
11469
11470
|
},
|
|
11470
11471
|
status: {
|
|
11471
11472
|
active: "Active",
|
|
11472
|
-
pendingApproval: "Pending
|
|
11473
|
+
pendingApproval: "Pending",
|
|
11473
11474
|
suspended: "Suspended",
|
|
11474
11475
|
terminated: "Terminated"
|
|
11475
11476
|
},
|
|
11476
11477
|
alert: {
|
|
11477
11478
|
pendingApproval: {
|
|
11478
|
-
title: "
|
|
11479
|
-
description: "
|
|
11479
|
+
title: "Store request",
|
|
11480
|
+
description: "Store request has been submitted successfully. Once the Admin reviews it, you'll receive a notification in your panel."
|
|
11480
11481
|
},
|
|
11481
11482
|
suspended: {
|
|
11482
11483
|
title: "Your store has been suspended",
|
|
@@ -11518,6 +11519,13 @@ var en_default = {
|
|
|
11518
11519
|
},
|
|
11519
11520
|
address: {
|
|
11520
11521
|
header: "Address",
|
|
11522
|
+
defaultName: "Headquarters",
|
|
11523
|
+
nameLabel: "Name",
|
|
11524
|
+
namePlaceholder: "Headquarters",
|
|
11525
|
+
empty: {
|
|
11526
|
+
title: "No address",
|
|
11527
|
+
message: "There are no records to show"
|
|
11528
|
+
},
|
|
11521
11529
|
edit: {
|
|
11522
11530
|
header: "Edit Address",
|
|
11523
11531
|
description: "Update the address for your store.",
|
|
@@ -11526,6 +11534,10 @@ var en_default = {
|
|
|
11526
11534
|
},
|
|
11527
11535
|
paymentDetails: {
|
|
11528
11536
|
header: "Payment Details",
|
|
11537
|
+
empty: {
|
|
11538
|
+
title: "No payment details",
|
|
11539
|
+
message: "There are no records to show"
|
|
11540
|
+
},
|
|
11529
11541
|
edit: {
|
|
11530
11542
|
header: "Edit Payment Details",
|
|
11531
11543
|
description: "Update the payment details for your store.",
|
|
@@ -11543,29 +11555,49 @@ var en_default = {
|
|
|
11543
11555
|
},
|
|
11544
11556
|
professionalDetails: {
|
|
11545
11557
|
header: "Company Details",
|
|
11558
|
+
empty: {
|
|
11559
|
+
title: "No company details",
|
|
11560
|
+
message: "There are no records to show"
|
|
11561
|
+
},
|
|
11546
11562
|
edit: {
|
|
11547
11563
|
header: "Edit Professional Details",
|
|
11548
11564
|
description: "Update the professional details for your store.",
|
|
11549
11565
|
successToast: "Professional details updated"
|
|
11550
11566
|
},
|
|
11551
11567
|
fields: {
|
|
11552
|
-
corporateName: "
|
|
11568
|
+
corporateName: "Company",
|
|
11553
11569
|
registrationNumber: "Registration number",
|
|
11554
11570
|
taxId: "Tax ID"
|
|
11555
11571
|
}
|
|
11556
11572
|
},
|
|
11557
|
-
|
|
11558
|
-
header: "
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11573
|
+
timeOff: {
|
|
11574
|
+
header: "Time off",
|
|
11575
|
+
columns: {
|
|
11576
|
+
firstDay: "First day",
|
|
11577
|
+
lastDay: "Last day",
|
|
11578
|
+
note: "Note"
|
|
11579
|
+
},
|
|
11580
|
+
empty: {
|
|
11581
|
+
title: "No time off yet",
|
|
11582
|
+
message: "This store doesn't have scheduled time off",
|
|
11583
|
+
action: "Create"
|
|
11584
|
+
},
|
|
11585
|
+
create: {
|
|
11586
|
+
header: "Create Time Off",
|
|
11587
|
+
description: "Schedule a time off period for your store.",
|
|
11588
|
+
successToast: "Time off saved"
|
|
11563
11589
|
},
|
|
11564
11590
|
fields: {
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11591
|
+
firstDay: "First day",
|
|
11592
|
+
lastDay: "Last day",
|
|
11593
|
+
lastDayHint: "Leave empty to keep the store closed indefinitely",
|
|
11594
|
+
note: "Note"
|
|
11595
|
+
},
|
|
11596
|
+
deleteConfirm: {
|
|
11597
|
+
title: "Delete time off",
|
|
11598
|
+
description: "Are you sure you want to remove this time off period?"
|
|
11599
|
+
},
|
|
11600
|
+
deleteSuccess: "Time off removed"
|
|
11569
11601
|
},
|
|
11570
11602
|
subscription: {
|
|
11571
11603
|
header: "Subscription",
|
|
@@ -11577,6 +11609,9 @@ var en_default = {
|
|
|
11577
11609
|
requiresOrders: "Requires orders",
|
|
11578
11610
|
month: "month"
|
|
11579
11611
|
},
|
|
11612
|
+
edit: {
|
|
11613
|
+
websiteHint: "Must include protocol (e.g. https://)"
|
|
11614
|
+
},
|
|
11580
11615
|
toast: {
|
|
11581
11616
|
update: "Store successfully updated",
|
|
11582
11617
|
currenciesUpdated: "Currencies updated successfully",
|
|
@@ -11901,26 +11936,27 @@ var en_default = {
|
|
|
11901
11936
|
}
|
|
11902
11937
|
},
|
|
11903
11938
|
storeSelect: {
|
|
11904
|
-
title: "
|
|
11905
|
-
subtitle: "
|
|
11906
|
-
pendingApproval: "Pending
|
|
11939
|
+
title: "Select a store",
|
|
11940
|
+
subtitle: "Choose a store to continue.",
|
|
11941
|
+
pendingApproval: "Pending",
|
|
11907
11942
|
addNewStore: "Add new store",
|
|
11908
11943
|
status: {
|
|
11909
|
-
open: "
|
|
11910
|
-
pendingApproval: "Pending
|
|
11911
|
-
suspended: "
|
|
11944
|
+
open: "Active",
|
|
11945
|
+
pendingApproval: "Pending",
|
|
11946
|
+
suspended: "Inactive",
|
|
11912
11947
|
terminated: "Terminated"
|
|
11913
11948
|
}
|
|
11914
11949
|
},
|
|
11915
11950
|
login: {
|
|
11916
|
-
forgotPassword: "Forgot password?
|
|
11917
|
-
title: "Welcome
|
|
11918
|
-
hint: "
|
|
11919
|
-
|
|
11951
|
+
forgotPassword: "Forgot password? <0>Reset</0>",
|
|
11952
|
+
title: "Welcome back!",
|
|
11953
|
+
hint: "Log in to your vendor account.",
|
|
11954
|
+
submit: "Log in",
|
|
11955
|
+
notSellerYet: "Not a seller yet? <0>Create an account</0>"
|
|
11920
11956
|
},
|
|
11921
11957
|
register: {
|
|
11922
|
-
title: "
|
|
11923
|
-
hint: "
|
|
11958
|
+
title: "Create your vendor account",
|
|
11959
|
+
hint: "Start selling on {{name}}.",
|
|
11924
11960
|
companyName: "Company name",
|
|
11925
11961
|
confirmPassword: "Confirm password",
|
|
11926
11962
|
signUp: "Sign up",
|
|
@@ -11965,7 +12001,7 @@ var en_default = {
|
|
|
11965
12001
|
professionalSubtitle: "Professional seller information",
|
|
11966
12002
|
isProfessional: "Professional seller",
|
|
11967
12003
|
isProfessionalDescription: "Register as a business entity",
|
|
11968
|
-
corporateName: "
|
|
12004
|
+
corporateName: "Company",
|
|
11969
12005
|
registrationNumber: "Registration number",
|
|
11970
12006
|
taxId: "Tax ID",
|
|
11971
12007
|
completeSetup: "Complete setup"
|
|
@@ -11975,20 +12011,81 @@ var en_default = {
|
|
|
11975
12011
|
description: "Your seller account has been created and is pending approval. We'll notify you at {{email}} once your store is reviewed.",
|
|
11976
12012
|
hint: "In the meantime, you can select your store and complete your setup.",
|
|
11977
12013
|
action: "Continue to dashboard"
|
|
12014
|
+
},
|
|
12015
|
+
wizard: {
|
|
12016
|
+
stepOf: "Step {{current}} of {{total}}",
|
|
12017
|
+
steps: {
|
|
12018
|
+
store: "Store Details",
|
|
12019
|
+
address: "Address",
|
|
12020
|
+
company: "Company Details",
|
|
12021
|
+
payment: "Payment Details"
|
|
12022
|
+
},
|
|
12023
|
+
store: {
|
|
12024
|
+
title: "Enter your store details",
|
|
12025
|
+
name: "Name",
|
|
12026
|
+
email: "Email",
|
|
12027
|
+
handle: "Handle",
|
|
12028
|
+
handleTooltip: "The handle becomes the URL slug for your store. Leave empty to auto-generate from the name.",
|
|
12029
|
+
handlePlaceholder: "my-store",
|
|
12030
|
+
currency: "Currency",
|
|
12031
|
+
selectCurrency: "Select",
|
|
12032
|
+
currencyHint: "Cannot be changed after store is created"
|
|
12033
|
+
},
|
|
12034
|
+
skip: "Skip",
|
|
12035
|
+
address: {
|
|
12036
|
+
title: "Enter your address",
|
|
12037
|
+
name: "Name",
|
|
12038
|
+
namePlaceholder: "Headquarters",
|
|
12039
|
+
address: "Address",
|
|
12040
|
+
address2: "Apartment, suite, etc.",
|
|
12041
|
+
postalCode: "Postal Code",
|
|
12042
|
+
city: "City",
|
|
12043
|
+
country: "Country",
|
|
12044
|
+
state: "State"
|
|
12045
|
+
},
|
|
12046
|
+
company: {
|
|
12047
|
+
title: "Enter your company details",
|
|
12048
|
+
subtitle: "Professional seller information",
|
|
12049
|
+
corporateName: "Company",
|
|
12050
|
+
registrationNumber: "Registration number",
|
|
12051
|
+
taxId: "Tax ID"
|
|
12052
|
+
},
|
|
12053
|
+
payment: {
|
|
12054
|
+
title: "Enter your payment details",
|
|
12055
|
+
subtitle: "How you'd like to receive payouts",
|
|
12056
|
+
accountName: "Account name",
|
|
12057
|
+
accountNumber: "Account number",
|
|
12058
|
+
achRoutingNumber: "ACH routing number",
|
|
12059
|
+
iban: "IBAN",
|
|
12060
|
+
swiftBic: "SWIFT / BIC"
|
|
12061
|
+
},
|
|
12062
|
+
validation: {
|
|
12063
|
+
nameRequired: "Please enter a name",
|
|
12064
|
+
emailInvalid: "Please enter an email",
|
|
12065
|
+
currencyRequired: "Please select a currency",
|
|
12066
|
+
countryRequired: "Please select a country",
|
|
12067
|
+
accountNameRequired: "Please enter account name"
|
|
12068
|
+
},
|
|
12069
|
+
preview: {
|
|
12070
|
+
title: "Welcome to Mercur",
|
|
12071
|
+
description: "Your all-in-one vendor portal for managing your store, products, orders, and payouts.",
|
|
12072
|
+
placeholder: "App preview"
|
|
12073
|
+
}
|
|
11978
12074
|
}
|
|
11979
12075
|
},
|
|
11980
12076
|
invite: {
|
|
11981
|
-
title: "You'
|
|
11982
|
-
hint: "
|
|
12077
|
+
title: "You're invited to join {{name}}!",
|
|
12078
|
+
hint: "Enter your details and create a password to set up your account.",
|
|
11983
12079
|
existingMemberHint: "Sign in with your existing account",
|
|
11984
12080
|
backToLogin: "Back to login",
|
|
11985
12081
|
createAccount: "Create account",
|
|
11986
12082
|
signIn: "Sign in",
|
|
11987
|
-
alreadyHaveAccount: "Already have an account?
|
|
12083
|
+
alreadyHaveAccount: "Already have an account?",
|
|
12084
|
+
logIn: "Log in",
|
|
11988
12085
|
emailTooltip: "Your email cannot be changed. If you would like to use another email, a new invite must be sent.",
|
|
11989
12086
|
invalidInvite: "The invite is invalid or has expired.",
|
|
11990
|
-
successTitle: "
|
|
11991
|
-
successHint: "
|
|
12087
|
+
successTitle: "Welcome to {{name}}!",
|
|
12088
|
+
successHint: "Setting up your account...",
|
|
11992
12089
|
invalidTokenTitle: "Your invite token is invalid",
|
|
11993
12090
|
invalidTokenHint: "Try requesting a new invite link.",
|
|
11994
12091
|
passwordMismatch: "Passwords do not match",
|
|
@@ -12252,7 +12349,7 @@ var en_default = {
|
|
|
12252
12349
|
company: "Company",
|
|
12253
12350
|
phone: "Phone",
|
|
12254
12351
|
metadata: "Metadata",
|
|
12255
|
-
selectCountry: "Select
|
|
12352
|
+
selectCountry: "Select",
|
|
12256
12353
|
products: "Products",
|
|
12257
12354
|
variants: "Variants",
|
|
12258
12355
|
orders: "Orders",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AuthLayout
|
|
3
|
+
} from "./chunk-JWB2HSCJ.js";
|
|
1
4
|
import {
|
|
2
5
|
AvatarBox
|
|
3
6
|
} from "./chunk-CP5IL4P6.js";
|
|
@@ -30,9 +33,9 @@ var LoginLogo = () => {
|
|
|
30
33
|
};
|
|
31
34
|
var LoginHeader = () => {
|
|
32
35
|
const { t } = useTranslation();
|
|
33
|
-
return /* @__PURE__ */ jsxs("div", { className: "mb-
|
|
34
|
-
/* @__PURE__ */ jsx(Heading, { children: t("login.title"
|
|
35
|
-
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle
|
|
36
|
+
return /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-col", children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Heading, { children: t("login.title") }),
|
|
38
|
+
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("login.hint") })
|
|
36
39
|
] });
|
|
37
40
|
};
|
|
38
41
|
var LoginForm = () => {
|
|
@@ -85,24 +88,17 @@ var LoginForm = () => {
|
|
|
85
88
|
});
|
|
86
89
|
const serverError = form.formState.errors?.root?.serverError?.message || reasonMessage;
|
|
87
90
|
const validationError = form.formState.errors.email?.message || form.formState.errors.password?.message;
|
|
88
|
-
return /* @__PURE__ */ jsx(
|
|
89
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-
|
|
91
|
+
return /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
|
|
92
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
|
|
90
93
|
/* @__PURE__ */ jsx(
|
|
91
94
|
Form.Field,
|
|
92
95
|
{
|
|
93
96
|
control: form.control,
|
|
94
97
|
name: "email",
|
|
95
|
-
render: ({ field }) => {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
autoComplete: "email",
|
|
100
|
-
...field,
|
|
101
|
-
className: "bg-ui-bg-field-component",
|
|
102
|
-
placeholder: t("fields.email")
|
|
103
|
-
}
|
|
104
|
-
) }) });
|
|
105
|
-
}
|
|
98
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
99
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t("fields.email") }),
|
|
100
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { autoComplete: "email", ...field }) })
|
|
101
|
+
] })
|
|
106
102
|
}
|
|
107
103
|
),
|
|
108
104
|
/* @__PURE__ */ jsx(
|
|
@@ -110,21 +106,20 @@ var LoginForm = () => {
|
|
|
110
106
|
{
|
|
111
107
|
control: form.control,
|
|
112
108
|
name: "password",
|
|
113
|
-
render: ({ field }) => {
|
|
114
|
-
|
|
109
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
110
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t("fields.password") }),
|
|
111
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
|
|
115
112
|
Input,
|
|
116
113
|
{
|
|
117
114
|
type: "password",
|
|
118
115
|
autoComplete: "current-password",
|
|
119
|
-
...field
|
|
120
|
-
className: "bg-ui-bg-field-component",
|
|
121
|
-
placeholder: t("fields.password")
|
|
116
|
+
...field
|
|
122
117
|
}
|
|
123
|
-
) })
|
|
124
|
-
}
|
|
118
|
+
) })
|
|
119
|
+
] })
|
|
125
120
|
}
|
|
126
121
|
),
|
|
127
|
-
validationError && /* @__PURE__ */ jsx(
|
|
122
|
+
validationError && /* @__PURE__ */ jsx(Hint, { className: "inline-flex", variant: "error", children: validationError }),
|
|
128
123
|
serverError && /* @__PURE__ */ jsx(
|
|
129
124
|
Alert,
|
|
130
125
|
{
|
|
@@ -135,12 +130,12 @@ var LoginForm = () => {
|
|
|
135
130
|
}
|
|
136
131
|
)
|
|
137
132
|
] }),
|
|
138
|
-
/* @__PURE__ */ jsx(Button, { className: "w-full", type: "submit", isLoading: isPending, children: "
|
|
139
|
-
] }) })
|
|
133
|
+
/* @__PURE__ */ jsx(Button, { className: "w-full", type: "submit", isLoading: isPending, children: t("login.submit") })
|
|
134
|
+
] }) });
|
|
140
135
|
};
|
|
141
136
|
var LoginFooter = () => {
|
|
142
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col
|
|
143
|
-
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small
|
|
137
|
+
return /* @__PURE__ */ jsxs("div", { className: "mt-auto flex flex-col gap-y-2", children: [
|
|
138
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small", children: /* @__PURE__ */ jsx(
|
|
144
139
|
Trans,
|
|
145
140
|
{
|
|
146
141
|
i18nKey: "login.forgotPassword",
|
|
@@ -175,12 +170,14 @@ var LoginFooter = () => {
|
|
|
175
170
|
] });
|
|
176
171
|
};
|
|
177
172
|
var Root = ({ children }) => {
|
|
178
|
-
return /* @__PURE__ */ jsx(
|
|
173
|
+
return /* @__PURE__ */ jsx(AuthLayout, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
179
174
|
/* @__PURE__ */ jsx(LoginLogo, {}),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
|
|
175
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-8", children: [
|
|
176
|
+
/* @__PURE__ */ jsx(LoginHeader, {}),
|
|
177
|
+
/* @__PURE__ */ jsx(LoginForm, {})
|
|
178
|
+
] }),
|
|
182
179
|
/* @__PURE__ */ jsx(LoginFooter, {})
|
|
183
|
-
] }) })
|
|
180
|
+
] }) });
|
|
184
181
|
};
|
|
185
182
|
var LoginPage = Object.assign(Root, {
|
|
186
183
|
Logo: LoginLogo,
|