@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,12 +1,12 @@
1
1
  import {
2
2
  require_dist
3
3
  } from "./chunk-ZZO3INVE.js";
4
- import {
5
- DateRangeDisplay
6
- } from "./chunk-BWGPN6XV.js";
7
4
  import {
8
5
  getStylizedAmount
9
6
  } from "./chunk-PXYDR7WQ.js";
7
+ import {
8
+ NoRecords
9
+ } from "./chunk-3EF54XFY.js";
10
10
  import {
11
11
  currencies
12
12
  } from "./chunk-IQPN4PZJ.js";
@@ -16,14 +16,20 @@ import {
16
16
  import {
17
17
  TwoColumnPage
18
18
  } from "./chunk-RM5RSDYP.js";
19
- import "./chunk-LRD242C7.js";
19
+ import {
20
+ DataTable
21
+ } from "./chunk-5LKZCG77.js";
22
+ import "./chunk-THHRRYRS.js";
23
+ import {
24
+ useDate
25
+ } from "./chunk-LRD242C7.js";
20
26
  import {
21
27
  membersQueryKeys,
22
28
  subscriptionQueryKeys,
23
29
  useMe,
24
- useSubscription
25
- } from "./chunk-NYRRRCJS.js";
26
- import "./chunk-STBCWNZQ.js";
30
+ useSubscription,
31
+ useUpdateSeller
32
+ } from "./chunk-ZCJ737TR.js";
27
33
  import "./chunk-F4OJN2F2.js";
28
34
  import "./chunk-LRARA622.js";
29
35
  import "./chunk-M6N4ISXL.js";
@@ -66,8 +72,9 @@ import {
66
72
 
67
73
  // src/pages/settings/store/store-detail-page.tsx
68
74
  import { Children as Children3 } from "react";
69
- import { Alert, Text as Text6 } from "@medusajs/ui";
75
+ import { Alert, Text as Text7 } from "@medusajs/ui";
70
76
  import { useTranslation as useTranslation8 } from "react-i18next";
77
+ import components from "virtual:mercur/components";
71
78
  var import_types2 = __toESM(require_dist(), 1);
72
79
 
73
80
  // src/pages/settings/store/_components/store-address-section.tsx
@@ -108,74 +115,159 @@ var StoreAddressSection = ({ seller }) => {
108
115
  }
109
116
  )
110
117
  ] }),
111
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
118
+ formattedAddress ? /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
112
119
  /* @__PURE__ */ jsx(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx(BuildingStorefront, {}) }),
113
120
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
114
- /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: [address?.first_name, address?.last_name].filter(Boolean).join(" ") || "-" }),
121
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: address?.name || t("store.address.defaultName") }),
115
122
  /* @__PURE__ */ jsx(
116
123
  Text,
117
124
  {
118
125
  size: "small",
119
126
  leading: "compact",
120
127
  className: "text-ui-fg-subtle",
121
- children: formattedAddress || "-"
128
+ children: formattedAddress
122
129
  }
123
130
  )
124
131
  ] })
125
- ] }) }) })
132
+ ] }) }) }) : /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
133
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
134
+ /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
135
+ ] })
126
136
  ] });
127
137
  };
128
138
 
129
- // src/pages/settings/store/_components/store-configuration-section.tsx
130
- import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
131
- import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
139
+ // src/pages/settings/store/_components/store-time-off-section.tsx
140
+ import { CalendarMini, EllipsisHorizontal, PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
141
+ import {
142
+ Container as Container2,
143
+ DropdownMenu,
144
+ Heading as Heading2,
145
+ IconButton,
146
+ toast,
147
+ usePrompt
148
+ } from "@medusajs/ui";
149
+ import { useMemo } from "react";
132
150
  import { useTranslation as useTranslation2 } from "react-i18next";
151
+ import { Link } from "react-router-dom";
133
152
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
134
- var StoreConfigurationSection = ({
135
- seller
136
- }) => {
153
+ var StoreTimeOffSection = ({ seller }) => {
137
154
  const { t } = useTranslation2();
138
- return /* @__PURE__ */ jsxs2(Container2, { className: "flex flex-col gap-y-4", children: [
139
- /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between", children: [
140
- /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("store.scheduledClosure.header") }),
155
+ const { getFullDate } = useDate();
156
+ const prompt = usePrompt();
157
+ const { mutateAsync: updateSeller } = useUpdateSeller(seller.id);
158
+ const data = useMemo(() => {
159
+ if (!seller.closed_from) return [];
160
+ return [
161
+ {
162
+ id: "closure",
163
+ closed_from: new Date(seller.closed_from),
164
+ closed_to: seller.closed_to ? new Date(seller.closed_to) : null,
165
+ note: seller.closure_note ?? null
166
+ }
167
+ ];
168
+ }, [seller.closed_from, seller.closed_to, seller.closure_note]);
169
+ const handleDelete = async () => {
170
+ const confirmed = await prompt({
171
+ title: t("store.timeOff.deleteConfirm.title"),
172
+ description: t("store.timeOff.deleteConfirm.description"),
173
+ confirmText: t("actions.delete"),
174
+ cancelText: t("actions.cancel")
175
+ });
176
+ if (!confirmed) return;
177
+ await updateSeller(
178
+ { closed_from: null, closed_to: null, closure_note: null },
179
+ {
180
+ onSuccess: () => {
181
+ toast.success(t("store.timeOff.deleteSuccess"));
182
+ },
183
+ onError: (error) => {
184
+ toast.error(error.message);
185
+ }
186
+ }
187
+ );
188
+ };
189
+ const columns = useMemo(
190
+ () => [
191
+ {
192
+ id: "closed_from",
193
+ header: t("store.timeOff.columns.firstDay"),
194
+ accessorFn: (row) => getFullDate({ date: row.closed_from })
195
+ },
196
+ {
197
+ id: "closed_to",
198
+ header: t("store.timeOff.columns.lastDay"),
199
+ accessorFn: (row) => row.closed_to ? getFullDate({ date: row.closed_to }) : "-"
200
+ },
201
+ {
202
+ id: "note",
203
+ header: t("store.timeOff.columns.note"),
204
+ accessorFn: (row) => row.note || "-"
205
+ },
206
+ {
207
+ id: "actions",
208
+ header: "",
209
+ cell: () => /* @__PURE__ */ jsx2("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxs2(DropdownMenu, { children: [
210
+ /* @__PURE__ */ jsx2(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx2(IconButton, { variant: "transparent", size: "small", children: /* @__PURE__ */ jsx2(EllipsisHorizontal, {}) }) }),
211
+ /* @__PURE__ */ jsxs2(DropdownMenu.Content, { children: [
212
+ /* @__PURE__ */ jsx2(DropdownMenu.Item, { asChild: true, children: /* @__PURE__ */ jsxs2(Link, { to: "store-closure", children: [
213
+ /* @__PURE__ */ jsx2(PencilSquare2, { className: "mr-2" }),
214
+ t("actions.edit")
215
+ ] }) }),
216
+ /* @__PURE__ */ jsx2(DropdownMenu.Separator, {}),
217
+ /* @__PURE__ */ jsxs2(DropdownMenu.Item, { onClick: handleDelete, children: [
218
+ /* @__PURE__ */ jsx2(Trash, { className: "mr-2" }),
219
+ t("actions.delete")
220
+ ] })
221
+ ] })
222
+ ] }) }),
223
+ meta: {
224
+ className: "w-[1%]"
225
+ }
226
+ }
227
+ ],
228
+ [t, getFullDate, handleDelete]
229
+ );
230
+ if (data.length === 0) {
231
+ return /* @__PURE__ */ jsxs2(Container2, { className: "flex flex-col overflow-hidden p-0", children: [
232
+ /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("store.timeOff.header") }) }),
141
233
  /* @__PURE__ */ jsx2(
142
- ActionMenu,
234
+ NoRecords,
143
235
  {
144
- groups: [
145
- {
146
- actions: [
147
- {
148
- label: t("actions.edit"),
149
- icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
150
- to: "store-closure"
151
- }
152
- ]
153
- }
154
- ]
236
+ icon: /* @__PURE__ */ jsx2(CalendarMini, { className: "text-ui-fg-subtle" }),
237
+ title: t("store.timeOff.empty.title"),
238
+ message: t("store.timeOff.empty.message"),
239
+ action: {
240
+ to: "store-closure",
241
+ label: t("store.timeOff.empty.action")
242
+ },
243
+ className: "h-[300px]"
155
244
  }
156
245
  )
157
- ] }),
158
- /* @__PURE__ */ jsx2(
159
- DateRangeDisplay,
160
- {
161
- startsAt: seller.closed_from,
162
- endsAt: seller.closed_to,
163
- showTime: true
164
- }
165
- )
166
- ] });
246
+ ] });
247
+ }
248
+ return /* @__PURE__ */ jsx2(Container2, { className: "flex flex-col overflow-hidden p-0", children: /* @__PURE__ */ jsx2(
249
+ DataTable,
250
+ {
251
+ data,
252
+ columns,
253
+ getRowId: (row) => row.id,
254
+ rowCount: data.length,
255
+ heading: t("store.timeOff.header"),
256
+ enableSearch: false,
257
+ enablePagination: false
258
+ }
259
+ ) });
167
260
  };
168
261
 
169
262
  // src/pages/settings/store/_components/store-general-section.tsx
170
263
  import { Children as Children2 } from "react";
171
- import { Photo } from "@medusajs/icons";
172
- import { Badge, Container as Container3, Text as Text2 } from "@medusajs/ui";
264
+ import { Badge as Badge2, Container as Container3, Text as Text3 } from "@medusajs/ui";
173
265
  import { useTranslation as useTranslation4 } from "react-i18next";
174
266
 
175
267
  // src/pages/settings/store/_components/store-detail-header.tsx
176
268
  import { Children } from "react";
177
269
  import { PencilSquare as PencilSquare3 } from "@medusajs/icons";
178
- import { Avatar, Heading as Heading3, StatusBadge } from "@medusajs/ui";
270
+ import { Avatar, Badge, Heading as Heading3, StatusBadge } from "@medusajs/ui";
179
271
  import { useTranslation as useTranslation3 } from "react-i18next";
180
272
  var import_types = __toESM(require_dist(), 1);
181
273
  import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -207,6 +299,7 @@ var getStatusLabel = (status, t) => {
207
299
  }
208
300
  };
209
301
  var StoreDetailTitle = ({ seller }) => {
302
+ const { t } = useTranslation3();
210
303
  return /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
211
304
  /* @__PURE__ */ jsx3(
212
305
  Avatar,
@@ -217,7 +310,10 @@ var StoreDetailTitle = ({ seller }) => {
217
310
  fallback: seller.name.charAt(0).toUpperCase()
218
311
  }
219
312
  ),
220
- /* @__PURE__ */ jsx3(Heading3, { children: seller.name })
313
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
314
+ /* @__PURE__ */ jsx3(Heading3, { children: seller.name }),
315
+ seller.is_premium && /* @__PURE__ */ jsx3(Badge, { size: "2xsmall", color: "purple", children: t("fields.premium") })
316
+ ] })
221
317
  ] });
222
318
  };
223
319
  var StoreDetailEditButton = () => {
@@ -274,49 +370,55 @@ var StoreGeneralSection = ({
274
370
  alt: seller.name,
275
371
  className: "h-full w-full object-cover"
276
372
  }
277
- ) : /* @__PURE__ */ jsx4("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx4(Photo, { className: "text-ui-fg-muted" }) }) }),
373
+ ) : /* @__PURE__ */ jsx4(
374
+ "div",
375
+ {
376
+ className: "h-full w-full",
377
+ style: {
378
+ background: `repeating-linear-gradient(
379
+ -45deg,
380
+ transparent,
381
+ transparent 10px,
382
+ rgba(255,255,255,0.5) 10px,
383
+ rgba(255,255,255,0.5) 20px
384
+ )`
385
+ }
386
+ }
387
+ ) }),
278
388
  /* @__PURE__ */ jsx4(StoreDetailHeader, { seller }),
279
389
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
280
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
281
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.description || "-" })
390
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
391
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: seller.description || "-" })
392
+ ] }),
393
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
394
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
395
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
282
396
  ] }),
283
397
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
284
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
285
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
398
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
399
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: seller.email || "-" })
286
400
  ] }),
287
401
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
288
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
289
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
402
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
403
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: seller.phone || "-" })
290
404
  ] }),
291
405
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
292
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
293
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.website_url || "-" })
406
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
407
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: seller.website_url || "-" })
294
408
  ] }),
295
409
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
296
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
410
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
297
411
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
298
- /* @__PURE__ */ jsx4(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
299
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
412
+ /* @__PURE__ */ jsx4(Badge2, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
413
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
300
414
  ] })
301
- ] }),
302
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
303
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.premium") }),
304
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.is_premium ? t("general.yes") : t("general.no") })
305
- ] }),
306
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
307
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
308
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: new Date(seller.created_at).toLocaleDateString(void 0, {
309
- year: "numeric",
310
- month: "long",
311
- day: "numeric"
312
- }) })
313
415
  ] })
314
416
  ] }) });
315
417
  };
316
418
 
317
419
  // src/pages/settings/store/_components/store-subscription-section.tsx
318
420
  import { CurrencyDollar } from "@medusajs/icons";
319
- import { Container as Container4, Heading as Heading4, Text as Text3 } from "@medusajs/ui";
421
+ import { Container as Container4, Heading as Heading4, Text as Text4 } from "@medusajs/ui";
320
422
  import { useTranslation as useTranslation5 } from "react-i18next";
321
423
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
322
424
  var StoreSubscriptionSection = ({
@@ -333,9 +435,9 @@ var StoreSubscriptionSection = ({
333
435
  /* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx5("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-4", children: [
334
436
  /* @__PURE__ */ jsx5(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx5(CurrencyDollar, {}) }),
335
437
  /* @__PURE__ */ jsxs5("div", { className: "flex flex-1 flex-col", children: [
336
- /* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", weight: "plus", children: subscription_plan.currency_code?.toUpperCase() }),
438
+ /* @__PURE__ */ jsx5(Text4, { size: "small", leading: "compact", weight: "plus", children: subscription_plan.currency_code?.toUpperCase() }),
337
439
  /* @__PURE__ */ jsxs5(
338
- Text3,
440
+ Text4,
339
441
  {
340
442
  size: "small",
341
443
  leading: "compact",
@@ -357,7 +459,7 @@ var StoreSubscriptionSection = ({
357
459
 
358
460
  // src/pages/settings/store/_components/store-payment-details-section.tsx
359
461
  import { CreditCard, PencilSquare as PencilSquare4 } from "@medusajs/icons";
360
- import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
462
+ import { Container as Container5, Heading as Heading5, Text as Text5 } from "@medusajs/ui";
361
463
  import { useTranslation as useTranslation6 } from "react-i18next";
362
464
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
363
465
  var StorePaymentDetailsSection = ({
@@ -388,12 +490,12 @@ var StorePaymentDetailsSection = ({
388
490
  }
389
491
  )
390
492
  ] }),
391
- /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
493
+ details ? /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
392
494
  /* @__PURE__ */ jsx6(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx6(CreditCard, {}) }),
393
495
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col", children: [
394
- /* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: details?.holder_name || "-" }),
496
+ /* @__PURE__ */ jsx6(Text5, { size: "small", leading: "compact", weight: "plus", children: details.holder_name || "-" }),
395
497
  /* @__PURE__ */ jsx6(
396
- Text4,
498
+ Text5,
397
499
  {
398
500
  size: "small",
399
501
  leading: "compact",
@@ -402,13 +504,16 @@ var StorePaymentDetailsSection = ({
402
504
  }
403
505
  )
404
506
  ] })
405
- ] }) }) })
507
+ ] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
508
+ /* @__PURE__ */ jsx6(Text5, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
509
+ /* @__PURE__ */ jsx6(Text5, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
510
+ ] })
406
511
  ] });
407
512
  };
408
513
 
409
514
  // src/pages/settings/store/_components/store-professional-details-section.tsx
410
515
  import { Buildings, PencilSquare as PencilSquare5 } from "@medusajs/icons";
411
- import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
516
+ import { Container as Container6, Heading as Heading6, Text as Text6 } from "@medusajs/ui";
412
517
  import { useTranslation as useTranslation7 } from "react-i18next";
413
518
  import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
414
519
  var StoreProfessionalDetailsSection = ({
@@ -416,6 +521,7 @@ var StoreProfessionalDetailsSection = ({
416
521
  }) => {
417
522
  const { t } = useTranslation7();
418
523
  const details = seller.professional_details;
524
+ const hasDetails = details?.corporate_name || details?.registration_number || details?.tax_id;
419
525
  return /* @__PURE__ */ jsxs7(Container6, { className: "p-0", children: [
420
526
  /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", children: [
421
527
  /* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("store.professionalDetails.header") }),
@@ -436,12 +542,12 @@ var StoreProfessionalDetailsSection = ({
436
542
  }
437
543
  )
438
544
  ] }),
439
- /* @__PURE__ */ jsx7("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx7("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
545
+ hasDetails ? /* @__PURE__ */ jsx7("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx7("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
440
546
  /* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(Buildings, {}) }),
441
547
  /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
442
- /* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: details?.corporate_name || "-" }),
548
+ /* @__PURE__ */ jsx7(Text6, { size: "small", leading: "compact", weight: "plus", children: details?.corporate_name || "-" }),
443
549
  /* @__PURE__ */ jsx7(
444
- Text5,
550
+ Text6,
445
551
  {
446
552
  size: "small",
447
553
  leading: "compact",
@@ -450,12 +556,15 @@ var StoreProfessionalDetailsSection = ({
450
556
  }
451
557
  )
452
558
  ] })
453
- ] }) }) })
559
+ ] }) }) }) : /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
560
+ /* @__PURE__ */ jsx7(Text6, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
561
+ /* @__PURE__ */ jsx7(Text6, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
562
+ ] })
454
563
  ] });
455
564
  };
456
565
 
457
566
  // src/pages/settings/store/store-detail-page.tsx
458
- import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
567
+ import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
459
568
  var Root = ({ children }) => {
460
569
  const { t } = useTranslation8();
461
570
  const { seller_member, isPending, isError, error } = useMe();
@@ -473,12 +582,6 @@ var Root = ({ children }) => {
473
582
  }
474
583
  const statusAlert = (() => {
475
584
  switch (seller.status) {
476
- case import_types2.SellerStatus.PENDING_APPROVAL:
477
- return {
478
- variant: "warning",
479
- title: t("store.alert.pendingApproval.title"),
480
- description: t("store.alert.pendingApproval.description")
481
- };
482
585
  case import_types2.SellerStatus.SUSPENDED:
483
586
  return {
484
587
  variant: "error",
@@ -495,35 +598,34 @@ var Root = ({ children }) => {
495
598
  return null;
496
599
  }
497
600
  })();
498
- if (Children3.count(children) > 0) {
499
- return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-y-3", children: [
500
- statusAlert && /* @__PURE__ */ jsxs8(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
501
- /* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
502
- /* @__PURE__ */ jsx8(Text6, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
503
- ] }),
504
- /* @__PURE__ */ jsx8(TwoColumnPage, { data: seller, hasOutlet: true, children })
505
- ] });
506
- }
507
- return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-y-3", children: [
601
+ const StoreSetup = components.StoreSetup;
602
+ const StatusBanner = () => /* @__PURE__ */ jsxs8(Fragment3, { children: [
603
+ StoreSetup && /* @__PURE__ */ jsx8(StoreSetup, { seller }),
508
604
  statusAlert && /* @__PURE__ */ jsxs8(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
509
605
  /* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
510
- /* @__PURE__ */ jsx8(Text6, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
606
+ /* @__PURE__ */ jsx8(Text7, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
607
+ ] })
608
+ ] });
609
+ if (Children3.count(children) > 0) {
610
+ return /* @__PURE__ */ jsx8(TwoColumnPage, { data: seller, hasOutlet: true, children });
611
+ }
612
+ return /* @__PURE__ */ jsxs8(TwoColumnPage, { data: seller, hasOutlet: true, children: [
613
+ /* @__PURE__ */ jsxs8(TwoColumnPage.Main, { children: [
614
+ /* @__PURE__ */ jsx8(StatusBanner, {}),
615
+ /* @__PURE__ */ jsx8(StoreGeneralSection, { seller }),
616
+ /* @__PURE__ */ jsx8(StoreTimeOffSection, { seller })
511
617
  ] }),
512
- /* @__PURE__ */ jsxs8(TwoColumnPage, { data: seller, hasOutlet: true, children: [
513
- /* @__PURE__ */ jsx8(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx8(StoreGeneralSection, { seller }) }),
514
- /* @__PURE__ */ jsxs8(TwoColumnPage.Sidebar, { children: [
515
- /* @__PURE__ */ jsx8(StoreConfigurationSection, { seller }),
516
- /* @__PURE__ */ jsx8(StoreAddressSection, { seller }),
517
- /* @__PURE__ */ jsx8(StoreProfessionalDetailsSection, { seller }),
518
- /* @__PURE__ */ jsx8(StorePaymentDetailsSection, { seller }),
519
- /* @__PURE__ */ jsx8(
520
- StoreSubscriptionSection,
521
- {
522
- subscription_plan,
523
- subscription_override
524
- }
525
- )
526
- ] })
618
+ /* @__PURE__ */ jsxs8(TwoColumnPage.Sidebar, { children: [
619
+ /* @__PURE__ */ jsx8(StoreAddressSection, { seller }),
620
+ /* @__PURE__ */ jsx8(StoreProfessionalDetailsSection, { seller }),
621
+ /* @__PURE__ */ jsx8(StorePaymentDetailsSection, { seller }),
622
+ /* @__PURE__ */ jsx8(
623
+ StoreSubscriptionSection,
624
+ {
625
+ subscription_plan,
626
+ subscription_override
627
+ }
628
+ )
527
629
  ] })
528
630
  ] });
529
631
  };
@@ -533,7 +635,7 @@ var StoreDetailPage = Object.assign(Root, {
533
635
  MainGeneralSection: StoreGeneralSection,
534
636
  MainPaymentDetailsSection: StorePaymentDetailsSection,
535
637
  MainProfessionalDetailsSection: StoreProfessionalDetailsSection,
536
- SidebarConfigurationSection: StoreConfigurationSection,
638
+ MainTimeOffSection: StoreTimeOffSection,
537
639
  SidebarAddressSection: StoreAddressSection,
538
640
  SidebarSubscriptionSection: StoreSubscriptionSection,
539
641
  Header: StoreDetailHeader,
@@ -12,8 +12,7 @@ import {
12
12
  import {
13
13
  useMe,
14
14
  useUpdateSeller
15
- } from "./chunk-NYRRRCJS.js";
16
- import "./chunk-STBCWNZQ.js";
15
+ } from "./chunk-ZCJ737TR.js";
17
16
  import "./chunk-F4OJN2F2.js";
18
17
  import "./chunk-LRARA622.js";
19
18
  import "./chunk-M6N4ISXL.js";
@@ -45,17 +44,15 @@ import { useTranslation as useTranslation2 } from "react-i18next";
45
44
 
46
45
  // src/pages/settings/store/store-closure/store-closure-form.tsx
47
46
  import { zodResolver } from "@hookform/resolvers/zod";
48
- import { Button, DatePicker, toast } from "@medusajs/ui";
47
+ import { Button, DatePicker, Textarea, toast } from "@medusajs/ui";
49
48
  import { useForm } from "react-hook-form";
50
49
  import { useTranslation } from "react-i18next";
51
50
  import { z } from "zod";
52
51
  import { jsx, jsxs } from "react/jsx-runtime";
53
52
  var StoreClosureSchema = z.object({
54
- closed_from: z.date({ required_error: "Close from date is required" }),
55
- closed_to: z.date().nullable()
56
- }).refine((data) => data.closed_from >= new Date((/* @__PURE__ */ new Date()).toDateString()), {
57
- message: "Close from date cannot be in the past",
58
- path: ["closed_from"]
53
+ closed_from: z.date({ required_error: "Please enter a first day" }),
54
+ closed_to: z.date().nullable(),
55
+ closure_note: z.string().nullable()
59
56
  });
60
57
  var StoreClosureForm = ({ seller }) => {
61
58
  const { t } = useTranslation();
@@ -63,7 +60,8 @@ var StoreClosureForm = ({ seller }) => {
63
60
  const form = useForm({
64
61
  defaultValues: {
65
62
  closed_from: seller.closed_from ? new Date(seller.closed_from) : null,
66
- closed_to: seller.closed_to ? new Date(seller.closed_to) : null
63
+ closed_to: seller.closed_to ? new Date(seller.closed_to) : null,
64
+ closure_note: seller.closure_note ?? ""
67
65
  },
68
66
  resolver: zodResolver(StoreClosureSchema)
69
67
  });
@@ -72,13 +70,12 @@ var StoreClosureForm = ({ seller }) => {
72
70
  await mutateAsync(
73
71
  {
74
72
  closed_from: data.closed_from || null,
75
- closed_to: data.closed_to || null
73
+ closed_to: data.closed_to || null,
74
+ closure_note: data.closure_note || null
76
75
  },
77
76
  {
78
77
  onSuccess: () => {
79
- toast.success(
80
- t("store.scheduledClosure.edit.successToast")
81
- );
78
+ toast.success(t("store.timeOff.create.successToast"));
82
79
  handleSuccess();
83
80
  },
84
81
  onError: (error) => {
@@ -96,12 +93,11 @@ var StoreClosureForm = ({ seller }) => {
96
93
  name: "closed_from",
97
94
  render: ({ field }) => {
98
95
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
99
- /* @__PURE__ */ jsx(Form.Label, { children: t("store.scheduledClosure.fields.closedFrom") }),
96
+ /* @__PURE__ */ jsx(Form.Label, { children: t("store.timeOff.fields.firstDay") }),
100
97
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
101
98
  DatePicker,
102
99
  {
103
100
  granularity: "minute",
104
- hourCycle: 12,
105
101
  shouldCloseOnSelect: false,
106
102
  ...field
107
103
  }
@@ -118,8 +114,7 @@ var StoreClosureForm = ({ seller }) => {
118
114
  name: "closed_to",
119
115
  render: ({ field }) => {
120
116
  return /* @__PURE__ */ jsxs(Form.Item, { children: [
121
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("store.scheduledClosure.fields.closedTo") }),
122
- /* @__PURE__ */ jsx(Form.Hint, { children: t("store.scheduledClosure.fields.closedToHint") }),
117
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("store.timeOff.fields.lastDay") }),
123
118
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
124
119
  DatePicker,
125
120
  {
@@ -128,6 +123,27 @@ var StoreClosureForm = ({ seller }) => {
128
123
  ...field
129
124
  }
130
125
  ) }),
126
+ /* @__PURE__ */ jsx(Form.Hint, { children: t("store.timeOff.fields.lastDayHint") }),
127
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
128
+ ] });
129
+ }
130
+ }
131
+ ),
132
+ /* @__PURE__ */ jsx(
133
+ Form.Field,
134
+ {
135
+ control: form.control,
136
+ name: "closure_note",
137
+ render: ({ field }) => {
138
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
139
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("store.timeOff.fields.note") }),
140
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
141
+ Textarea,
142
+ {
143
+ ...field,
144
+ value: field.value ?? ""
145
+ }
146
+ ) }),
131
147
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
132
148
  ] });
133
149
  }
@@ -161,8 +177,8 @@ var Component = () => {
161
177
  }
162
178
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
163
179
  /* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
164
- /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("store.scheduledClosure.edit.header") }) }),
165
- /* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("store.scheduledClosure.edit.description") })
180
+ /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("store.timeOff.create.header") }) }),
181
+ /* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("store.timeOff.create.description") })
166
182
  ] }),
167
183
  !isPending && seller && /* @__PURE__ */ jsx2(StoreClosureForm, { seller })
168
184
  ] });