@loczer/storefront-sdk 0.200.0 → 0.202.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.
@@ -0,0 +1,22 @@
1
+ import { booleanNumberRecordSchema as e, identifierSchema as t, isoDateTimeSchema as n, objectIdStringSchema as r } from "../models/types-rIp4ReXN.js";
2
+ import { productVariantIdentifierSchema as i } from "../models/Product.shared-iVSHRdn4.js";
3
+ import { z as a } from "zod";
4
+ //#region ../booking-engine/dist/schemas/base-asset.js
5
+ var o = a.enum([
6
+ "available",
7
+ "maintenance",
8
+ "lost",
9
+ "blocked"
10
+ ]), s = r.transform((e) => e.toLowerCase()), c = a.object({
11
+ _id: s,
12
+ productId: t,
13
+ shopId: t,
14
+ status: o,
15
+ identifiers: a.array(i).default([]),
16
+ productVariantId: t,
17
+ attributes: e.optional(),
18
+ createdAt: n,
19
+ updatedAt: n
20
+ });
21
+ //#endregion
22
+ export { s as assetIdSchema, c as baseAssetSchema, o as baseAssetStatusSchema };
@@ -9,6 +9,6 @@ import { fulfillmentModeSchema as G, publicBookingEngineConfigurationSchema as K
9
9
  import { DEFAULT_BOOKING_DELIVERY_OPTION as Y, bookingCustomerInputSchema as X, bookingDeliveryOptionSchema as Z, bookingScheduleInputSchema as Q, cartItemInputSchema as $, createBookingInputBaseSchema as ee, createBookingInputSchema as te, resolveBookingDeliveryOption as ne, validateBookingDeliveryAddress as re } from "./schemas/cart-inputs-D1_Wmkca.js";
10
10
  import { bookingInsuranceConsentSourceSchema as ie, bookingInsuranceItemSnapshotSchema as ae, bookingInsuranceSnapshotSchema as oe, buildBookingInsuranceSnapshot as se, calculateInsuranceCalendarDays as ce, insuranceProviderSchema as le } from "./schemas/insurance-CPeHsTss.js";
11
11
  import "./schemas/base-product-BJHQLX8t.js";
12
- import { baseAssetSchema as ue, baseAssetStatusSchema as de } from "./schemas/base-asset-BRQVuIes.js";
13
- import { baseBookingItemSchema as fe, baseBookingSchema as pe, baseBookingStateSchema as me } from "./schemas/base-booking-Bhy2Kww1.js";
14
- export { Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, g as accessoryProductSchema, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, v as eBikeProductSchema, G as fulfillmentModeSchema, t as getLocalizedStringValue, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, j as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, ne as resolveBookingDeliveryOption, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, u as signedMoneyMinorSchema, z as timeOfDaySchema, re as validateBookingDeliveryAddress };
12
+ import { assetIdSchema as ue, baseAssetSchema as de, baseAssetStatusSchema as fe } from "./schemas/base-asset-B4y__1qj.js";
13
+ import { baseBookingItemSchema as pe, baseBookingSchema as me, baseBookingStateSchema as he } from "./schemas/base-booking-Bhy2Kww1.js";
14
+ export { Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, g as accessoryProductSchema, ue as assetIdSchema, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, v as eBikeProductSchema, G as fulfillmentModeSchema, t as getLocalizedStringValue, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, j as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, ne as resolveBookingDeliveryOption, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, u as signedMoneyMinorSchema, z as timeOfDaySchema, re as validateBookingDeliveryAddress };
package/dist/index.d.ts CHANGED
@@ -258,6 +258,8 @@ declare type AddressAutocompleteLocationRestriction = {
258
258
 
259
259
  export declare const applyBookingParamsToSearch: (searchParams: URLSearchParams, booking: Partial<StorefrontBookingParams>) => URLSearchParams;
260
260
 
261
+ export declare const assetIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
262
+
261
263
  export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
262
264
  asChild?: boolean;
263
265
  }): JSX.Element;
@@ -271,7 +273,7 @@ export declare type BaseAccessoryProduct = z.infer<typeof accessoryProductSchema
271
273
  export declare type BaseAsset = z.infer<typeof baseAssetSchema>;
272
274
 
273
275
  export declare const baseAssetSchema: z.ZodObject<{
274
- _id: z.ZodString;
276
+ _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
275
277
  productId: z.ZodString;
276
278
  shopId: z.ZodString;
277
279
  status: z.ZodEnum<{
@@ -3177,6 +3179,8 @@ export declare type StorefrontBookingParams = {
3177
3179
 
3178
3180
  export declare type StorefrontBookingProductsCollections = StorefrontProductsCollections;
3179
3181
 
3182
+ export declare const storefrontButtonRadiusClassName = "rounded-[var(--storefront-button-radius,calc(var(--radius)-2px))]";
3183
+
3180
3184
  declare type StorefrontCartContextValue = {
3181
3185
  items: StorefrontCartItem[];
3182
3186
  itemCount: number;
package/dist/index.js CHANGED
@@ -9,75 +9,75 @@ import { DEFAULT_CANCELLATION_POLICY as B, DEFAULT_PAYMENT_POLICIES as V, cancel
9
9
  import { fulfillmentModeSchema as G, publicBookingEngineConfigurationSchema as K, publicCheckoutConfigurationSchema as q, publicCheckoutDynamicOptionsSchema as J } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
10
10
  import { DEFAULT_BOOKING_DELIVERY_OPTION as Y, bookingCustomerInputSchema as X, bookingDeliveryOptionSchema as Z, bookingScheduleInputSchema as Q, cartItemInputSchema as $, createBookingInputBaseSchema as ee, createBookingInputSchema as te, resolveBookingDeliveryOption as ne, validateBookingDeliveryAddress as re } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
11
11
  import { bookingInsuranceConsentSourceSchema as ie, bookingInsuranceItemSnapshotSchema as ae, bookingInsuranceSnapshotSchema as oe, buildBookingInsuranceSnapshot as se, calculateInsuranceCalendarDays as ce, insuranceProviderSchema as le } from "./chunks/pkg/booking-engine/dist/schemas/insurance-CPeHsTss.js";
12
- import { baseAssetSchema as ue, baseAssetStatusSchema as de } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-BRQVuIes.js";
13
- import { baseBookingItemSchema as fe, baseBookingSchema as pe, baseBookingStateSchema as me } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
14
- import "./chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
15
- import { STOREFRONT_HERO_MODES as he, storefrontCheckoutModeSchema as ge, storefrontConfigurationSchema as _e, storefrontContentSchema as ve, storefrontFaqItemSchema as ye, storefrontFaqSchema as be, storefrontFulfillmentModeSchema as xe, storefrontHeroModeSchema as Se, storefrontLocalizedRichTextSchema as Ce, storefrontModalMessageSchema as we, storefrontModulesSchema as Te, storefrontReviewsModuleSchema as Ee, storefrontRichTextSchema as De, storefrontSettingsSchema as Oe, storefrontShopSchema as ke, storefrontStatusSchema as Ae, storefrontWorkspaceSchema as je } from "./storefrontSchemas.js";
16
- import { BOOKING_SEARCH_KEYS as Me, TIME_OPTIONS as Ne, applyBookingParamsToSearch as Pe, createBookingPeriodConfigFromBookingEngineConfiguration as Fe, createBookingPeriodConfigFromShopConfiguration as Ie, createBookingPeriodConfigFromStorefrontConfiguration as Le, getBookingDurationLabel as Re, getBookingDurationMinutes as ze, getBookingParamsFromSearch as Be, getBookingSessionStorageKey as Ve, getDefaultBookingParams as He, getDefaultBookingParamsForStorefrontConfiguration as Ue, pickBookingSearchParams as We, readBookingSearchParamsFromSessionStorage as Ge, readBookingSearchParamsFromStorage as Ke, resolveBookingSearchParams as qe, resolveBookingSearchParamsFromSessionStorage as Je, writeBookingSearchParamsToSessionStorage as Ye, writeBookingSearchParamsToStorage as Xe } from "./lib/booking.js";
17
- import { getLocalizedEntry as Ze, getLocalizedValue as Qe } from "./localization.js";
18
- import { CATALOG_PRODUCT_BASE_RATE_UNSET as $e, buildStorefrontProductSlug as et, buildVariantStorefrontProductId as tt, compareCatalogProducts as nt, compareStorefrontAccessoryProducts as rt, compareStorefrontBikeProducts as it, findStorefrontProduct as at, findStorefrontProductBySlug as ot, getCatalogProductBaseRateMinor as st, getCatalogProductPaginationSort as ct, getCatalogProductSortFieldForPriceUnit as lt, getStorefrontBaseDailyRateMinor as ut, getStorefrontCheckoutProductId as dt, getStorefrontProductSelectionDisplayName as ft, getStorefrontRepresentedVariantId as pt, toStorefrontAccessoryProducts as mt, toStorefrontBikeProducts as ht, toStorefrontBookingProducts as gt, toStorefrontBookingProductsCollections as _t } from "./lib/products.js";
19
- import { StorefrontCartProvider as vt, resolveStorefrontCartItemProduct as yt, useStorefrontCart as bt } from "./lib/cart.js";
20
- import { cn as xt, formatPriceMinor as St, getAvailabilityVariant as Ct, getMinDayPriceMinor as wt } from "./lib/utils.js";
21
- import { buildDailyPriceRows as Tt, buildPriceTierLabels as Et, calculateDailyPriceForQuantity as Dt, formatStorefrontPriceMinor as Ot } from "./lib/pricing.js";
22
- import { buildStorefrontCartSummary as kt } from "./lib/cartSummary.js";
23
- import { ROUTE as At, requestSchema as jt, responseSchema as Mt } from "./lib/contactForm.js";
24
- import { formatStorefrontPhoneDisplay as Nt, resolveStorefrontMapsHref as Pt, resolveStorefrontPhoneContact as Ft } from "./lib/storefrontContact.js";
25
- import { buildWhatsAppHref as It, resolveStorefrontWhatsAppContact as Lt, resolveStorefrontWhatsAppHref as Rt } from "./lib/whatsapp.js";
26
- import { ROUTE as zt, requestBaseSchema as Bt, requestCheckoutItemSchema as Vt, requestDeliveryRefinement as Ht, requestSchema as Ut, responseSchema as Wt } from "./lib/checkoutSubmit.js";
27
- import { ROUTE as Gt, requestSchema as Kt, responseSchema as qt, storefrontPublicAccessoryProductSchema as Jt, storefrontPublicBikeAvailabilityStatusSchema as Yt, storefrontPublicBikeProductSchema as Xt, storefrontPublicProductDisplayModeSchema as Zt, storefrontPublicProductPriceSchema as Qt, storefrontPublicProductVariantAttributeSchema as $t, storefrontPublicProductVariantIdentifierSchema as en, storefrontPublicProductVariantSchema as tn } from "./lib/storefrontProducts.js";
28
- import { ROUTE as nn, buildStorefrontAvailabilityKey as rn, doesStorefrontAvailabilityDisplaySoldOut as an, getStorefrontAvailabilityIssue as on, getStorefrontAvailabilityStatus as sn, isStorefrontAvailabilityInsufficient as cn, publicAvailabilityDisplayModeSchema as ln, requestSchema as un, responseSchema as dn, shouldBlockStorefrontUnavailableItem as fn, storefrontAvailabilityProductSchema as pn, storefrontAvailabilityScheduleSchema as mn, storefrontPublicAvailabilityRecordSchema as hn } from "./lib/storefrontAvailability.js";
29
- import { ROUTE as gn, buildStorefrontImageUrl as _n, requestSchema as vn } from "./lib/storefrontImage.js";
30
- import { ROUTE as yn, requestSchema as bn, responseSchema as xn, storefrontTimeSlotSchema as Sn, timeSlotJourneySchema as Cn } from "./lib/storefrontTimeSlots.js";
31
- import { Footer as wn } from "./components/Footer/index.js";
32
- import { Badge as Tn, badgeVariants as En } from "./ui/badge.js";
33
- import { Button as Dn, buttonVariants as On } from "./ui/button.js";
34
- import { Header as kn } from "./components/Header/index.js";
35
- import { storefront as An } from "./i18n/en.js";
36
- import { storefront as jn } from "./i18n/fr.js";
37
- import { PoweredByLoczerBadge as Mn } from "./components/PoweredByLoczerBadge/index.js";
38
- import { PlatformFooter as Nn } from "./components/PlatformFooter/index.js";
39
- import { useWhatsAppFloatingButton as Pn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
40
- import { WhatsAppFloatingButton as Fn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
12
+ import { assetIdSchema as ue, baseAssetSchema as de, baseAssetStatusSchema as fe } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-B4y__1qj.js";
13
+ import { baseBookingItemSchema as pe, baseBookingSchema as me, baseBookingStateSchema as he } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
14
+ import "./chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js";
15
+ import { STOREFRONT_HERO_MODES as ge, storefrontCheckoutModeSchema as _e, storefrontConfigurationSchema as ve, storefrontContentSchema as ye, storefrontFaqItemSchema as be, storefrontFaqSchema as xe, storefrontFulfillmentModeSchema as Se, storefrontHeroModeSchema as Ce, storefrontLocalizedRichTextSchema as we, storefrontModalMessageSchema as Te, storefrontModulesSchema as Ee, storefrontReviewsModuleSchema as De, storefrontRichTextSchema as Oe, storefrontSettingsSchema as ke, storefrontShopSchema as Ae, storefrontStatusSchema as je, storefrontWorkspaceSchema as Me } from "./storefrontSchemas.js";
16
+ import { BOOKING_SEARCH_KEYS as Ne, TIME_OPTIONS as Pe, applyBookingParamsToSearch as Fe, createBookingPeriodConfigFromBookingEngineConfiguration as Ie, createBookingPeriodConfigFromShopConfiguration as Le, createBookingPeriodConfigFromStorefrontConfiguration as Re, getBookingDurationLabel as ze, getBookingDurationMinutes as Be, getBookingParamsFromSearch as Ve, getBookingSessionStorageKey as He, getDefaultBookingParams as Ue, getDefaultBookingParamsForStorefrontConfiguration as We, pickBookingSearchParams as Ge, readBookingSearchParamsFromSessionStorage as Ke, readBookingSearchParamsFromStorage as qe, resolveBookingSearchParams as Je, resolveBookingSearchParamsFromSessionStorage as Ye, writeBookingSearchParamsToSessionStorage as Xe, writeBookingSearchParamsToStorage as Ze } from "./lib/booking.js";
17
+ import { getLocalizedEntry as Qe, getLocalizedValue as $e } from "./localization.js";
18
+ import { CATALOG_PRODUCT_BASE_RATE_UNSET as et, buildStorefrontProductSlug as tt, buildVariantStorefrontProductId as nt, compareCatalogProducts as rt, compareStorefrontAccessoryProducts as it, compareStorefrontBikeProducts as at, findStorefrontProduct as ot, findStorefrontProductBySlug as st, getCatalogProductBaseRateMinor as ct, getCatalogProductPaginationSort as lt, getCatalogProductSortFieldForPriceUnit as ut, getStorefrontBaseDailyRateMinor as dt, getStorefrontCheckoutProductId as ft, getStorefrontProductSelectionDisplayName as pt, getStorefrontRepresentedVariantId as mt, toStorefrontAccessoryProducts as ht, toStorefrontBikeProducts as gt, toStorefrontBookingProducts as _t, toStorefrontBookingProductsCollections as vt } from "./lib/products.js";
19
+ import { StorefrontCartProvider as yt, resolveStorefrontCartItemProduct as bt, useStorefrontCart as xt } from "./lib/cart.js";
20
+ import { cn as St, formatPriceMinor as Ct, getAvailabilityVariant as wt, getMinDayPriceMinor as Tt } from "./lib/utils.js";
21
+ import { buildDailyPriceRows as Et, buildPriceTierLabels as Dt, calculateDailyPriceForQuantity as Ot, formatStorefrontPriceMinor as kt } from "./lib/pricing.js";
22
+ import { buildStorefrontCartSummary as At } from "./lib/cartSummary.js";
23
+ import { ROUTE as jt, requestSchema as Mt, responseSchema as Nt } from "./lib/contactForm.js";
24
+ import { formatStorefrontPhoneDisplay as Pt, resolveStorefrontMapsHref as Ft, resolveStorefrontPhoneContact as It } from "./lib/storefrontContact.js";
25
+ import { buildWhatsAppHref as Lt, resolveStorefrontWhatsAppContact as Rt, resolveStorefrontWhatsAppHref as zt } from "./lib/whatsapp.js";
26
+ import { ROUTE as Bt, requestBaseSchema as Vt, requestCheckoutItemSchema as Ht, requestDeliveryRefinement as Ut, requestSchema as Wt, responseSchema as Gt } from "./lib/checkoutSubmit.js";
27
+ import { ROUTE as Kt, requestSchema as qt, responseSchema as Jt, storefrontPublicAccessoryProductSchema as Yt, storefrontPublicBikeAvailabilityStatusSchema as Xt, storefrontPublicBikeProductSchema as Zt, storefrontPublicProductDisplayModeSchema as Qt, storefrontPublicProductPriceSchema as $t, storefrontPublicProductVariantAttributeSchema as en, storefrontPublicProductVariantIdentifierSchema as tn, storefrontPublicProductVariantSchema as nn } from "./lib/storefrontProducts.js";
28
+ import { ROUTE as rn, buildStorefrontAvailabilityKey as an, doesStorefrontAvailabilityDisplaySoldOut as on, getStorefrontAvailabilityIssue as sn, getStorefrontAvailabilityStatus as cn, isStorefrontAvailabilityInsufficient as ln, publicAvailabilityDisplayModeSchema as un, requestSchema as dn, responseSchema as fn, shouldBlockStorefrontUnavailableItem as pn, storefrontAvailabilityProductSchema as mn, storefrontAvailabilityScheduleSchema as hn, storefrontPublicAvailabilityRecordSchema as gn } from "./lib/storefrontAvailability.js";
29
+ import { ROUTE as _n, buildStorefrontImageUrl as vn, requestSchema as yn } from "./lib/storefrontImage.js";
30
+ import { ROUTE as bn, requestSchema as xn, responseSchema as Sn, storefrontTimeSlotSchema as Cn, timeSlotJourneySchema as wn } from "./lib/storefrontTimeSlots.js";
31
+ import { Footer as Tn } from "./components/Footer/index.js";
32
+ import { Badge as En, badgeVariants as Dn } from "./ui/badge.js";
33
+ import { Button as On, buttonVariants as kn, storefrontButtonRadiusClassName as An } from "./ui/button.js";
34
+ import { Header as jn } from "./components/Header/index.js";
35
+ import { storefront as Mn } from "./i18n/en.js";
36
+ import { storefront as Nn } from "./i18n/fr.js";
37
+ import { PoweredByLoczerBadge as Pn } from "./components/PoweredByLoczerBadge/index.js";
38
+ import { PlatformFooter as Fn } from "./components/PlatformFooter/index.js";
39
+ import { useWhatsAppFloatingButton as In } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
40
+ import { WhatsAppFloatingButton as Ln } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
41
41
  import "./components/WhatsAppFloatingButton/index.js";
42
- import { Layout as In } from "./components/Layout/index.js";
43
- import { DelayedPlaceholder as Ln, DelayedReveal as Rn } from "./components/DelayedReveal/index.js";
44
- import { BookingPeriodProvider as zn, useBookingPeriod as Bn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
45
- import { Label as Vn } from "./ui/label.js";
46
- import { BookingStartDateField as Hn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
47
- import { BookingStartTimeField as Un } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
48
- import { BookingEndDateField as Wn } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
49
- import { BookingEndTimeField as Gn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
50
- import { BookingTimeSlotsStatus as Kn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
51
- import { BookingMobileDateDrawer as qn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
52
- import { BookingPeriodSelector as Jn } from "./components/BookingPeriodSelector/index.js";
53
- import { BookingFlowSteps as Yn } from "./components/BookingFlowSteps/index.js";
54
- import { Input as Xn } from "./ui/input.js";
55
- import { DeliveryAddressSelector as Zn } from "./components/DeliveryAddressSelector/index.js";
56
- import { StorefrontContext as Qn, useOptionalStorefront as $n, useStorefront as er, useStorefrontBookingProducts as tr, useStorefrontConfig as nr, useStorefrontProducts as rr, useStorefrontWorkspaceLanguage as ir } from "./StorefrontContext.js";
57
- import { Form as ar, FormControl as or, FormDescription as sr, FormField as cr, FormItem as lr, FormLabel as ur, FormMessage as dr, useFormField as fr } from "./ui/form.js";
58
- import { Textarea as pr } from "./ui/textarea.js";
59
- import { ContactSection as mr } from "./components/ContactSection/index.js";
60
- import { TestimonialsSection as hr } from "./components/TestimonialsSection/index.js";
61
- import { AboutSection as gr } from "./components/AboutSection/index.js";
62
- import { StepSectionTitle as _r } from "./components/StepSectionTitle/index.js";
63
- import { Card as vr, CardAction as yr, CardContent as br, CardDescription as xr, CardFooter as Sr, CardHeader as Cr, CardTitle as wr } from "./ui/card.js";
64
- import { ProductWarningNotice as Tr } from "./components/ProductWarningNotice/index.js";
65
- import { StorefrontCartPanel as Er } from "./components/StorefrontCartPanel/index.js";
66
- import { ProductPriceBadge as Dr } from "./components/ProductPriceBadge/index.js";
67
- import { ContractSaleDocument as Or } from "./components/ContractSaleDocument/Invoice.js";
42
+ import { Layout as Rn } from "./components/Layout/index.js";
43
+ import { DelayedPlaceholder as zn, DelayedReveal as Bn } from "./components/DelayedReveal/index.js";
44
+ import { BookingPeriodProvider as Vn, useBookingPeriod as Hn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
45
+ import { Label as Un } from "./ui/label.js";
46
+ import { BookingStartDateField as Wn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
47
+ import { BookingStartTimeField as Gn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
48
+ import { BookingEndDateField as Kn } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
49
+ import { BookingEndTimeField as qn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
50
+ import { BookingTimeSlotsStatus as Jn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
51
+ import { BookingMobileDateDrawer as Yn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
52
+ import { BookingPeriodSelector as Xn } from "./components/BookingPeriodSelector/index.js";
53
+ import { BookingFlowSteps as Zn } from "./components/BookingFlowSteps/index.js";
54
+ import { Input as Qn } from "./ui/input.js";
55
+ import { DeliveryAddressSelector as $n } from "./components/DeliveryAddressSelector/index.js";
56
+ import { StorefrontContext as er, useOptionalStorefront as tr, useStorefront as nr, useStorefrontBookingProducts as rr, useStorefrontConfig as ir, useStorefrontProducts as ar, useStorefrontWorkspaceLanguage as or } from "./StorefrontContext.js";
57
+ import { Form as sr, FormControl as cr, FormDescription as lr, FormField as ur, FormItem as dr, FormLabel as fr, FormMessage as pr, useFormField as mr } from "./ui/form.js";
58
+ import { Textarea as hr } from "./ui/textarea.js";
59
+ import { ContactSection as gr } from "./components/ContactSection/index.js";
60
+ import { TestimonialsSection as _r } from "./components/TestimonialsSection/index.js";
61
+ import { AboutSection as vr } from "./components/AboutSection/index.js";
62
+ import { StepSectionTitle as yr } from "./components/StepSectionTitle/index.js";
63
+ import { Card as br, CardAction as xr, CardContent as Sr, CardDescription as Cr, CardFooter as wr, CardHeader as Tr, CardTitle as Er } from "./ui/card.js";
64
+ import { ProductWarningNotice as Dr } from "./components/ProductWarningNotice/index.js";
65
+ import { StorefrontCartPanel as Or } from "./components/StorefrontCartPanel/index.js";
66
+ import { ProductPriceBadge as kr } from "./components/ProductPriceBadge/index.js";
67
+ import { ContractSaleDocument as Ar } from "./components/ContractSaleDocument/Invoice.js";
68
68
  import "./components/ContractSaleDocument/index.js";
69
- import { RadioGroup as kr, RadioGroupItem as Ar } from "./ui/radio-group.js";
69
+ import { RadioGroup as jr, RadioGroupItem as Mr } from "./ui/radio-group.js";
70
70
  import "./pages/HomePage.js";
71
71
  import "./pages/BookingPage.js";
72
72
  import "./pages/ProductPage.js";
73
73
  import "./pages/CheckoutPage.js";
74
74
  import "./pages/CheckoutSuccessPage.js";
75
75
  import "./pages/NotFoundPage.js";
76
- import { accessories as jr } from "./data/accessories.js";
77
- import Mr from "./data/bikes.js";
78
- import { contractSaleDocumentAcceptanceLevelSchema as Nr, contractSaleDocumentAcceptanceRecordSchema as Pr, contractSaleDocumentAcceptanceSchema as Fr, contractSaleDocumentAddressSchema as Ir, contractSaleDocumentAppendixKindSchema as Lr, contractSaleDocumentAppendixSchema as Rr, contractSaleDocumentContactSchema as zr, contractSaleDocumentKindSchema as Br, contractSaleDocumentLanguageCodeSchema as Vr, contractSaleDocumentLanguageSchema as Hr, contractSaleDocumentLineItemSchema as Ur, contractSaleDocumentRentalSchema as Wr, contractSaleDocumentSchema as Gr, contractSaleDocumentSignatureSchema as Kr } from "./lib/contractSaleDocument.js";
79
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as qr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Jr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Yr, acceptContractSaleDocumentRequestSchema as Xr, acceptContractSaleDocumentResponseSchema as Zr, contractSaleDocumentAcceptanceInputSchema as Qr, contractSaleDocumentAcceptanceRecordInputSchema as $r, contractSaleDocumentApiAcceptanceRecordSchema as ei, contractSaleDocumentApiAcceptanceSchema as ti, contractSaleDocumentApiSchema as ni, contractSaleDocumentApiSignatureSchema as ri, contractSaleDocumentReferenceSchema as ii, contractSaleDocumentReferenceTypeSchema as ai, contractSaleDocumentSignatureInputSchema as oi, downloadContractSaleDocumentPdfRequestSchema as si, getContractSaleDocumentRequestSchema as ci, getContractSaleDocumentResponseSchema as li } from "./lib/contractSaleDocumentApi.js";
80
- import ui from "./routes.js";
81
- import { loader as di } from "./StorefrontProvider.js";
82
- import { Select as fi, SelectContent as pi, SelectGroup as mi, SelectIcon as hi, SelectItem as gi, SelectItemIndicator as _i, SelectItemText as vi, SelectLabel as yi, SelectScrollDownButton as bi, SelectScrollUpButton as xi, SelectSeparator as Si, SelectTrigger as Ci, SelectValue as wi } from "./ui/select.js";
83
- export { qr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, gr as AboutSection, Me as BOOKING_SEARCH_KEYS, Tn as Badge, Wn as BookingEndDateField, Gn as BookingEndTimeField, Yn as BookingFlowSteps, qn as BookingMobileDateDrawer, zn as BookingPeriodProvider, Jn as BookingPeriodSelector, Hn as BookingStartDateField, Un as BookingStartTimeField, Kn as BookingTimeSlotsStatus, Dn as Button, $e as CATALOG_PRODUCT_BASE_RATE_UNSET, vr as Card, yr as CardAction, br as CardContent, xr as CardDescription, Sr as CardFooter, Cr as CardHeader, wr as CardTitle, mr as ContactSection, Or as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Jr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Ln as DelayedPlaceholder, Rn as DelayedReveal, Zn as DeliveryAddressSelector, wn as Footer, ar as Form, or as FormControl, sr as FormDescription, cr as FormField, lr as FormItem, ur as FormLabel, dr as FormMessage, Yr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, kn as Header, Xn as Input, Vn as Label, In as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Nn as PlatformFooter, Mn as PoweredByLoczerBadge, Dr as ProductPriceBadge, Tr as ProductWarningNotice, At as ROUTE, kr as RadioGroup, Ar as RadioGroupItem, nn as STOREFRONT_AVAILABILITY_ROUTE, zt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, he as STOREFRONT_HERO_MODES, gn as STOREFRONT_IMAGE_ROUTE, Gt as STOREFRONT_PRODUCTS_ROUTE, yn as STOREFRONT_TIME_SLOTS_ROUTE, fi as Select, pi as SelectContent, mi as SelectGroup, hi as SelectIcon, gi as SelectItem, _i as SelectItemIndicator, vi as SelectItemText, yi as SelectLabel, bi as SelectScrollDownButton, xi as SelectScrollUpButton, Si as SelectSeparator, Ci as SelectTrigger, wi as SelectValue, _r as StepSectionTitle, Er as StorefrontCartPanel, vt as StorefrontCartProvider, Qn as StorefrontContext, Ne as TIME_OPTIONS, hr as TestimonialsSection, pr as Textarea, Fn as WhatsAppFloatingButton, Xr as acceptContractSaleDocumentRequestSchema, Zr as acceptContractSaleDocumentResponseSchema, jr as accessories, g as accessoryProductSchema, Pe as applyBookingParamsToSearch, En as badgeVariants, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, Mr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Tt as buildDailyPriceRows, Et as buildPriceTierLabels, rn as buildStorefrontAvailabilityKey, kt as buildStorefrontCartSummary, _n as buildStorefrontImageUrl, et as buildStorefrontProductSlug, tt as buildVariantStorefrontProductId, It as buildWhatsAppHref, On as buttonVariants, Dt as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, xt as cn, nt as compareCatalogProducts, rt as compareStorefrontAccessoryProducts, it as compareStorefrontBikeProducts, Qr as contractSaleDocumentAcceptanceInputSchema, Nr as contractSaleDocumentAcceptanceLevelSchema, $r as contractSaleDocumentAcceptanceRecordInputSchema, Pr as contractSaleDocumentAcceptanceRecordSchema, Fr as contractSaleDocumentAcceptanceSchema, Ir as contractSaleDocumentAddressSchema, ei as contractSaleDocumentApiAcceptanceRecordSchema, ti as contractSaleDocumentApiAcceptanceSchema, ni as contractSaleDocumentApiSchema, ri as contractSaleDocumentApiSignatureSchema, Lr as contractSaleDocumentAppendixKindSchema, Rr as contractSaleDocumentAppendixSchema, zr as contractSaleDocumentContactSchema, Br as contractSaleDocumentKindSchema, Vr as contractSaleDocumentLanguageCodeSchema, Hr as contractSaleDocumentLanguageSchema, Ur as contractSaleDocumentLineItemSchema, ii as contractSaleDocumentReferenceSchema, ai as contractSaleDocumentReferenceTypeSchema, Wr as contractSaleDocumentRentalSchema, Gr as contractSaleDocumentSchema, oi as contractSaleDocumentSignatureInputSchema, Kr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Fe as createBookingPeriodConfigFromBookingEngineConfiguration, Ie as createBookingPeriodConfigFromShopConfiguration, Le as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, an as doesStorefrontAvailabilityDisplaySoldOut, si as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, at as findStorefrontProduct, ot as findStorefrontProductBySlug, St as formatPriceMinor, Nt as formatStorefrontPhoneDisplay, Ot as formatStorefrontPriceMinor, G as fulfillmentModeSchema, Ct as getAvailabilityVariant, Re as getBookingDurationLabel, ze as getBookingDurationMinutes, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, st as getCatalogProductBaseRateMinor, ct as getCatalogProductPaginationSort, lt as getCatalogProductSortFieldForPriceUnit, ci as getContractSaleDocumentRequestSchema, li as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Ze as getLocalizedEntry, t as getLocalizedStringValue, Qe as getLocalizedValue, wt as getMinDayPriceMinor, on as getStorefrontAvailabilityIssue, sn as getStorefrontAvailabilityStatus, ut as getStorefrontBaseDailyRateMinor, dt as getStorefrontCheckoutProductId, ft as getStorefrontProductSelectionDisplayName, pt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, cn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, di as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, ln as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, jt as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, yt as resolveStorefrontCartItemProduct, Pt as resolveStorefrontMapsHref, Ft as resolveStorefrontPhoneContact, Lt as resolveStorefrontWhatsAppContact, Rt as resolveStorefrontWhatsAppHref, Mt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, fn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, pn as storefrontAvailabilityProductSchema, un as storefrontAvailabilityRequestSchema, dn as storefrontAvailabilityResponseSchema, mn as storefrontAvailabilityScheduleSchema, ge as storefrontCheckoutModeSchema, Ht as storefrontCheckoutSubmitDeliveryRefinement, Vt as storefrontCheckoutSubmitItemSchema, Bt as storefrontCheckoutSubmitRequestBaseSchema, Ut as storefrontCheckoutSubmitRequestSchema, Wt as storefrontCheckoutSubmitResponseSchema, _e as storefrontConfigurationSchema, ve as storefrontContentSchema, An as storefrontEn, ye as storefrontFaqItemSchema, be as storefrontFaqSchema, jn as storefrontFr, xe as storefrontFulfillmentModeSchema, Se as storefrontHeroModeSchema, vn as storefrontImageRequestSchema, Ce as storefrontLocalizedRichTextSchema, we as storefrontModalMessageSchema, Te as storefrontModulesSchema, Kt as storefrontProductsRequestSchema, qt as storefrontProductsResponseSchema, Jt as storefrontPublicAccessoryProductSchema, hn as storefrontPublicAvailabilityRecordSchema, Yt as storefrontPublicBikeAvailabilityStatusSchema, Xt as storefrontPublicBikeProductSchema, Zt as storefrontPublicProductDisplayModeSchema, Qt as storefrontPublicProductPriceSchema, $t as storefrontPublicProductVariantAttributeSchema, en as storefrontPublicProductVariantIdentifierSchema, tn as storefrontPublicProductVariantSchema, Ee as storefrontReviewsModuleSchema, De as storefrontRichTextSchema, ui as storefrontRoutes, Oe as storefrontSettingsSchema, ke as storefrontShopSchema, Ae as storefrontStatusSchema, Cn as storefrontTimeSlotJourneySchema, Sn as storefrontTimeSlotSchema, bn as storefrontTimeSlotsRequestSchema, xn as storefrontTimeSlotsResponseSchema, je as storefrontWorkspaceSchema, z as timeOfDaySchema, mt as toStorefrontAccessoryProducts, ht as toStorefrontBikeProducts, gt as toStorefrontBookingProducts, _t as toStorefrontBookingProductsCollections, Bn as useBookingPeriod, fr as useFormField, $n as useOptionalStorefront, er as useStorefront, tr as useStorefrontBookingProducts, bt as useStorefrontCart, nr as useStorefrontConfig, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, Pn as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
76
+ import { accessories as Nr } from "./data/accessories.js";
77
+ import Pr from "./data/bikes.js";
78
+ import { contractSaleDocumentAcceptanceLevelSchema as Fr, contractSaleDocumentAcceptanceRecordSchema as Ir, contractSaleDocumentAcceptanceSchema as Lr, contractSaleDocumentAddressSchema as Rr, contractSaleDocumentAppendixKindSchema as zr, contractSaleDocumentAppendixSchema as Br, contractSaleDocumentContactSchema as Vr, contractSaleDocumentKindSchema as Hr, contractSaleDocumentLanguageCodeSchema as Ur, contractSaleDocumentLanguageSchema as Wr, contractSaleDocumentLineItemSchema as Gr, contractSaleDocumentRentalSchema as Kr, contractSaleDocumentSchema as qr, contractSaleDocumentSignatureSchema as Jr } from "./lib/contractSaleDocument.js";
79
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Yr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Xr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Zr, acceptContractSaleDocumentRequestSchema as Qr, acceptContractSaleDocumentResponseSchema as $r, contractSaleDocumentAcceptanceInputSchema as ei, contractSaleDocumentAcceptanceRecordInputSchema as ti, contractSaleDocumentApiAcceptanceRecordSchema as ni, contractSaleDocumentApiAcceptanceSchema as ri, contractSaleDocumentApiSchema as ii, contractSaleDocumentApiSignatureSchema as ai, contractSaleDocumentReferenceSchema as oi, contractSaleDocumentReferenceTypeSchema as si, contractSaleDocumentSignatureInputSchema as ci, downloadContractSaleDocumentPdfRequestSchema as li, getContractSaleDocumentRequestSchema as ui, getContractSaleDocumentResponseSchema as di } from "./lib/contractSaleDocumentApi.js";
80
+ import fi from "./routes.js";
81
+ import { loader as pi } from "./StorefrontProvider.js";
82
+ import { Select as mi, SelectContent as hi, SelectGroup as gi, SelectIcon as _i, SelectItem as vi, SelectItemIndicator as yi, SelectItemText as bi, SelectLabel as xi, SelectScrollDownButton as Si, SelectScrollUpButton as Ci, SelectSeparator as wi, SelectTrigger as Ti, SelectValue as Ei } from "./ui/select.js";
83
+ export { Yr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, vr as AboutSection, Ne as BOOKING_SEARCH_KEYS, En as Badge, Kn as BookingEndDateField, qn as BookingEndTimeField, Zn as BookingFlowSteps, Yn as BookingMobileDateDrawer, Vn as BookingPeriodProvider, Xn as BookingPeriodSelector, Wn as BookingStartDateField, Gn as BookingStartTimeField, Jn as BookingTimeSlotsStatus, On as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, br as Card, xr as CardAction, Sr as CardContent, Cr as CardDescription, wr as CardFooter, Tr as CardHeader, Er as CardTitle, gr as ContactSection, Ar as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Xr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, zn as DelayedPlaceholder, Bn as DelayedReveal, $n as DeliveryAddressSelector, Tn as Footer, sr as Form, cr as FormControl, lr as FormDescription, ur as FormField, dr as FormItem, fr as FormLabel, pr as FormMessage, Zr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, jn as Header, Qn as Input, Un as Label, Rn as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Fn as PlatformFooter, Pn as PoweredByLoczerBadge, kr as ProductPriceBadge, Dr as ProductWarningNotice, jt as ROUTE, jr as RadioGroup, Mr as RadioGroupItem, rn as STOREFRONT_AVAILABILITY_ROUTE, Bt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, _n as STOREFRONT_IMAGE_ROUTE, Kt as STOREFRONT_PRODUCTS_ROUTE, bn as STOREFRONT_TIME_SLOTS_ROUTE, mi as Select, hi as SelectContent, gi as SelectGroup, _i as SelectIcon, vi as SelectItem, yi as SelectItemIndicator, bi as SelectItemText, xi as SelectLabel, Si as SelectScrollDownButton, Ci as SelectScrollUpButton, wi as SelectSeparator, Ti as SelectTrigger, Ei as SelectValue, yr as StepSectionTitle, Or as StorefrontCartPanel, yt as StorefrontCartProvider, er as StorefrontContext, Pe as TIME_OPTIONS, _r as TestimonialsSection, hr as Textarea, Ln as WhatsAppFloatingButton, Qr as acceptContractSaleDocumentRequestSchema, $r as acceptContractSaleDocumentResponseSchema, Nr as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, Dn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, Pr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Et as buildDailyPriceRows, Dt as buildPriceTierLabels, an as buildStorefrontAvailabilityKey, At as buildStorefrontCartSummary, vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, Lt as buildWhatsAppHref, kn as buttonVariants, Ot as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, St as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, ei as contractSaleDocumentAcceptanceInputSchema, Fr as contractSaleDocumentAcceptanceLevelSchema, ti as contractSaleDocumentAcceptanceRecordInputSchema, Ir as contractSaleDocumentAcceptanceRecordSchema, Lr as contractSaleDocumentAcceptanceSchema, Rr as contractSaleDocumentAddressSchema, ni as contractSaleDocumentApiAcceptanceRecordSchema, ri as contractSaleDocumentApiAcceptanceSchema, ii as contractSaleDocumentApiSchema, ai as contractSaleDocumentApiSignatureSchema, zr as contractSaleDocumentAppendixKindSchema, Br as contractSaleDocumentAppendixSchema, Vr as contractSaleDocumentContactSchema, Hr as contractSaleDocumentKindSchema, Ur as contractSaleDocumentLanguageCodeSchema, Wr as contractSaleDocumentLanguageSchema, Gr as contractSaleDocumentLineItemSchema, oi as contractSaleDocumentReferenceSchema, si as contractSaleDocumentReferenceTypeSchema, Kr as contractSaleDocumentRentalSchema, qr as contractSaleDocumentSchema, ci as contractSaleDocumentSignatureInputSchema, Jr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, on as doesStorefrontAvailabilityDisplaySoldOut, li as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, ot as findStorefrontProduct, st as findStorefrontProductBySlug, Ct as formatPriceMinor, Pt as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, wt as getAvailabilityVariant, ze as getBookingDurationLabel, Be as getBookingDurationMinutes, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, ct as getCatalogProductBaseRateMinor, lt as getCatalogProductPaginationSort, ut as getCatalogProductSortFieldForPriceUnit, ui as getContractSaleDocumentRequestSchema, di as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Tt as getMinDayPriceMinor, sn as getStorefrontAvailabilityIssue, cn as getStorefrontAvailabilityStatus, dt as getStorefrontBaseDailyRateMinor, ft as getStorefrontCheckoutProductId, pt as getStorefrontProductSelectionDisplayName, mt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, ln as isStorefrontAvailabilityInsufficient, j as isoDateSchema, pi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, un as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, Mt as requestSchema, ne as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, bt as resolveStorefrontCartItemProduct, Ft as resolveStorefrontMapsHref, It as resolveStorefrontPhoneContact, Rt as resolveStorefrontWhatsAppContact, zt as resolveStorefrontWhatsAppHref, Nt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, pn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, mn as storefrontAvailabilityProductSchema, dn as storefrontAvailabilityRequestSchema, fn as storefrontAvailabilityResponseSchema, hn as storefrontAvailabilityScheduleSchema, An as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, Ut as storefrontCheckoutSubmitDeliveryRefinement, Ht as storefrontCheckoutSubmitItemSchema, Vt as storefrontCheckoutSubmitRequestBaseSchema, Wt as storefrontCheckoutSubmitRequestSchema, Gt as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, Mn as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, Nn as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, yn as storefrontImageRequestSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, qt as storefrontProductsRequestSchema, Jt as storefrontProductsResponseSchema, Yt as storefrontPublicAccessoryProductSchema, gn as storefrontPublicAvailabilityRecordSchema, Xt as storefrontPublicBikeAvailabilityStatusSchema, Zt as storefrontPublicBikeProductSchema, Qt as storefrontPublicProductDisplayModeSchema, $t as storefrontPublicProductPriceSchema, en as storefrontPublicProductVariantAttributeSchema, tn as storefrontPublicProductVariantIdentifierSchema, nn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, fi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, wn as storefrontTimeSlotJourneySchema, Cn as storefrontTimeSlotSchema, xn as storefrontTimeSlotsRequestSchema, Sn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, ht as toStorefrontAccessoryProducts, gt as toStorefrontBikeProducts, _t as toStorefrontBookingProducts, vt as toStorefrontBookingProductsCollections, Hn as useBookingPeriod, mr as useFormField, tr as useOptionalStorefront, nr as useStorefront, rr as useStorefrontBookingProducts, xt as useStorefrontCart, ir as useStorefrontConfig, ar as useStorefrontProducts, or as useStorefrontWorkspaceLanguage, In as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
@@ -1,5 +1,5 @@
1
1
  import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
2
- import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
2
+ import "../chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js";
3
3
  import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
4
4
  import { differenceInMinutes as r, format as i } from "date-fns";
5
5
  //#region src/lib/booking.ts
@@ -1,6 +1,6 @@
1
1
  import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js";
2
2
  import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
3
- import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
3
+ import "../chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js";
4
4
  import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
5
5
  import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE as i, checkoutPaymentErrorCodeSchema as a } from "./checkoutPaymentDecision.js";
6
6
  import { z as o } from "zod";
@@ -493,7 +493,7 @@ function S() {
493
493
  }), /* @__PURE__ */ g(ce, {
494
494
  type: "button",
495
495
  size: "sm",
496
- className: "ml-auto rounded-xl gap-2",
496
+ className: "ml-auto gap-2",
497
497
  onClick: () => wt(e),
498
498
  disabled: !ne || !J,
499
499
  children: [/* @__PURE__ */ h("span", { children: v("add_to_cart") }), /* @__PURE__ */ h(Pe, {
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,SAAS,4CA+EhC"}
1
+ {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA8HA,MAAM,CAAC,OAAO,UAAU,SAAS,4CAqFhC"}
@@ -1,34 +1,36 @@
1
- import { parseStorefrontUnavailableData as e } from "../lib/storefrontUnavailable.js";
2
- import { useEffect as t } from "react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import { Link as i, isRouteErrorResponse as a, useParams as o, useRouteError as s } from "@rpcbase/router";
5
- import { useTranslation as c } from "react-i18next";
6
- import { AlertTriangle as l, ArrowLeft as u, ArrowRight as d } from "lucide-react";
1
+ import { storefrontButtonRadiusClassName as e } from "../ui/button.js";
2
+ import { parseStorefrontUnavailableData as t } from "../lib/storefrontUnavailable.js";
3
+ import { useEffect as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Link as a, isRouteErrorResponse as o, useParams as s, useRouteError as c } from "@rpcbase/router";
6
+ import { useTranslation as l } from "react-i18next";
7
+ import { cn as u } from "@rpcbase/ui";
8
+ import { AlertTriangle as d, ArrowLeft as f, ArrowRight as p } from "lucide-react";
7
9
  //#region src/pages/ErrorPage.tsx
8
- var f = ":storeSlug/*", p = (e) => typeof e == "object" && e ? e : null;
9
- function m(e) {
10
- return p(e)?.reason ?? e;
10
+ var m = ":storeSlug/*", h = (e) => typeof e == "object" && e ? e : null;
11
+ function g(e) {
12
+ return h(e)?.reason ?? e;
11
13
  }
12
- function h(t) {
13
- let n = m(t);
14
- if (a(n)) return n.status;
15
- let r = p(n), i = r?.status;
16
- return e(r?.data) ? 404 : typeof i == "number" ? i : null;
14
+ function _(e) {
15
+ let n = g(e);
16
+ if (o(n)) return n.status;
17
+ let r = h(n), i = r?.status;
18
+ return t(r?.data) ? 404 : typeof i == "number" ? i : null;
17
19
  }
18
- function g(t, n) {
20
+ function v(e, n) {
19
21
  if (n !== 404) return null;
20
- let r = p(t), i = p(m(t)), a = [
22
+ let r = h(e), i = h(g(e)), a = [
21
23
  i?.data,
22
24
  i?.message,
23
25
  i?.statusText
24
26
  ];
25
- for (let t of a) {
26
- let n = e(t);
27
+ for (let e of a) {
28
+ let n = t(e);
27
29
  if (n) return n;
28
30
  }
29
- return r?.path === f ? e("Store not found") : null;
31
+ return r?.path === m ? t("Store not found") : null;
30
32
  }
31
- function _(e) {
33
+ function y(e) {
32
34
  switch (e) {
33
35
  case "moved": return {
34
36
  title: "store_moved_title",
@@ -48,58 +50,59 @@ function _(e) {
48
50
  };
49
51
  }
50
52
  }
51
- function v(e) {
53
+ function b(e) {
52
54
  return null;
53
55
  }
54
- function y() {
55
- let { t: e } = c(), { storeSlug: a } = o(), f = s(), p = h(f), m = p === 404, y = g(f, p), b = y !== null, x = y !== null && y.status !== "unknown", S = v(f), C = y ? _(y.status) : null, w = C?.title ?? (m ? "not_found_title" : "error_title"), T = C?.description ?? (m ? "not_found_description" : "error_description"), E = y?.status === "moved" ? y.replacementSlug : void 0, D = x ? E ? `/${encodeURIComponent(E)}` : null : y?.status === "unknown" ? null : `/${a ?? ""}`, O = E ? "go_to_moved_storefront" : "back_to_home";
56
- return t(() => {
57
- document.documentElement.setAttribute("data-hydrated", "true"), b && document.querySelectorAll("vite-error-overlay").forEach((e) => {
56
+ function x() {
57
+ let { t } = l(), { storeSlug: o } = s(), m = c(), h = _(m), g = h === 404, x = v(m, h), S = x !== null, C = x !== null && x.status !== "unknown", w = b(m), T = x ? y(x.status) : null, E = T?.title ?? (g ? "not_found_title" : "error_title"), D = T?.description ?? (g ? "not_found_description" : "error_description"), O = x?.status === "moved" ? x.replacementSlug : void 0, k = C ? O ? `/${encodeURIComponent(O)}` : null : x?.status === "unknown" ? null : `/${o ?? ""}`, A = O ? "go_to_moved_storefront" : "back_to_home";
58
+ return n(() => {
59
+ document.documentElement.setAttribute("data-hydrated", "true"), S && document.querySelectorAll("vite-error-overlay").forEach((e) => {
58
60
  e.remove();
59
- }), m || (console.error(f), console.error(S));
61
+ }), g || (console.error(m), console.error(w));
60
62
  }, [
61
- f,
62
- S,
63
63
  m,
64
- b
65
- ]), /* @__PURE__ */ n("div", {
64
+ w,
65
+ g,
66
+ S
67
+ ]), /* @__PURE__ */ r("div", {
68
+ "data-storefront-error-page": !0,
66
69
  className: "flex min-h-[60vh] items-center justify-center px-4 py-16",
67
- children: /* @__PURE__ */ r("div", {
70
+ children: /* @__PURE__ */ i("div", {
68
71
  className: "max-w-xl space-y-6 text-center",
69
72
  children: [
70
- /* @__PURE__ */ n("div", {
73
+ /* @__PURE__ */ r("div", {
71
74
  className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10 text-destructive",
72
- children: /* @__PURE__ */ n(l, {
75
+ children: /* @__PURE__ */ r(d, {
73
76
  className: "h-6 w-6",
74
77
  "aria-hidden": "true"
75
78
  })
76
79
  }),
77
- /* @__PURE__ */ r("div", {
80
+ /* @__PURE__ */ i("div", {
78
81
  className: "space-y-2",
79
82
  children: [
80
- /* @__PURE__ */ n("h1", {
83
+ /* @__PURE__ */ r("h1", {
81
84
  className: "text-2xl font-semibold tracking-tight",
82
- children: /* @__PURE__ */ n("span", { children: e(w) })
85
+ children: /* @__PURE__ */ r("span", { children: t(E) })
83
86
  }),
84
- /* @__PURE__ */ n("p", {
87
+ /* @__PURE__ */ r("p", {
85
88
  className: "text-muted-foreground",
86
- children: /* @__PURE__ */ n("span", { children: e(T, { store: a }) })
89
+ children: /* @__PURE__ */ r("span", { children: t(D, { store: o }) })
87
90
  }),
88
- x ? /* @__PURE__ */ n("p", {
91
+ C ? /* @__PURE__ */ r("p", {
89
92
  className: "text-sm text-muted-foreground",
90
- children: /* @__PURE__ */ n("span", { children: e("store_unavailable_contact") })
93
+ children: /* @__PURE__ */ r("span", { children: t("store_unavailable_contact") })
91
94
  }) : null
92
95
  ]
93
96
  }),
94
- D ? /* @__PURE__ */ n("div", {
97
+ k ? /* @__PURE__ */ r("div", {
95
98
  className: "flex justify-center",
96
- children: /* @__PURE__ */ r(i, {
97
- to: D,
98
- className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
99
- children: [n(E ? d : u, {
99
+ children: /* @__PURE__ */ i(a, {
100
+ to: k,
101
+ className: u("inline-flex items-center gap-2 bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e),
102
+ children: [r(O ? p : f, {
100
103
  className: "h-4 w-4",
101
104
  "aria-hidden": "true"
102
- }), /* @__PURE__ */ n("span", { children: e(O) })]
105
+ }), /* @__PURE__ */ r("span", { children: t(A) })]
103
106
  })
104
107
  }) : null
105
108
  ]
@@ -107,4 +110,4 @@ function y() {
107
110
  });
108
111
  }
109
112
  //#endregion
110
- export { y as default };
113
+ export { x as default };
@@ -1 +1 @@
1
- {"version":3,"file":"NotFoundPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotFoundPage.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA8BnC"}
1
+ {"version":3,"file":"NotFoundPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotFoundPage.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAiCnC"}
@@ -1,41 +1,43 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { Link as n, useParams as r } from "@rpcbase/router";
3
- import { useTranslation as i } from "react-i18next";
4
- import { AlertTriangle as a, ArrowLeft as o } from "lucide-react";
1
+ import { storefrontButtonRadiusClassName as e } from "../ui/button.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Link as r, useParams as i } from "@rpcbase/router";
4
+ import { useTranslation as a } from "react-i18next";
5
+ import { cn as o } from "@rpcbase/ui";
6
+ import { AlertTriangle as s, ArrowLeft as c } from "lucide-react";
5
7
  //#region src/pages/NotFoundPage.tsx
6
- function s() {
7
- let { t: s } = i(), { storeSlug: c } = r();
8
- return /* @__PURE__ */ e("div", {
8
+ function l() {
9
+ let { t: l } = a(), { storeSlug: u } = i();
10
+ return /* @__PURE__ */ t("div", {
9
11
  className: "flex min-h-[60vh] items-center justify-center px-4 py-16",
10
- children: /* @__PURE__ */ t("div", {
12
+ children: /* @__PURE__ */ n("div", {
11
13
  className: "max-w-xl space-y-6 text-center",
12
14
  children: [
13
- /* @__PURE__ */ e("div", {
15
+ /* @__PURE__ */ t("div", {
14
16
  className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10 text-destructive",
15
- children: /* @__PURE__ */ e(a, {
17
+ children: /* @__PURE__ */ t(s, {
16
18
  className: "h-6 w-6",
17
19
  "aria-hidden": "true"
18
20
  })
19
21
  }),
20
- /* @__PURE__ */ t("div", {
22
+ /* @__PURE__ */ n("div", {
21
23
  className: "space-y-2",
22
- children: [/* @__PURE__ */ e("h1", {
24
+ children: [/* @__PURE__ */ t("h1", {
23
25
  className: "text-2xl font-semibold tracking-tight",
24
- children: /* @__PURE__ */ e("span", { children: s("not_found_title") })
25
- }), /* @__PURE__ */ e("p", {
26
+ children: /* @__PURE__ */ t("span", { children: l("not_found_title") })
27
+ }), /* @__PURE__ */ t("p", {
26
28
  className: "text-muted-foreground",
27
- children: /* @__PURE__ */ e("span", { children: s("not_found_description", { store: c }) })
29
+ children: /* @__PURE__ */ t("span", { children: l("not_found_description", { store: u }) })
28
30
  })]
29
31
  }),
30
- /* @__PURE__ */ e("div", {
32
+ /* @__PURE__ */ t("div", {
31
33
  className: "flex justify-center",
32
- children: /* @__PURE__ */ t(n, {
33
- to: `/${c ?? ""}`,
34
- className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
- children: [/* @__PURE__ */ e(o, {
34
+ children: /* @__PURE__ */ n(r, {
35
+ to: `/${u ?? ""}`,
36
+ className: o("inline-flex items-center gap-2 bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e),
37
+ children: [/* @__PURE__ */ t(c, {
36
38
  className: "h-4 w-4",
37
39
  "aria-hidden": "true"
38
- }), /* @__PURE__ */ e("span", { children: s("back_to_home") })]
40
+ }), /* @__PURE__ */ t("span", { children: l("back_to_home") })]
39
41
  })
40
42
  })
41
43
  ]
@@ -43,4 +45,4 @@ function s() {
43
45
  });
44
46
  }
45
47
  //#endregion
46
- export { s as default };
48
+ export { l as default };