@loczer/storefront-sdk 0.148.0 → 0.150.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/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/assets/dev.svg-jGkd1F38.js +4 -0
- package/dist/chunks/assets/playground-hero-preview.svg-DNbSwXV5.js +4 -0
- package/dist/chunks/assets/whatsapp.svg-grlzka-t.js +4 -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 +44 -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 +84 -0
- package/dist/lib/storefrontAvailability.js +54 -0
- package/dist/lib/storefrontImage.d.ts +10 -0
- package/dist/lib/storefrontImage.js +16 -0
- package/dist/lib/storefrontProducts.d.ts +371 -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 +107 -0
- package/dist/storefrontImage.d.ts +16 -0
- package/dist/storefrontProducts.d.ts +400 -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,428 @@
|
|
|
1
|
+
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useMemo as u, useEffect as E } from "react";
|
|
3
|
+
import { toast as Z } from "@rpcbase/client";
|
|
4
|
+
import { useForm as Ye, zodResolver as et } from "@rpcbase/form";
|
|
5
|
+
import { useParams as tt, useSearchParams as ot, useNavigate as nt, Link as be } from "@rpcbase/router";
|
|
6
|
+
import { ArrowLeft as ke } from "lucide-react";
|
|
7
|
+
import { useTranslation as at } from "react-i18next";
|
|
8
|
+
import { apiPost as F } from "../lib/apiCall.js";
|
|
9
|
+
import { ROUTE as rt, responseSchema as st } from "../lib/checkoutPaymentDecision.js";
|
|
10
|
+
import { ROUTE as it, responseSchema as lt } from "../lib/checkoutVerifyCoupon.js";
|
|
11
|
+
import { ROUTE as ct, responseSchema as ut } from "../lib/checkoutSubmit.js";
|
|
12
|
+
import { ROUTE as dt, responseSchema as mt, buildStorefrontAvailabilityKey as Ce, getStorefrontAvailabilityIssue as pt } from "../lib/storefrontAvailability.js";
|
|
13
|
+
import { resolveBookingSearchParamsFromSessionStorage as ht, getBookingParamsFromSearch as ft, getBookingDurationLabel as gt, getBookingDurationMinutes as yt, applyBookingParamsToSearch as ve, writeBookingSearchParamsToSessionStorage as Se } from "../lib/booking.js";
|
|
14
|
+
import { buildStorefrontCartSummary as _t } from "../lib/cartSummary.js";
|
|
15
|
+
import { useStorefrontCart as bt } from "../lib/cart.js";
|
|
16
|
+
import { useStorefront as kt, useStorefrontProducts as Ct } from "../StorefrontProvider.js";
|
|
17
|
+
import { BookingFlowSteps as vt } from "../components/BookingFlowSteps/index.js";
|
|
18
|
+
import { Button as Me } from "../ui/button.js";
|
|
19
|
+
import { CheckoutDetailsCard as St } from "./checkout/components/CheckoutDetailsCard.js";
|
|
20
|
+
import { CheckoutCouponCard as Mt } from "./checkout/components/CheckoutCouponCard.js";
|
|
21
|
+
import { CheckoutPaymentSummaryCard as xt } from "./checkout/components/CheckoutPaymentSummaryCard.js";
|
|
22
|
+
import { CheckoutSummaryColumn as Pt } from "./checkout/components/CheckoutSummaryColumn.js";
|
|
23
|
+
import { FulfillmentSection as Tt } from "../components/FulfillmentSection/index.js";
|
|
24
|
+
import { checkoutFormSchema as At } from "./checkout/types.js";
|
|
25
|
+
const xe = 0.2, Dt = (o) => o <= 0 ? 1 : Math.max(1, Math.ceil(o / 1440)), _ = (o, r, p) => {
|
|
26
|
+
try {
|
|
27
|
+
return new Intl.NumberFormat(p, {
|
|
28
|
+
style: "currency",
|
|
29
|
+
currency: r.toUpperCase()
|
|
30
|
+
}).format(o / 100);
|
|
31
|
+
} catch {
|
|
32
|
+
return `${(o / 100).toFixed(2)} ${r.toUpperCase()}`;
|
|
33
|
+
}
|
|
34
|
+
}, Pe = (o, r) => {
|
|
35
|
+
try {
|
|
36
|
+
return new Intl.NumberFormat(r, {
|
|
37
|
+
style: "percent",
|
|
38
|
+
minimumFractionDigits: 0,
|
|
39
|
+
maximumFractionDigits: 2
|
|
40
|
+
}).format(o);
|
|
41
|
+
} catch {
|
|
42
|
+
return `${Math.round(o * 100)}%`;
|
|
43
|
+
}
|
|
44
|
+
}, wt = (o, r, p) => {
|
|
45
|
+
const S = {
|
|
46
|
+
dateStyle: "medium",
|
|
47
|
+
timeStyle: "short"
|
|
48
|
+
};
|
|
49
|
+
if (p)
|
|
50
|
+
try {
|
|
51
|
+
return new Intl.DateTimeFormat(r, { ...S, timeZone: p }).format(o);
|
|
52
|
+
} catch {
|
|
53
|
+
}
|
|
54
|
+
return new Intl.DateTimeFormat(r, S).format(o);
|
|
55
|
+
};
|
|
56
|
+
function to() {
|
|
57
|
+
const { t: o, i18n: r } = at(), { storefrontConfiguration: p } = kt(), S = p.workspace?.workspaceLanguage, { bikes: G, accessories: J } = Ct(), { storeSlug: s } = tt(), [M, Te] = ot(), Ae = nt(), { items: X, itemCount: De, setQuantity: we, removeItem: Ie, clear: Le } = bt(), [U, Y] = c(!1), [l, T] = c(null), [ee, $] = c(!1), [te, A] = c(null), oe = M.get("coupon") ?? M.get("code") ?? "", [ne, B] = c(oe), [ae, re] = c(oe.trim()), [f, x] = c(null), [Ne, D] = c(null), [se, O] = c(!1), [Re, b] = c(null), [ie, k] = c(null), [V, le] = c(!1), ce = u(
|
|
58
|
+
() => ht(M, s),
|
|
59
|
+
[M, s]
|
|
60
|
+
), w = p.settings.fulfillmentModes.includes("delivery"), ue = p.settings.deliveryDisabledReason.trim(), Ee = w || ue.length > 0, Fe = p.shop.address?.trim() ?? "", t = u(() => {
|
|
61
|
+
const e = ft(ce);
|
|
62
|
+
return e.fulfillment === "delivery" && !w ? { ...e, fulfillment: "pickup" } : e;
|
|
63
|
+
}, [ce, w]), Ue = u(() => gt(t), [t]), de = u(() => yt(t), [t]), me = u(() => Dt(de), [de]), d = u(
|
|
64
|
+
() => _t({
|
|
65
|
+
items: X,
|
|
66
|
+
language: r.language,
|
|
67
|
+
fallbackLanguage: S,
|
|
68
|
+
products: { bikes: G, accessories: J },
|
|
69
|
+
estimatedDays: me
|
|
70
|
+
}),
|
|
71
|
+
[J, G, me, r.language, X, S]
|
|
72
|
+
), q = u(
|
|
73
|
+
() => d.lines.map((e) => ({
|
|
74
|
+
productId: e.checkoutProductId,
|
|
75
|
+
productVariantId: e.productVariantId,
|
|
76
|
+
quantity: e.quantity
|
|
77
|
+
})),
|
|
78
|
+
[d.lines]
|
|
79
|
+
), [pe, I] = c([]), [K, z] = c(!1);
|
|
80
|
+
E(() => {
|
|
81
|
+
if (!s || q.length === 0) {
|
|
82
|
+
I([]), z(!1);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
let e = !1;
|
|
86
|
+
return z(!0), I([]), (async () => {
|
|
87
|
+
try {
|
|
88
|
+
const i = await F(
|
|
89
|
+
dt,
|
|
90
|
+
{
|
|
91
|
+
storeSlug: s,
|
|
92
|
+
schedule: {
|
|
93
|
+
startDate: t.start_date,
|
|
94
|
+
endDate: t.end_date,
|
|
95
|
+
startTime: t.start_time,
|
|
96
|
+
endTime: t.end_time
|
|
97
|
+
},
|
|
98
|
+
products: q
|
|
99
|
+
}
|
|
100
|
+
), a = mt.parse(i);
|
|
101
|
+
if (e) return;
|
|
102
|
+
I(a.success ? a.availability ?? [] : []);
|
|
103
|
+
} catch (i) {
|
|
104
|
+
if (e) return;
|
|
105
|
+
console.error("Failed to load checkout cart availability", i), I([]);
|
|
106
|
+
} finally {
|
|
107
|
+
e || z(!1);
|
|
108
|
+
}
|
|
109
|
+
})(), () => {
|
|
110
|
+
e = !0;
|
|
111
|
+
};
|
|
112
|
+
}, [
|
|
113
|
+
t.end_date,
|
|
114
|
+
t.end_time,
|
|
115
|
+
t.start_date,
|
|
116
|
+
t.start_time,
|
|
117
|
+
q,
|
|
118
|
+
s
|
|
119
|
+
]);
|
|
120
|
+
const he = u(() => new Map(
|
|
121
|
+
pe.map((e) => [
|
|
122
|
+
Ce(e.productId, e.productVariantId),
|
|
123
|
+
e
|
|
124
|
+
])
|
|
125
|
+
), [pe]), L = u(
|
|
126
|
+
() => ({
|
|
127
|
+
...d,
|
|
128
|
+
lines: d.lines.map((e) => {
|
|
129
|
+
const i = he.get(Ce(e.checkoutProductId, e.productVariantId)), a = i ? pt(i) : e.availabilityStatus === "OUT_OF_STOCK" ? "unavailable" : void 0;
|
|
130
|
+
return {
|
|
131
|
+
...e,
|
|
132
|
+
insufficientCapacity: !K && a !== void 0,
|
|
133
|
+
availabilityIssue: K ? void 0 : a
|
|
134
|
+
};
|
|
135
|
+
})
|
|
136
|
+
}),
|
|
137
|
+
[he, K, d]
|
|
138
|
+
), C = u(
|
|
139
|
+
() => d.lines.map((e) => ({
|
|
140
|
+
kind: e.kind,
|
|
141
|
+
productId: e.checkoutProductId,
|
|
142
|
+
productVariantId: e.productVariantId,
|
|
143
|
+
quantity: e.quantity
|
|
144
|
+
})),
|
|
145
|
+
[d.lines]
|
|
146
|
+
), $e = d.estimatedTotalMinor ?? d.totalPerDayMinor, v = Ne?.totalMinor ?? $e, P = f?.discountAmountMinor ?? 0, N = ve(new URLSearchParams(), t).toString(), j = `/${s ?? ""}/booking${N ? `?${N}` : ""}`, Be = `/${s ?? ""}/checkout${N ? `?${N}` : ""}`, fe = Ye({
|
|
147
|
+
resolver: et(At),
|
|
148
|
+
defaultValues: { full_name: "", email: "", phone: "", notes: "" }
|
|
149
|
+
});
|
|
150
|
+
E(() => {
|
|
151
|
+
Se(s, t);
|
|
152
|
+
}, [t, s]);
|
|
153
|
+
const H = (e) => {
|
|
154
|
+
const i = { ...t, ...e }, a = ve(M, i);
|
|
155
|
+
Te(a, { replace: !0 }), Se(s, a);
|
|
156
|
+
};
|
|
157
|
+
E(() => {
|
|
158
|
+
if (!s || C.length === 0) {
|
|
159
|
+
x(null), D(null), O(!1), b(null), k(null);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const e = ae.trim(), i = e.length === 0 && !V;
|
|
163
|
+
let a = !1;
|
|
164
|
+
return O(!0), k(null), b(null), (async () => {
|
|
165
|
+
try {
|
|
166
|
+
const W = await F(
|
|
167
|
+
it,
|
|
168
|
+
{
|
|
169
|
+
storeSlug: s,
|
|
170
|
+
schedule: {
|
|
171
|
+
startDate: t.start_date,
|
|
172
|
+
endDate: t.end_date,
|
|
173
|
+
startTime: t.start_time,
|
|
174
|
+
endTime: t.end_time
|
|
175
|
+
},
|
|
176
|
+
items: C,
|
|
177
|
+
couponCode: e || void 0,
|
|
178
|
+
includeAutoApply: i
|
|
179
|
+
}
|
|
180
|
+
), m = lt.parse(W);
|
|
181
|
+
if (a) return;
|
|
182
|
+
if (D(
|
|
183
|
+
typeof m.subtotalMinor == "number" && typeof m.totalMinor == "number" ? { subtotalMinor: m.subtotalMinor, totalMinor: m.totalMinor } : null
|
|
184
|
+
), !m.success) {
|
|
185
|
+
x(null), k(m.message || o("checkout_coupon_invalid"));
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
x(m.coupon ?? null), m.coupon && (m.coupon.autoApplied && e.length === 0 ? (B(m.coupon.code), b(o("checkout_coupon_auto_applied", { code: m.coupon.code }))) : b(o("checkout_coupon_manual_applied")));
|
|
189
|
+
} catch (W) {
|
|
190
|
+
if (a) return;
|
|
191
|
+
console.error("Failed to verify checkout coupon", W), x(null), D(null), k(o("checkout_coupon_error"));
|
|
192
|
+
} finally {
|
|
193
|
+
a || O(!1);
|
|
194
|
+
}
|
|
195
|
+
})(), () => {
|
|
196
|
+
a = !0;
|
|
197
|
+
};
|
|
198
|
+
}, [
|
|
199
|
+
V,
|
|
200
|
+
t.end_date,
|
|
201
|
+
t.end_time,
|
|
202
|
+
t.start_date,
|
|
203
|
+
t.start_time,
|
|
204
|
+
C,
|
|
205
|
+
s,
|
|
206
|
+
ae,
|
|
207
|
+
o
|
|
208
|
+
]), E(() => {
|
|
209
|
+
if (!s || d.lines.length === 0) {
|
|
210
|
+
T(null), A(null), $(!1);
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
let e = !1;
|
|
214
|
+
return $(!0), A(null), (async () => {
|
|
215
|
+
try {
|
|
216
|
+
const i = await F(
|
|
217
|
+
rt,
|
|
218
|
+
{
|
|
219
|
+
storeSlug: s,
|
|
220
|
+
schedule: {
|
|
221
|
+
startDate: t.start_date,
|
|
222
|
+
endDate: t.end_date,
|
|
223
|
+
startTime: t.start_time,
|
|
224
|
+
endTime: t.end_time
|
|
225
|
+
},
|
|
226
|
+
estimatedTotalMinor: v
|
|
227
|
+
}
|
|
228
|
+
), a = st.parse(i);
|
|
229
|
+
if (e) return;
|
|
230
|
+
if (!a.success || !a.decision) {
|
|
231
|
+
T(null), A(a.message || o("checkout_payment_error"));
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
T(a.decision);
|
|
235
|
+
} catch (i) {
|
|
236
|
+
if (e) return;
|
|
237
|
+
console.error("Failed to load checkout payment decision", i), T(null), A(o("checkout_payment_error"));
|
|
238
|
+
} finally {
|
|
239
|
+
e || $(!1);
|
|
240
|
+
}
|
|
241
|
+
})(), () => {
|
|
242
|
+
e = !0;
|
|
243
|
+
};
|
|
244
|
+
}, [
|
|
245
|
+
t.end_date,
|
|
246
|
+
t.end_time,
|
|
247
|
+
t.start_date,
|
|
248
|
+
t.start_time,
|
|
249
|
+
v,
|
|
250
|
+
d.lines.length,
|
|
251
|
+
s,
|
|
252
|
+
o
|
|
253
|
+
]);
|
|
254
|
+
const g = l?.currency ?? "EUR", Oe = _(v, g, r.language), Ve = P > 0 ? `-${_(P, g, r.language)}` : null, ge = Math.round(v / (1 + xe)), qe = Math.max(0, v - ge), Ke = _(ge, g, r.language), ze = _(qe, g, r.language), je = Pe(xe, r.language), h = l?.amountToCollectMinor ?? 0, He = _(h, g, r.language), Qe = l?.paymentMode === "deposit" && h > 0 ? _(h, g, r.language) : null, We = l?.shouldCollectOnlinePayment === !0 && h > 0, ye = p.shop.timeZone?.trim() || void 0, R = u(() => {
|
|
255
|
+
if (!l) return null;
|
|
256
|
+
const e = Math.max(0, Math.min(1, l.bookingDepositPercentage));
|
|
257
|
+
return Pe(e, r.language);
|
|
258
|
+
}, [r.language, l]), Q = u(() => {
|
|
259
|
+
if (!l?.depositRefundableUntilIso) return null;
|
|
260
|
+
const e = new Date(l.depositRefundableUntilIso);
|
|
261
|
+
return Number.isNaN(e.getTime()) ? null : wt(e, r.language, ye);
|
|
262
|
+
}, [r.language, l?.depositRefundableUntilIso, ye]), Ze = u(() => l ? l.paymentMode === "deposit" && h > 0 && R ? Q ? o("checkout_payment_due_now_helper_deposit_refundable_until", {
|
|
263
|
+
percent: R,
|
|
264
|
+
date: Q
|
|
265
|
+
}) : o("checkout_payment_due_now_helper_deposit", {
|
|
266
|
+
percent: R
|
|
267
|
+
}) : l.paymentMode === "full" && h > 0 ? null : l.paymentMode === "none" || h <= 0 ? o("checkout_payment_due_now_helper_none") : null : null, [
|
|
268
|
+
h,
|
|
269
|
+
R,
|
|
270
|
+
Q,
|
|
271
|
+
l,
|
|
272
|
+
o
|
|
273
|
+
]), Ge = fe.handleSubmit(async (e) => {
|
|
274
|
+
if (!(!s || C.length === 0)) {
|
|
275
|
+
Y(!0);
|
|
276
|
+
try {
|
|
277
|
+
const i = await F(
|
|
278
|
+
ct,
|
|
279
|
+
{
|
|
280
|
+
storeSlug: s,
|
|
281
|
+
schedule: {
|
|
282
|
+
startDate: t.start_date,
|
|
283
|
+
endDate: t.end_date,
|
|
284
|
+
startTime: t.start_time,
|
|
285
|
+
endTime: t.end_time
|
|
286
|
+
},
|
|
287
|
+
fulfillment: t.fulfillment,
|
|
288
|
+
startAddress: t.fulfillment === "delivery" ? t.start_address : void 0,
|
|
289
|
+
endAddress: t.fulfillment === "delivery" ? t.end_address : void 0,
|
|
290
|
+
couponCode: f?.code,
|
|
291
|
+
couponAutoApplied: V ? !1 : f?.autoApplied,
|
|
292
|
+
customer: {
|
|
293
|
+
fullName: e.full_name,
|
|
294
|
+
email: e.email,
|
|
295
|
+
phone: e.phone,
|
|
296
|
+
notes: e.notes
|
|
297
|
+
},
|
|
298
|
+
items: C
|
|
299
|
+
}
|
|
300
|
+
), a = ut.parse(i);
|
|
301
|
+
if (!a.success || !a.checkout) {
|
|
302
|
+
Z.error(a.message || o("checkout_payment_error"));
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
a.checkout.requiresPayment || Z.success(o("checkout_success_toast")), await Ae(a.checkout.nextPath), Le();
|
|
306
|
+
} catch (i) {
|
|
307
|
+
console.error("Failed to submit storefront checkout", i), Z.error(o("checkout_payment_error"));
|
|
308
|
+
} finally {
|
|
309
|
+
Y(!1);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}), Je = o(We ? "checkout_continue_to_payment" : "checkout_submit"), _e = t.fulfillment === "delivery" && t.start_address.trim().length === 0, Xe = !U && !ee && !te && !se && !ie && !!l && !_e && C.length > 0;
|
|
313
|
+
return d.lines.length === 0 ? /* @__PURE__ */ n("div", { className: "mx-auto max-w-3xl px-4 py-10 sm:px-6", children: /* @__PURE__ */ y("div", { className: "rounded-2xl border border-slate-200 bg-white p-6 shadow-sm", children: [
|
|
314
|
+
/* @__PURE__ */ n("h1", { className: "text-xl font-semibold tracking-tight text-slate-950", children: /* @__PURE__ */ n("span", { children: o("cart_empty_title") }) }),
|
|
315
|
+
/* @__PURE__ */ n("p", { className: "mt-2 text-sm text-slate-600", children: /* @__PURE__ */ n("span", { children: o("cart_empty_description") }) }),
|
|
316
|
+
/* @__PURE__ */ n("div", { className: "mt-6", children: /* @__PURE__ */ n(be, { to: j, children: /* @__PURE__ */ y(Me, { className: "gap-2", children: [
|
|
317
|
+
/* @__PURE__ */ n(ke, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
318
|
+
/* @__PURE__ */ n("span", { children: o("back_to_booking") })
|
|
319
|
+
] }) }) })
|
|
320
|
+
] }) }) : /* @__PURE__ */ n("div", { className: "mx-auto max-w-7xl px-4 py-8 sm:px-6", children: /* @__PURE__ */ y("div", { className: "flex flex-col gap-6", children: [
|
|
321
|
+
/* @__PURE__ */ n(vt, { currentStep: "checkout", bookingPath: j, checkoutPath: Be }),
|
|
322
|
+
/* @__PURE__ */ y(be, { to: j, className: "inline-flex items-center gap-2 text-sm font-medium text-slate-700 hover:text-slate-950", children: [
|
|
323
|
+
/* @__PURE__ */ n(ke, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
324
|
+
/* @__PURE__ */ n("span", { children: o("back_to_booking") })
|
|
325
|
+
] }),
|
|
326
|
+
/* @__PURE__ */ y("div", { className: "grid gap-6 lg:grid-cols-12", children: [
|
|
327
|
+
/* @__PURE__ */ y("div", { className: "lg:col-span-7", children: [
|
|
328
|
+
/* @__PURE__ */ n("h1", { className: "text-xl font-semibold tracking-tight text-slate-950", children: /* @__PURE__ */ n("span", { children: o("checkout_title") }) }),
|
|
329
|
+
/* @__PURE__ */ y("div", { className: "mt-5 grid gap-4", children: [
|
|
330
|
+
Ee ? /* @__PURE__ */ n("div", { className: "rounded-xl border border-slate-200 bg-white p-4 shadow-sm", children: /* @__PURE__ */ n(
|
|
331
|
+
Tt,
|
|
332
|
+
{
|
|
333
|
+
value: t.fulfillment,
|
|
334
|
+
onValueChange: (e) => H({ fulfillment: e }),
|
|
335
|
+
pickupAddress: Fe,
|
|
336
|
+
deliveryEnabled: w,
|
|
337
|
+
deliveryDisabledReason: ue,
|
|
338
|
+
startAddress: t.start_address,
|
|
339
|
+
onStartAddressChange: (e) => H({ start_address: e }),
|
|
340
|
+
endAddress: t.end_address,
|
|
341
|
+
onEndAddressChange: (e) => H({ end_address: e }),
|
|
342
|
+
showPickupAddressWhenPickupOnly: !1,
|
|
343
|
+
testIdPrefix: "storefront-checkout-fulfillment"
|
|
344
|
+
}
|
|
345
|
+
) }) : null,
|
|
346
|
+
/* @__PURE__ */ n(St, { form: fe }),
|
|
347
|
+
/* @__PURE__ */ n(
|
|
348
|
+
Mt,
|
|
349
|
+
{
|
|
350
|
+
code: ne,
|
|
351
|
+
appliedCode: f?.code,
|
|
352
|
+
discountLabel: f && P > 0 ? _(P, g, r.language) : null,
|
|
353
|
+
message: Re,
|
|
354
|
+
error: ie,
|
|
355
|
+
loading: se,
|
|
356
|
+
disabled: U,
|
|
357
|
+
onCodeChange: (e) => {
|
|
358
|
+
B(e), k(null), b(null);
|
|
359
|
+
},
|
|
360
|
+
onApply: () => {
|
|
361
|
+
le(!1), re(ne.trim());
|
|
362
|
+
},
|
|
363
|
+
onRemove: () => {
|
|
364
|
+
B(""), re(""), x(null), D(null), k(null), b(null), le(!0);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
),
|
|
368
|
+
/* @__PURE__ */ n(
|
|
369
|
+
xt,
|
|
370
|
+
{
|
|
371
|
+
estimatedTotalLabel: Oe,
|
|
372
|
+
couponCode: f?.code,
|
|
373
|
+
discountAmountLabel: Ve,
|
|
374
|
+
totalExcludingTaxLabel: Ke,
|
|
375
|
+
vatAmountLabel: ze,
|
|
376
|
+
vatRateLabel: je,
|
|
377
|
+
depositAmountLabel: Qe,
|
|
378
|
+
amountToCollectMinor: h,
|
|
379
|
+
amountToCollectLabel: He,
|
|
380
|
+
paymentSummaryHelper: Ze,
|
|
381
|
+
paymentDecisionLoading: ee,
|
|
382
|
+
paymentDecisionError: te,
|
|
383
|
+
canChoosePaymentMethod: !1,
|
|
384
|
+
showAmountDueNowRow: !0,
|
|
385
|
+
selectedPaymentMethod: "card",
|
|
386
|
+
submitting: U,
|
|
387
|
+
onSelectPaymentMethod: () => {
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
),
|
|
391
|
+
/* @__PURE__ */ n(
|
|
392
|
+
Me,
|
|
393
|
+
{
|
|
394
|
+
type: "button",
|
|
395
|
+
size: "lg",
|
|
396
|
+
onClick: () => {
|
|
397
|
+
Ge();
|
|
398
|
+
},
|
|
399
|
+
disabled: !Xe,
|
|
400
|
+
className: "mt-4 w-fit",
|
|
401
|
+
children: /* @__PURE__ */ n("span", { children: Je })
|
|
402
|
+
}
|
|
403
|
+
),
|
|
404
|
+
_e ? /* @__PURE__ */ n("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ n("span", { children: o("checkout_delivery_address_required") }) }) : null
|
|
405
|
+
] })
|
|
406
|
+
] }),
|
|
407
|
+
/* @__PURE__ */ n(
|
|
408
|
+
Pt,
|
|
409
|
+
{
|
|
410
|
+
lines: L.lines,
|
|
411
|
+
itemCount: De,
|
|
412
|
+
totalPerDayMinor: L.totalPerDayMinor,
|
|
413
|
+
estimatedDays: L.estimatedDays,
|
|
414
|
+
estimatedTotalMinor: L.estimatedTotalMinor,
|
|
415
|
+
discountedEstimatedTotalMinor: v,
|
|
416
|
+
discountAmountMinor: P,
|
|
417
|
+
couponCode: f?.code,
|
|
418
|
+
durationLabel: Ue.label,
|
|
419
|
+
onQuantityChange: we,
|
|
420
|
+
onRemove: Ie
|
|
421
|
+
}
|
|
422
|
+
)
|
|
423
|
+
] })
|
|
424
|
+
] }) });
|
|
425
|
+
}
|
|
426
|
+
export {
|
|
427
|
+
to as default
|
|
428
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as G, useEffect as E, useMemo as O } from "react";
|
|
3
|
+
import { toast as J } from "@rpcbase/client";
|
|
4
|
+
import { useParams as Q, useNavigate as V, useSearchParams as W, Link as b } from "@rpcbase/router";
|
|
5
|
+
import { loadStripe as Z } from "@stripe/stripe-js";
|
|
6
|
+
import { Elements as ee, useStripe as te } from "@stripe/react-stripe-js";
|
|
7
|
+
import { AlertTriangle as K, ShieldCheck as re, Loader2 as I, CheckCircle2 as se, XCircle as ne, CircleDashed as ae, ArrowRight as ce } from "lucide-react";
|
|
8
|
+
import { useTranslation as T } from "react-i18next";
|
|
9
|
+
import { apiPost as ie } from "../lib/apiCall.js";
|
|
10
|
+
import { ROUTE as oe, responseSchema as le } from "../lib/checkoutPaymentSession.js";
|
|
11
|
+
import { pickBookingSearchParams as me } from "../lib/booking.js";
|
|
12
|
+
import { useStorefrontCart as de } from "../lib/cart.js";
|
|
13
|
+
import { MollieCardFieldsForm as ue } from "../components/payment/MollieCardFieldsForm.js";
|
|
14
|
+
import { StripeCardFieldsForm as pe } from "../components/payment/StripeCardFieldsForm.js";
|
|
15
|
+
import { Button as f } from "../ui/button.js";
|
|
16
|
+
import { Card as y } from "../ui/card.js";
|
|
17
|
+
const he = {}, _e = () => {
|
|
18
|
+
const t = he, i = t?.RB_PUBLIC_STRIPE_PUBLISHABLE_KEY?.trim();
|
|
19
|
+
return i || (t?.RB_PUBLIC_STRIPE_PUBLISHABLE_API_KEY?.trim() ?? "");
|
|
20
|
+
}, Y = _e(), fe = 20, ye = 2500, xe = (t, i, a) => {
|
|
21
|
+
try {
|
|
22
|
+
return new Intl.NumberFormat(a, {
|
|
23
|
+
style: "currency",
|
|
24
|
+
currency: i.toUpperCase()
|
|
25
|
+
}).format(t / 100);
|
|
26
|
+
} catch {
|
|
27
|
+
return `${(t / 100).toFixed(2)} ${i.toUpperCase()}`;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function ge({
|
|
31
|
+
clientSecret: t,
|
|
32
|
+
onSuccess: i
|
|
33
|
+
}) {
|
|
34
|
+
const { t: a } = T(), u = te();
|
|
35
|
+
return /* @__PURE__ */ e(
|
|
36
|
+
pe,
|
|
37
|
+
{
|
|
38
|
+
requireEmail: !1,
|
|
39
|
+
submitLabel: a("checkout_payment_authorize_button"),
|
|
40
|
+
submittingLabel: a("checkout_payment_authorizing_button"),
|
|
41
|
+
onSubmit: async ({ paymentMethodId: x }) => {
|
|
42
|
+
if (!u)
|
|
43
|
+
throw new Error(a("secure_payment_link.errors.stripe_not_ready"));
|
|
44
|
+
const l = await u.confirmCardPayment(
|
|
45
|
+
t,
|
|
46
|
+
{
|
|
47
|
+
payment_method: x
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
if (l.error)
|
|
51
|
+
throw new Error(l.error.message ?? a("secure_payment_link.errors.payment_failed"));
|
|
52
|
+
const r = l.paymentIntent?.status;
|
|
53
|
+
if (r !== "succeeded" && r !== "processing" && r !== "requires_capture")
|
|
54
|
+
throw new Error(a("secure_payment_link.errors.payment_failed"));
|
|
55
|
+
i();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function q() {
|
|
61
|
+
const { t } = T();
|
|
62
|
+
return /* @__PURE__ */ n("div", { className: "flex min-h-48 items-center justify-center gap-2 text-sm text-slate-600", children: [
|
|
63
|
+
/* @__PURE__ */ e(I, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }),
|
|
64
|
+
/* @__PURE__ */ e("span", { children: t("secure_payment_link.form.loading_session") })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
function Be() {
|
|
68
|
+
const { t, i18n: i } = T(), { storeSlug: a } = Q(), u = V(), { clear: x } = de(), [l] = W(), [r, p] = _(null), [h, S] = _(!0), [A, g] = _(null), [D, U] = _(0), [$, R] = _(0), k = G(!1), m = l.get("checkout_session_id")?.trim() ?? "", B = new URLSearchParams(l.toString());
|
|
69
|
+
B.delete("checkout_session_id");
|
|
70
|
+
const d = me(B).toString(), v = `/${a ?? ""}/checkout${d ? `?${d}` : ""}`, P = `/${a ?? ""}/checkout/success${d ? `?${d}` : ""}`, M = async (c) => {
|
|
71
|
+
if (!a || !m)
|
|
72
|
+
throw new Error(t("checkout_payment_return_missing_session"));
|
|
73
|
+
const s = await ie(
|
|
74
|
+
oe,
|
|
75
|
+
{
|
|
76
|
+
storeSlug: a,
|
|
77
|
+
checkoutSessionId: m,
|
|
78
|
+
returnSearch: d || void 0,
|
|
79
|
+
cardToken: c
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
return le.parse(s);
|
|
83
|
+
}, C = async () => {
|
|
84
|
+
k.current || (k.current = !0, J.success(t("checkout_success_toast")), await u(P, { replace: !0 }), x());
|
|
85
|
+
};
|
|
86
|
+
E(() => {
|
|
87
|
+
k.current = !1, R(0);
|
|
88
|
+
}, [m]), E(() => {
|
|
89
|
+
if (!a || !m) {
|
|
90
|
+
p(null), g(t("checkout_payment_return_missing_session")), S(!1);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
let c = !1;
|
|
94
|
+
return S(!0), g(null), (async () => {
|
|
95
|
+
try {
|
|
96
|
+
const s = await M();
|
|
97
|
+
if (c) return;
|
|
98
|
+
if (!s.success) {
|
|
99
|
+
p(null), g(s.message || t("checkout_payment_return_status_error"));
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
p(s);
|
|
103
|
+
const N = s.paymentStatus;
|
|
104
|
+
(N === "authorized" || N === "succeeded") && !k.current && await C();
|
|
105
|
+
} catch (s) {
|
|
106
|
+
if (c) return;
|
|
107
|
+
console.error("Failed to fetch checkout payment session", s), p(null), g(t("checkout_payment_return_status_error"));
|
|
108
|
+
} finally {
|
|
109
|
+
c || S(!1);
|
|
110
|
+
}
|
|
111
|
+
})(), () => {
|
|
112
|
+
c = !0;
|
|
113
|
+
};
|
|
114
|
+
}, [m, x, u, d, D, a, P, t]);
|
|
115
|
+
const o = r?.paymentStatus ?? "pending";
|
|
116
|
+
E(() => {
|
|
117
|
+
if (o !== "pending" || $ >= fe || !r?.payment?.id) return;
|
|
118
|
+
const c = window.setTimeout(() => {
|
|
119
|
+
R((s) => s + 1), U((s) => s + 1);
|
|
120
|
+
}, ye);
|
|
121
|
+
return () => {
|
|
122
|
+
window.clearTimeout(c);
|
|
123
|
+
};
|
|
124
|
+
}, [o, $, r?.payment?.id]);
|
|
125
|
+
const j = O(() => !Y.trim() || !r?.stripeAccountId ? null : Z(Y, {
|
|
126
|
+
stripeAccount: r.stripeAccountId
|
|
127
|
+
}), [r?.stripeAccountId]), z = O(() => {
|
|
128
|
+
if (r?.clientSecret)
|
|
129
|
+
return {
|
|
130
|
+
clientSecret: r.clientSecret
|
|
131
|
+
};
|
|
132
|
+
}, [r?.clientSecret]);
|
|
133
|
+
if (!m)
|
|
134
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */ e(y, { className: "border-red-200 bg-white p-8 shadow-sm", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
135
|
+
/* @__PURE__ */ n("div", { className: "flex items-start gap-3", children: [
|
|
136
|
+
/* @__PURE__ */ e(K, { className: "mt-0.5 h-5 w-5 text-red-600", "aria-hidden": "true" }),
|
|
137
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_missing_session") }) })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ e(b, { to: v, children: /* @__PURE__ */ e(f, { variant: "outline", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_back_to_checkout") }) }) })
|
|
140
|
+
] }) }) });
|
|
141
|
+
if (h && !r)
|
|
142
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-8 shadow-sm", children: /* @__PURE__ */ e(q, {}) }) });
|
|
143
|
+
if (A || !r)
|
|
144
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */ e(y, { className: "border-red-200 bg-white p-8 shadow-sm", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
145
|
+
/* @__PURE__ */ n("div", { className: "flex items-start gap-3", children: [
|
|
146
|
+
/* @__PURE__ */ e(K, { className: "mt-0.5 h-5 w-5 text-red-600", "aria-hidden": "true" }),
|
|
147
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-slate-700", children: /* @__PURE__ */ e("span", { children: A ?? t("checkout_payment_return_status_error") }) })
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ e(b, { to: v, children: /* @__PURE__ */ e(f, { variant: "outline", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_back_to_checkout") }) }) })
|
|
150
|
+
] }) }) });
|
|
151
|
+
const F = typeof r.amountMinor == "number" && r.currency ? xe(r.amountMinor, r.currency, i.language) : null, w = o === "authorized" || o === "succeeded", L = o === "failed" || o === "cancelled", H = w ? se : L ? ne : ae, X = w ? "text-emerald-600" : L ? "text-red-600" : "text-amber-600";
|
|
152
|
+
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: [
|
|
153
|
+
/* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-6 shadow-sm", children: /* @__PURE__ */ n("div", { className: "space-y-5", children: [
|
|
154
|
+
/* @__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: [
|
|
155
|
+
/* @__PURE__ */ e(re, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
|
|
156
|
+
/* @__PURE__ */ e("span", { children: t("secure_payment_link.secured_badge") })
|
|
157
|
+
] }),
|
|
158
|
+
/* @__PURE__ */ n("div", { children: [
|
|
159
|
+
/* @__PURE__ */ e("h1", { className: "text-2xl font-semibold tracking-tight text-slate-950", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_title") }) }),
|
|
160
|
+
/* @__PURE__ */ e("p", { className: "mt-2 text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_hold_description") }) })
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ n("dl", { className: "grid gap-3 rounded-xl border border-slate-200 bg-slate-50 p-4 text-sm", children: [
|
|
163
|
+
F ? /* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-3", children: [
|
|
164
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-600", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_hold_amount") }) }),
|
|
165
|
+
/* @__PURE__ */ e("dd", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: F }) })
|
|
166
|
+
] }) : null,
|
|
167
|
+
r.providerType ? /* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-3", children: [
|
|
168
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-600", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_provider") }) }),
|
|
169
|
+
/* @__PURE__ */ e("dd", { className: "font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: t(`secure_payment_link.providers.${r.providerType}`) }) })
|
|
170
|
+
] }) : null
|
|
171
|
+
] }),
|
|
172
|
+
h ? /* @__PURE__ */ n("p", { className: "inline-flex items-center gap-2 text-sm text-slate-500", children: [
|
|
173
|
+
/* @__PURE__ */ e(I, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }),
|
|
174
|
+
/* @__PURE__ */ e("span", { children: t("checkout_payment_return_loading") })
|
|
175
|
+
] }) : null
|
|
176
|
+
] }) }),
|
|
177
|
+
/* @__PURE__ */ n(y, { className: "border-slate-200 bg-white p-6 shadow-sm", children: [
|
|
178
|
+
w || L ? /* @__PURE__ */ n("div", { className: "space-y-6 text-center", children: [
|
|
179
|
+
/* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-slate-100", children: /* @__PURE__ */ e(H, { className: `h-6 w-6 ${X}`, "aria-hidden": "true" }) }),
|
|
180
|
+
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
181
|
+
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t(`secure_payment_link.success_titles.${o}`) }) }),
|
|
182
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t(`secure_payment_link.statuses.${o}`) }) })
|
|
183
|
+
] }),
|
|
184
|
+
w ? /* @__PURE__ */ e(b, { to: P, children: /* @__PURE__ */ n(f, { className: "gap-2", children: [
|
|
185
|
+
/* @__PURE__ */ e("span", { children: t("checkout_payment_return_go_to_success") }),
|
|
186
|
+
/* @__PURE__ */ e(ce, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
187
|
+
] }) }) : /* @__PURE__ */ e(b, { to: v, children: /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_retry_checkout") }) }) })
|
|
188
|
+
] }) : r.providerType === "mollie_connect_oauth" ? /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
189
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.mollie.form_title") }) }),
|
|
190
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_hold_form_description") }) }),
|
|
191
|
+
r.profileId ? /* @__PURE__ */ e(
|
|
192
|
+
ue,
|
|
193
|
+
{
|
|
194
|
+
profileId: r.profileId,
|
|
195
|
+
testmode: r.testmode === !0,
|
|
196
|
+
submitLabel: t("checkout_payment_authorize_button"),
|
|
197
|
+
submittingLabel: t("checkout_payment_authorizing_button"),
|
|
198
|
+
onSubmit: async (c) => {
|
|
199
|
+
const s = await M(c);
|
|
200
|
+
if (!s.success)
|
|
201
|
+
throw new Error(s.message || t("secure_payment_link.errors.payment_failed"));
|
|
202
|
+
if (p(s), s.paymentStatus === "authorized" || s.paymentStatus === "succeeded") {
|
|
203
|
+
await C();
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
if (!s.checkoutUrl)
|
|
207
|
+
throw new Error(s.message || t("secure_payment_link.errors.mollie_missing_url"));
|
|
208
|
+
const N = new URL(s.checkoutUrl, window.location.origin).toString();
|
|
209
|
+
window.location.assign(N);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
) : /* @__PURE__ */ e("p", { className: "text-sm text-red-600", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.errors.session_failed") }) })
|
|
213
|
+
] }) : r.providerType === "stripe_connect_oauth" ? h ? /* @__PURE__ */ e(q, {}) : !r.clientSecret || !j || !z ? /* @__PURE__ */ e("p", { className: "text-sm text-red-600", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.errors.missing_publishable_key") }) }) : /* @__PURE__ */ e(ee, { stripe: j, options: z, children: /* @__PURE__ */ e(
|
|
214
|
+
ge,
|
|
215
|
+
{
|
|
216
|
+
clientSecret: r.clientSecret,
|
|
217
|
+
onSuccess: () => {
|
|
218
|
+
C();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
) }, r.clientSecret) : /* @__PURE__ */ e("p", { className: "text-sm text-red-600", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.errors.session_failed") }) }),
|
|
222
|
+
o === "pending" && r.payment?.id ? /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col justify-center gap-3 sm:flex-row", children: /* @__PURE__ */ n(
|
|
223
|
+
f,
|
|
224
|
+
{
|
|
225
|
+
type: "button",
|
|
226
|
+
variant: "outline",
|
|
227
|
+
onClick: () => {
|
|
228
|
+
U((c) => c + 1);
|
|
229
|
+
},
|
|
230
|
+
disabled: h,
|
|
231
|
+
className: "gap-2",
|
|
232
|
+
children: [
|
|
233
|
+
h ? /* @__PURE__ */ e(I, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }) : null,
|
|
234
|
+
/* @__PURE__ */ e("span", { children: t("checkout_payment_return_refresh_status") })
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
) }) : null
|
|
238
|
+
] })
|
|
239
|
+
] }) });
|
|
240
|
+
}
|
|
241
|
+
export {
|
|
242
|
+
Be as default
|
|
243
|
+
};
|