@loczer/storefront-sdk 0.230.0 → 0.231.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 (50) hide show
  1. package/dist/StorefrontContext.d.ts +0 -2
  2. package/dist/StorefrontContext.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.d.ts +0 -1
  4. package/dist/StorefrontProvider.d.ts.map +1 -1
  5. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-C9kJFMIu.js → base-booking-BJXFzDM5.js} +0 -2
  6. package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-epi7FXIk.js → cart-inputs-3lBblkB0.js} +0 -10
  7. package/dist/chunks/pkg/booking-engine/dist/{schemas-DW5gdDYz.js → schemas-JjiUWFIv.js} +2 -2
  8. package/dist/components/BookingBikeQuickAddCard/index.d.ts +3 -1
  9. package/dist/components/BookingBikeQuickAddCard/index.d.ts.map +1 -1
  10. package/dist/components/BookingBikeQuickAddCard/index.js +97 -85
  11. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
  12. package/dist/components/BookingBikeVariantDialog/index.js +9 -7
  13. package/dist/components/Footer/businessHoursStatus.js +1 -1
  14. package/dist/components/LanguageSelector/index.js +1 -1
  15. package/dist/components/StorefrontCartPanel/index.js +1 -1
  16. package/dist/i18n/en.d.ts +0 -4
  17. package/dist/i18n/en.d.ts.map +1 -1
  18. package/dist/i18n/en.js +0 -4
  19. package/dist/i18n/fr.d.ts +0 -4
  20. package/dist/i18n/fr.d.ts.map +1 -1
  21. package/dist/i18n/fr.js +1 -5
  22. package/dist/index.d.ts +12 -35
  23. package/dist/index.js +3 -3
  24. package/dist/lib/booking-period.js +1 -1
  25. package/dist/lib/booking.d.ts +6 -6
  26. package/dist/lib/booking.d.ts.map +1 -1
  27. package/dist/lib/booking.js +21 -21
  28. package/dist/lib/checkoutSubmit.d.ts +2 -6
  29. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  30. package/dist/lib/checkoutSubmit.js +3 -11
  31. package/dist/lib/pricing.js +1 -1
  32. package/dist/lib/storefrontAvailability.d.ts +12 -8
  33. package/dist/lib/storefrontAvailability.d.ts.map +1 -1
  34. package/dist/lib/storefrontAvailability.js +17 -7
  35. package/dist/pages/BookingPage.d.ts.map +1 -1
  36. package/dist/pages/BookingPage.js +202 -204
  37. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  38. package/dist/pages/CheckoutPage.js +23 -25
  39. package/dist/pages/HomePage.js +8 -8
  40. package/dist/pages/ProductPage.d.ts.map +1 -1
  41. package/dist/pages/ProductPage.js +187 -181
  42. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
  43. package/dist/pages/checkout/components/CheckoutDetailsCard.js +4 -17
  44. package/dist/pages/checkout/types.d.ts +1 -2
  45. package/dist/pages/checkout/types.d.ts.map +1 -1
  46. package/dist/pages/checkout/types.js +1 -2
  47. package/dist/storefrontSchemas.d.ts +0 -2
  48. package/dist/storefrontSchemas.d.ts.map +1 -1
  49. package/dist/storefrontSchemas.js +1 -2
  50. package/package.json +1 -1
@@ -45,7 +45,6 @@ export declare function useStorefrontConfig(): {
45
45
  defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
46
46
  defaultFewRemainingThreshold?: number | undefined;
47
47
  };
48
- enabled: boolean;
49
48
  fulfillmentModes: ("pickup" | "delivery")[];
50
49
  deliveryDisabledReason: string;
51
50
  sameDayCutoff: string;
@@ -288,7 +287,6 @@ export declare function useStorefrontConfig(): {
288
287
  defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
289
288
  defaultFewRemainingThreshold?: number | undefined;
290
289
  };
291
- enabled: boolean;
292
290
  fulfillmentModes: ("pickup" | "delivery")[];
293
291
  deliveryDisabledReason: string;
294
292
  sameDayCutoff: string;
@@ -1 +1 @@
1
- {"version":3,"file":"StorefrontContext.d.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WAAW,EAAE,0BAA0B,EAAE,CAAA;IACzC,mBAAmB,EAAE,0BAA0B,EAAE,CAAA;CAClD,CAAA;AAUD,eAAO,MAAM,iBAAiB,6CAEmC,CAAA;AAKjE,wBAAgB,aAAa,2BAQ5B;AAED,wBAAgB,qBAAqB,uCAEpC;AAED,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC;AAED,wBAAgB,8BAA8B,IAAI,sBAAsB,CAGvE;AAED,wBAAgB,qBAAqB;;;EAGpC;AAED,wBAAgB,4BAA4B;;;EAG3C;AAED,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvC"}
@@ -26,7 +26,6 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
26
26
  defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
27
27
  defaultFewRemainingThreshold?: number | undefined;
28
28
  };
29
- enabled: boolean;
30
29
  fulfillmentModes: ("pickup" | "delivery")[];
31
30
  deliveryDisabledReason: string;
32
31
  sameDayCutoff: string;
@@ -1 +1 @@
1
- {"version":3,"file":"StorefrontProvider.d.ts","sourceRoot":"","sources":["../src/StorefrontProvider.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFA,CAAA;AAGnB,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAqBzC;AAED,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"StorefrontProvider.d.ts","sourceRoot":"","sources":["../src/StorefrontProvider.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFA,CAAA;AAGnB,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAqBzC;AAED,cAAc,qBAAqB,CAAA"}
@@ -22,8 +22,6 @@ var d = u.enum([
22
22
  qty: u.number().int().positive(),
23
23
  productVariantId: e.optional()
24
24
  }), p = u.object({
25
- firstName: u.string().trim().min(1).optional(),
26
- lastName: u.string().trim().min(1).optional(),
27
25
  name: u.preprocess((e) => {
28
26
  if (typeof e != "string") return;
29
27
  let t = e.trim();
@@ -13,16 +13,6 @@ var c = s.object({
13
13
  startTime: a,
14
14
  endTime: a
15
15
  }), l = s.object({
16
- firstName: s.preprocess((e) => {
17
- if (typeof e != "string") return;
18
- let t = e.trim();
19
- return t.length > 0 ? t : void 0;
20
- }, s.string().min(1).optional()),
21
- lastName: s.preprocess((e) => {
22
- if (typeof e != "string") return;
23
- let t = e.trim();
24
- return t.length > 0 ? t : void 0;
25
- }, s.string().min(1).optional()),
26
16
  name: s.preprocess((e) => {
27
17
  if (typeof e != "string") return;
28
18
  let t = e.trim();
@@ -7,10 +7,10 @@ import { richTextJsonDocSchema as k, richTextSchema as A, richTextVersionSchema
7
7
  import { isoDateSchema as M, shopConfigurationSchema as N, shopExtraTimeSlotRuleSchema as P, shopOpeningDayIndexSchema as F, shopOpeningDaySchema as I, shopOpeningHoursOverrideSchema as L, shopOpeningHoursPeriodSchema as R, shopOpeningSlotSchema as z, timeOfDaySchema as B } from "./schemas/shop-opening-hours-BlLD1gfz.js";
8
8
  import { DEFAULT_CANCELLATION_POLICY as V, DEFAULT_PAYMENT_POLICIES as H, cancellationPolicySchema as U, cancellationPolicyTierSchema as W, paymentPoliciesSchema as G } from "./schemas/booking-engine-configuration-LnrhShqm.js";
9
9
  import { fulfillmentModeSchema as K, publicBookingEngineConfigurationSchema as q, publicCheckoutConfigurationSchema as J, publicCheckoutDynamicOptionsSchema as Y } from "./schemas/public-booking-engine-configuration-CEM9mexX.js";
10
- import { DEFAULT_BOOKING_DELIVERY_OPTION as X, bookingCustomerInputSchema as Z, bookingDeliveryOptionSchema as Q, bookingScheduleInputSchema as $, cartItemInputSchema as ee, createBookingInputBaseSchema as te, createBookingInputSchema as ne, resolveBookingDeliveryOption as re, validateBookingDeliveryAddress as ie } from "./schemas/cart-inputs-epi7FXIk.js";
10
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as X, bookingCustomerInputSchema as Z, bookingDeliveryOptionSchema as Q, bookingScheduleInputSchema as $, cartItemInputSchema as ee, createBookingInputBaseSchema as te, createBookingInputSchema as ne, resolveBookingDeliveryOption as re, validateBookingDeliveryAddress as ie } from "./schemas/cart-inputs-3lBblkB0.js";
11
11
  import { bookingInsuranceConsentSourceSchema as ae, bookingInsuranceItemSnapshotSchema as oe, bookingInsuranceSnapshotSchema as se, buildBookingInsuranceSnapshot as ce, calculateInsuranceCalendarDays as le, insuranceProviderSchema as ue } from "./schemas/insurance-DXc34Bzy.js";
12
12
  import { resolveOpeningHoursForDate as de, resolveOpeningHoursPeriodForDate as fe } from "./utils/opening-hours-period-TCyLhzZw.js";
13
13
  import "./schemas/base-product-Bde9lJQD.js";
14
14
  import { assetIdSchema as pe, baseAssetSchema as me, baseAssetStatusSchema as he } from "./schemas/base-asset-BhIOL2rP.js";
15
- import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./schemas/base-booking-C9kJFMIu.js";
15
+ import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./schemas/base-booking-BJXFzDM5.js";
16
16
  export { X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, pe as assetIdSchema, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, le as calculateInsuranceCalendarDays, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, K as fulfillmentModeSchema, t as getLocalizedStringValue, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, M as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, re as resolveBookingDeliveryOption, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, u as signedMoneyMinorSchema, B as timeOfDaySchema, ie as validateBookingDeliveryAddress };
@@ -7,6 +7,8 @@ type BookingBikeQuickAddCardProps = {
7
7
  };
8
8
  actionDisabled?: boolean;
9
9
  fallbackLanguage?: string;
10
+ getVariantAvailabilityLabel: (variantId: string) => string | null;
11
+ isVariantOutOfCapacity: (variantId: string) => boolean;
10
12
  dimOnColumnCount: 1 | 2 | null;
11
13
  onAction: () => void;
12
14
  onQuickAdd: (variantId: string, quantity: number) => void;
@@ -14,6 +16,6 @@ type BookingBikeQuickAddCardProps = {
14
16
  onHoverEnd: () => void;
15
17
  testId: string;
16
18
  };
17
- export declare function BookingBikeQuickAddCard({ bike, detailsPath, productDetailsLinkState, actionDisabled, fallbackLanguage, dimOnColumnCount, onAction, onQuickAdd, onHoverStart, onHoverEnd, testId, }: BookingBikeQuickAddCardProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function BookingBikeQuickAddCard({ bike, detailsPath, productDetailsLinkState, actionDisabled, fallbackLanguage, getVariantAvailabilityLabel, isVariantOutOfCapacity, dimOnColumnCount, onAction, onQuickAdd, onHoverStart, onHoverEnd, testId, }: BookingBikeQuickAddCardProps): import("react/jsx-runtime").JSX.Element;
18
20
  export {};
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeQuickAddCard/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAgCrD,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,uBAAuB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACzD,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,WAAW,EACX,uBAAuB,EACvB,cAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,MAAM,GACP,EAAE,4BAA4B,2CAwN9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeQuickAddCard/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAiCrD,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,uBAAuB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2BAA2B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IACjE,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IACtD,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACzD,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,WAAW,EACX,uBAAuB,EACvB,cAAsB,EACtB,gBAAgB,EAChB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,MAAM,GACP,EAAE,4BAA4B,2CAqO9B"}
@@ -1,88 +1,90 @@
1
1
  import { getStorefrontProductVariantDisplay as e, getStorefrontProductVariantHeightRange as t } from "../../lib/productVariants.js";
2
- import { Button as n } from "../../ui/button.js";
3
- import { AnimatePresence as r } from "../../chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/index-DmhaitYv.js";
4
- import { motion as i } from "../../chunks/node_modules/framer-motion/dist/es/render/components/motion/proxy-DXxjnqei.js";
5
- import { Input as a } from "../../ui/input.js";
6
- import { BikeProductCard as o } from "../BikeProductCard/index.js";
7
- import { useEffect as s, useRef as c, useState as l } from "react";
8
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
- import { useTranslation as f } from "react-i18next";
10
- import { cn as p } from "@rpcbase/ui";
11
- import { Plus as m } from "lucide-react";
2
+ import { Badge as n } from "../../ui/badge.js";
3
+ import { Button as r } from "../../ui/button.js";
4
+ import { AnimatePresence as i } from "../../chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/index-DmhaitYv.js";
5
+ import { motion as a } from "../../chunks/node_modules/framer-motion/dist/es/render/components/motion/proxy-DXxjnqei.js";
6
+ import { Input as o } from "../../ui/input.js";
7
+ import { BikeProductCard as s } from "../BikeProductCard/index.js";
8
+ import { useEffect as c, useRef as l, useState as u } from "react";
9
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
10
+ import { useTranslation as p } from "react-i18next";
11
+ import { cn as m } from "@rpcbase/ui";
12
+ import { Plus as h } from "lucide-react";
12
13
  //#region src/components/BookingBikeQuickAddCard/index.tsx
13
- var h = () => typeof window < "u" && window.matchMedia("(hover: hover) and (pointer: fine)").matches, g = (e) => {
14
+ var g = () => typeof window < "u" && window.matchMedia("(hover: hover) and (pointer: fine)").matches, _ = (e) => {
14
15
  let t = Number.parseInt(e, 10);
15
16
  return !Number.isFinite(t) || t < 1 ? 1 : t;
16
- }, _ = (e) => {
17
+ }, v = (e) => {
17
18
  let t = e.replace(/\D/g, "");
18
- return t ? String(g(t)) : "";
19
+ return t ? String(_(t)) : "";
19
20
  };
20
- function v({ bike: v, detailsPath: y, productDetailsLinkState: b, actionDisabled: x = !1, fallbackLanguage: S, dimOnColumnCount: C, onAction: w, onQuickAdd: T, onHoverStart: E, onHoverEnd: D, testId: O }) {
21
- let { t: k } = f(), A = c(null), [j, M] = l(!1), [N, P] = l({}), F = v.productVariants ?? [], I = !x && F.length > 0, L = () => !I || !h() ? !1 : (M(!0), !0), R = () => {
22
- M(!1), P({});
21
+ function y({ bike: y, detailsPath: b, productDetailsLinkState: x, actionDisabled: S = !1, fallbackLanguage: C, getVariantAvailabilityLabel: w, isVariantOutOfCapacity: T, dimOnColumnCount: E, onAction: D, onQuickAdd: O, onHoverStart: k, onHoverEnd: A, testId: j }) {
22
+ let { t: M } = p(), N = l(null), [P, F] = u(!1), [I, L] = u({}), R = y.productVariants ?? [], z = !S && R.length > 0, B = () => !z || !g() ? !1 : (F(!0), !0), V = () => {
23
+ F(!1), L({});
23
24
  };
24
- s(() => {
25
- if (!j) return;
25
+ c(() => {
26
+ if (!P) return;
26
27
  let e = (e) => {
27
28
  if (e.pointerType !== "mouse") return;
28
29
  let t = e.target;
29
- t instanceof Node && A.current?.contains(t) || R();
30
+ t instanceof Node && N.current?.contains(t) || V();
30
31
  }, t = (e) => {
31
32
  let t = e.target;
32
- t instanceof Node && A.current?.contains(t) || R();
33
+ t instanceof Node && N.current?.contains(t) || V();
33
34
  };
34
35
  return document.addEventListener("pointermove", e), document.addEventListener("pointerdown", t), () => {
35
36
  document.removeEventListener("pointermove", e), document.removeEventListener("pointerdown", t);
36
37
  };
37
- }, [j]);
38
- let z = (e) => {
39
- e.pointerType === "mouse" && L() && E();
40
- }, B = (e) => {
38
+ }, [P]);
39
+ let H = (e) => {
40
+ e.pointerType === "mouse" && B() && k();
41
+ }, U = (e) => {
41
42
  if (e.pointerType !== "mouse") return;
42
43
  let t = e.relatedTarget;
43
- t instanceof Node && e.currentTarget.contains(t) || (R(), D());
44
- }, V = (e) => {
44
+ t instanceof Node && e.currentTarget.contains(t) || (V(), A());
45
+ }, W = (e) => {
45
46
  let t = e.relatedTarget;
46
- (!(t instanceof Node) || !e.currentTarget.contains(t)) && R();
47
- }, H = (e) => N[e] ?? "1", U = (e, t) => {
48
- P((n) => ({
47
+ (!(t instanceof Node) || !e.currentTarget.contains(t)) && V();
48
+ }, G = (e) => I[e] ?? "1", K = (e, t) => {
49
+ L((n) => ({
49
50
  ...n,
50
51
  [e]: t
51
52
  }));
52
- }, W = (e, t) => {
53
+ }, q = (e, t) => {
53
54
  let n = t.target.value;
54
55
  if (n === "") {
55
- U(e, "");
56
+ K(e, "");
56
57
  return;
57
58
  }
58
- U(e, _(n));
59
- }, G = (e) => {
60
- U(e, String(g(H(e))));
61
- }, K = (e) => {
62
- let t = g(H(e));
63
- U(e, String(t)), T(e, t);
59
+ K(e, v(n));
60
+ }, J = (e) => {
61
+ K(e, String(_(G(e))));
62
+ }, Y = (e) => {
63
+ if (T(e)) return;
64
+ let t = _(G(e));
65
+ K(e, String(t)), O(e, t);
64
66
  };
65
- return /* @__PURE__ */ d("div", {
66
- ref: A,
67
- "data-testid": O,
68
- onPointerEnter: z,
69
- onPointerLeave: B,
70
- onFocusCapture: L,
71
- onBlurCapture: V,
72
- className: p("relative h-full overflow-visible transition-opacity duration-200", C === 1 && "opacity-20 md:opacity-100", C === 2 && "md:opacity-20", j && I && "z-30"),
73
- children: [/* @__PURE__ */ u(o, {
74
- bike: v,
75
- detailsPath: y,
76
- productDetailsLinkState: b,
67
+ return /* @__PURE__ */ f("div", {
68
+ ref: N,
69
+ "data-testid": j,
70
+ onPointerEnter: H,
71
+ onPointerLeave: U,
72
+ onFocusCapture: B,
73
+ onBlurCapture: W,
74
+ className: m("relative h-full overflow-visible transition-opacity duration-200", E === 1 && "opacity-20 md:opacity-100", E === 2 && "md:opacity-20", P && z && "z-30"),
75
+ children: [/* @__PURE__ */ d(s, {
76
+ bike: y,
77
+ detailsPath: b,
78
+ productDetailsLinkState: x,
77
79
  actionLabelKey: "add_to_cart",
78
- onAction: w,
79
- actionDisabled: x,
80
- fallbackLanguage: S,
80
+ onAction: D,
81
+ actionDisabled: S,
82
+ fallbackLanguage: C,
81
83
  variant: "booking",
82
- className: p("transition-[border-color,box-shadow,border-radius] duration-200 hover:border-primary/20 hover:shadow-md", j && I && "!rounded-b-none border-primary/20 !border-b-white shadow-lg")
83
- }), /* @__PURE__ */ u(r, {
84
+ className: m("transition-[border-color,box-shadow,border-radius] duration-200 hover:border-primary/20 hover:shadow-md", P && z && "!rounded-b-none border-primary/20 !border-b-white shadow-lg")
85
+ }), /* @__PURE__ */ d(i, {
84
86
  initial: !1,
85
- children: j && I ? /* @__PURE__ */ u(i.div, {
87
+ children: P && z ? /* @__PURE__ */ d(a.div, {
86
88
  initial: {
87
89
  opacity: 0,
88
90
  y: -8,
@@ -108,61 +110,71 @@ function v({ bike: v, detailsPath: y, productDetailsLinkState: b, actionDisabled
108
110
  ]
109
111
  },
110
112
  className: "absolute left-0 right-0 top-full z-30 origin-top rounded-b-lg border border-t-0 border-primary/20 bg-white px-3 py-2 shadow-xl",
111
- "data-testid": `storefront-booking-bike-quick-selector-${v.id}`.toLowerCase(),
113
+ "data-testid": `storefront-booking-bike-quick-selector-${y.id}`.toLowerCase(),
112
114
  onClick: (e) => e.stopPropagation(),
113
115
  onKeyDown: (e) => e.stopPropagation(),
114
- children: /* @__PURE__ */ u("div", { children: F.map((r) => {
115
- let { label: i } = e(r), o = t(r), s = `storefront-booking-bike-quick-quantity-${v.id}-${r.id}`.toLowerCase();
116
- return /* @__PURE__ */ d("div", {
116
+ children: /* @__PURE__ */ d("div", { children: R.map((i) => {
117
+ let { label: a } = e(i), s = t(i), c = w(i.id), l = T(i.id), u = `storefront-booking-bike-quick-quantity-${y.id}-${i.id}`.toLowerCase();
118
+ return /* @__PURE__ */ f("div", {
117
119
  className: "flex items-center justify-between gap-3 border-b border-slate-100 py-1.5 last:border-b-0",
120
+ "data-testid": `storefront-booking-bike-quick-variant-${y.id}-${i.id}`.toLowerCase(),
118
121
  children: [
119
- /* @__PURE__ */ d("div", {
120
- className: "flex min-w-0 flex-1 items-baseline gap-2",
121
- children: [/* @__PURE__ */ u("span", {
122
- className: "min-w-0 truncate text-sm font-semibold text-slate-950",
123
- title: i,
124
- children: i
125
- }), o ? /* @__PURE__ */ u("span", {
126
- className: "truncate text-xs text-slate-500",
127
- children: o
122
+ /* @__PURE__ */ f("div", {
123
+ className: "flex min-w-0 flex-1 flex-col gap-1",
124
+ children: [/* @__PURE__ */ f("div", {
125
+ className: "flex min-w-0 items-baseline gap-2",
126
+ children: [/* @__PURE__ */ d("span", {
127
+ className: "min-w-0 truncate text-sm font-semibold text-slate-950",
128
+ title: a,
129
+ children: a
130
+ }), s ? /* @__PURE__ */ d("span", {
131
+ className: "truncate text-xs text-slate-500",
132
+ children: s
133
+ }) : null]
134
+ }), c ? /* @__PURE__ */ d(n, {
135
+ variant: l ? "destructive" : "outline",
136
+ className: "w-fit",
137
+ children: /* @__PURE__ */ d("span", { children: c })
128
138
  }) : null]
129
139
  }),
130
- /* @__PURE__ */ u("label", {
140
+ /* @__PURE__ */ d("label", {
131
141
  className: "sr-only",
132
- htmlFor: s,
133
- children: /* @__PURE__ */ u("span", { children: k("quantity_label") })
142
+ htmlFor: u,
143
+ children: /* @__PURE__ */ d("span", { children: M("quantity_label") })
134
144
  }),
135
- /* @__PURE__ */ d("div", {
145
+ /* @__PURE__ */ f("div", {
136
146
  className: "flex shrink-0 items-center",
137
- children: [/* @__PURE__ */ u(a, {
138
- id: s,
147
+ children: [/* @__PURE__ */ d(o, {
148
+ id: u,
139
149
  type: "text",
140
150
  inputMode: "numeric",
141
151
  pattern: "[0-9]*",
142
- value: H(r.id),
143
- onChange: (e) => W(r.id, e),
144
- onBlur: () => G(r.id),
152
+ value: G(i.id),
153
+ onChange: (e) => q(i.id, e),
154
+ onBlur: () => J(i.id),
145
155
  className: "h-8 w-9 rounded-r-none border-r-0 px-1 text-center text-base focus-visible:z-10 md:text-sm",
146
- "aria-label": k("quantity_label"),
147
- "data-testid": s
148
- }), /* @__PURE__ */ d(n, {
156
+ disabled: l,
157
+ "aria-label": M("quantity_label"),
158
+ "data-testid": u
159
+ }), /* @__PURE__ */ f(r, {
149
160
  type: "button",
150
161
  size: "sm",
151
162
  className: "h-8 gap-1 rounded-l-none px-2 text-xs",
152
- onClick: () => K(r.id),
153
- "data-testid": `storefront-booking-bike-quick-add-${v.id}-${r.id}`.toLowerCase(),
154
- children: [/* @__PURE__ */ u("span", { children: k("add_short") }), /* @__PURE__ */ u(m, {
163
+ onClick: () => Y(i.id),
164
+ disabled: l,
165
+ "data-testid": `storefront-booking-bike-quick-add-${y.id}-${i.id}`.toLowerCase(),
166
+ children: [/* @__PURE__ */ d("span", { children: M("add_short") }), /* @__PURE__ */ d(h, {
155
167
  className: "h-3.5 w-3.5",
156
168
  "aria-hidden": "true"
157
169
  })]
158
170
  })]
159
171
  })
160
172
  ]
161
- }, r.id);
173
+ }, i.id);
162
174
  }) })
163
175
  }, "quick-selector") : null
164
176
  })]
165
177
  });
166
178
  }
167
179
  //#endregion
168
- export { v as BookingBikeQuickAddCard };
180
+ export { y as BookingBikeQuickAddCard };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeVariantDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAiB3D,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAA;CAChE,CAAA;AAWD,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAAA;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,2BAA2B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IAClE,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IACvD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5D,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,2BAA2B,EAC3B,sBAAsB,EACtB,WAAmB,EACnB,YAAY,GACb,EAAE,6BAA6B,kDA2O/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeVariantDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAiB3D,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAA;CAChE,CAAA;AAWD,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAAA;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,2BAA2B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IAClE,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IACvD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5D,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,2BAA2B,EAC3B,sBAAsB,EACtB,WAAmB,EACnB,YAAY,GACb,EAAE,6BAA6B,kDA4O/B"}
@@ -180,6 +180,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
180
180
  children: [/* @__PURE__ */ x(M, {
181
181
  quantity: l,
182
182
  ariaLabel: R("quantity_label"),
183
+ disabled: u,
183
184
  onQuantityChange: (t) => W(e.id, t),
184
185
  testIdPrefix: `storefront-booking-bike-dialog-variant-quantity-${j.id}-${e.id}`.toLowerCase()
185
186
  }), /* @__PURE__ */ S(o, {
@@ -187,7 +188,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
187
188
  size: "sm",
188
189
  className: T("h-8 shrink-0 gap-1 rounded-l-none px-2 text-xs", "sm:h-9 sm:gap-1.5 sm:rounded-xl sm:px-3 sm:text-sm"),
189
190
  "data-testid": `storefront-booking-bike-dialog-variant-add-${j.id}-${e.id}`.toLowerCase(),
190
- disabled: I,
191
+ disabled: I || u,
191
192
  onClick: () => {
192
193
  L(e.id, A(l));
193
194
  },
@@ -219,22 +220,23 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
219
220
  })
220
221
  });
221
222
  }
222
- function M({ ariaLabel: e, onQuantityChange: t, quantity: n, testIdPrefix: r }) {
223
+ function M({ ariaLabel: e, disabled: t, onQuantityChange: n, quantity: r, testIdPrefix: i }) {
223
224
  return /* @__PURE__ */ x("div", {
224
225
  className: "flex items-center",
225
226
  children: /* @__PURE__ */ x(h, {
226
227
  type: "text",
227
228
  inputMode: "numeric",
228
229
  pattern: "[0-9]*",
229
- value: n,
230
+ value: r,
230
231
  onChange: (e) => {
231
- let n = e.target.value.replace(/\D/g, "");
232
- t(n ? String(A(n)) : "");
232
+ let t = e.target.value.replace(/\D/g, "");
233
+ n(t ? String(A(t)) : "");
233
234
  },
234
- onBlur: () => t(String(A(n))),
235
+ onBlur: () => n(String(A(r))),
236
+ disabled: t,
235
237
  className: T("h-8 w-9 rounded-r-none border-r-0 px-1 text-center text-base focus-visible:z-10", "sm:h-9 sm:w-16 sm:rounded-md sm:border-r sm:px-3"),
236
238
  "aria-label": e,
237
- "data-testid": `${r}-value`
239
+ "data-testid": `${i}-value`
238
240
  })
239
241
  });
240
242
  }
@@ -1,5 +1,5 @@
1
1
  import { resolveOpeningHoursForDate as e } from "../../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
2
- import "../../chunks/pkg/booking-engine/dist/schemas-DW5gdDYz.js";
2
+ import "../../chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
3
3
  import { businessDateStringToDate as t, calendarDateToBusinessDateString as n, instantToBusinessDateTimeParts as r, normalizeBusinessDateString as i, parseTimeToMinutes as a } from "../../lib/booking-period.js";
4
4
  //#region src/components/Footer/businessHoursStatus.ts
5
5
  var o = 370, s = (e, r) => {
@@ -19,7 +19,7 @@ function u({ languages: u, className: d, align: f = "end" }) {
19
19
  variant: "outline",
20
20
  size: "sm",
21
21
  "aria-label": p("language_selector_label"),
22
- className: s("h-9 gap-1 rounded-md px-2 uppercase shadow-none focus-visible:ring-2", d),
22
+ className: s("h-9 gap-1 px-2 uppercase shadow-none focus-visible:ring-2", d),
23
23
  "data-testid": "storefront-language-selector-trigger",
24
24
  children: [/* @__PURE__ */ a("span", {
25
25
  className: "flex items-center gap-1",
@@ -39,7 +39,7 @@ function p({ lines: p, itemCount: m, baseUnitLabel: h, totalMinor: g, title: _,
39
39
  }) : /* @__PURE__ */ o("ul", {
40
40
  className: "divide-y divide-slate-200",
41
41
  children: p.map((i) => {
42
- let c = e(i.unitPriceMinor, A.language), l = i.insufficientCapacity === !0, u = i.availabilityIssue === "quantity_unavailable" ? k("availability_quantity_unavailable") : k("availability_out_of_stock");
42
+ let c = e(i.unitPriceMinor, A.language), l = i.insufficientCapacity === !0, u = i.availabilityIssue === "quantityUnavailable" ? k("availability_quantity_unavailable") : k("availability_out_of_stock");
43
43
  return /* @__PURE__ */ s("li", {
44
44
  className: "flex items-start justify-between gap-3 py-4 first:pt-0 last:pb-0",
45
45
  children: [/* @__PURE__ */ s("div", {
package/dist/i18n/en.d.ts CHANGED
@@ -212,10 +212,6 @@ export declare const storefront: {
212
212
  checkout_estimated_total: string;
213
213
  checkout_form_title: string;
214
214
  checkout_form_description: string;
215
- checkout_first_name_label: string;
216
- checkout_first_name_placeholder: string;
217
- checkout_last_name_label: string;
218
- checkout_last_name_placeholder: string;
219
215
  checkout_full_name_label: string;
220
216
  checkout_full_name_placeholder: string;
221
217
  checkout_email_label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+gBtB,CAAA"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2gBtB,CAAA"}
package/dist/i18n/en.js CHANGED
@@ -213,10 +213,6 @@ var e = {
213
213
  checkout_estimated_total: "Total",
214
214
  checkout_form_title: "Your details",
215
215
  checkout_form_description: "Enter your details for this booking, and add any useful information in the notes.",
216
- checkout_first_name_label: "First name",
217
- checkout_first_name_placeholder: "Jane",
218
- checkout_last_name_label: "Last name",
219
- checkout_last_name_placeholder: "Doe",
220
216
  checkout_full_name_label: "Full name",
221
217
  checkout_full_name_placeholder: "Jane Doe",
222
218
  checkout_email_label: "Email",
package/dist/i18n/fr.d.ts CHANGED
@@ -213,10 +213,6 @@ export declare const storefront: {
213
213
  checkout_estimated_total: string;
214
214
  checkout_form_title: string;
215
215
  checkout_form_description: string;
216
- checkout_first_name_label: string;
217
- checkout_first_name_placeholder: string;
218
- checkout_last_name_label: string;
219
- checkout_last_name_placeholder: string;
220
216
  checkout_full_name_label: string;
221
217
  checkout_full_name_placeholder: string;
222
218
  checkout_email_label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,8 @@ var e = {
214
214
  checkout_estimated_total: "Total",
215
215
  checkout_form_title: "Vos informations",
216
216
  checkout_form_description: "Renseignez vos coordonnées pour votre réservation. N'hésitez pas à ajouter toute information utile dans les notes.",
217
- checkout_first_name_label: "Prénom",
218
- checkout_first_name_placeholder: "Jean",
219
- checkout_last_name_label: "Nom",
220
- checkout_last_name_placeholder: "Dupont",
221
217
  checkout_full_name_label: "Nom complet",
222
- checkout_full_name_placeholder: "Jean Dupont",
218
+ checkout_full_name_placeholder: "Prénom Nom",
223
219
  checkout_email_label: "Email",
224
220
  checkout_email_placeholder: "jean@example.com",
225
221
  checkout_phone_label: "Téléphone",