@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.
Files changed (98) hide show
  1. package/dist/{[id]-DCCF7277.js → [id]-57VYN5YF.js} +2 -3
  2. package/dist/{[id]-UAOAQVEM.js → [id]-FWI6NCSF.js} +3 -4
  3. package/dist/{[id]-6WYSWXWC.js → [id]-IQNYVYZU.js} +1 -2
  4. package/dist/{[id]-LZPT5Y55.js → [id]-KCUHMQWF.js} +1 -2
  5. package/dist/{[id]-ENTJSLN2.js → [id]-KMRB5RAW.js} +3 -3
  6. package/dist/{[id]-PHS2WYFX.js → [id]-LCMQBEOS.js} +2 -3
  7. package/dist/{[id]-OGHRZ2VY.js → [id]-LJJPLKJ6.js} +5 -4
  8. package/dist/{[id]-VKG2WEIR.js → [id]-M3PNP527.js} +1 -2
  9. package/dist/{[id]-EJAHMOOE.js → [id]-MZOT4GAO.js} +2 -3
  10. package/dist/{[id]-TLZZ53G7.js → [id]-WYIWRY5O.js} +2 -2
  11. package/dist/{[province_id]-XGA44S7P.js → [province_id]-2MRNXHKU.js} +1 -2
  12. package/dist/{add-7ZTE42IE.js → add-RDOKD6CX.js} +2 -2
  13. package/dist/{add-AKC7LTK3.js → add-W7ATBCKS.js} +2 -3
  14. package/dist/{add-customer-groups-BRC3DKQ2.js → add-customer-groups-ZZVSJJH3.js} +1 -2
  15. package/dist/{add-products-ZSULNZVI.js → add-products-PINICUAZ.js} +2 -3
  16. package/dist/{add-promotions-TNFVT5ST.js → add-promotions-W57766OG.js} +3 -3
  17. package/dist/{address-3DSJESKM.js → address-MQS4I2N6.js} +58 -71
  18. package/dist/{breadcrumb-ZMVHXCOX.js → breadcrumb-A3XUO3R2.js} +2 -3
  19. package/dist/{breadcrumb-UH7FAYU2.js → breadcrumb-MPXARU5F.js} +1 -2
  20. package/dist/{breadcrumb-D6QNYOAO.js → breadcrumb-Q5KJBAPD.js} +1 -2
  21. package/dist/{chunk-CUMY2VZ5.js → chunk-5LKZCG77.js} +1 -96
  22. package/dist/{chunk-7XC7ZRG7.js → chunk-5VBEGZ5W.js} +1 -1
  23. package/dist/{chunk-573EQEW2.js → chunk-6HPF5UZA.js} +1 -1
  24. package/dist/{chunk-RV5UTYBG.js → chunk-EQQ3BLQ3.js} +2 -2
  25. package/dist/{chunk-LA6XSPQG.js → chunk-FI2RBY7M.js} +287 -309
  26. package/dist/{chunk-RMBCBXWD.js → chunk-GQFNE5VL.js} +1 -1
  27. package/dist/chunk-HFRHHT36.js +98 -0
  28. package/dist/{chunk-O7E4KQAK.js → chunk-I4F7UYZE.js} +1 -1
  29. package/dist/chunk-JWB2HSCJ.js +30 -0
  30. package/dist/{chunk-FNG7ZA7N.js → chunk-NCQBAHWT.js} +1 -1
  31. package/dist/{chunk-T7LEJIIM.js → chunk-PT3UQCSN.js} +1 -1
  32. package/dist/chunk-TLE6YHGH.js +26 -0
  33. package/dist/{chunk-JRT2U4UI.js → chunk-TRKJKAM6.js} +130 -33
  34. package/dist/{chunk-ASEVHHCT.js → chunk-UDG47AEE.js} +1 -1
  35. package/dist/{chunk-XZG2HZYW.js → chunk-WFE6CT6M.js} +1 -1
  36. package/dist/{chunk-N2WKLVUX.js → chunk-XF3W2U3Q.js} +1 -1
  37. package/dist/{chunk-JKKRKFCS.js → chunk-YPSJN3XT.js} +29 -32
  38. package/dist/{chunk-NYRRRCJS.js → chunk-ZCJ737TR.js} +66 -21
  39. package/dist/{collections-2M4RFH4P.js → collections-NNFGWUTW.js} +2 -3
  40. package/dist/{create-D4F457BD.js → create-GCSVAMEH.js} +1 -2
  41. package/dist/{create-2TUWGQ2D.js → create-N3WNCW7U.js} +1 -2
  42. package/dist/{create-QK2SSLZK.js → create-T73PSKIV.js} +3 -4
  43. package/dist/{create-OF2OZ7EI.js → create-TXBY6W3X.js} +1 -2
  44. package/dist/{create-6IRE6AMF.js → create-V3TFI4BJ.js} +8 -7
  45. package/dist/{create-IFMEEHN4.js → create-VPG7P53M.js} +2 -3
  46. package/dist/{create-YITFTHMA.js → create-WY4KXB66.js} +1 -2
  47. package/dist/{create-3WUTLUJO.js → create-YCOR6HY3.js} +1 -2
  48. package/dist/{edit-SGEECDCR.js → edit-2QUFOE5S.js} +1 -2
  49. package/dist/{edit-UQAQVEUI.js → edit-62WJ7SBJ.js} +27 -10
  50. package/dist/{edit-QRJIWTU2.js → edit-B245OLC7.js} +1 -2
  51. package/dist/{edit-PIE7Y73J.js → edit-CPVFMQEI.js} +3 -4
  52. package/dist/{edit-ONSN756P.js → edit-F4F6EQDZ.js} +1 -1
  53. package/dist/{edit-Z7EZRPUP.js → edit-JGBH64CC.js} +1 -1
  54. package/dist/{edit-J5SC7GHQ.js → edit-KWSXWWOA.js} +1 -2
  55. package/dist/{edit-ZEIL7EQW.js → edit-QYKH2ZZA.js} +1 -2
  56. package/dist/{edit-stocks-and-prices-543AYFDJ.js → edit-stocks-and-prices-Y233WVZ3.js} +1 -2
  57. package/dist/{fulfillment-5LNFBSBS.js → fulfillment-FBF3MITY.js} +1 -2
  58. package/dist/{fulfillment-providers-U7Z7QMOQ.js → fulfillment-providers-Y2YOREHX.js} +2 -3
  59. package/dist/index.css +35 -29
  60. package/dist/index.js +86 -87
  61. package/dist/invite-G7WOO5RZ.js +368 -0
  62. package/dist/{invite-SI2KIPWI.js → invite-Y2TACGCW.js} +3 -5
  63. package/dist/{login-QDS5UXKV.js → login-3U4XGDAD.js} +3 -3
  64. package/dist/{media-RDXCLPKQ.js → media-O2GIGGFG.js} +2 -2
  65. package/dist/{metadata-7JKDCVYY.js → metadata-7RA6MXW7.js} +1 -2
  66. package/dist/{metadata-ZV5RYLKR.js → metadata-GSBDSRNM.js} +1 -2
  67. package/dist/{metadata-X4UIPNL6.js → metadata-JXRXW6UQ.js} +1 -2
  68. package/dist/{metadata-W5XIPFVU.js → metadata-QM4UGMX5.js} +1 -2
  69. package/dist/{metadata-UKBRUFH2.js → metadata-RODKLIDO.js} +1 -2
  70. package/dist/onboarding-7XHOLSKH.js +943 -0
  71. package/dist/{orders-IAL3JNPU.js → orders-HKUVFCTQ.js} +2 -3
  72. package/dist/pages/index.d.ts +140 -140
  73. package/dist/pages/index.js +16 -14
  74. package/dist/{payment-details-ATUYMVJX.js → payment-details-VWR2S32W.js} +1 -2
  75. package/dist/{pricing-RBESFX5P.js → pricing-6UZ6SXIE.js} +1 -2
  76. package/dist/{product-tags-W4BL6RWV.js → product-tags-YXVFIPGQ.js} +3 -4
  77. package/dist/{product-variant-detail-KU5OCL7E.js → product-variant-detail-O2NOUFFC.js} +1 -2
  78. package/dist/{products-3VVYJUH7.js → products-3NIIOQBB.js} +2 -3
  79. package/dist/{products-YYLVCOOY.js → products-T2EMLRXQ.js} +10 -9
  80. package/dist/{professional-details-6Y5K6GBL.js → professional-details-SJ4AF5TM.js} +1 -2
  81. package/dist/{promotions-NBJTFP6N.js → promotions-ZEH4RHL3.js} +4 -4
  82. package/dist/register-4SX23YPM.js +210 -0
  83. package/dist/{reset-password-PLCDLFL4.js → reset-password-4LWDUVMH.js} +1 -1
  84. package/dist/{sales-channels-UIDLFCX6.js → sales-channels-2OVI6RTV.js} +3 -2
  85. package/dist/{sales-channels-UWPEFKAO.js → sales-channels-BKOYQXVC.js} +3 -2
  86. package/dist/{settings-5MNWE5CR.js → settings-F6KJREHK.js} +3 -4
  87. package/dist/{shipping-profiles-O7XB2DTE.js → shipping-profiles-AQMJSXDB.js} +1 -2
  88. package/dist/{stock-VJAAYYW5.js → stock-4G4WQIR7.js} +1 -2
  89. package/dist/{stock-2CGEFBXO.js → stock-NJADHNRP.js} +1 -2
  90. package/dist/{store-ZBSMNWFT.js → store-E4JEK2CQ.js} +220 -118
  91. package/dist/{store-closure-43FK32AQ.js → store-closure-QPK4LBBZ.js} +35 -19
  92. package/dist/{store-select-Q2HE572R.js → store-select-XPC6NIV5.js} +31 -22
  93. package/dist/{team-ZLZJJWIY.js → team-DZ5CV3LG.js} +1 -2
  94. package/package.json +5 -5
  95. package/dist/chunk-STBCWNZQ.js +0 -57
  96. package/dist/invite-P6HTOEIV.js +0 -301
  97. package/dist/onboarding-DLIBZRKE.js +0 -873
  98. package/dist/register-ZLE6MNPF.js +0 -223
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useProductTag
3
- } from "./chunk-NYRRRCJS.js";
3
+ } from "./chunk-ZCJ737TR.js";
4
4
 
5
5
  // src/pages/settings/product-tags/[id]/breadcrumb.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -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
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-FNG7ZA7N.js";
4
+ } from "./chunk-NCQBAHWT.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StatusCell
3
- } from "./chunk-573EQEW2.js";
3
+ } from "./chunk-6HPF5UZA.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-RM5RSDYP.js";
17
17
  import {
18
18
  useProductTags
19
- } from "./chunk-NYRRRCJS.js";
19
+ } from "./chunk-ZCJ737TR.js";
20
20
 
21
21
  // src/pages/settings/product-tags/product-tag-list-page.tsx
22
22
  import { Children as Children3 } from "react";
@@ -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 approval",
11473
+ pendingApproval: "Pending",
11473
11474
  suspended: "Suspended",
11474
11475
  terminated: "Terminated"
11475
11476
  },
11476
11477
  alert: {
11477
11478
  pendingApproval: {
11478
- title: "Your store is under review",
11479
- description: "Your application is being reviewed by our team. You will be notified once your store is approved."
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: "Corporate name",
11568
+ corporateName: "Company",
11553
11569
  registrationNumber: "Registration number",
11554
11570
  taxId: "Tax ID"
11555
11571
  }
11556
11572
  },
11557
- scheduledClosure: {
11558
- header: "Scheduled Closure",
11559
- edit: {
11560
- header: "Schedule Store Closure",
11561
- description: "Configure the scheduled closure dates for your store.",
11562
- successToast: "Scheduled closure updated"
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
- closedFrom: "Close from",
11566
- closedTo: "Close until",
11567
- closedToHint: "If empty, the store will remain closed indefinitely."
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: "Choose a store",
11905
- subtitle: "These are all your available stores",
11906
- pendingApproval: "Pending approval",
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: "Open",
11910
- pendingApproval: "Pending approval",
11911
- suspended: "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? - <0>Reset</0>",
11917
- title: "Welcome to {{name}}",
11918
- hint: "Sign in to access the vendor hub",
11919
- notSellerYet: "Not a seller yet? - <0>Create an account</0>"
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: "Start selling on {{name}}",
11923
- hint: "Create account to get started",
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: "Corporate name",
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've been invited to {{name}}",
11982
- hint: "Create your account below",
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? - <0>Log in</0>",
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: "You joined {{name}}",
11991
- successHint: "You can now access the vendor portal. Log in to get started.",
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 country",
12352
+ selectCountry: "Select",
12256
12353
  products: "Products",
12257
12354
  variants: "Variants",
12258
12355
  orders: "Orders",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useProductTags
3
- } from "./chunk-NYRRRCJS.js";
3
+ } from "./chunk-ZCJ737TR.js";
4
4
  import {
5
5
  useProductTypes
6
6
  } from "./chunk-VV6IKGCN.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDataTableDateFilters
3
- } from "./chunk-CUMY2VZ5.js";
3
+ } from "./chunk-HFRHHT36.js";
4
4
  import {
5
5
  useQueryParams
6
6
  } from "./chunk-THHRRYRS.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-4MFMCZEJ.js";
7
7
  import {
8
8
  useProductTableFilters
9
- } from "./chunk-ASEVHHCT.js";
9
+ } from "./chunk-UDG47AEE.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
@@ -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-4 flex flex-col items-center", children: [
34
- /* @__PURE__ */ jsx(Heading, { children: t("login.title", { name: config.name ?? "Mercur" }) }),
35
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t("login.hint") })
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("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
89
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2", children: [
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
- return /* @__PURE__ */ jsx(Form.Item, { children: /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
97
- Input,
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
- return /* @__PURE__ */ jsx(Form.Item, { children: /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
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("div", { className: "mt-6 text-center", children: /* @__PURE__ */ jsx(Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
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: "Sign In" })
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 items-center", children: [
143
- /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small my-6", children: /* @__PURE__ */ jsx(
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("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
173
+ return /* @__PURE__ */ jsx(AuthLayout, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
179
174
  /* @__PURE__ */ jsx(LoginLogo, {}),
180
- /* @__PURE__ */ jsx(LoginHeader, {}),
181
- /* @__PURE__ */ jsx(LoginForm, {}),
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,