@loczer/storefront-sdk 0.147.0 → 0.149.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.
- package/dist/BookingPage.d.ts +6 -0
- package/dist/CheckoutPage.d.ts +6 -0
- package/dist/CheckoutPaymentPage.d.ts +6 -0
- package/dist/CheckoutSuccessPage.d.ts +6 -0
- package/dist/ContractSaleDocumentPage.d.ts +116 -0
- package/dist/ErrorPage.d.ts +6 -0
- package/dist/HomePage.d.ts +6 -0
- package/dist/I18nProvider.d.ts +23 -0
- package/dist/NotFoundPage.d.ts +6 -0
- package/dist/PaymentLinkPage.d.ts +40 -0
- package/dist/PaymentLinkSuccessPage.d.ts +40 -0
- package/dist/ProductPage.d.ts +6 -0
- package/dist/StorefrontProvider.d.ts +1119 -0
- package/dist/StorefrontProvider.js +95 -0
- package/dist/accessories.d.ts +42 -0
- package/dist/apiCall.d.ts +7 -0
- package/dist/assets/dev.svg +4 -0
- package/dist/assets/playground-hero-preview.svg +4 -0
- package/dist/assets/whatsapp.svg +4 -0
- package/dist/badge.d.ts +14 -0
- package/dist/bikes.d.ts +107 -0
- package/dist/booking-period-time-slots.d.ts +279 -0
- package/dist/booking-period.d.ts +173 -0
- package/dist/booking.d.ts +384 -0
- package/dist/button.d.ts +16 -0
- package/dist/card.d.ts +18 -0
- package/dist/cart.d.ts +30 -0
- package/dist/cartSummary.d.ts +205 -0
- package/dist/checkoutPaymentDecision.d.ts +48 -0
- package/dist/checkoutPaymentSession.d.ts +65 -0
- package/dist/checkoutSubmit.d.ts +61 -0
- package/dist/checkoutVerifyCoupon.d.ts +45 -0
- package/dist/chunks/node_modules/react-day-picker/dist/esm/components/DayButton-D9KJeDKs.js +10 -0
- package/dist/chunks/pkg/booking-engine/dist/models/LocalizedString--6q77SPQ.js +36 -0
- package/dist/chunks/pkg/booking-engine/dist/models/Price-BlFRDHXV.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-BiDGmurZ.js +85 -0
- package/dist/chunks/pkg/booking-engine/dist/models/types-DLcvzW5b.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js +18 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-D9k8ehGi.js +75 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CnBdp3jk.js +104 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-DYgEGJ5M.js +73 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/money-Dy4b9loa.js +23 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-C9VB-WhU.js +17 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/rich-text-CqXhNDN3.js +15 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-B47MMaoD.js +45 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/pricing-DcnUXaeI.js +36 -0
- package/dist/chunks/pkg/ui/dist/Button-CEl4MEmL.js +44 -0
- package/dist/chunks/pkg/ui/dist/Dialog-COr6fnKd.js +283 -0
- package/dist/chunks/pkg/ui/dist/Drawer/index-BxM7gmh_.js +226 -0
- package/dist/chunks/pkg/ui/dist/Map/MapContent-BqCzk6pD.js +292 -0
- package/dist/chunks/pkg/ui/dist/Map/constants-AiBwXZf6.js +4 -0
- package/dist/chunks/pkg/ui/dist/Map-Cqn7INdm.js +50 -0
- package/dist/chunks/pkg/ui/dist/MorphingModalWizard-D7hc-dDP.js +30 -0
- package/dist/chunks/pkg/ui/dist/ResponsiveDialog-D8YzB_3J.js +154 -0
- package/dist/chunks/pkg/ui/dist/ScrollArea-D9UdixQL.js +67 -0
- package/dist/chunks/pkg/ui/dist/SsrHydratablePortal/index-Ue09qUAi.js +40 -0
- package/dist/chunks/pkg/ui/dist/_virtual/_commonjsHelpers-W3dGiUWw.js +6 -0
- package/dist/chunks/pkg/ui/dist/_virtual/index-C9tmbAjU.js +5 -0
- package/dist/chunks/pkg/ui/dist/_virtual/index2-Cr2SmWQI.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl-8G326Xvx.js +27 -0
- package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl2-CffgHKjA.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.development-DmH-ks33.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.production-BjPWYSZb.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector-BTwk-iW5.js +5 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector.development-DmH-ks33.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector.production-xTL6w2lb.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector2-Cr2SmWQI.js +4 -0
- package/dist/chunks/pkg/ui/dist/lib/body-pointer-events-CyPsDvc9.js +16 -0
- package/dist/chunks/pkg/ui/dist/lib/isAutomationRuntime-Cu2aNI6_.js +5 -0
- package/dist/chunks/pkg/ui/dist/lib/slot-CklkPb7k.js +50 -0
- package/dist/chunks/pkg/ui/dist/lib/useMediaQuery-DhKGnWgn.js +20 -0
- package/dist/chunks/pkg/ui/dist/lib/utils-B6zhukbw.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/csp-provider/CSPContext-9LViUOEN.js +13 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop-dfhPbhun.js +40 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/close/DialogClose-CiEiuP0S.js +41 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/description/DialogDescription-C793yEmX.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup-Ce1MaHNd.js +80 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars-Bt8y0AZk.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes-C1piwkT4.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal-DCoXyUCa.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext-CtWBuvRl.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRoot-DYrthiUT.js +64 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext-D__rrg4-.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot-Dmki7CJG.js +81 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/store/DialogStore-ltMcMpnh.js +69 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/title/DialogTitle-BYe_-O2U.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger-CDsWAaqd.js +56 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewport-CoAyzYQs.js +54 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewportDataAttributes-C_9BMPUj.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdrop-BqcC6xGK.js +45 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdropCssVars-BtzwweRf.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/close/DrawerClose-K9toitLg.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContent-DAER5HEH.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContentDataAttributes-CpDnPAXP.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/description/DrawerDescription-CmzTECJs.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopup-BXOe4Llu.js +241 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupCssVars-Ct685Bcm.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupDataAttributes-BsZri5W4.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/portal/DrawerPortal-BfTFM1p8.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/provider/DrawerProviderContext-euW_U5h8.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRoot-DuO16Hl3.js +148 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRootContext-Cyaf-7qv.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/useDrawerSnapPoints-CVbKGPMi.js +105 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/title/DrawerTitle-DPojAJP6.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/trigger/DrawerTrigger-BKWBskBD.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewport-BA1WyQud.js +593 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewportContext-xR35hPcl.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager-B-v_gyUI.js +264 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal-6JOqLjHM.js +129 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore-D8M2d4pp.js +74 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree-BJGeWpX5.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick-C3V1YAJN.js +68 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss-BzvyAPc1.js +265 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions-BWCpGAad.js +48 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole-DfMbRaU2.js +76 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext-Cczfd0Dg.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite-keZdnJD9.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants-B-72x4uQ.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute-DQjmnndx.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter-156NFNq-.js +17 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element-7_beKIST.js +29 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus-BoxfANJQ.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event-BJf3Eroa.js +29 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext-AtxQDZdS.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers-im_zgP9x.js +80 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes-BbaFB8UD.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable-BUkXLKOZ.js +140 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/clamp--orC6ThW.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/composite-Bl9mbNwg.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext-hBCEpdkp.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/constants-DrTrmCr_.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails-WO93mcXE.js +26 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext-DHsnfCgz.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/getStateAttributesProps-rQvCQegA.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/reason-parts-DKJ_-O8k.js +13 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/shadowDom-DTBRPFkJ.js +31 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/stateAttributesMapping-B17IMmGk.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/use-button/useButton-CW30d95j.js +113 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useAnimationsFinished-B8I0rTuq.js +54 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useBaseUiId-BhlhP3ZP.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useOpenChangeComplete-Doxu2x_W.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useRenderElement-CktkgllD.js +71 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useTransitionStatus-D7bNijs9.js +42 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useValueChanged-DNmBrXYR.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/merge-props/mergeProps-taN4tP1i.js +102 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/constants-BMXX3oM8.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner-z0cNScNF.js +31 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot-Cw_gyhhI.js +166 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootContext-CQVTL1yg.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootCssVars-UMzfvqzf.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootDataAttributes-DYAeFs1E.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/stateAttributes-e5OzHsp_.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbar-DGyLPhKe.js +132 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarContext-Cn2tB9KX.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarCssVars-CVtQQfDD.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes-CcesYZ2Y.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/thumb/ScrollAreaThumb-08Mmzry4.js +50 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/utils/getOffset-D1-wFs-x.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport-CadjBxEp.js +201 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportContext-O9cXognJ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportCssVars-Dttwkr3N.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/FocusGuard-BkeVKSkX.js +24 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop-CZUtC9bU.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/getElementAtPoint-CR7qt9tE.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping-DVUopj_P.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils-DSjS8g02.js +95 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap-RUMkUgDU.js +64 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/store-Bz3dUxiI.js +52 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveClassName-D2IlO_XQ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveRef-Csx4Vghu.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveStyle-MTmYMe0U.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollEdges-DZboWB_y.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollable-D1F6TRF5.js +34 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/styles-BrbvX9PD.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled-CJZi1M5y.js +24 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType-CW--rAaF.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useSwipeDismiss-ZcIND0Ss.js +530 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/addEventListener-DnnRp2CB.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/detectBrowser-CntSiJrj.js +43 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/empty-C3-x9M2q.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/error-KZbzusBH.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/formatErrorMessage-BJfWDcMI.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/getReactElementRef-CB7CT3xn.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/inertValue-C-Qws-Vy.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeCleanups-vij8IUwv.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeObjects-DodLCs_x.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/owner-CfKP3-Rk.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/reactVersion-oVIlFc4q.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/safeReact-C4X27Y1Z.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/ReactStore-CfPgecP0.js +145 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/Store-CRAQANWM.js +86 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/createSelector-SDRl3LYE.js +17 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/useStore-BsRFFm2l.js +21 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useAnimationFrame-C0av1dS7.js +68 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useControlled-BYl9LGEz.js +53 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler-Cu2E1baO.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useId-D8NyJjt3.js +20 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useIsoLayoutEffect-oOMudEAz.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useMergedRefs-p9UujHQn.js +69 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnFirstRender-IB3XPZ7h.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnMount-DjNCK2YI.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useRefWithInit-BObJZm23.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useScrollLock-kV6bksFe.js +125 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useStableCallback-DyHa2qMJ.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useTimeout-BPZmm8PE.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useValueAsRef-CCfi_eqC.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/visuallyHidden-CQbAGmCA.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/warn-eK9kQMmi.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js +71 -0
- package/dist/chunks/pkg/ui/dist/node_modules/class-variance-authority/dist/index-DEupJ0QT.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/clsx/dist/clsx-DPl_DXM-.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id-DunDwGdX.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext-BWutRI4l.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LazyContext-yIDUGdfR.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext-C3EPauom.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext-BWutRI4l.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node-BDwaGtmx.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash-h54_qXon.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props-DZcjZ2yt.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/Icon-BNiQfVqr.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-5_J8fxOF.js +21 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/defaultAttributes-C1BTxN61.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-asE1l_Qw.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/x-Cdi8GS7U.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils-nzQUBs6v.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/mapbox-gl/dist/mapbox-gl-BWrsjoOR.js +35536 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion-Cc0tLlFf.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform-DY2FRn5v.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hex-BN1laQGd.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-CflwzkVO.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/index-D1GFyA5S.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/rgba-BIy7YqPw.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/utils-IDKsSWKt.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/filter-AXB6Rjjs.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/index-Z9QmZfw0.js +51 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/mask-AXB6Rjjs.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/int-CwcJvGhp.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/index-CWjqASeJ.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/units-DNXf-Ngr.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex-DKss3XP5.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex-Dw3Xm45S.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish-B7IIKRzS.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize-DYfJ2EAL.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex-CjD_eR3p.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/clamp-BMGeQDyI.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/errors-CBdvTtJZ.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/format-error-message-BwUIYuzJ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/noop-BGdtcOlD.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/tailwind-merge/dist/bundle-mjs-2e7LjAK7.js +2763 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development-PEz9rQUM.js +58 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production-1dR2oH6_.js +57 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development-Bjtnv0KW.js +58 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production-BvTUQFJj.js +46 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/index-g__WfpEy.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/with-selector-DFIcfxeX.js +10 -0
- package/dist/chunks/pkg/ui/dist/static/strings-lR4Uv4ze.js +4 -0
- package/dist/components/AboutSection/index.d.ts +7 -0
- package/dist/components/AboutSection/index.js +94 -0
- package/dist/components/AddressAutocompleteInput/index.d.ts +17 -0
- package/dist/components/AddressAutocompleteInput/index.js +143 -0
- package/dist/components/BikeProductCard/index.d.ts +17 -0
- package/dist/components/BikeProductCard/index.js +78 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +2 -0
- package/dist/components/BookingBikeVariantDialog/index.js +216 -0
- package/dist/components/BookingFlowSteps/index.d.ts +9 -0
- package/dist/components/BookingFlowSteps/index.js +59 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.js +16 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +333 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +112 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.js +7 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +156 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +130 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.js +302 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +368 -0
- package/dist/components/BookingPeriodSelector/index.d.ts +12 -0
- package/dist/components/BookingPeriodSelector/index.js +27 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +241 -0
- package/dist/components/ContactSection/index.d.ts +6 -0
- package/dist/components/ContactSection/index.js +228 -0
- package/dist/components/ContractSaleDocument/AcceptanceModal.js +36 -0
- package/dist/components/ContractSaleDocument/Invoice.js +402 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +180 -0
- package/dist/components/ContractSaleDocument/Page.js +14 -0
- package/dist/components/ContractSaleDocument/PageFooter.js +26 -0
- package/dist/components/ContractSaleDocument/PageHeader.js +26 -0
- package/dist/components/ContractSaleDocument/SignatureModal.js +131 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +46 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.js +59 -0
- package/dist/components/ContractSaleDocument/index.d.ts +3 -0
- package/dist/components/ContractSaleDocument/index.js +4 -0
- package/dist/components/ContractSaleDocument/language.js +36 -0
- package/dist/components/DelayedReveal/index.d.ts +15 -0
- package/dist/components/DelayedReveal/index.js +61 -0
- package/dist/components/DeliveryAddressSelector/index.d.ts +23 -0
- package/dist/components/DeliveryAddressSelector/index.js +95 -0
- package/dist/components/Footer/BusinessHours.js +125 -0
- package/dist/components/Footer/businessHoursUtils.js +27 -0
- package/dist/components/Footer/index.d.ts +11 -0
- package/dist/components/Footer/index.js +127 -0
- package/dist/components/FulfillmentSection/index.d.ts +23 -0
- package/dist/components/FulfillmentSection/index.js +107 -0
- package/dist/components/Header/index.d.ts +10 -0
- package/dist/components/Header/index.js +119 -0
- package/dist/components/Layout/index.d.ts +7 -0
- package/dist/components/Layout/index.js +47 -0
- package/dist/components/Map/createMarkerElement.js +17 -0
- package/dist/components/Map/index.d.ts +3 -0
- package/dist/components/Map/index.js +6 -0
- package/dist/components/PlatformFooter/index.d.ts +2 -0
- package/dist/components/PlatformFooter/index.js +51 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts +2 -0
- package/dist/components/PlaygroundDevFloatingButton/index.js +216 -0
- package/dist/components/PoweredByLoczerBadge/index.d.ts +9 -0
- package/dist/components/PoweredByLoczerBadge/index.js +73 -0
- package/dist/components/ProductPriceBadge/index.d.ts +9 -0
- package/dist/components/ProductPriceBadge/index.js +229 -0
- package/dist/components/ProductWarningNotice/index.d.ts +7 -0
- package/dist/components/ProductWarningNotice/index.js +22 -0
- package/dist/components/StepSectionTitle/index.d.ts +8 -0
- package/dist/components/StepSectionTitle/index.js +6 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +25 -0
- package/dist/components/StorefrontCartPanel/index.js +131 -0
- package/dist/components/StorefrontPopupMessages/index.d.ts +7 -0
- package/dist/components/StorefrontPopupMessages/index.js +172 -0
- package/dist/components/TestimonialsSection/index.d.ts +2 -0
- package/dist/components/TestimonialsSection/index.js +349 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.js +24 -0
- package/dist/components/WhatsAppFloatingButton/index.d.ts +4 -0
- package/dist/components/WhatsAppFloatingButton/index.js +6 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js +74 -0
- package/dist/components/payment/MollieCardFieldsForm.js +135 -0
- package/dist/components/payment/StripeCardFieldsForm.js +100 -0
- package/dist/components/payment/index.d.ts +3 -0
- package/dist/components/payment/index.js +6 -0
- package/dist/config.d.ts +19 -0
- package/dist/contactForm.d.ts +22 -0
- package/dist/contractSaleDocument.d.ts +242 -0
- package/dist/contractSaleDocumentApi.d.ts +481 -0
- package/dist/data/accessories.d.ts +30 -0
- package/dist/data/accessories.js +145 -0
- package/dist/data/bikes.d.ts +101 -0
- package/dist/data/bikes.js +418 -0
- package/dist/data/config.d.ts +15 -0
- package/dist/data/config.js +28 -0
- package/dist/en.d.ts +369 -0
- package/dist/form.d.ts +44 -0
- package/dist/fr.d.ts +369 -0
- package/dist/i18n/I18nProvider.d.ts +16 -0
- package/dist/i18n/I18nProvider.js +120 -0
- package/dist/i18n/en.d.ts +368 -0
- package/dist/i18n/en.js +370 -0
- package/dist/i18n/fr.d.ts +368 -0
- package/dist/i18n/fr.js +370 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +331 -0
- package/dist/input.d.ts +5 -0
- package/dist/isAutomationRuntime.d.ts +3 -0
- package/dist/label.d.ts +7 -0
- package/dist/lib/apiCall.d.ts +4 -0
- package/dist/lib/apiCall.js +6 -0
- package/dist/lib/booking-period-time-slots.d.ts +61 -0
- package/dist/lib/booking-period-time-slots.js +273 -0
- package/dist/lib/booking-period.d.ts +147 -0
- package/dist/lib/booking-period.js +349 -0
- package/dist/lib/booking.d.ts +39 -0
- package/dist/lib/booking.js +159 -0
- package/dist/lib/cart.d.ts +25 -0
- package/dist/lib/cart.js +87 -0
- package/dist/lib/cartSummary.d.ts +31 -0
- package/dist/lib/cartSummary.js +41 -0
- package/dist/lib/checkoutPaymentDecision.d.ts +40 -0
- package/dist/lib/checkoutPaymentDecision.js +33 -0
- package/dist/lib/checkoutPaymentSession.d.ts +55 -0
- package/dist/lib/checkoutPaymentSession.js +44 -0
- package/dist/lib/checkoutSubmit.d.ts +53 -0
- package/dist/lib/checkoutSubmit.js +59 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts +39 -0
- package/dist/lib/checkoutVerifyCoupon.js +32 -0
- package/dist/lib/contactForm.d.ts +16 -0
- package/dist/lib/contactForm.js +16 -0
- package/dist/lib/contractSaleDocument.d.ts +216 -0
- package/dist/lib/contractSaleDocument.js +70 -0
- package/dist/lib/contractSaleDocumentApi.d.ts +449 -0
- package/dist/lib/contractSaleDocumentApi.js +77 -0
- package/dist/lib/isAutomationRuntime.d.ts +2 -0
- package/dist/lib/isAutomationRuntime.js +5 -0
- package/dist/lib/mollieComponentStyles.d.ts +2 -0
- package/dist/lib/mollieComponentStyles.js +31 -0
- package/dist/lib/playgroundDevSettings.d.ts +11 -0
- package/dist/lib/playgroundDevSettings.js +61 -0
- package/dist/lib/pricing.d.ts +14 -0
- package/dist/lib/pricing.js +50 -0
- package/dist/lib/productImageStyles.d.ts +9 -0
- package/dist/lib/productImageStyles.js +8 -0
- package/dist/lib/productVariants.d.ts +13 -0
- package/dist/lib/productVariants.js +26 -0
- package/dist/lib/products.d.ts +37 -0
- package/dist/lib/products.js +58 -0
- package/dist/lib/richAddress.d.ts +21 -0
- package/dist/lib/richAddress.js +24 -0
- package/dist/lib/securePaymentLink.d.ts +105 -0
- package/dist/lib/securePaymentLink.js +79 -0
- package/dist/lib/storefrontAvailability.d.ts +82 -0
- package/dist/lib/storefrontAvailability.js +54 -0
- package/dist/lib/storefrontImage.d.ts +9 -0
- package/dist/lib/storefrontImage.js +16 -0
- package/dist/lib/storefrontProducts.d.ts +369 -0
- package/dist/lib/storefrontProducts.js +89 -0
- package/dist/lib/storefrontReviews.d.ts +72 -0
- package/dist/lib/storefrontReviews.js +36 -0
- package/dist/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +27 -0
- package/dist/lib/whatsapp.d.ts +17 -0
- package/dist/lib/whatsapp.js +60 -0
- package/dist/localization.d.ts +13 -0
- package/dist/localization.js +16 -0
- package/dist/mollieComponentStyles.d.ts +3 -0
- package/dist/pages/BookingPage.d.ts +2 -0
- package/dist/pages/BookingPage.js +535 -0
- package/dist/pages/CheckoutPage.d.ts +2 -0
- package/dist/pages/CheckoutPage.js +428 -0
- package/dist/pages/CheckoutPaymentPage.d.ts +2 -0
- package/dist/pages/CheckoutPaymentPage.js +243 -0
- package/dist/pages/CheckoutSuccessPage.d.ts +2 -0
- package/dist/pages/CheckoutSuccessPage.js +24 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts +109 -0
- package/dist/pages/ContractSaleDocumentPage.js +342 -0
- package/dist/pages/ErrorPage.d.ts +2 -0
- package/dist/pages/ErrorPage.js +47 -0
- package/dist/pages/HomePage.d.ts +2 -0
- package/dist/pages/HomePage.js +501 -0
- package/dist/pages/NotFoundPage.d.ts +2 -0
- package/dist/pages/NotFoundPage.js +28 -0
- package/dist/pages/PaymentLinkPage.d.ts +34 -0
- package/dist/pages/PaymentLinkPage.js +258 -0
- package/dist/pages/PaymentLinkSuccessPage.d.ts +34 -0
- package/dist/pages/PaymentLinkSuccessPage.js +140 -0
- package/dist/pages/ProductPage.d.ts +2 -0
- package/dist/pages/ProductPage.js +255 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.js +72 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +68 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +90 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +41 -0
- package/dist/pages/checkout/types.js +10 -0
- package/dist/playgroundDevSettings.d.ts +19 -0
- package/dist/pricing.d.ts +35 -0
- package/dist/productImageStyles.d.ts +25 -0
- package/dist/productVariants.d.ts +16 -0
- package/dist/products.d.ts +224 -0
- package/dist/radio-group.d.ts +14 -0
- package/dist/richAddress.d.ts +24 -0
- package/dist/routes.d.ts +6 -0
- package/dist/routes.js +32 -0
- package/dist/securePaymentLink.d.ts +125 -0
- package/dist/select.d.ts +41 -0
- package/dist/slot.d.ts +15 -0
- package/dist/static/strings.js +4 -0
- package/dist/storefront.css +1 -0
- package/dist/storefrontAvailability.d.ts +103 -0
- package/dist/storefrontImage.d.ts +14 -0
- package/dist/storefrontProducts.d.ts +396 -0
- package/dist/storefrontReviews.d.ts +84 -0
- package/dist/storefrontSchemas.d.ts +588 -0
- package/dist/storefrontSchemas.js +132 -0
- package/dist/textarea.d.ts +5 -0
- package/dist/tooltip.d.ts +43 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.js +39 -0
- package/dist/ui/button.d.ts +12 -0
- package/dist/ui/button.js +44 -0
- package/dist/ui/card.d.ts +10 -0
- package/dist/ui/card.js +93 -0
- package/dist/ui/form.d.ts +25 -0
- package/dist/ui/form.js +135 -0
- package/dist/ui/input.d.ts +4 -0
- package/dist/ui/input.js +24 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.js +18 -0
- package/dist/ui/radio-group.d.ts +10 -0
- package/dist/ui/radio-group.js +55 -0
- package/dist/ui/select.d.ts +22 -0
- package/dist/ui/select.js +255 -0
- package/dist/ui/slot.d.ts +11 -0
- package/dist/ui/slot.js +33 -0
- package/dist/ui/textarea.d.ts +4 -0
- package/dist/ui/textarea.js +20 -0
- package/dist/ui/tooltip.d.ts +20 -0
- package/dist/ui/tooltip.js +73 -0
- package/dist/utils.d.ts +23 -0
- package/dist/whatsapp.d.ts +318 -0
- package/package.json +9 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "@rpcbase/ui";
|
|
3
|
+
import { Phone as N, Mail as _, MapPin as v, Clock as h } from "lucide-react";
|
|
4
|
+
import { useTranslation as y } from "react-i18next";
|
|
5
|
+
import w from "../../assets/whatsapp.svg";
|
|
6
|
+
import { DelayedReveal as p, DelayedPlaceholder as f } from "../DelayedReveal/index.js";
|
|
7
|
+
import { BusinessHours as b } from "./BusinessHours.js";
|
|
8
|
+
const o = "group inline-flex gap-2 text-sm font-normal text-slate-600 decoration-current underline-offset-4 transition-colors hover:text-slate-800 hover:underline", c = "mt-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center text-current transition-colors", k = (a) => (Math.trunc(a) % 7 + 7) % 7, H = (a) => Array.isArray(a) ? a.map((n) => ({
|
|
9
|
+
name: n.name,
|
|
10
|
+
startDate: n.startDate,
|
|
11
|
+
endDate: n.endDate,
|
|
12
|
+
openingHours: n.openingHours.map((s) => ({
|
|
13
|
+
day: k(s.day),
|
|
14
|
+
openingSlots: s.openingSlots.map((i) => ({
|
|
15
|
+
start: i.start,
|
|
16
|
+
end: i.end
|
|
17
|
+
}))
|
|
18
|
+
}))
|
|
19
|
+
})) : [], D = (a) => Array.isArray(a) ? a.map((n) => ({
|
|
20
|
+
date: n.date,
|
|
21
|
+
openingSlots: n.openingSlots.map((s) => ({
|
|
22
|
+
start: s.start,
|
|
23
|
+
end: s.end
|
|
24
|
+
}))
|
|
25
|
+
})) : [];
|
|
26
|
+
function P({ preset: a, whatsappHref: n, openingHours: s, openingHoursOverrides: i }) {
|
|
27
|
+
const { t } = y(), u = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(a.address)}`, m = H(s), g = D(i), x = m.length > 0;
|
|
28
|
+
return /* @__PURE__ */ e("footer", { className: "border-t bg-white", children: /* @__PURE__ */ r("div", { className: "mx-auto grid max-w-7xl gap-8 px-4 py-10 sm:px-6 md:grid-cols-3", children: [
|
|
29
|
+
/* @__PURE__ */ r("div", { className: "space-y-2", children: [
|
|
30
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t("footer_brand_title") }) }),
|
|
31
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("footer_brand_description") }) })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ r("div", { className: "space-y-2", children: [
|
|
34
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t("footer_contact_title") }) }),
|
|
35
|
+
/* @__PURE__ */ r("div", { className: "grid gap-2", children: [
|
|
36
|
+
n ? /* @__PURE__ */ r(
|
|
37
|
+
"a",
|
|
38
|
+
{
|
|
39
|
+
className: l(o, "items-center"),
|
|
40
|
+
href: n,
|
|
41
|
+
target: "_blank",
|
|
42
|
+
rel: "noreferrer",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ e("span", { className: l(c, "h-5 w-5"), children: /* @__PURE__ */ e("img", { src: w, className: "h-5 w-5 shrink-0", alt: "", "aria-hidden": "true" }) }),
|
|
45
|
+
/* @__PURE__ */ e("span", { children: t("footer_whatsapp_link") })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
) : null,
|
|
49
|
+
/* @__PURE__ */ r(
|
|
50
|
+
"a",
|
|
51
|
+
{
|
|
52
|
+
className: l(o, "items-center"),
|
|
53
|
+
href: a.phone_href,
|
|
54
|
+
"aria-label": a.phone_display,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ e("span", { className: c, children: /* @__PURE__ */ e(N, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
p,
|
|
59
|
+
{
|
|
60
|
+
value: a.phone_display,
|
|
61
|
+
reserveWidth: "11.5rem",
|
|
62
|
+
fallback: /* @__PURE__ */ e(f, { value: a.phone_display, className: "bg-slate-200" }),
|
|
63
|
+
children: (d) => /* @__PURE__ */ e("span", { children: d })
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ r(
|
|
70
|
+
"a",
|
|
71
|
+
{
|
|
72
|
+
className: l(o, "items-center"),
|
|
73
|
+
href: `mailto:${a.email}`,
|
|
74
|
+
"aria-label": a.email,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ e("span", { className: c, children: /* @__PURE__ */ e(_, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
77
|
+
/* @__PURE__ */ e(
|
|
78
|
+
p,
|
|
79
|
+
{
|
|
80
|
+
value: a.email,
|
|
81
|
+
reserveWidth: "11.5rem",
|
|
82
|
+
fallback: /* @__PURE__ */ e(f, { value: a.email, className: "bg-slate-200" }),
|
|
83
|
+
children: (d) => /* @__PURE__ */ e("span", { children: d })
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ r(
|
|
90
|
+
"a",
|
|
91
|
+
{
|
|
92
|
+
className: l(o, "items-start"),
|
|
93
|
+
href: u,
|
|
94
|
+
target: "_blank",
|
|
95
|
+
rel: "noreferrer",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ e("span", { className: c, children: /* @__PURE__ */ e(v, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
98
|
+
/* @__PURE__ */ e("span", { children: a.address })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ r("div", { className: "space-y-2", children: [
|
|
105
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t("footer_hours_title") }) }),
|
|
106
|
+
x ? /* @__PURE__ */ e(
|
|
107
|
+
b,
|
|
108
|
+
{
|
|
109
|
+
openingHours: m,
|
|
110
|
+
openingHoursOverrides: g
|
|
111
|
+
}
|
|
112
|
+
) : /* @__PURE__ */ r("div", { className: "grid gap-1 text-sm text-slate-700", children: [
|
|
113
|
+
/* @__PURE__ */ r("p", { className: "inline-flex items-center gap-2", children: [
|
|
114
|
+
/* @__PURE__ */ e(h, { className: "h-4 w-4 text-slate-400", "aria-hidden": "true" }),
|
|
115
|
+
/* @__PURE__ */ e("span", { children: t("footer_hours_week") })
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ r("p", { className: "inline-flex items-center gap-2", children: [
|
|
118
|
+
/* @__PURE__ */ e(h, { className: "h-4 w-4 text-slate-400", "aria-hidden": "true" }),
|
|
119
|
+
/* @__PURE__ */ e("span", { children: t("footer_hours_weekend") })
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
] })
|
|
123
|
+
] }) });
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
P as Footer
|
|
127
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BookingFulfillment } from '../../lib/booking';
|
|
2
|
+
import { AddressAutocompleteLocationRestriction } from '../AddressAutocompleteInput';
|
|
3
|
+
type FulfillmentSectionProps = {
|
|
4
|
+
value: BookingFulfillment;
|
|
5
|
+
onValueChange: (value: BookingFulfillment) => void;
|
|
6
|
+
pickupAddress?: string;
|
|
7
|
+
deliveryEnabled: boolean;
|
|
8
|
+
deliveryDisabledReason?: string;
|
|
9
|
+
startAddress: string;
|
|
10
|
+
onStartAddressChange: (value: string) => void;
|
|
11
|
+
endAddress: string;
|
|
12
|
+
onEndAddressChange: (value: string) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
showPickupAddressWhenPickupOnly?: boolean;
|
|
15
|
+
testIdPrefix?: string;
|
|
16
|
+
googleMapsApiKey?: string;
|
|
17
|
+
deliveryAddressLocationRestriction?: AddressAutocompleteLocationRestriction;
|
|
18
|
+
deliveryAddressAllowedTypes?: Iterable<string>;
|
|
19
|
+
showDeliveryAddressSelector?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function FulfillmentSection({ value, onValueChange, pickupAddress, deliveryEnabled, deliveryDisabledReason, startAddress, onStartAddressChange, endAddress, onEndAddressChange, className, showPickupAddressWhenPickupOnly, testIdPrefix, googleMapsApiKey, deliveryAddressLocationRestriction, deliveryAddressAllowedTypes, showDeliveryAddressSelector, }: FulfillmentSectionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "@rpcbase/ui";
|
|
3
|
+
import { MapPin as A, Store as $, Truck as C } from "lucide-react";
|
|
4
|
+
import { useTranslation as D } from "react-i18next";
|
|
5
|
+
import { DeliveryAddressSelector as S } from "../DeliveryAddressSelector/index.js";
|
|
6
|
+
import { RadioGroup as T, RadioGroupItem as m } from "../../ui/radio-group.js";
|
|
7
|
+
function V({
|
|
8
|
+
value: p,
|
|
9
|
+
onValueChange: u,
|
|
10
|
+
pickupAddress: h,
|
|
11
|
+
deliveryEnabled: t,
|
|
12
|
+
deliveryDisabledReason: x,
|
|
13
|
+
startAddress: g,
|
|
14
|
+
onStartAddressChange: b,
|
|
15
|
+
endAddress: f,
|
|
16
|
+
onEndAddressChange: k,
|
|
17
|
+
className: o,
|
|
18
|
+
showPickupAddressWhenPickupOnly: N = !0,
|
|
19
|
+
testIdPrefix: l = "storefront-fulfillment",
|
|
20
|
+
googleMapsApiKey: v,
|
|
21
|
+
deliveryAddressLocationRestriction: y,
|
|
22
|
+
deliveryAddressAllowedTypes: w,
|
|
23
|
+
showDeliveryAddressSelector: _ = !0
|
|
24
|
+
}) {
|
|
25
|
+
const { t: s } = D(), r = h?.trim() ?? "", d = x?.trim() ?? "", R = t || d.length > 0, i = p === "delivery" && t ? "delivery" : "pickup";
|
|
26
|
+
return R ? /* @__PURE__ */ a("div", { className: n("grid gap-3", o), "data-testid": l, children: [
|
|
27
|
+
/* @__PURE__ */ a(
|
|
28
|
+
T,
|
|
29
|
+
{
|
|
30
|
+
value: i,
|
|
31
|
+
onValueChange: (c) => {
|
|
32
|
+
c === "delivery" && !t || u(c === "delivery" ? "delivery" : "pickup");
|
|
33
|
+
},
|
|
34
|
+
className: "grid gap-2",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ a(
|
|
37
|
+
"label",
|
|
38
|
+
{
|
|
39
|
+
className: n(
|
|
40
|
+
"flex items-start gap-3 rounded-xl border p-3 transition",
|
|
41
|
+
i === "pickup" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white"
|
|
42
|
+
),
|
|
43
|
+
"data-testid": `${l}-pickup`,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e(m, { value: "pickup", "aria-label": s("booking_pickup_label"), className: "mt-1" }),
|
|
46
|
+
/* @__PURE__ */ e($, { className: "mt-0.5 h-4 w-4 shrink-0 text-slate-900", "aria-hidden": "true" }),
|
|
47
|
+
/* @__PURE__ */ a("span", { className: "flex flex-1 flex-col gap-0.5", children: [
|
|
48
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-slate-950", children: s("booking_pickup_label") }),
|
|
49
|
+
r ? /* @__PURE__ */ e("span", { className: "text-xs text-slate-600", children: r }) : null
|
|
50
|
+
] })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ a(
|
|
55
|
+
"label",
|
|
56
|
+
{
|
|
57
|
+
className: n(
|
|
58
|
+
"flex items-start gap-3 rounded-xl border p-3 transition",
|
|
59
|
+
t ? i === "delivery" ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white" : "cursor-not-allowed border-slate-200 bg-white opacity-60"
|
|
60
|
+
),
|
|
61
|
+
"aria-disabled": !t,
|
|
62
|
+
"data-testid": `${l}-delivery`,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
m,
|
|
66
|
+
{
|
|
67
|
+
value: "delivery",
|
|
68
|
+
"aria-label": s("booking_delivery_label"),
|
|
69
|
+
className: "mt-1",
|
|
70
|
+
disabled: !t
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ e(C, { className: "mt-0.5 h-4 w-4 shrink-0 text-slate-900", "aria-hidden": "true" }),
|
|
74
|
+
/* @__PURE__ */ a("span", { className: "flex flex-1 flex-col gap-0.5", children: [
|
|
75
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-slate-950", children: s("booking_delivery_label") }),
|
|
76
|
+
/* @__PURE__ */ e("span", { className: "text-xs text-slate-600", children: t ? s("booking_delivery_description") : d })
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
_ ? /* @__PURE__ */ e(
|
|
85
|
+
S,
|
|
86
|
+
{
|
|
87
|
+
open: i === "delivery",
|
|
88
|
+
className: "sm:min-h-[6.75rem]",
|
|
89
|
+
inputClassName: "h-10 bg-white",
|
|
90
|
+
startAddress: g,
|
|
91
|
+
onStartAddressChange: b,
|
|
92
|
+
returnAddress: f,
|
|
93
|
+
onReturnAddressChange: k,
|
|
94
|
+
testIdPrefix: `${l}-delivery-address`,
|
|
95
|
+
googleMapsApiKey: v,
|
|
96
|
+
locationRestriction: y,
|
|
97
|
+
allowedTypes: w
|
|
98
|
+
}
|
|
99
|
+
) : null
|
|
100
|
+
] }) : !N || r.length === 0 ? null : /* @__PURE__ */ a("div", { className: n("flex items-center gap-2 text-xs text-slate-600", o), "data-testid": `${l}-pickup-address`, children: [
|
|
101
|
+
/* @__PURE__ */ e(A, { className: "h-4 w-4 shrink-0 text-slate-900", "aria-hidden": "true" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { children: r })
|
|
103
|
+
] });
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
V as FulfillmentSection
|
|
107
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StorefrontPreset } from '../../data/config';
|
|
2
|
+
import { StorefrontConfiguration } from '../../storefrontSchemas';
|
|
3
|
+
type HeaderProps = {
|
|
4
|
+
preset: StorefrontPreset;
|
|
5
|
+
storefrontConfiguration?: StorefrontConfiguration;
|
|
6
|
+
whatsappHref?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Header({ preset, storefrontConfiguration, whatsappHref }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMediaQuery as T, useThrottledMeasure as H } from "@rpcbase/client";
|
|
3
|
+
import { useParams as W, useLocation as q, Link as r } from "@rpcbase/router";
|
|
4
|
+
import { useScrollHideOnDown as A, cn as _ } from "@rpcbase/ui";
|
|
5
|
+
import { ArrowRight as y, Bike as E, ShoppingCart as F } from "lucide-react";
|
|
6
|
+
import { useTranslation as O } from "react-i18next";
|
|
7
|
+
import { useStorefrontCart as Y } from "../../lib/cart.js";
|
|
8
|
+
import { resolveBookingSearchParamsFromSessionStorage as C } from "../../lib/booking.js";
|
|
9
|
+
import { Badge as G } from "../../ui/badge.js";
|
|
10
|
+
import { Button as g } from "../../ui/button.js";
|
|
11
|
+
import { DelayedReveal as Q, DelayedPlaceholder as V } from "../DelayedReveal/index.js";
|
|
12
|
+
import { buildStorefrontImageUrl as J } from "../../lib/storefrontImage.js";
|
|
13
|
+
import { getLocalizedValue as L } from "../../localization.js";
|
|
14
|
+
const K = 36, $ = (n, s) => {
|
|
15
|
+
const l = n?.trim() ?? "";
|
|
16
|
+
return l ? J(l, s ?? "") : "";
|
|
17
|
+
};
|
|
18
|
+
function de({ preset: n, storefrontConfiguration: s, whatsappHref: l }) {
|
|
19
|
+
const { t, i18n: c } = O(), { storeSlug: m } = W(), B = q(), { itemCount: p } = Y(), u = T("(max-width: 640px)"), [j, P] = H(), x = P?.height ?? K, I = A({
|
|
20
|
+
enabled: u,
|
|
21
|
+
thresholdPx: x
|
|
22
|
+
}), f = u && I ? `translateY(-${x}px)` : "translateY(0)", z = () => {
|
|
23
|
+
const h = c.language.startsWith("fr") ? "en" : "fr";
|
|
24
|
+
c.changeLanguage(h);
|
|
25
|
+
}, i = `/${m ?? ""}`, w = C(
|
|
26
|
+
new URLSearchParams(B.search),
|
|
27
|
+
m
|
|
28
|
+
).toString(), o = w ? `?${w}` : "", b = `${i}/booking${o}`, R = `${i}/checkout${o}`, N = s?.shop.name?.trim() || n.name, v = s?.workspace?.workspaceLanguage, U = L(s?.content?.tagline, c.language, v).trim() || n.tagline, D = L(s?.content?.topBannerMessage, c.language, v).trim() || t("top_bar_message"), k = $(s?.content?.logoWideImageId, m), S = $(s?.content?.logoSquareImageId, m), d = k.length > 0, M = S.length > 0;
|
|
29
|
+
return /* @__PURE__ */ a("div", { className: "sticky top-0 z-30", children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "transition-transform duration-300", style: { transform: f }, children: /* @__PURE__ */ e("div", { ref: j, className: "bg-slate-950 text-white", children: /* @__PURE__ */ a("div", { className: "mx-auto flex max-w-7xl items-center justify-between gap-3 px-4 py-2 text-xs sm:px-6", children: [
|
|
31
|
+
/* @__PURE__ */ e("p", { className: "flex items-center gap-2", children: /* @__PURE__ */ e("span", { children: D }) }),
|
|
32
|
+
/* @__PURE__ */ a("div", { className: "hidden items-center gap-4 sm:flex", children: [
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
"a",
|
|
35
|
+
{
|
|
36
|
+
className: "inline-flex items-center gap-2 rounded-md px-2 py-1 text-white/90 hover:bg-white/10 hover:text-white",
|
|
37
|
+
href: `mailto:${n.email}`,
|
|
38
|
+
"aria-label": n.email,
|
|
39
|
+
children: /* @__PURE__ */ e(
|
|
40
|
+
Q,
|
|
41
|
+
{
|
|
42
|
+
value: n.email,
|
|
43
|
+
reserveWidth: "11.5rem",
|
|
44
|
+
fallback: /* @__PURE__ */ e(V, { value: n.email, className: "bg-white/30" }),
|
|
45
|
+
children: (h) => /* @__PURE__ */ e("span", { children: h })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
l ? /* @__PURE__ */ a(
|
|
51
|
+
"a",
|
|
52
|
+
{
|
|
53
|
+
className: "inline-flex items-center gap-2 rounded-md px-2 py-1 text-white/90 hover:bg-white/10 hover:text-white",
|
|
54
|
+
href: l,
|
|
55
|
+
target: "_blank",
|
|
56
|
+
rel: "noreferrer",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ e("span", { children: t("top_bar_whatsapp") }),
|
|
59
|
+
/* @__PURE__ */ e(y, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
) : null
|
|
63
|
+
] })
|
|
64
|
+
] }) }) }),
|
|
65
|
+
/* @__PURE__ */ e(
|
|
66
|
+
"header",
|
|
67
|
+
{
|
|
68
|
+
className: "sticky top-0 z-30 border-b bg-white/90 backdrop-blur transition-transform duration-300",
|
|
69
|
+
style: { transform: f },
|
|
70
|
+
children: /* @__PURE__ */ a("div", { className: "mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6", children: [
|
|
71
|
+
/* @__PURE__ */ a(r, { to: i, className: "flex min-w-0 items-center gap-3", children: [
|
|
72
|
+
M && !d ? /* @__PURE__ */ e("span", { className: "inline-flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-slate-200 bg-white", children: /* @__PURE__ */ e("img", { src: S, alt: "", className: "h-full w-full object-contain", "aria-hidden": "true" }) }) : /* @__PURE__ */ e("span", { className: _("inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-slate-950 text-white", d && "hidden"), children: /* @__PURE__ */ e(E, { className: "h-5 w-5", "aria-hidden": "true" }) }),
|
|
73
|
+
/* @__PURE__ */ a("span", { className: "flex min-w-0 flex-col leading-tight", children: [
|
|
74
|
+
d ? /* @__PURE__ */ e(
|
|
75
|
+
"img",
|
|
76
|
+
{
|
|
77
|
+
src: k,
|
|
78
|
+
alt: N,
|
|
79
|
+
className: "h-8 max-w-[10rem] object-contain object-left sm:max-w-[14rem]"
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold", children: N }),
|
|
82
|
+
/* @__PURE__ */ e("span", { className: "truncate text-xs text-slate-600", children: U })
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ a("nav", { className: "hidden items-center gap-6 text-sm font-medium text-slate-700 md:flex", children: [
|
|
86
|
+
/* @__PURE__ */ e(r, { className: "hover:text-slate-950", to: `${i}${o}#categories`, children: /* @__PURE__ */ e("span", { children: t("nav_categories") }) }),
|
|
87
|
+
/* @__PURE__ */ e(r, { className: "hover:text-slate-950", to: `${i}${o}#featured`, children: /* @__PURE__ */ e("span", { children: t("nav_featured") }) }),
|
|
88
|
+
/* @__PURE__ */ e(r, { className: "hover:text-slate-950", to: b, children: /* @__PURE__ */ e("span", { children: t("nav_products") }) }),
|
|
89
|
+
/* @__PURE__ */ e(r, { className: "hover:text-slate-950", to: `${i}${o}#contact`, children: /* @__PURE__ */ e("span", { children: t("nav_contact") }) })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
92
|
+
/* @__PURE__ */ e(g, { variant: "outline", size: "sm", className: "hidden sm:inline-flex", onClick: z, children: /* @__PURE__ */ e("span", { children: t("language_toggle") }) }),
|
|
93
|
+
/* @__PURE__ */ e(
|
|
94
|
+
g,
|
|
95
|
+
{
|
|
96
|
+
asChild: !0,
|
|
97
|
+
variant: "outline",
|
|
98
|
+
size: "sm",
|
|
99
|
+
className: _("relative gap-2", p > 0 ? "inline-flex" : "hidden"),
|
|
100
|
+
children: /* @__PURE__ */ a(r, { to: R, children: [
|
|
101
|
+
/* @__PURE__ */ e(F, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { children: t("cart_button") }),
|
|
103
|
+
/* @__PURE__ */ e(G, { className: "absolute -right-2 -top-2 h-5 min-w-5 rounded-full px-1.5 text-[11px]", children: /* @__PURE__ */ e("span", { children: p }) })
|
|
104
|
+
] })
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ e(g, { asChild: !0, size: "sm", className: "gap-2", children: /* @__PURE__ */ a(r, { to: b, children: [
|
|
108
|
+
/* @__PURE__ */ e("span", { children: t("cta_book_now") }),
|
|
109
|
+
/* @__PURE__ */ e(y, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
110
|
+
] }) })
|
|
111
|
+
] })
|
|
112
|
+
] })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] });
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
de as Header
|
|
119
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StorefrontConfiguration } from '../../storefrontSchemas';
|
|
2
|
+
type LayoutProps = {
|
|
3
|
+
storefrontConfiguration?: StorefrontConfiguration;
|
|
4
|
+
};
|
|
5
|
+
export declare function Layout({ storefrontConfiguration }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { RootProvider as h } from "@rpcbase/client";
|
|
4
|
+
import { useParams as u, useLocation as g, Outlet as a } from "@rpcbase/router";
|
|
5
|
+
import { useTranslation as v } from "react-i18next";
|
|
6
|
+
import { Footer as P } from "../Footer/index.js";
|
|
7
|
+
import { Header as x } from "../Header/index.js";
|
|
8
|
+
import { PlatformFooter as H } from "../PlatformFooter/index.js";
|
|
9
|
+
import { PlaygroundDevFloatingButton as S } from "../PlaygroundDevFloatingButton/index.js";
|
|
10
|
+
import { StorefrontPopupMessages as b } from "../StorefrontPopupMessages/index.js";
|
|
11
|
+
import { WhatsAppFloatingButton as w } from "../WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
12
|
+
import "interactjs";
|
|
13
|
+
import { getStorefrontPreset as F } from "../../data/config.js";
|
|
14
|
+
import { StorefrontCartProvider as y } from "../../lib/cart.js";
|
|
15
|
+
import { resolveStorefrontWhatsAppHref as E } from "../../lib/whatsapp.js";
|
|
16
|
+
import { Provider as k } from "../../ui/tooltip.js";
|
|
17
|
+
function G({ storefrontConfiguration: o }) {
|
|
18
|
+
const { storeSlug: i, referenceId: s } = u(), l = g(), { i18n: p } = v();
|
|
19
|
+
f(() => {
|
|
20
|
+
document.documentElement.setAttribute("data-hydrated", "true");
|
|
21
|
+
}, []);
|
|
22
|
+
const t = F(i), r = E({
|
|
23
|
+
preset: t,
|
|
24
|
+
storefrontConfiguration: o,
|
|
25
|
+
language: p.language
|
|
26
|
+
}), n = typeof s == "string" && s.trim().length > 0, m = n && new URLSearchParams(l.search).get("pdf") === "1";
|
|
27
|
+
return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(y, { storeSlug: i ?? "", children: /* @__PURE__ */ e("div", { className: `loczer-storefront flex flex-col bg-background text-foreground ${n && !m ? "h-dvh overflow-hidden" : "min-h-screen"}`, children: n ? /* @__PURE__ */ e("main", { className: `flex-1 ${m ? "bg-white" : "overflow-hidden"}`, children: /* @__PURE__ */ e(a, {}) }) : /* @__PURE__ */ c(d, { children: [
|
|
28
|
+
/* @__PURE__ */ e(x, { preset: t, storefrontConfiguration: o, whatsappHref: r }),
|
|
29
|
+
/* @__PURE__ */ e("main", { className: "flex-1", children: /* @__PURE__ */ e(a, {}) }),
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
P,
|
|
32
|
+
{
|
|
33
|
+
preset: t,
|
|
34
|
+
whatsappHref: r,
|
|
35
|
+
openingHours: o?.bookingEngine.shop.openingHours,
|
|
36
|
+
openingHoursOverrides: o?.bookingEngine.shop.openingHoursOverrides
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ e(H, {}),
|
|
40
|
+
r && o?.content?.showWhatsappFloatingButton !== !1 ? /* @__PURE__ */ e(w, { href: r }) : null,
|
|
41
|
+
/* @__PURE__ */ e(S, {}),
|
|
42
|
+
/* @__PURE__ */ e(b, { storefrontConfiguration: o })
|
|
43
|
+
] }) }) }) }) });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
G as Layout
|
|
47
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const n = () => {
|
|
2
|
+
if (typeof document > "u") return null;
|
|
3
|
+
const t = document.createElement("div");
|
|
4
|
+
t.style.position = "absolute", t.style.top = "0", t.style.left = "0", t.style.willChange = "transform", t.style.width = "41px", t.style.height = "51px", t.style.cursor = "pointer";
|
|
5
|
+
const e = `
|
|
6
|
+
<svg width="41" height="51" viewBox="0 0 41 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<g transform="translate(1.5, 1.5)">
|
|
8
|
+
<path d="M19 0C8.5 0 0 8.5 0 19C0 28.9 19 48 19 48C19 48 38 28.9 38 19C38 8.5 29.5 0 19 0Z" fill="white" stroke="#3b82f6" stroke-width="3"/>
|
|
9
|
+
<image href="/favicon.png" x="9" y="9" height="20" width="20" />
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
12
|
+
`.trim();
|
|
13
|
+
return t.innerHTML = e, t;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as createMarkerElement
|
|
17
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as m } from "react-i18next";
|
|
3
|
+
import { PoweredByLoczerBadge as p } from "../PoweredByLoczerBadge/index.js";
|
|
4
|
+
const l = "https://loczer.com", t = 2025, f = {
|
|
5
|
+
en: {
|
|
6
|
+
terms: "terms-of-use",
|
|
7
|
+
privacy: "privacy-policy"
|
|
8
|
+
},
|
|
9
|
+
fr: {
|
|
10
|
+
terms: "conditions-d-utilisation",
|
|
11
|
+
privacy: "politique-de-confidentialite"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function g() {
|
|
15
|
+
const { t: a, i18n: s } = m(), i = s.language.startsWith("fr") ? "fr" : "en", o = f[i], n = (/* @__PURE__ */ new Date()).getFullYear(), c = n > t ? `${t}—${n}` : String(t);
|
|
16
|
+
return /* @__PURE__ */ e("footer", { className: "border-t border-white/10 bg-slate-950", "data-testid": "loczer-platform-footer", children: /* @__PURE__ */ e("div", { className: "mx-auto max-w-7xl px-4 py-4 sm:px-6", children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
17
|
+
/* @__PURE__ */ e(p, { language: s.language }),
|
|
18
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1 text-xs text-white/60 sm:items-end", children: [
|
|
19
|
+
/* @__PURE__ */ r("span", { className: "whitespace-nowrap", children: [
|
|
20
|
+
"© ",
|
|
21
|
+
c,
|
|
22
|
+
" LOCZER"
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ r("nav", { className: "flex flex-wrap items-center gap-x-4 gap-y-1 sm:justify-end", children: [
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
"a",
|
|
27
|
+
{
|
|
28
|
+
className: "hover:text-white",
|
|
29
|
+
href: `${l}/${o.terms}`,
|
|
30
|
+
target: "_blank",
|
|
31
|
+
rel: "noopener noreferrer",
|
|
32
|
+
children: /* @__PURE__ */ e("span", { children: a("platform_footer_terms") })
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
"a",
|
|
37
|
+
{
|
|
38
|
+
className: "hover:text-white",
|
|
39
|
+
href: `${l}/${o.privacy}`,
|
|
40
|
+
target: "_blank",
|
|
41
|
+
rel: "noopener noreferrer",
|
|
42
|
+
children: /* @__PURE__ */ e("span", { children: a("platform_footer_privacy") })
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] })
|
|
46
|
+
] })
|
|
47
|
+
] }) }) });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
g as PlatformFooter
|
|
51
|
+
};
|