@loczer/storefront-sdk 0.171.0 → 0.173.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 (33) hide show
  1. package/dist/chunks/ui/dist/{Dialog-CR_9vgBQ.js → Dialog-Dick1QiI.js} +3 -3
  2. package/dist/chunks/ui/dist/Drawer/{index-BxM7gmh_.js → index-C1-jGB62.js} +3 -3
  3. package/dist/chunks/ui/dist/{MorphingModalWizard-CPLr3dh2.js → MorphingModalWizard-V0zTc513.js} +1 -1
  4. package/dist/chunks/ui/dist/{ResponsiveDialog-DhFgsW_0.js → ResponsiveDialog-CYvYFO09.js} +2 -2
  5. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/{DialogPopup-Ce1MaHNd.js → DialogPopup-BcVKH4Ue.js} +1 -1
  6. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/{DialogPortal-DCoXyUCa.js → DialogPortal-DrO6okKE.js} +1 -1
  7. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/dialog/root/{DialogRoot-DYrthiUT.js → DialogRoot-BknOXghA.js} +1 -1
  8. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/dialog/root/{useDialogRoot-Dmki7CJG.js → useDialogRoot-B-GtnDcK.js} +1 -1
  9. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/{DrawerPopup-BXOe4Llu.js → DrawerPopup-CQgmpMbk.js} +1 -1
  10. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/drawer/portal/{DrawerPortal-BfTFM1p8.js → DrawerPortal-CU-cCvvG.js} +1 -1
  11. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/drawer/root/{DrawerRoot-DuO16Hl3.js → DrawerRoot-BKYspE2s.js} +1 -1
  12. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/{FloatingFocusManager-B-v_gyUI.js → FloatingFocusManager-CVchZf30.js} +2 -2
  13. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/{FloatingPortal-6JOqLjHM.js → FloatingPortal-CFYgcT1n.js} +1 -1
  14. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/{useDismiss-BzvyAPc1.js → useDismiss-CZ9KGH30.js} +13 -13
  15. package/dist/chunks/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/{tabbable-BUkXLKOZ.js → tabbable-Cepxs8CW.js} +9 -9
  16. package/dist/components/BookingBikeVariantDialog/index.js +1 -1
  17. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  18. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
  19. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  20. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
  21. package/dist/components/PoweredByLoczerBadge/index.js +22 -22
  22. package/dist/components/ProductWarningNotice/index.js +6 -6
  23. package/dist/components/StorefrontCancellationPolicyNotice/index.js +1 -1
  24. package/dist/components/StorefrontPopupMessages/index.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/pages/CheckoutPaymentPage.js +1 -1
  27. package/dist/pages/HomePage.d.ts.map +1 -1
  28. package/dist/pages/HomePage.js +19 -11
  29. package/dist/pages/PaymentLinkSuccessPage.js +1 -1
  30. package/dist/storefront.css +1 -1
  31. package/dist/ui/drawer.d.ts.map +1 -1
  32. package/dist/ui/drawer.js +59 -64
  33. package/package.json +1 -1
@@ -6,13 +6,13 @@ import { createAutoFocusHandler as C, composeRefs as w } from "./lib/slot-CklkPb
6
6
  import { SsrHydratablePortal as H } from "./SsrHydratablePortal/index-Ue09qUAi.js";
7
7
  import O from "./node_modules/lucide-react/dist/esm/icons/x-BDxS-rYd.js";
8
8
  import { DialogBackdrop as z } from "./node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop-dfhPbhun.js";
9
- import { DialogPortal as I } from "./node_modules/@base-ui/react/esm/dialog/portal/DialogPortal-DCoXyUCa.js";
10
- import { DialogPopup as T } from "./node_modules/@base-ui/react/esm/dialog/popup/DialogPopup-Ce1MaHNd.js";
9
+ import { DialogPortal as I } from "./node_modules/@base-ui/react/esm/dialog/portal/DialogPortal-DrO6okKE.js";
10
+ import { DialogPopup as T } from "./node_modules/@base-ui/react/esm/dialog/popup/DialogPopup-BcVKH4Ue.js";
11
11
  import { DialogClose as k } from "./node_modules/@base-ui/react/esm/dialog/close/DialogClose-CiEiuP0S.js";
12
12
  import { DialogTitle as $ } from "./node_modules/@base-ui/react/esm/dialog/title/DialogTitle-BYe_-O2U.js";
13
13
  import { DialogDescription as j } from "./node_modules/@base-ui/react/esm/dialog/description/DialogDescription-C793yEmX.js";
14
14
  import { DialogTrigger as E } from "./node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger-CDsWAaqd.js";
15
- import { DialogRoot as M } from "./node_modules/@base-ui/react/esm/dialog/root/DialogRoot-DYrthiUT.js";
15
+ import { DialogRoot as M } from "./node_modules/@base-ui/react/esm/dialog/root/DialogRoot-BknOXghA.js";
16
16
  const y = s.createContext({
17
17
  open: !1,
18
18
  setOpen: () => {
@@ -7,12 +7,12 @@ import { DrawerTrigger as C } from "../node_modules/@base-ui/react/esm/drawer/tr
7
7
  import { DrawerClose as k } from "../node_modules/@base-ui/react/esm/drawer/close/DrawerClose-K9toitLg.js";
8
8
  import { DrawerBackdrop as R } from "../node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdrop-BqcC6xGK.js";
9
9
  import { DrawerViewport as P } from "../node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewport-BA1WyQud.js";
10
- import { DrawerPopup as O } from "../node_modules/@base-ui/react/esm/drawer/popup/DrawerPopup-BXOe4Llu.js";
10
+ import { DrawerPopup as O } from "../node_modules/@base-ui/react/esm/drawer/popup/DrawerPopup-CQgmpMbk.js";
11
11
  import { DrawerContent as T } from "../node_modules/@base-ui/react/esm/drawer/content/DrawerContent-DAER5HEH.js";
12
12
  import { DrawerTitle as z } from "../node_modules/@base-ui/react/esm/drawer/title/DrawerTitle-DPojAJP6.js";
13
13
  import { DrawerDescription as V } from "../node_modules/@base-ui/react/esm/drawer/description/DrawerDescription-CmzTECJs.js";
14
- import { DrawerPortal as E } from "../node_modules/@base-ui/react/esm/drawer/portal/DrawerPortal-BfTFM1p8.js";
15
- import { DrawerRoot as F } from "../node_modules/@base-ui/react/esm/drawer/root/DrawerRoot-DuO16Hl3.js";
14
+ import { DrawerPortal as E } from "../node_modules/@base-ui/react/esm/drawer/portal/DrawerPortal-CU-cCvvG.js";
15
+ import { DrawerRoot as F } from "../node_modules/@base-ui/react/esm/drawer/root/DrawerRoot-BKYspE2s.js";
16
16
  const g = o.createContext("bottom"), h = o.createContext({
17
17
  open: !1,
18
18
  modal: !0
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import { createContext as o, useContext as r } from "react";
3
3
  import "./Button-CEl4MEmL.js";
4
- import "./Dialog-CR_9vgBQ.js";
4
+ import "./Dialog-Dick1QiI.js";
5
5
  import "./node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot-Cw_gyhhI.js";
6
6
  import "./node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport-CadjBxEp.js";
7
7
  import "./node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner-z0cNScNF.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, jsxs as R } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import { DialogTrigger as h, DialogClose as w, DialogContent as b, DialogTitle as y, DialogDescription as M, Dialog as E, DialogHeader as O, DialogFooter as T } from "./Dialog-CR_9vgBQ.js";
4
- import { DrawerTrigger as I, DrawerClose as N, DrawerContent as _, DrawerTitle as x, DrawerDescription as $, Drawer as H, DrawerHeader as P, DrawerFooter as k } from "./Drawer/index-BxM7gmh_.js";
3
+ import { DialogTrigger as h, DialogClose as w, DialogContent as b, DialogTitle as y, DialogDescription as M, Dialog as E, DialogHeader as O, DialogFooter as T } from "./Dialog-Dick1QiI.js";
4
+ import { DrawerTrigger as I, DrawerClose as N, DrawerContent as _, DrawerTitle as x, DrawerDescription as $, Drawer as H, DrawerHeader as P, DrawerFooter as k } from "./Drawer/index-C1-jGB62.js";
5
5
  import { useMediaQuery as B } from "./lib/useMediaQuery-DhKGnWgn.js";
6
6
  import { cn as m } from "./lib/utils-B6zhukbw.js";
7
7
  import L from "./node_modules/lucide-react/dist/esm/icons/x-BDxS-rYd.js";
@@ -9,7 +9,7 @@ import { useDialogPortalContext as N } from "../portal/DialogPortalContext-CtWBu
9
9
  import { useOpenChangeComplete as $ } from "../../internals/useOpenChangeComplete-Doxu2x_W.js";
10
10
  import { COMPOSITE_KEYS as K } from "../../internals/composite/composite-Bl9mbNwg.js";
11
11
  import { jsx as _ } from "react/jsx-runtime";
12
- import { FloatingFocusManager as j } from "../../floating-ui-react/components/FloatingFocusManager-B-v_gyUI.js";
12
+ import { FloatingFocusManager as j } from "../../floating-ui-react/components/FloatingFocusManager-CVchZf30.js";
13
13
  const k = {
14
14
  ...h,
15
15
  ...M,
@@ -4,7 +4,7 @@ import { useDialogRootContext as f } from "../root/DialogRootContext-D__rrg4-.js
4
4
  import { DialogPortalContext as c } from "./DialogPortalContext-CtWBuvRl.js";
5
5
  import { InternalBackdrop as u } from "../../utils/InternalBackdrop-CZUtC9bU.js";
6
6
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
7
- import { FloatingPortal as g } from "../../floating-ui-react/components/FloatingPortal-6JOqLjHM.js";
7
+ import { FloatingPortal as g } from "../../floating-ui-react/components/FloatingPortal-CFYgcT1n.js";
8
8
  const x = /* @__PURE__ */ m.forwardRef(function(r, n) {
9
9
  const {
10
10
  keepMounted: e = !1,
@@ -1,6 +1,6 @@
1
1
  import * as r from "react";
2
2
  import { useOnFirstRender as h } from "../../../../utils/esm/useOnFirstRender-IB3XPZ7h.js";
3
- import { useDialogRoot as v } from "./useDialogRoot-Dmki7CJG.js";
3
+ import { useDialogRoot as v } from "./useDialogRoot-B-GtnDcK.js";
4
4
  import { useDialogRootContext as R, DialogRootContext as O } from "./DialogRootContext-D__rrg4-.js";
5
5
  import { DialogStore as b } from "../store/DialogStore-ltMcMpnh.js";
6
6
  import { jsx as m } from "react/jsx-runtime";
@@ -5,7 +5,7 @@ import { createChangeEventDetails as M } from "../../internals/createBaseUIEvent
5
5
  import { useImplicitActiveTrigger as A, useOpenStateTransitions as w } from "../../utils/popups/popupStoreUtils-DSjS8g02.js";
6
6
  import { useSyncedFloatingRootContext as B } from "../../floating-ui-react/hooks/useSyncedFloatingRootContext-Cczfd0Dg.js";
7
7
  import { useRole as F } from "../../floating-ui-react/hooks/useRole-DfMbRaU2.js";
8
- import { useDismiss as H } from "../../floating-ui-react/hooks/useDismiss-BzvyAPc1.js";
8
+ import { useDismiss as H } from "../../floating-ui-react/hooks/useDismiss-CZ9KGH30.js";
9
9
  import { getTarget as K, contains as L } from "../../internals/shadowDom-DTBRPFkJ.js";
10
10
  import { useInteractions as U } from "../../floating-ui-react/hooks/useInteractions-BWCpGAad.js";
11
11
  import { imperativeAction as V } from "../../internals/reason-parts-DKJ_-O8k.js";
@@ -18,7 +18,7 @@ import { useDrawerRootContext as de } from "../root/DrawerRootContext-Cyaf-7qv.j
18
18
  import { useDrawerSnapPoints as we } from "../root/useDrawerSnapPoints-CVbKGPMi.js";
19
19
  import { useDrawerViewportContext as ge } from "../viewport/DrawerViewportContext-xR35hPcl.js";
20
20
  import { jsx as Se } from "react/jsx-runtime";
21
- import { FloatingFocusManager as De } from "../../floating-ui-react/components/FloatingFocusManager-B-v_gyUI.js";
21
+ import { FloatingFocusManager as De } from "../../floating-ui-react/components/FloatingFocusManager-CVchZf30.js";
22
22
  let K = !1;
23
23
  function he() {
24
24
  K || (typeof CSS < "u" && "registerProperty" in CSS && ([s.swipeMovementX, s.swipeMovementY, s.snapPointOffset].forEach((t) => {
@@ -1,4 +1,4 @@
1
- import { DialogPortal as o } from "../../dialog/portal/DialogPortal-DCoXyUCa.js";
1
+ import { DialogPortal as o } from "../../dialog/portal/DialogPortal-DrO6okKE.js";
2
2
  const a = o;
3
3
  export {
4
4
  a as DrawerPortal
@@ -5,7 +5,7 @@ import { useStableCallback as i } from "../../../../utils/esm/useStableCallback-
5
5
  import { isAndroid as ie } from "../../../../utils/esm/detectBrowser-CntSiJrj.js";
6
6
  import { useId as le } from "../../../../utils/esm/useId-D8NyJjt3.js";
7
7
  import { useDrawerRootContext as ue, DrawerRootContext as pe } from "./DrawerRootContext-Cyaf-7qv.js";
8
- import { IsDrawerContext as fe, DialogRoot as de } from "../../dialog/root/DialogRoot-DYrthiUT.js";
8
+ import { IsDrawerContext as fe, DialogRoot as de } from "../../dialog/root/DialogRoot-BknOXghA.js";
9
9
  import { createChangeEventDetails as x } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
10
10
  import { useDialogRootContext as ge } from "../../dialog/root/DialogRootContext-D__rrg4-.js";
11
11
  import { useDrawerProviderContext as me } from "../provider/DrawerProviderContext-euW_U5h8.js";
@@ -13,14 +13,14 @@ import { ownerDocument as O } from "../../../../utils/esm/owner-CfKP3-Rk.js";
13
13
  import { FocusGuard as ve } from "../../utils/FocusGuard-BkeVKSkX.js";
14
14
  import { isTypeableCombobox as ye, getFloatingFocusElement as he, isTypeableElement as ze } from "../utils/element-7_beKIST.js";
15
15
  import { isVirtualClick as Je, isVirtualPointerEvent as Qe, stopEvent as Xe } from "../utils/event-BJf3Eroa.js";
16
- import { tabbable as Me, isOutsideEvent as Te, getNextTabbable as Ye, getPreviousTabbable as Ze, isTabbable as se, focusable as Be } from "../utils/tabbable-BUkXLKOZ.js";
16
+ import { tabbable as Me, isOutsideEvent as Te, getNextTabbable as Ye, getPreviousTabbable as Ze, isTabbable as se, focusable as Be } from "../utils/tabbable-Cepxs8CW.js";
17
17
  import { getNodeAncestors as Fe, getNodeChildren as ke } from "../utils/nodes-BbaFB8UD.js";
18
18
  import { isElementVisible as et } from "../utils/composite-keZdnJD9.js";
19
19
  import { createChangeEventDetails as tt } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
20
20
  import { createAttribute as Ae } from "../utils/createAttribute-DQjmnndx.js";
21
21
  import { enqueueFocus as ne } from "../utils/enqueueFocus-BoxfANJQ.js";
22
22
  import { markOthers as Oe } from "../utils/markOthers-im_zgP9x.js";
23
- import { usePortalContext as rt } from "./FloatingPortal-6JOqLjHM.js";
23
+ import { usePortalContext as rt } from "./FloatingPortal-CFYgcT1n.js";
24
24
  import { useFloatingTree as nt } from "./FloatingTree-BJGeWpX5.js";
25
25
  import { CLICK_TRIGGER_IDENTIFIER as ot } from "../../internals/constants-DrTrmCr_.js";
26
26
  import { resolveRef as C } from "../../utils/resolveRef-Csx4Vghu.js";
@@ -8,7 +8,7 @@ import { useIsoLayoutEffect as j } from "../../../../utils/esm/useIsoLayoutEffec
8
8
  import { useStableCallback as w } from "../../../../utils/esm/useStableCallback-DyHa2qMJ.js";
9
9
  import { EMPTY_OBJECT as q } from "../../../../utils/esm/empty-C3-x9M2q.js";
10
10
  import { FocusGuard as x } from "../../utils/FocusGuard-BkeVKSkX.js";
11
- import { enableFocusInside as I, isOutsideEvent as $, getPreviousTabbable as G, getNextTabbable as L, disableFocusInside as W } from "../utils/tabbable-BUkXLKOZ.js";
11
+ import { enableFocusInside as I, isOutsideEvent as $, getPreviousTabbable as G, getNextTabbable as L, disableFocusInside as W } from "../utils/tabbable-Cepxs8CW.js";
12
12
  import { createChangeEventDetails as k } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
13
13
  import { createAttribute as A } from "../utils/createAttribute-DQjmnndx.js";
14
14
  import { useRenderElement as B } from "../../internals/useRenderElement-CktkgllD.js";
@@ -37,8 +37,8 @@ function mt(p, Ee = {}) {
37
37
  referencePress: ye = ze,
38
38
  referencePressEvent: B = "sloppy",
39
39
  bubbles: Re,
40
- externalTree: be
41
- } = Ee, R = Ge(be), we = y(typeof K == "function" ? K : () => !1), b = typeof K == "function" ? we : K, re = b !== !1, oe = y(() => he), M = l.useRef(!1), S = l.useRef(!1), v = l.useRef(!1), {
40
+ externalTree: we
41
+ } = Ee, R = Ge(we), be = y(typeof K == "function" ? K : () => !1), w = typeof K == "function" ? be : K, re = w !== !1, oe = y(() => he), M = l.useRef(!1), S = l.useRef(!1), v = l.useRef(!1), {
42
42
  escapeKey: W,
43
43
  outsidePress: se
44
44
  } = Ve(Re), o = l.useRef(null), $ = pe(), ce = pe(), E = y(() => {
@@ -56,7 +56,7 @@ function mt(p, Ee = {}) {
56
56
  }
57
57
  const U = Fe(r) ? r.nativeEvent : r, D = I(Qe, U);
58
58
  n.setOpen(!1, D), !W && !D.isPropagationAllowed && r.stopPropagation();
59
- }), w = y(() => {
59
+ }), b = y(() => {
60
60
  d.current.insideReactTree = !0, ce.start(0, E);
61
61
  });
62
62
  l.useEffect(() => {
@@ -132,7 +132,7 @@ function mt(p, Ee = {}) {
132
132
  h.clear(), v.current = !1;
133
133
  return;
134
134
  }
135
- if (typeof b == "function" && !b(e))
135
+ if (typeof w == "function" && !w(e))
136
136
  return;
137
137
  const Oe = d.current.floatingContext?.nodeId, le = R ? ee(R.nodesRef.current, Oe) : [];
138
138
  if (le.length > 0) {
@@ -191,7 +191,7 @@ function mt(p, Ee = {}) {
191
191
  D();
192
192
  return;
193
193
  }
194
- typeof b == "function" && !b(e) || (h.clear(), v.current = !0, E());
194
+ typeof w == "function" && !w(e) || (h.clear(), v.current = !0, E());
195
195
  }
196
196
  }
197
197
  }
@@ -217,7 +217,7 @@ function mt(p, Ee = {}) {
217
217
  return () => {
218
218
  ke(), r.clear(), h.clear(), x(), v.current = !1;
219
219
  };
220
- }, [d, ne, A, re, b, C, g, W, se, P, E, oe, R, n, $]), l.useEffect(E, [b, E]);
220
+ }, [d, ne, A, re, w, C, g, W, se, P, E, oe, R, n, $]), l.useEffect(E, [w, E]);
221
221
  const G = l.useMemo(() => ({
222
222
  onKeyDown: P,
223
223
  [je[B]]: (r) => {
@@ -242,17 +242,17 @@ function mt(p, Ee = {}) {
242
242
  // See https://github.com/mui/base-ui/pull/3379
243
243
  onPointerDown: Q,
244
244
  onMouseDown: Q,
245
- onClickCapture: w,
245
+ onClickCapture: b,
246
246
  onMouseDownCapture(r) {
247
- w(), J(r);
247
+ b(), J(r);
248
248
  },
249
249
  onPointerDownCapture(r) {
250
- w(), J(r);
250
+ b(), J(r);
251
251
  },
252
- onMouseUpCapture: w,
253
- onTouchEndCapture: w,
254
- onTouchMoveCapture: w
255
- }), [P, w, J, Q]);
252
+ onMouseUpCapture: b,
253
+ onTouchEndCapture: b,
254
+ onTouchMoveCapture: b
255
+ }), [P, b, J, Q]);
256
256
  return l.useMemo(() => g ? {
257
257
  reference: G,
258
258
  floating: ie,
@@ -1,9 +1,9 @@
1
1
  import { isHTMLElement as s, getNodeName as a, isShadowRoot as A, getComputedStyle as v } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
2
2
  import { ownerDocument as f } from "../../../../utils/esm/owner-CfKP3-Rk.js";
3
3
  import { contains as l, activeElement as T } from "../../internals/shadowDom-DTBRPFkJ.js";
4
- import { isElementVisible as w } from "./composite-keZdnJD9.js";
5
- const R = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
6
- function $(n) {
4
+ import { isElementVisible as $ } from "./composite-keZdnJD9.js";
5
+ const w = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
6
+ function R(n) {
7
7
  const e = n.assignedSlot;
8
8
  if (e)
9
9
  return e;
@@ -18,27 +18,27 @@ function c(n) {
18
18
  return e;
19
19
  return null;
20
20
  }
21
- function N(n, e) {
21
+ function S(n, e) {
22
22
  const t = c(e);
23
23
  return !!t && (n === t || l(t, n));
24
24
  }
25
25
  function d(n) {
26
26
  const e = n ? a(n) : "";
27
- return n != null && n.matches(R) && (e !== "summary" || n.parentElement != null && a(n.parentElement) === "details" && c(n.parentElement) === n) && (e !== "details" || c(n) == null) && (e !== "input" || n.type !== "hidden");
27
+ return n != null && n.matches(w) && (e !== "summary" || n.parentElement != null && a(n.parentElement) === "details" && c(n.parentElement) === n) && (e !== "details" || c(n) == null) && (e !== "input" || n.type !== "hidden");
28
28
  }
29
29
  function m(n) {
30
30
  if (!d(n) || !n.isConnected || n.matches(":disabled"))
31
31
  return !1;
32
- for (let e = n; e; e = $(e)) {
32
+ for (let e = n; e; e = R(e)) {
33
33
  const t = e !== n, r = a(e) === "slot";
34
- if (e.hasAttribute("inert") || t && a(e) === "details" && !e.open && !N(n, e) || e.hasAttribute("hidden") || !r && !S(e, t))
34
+ if (e.hasAttribute("inert") || t && a(e) === "details" && !e.open && !S(n, e) || e.hasAttribute("hidden") || !r && !N(e, t))
35
35
  return !1;
36
36
  }
37
37
  return !0;
38
38
  }
39
- function S(n, e) {
39
+ function N(n, e) {
40
40
  const t = v(n);
41
- return e ? t.display !== "none" : w(n, t);
41
+ return e ? t.display !== "none" : $(n, t);
42
42
  }
43
43
  function b(n) {
44
44
  const e = n.tabIndex;
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import { useState as O, useEffect as q } from "react";
3
3
  import { useMediaQuery as K } from "@rpcbase/client";
4
- import { RESPONSIVE_DIALOG_MOBILE_MEDIA_QUERY as T, ResponsiveDialog as G, ResponsiveDialogContent as W, ResponsiveDialogHeader as F, ResponsiveDialogTitle as H, ResponsiveDialogDescription as U, ResponsiveDialogFooter as X } from "../../chunks/ui/dist/ResponsiveDialog-DhFgsW_0.js";
4
+ import { RESPONSIVE_DIALOG_MOBILE_MEDIA_QUERY as T, ResponsiveDialog as G, ResponsiveDialogContent as W, ResponsiveDialogHeader as F, ResponsiveDialogTitle as H, ResponsiveDialogDescription as U, ResponsiveDialogFooter as X } from "../../chunks/ui/dist/ResponsiveDialog-CYvYFO09.js";
5
5
  import { cn as S } from "@rpcbase/ui";
6
6
  import { Bike as Y, CheckCircle2 as I, Plus as V } from "lucide-react";
7
7
  import { useTranslation as Z } from "react-i18next";
@@ -2,7 +2,7 @@ import { jsxs as ne, jsx as s } from "react/jsx-runtime";
2
2
  import { differenceInCalendarDays as me } from "date-fns";
3
3
  import { createContext as pe, useRef as F, useState as X, useEffect as v, useContext as ye } from "react";
4
4
  import { cn as k, DayPickerField as De } from "@rpcbase/ui";
5
- import { useMorphingModalWizardOverlayLayer as Ee } from "../../../chunks/ui/dist/MorphingModalWizard-CPLr3dh2.js";
5
+ import { useMorphingModalWizardOverlayLayer as Ee } from "../../../chunks/ui/dist/MorphingModalWizard-V0zTc513.js";
6
6
  import { DayPicker as he } from "../../../ui/day-picker.js";
7
7
  import { Label as ve } from "../../../ui/label.js";
8
8
  import { Provider as be, Root as ge, TooltipTrigger as Me, Content as ke } from "../../../ui/tooltip.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as M, Fragment as w, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as P, useEffect as N } from "react";
3
3
  import { cn as T, HourPickerField as V } from "@rpcbase/ui";
4
- import { useMorphingModalWizardOverlayLayer as H } from "../../../chunks/ui/dist/MorphingModalWizard-CPLr3dh2.js";
4
+ import { useMorphingModalWizardOverlayLayer as H } from "../../../chunks/ui/dist/MorphingModalWizard-V0zTc513.js";
5
5
  import { Label as U } from "../../../ui/label.js";
6
6
  import { useBookingPeriod as A } from "../BookingPeriodContext.js";
7
7
  import { BookingPeriodFieldErrorMessage as j } from "./BookingPeriodFieldErrorMessage.js";
@@ -2,7 +2,7 @@ import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
2
  import { useRef as L, useState as A, useEffect as H } from "react";
3
3
  import { DayButton as U } from "react-day-picker";
4
4
  import { cn as f, DayPickerField as K } from "@rpcbase/ui";
5
- import { useMorphingModalWizardOverlayLayer as R } from "../../../chunks/ui/dist/MorphingModalWizard-CPLr3dh2.js";
5
+ import { useMorphingModalWizardOverlayLayer as R } from "../../../chunks/ui/dist/MorphingModalWizard-V0zTc513.js";
6
6
  import { DayPicker as v } from "../../../ui/day-picker.js";
7
7
  import { Label as _ } from "../../../ui/label.js";
8
8
  import { useBookingPeriod as $ } from "../BookingPeriodContext.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as E, Fragment as B, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as O, useEffect as S } from "react";
3
3
  import { cn as T, HourPickerField as R } from "@rpcbase/ui";
4
- import { useMorphingModalWizardOverlayLayer as w } from "../../../chunks/ui/dist/MorphingModalWizard-CPLr3dh2.js";
4
+ import { useMorphingModalWizardOverlayLayer as w } from "../../../chunks/ui/dist/MorphingModalWizard-V0zTc513.js";
5
5
  import { Label as P } from "../../../ui/label.js";
6
6
  import { useBookingPeriod as H } from "../BookingPeriodContext.js";
7
7
  import { BookingPeriodFieldErrorMessage as U } from "./BookingPeriodFieldErrorMessage.js";
@@ -1,21 +1,21 @@
1
1
  import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { useId as h } from "react";
3
- import { cn as C } from "@rpcbase/ui";
3
+ import { cn as n } from "@rpcbase/ui";
4
4
  import { useTranslation as c } from "react-i18next";
5
5
  import { I18nProvider as p } from "../../i18n/I18nProvider.js";
6
6
  const f = "https://loczer.com";
7
- function m({ className: r }) {
8
- const t = h();
7
+ function m({ className: t }) {
8
+ const r = h();
9
9
  return /* @__PURE__ */ o(
10
10
  "svg",
11
11
  {
12
12
  viewBox: "0 0 128 128",
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
- className: r,
14
+ className: t,
15
15
  "aria-hidden": "true",
16
16
  focusable: "false",
17
17
  children: [
18
- /* @__PURE__ */ e("rect", { width: "128", height: "128", rx: "28", fill: `url(#${t})` }),
18
+ /* @__PURE__ */ e("rect", { width: "128", height: "128", rx: "28", fill: `url(#${r})` }),
19
19
  /* @__PURE__ */ e(
20
20
  "path",
21
21
  {
@@ -23,26 +23,26 @@ function m({ className: r }) {
23
23
  fill: "white"
24
24
  }
25
25
  ),
26
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ o("linearGradient", { id: t, x1: "0", y1: "0", x2: "128", y2: "128", gradientUnits: "userSpaceOnUse", children: [
27
- /* @__PURE__ */ e("stop", { stopColor: "#193CB8" }),
28
- /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#193CB8", stopOpacity: "0.7" })
26
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ o("linearGradient", { id: r, x1: "0", y1: "0", x2: "128", y2: "128", gradientUnits: "userSpaceOnUse", children: [
27
+ /* @__PURE__ */ e("stop", { stopColor: "hsl(var(--brand-primary))" }),
28
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "hsl(var(--brand-primary))", stopOpacity: "0.7" })
29
29
  ] }) })
30
30
  ]
31
31
  }
32
32
  );
33
33
  }
34
34
  function v({
35
- language: r,
36
- ...t
35
+ language: t,
36
+ ...r
37
37
  }) {
38
- return /* @__PURE__ */ e(p, { initialLanguage: r, children: /* @__PURE__ */ e(w, { ...t }) });
38
+ return /* @__PURE__ */ e(p, { initialLanguage: t, children: /* @__PURE__ */ e(w, { ...r }) });
39
39
  }
40
40
  function w({
41
- className: r,
42
- href: t = f,
43
- markClassName: n,
44
- rel: s = "noopener noreferrer",
45
- showTagline: a = !0,
41
+ className: t,
42
+ href: r = f,
43
+ markClassName: C,
44
+ rel: a = "noopener noreferrer",
45
+ showTagline: s = !0,
46
46
  target: l = "_blank",
47
47
  ...d
48
48
  }) {
@@ -50,19 +50,19 @@ function w({
50
50
  return /* @__PURE__ */ o(
51
51
  "a",
52
52
  {
53
- className: C(
53
+ className: n(
54
54
  "group inline-flex w-fit items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-3 py-2 shadow-sm transition hover:border-white/20 hover:bg-white/10",
55
- r
55
+ t
56
56
  ),
57
- href: t,
57
+ href: r,
58
58
  target: l,
59
- rel: s,
59
+ rel: a,
60
60
  ...d,
61
61
  children: [
62
- /* @__PURE__ */ e(m, { className: C("h-8 w-8 flex-shrink-0", n) }),
62
+ /* @__PURE__ */ e(m, { className: n("h-8 w-8 flex-shrink-0", C) }),
63
63
  /* @__PURE__ */ o("span", { className: "flex flex-col items-start leading-tight text-left", children: [
64
64
  /* @__PURE__ */ e("span", { className: "font-medium text-white/90 group-hover:text-white", children: i("platform_footer_powered_by") }),
65
- a ? /* @__PURE__ */ e("span", { className: "text-xs text-white/60 group-hover:text-white/80", children: i("platform_footer_tagline") }) : null
65
+ s ? /* @__PURE__ */ e("span", { className: "text-xs text-white/60 group-hover:text-white/80", children: i("platform_footer_tagline") }) : null
66
66
  ] })
67
67
  ]
68
68
  }
@@ -1,14 +1,14 @@
1
1
  import { jsxs as t, jsx as n } from "react/jsx-runtime";
2
2
  import { AlertCircle as a } from "lucide-react";
3
- import { cn as o } from "@rpcbase/ui";
4
- function c({ warning: e, className: i }) {
5
- const r = e?.trim();
3
+ import { cn as l } from "@rpcbase/ui";
4
+ function c({ warning: i, className: e }) {
5
+ const r = i?.trim();
6
6
  return r ? /* @__PURE__ */ t(
7
7
  "p",
8
8
  {
9
- className: o(
10
- "text-xs leading-snug text-orange-700",
11
- i
9
+ className: l(
10
+ "text-xs leading-snug text-warning",
11
+ e
12
12
  ),
13
13
  children: [
14
14
  /* @__PURE__ */ n(a, { className: "mr-1 inline h-3.5 w-3.5 align-[-0.125em]", "aria-hidden": "true" }),
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as f } from "react";
3
- import { ResponsiveDialog as x, ResponsiveDialogContent as g, ResponsiveDialogHeader as _, ResponsiveDialogTitle as N, ResponsiveDialogDescription as b, ResponsiveDialogFooter as y } from "../../chunks/ui/dist/ResponsiveDialog-DhFgsW_0.js";
3
+ import { ResponsiveDialog as x, ResponsiveDialogContent as g, ResponsiveDialogHeader as _, ResponsiveDialogTitle as N, ResponsiveDialogDescription as b, ResponsiveDialogFooter as y } from "../../chunks/ui/dist/ResponsiveDialog-CYvYFO09.js";
4
4
  import { cn as v } from "@rpcbase/ui";
5
5
  import { CheckCircle2 as w, Info as d } from "lucide-react";
6
6
  import { useTranslation as T } from "react-i18next";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
2
  import { useState as S, useEffect as $ } from "react";
3
- import { ResponsiveDialog as R, ResponsiveDialogContent as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as I, ResponsiveDialogDescription as P, ResponsiveDialogFooter as O } from "../../chunks/ui/dist/ResponsiveDialog-DhFgsW_0.js";
3
+ import { ResponsiveDialog as R, ResponsiveDialogContent as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as I, ResponsiveDialogDescription as P, ResponsiveDialogFooter as O } from "../../chunks/ui/dist/ResponsiveDialog-CYvYFO09.js";
4
4
  import { useParams as j, useLocation as z } from "@rpcbase/router";
5
5
  import { cn as x } from "@rpcbase/ui";
6
6
  import { X as H, Info as L } from "lucide-react";
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import "react-i18next";
43
43
  import { getLocalizedEntry as gt, getLocalizedValue as Pt } from "./localization.js";
44
44
  import { Badge as xt, badgeVariants as Ct } from "./ui/badge.js";
45
45
  import { Button as Dt, buttonVariants as At } from "./ui/button.js";
46
- import "./chunks/ui/dist/ResponsiveDialog-DhFgsW_0.js";
46
+ import "./chunks/ui/dist/ResponsiveDialog-CYvYFO09.js";
47
47
  import { Card as Et, CardAction as bt, CardContent as Bt, CardDescription as kt, CardFooter as yt, CardHeader as It, CardTitle as _t } from "./ui/card.js";
48
48
  import { loader as Mt, useOptionalStorefront as Lt, useStorefront as Ut, useStorefrontBookingProducts as vt, useStorefrontConfig as Nt, useStorefrontProducts as qt, useStorefrontWorkspaceLanguage as Vt } from "./StorefrontProvider.js";
49
49
  import { RadioGroup as zt, RadioGroupItem as Ht } from "./ui/radio-group.js";
@@ -149,7 +149,7 @@ function Be() {
149
149
  ] }),
150
150
  /* @__PURE__ */ e(N, { to: v, children: /* @__PURE__ */ e(S, { variant: "outline", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_back_to_checkout") }) }) })
151
151
  ] }) }) });
152
- const B = typeof r.amountMinor == "number" && r.currency ? ge(r.amountMinor, r.currency, u.language) : null, w = o === "authorized" || o === "succeeded", L = o === "failed" || o === "cancelled", Y = w ? re : L ? se : ne, H = w ? "text-emerald-600" : L ? "text-destructive" : "text-amber-600";
152
+ const B = typeof r.amountMinor == "number" && r.currency ? ge(r.amountMinor, r.currency, u.language) : null, w = o === "authorized" || o === "succeeded", L = o === "failed" || o === "cancelled", Y = w ? re : L ? se : ne, H = w ? "text-emerald-600" : L ? "text-destructive" : "text-warning";
153
153
  return /* @__PURE__ */ e("div", { className: "mx-auto max-w-5xl px-4 py-10 sm:px-6", children: /* @__PURE__ */ n("div", { className: "grid gap-6 lg:grid-cols-[1fr_1fr]", children: [
154
154
  /* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-5 shadow-sm", children: /* @__PURE__ */ n("div", { className: "space-y-5", children: [
155
155
  /* @__PURE__ */ n("div", { className: "inline-flex items-center gap-2 rounded-full border border-emerald-200 bg-emerald-50 px-3 py-1 text-xs font-medium text-emerald-700", children: [
@@ -1 +1 @@
1
- {"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA6GA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAyqB/B"}
1
+ {"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA6GA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CA6qB/B"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as r, jsx as e, Fragment as oe } from "react/jsx-runtime";
2
- import { useMemo as h, useState as b, useRef as Ue, useEffect as je } from "react";
2
+ import { useMemo as h, useState as b, useRef as je, useEffect as Ue } from "react";
3
3
  import { useMediaQuery as Ve } from "@rpcbase/client";
4
4
  import { useParams as ze, useLocation as Ye, useSearchParams as Qe, useNavigate as We, Link as M } from "@rpcbase/router";
5
5
  import { cn as m } from "@rpcbase/ui";
@@ -74,7 +74,7 @@ function da() {
74
74
  ), [F, Pe] = b(() => f.get("start_time") ?? c.start_time), [O, Ce] = b(() => {
75
75
  const t = E(f.get("start_date")) ?? N;
76
76
  return E(f.get("end_date")) ?? t ?? ye;
77
- }), [$, De] = b(() => f.get("end_time") ?? c.end_time), [S, I] = b(() => q.start_address), [P, H] = b(() => q.end_address), U = Ue(null), Ae = h(() => u.slice(0, 4), [u]), { heroMode: X } = kt(), C = X === "vertical_marquee_hero", _ = X === "booking_bar_overlay_hero" || C, Z = Ve("(min-width: 1024px)"), Ee = _t(l), Be = h(
77
+ }), [$, De] = b(() => f.get("end_time") ?? c.end_time), [S, I] = b(() => q.start_address), [P, H] = b(() => q.end_address), j = je(null), Ae = h(() => u.slice(0, 4), [u]), { heroMode: X } = kt(), C = X === "vertical_marquee_hero", _ = X === "booking_bar_overlay_hero" || C, Z = Ve("(min-width: 1024px)"), Ee = _t(l), Be = h(
78
78
  () => ({
79
79
  startDate: a("booking_start_date"),
80
80
  pickStartDate: a("booking_start_date"),
@@ -109,7 +109,7 @@ function da() {
109
109
  L,
110
110
  F
111
111
  ]), ee = B.toString(), Te = ee ? `?${ee}` : "";
112
- je(() => {
112
+ Ue(() => {
113
113
  Nt(l, B);
114
114
  }, [B, l]);
115
115
  const Me = {
@@ -122,13 +122,13 @@ function da() {
122
122
  endTime: $,
123
123
  onEndTimeChange: De,
124
124
  onEndTimeCommit: () => {
125
- U.current?.focus({ preventScroll: !0 });
125
+ j.current?.focus({ preventScroll: !0 });
126
126
  },
127
127
  bookingPeriodConfig: ke,
128
128
  fetchTimeSlots: Ee,
129
129
  labels: Be,
130
130
  localeCode: i.language
131
- }, j = () => {
131
+ }, U = () => {
132
132
  const t = new URLSearchParams(R);
133
133
  for (const [n, s] of B.entries())
134
134
  t.set(n, s);
@@ -187,7 +187,7 @@ function da() {
187
187
  /* @__PURE__ */ e(ht, {}),
188
188
  /* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ e(pt, {}) }),
189
189
  /* @__PURE__ */ e(gt, {}),
190
- n ? /* @__PURE__ */ r(me, { ref: U, className: m("gap-2", s), onClick: j, children: [
190
+ n ? /* @__PURE__ */ r(me, { ref: j, className: m("gap-2", s), onClick: U, children: [
191
191
  /* @__PURE__ */ e("span", { children: a("booking_submit") }),
192
192
  /* @__PURE__ */ e(z, { className: "h-4 w-4", "aria-hidden": "true" })
193
193
  ] }) : null
@@ -233,10 +233,18 @@ function da() {
233
233
  }),
234
234
  Re,
235
235
  /* @__PURE__ */ e("p", { className: "text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: a("booking_minimum_duration", { hours: 4 }) }) }),
236
- /* @__PURE__ */ r(me, { ref: U, className: "h-11 rounded-xl text-sm font-semibold gap-2", onClick: j, children: [
237
- /* @__PURE__ */ e("span", { children: a("booking_submit") }),
238
- /* @__PURE__ */ e(z, { className: "h-4 w-4", "aria-hidden": "true" })
239
- ] })
236
+ /* @__PURE__ */ r(
237
+ me,
238
+ {
239
+ ref: j,
240
+ className: "h-11 w-fit justify-self-start rounded-xl text-sm font-semibold gap-2",
241
+ onClick: U,
242
+ children: [
243
+ /* @__PURE__ */ e("span", { children: a("booking_submit") }),
244
+ /* @__PURE__ */ e(z, { className: "h-4 w-4", "aria-hidden": "true" })
245
+ ]
246
+ }
247
+ )
240
248
  ] })
241
249
  ] }), ie = /* @__PURE__ */ e(he, { className: "border-slate-200 bg-white/95 shadow-xl", children: /* @__PURE__ */ r("div", { className: "grid gap-3 p-4", children: [
242
250
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
@@ -477,7 +485,7 @@ function da() {
477
485
  detailsPath: te(t.slug),
478
486
  productDetailsLinkState: T,
479
487
  fallbackLanguage: o,
480
- onAction: j
488
+ onAction: U
481
489
  },
482
490
  t.id
483
491
  )) })
@@ -116,7 +116,7 @@ function J() {
116
116
  /* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: s("secure_payment_link.confirmation_loading_description") }) })
117
117
  ] })
118
118
  ] }) : /* @__PURE__ */ i("div", { className: "space-y-6 text-center", children: [
119
- /* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-slate-100", children: /* @__PURE__ */ e(n === "succeeded" || n === "authorized" ? K : n === "failed" || n === "cancelled" ? R : T, { className: `h-6 w-6 ${n === "succeeded" || n === "authorized" ? "text-emerald-600" : n === "failed" || n === "cancelled" ? "text-destructive" : "text-amber-600"}`, "aria-hidden": "true" }) }),
119
+ /* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-slate-100", children: /* @__PURE__ */ e(n === "succeeded" || n === "authorized" ? K : n === "failed" || n === "cancelled" ? R : T, { className: `h-6 w-6 ${n === "succeeded" || n === "authorized" ? "text-emerald-600" : n === "failed" || n === "cancelled" ? "text-destructive" : "text-warning"}`, "aria-hidden": "true" }) }),
120
120
  /* @__PURE__ */ i("div", { className: "space-y-2", children: [
121
121
  /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: s(`secure_payment_link.success_titles.${n}`) }) }),
122
122
  /* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: s(`secure_payment_link.statuses.${n}`) }) })