@loczer/storefront-sdk 0.193.0 → 0.195.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-cjcvMCMa.js → Product.shared-iVSHRdn4.js} +21 -21
  2. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CsOe0vXi.js → base-asset-BRQVuIes.js} +1 -1
  3. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-Sjsqh31e.js → base-booking-Bhy2Kww1.js} +2 -2
  4. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-C_ATjuc6.js → base-product-BJHQLX8t.js} +1 -1
  5. package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B01h642r.js → insurance-CPeHsTss.js} +1 -1
  6. package/dist/chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js +14 -0
  7. package/dist/chunks/pkg/ui/dist/{Button-CxG2fSpA.js → Button-Cr_u8vnh.js} +1 -1
  8. package/dist/chunks/pkg/ui/dist/{Dialog-4leTWiev.js → Dialog-CczmPDwY.js} +1 -1
  9. package/dist/chunks/pkg/ui/dist/Drawer/{index-DA5V7R_q.js → index-CSvSVP_J.js} +1 -1
  10. package/dist/chunks/pkg/ui/dist/Map/{MapContent-BmKjdWmq.js → MapContent-CDeWtwKa.js} +1 -1
  11. package/dist/chunks/pkg/ui/dist/{Map-CsOTdTtL.js → Map-Cs7wgtH9.js} +2 -2
  12. package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-CfEqkJ0y.js → MorphingModalWizard-j1CgFGLe.js} +4 -3
  13. package/dist/chunks/pkg/ui/dist/{ResponsiveDialog-C6IWYoIg.js → ResponsiveDialog-BVwhTZQo.js} +3 -3
  14. package/dist/chunks/pkg/ui/dist/{ScrollArea-Bjwo84cv.js → ScrollArea-BqLd0xZj.js} +1 -1
  15. package/dist/chunks/pkg/ui/dist/Spinner/{index-DzMEU0iA.js → index-Cgi70z_E.js} +1 -1
  16. package/dist/chunks/pkg/ui/dist/lib/utils-DXB19bzk.js +8 -0
  17. package/dist/components/BikeProductCard/index.js +6 -6
  18. package/dist/components/BookingBikeVariantDialog/index.js +7 -7
  19. package/dist/components/BookingFlowSteps/index.js +11 -11
  20. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  21. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -1
  22. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +36 -54
  23. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  24. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -1
  25. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +36 -54
  26. package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +1 -1
  27. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +7 -0
  28. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -0
  29. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +27 -0
  30. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts +36 -0
  31. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts.map +1 -0
  32. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.js +830 -0
  33. package/dist/components/BookingPeriodSelector/components/internal/useIsTouchDevice.d.ts +2 -0
  34. package/dist/components/BookingPeriodSelector/components/internal/useIsTouchDevice.d.ts.map +1 -0
  35. package/dist/components/BookingPeriodSelector/components/internal/useIsTouchDevice.js +21 -0
  36. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +4 -1
  37. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
  38. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +114 -110
  39. package/dist/components/ContactSection/index.js +35 -35
  40. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +4 -4
  41. package/dist/components/ContractSaleDocument/ThumbnailSidebar.js +1 -1
  42. package/dist/components/DeliveryAddressSelector/index.js +5 -5
  43. package/dist/components/Footer/index.js +11 -11
  44. package/dist/components/FulfillmentSection/index.js +9 -9
  45. package/dist/components/Header/index.js +61 -61
  46. package/dist/components/Map/index.js +1 -1
  47. package/dist/components/PoweredByLoczerBadge/index.js +5 -5
  48. package/dist/components/ProductPriceBadge/index.js +73 -73
  49. package/dist/components/StorefrontCancellationPolicyNotice/index.js +6 -6
  50. package/dist/components/StorefrontCartPanel/index.js +8 -8
  51. package/dist/components/StorefrontInsuranceNotice/index.js +6 -6
  52. package/dist/components/StorefrontPopupMessages/index.js +8 -8
  53. package/dist/components/payment/MollieCardFieldsForm.js +1 -1
  54. package/dist/components/payment/StripeCardFieldsForm.js +1 -1
  55. package/dist/index.d.ts +15 -3
  56. package/dist/index.js +70 -70
  57. package/dist/lib/booking.js +1 -1
  58. package/dist/lib/checkoutSubmit.js +2 -2
  59. package/dist/lib/utils.d.ts +3 -1
  60. package/dist/lib/utils.d.ts.map +1 -1
  61. package/dist/lib/utils.js +9 -5
  62. package/dist/pages/BookingPage.d.ts.map +1 -1
  63. package/dist/pages/BookingPage.js +187 -159
  64. package/dist/pages/CheckoutPaymentPage.js +1 -1
  65. package/dist/pages/ContractSaleDocumentPage.js +15 -15
  66. package/dist/pages/HomePage.d.ts.map +1 -1
  67. package/dist/pages/HomePage.js +263 -257
  68. package/dist/pages/PaymentLinkPage.js +1 -1
  69. package/dist/pages/PaymentLinkSuccessPage.js +1 -1
  70. package/dist/pages/ProductPage.js +143 -143
  71. package/dist/pages/checkout/components/CheckoutCouponCard.js +5 -5
  72. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +1 -1
  73. package/dist/storefront.css +1 -1
  74. package/dist/storefrontSchemas.js +1 -1
  75. package/package.json +5 -1
  76. package/dist/chunks/node_modules/clsx/dist/clsx-CdyIqUTr.js +0 -16
  77. package/dist/chunks/node_modules/tailwind-merge/dist/bundle-mjs-CF4QheV5.js +0 -1608
  78. package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +0 -14
  79. package/dist/chunks/pkg/ui/dist/lib/utils-BN5KOMSm.js +0 -8
  80. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +0 -22
  81. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +0 -1
  82. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +0 -333
@@ -5,23 +5,23 @@ import a from "../../chunks/assets/whatsapp-m5e0vjnZ.js";
5
5
  import { MISSING_SHOP_ADDRESS as o, MISSING_SHOP_EMAIL as s, MISSING_SHOP_PHONE_NUMBER as c, UNCONFIGURED_SHOP_MAP_CENTER as l } from "../../lib/storefrontMissingValues.js";
6
6
  import { Button as u } from "../../ui/button.js";
7
7
  import { Input as d } from "../../ui/input.js";
8
- import { useStorefront as ee } from "../../StorefrontProvider.js";
9
- import { Form as f, FormControl as p, FormField as m, FormItem as h, FormLabel as g, FormMessage as _ } from "../../ui/form.js";
10
- import { Textarea as v } from "../../ui/textarea.js";
11
- import { createMarkerElement as y } from "../Map/createMarkerElement.js";
8
+ import { useStorefront as f } from "../../StorefrontProvider.js";
9
+ import { Form as p, FormControl as m, FormField as h, FormItem as g, FormLabel as _, FormMessage as v } from "../../ui/form.js";
10
+ import { Textarea as y } from "../../ui/textarea.js";
11
+ import { createMarkerElement as ee } from "../Map/createMarkerElement.js";
12
12
  import { Map as b } from "../Map/index.js";
13
13
  import { z as x } from "zod";
14
14
  import { useMemo as S } from "react";
15
15
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
16
- import { PhoneNumberInput as T, cn as E } from "@rpcbase/ui";
17
- import { toast as D } from "@rpcbase/client";
18
- import { useTranslation as O } from "react-i18next";
16
+ import { toast as T } from "@rpcbase/client";
17
+ import { useTranslation as E } from "react-i18next";
18
+ import { PhoneNumberInput as D, cn as O } from "@rpcbase/ui";
19
19
  import { Mail as k, MapPin as A, Phone as j } from "lucide-react";
20
20
  import { useForm as M, zodResolver as N } from "@rpcbase/form";
21
21
  //#region src/components/ContactSection/index.tsx
22
22
  var P = (e) => e.startsWith("fr") ? "FR" : "US", F = "text-sm font-normal text-current decoration-current underline-offset-4 group-hover:underline", I = "group flex items-start gap-3 text-slate-600 transition-colors hover:text-slate-800";
23
23
  function L({ storeSlug: L }) {
24
- let { t: R, i18n: z } = O(), { storefrontConfiguration: B, mapboxToken: V } = ee(), { shop: H } = B, U = r(H), W = H.emailAddress?.trim() ?? "", G = H.address?.trim() ?? "", K = n(H), q = i({
24
+ let { t: R, i18n: z } = E(), { storefrontConfiguration: B, mapboxToken: V } = f(), { shop: H } = B, U = r(H), W = H.emailAddress?.trim() ?? "", G = H.address?.trim() ?? "", K = n(H), q = i({
25
25
  storefrontConfiguration: B,
26
26
  language: z.language
27
27
  }), J = q?.href, Y = M({
@@ -40,7 +40,7 @@ function L({ storeSlug: L }) {
40
40
  }), X = S(() => {
41
41
  let e = H.gpsCoordinates;
42
42
  return e ? [e[1], e[0]] : null;
43
- }, [H.gpsCoordinates]), Z = X ?? l, Q = S(() => y(), []), $ = S(() => X ? {
43
+ }, [H.gpsCoordinates]), Z = X ?? l, Q = S(() => ee(), []), $ = S(() => X ? {
44
44
  coords: X,
45
45
  element: Q || void 0,
46
46
  offset: [0, -25.5],
@@ -61,13 +61,13 @@ function L({ storeSlug: L }) {
61
61
  })
62
62
  }), i = await r.json().then((e) => t.safeParse(e)).catch(() => ({ success: !1 }));
63
63
  if (r.ok && "success" in i && i.success && i.data.success) {
64
- D.success(R("contact_form_success_toast")), Y.reset();
64
+ T.success(R("contact_form_success_toast")), Y.reset();
65
65
  return;
66
66
  }
67
67
  let a = "success" in i && i.success && i.data.error ? i.data.error : R("contact_form_error_toast");
68
- D.error(a);
68
+ T.error(a);
69
69
  } catch (e) {
70
- console.warn("Storefront contact form request failed", e), D.error(R("contact_form_error_toast"));
70
+ console.warn("Storefront contact form request failed", e), T.error(R("contact_form_error_toast"));
71
71
  }
72
72
  });
73
73
  return /* @__PURE__ */ C("section", {
@@ -266,45 +266,45 @@ function L({ storeSlug: L }) {
266
266
  }),
267
267
  /* @__PURE__ */ C("div", {
268
268
  className: "mt-6",
269
- children: /* @__PURE__ */ C(f, {
269
+ children: /* @__PURE__ */ C(p, {
270
270
  ...Y,
271
271
  children: /* @__PURE__ */ w("form", {
272
272
  onSubmit: ne,
273
273
  className: "grid gap-4",
274
274
  children: [
275
- /* @__PURE__ */ C(m, {
275
+ /* @__PURE__ */ C(h, {
276
276
  control: Y.control,
277
277
  name: "name",
278
- render: ({ field: e }) => /* @__PURE__ */ w(h, { children: [
279
- /* @__PURE__ */ C(g, { children: R("contact_form_name_label") }),
280
- /* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(d, {
278
+ render: ({ field: e }) => /* @__PURE__ */ w(g, { children: [
279
+ /* @__PURE__ */ C(_, { children: R("contact_form_name_label") }),
280
+ /* @__PURE__ */ C(m, { children: /* @__PURE__ */ C(d, {
281
281
  ...e,
282
282
  placeholder: R("contact_form_name_placeholder"),
283
283
  className: "h-11"
284
284
  }) }),
285
- /* @__PURE__ */ C(_, {})
285
+ /* @__PURE__ */ C(v, {})
286
286
  ] })
287
287
  }),
288
- /* @__PURE__ */ C(m, {
288
+ /* @__PURE__ */ C(h, {
289
289
  control: Y.control,
290
290
  name: "emailAddress",
291
- render: ({ field: e }) => /* @__PURE__ */ w(h, { children: [
292
- /* @__PURE__ */ C(g, { children: R("contact_form_email_label") }),
293
- /* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(d, {
291
+ render: ({ field: e }) => /* @__PURE__ */ w(g, { children: [
292
+ /* @__PURE__ */ C(_, { children: R("contact_form_email_label") }),
293
+ /* @__PURE__ */ C(m, { children: /* @__PURE__ */ C(d, {
294
294
  ...e,
295
295
  type: "email",
296
296
  placeholder: R("contact_form_email_placeholder"),
297
297
  className: "h-11"
298
298
  }) }),
299
- /* @__PURE__ */ C(_, {})
299
+ /* @__PURE__ */ C(v, {})
300
300
  ] })
301
301
  }),
302
- /* @__PURE__ */ C(m, {
302
+ /* @__PURE__ */ C(h, {
303
303
  control: Y.control,
304
304
  name: "phoneNumber",
305
- render: ({ field: e, fieldState: t }) => /* @__PURE__ */ w(h, { children: [
306
- /* @__PURE__ */ C(g, { children: R("contact_form_phone_label") }),
307
- /* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(T, {
305
+ render: ({ field: e, fieldState: t }) => /* @__PURE__ */ w(g, { children: [
306
+ /* @__PURE__ */ C(_, { children: R("contact_form_phone_label") }),
307
+ /* @__PURE__ */ C(m, { children: /* @__PURE__ */ C(D, {
308
308
  name: e.name,
309
309
  value: e.value ?? "",
310
310
  onBlur: e.onBlur,
@@ -316,27 +316,27 @@ function L({ storeSlug: L }) {
316
316
  locale: z.language,
317
317
  placeholder: R("contact_form_phone_placeholder"),
318
318
  className: "relative",
319
- inputClassName: E("flex h-11 w-full rounded-md border border-input bg-background py-2 text-base ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", t.error && "border-destructive focus-visible:ring-destructive"),
320
- renderValidationMessage: ({ message: e }) => t.error?.message ? null : /* @__PURE__ */ C(_, {
319
+ inputClassName: O("flex h-11 w-full rounded-md border border-input bg-background py-2 text-base ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", t.error && "border-destructive focus-visible:ring-destructive"),
320
+ renderValidationMessage: ({ message: e }) => t.error?.message ? null : /* @__PURE__ */ C(v, {
321
321
  style: { top: "100%" },
322
322
  children: /* @__PURE__ */ C("span", { children: e })
323
323
  })
324
324
  }) }),
325
- t.error?.message ? /* @__PURE__ */ C(_, {}) : null
325
+ t.error?.message ? /* @__PURE__ */ C(v, {}) : null
326
326
  ] })
327
327
  }),
328
- /* @__PURE__ */ C(m, {
328
+ /* @__PURE__ */ C(h, {
329
329
  control: Y.control,
330
330
  name: "message",
331
- render: ({ field: e }) => /* @__PURE__ */ w(h, { children: [
332
- /* @__PURE__ */ C(g, { children: R("contact_form_message_label") }),
333
- /* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(v, {
331
+ render: ({ field: e }) => /* @__PURE__ */ w(g, { children: [
332
+ /* @__PURE__ */ C(_, { children: R("contact_form_message_label") }),
333
+ /* @__PURE__ */ C(m, { children: /* @__PURE__ */ C(y, {
334
334
  ...e,
335
335
  rows: 5,
336
336
  placeholder: R("contact_form_message_placeholder"),
337
337
  className: "min-h-[132px]"
338
338
  }) }),
339
- /* @__PURE__ */ C(_, {})
339
+ /* @__PURE__ */ C(v, {})
340
340
  ] })
341
341
  }),
342
342
  /* @__PURE__ */ w("div", {
@@ -1,12 +1,12 @@
1
1
  import { formatContractSaleDocumentLabel as e } from "./language.js";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
- import { cn as i } from "@rpcbase/ui";
4
- import { useTranslation as a } from "react-i18next";
3
+ import { useTranslation as i } from "react-i18next";
4
+ import { cn as a } from "@rpcbase/ui";
5
5
  //#region src/components/ContractSaleDocument/DocumentAcceptanceSection.tsx
6
6
  function o({ saleDocument: o, documentLanguage: s, formatDate: c, className: l }) {
7
- let { t: u } = a(), d = (t, n = {}) => e(u, s, t, n), f = o.acceptance?.mode === "signature" ? o.acceptance : null, p = o.acceptance?.mode === "acceptance" ? o.acceptance : null, m = o.acceptanceLevel === "signature" || f !== null;
7
+ let { t: u } = i(), d = (t, n = {}) => e(u, s, t, n), f = o.acceptance?.mode === "signature" ? o.acceptance : null, p = o.acceptance?.mode === "acceptance" ? o.acceptance : null, m = o.acceptanceLevel === "signature" || f !== null;
8
8
  return o.acceptanceLevel === "none" && !o.acceptance ? null : /* @__PURE__ */ n("section", {
9
- className: i("mt-auto border-t border-border pt-8", l),
9
+ className: a("mt-auto border-t border-border pt-8", l),
10
10
  "data-testid": "contract-sale-document-acceptance-section",
11
11
  children: m ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("p", {
12
12
  className: "mb-12 text-center text-sm text-muted-foreground",
@@ -1,4 +1,4 @@
1
- import { ScrollArea as e } from "../../chunks/pkg/ui/dist/ScrollArea-Bjwo84cv.js";
1
+ import { ScrollArea as e } from "../../chunks/pkg/ui/dist/ScrollArea-BqLd0xZj.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  //#region src/components/ContractSaleDocument/ThumbnailSidebar.tsx
4
4
  function r({ thumbnails: r, activePage: i, onThumbnailClick: a, totalPages: o, heightClassName: s = "h-dvh", contentClassName: c, isLoading: l = !1 }) {
@@ -1,11 +1,11 @@
1
1
  import { AddressAutocompleteInput as e } from "../AddressAutocompleteInput/index.js";
2
2
  import { useEffect as t, useRef as n, useState as r } from "react";
3
3
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- import { cn as o } from "@rpcbase/ui";
5
- import { useTranslation as s } from "react-i18next";
4
+ import { useTranslation as o } from "react-i18next";
5
+ import { cn as s } from "@rpcbase/ui";
6
6
  //#region src/components/DeliveryAddressSelector/index.tsx
7
7
  function c({ startAddress: c = "", onStartAddressChange: l, returnAddress: u = "", onReturnAddressChange: d, startAddressLabel: f, startAddressPlaceholder: p, returnAddressLabel: m, returnAddressPlaceholder: h, returnAddressHelper: g, open: _ = !0, className: v, inputClassName: y, labelClassName: b, testIdPrefix: x = "storefront-delivery-address", googleMapsApiKey: S, locationRestriction: C, allowedTypes: w }) {
8
- let { t: T } = s(), [E, D] = r(_), O = n(_);
8
+ let { t: T } = o(), [E, D] = r(_), O = n(_);
9
9
  t(() => {
10
10
  O.current !== _ && (O.current = _, D(!1));
11
11
  }, [_]);
@@ -25,12 +25,12 @@ function c({ startAddress: c = "", onStartAddressChange: l, returnAddress: u = "
25
25
  labelClassName: b
26
26
  };
27
27
  return /* @__PURE__ */ i("div", {
28
- className: o("flow-root transition-[max-height] duration-300 ease-in-out", _ && E ? "overflow-visible" : "overflow-hidden", _ ? "max-h-[360px]" : "max-h-0"),
28
+ className: s("flow-root transition-[max-height] duration-300 ease-in-out", _ && E ? "overflow-visible" : "overflow-hidden", _ ? "max-h-[360px]" : "max-h-0"),
29
29
  "aria-hidden": !_,
30
30
  "data-testid": x,
31
31
  onTransitionEnd: k,
32
32
  children: /* @__PURE__ */ a("div", {
33
- className: o("flex flex-col gap-4 pt-1 sm:flex-row", v, !_ && "pointer-events-none"),
33
+ className: s("flex flex-col gap-4 pt-1 sm:flex-row", v, !_ && "pointer-events-none"),
34
34
  children: [/* @__PURE__ */ i("div", {
35
35
  className: "min-w-0 flex-1",
36
36
  children: /* @__PURE__ */ i(e, {
@@ -3,8 +3,8 @@ import n from "../../chunks/assets/whatsapp-m5e0vjnZ.js";
3
3
  import { MISSING_SHOP_ADDRESS as r, MISSING_SHOP_EMAIL as i, MISSING_SHOP_PHONE_NUMBER as a } from "../../lib/storefrontMissingValues.js";
4
4
  import { BusinessHours as o } from "./BusinessHours.js";
5
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- import { cn as l } from "@rpcbase/ui";
7
- import { useTranslation as u } from "react-i18next";
6
+ import { useTranslation as l } from "react-i18next";
7
+ import { cn as u } from "@rpcbase/ui";
8
8
  import { Clock as d, Mail as f, MapPin as p, Phone as m } from "lucide-react";
9
9
  //#region src/components/Footer/index.tsx
10
10
  var h = "group inline-flex gap-2 text-sm font-normal text-slate-600 decoration-current underline-offset-4 transition-colors hover:text-slate-800 hover:underline", g = "mt-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center text-current transition-colors", _ = (e) => (Math.trunc(e) % 7 + 7) % 7, v = (e) => Array.isArray(e) ? e.map((e) => ({
@@ -26,7 +26,7 @@ var h = "group inline-flex gap-2 text-sm font-normal text-slate-600 decoration-c
26
26
  }))
27
27
  })) : [];
28
28
  function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S, openingHoursOverrides: C }) {
29
- let { t: w } = u(), T = t(_), E = _?.emailAddress?.trim() ?? "", D = _?.address?.trim() ?? "", O = e(_), k = v(S), A = y(C), j = k.length > 0;
29
+ let { t: w } = l(), T = t(_), E = _?.emailAddress?.trim() ?? "", D = _?.address?.trim() ?? "", O = e(_), k = v(S), A = y(C), j = k.length > 0;
30
30
  return /* @__PURE__ */ s("footer", {
31
31
  className: "border-t bg-white",
32
32
  children: /* @__PURE__ */ c("div", {
@@ -51,13 +51,13 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
51
51
  className: "grid gap-2",
52
52
  children: [
53
53
  b ? /* @__PURE__ */ c("a", {
54
- className: l(h, "items-center"),
54
+ className: u(h, "items-center"),
55
55
  href: b,
56
56
  target: "_blank",
57
57
  rel: "noreferrer",
58
58
  children: [
59
59
  /* @__PURE__ */ s("span", {
60
- className: l(g, "h-5 w-5"),
60
+ className: u(g, "h-5 w-5"),
61
61
  children: /* @__PURE__ */ s("img", {
62
62
  src: n,
63
63
  className: "h-5 w-5 shrink-0",
@@ -73,7 +73,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
73
73
  ]
74
74
  }) : null,
75
75
  T ? /* @__PURE__ */ c("a", {
76
- className: l(h, "items-center"),
76
+ className: u(h, "items-center"),
77
77
  href: T.href,
78
78
  "aria-label": T.phoneDisplay,
79
79
  children: [/* @__PURE__ */ s("span", {
@@ -84,7 +84,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
84
84
  })
85
85
  }), /* @__PURE__ */ s("span", { children: T.phoneDisplay })]
86
86
  }) : /* @__PURE__ */ c("div", {
87
- className: l(h, "items-center text-destructive hover:text-destructive hover:no-underline"),
87
+ className: u(h, "items-center text-destructive hover:text-destructive hover:no-underline"),
88
88
  children: [/* @__PURE__ */ s("span", {
89
89
  className: g,
90
90
  children: /* @__PURE__ */ s(m, {
@@ -94,7 +94,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
94
94
  }), /* @__PURE__ */ s("span", { children: a })]
95
95
  }),
96
96
  E ? /* @__PURE__ */ c("a", {
97
- className: l(h, "items-center"),
97
+ className: u(h, "items-center"),
98
98
  href: `mailto:${E}`,
99
99
  "aria-label": E,
100
100
  children: [/* @__PURE__ */ s("span", {
@@ -105,7 +105,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
105
105
  })
106
106
  }), /* @__PURE__ */ s("span", { children: E })]
107
107
  }) : /* @__PURE__ */ c("div", {
108
- className: l(h, "items-center text-destructive hover:text-destructive hover:no-underline"),
108
+ className: u(h, "items-center text-destructive hover:text-destructive hover:no-underline"),
109
109
  children: [/* @__PURE__ */ s("span", {
110
110
  className: g,
111
111
  children: /* @__PURE__ */ s(f, {
@@ -115,7 +115,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
115
115
  }), /* @__PURE__ */ s("span", { children: i })]
116
116
  }),
117
117
  O && D ? /* @__PURE__ */ c("a", {
118
- className: l(h, "items-start"),
118
+ className: u(h, "items-start"),
119
119
  href: O,
120
120
  target: "_blank",
121
121
  rel: "noreferrer",
@@ -127,7 +127,7 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
127
127
  })
128
128
  }), /* @__PURE__ */ s("span", { children: D })]
129
129
  }) : /* @__PURE__ */ c("div", {
130
- className: l(h, "items-start text-destructive hover:text-destructive hover:no-underline"),
130
+ className: u(h, "items-start text-destructive hover:text-destructive hover:no-underline"),
131
131
  children: [/* @__PURE__ */ s("span", {
132
132
  className: g,
133
133
  children: /* @__PURE__ */ s(p, {
@@ -2,14 +2,14 @@ import "../../lib/storefrontMissingValues.js";
2
2
  import { DeliveryAddressSelector as e } from "../DeliveryAddressSelector/index.js";
3
3
  import { RadioGroup as t, RadioGroupItem as n } from "../../ui/radio-group.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { cn as a } from "@rpcbase/ui";
6
- import { useTranslation as o } from "react-i18next";
5
+ import { useTranslation as a } from "react-i18next";
6
+ import { cn as o } from "@rpcbase/ui";
7
7
  import { MapPin as s, Store as c, Truck as l } from "lucide-react";
8
8
  //#region src/components/FulfillmentSection/index.tsx
9
9
  function u({ value: u, onValueChange: d, pickupAddress: f, deliveryEnabled: p, deliveryDisabledReason: m, startAddress: h, onStartAddressChange: g, endAddress: _, onEndAddressChange: v, className: y, showPickupAddressWhenPickupOnly: b = !0, testIdPrefix: x = "storefront-fulfillment", googleMapsApiKey: S, deliveryAddressLocationRestriction: C, deliveryAddressAllowedTypes: w, showDeliveryAddressSelector: T = !0 }) {
10
- let { t: E } = o(), D = f?.trim() ?? "", O = D.length === 0, k = D || "[Missing shop address]", A = m?.trim() ?? "", j = p || A.length > 0, M = u === "delivery" && p ? "delivery" : "pickup";
10
+ let { t: E } = a(), D = f?.trim() ?? "", O = D.length === 0, k = D || "[Missing shop address]", A = m?.trim() ?? "", j = p || A.length > 0, M = u === "delivery" && p ? "delivery" : "pickup";
11
11
  return j ? /* @__PURE__ */ i("div", {
12
- className: a("grid gap-3", y),
12
+ className: o("grid gap-3", y),
13
13
  "data-testid": x,
14
14
  children: [/* @__PURE__ */ i(t, {
15
15
  value: M,
@@ -18,7 +18,7 @@ function u({ value: u, onValueChange: d, pickupAddress: f, deliveryEnabled: p, d
18
18
  },
19
19
  className: "grid gap-2",
20
20
  children: [/* @__PURE__ */ i("label", {
21
- className: a("flex items-start gap-3 rounded-xl border p-3 transition", M === "pickup" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white"),
21
+ className: o("flex items-start gap-3 rounded-xl border p-3 transition", M === "pickup" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white"),
22
22
  "data-testid": `${x}-pickup`,
23
23
  children: [
24
24
  /* @__PURE__ */ r(n, {
@@ -36,13 +36,13 @@ function u({ value: u, onValueChange: d, pickupAddress: f, deliveryEnabled: p, d
36
36
  className: "text-sm font-medium text-slate-950",
37
37
  children: E("booking_pickup_label")
38
38
  }), /* @__PURE__ */ r("span", {
39
- className: a("text-xs text-slate-600", O && "text-destructive"),
39
+ className: o("text-xs text-slate-600", O && "text-destructive"),
40
40
  children: k
41
41
  })]
42
42
  })
43
43
  ]
44
44
  }), /* @__PURE__ */ i("label", {
45
- className: a("flex items-start gap-3 rounded-xl border p-3 transition", p ? M === "delivery" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white" : "cursor-not-allowed border-slate-200 bg-white opacity-60"),
45
+ className: o("flex items-start gap-3 rounded-xl border p-3 transition", p ? M === "delivery" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white" : "cursor-not-allowed border-slate-200 bg-white opacity-60"),
46
46
  "aria-disabled": !p,
47
47
  "data-testid": `${x}-delivery`,
48
48
  children: [
@@ -82,10 +82,10 @@ function u({ value: u, onValueChange: d, pickupAddress: f, deliveryEnabled: p, d
82
82
  allowedTypes: w
83
83
  }) : null]
84
84
  }) : b ? /* @__PURE__ */ i("div", {
85
- className: a("flex items-center gap-2 text-xs text-slate-600", O && "text-destructive", y),
85
+ className: o("flex items-center gap-2 text-xs text-slate-600", O && "text-destructive", y),
86
86
  "data-testid": `${x}-pickup-address`,
87
87
  children: [/* @__PURE__ */ r(s, {
88
- className: a("h-4 w-4 shrink-0 text-slate-900", O && "text-destructive"),
88
+ className: o("h-4 w-4 shrink-0 text-slate-900", O && "text-destructive"),
89
89
  "aria-hidden": "true"
90
90
  }), /* @__PURE__ */ r("span", { children: k })]
91
91
  }) : null;
@@ -2,16 +2,16 @@ import { resolveBookingSearchParamsFromSessionStorage as e } from "../../lib/boo
2
2
  import { useStorefrontCart as t } from "../../lib/cart.js";
3
3
  import { getLocalizedValue as n } from "../../localization.js";
4
4
  import { buildStorefrontImageUrl as r } from "../../lib/storefrontImage.js";
5
- import i from "../../chunks/assets/whatsapp-m5e0vjnZ.js";
6
- import { MISSING_SHOP_EMAIL as a } from "../../lib/storefrontMissingValues.js";
7
- import { formatStorefrontAddressTagline as o } from "../../lib/storefrontAddress.js";
8
- import { Badge as s } from "../../ui/badge.js";
9
- import { Button as c } from "../../ui/button.js";
10
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
- import { cn as d, useScrollHideOnDown as f } from "@rpcbase/ui";
12
- import { useMediaQuery as p, useThrottledMeasure as m } from "@rpcbase/client";
13
- import { Link as h, useLocation as g, useParams as ee } from "@rpcbase/router";
14
- import { useTranslation as _ } from "react-i18next";
5
+ import ee from "../../chunks/assets/whatsapp-m5e0vjnZ.js";
6
+ import { MISSING_SHOP_EMAIL as i } from "../../lib/storefrontMissingValues.js";
7
+ import { formatStorefrontAddressTagline as a } from "../../lib/storefrontAddress.js";
8
+ import { Badge as o } from "../../ui/badge.js";
9
+ import { Button as s } from "../../ui/button.js";
10
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
11
+ import { useMediaQuery as u, useThrottledMeasure as d } from "@rpcbase/client";
12
+ import { Link as f, useLocation as p, useParams as m } from "@rpcbase/router";
13
+ import { useTranslation as h } from "react-i18next";
14
+ import { cn as g, useScrollHideOnDown as _ } from "@rpcbase/ui";
15
15
  import { ArrowRight as v, ShoppingCart as y } from "lucide-react";
16
16
  //#region src/components/Header/index.tsx
17
17
  var b = 36, x = (e, t) => {
@@ -19,153 +19,153 @@ var b = 36, x = (e, t) => {
19
19
  return n ? r(n, t ?? "") : "";
20
20
  };
21
21
  function S({ storefrontConfiguration: r, whatsappHref: S, whatsappPhoneDisplay: C }) {
22
- let { t: w, i18n: T } = _(), { storeSlug: E } = ee(), D = g(), { itemCount: O } = t(), k = p("(max-width: 640px)"), [A, te] = m(), j = te?.height ?? b, M = f({
22
+ let { t: w, i18n: T } = h(), { storeSlug: E } = m(), D = p(), { itemCount: O } = t(), k = u("(max-width: 640px)"), [A, te] = d(), j = te?.height ?? b, M = _({
23
23
  enabled: k,
24
24
  thresholdPx: j
25
25
  }), N = k && M ? `translateY(-${j}px)` : "translateY(0)", P = () => {
26
26
  let e = T.language.startsWith("fr") ? "en" : "fr";
27
27
  T.changeLanguage(e);
28
- }, F = `/${E ?? ""}`, I = e(new URLSearchParams(D.search), E), L = I.toString(), R = !!(I.get("start_time")?.trim() && I.get("end_time")?.trim()), z = L ? `?${L}` : "", B = `${F}/booking${z}`, V = `${F}/checkout${z}`, H = r?.shop.name?.trim() ?? "", U = r?.shop.emailAddress?.trim() ?? "", W = r?.workspace?.workspaceLanguage, G = n(r?.content?.tagline, T.language, W).trim(), K = o(r?.shop), q = G || K || "[Missing shop address]", J = !G && !K, Y = n(r?.content?.topBannerMessage, T.language, W).trim() || w("top_bar_message"), X = x(r?.content?.logoWideImageId, E), Z = x(r?.shop.logoImageId ?? r?.content?.logoSquareImageId, E), Q = X.length > 0, $ = Z.length > 0;
29
- return /* @__PURE__ */ u("div", {
28
+ }, F = `/${E ?? ""}`, I = e(new URLSearchParams(D.search), E), L = I.toString(), R = !!(I.get("start_time")?.trim() && I.get("end_time")?.trim()), z = L ? `?${L}` : "", B = `${F}/booking${z}`, V = `${F}/checkout${z}`, H = r?.shop.name?.trim() ?? "", U = r?.shop.emailAddress?.trim() ?? "", W = r?.workspace?.workspaceLanguage, G = n(r?.content?.tagline, T.language, W).trim(), K = a(r?.shop), q = G || K || "[Missing shop address]", J = !G && !K, Y = n(r?.content?.topBannerMessage, T.language, W).trim() || w("top_bar_message"), X = x(r?.content?.logoWideImageId, E), Z = x(r?.shop.logoImageId ?? r?.content?.logoSquareImageId, E), Q = X.length > 0, $ = Z.length > 0;
29
+ return /* @__PURE__ */ l("div", {
30
30
  className: "sticky top-0 z-30",
31
- children: [/* @__PURE__ */ l("div", {
31
+ children: [/* @__PURE__ */ c("div", {
32
32
  className: "transition-transform duration-300",
33
33
  style: { transform: N },
34
- children: /* @__PURE__ */ l("div", {
34
+ children: /* @__PURE__ */ c("div", {
35
35
  ref: A,
36
36
  className: "bg-slate-950 text-white",
37
- children: /* @__PURE__ */ u("div", {
37
+ children: /* @__PURE__ */ l("div", {
38
38
  className: "mx-auto flex max-w-7xl items-center justify-between gap-3 px-4 py-2 text-xs sm:px-6",
39
- children: [/* @__PURE__ */ l("p", {
39
+ children: [/* @__PURE__ */ c("p", {
40
40
  className: "flex items-center gap-2",
41
- children: /* @__PURE__ */ l("span", { children: Y })
42
- }), /* @__PURE__ */ u("div", {
41
+ children: /* @__PURE__ */ c("span", { children: Y })
42
+ }), /* @__PURE__ */ l("div", {
43
43
  className: "hidden items-center gap-4 sm:flex",
44
- children: [U ? /* @__PURE__ */ l("a", {
44
+ children: [U ? /* @__PURE__ */ c("a", {
45
45
  className: "inline-flex items-center gap-2 rounded-md px-2 py-1 text-white/90 hover:bg-white/10 hover:text-white",
46
46
  href: `mailto:${U}`,
47
47
  "aria-label": U,
48
- children: /* @__PURE__ */ l("span", { children: U })
49
- }) : /* @__PURE__ */ l("span", {
48
+ children: /* @__PURE__ */ c("span", { children: U })
49
+ }) : /* @__PURE__ */ c("span", {
50
50
  className: "inline-flex items-center rounded-md px-2 py-1 text-destructive",
51
- children: a
52
- }), S ? /* @__PURE__ */ u("a", {
51
+ children: i
52
+ }), S ? /* @__PURE__ */ l("a", {
53
53
  className: "inline-flex items-center gap-2 rounded-md px-2 py-1 text-white/90 hover:bg-white/10 hover:text-white",
54
54
  href: S,
55
55
  target: "_blank",
56
56
  rel: "noreferrer",
57
57
  "aria-label": `WhatsApp${C ? ` ${C}` : ""}`,
58
- children: [/* @__PURE__ */ l("img", {
59
- src: i,
58
+ children: [/* @__PURE__ */ c("img", {
59
+ src: ee,
60
60
  className: "h-5 w-5 shrink-0",
61
61
  alt: "",
62
62
  "aria-hidden": "true"
63
- }), C ? /* @__PURE__ */ l("span", { children: C }) : null]
63
+ }), C ? /* @__PURE__ */ c("span", { children: C }) : null]
64
64
  }) : null]
65
65
  })]
66
66
  })
67
67
  })
68
- }), /* @__PURE__ */ l("header", {
68
+ }), /* @__PURE__ */ c("header", {
69
69
  className: "sticky top-0 z-30 border-b bg-white/90 backdrop-blur transition-transform duration-300",
70
70
  style: { transform: N },
71
- children: /* @__PURE__ */ u("div", {
71
+ children: /* @__PURE__ */ l("div", {
72
72
  className: "mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6",
73
73
  children: [
74
- /* @__PURE__ */ u(h, {
74
+ /* @__PURE__ */ l(f, {
75
75
  to: F,
76
76
  className: "flex min-w-0 items-center gap-3",
77
- children: [$ ? /* @__PURE__ */ l("span", {
77
+ children: [$ ? /* @__PURE__ */ c("span", {
78
78
  className: "inline-flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-slate-200 bg-white",
79
- children: /* @__PURE__ */ l("img", {
79
+ children: /* @__PURE__ */ c("img", {
80
80
  src: Z,
81
81
  alt: "",
82
82
  className: "h-full w-full object-contain",
83
83
  "aria-hidden": "true"
84
84
  })
85
- }) : Q ? null : /* @__PURE__ */ l("span", {
85
+ }) : Q ? null : /* @__PURE__ */ c("span", {
86
86
  className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border-2 border-dashed border-slate-300 bg-slate-50 text-slate-400",
87
- children: /* @__PURE__ */ l("span", {
87
+ children: /* @__PURE__ */ c("span", {
88
88
  className: "text-lg font-semibold leading-none",
89
89
  "aria-hidden": "true",
90
90
  children: "?"
91
91
  })
92
- }), /* @__PURE__ */ u("span", {
92
+ }), /* @__PURE__ */ l("span", {
93
93
  className: "flex min-w-0 flex-col leading-tight",
94
- children: [Q && !$ ? /* @__PURE__ */ l("img", {
94
+ children: [Q && !$ ? /* @__PURE__ */ c("img", {
95
95
  src: X,
96
96
  alt: H,
97
97
  className: "h-8 max-w-[10rem] object-contain object-left sm:max-w-[14rem]"
98
- }) : /* @__PURE__ */ l("span", {
98
+ }) : /* @__PURE__ */ c("span", {
99
99
  className: "truncate text-sm font-semibold",
100
100
  children: H
101
- }), /* @__PURE__ */ l("span", {
102
- className: d("truncate text-xs text-slate-600", J && "text-destructive"),
101
+ }), /* @__PURE__ */ c("span", {
102
+ className: g("truncate text-xs text-slate-600", J && "text-destructive"),
103
103
  children: q
104
104
  })]
105
105
  })]
106
106
  }),
107
- /* @__PURE__ */ u("nav", {
107
+ /* @__PURE__ */ l("nav", {
108
108
  className: "hidden items-center gap-6 text-sm font-medium text-slate-700 md:flex",
109
109
  children: [
110
- /* @__PURE__ */ l(h, {
110
+ /* @__PURE__ */ c(f, {
111
111
  className: "hover:text-slate-950",
112
112
  to: `${F}${z}#categories`,
113
- children: /* @__PURE__ */ l("span", { children: w("nav_categories") })
113
+ children: /* @__PURE__ */ c("span", { children: w("nav_categories") })
114
114
  }),
115
- /* @__PURE__ */ l(h, {
115
+ /* @__PURE__ */ c(f, {
116
116
  className: "hover:text-slate-950",
117
117
  to: `${F}${z}#featured`,
118
- children: /* @__PURE__ */ l("span", { children: w("nav_featured") })
118
+ children: /* @__PURE__ */ c("span", { children: w("nav_featured") })
119
119
  }),
120
- /* @__PURE__ */ l(h, {
120
+ /* @__PURE__ */ c(f, {
121
121
  className: "hover:text-slate-950",
122
122
  to: B,
123
- children: /* @__PURE__ */ l("span", { children: w("nav_products") })
123
+ children: /* @__PURE__ */ c("span", { children: w("nav_products") })
124
124
  }),
125
- /* @__PURE__ */ l(h, {
125
+ /* @__PURE__ */ c(f, {
126
126
  className: "hover:text-slate-950",
127
127
  to: `${F}${z}#contact`,
128
- children: /* @__PURE__ */ l("span", { children: w("nav_contact") })
128
+ children: /* @__PURE__ */ c("span", { children: w("nav_contact") })
129
129
  })
130
130
  ]
131
131
  }),
132
- /* @__PURE__ */ u("div", {
132
+ /* @__PURE__ */ l("div", {
133
133
  className: "flex items-center gap-2",
134
134
  children: [
135
- /* @__PURE__ */ l(c, {
135
+ /* @__PURE__ */ c(s, {
136
136
  variant: "outline",
137
137
  size: "sm",
138
138
  className: "hidden sm:inline-flex",
139
139
  onClick: P,
140
- children: /* @__PURE__ */ l("span", { children: w("language_toggle") })
140
+ children: /* @__PURE__ */ c("span", { children: w("language_toggle") })
141
141
  }),
142
- /* @__PURE__ */ l(c, {
142
+ /* @__PURE__ */ c(s, {
143
143
  asChild: !0,
144
144
  variant: "outline",
145
145
  size: "sm",
146
- className: d("relative gap-2", O > 0 && R ? "inline-flex" : "hidden"),
147
- children: /* @__PURE__ */ u(h, {
146
+ className: g("relative gap-2", O > 0 && R ? "inline-flex" : "hidden"),
147
+ children: /* @__PURE__ */ l(f, {
148
148
  to: V,
149
149
  children: [
150
- /* @__PURE__ */ l(y, {
150
+ /* @__PURE__ */ c(y, {
151
151
  className: "h-4 w-4",
152
152
  "aria-hidden": "true"
153
153
  }),
154
- /* @__PURE__ */ l("span", { children: w("cart_button") }),
155
- /* @__PURE__ */ l(s, {
154
+ /* @__PURE__ */ c("span", { children: w("cart_button") }),
155
+ /* @__PURE__ */ c(o, {
156
156
  className: "absolute -right-2 -top-2 h-5 min-w-5 rounded-full px-1.5 text-xs",
157
- children: /* @__PURE__ */ l("span", { children: O })
157
+ children: /* @__PURE__ */ c("span", { children: O })
158
158
  })
159
159
  ]
160
160
  })
161
161
  }),
162
- /* @__PURE__ */ l(c, {
162
+ /* @__PURE__ */ c(s, {
163
163
  asChild: !0,
164
164
  size: "sm",
165
165
  className: "gap-2",
166
- children: /* @__PURE__ */ u(h, {
166
+ children: /* @__PURE__ */ l(f, {
167
167
  to: B,
168
- children: [/* @__PURE__ */ l("span", { children: w("cta_book_now") }), /* @__PURE__ */ l(v, {
168
+ children: [/* @__PURE__ */ c("span", { children: w("cta_book_now") }), /* @__PURE__ */ c(v, {
169
169
  className: "h-4 w-4",
170
170
  "aria-hidden": "true"
171
171
  })]
@@ -1,4 +1,4 @@
1
- import { Map as e } from "../../chunks/pkg/ui/dist/Map-CsOTdTtL.js";
1
+ import { Map as e } from "../../chunks/pkg/ui/dist/Map-Cs7wgtH9.js";
2
2
  import { createMarkerElement as t } from "./createMarkerElement.js";
3
3
  //#region src/components/Map/index.tsx
4
4
  var n = e;