@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,205 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare type AccessoryProduct = StorefrontPublicAccessoryProduct & {
|
|
4
|
+
kind: "accessory";
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
declare type BikeProduct = Omit<StorefrontPublicBikeProduct, "kind"> & {
|
|
8
|
+
kind: "bike" | "e-bike";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare const buildStorefrontCartSummary: (params: {
|
|
12
|
+
items: StorefrontCartItem[];
|
|
13
|
+
language: string;
|
|
14
|
+
fallbackLanguage?: string;
|
|
15
|
+
products: StorefrontProductsCollections;
|
|
16
|
+
estimatedDays?: number;
|
|
17
|
+
}) => StorefrontCartSummary;
|
|
18
|
+
|
|
19
|
+
declare type StorefrontAvailabilityIssue = "unavailable" | "quantity_unavailable";
|
|
20
|
+
|
|
21
|
+
declare type StorefrontCartItem = {
|
|
22
|
+
key: string;
|
|
23
|
+
kind: "bike" | "e-bike" | "accessory";
|
|
24
|
+
productId: string;
|
|
25
|
+
productVariantId?: string;
|
|
26
|
+
quantity: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export declare type StorefrontCartSummary = {
|
|
30
|
+
lines: StorefrontCartSummaryLine[];
|
|
31
|
+
totalPerDayMinor: number;
|
|
32
|
+
estimatedDays?: number;
|
|
33
|
+
estimatedTotalMinor?: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export declare type StorefrontCartSummaryLine = StorefrontCartItem & {
|
|
37
|
+
checkoutProductId: string;
|
|
38
|
+
productName: string;
|
|
39
|
+
productWarning?: string;
|
|
40
|
+
productVariantLabel?: string;
|
|
41
|
+
productVariantDescription?: string;
|
|
42
|
+
productVariantIsSize: boolean;
|
|
43
|
+
unitPriceMinor: number;
|
|
44
|
+
lineTotalMinor: number;
|
|
45
|
+
estimatedLineTotalMinor?: number;
|
|
46
|
+
availabilityStatus?: "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
47
|
+
insufficientCapacity?: boolean;
|
|
48
|
+
availabilityIssue?: StorefrontAvailabilityIssue;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type StorefrontProductsCollections = {
|
|
52
|
+
bikes: BikeProduct[];
|
|
53
|
+
accessories: AccessoryProduct[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
|
|
57
|
+
|
|
58
|
+
declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
slug: z.ZodString;
|
|
63
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
66
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
|
+
value: z.ZodString;
|
|
70
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
71
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
|
+
value: z.ZodString;
|
|
75
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
76
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$loose>>>;
|
|
78
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
bgMode: z.ZodEnum<{
|
|
81
|
+
transparent: "transparent";
|
|
82
|
+
solid: "solid";
|
|
83
|
+
complex: "complex";
|
|
84
|
+
}>;
|
|
85
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
86
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
91
|
+
value: z.ZodNumber;
|
|
92
|
+
unit: z.ZodEnum<{
|
|
93
|
+
hour: "hour";
|
|
94
|
+
half_day: "half_day";
|
|
95
|
+
day: "day";
|
|
96
|
+
week: "week";
|
|
97
|
+
month: "month";
|
|
98
|
+
}>;
|
|
99
|
+
quantity: z.ZodNumber;
|
|
100
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
103
|
+
value: z.ZodString;
|
|
104
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
105
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
}, z.core.$loose>>>>;
|
|
107
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
computedName: z.ZodString;
|
|
110
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
111
|
+
key: z.ZodString;
|
|
112
|
+
label: z.ZodOptional<z.ZodString>;
|
|
113
|
+
value: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
116
|
+
kind: z.ZodString;
|
|
117
|
+
value: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
121
|
+
variant_selector: "variant_selector";
|
|
122
|
+
variants_as_products: "variants_as_products";
|
|
123
|
+
}>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
|
|
126
|
+
declare type StorefrontPublicBikeProduct = z.infer<typeof storefrontPublicBikeProductSchema>;
|
|
127
|
+
|
|
128
|
+
declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
131
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
slug: z.ZodString;
|
|
133
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
bike: "bike";
|
|
135
|
+
"e-bike": "e-bike";
|
|
136
|
+
}>>;
|
|
137
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
138
|
+
value: z.ZodString;
|
|
139
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
140
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
}, z.core.$loose>>;
|
|
142
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
143
|
+
value: z.ZodString;
|
|
144
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
145
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
}, z.core.$loose>>>;
|
|
147
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
148
|
+
value: z.ZodString;
|
|
149
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
150
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
}, z.core.$loose>>>;
|
|
152
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
bgMode: z.ZodEnum<{
|
|
155
|
+
transparent: "transparent";
|
|
156
|
+
solid: "solid";
|
|
157
|
+
complex: "complex";
|
|
158
|
+
}>;
|
|
159
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
160
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
+
value: z.ZodNumber;
|
|
166
|
+
unit: z.ZodEnum<{
|
|
167
|
+
hour: "hour";
|
|
168
|
+
half_day: "half_day";
|
|
169
|
+
day: "day";
|
|
170
|
+
week: "week";
|
|
171
|
+
month: "month";
|
|
172
|
+
}>;
|
|
173
|
+
quantity: z.ZodNumber;
|
|
174
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>>>;
|
|
176
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
177
|
+
value: z.ZodString;
|
|
178
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
179
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
}, z.core.$loose>>>>;
|
|
181
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
182
|
+
id: z.ZodString;
|
|
183
|
+
computedName: z.ZodString;
|
|
184
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
185
|
+
key: z.ZodString;
|
|
186
|
+
label: z.ZodOptional<z.ZodString>;
|
|
187
|
+
value: z.ZodString;
|
|
188
|
+
}, z.core.$strip>>>;
|
|
189
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
+
kind: z.ZodString;
|
|
191
|
+
value: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
195
|
+
variant_selector: "variant_selector";
|
|
196
|
+
variants_as_products: "variants_as_products";
|
|
197
|
+
}>>;
|
|
198
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
AVAILABLE: "AVAILABLE";
|
|
200
|
+
LOW_STOCK: "LOW_STOCK";
|
|
201
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
202
|
+
}>>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
|
|
205
|
+
export { }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare type PaymentDecisionMode = z.infer<typeof paymentDecisionModeSchema>;
|
|
4
|
+
|
|
5
|
+
export declare const paymentDecisionModeSchema: z.ZodEnum<{
|
|
6
|
+
none: "none";
|
|
7
|
+
deposit: "deposit";
|
|
8
|
+
full: "full";
|
|
9
|
+
}>;
|
|
10
|
+
|
|
11
|
+
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
12
|
+
|
|
13
|
+
export declare const requestSchema: z.ZodObject<{
|
|
14
|
+
storeSlug: z.ZodString;
|
|
15
|
+
schedule: z.ZodObject<{
|
|
16
|
+
startDate: z.ZodString;
|
|
17
|
+
endDate: z.ZodString;
|
|
18
|
+
startTime: z.ZodString;
|
|
19
|
+
endTime: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
estimatedTotalMinor: z.ZodNumber;
|
|
22
|
+
nowIso: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
|
|
25
|
+
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
26
|
+
|
|
27
|
+
export declare const responseSchema: z.ZodObject<{
|
|
28
|
+
success: z.ZodBoolean;
|
|
29
|
+
message: z.ZodOptional<z.ZodString>;
|
|
30
|
+
decision: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
shouldCollectOnlinePayment: z.ZodBoolean;
|
|
32
|
+
paymentMode: z.ZodEnum<{
|
|
33
|
+
none: "none";
|
|
34
|
+
deposit: "deposit";
|
|
35
|
+
full: "full";
|
|
36
|
+
}>;
|
|
37
|
+
calculatedAmountMinor: z.ZodNumber;
|
|
38
|
+
amountToCollectMinor: z.ZodNumber;
|
|
39
|
+
currency: z.ZodString;
|
|
40
|
+
bookingDepositPercentage: z.ZodNumber;
|
|
41
|
+
fullPaymentWindowHours: z.ZodNumber;
|
|
42
|
+
depositRefundableUntilIso: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
|
|
46
|
+
export declare const ROUTE = "/api/public/storefront/checkout/payment-decision";
|
|
47
|
+
|
|
48
|
+
export { }
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare type CheckoutPaymentSessionProviderType = z.infer<typeof checkoutPaymentSessionProviderTypeSchema>;
|
|
4
|
+
|
|
5
|
+
export declare const checkoutPaymentSessionProviderTypeSchema: z.ZodEnum<{
|
|
6
|
+
stripe_connect_oauth: "stripe_connect_oauth";
|
|
7
|
+
mollie_connect_oauth: "mollie_connect_oauth";
|
|
8
|
+
}>;
|
|
9
|
+
|
|
10
|
+
export declare type CheckoutPaymentSessionStatus = z.infer<typeof checkoutPaymentSessionStatusSchema>;
|
|
11
|
+
|
|
12
|
+
export declare const checkoutPaymentSessionStatusSchema: z.ZodEnum<{
|
|
13
|
+
pending: "pending";
|
|
14
|
+
authorized: "authorized";
|
|
15
|
+
succeeded: "succeeded";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
cancelled: "cancelled";
|
|
18
|
+
}>;
|
|
19
|
+
|
|
20
|
+
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
21
|
+
|
|
22
|
+
export declare const requestSchema: z.ZodObject<{
|
|
23
|
+
storeSlug: z.ZodString;
|
|
24
|
+
checkoutSessionId: z.ZodString;
|
|
25
|
+
returnSearch: z.ZodOptional<z.ZodString>;
|
|
26
|
+
cardToken: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
|
|
29
|
+
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
30
|
+
|
|
31
|
+
export declare const responseSchema: z.ZodObject<{
|
|
32
|
+
success: z.ZodBoolean;
|
|
33
|
+
message: z.ZodString;
|
|
34
|
+
providerType: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
stripe_connect_oauth: "stripe_connect_oauth";
|
|
36
|
+
mollie_connect_oauth: "mollie_connect_oauth";
|
|
37
|
+
}>>;
|
|
38
|
+
paymentStatus: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
pending: "pending";
|
|
40
|
+
authorized: "authorized";
|
|
41
|
+
succeeded: "succeeded";
|
|
42
|
+
failed: "failed";
|
|
43
|
+
cancelled: "cancelled";
|
|
44
|
+
}>>;
|
|
45
|
+
amountMinor: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
47
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
testmode: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
checkoutUrl: z.ZodOptional<z.ZodString>;
|
|
50
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
51
|
+
stripeAccountId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
payment: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
amount: z.ZodNumber;
|
|
55
|
+
currency: z.ZodString;
|
|
56
|
+
status: z.ZodString;
|
|
57
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
58
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
|
+
livemode: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
|
|
63
|
+
export declare const ROUTE = "/api/public/storefront/checkout/payment-session";
|
|
64
|
+
|
|
65
|
+
export { }
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare type RequestCheckoutItem = z.infer<typeof requestCheckoutItemSchema>;
|
|
4
|
+
|
|
5
|
+
export declare const requestCheckoutItemSchema: z.ZodObject<{
|
|
6
|
+
kind: any;
|
|
7
|
+
productId: z.ZodString;
|
|
8
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
quantity: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
|
|
12
|
+
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
13
|
+
|
|
14
|
+
export declare const requestSchema: z.ZodObject<{
|
|
15
|
+
storeSlug: z.ZodString;
|
|
16
|
+
schedule: z.ZodObject<{
|
|
17
|
+
startDate: z.ZodString;
|
|
18
|
+
endDate: z.ZodString;
|
|
19
|
+
startTime: z.ZodString;
|
|
20
|
+
endTime: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
fulfillment: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
pickup: "pickup";
|
|
24
|
+
delivery: "delivery";
|
|
25
|
+
}>>;
|
|
26
|
+
startAddress: z.ZodOptional<z.ZodString>;
|
|
27
|
+
endAddress: z.ZodOptional<z.ZodString>;
|
|
28
|
+
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
29
|
+
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
customer: z.ZodObject<{
|
|
31
|
+
fullName: z.ZodString;
|
|
32
|
+
email: z.ZodString;
|
|
33
|
+
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
34
|
+
notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
items: z.ZodArray<z.ZodObject<{
|
|
37
|
+
kind: any;
|
|
38
|
+
productId: z.ZodString;
|
|
39
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
quantity: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
nowIso: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
|
|
45
|
+
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
46
|
+
|
|
47
|
+
export declare const responseSchema: z.ZodObject<{
|
|
48
|
+
success: z.ZodBoolean;
|
|
49
|
+
message: z.ZodOptional<z.ZodString>;
|
|
50
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
bookingExternalId: z.ZodString;
|
|
52
|
+
saleId: z.ZodString;
|
|
53
|
+
nextPath: z.ZodString;
|
|
54
|
+
successPath: z.ZodString;
|
|
55
|
+
requiresPayment: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
|
|
59
|
+
export declare const ROUTE = "/api/public/storefront/checkout/submit";
|
|
60
|
+
|
|
61
|
+
export { }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
4
|
+
|
|
5
|
+
export declare const requestSchema: z.ZodObject<{
|
|
6
|
+
storeSlug: z.ZodString;
|
|
7
|
+
schedule: z.ZodObject<{
|
|
8
|
+
startDate: z.ZodString;
|
|
9
|
+
endDate: z.ZodString;
|
|
10
|
+
startTime: z.ZodString;
|
|
11
|
+
endTime: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
items: z.ZodArray<z.ZodObject<{
|
|
14
|
+
kind: any;
|
|
15
|
+
productId: z.ZodString;
|
|
16
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
quantity: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
20
|
+
includeAutoApply: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
|
|
23
|
+
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
24
|
+
|
|
25
|
+
export declare const responseSchema: z.ZodObject<{
|
|
26
|
+
success: z.ZodBoolean;
|
|
27
|
+
message: z.ZodOptional<z.ZodString>;
|
|
28
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
invalid: "invalid";
|
|
30
|
+
not_applicable: "not_applicable";
|
|
31
|
+
}>>;
|
|
32
|
+
subtotalMinor: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
totalMinor: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
coupon: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
code: z.ZodString;
|
|
36
|
+
priceRuleId: z.ZodString;
|
|
37
|
+
discountAmountMinor: z.ZodNumber;
|
|
38
|
+
discountRate: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
autoApplied: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
|
|
43
|
+
export declare const ROUTE = "/api/public/storefront/checkout/verify-coupon";
|
|
44
|
+
|
|
45
|
+
export { }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
function c(f) {
|
|
3
|
+
const { day: r, modifiers: t, ...u } = f, o = e.useRef(null);
|
|
4
|
+
return e.useEffect(() => {
|
|
5
|
+
t.focused && o.current?.focus();
|
|
6
|
+
}, [t.focused]), e.createElement("button", { ref: o, ...u });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
c as DayButton
|
|
10
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
import { nonEmptyKeySchema as n } from "./types-DLcvzW5b.js";
|
|
3
|
+
const c = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/, i = /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"), l = t.object({
|
|
4
|
+
value: t.string().min(1, "Localized value cannot be empty"),
|
|
5
|
+
updatedAt: t.coerce.date(),
|
|
6
|
+
autoTranslated: t.boolean().optional()
|
|
7
|
+
}).passthrough(), s = n.regex(c, {
|
|
8
|
+
message: "Expected a language code (BCP 47, e.g. en or fr-FR)."
|
|
9
|
+
}), u = t.record(
|
|
10
|
+
s,
|
|
11
|
+
l
|
|
12
|
+
), f = t.array(u);
|
|
13
|
+
function m(e, a = i) {
|
|
14
|
+
return {
|
|
15
|
+
value: e,
|
|
16
|
+
updatedAt: a
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
if (!e || typeof e != "object") return "";
|
|
21
|
+
const a = e instanceof Map ? Array.from(e.values()) : Object.values(e);
|
|
22
|
+
for (const r of a) {
|
|
23
|
+
if (!r || typeof r != "object") continue;
|
|
24
|
+
const o = r.value;
|
|
25
|
+
if (typeof o == "string" && o.trim().length > 0) return o.trim();
|
|
26
|
+
}
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
i as DEFAULT_LOCALIZED_STRING_UPDATED_AT,
|
|
31
|
+
m as createLocalizedStringEntry,
|
|
32
|
+
p as getLocalizedStringValue,
|
|
33
|
+
f as localizedStringArraySchema,
|
|
34
|
+
l as localizedStringEntrySchema,
|
|
35
|
+
u as localizedStringSchema
|
|
36
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
import { moneyMinorSchema as o } from "../schemas/money-Dy4b9loa.js";
|
|
3
|
+
const t = e.enum(["hour", "half_day", "day", "week", "month"], {
|
|
4
|
+
message: "Price unit must be one of 'hour', 'half_day', 'day', 'week', or 'month'"
|
|
5
|
+
}), r = e.object({
|
|
6
|
+
value: o,
|
|
7
|
+
unit: t,
|
|
8
|
+
quantity: e.number().positive("Quantity must be greater than zero")
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
r as priceSchema,
|
|
12
|
+
t as priceUnitSchema
|
|
13
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
import { identifierSchema as a, isoDateTimeSchema as n } from "./types-DLcvzW5b.js";
|
|
3
|
+
import { localizedStringSchema as t, localizedStringArraySchema as p } from "./LocalizedString--6q77SPQ.js";
|
|
4
|
+
import { priceSchema as c } from "./Price-BlFRDHXV.js";
|
|
5
|
+
import { moneyMinorSchema as o } from "../schemas/money-Dy4b9loa.js";
|
|
6
|
+
const f = e.enum(["bike", "e-bike", "accessory"]), b = e.enum([
|
|
7
|
+
"variant_selector",
|
|
8
|
+
"variants_as_products"
|
|
9
|
+
]), S = e.union([
|
|
10
|
+
e.string().trim().url(),
|
|
11
|
+
e.string().trim().regex(/^[a-f0-9]{24}$/i)
|
|
12
|
+
]), h = "variant_code", s = 3, y = e.string().trim().min(1, "Variant code is required").max(s, `Variant code must be ${s} characters or less`);
|
|
13
|
+
function k(r) {
|
|
14
|
+
return r.trim().toLowerCase() === h;
|
|
15
|
+
}
|
|
16
|
+
const _ = e.object({
|
|
17
|
+
kind: a,
|
|
18
|
+
value: a
|
|
19
|
+
}).superRefine((r, u) => {
|
|
20
|
+
if (!k(r.kind)) return;
|
|
21
|
+
const i = y.safeParse(r.value);
|
|
22
|
+
if (!i.success)
|
|
23
|
+
for (const l of i.error.issues)
|
|
24
|
+
u.addIssue({
|
|
25
|
+
code: e.ZodIssueCode.custom,
|
|
26
|
+
path: ["value"],
|
|
27
|
+
message: l.message
|
|
28
|
+
});
|
|
29
|
+
}), g = e.object({
|
|
30
|
+
key: a,
|
|
31
|
+
label: e.string().min(1).optional(),
|
|
32
|
+
value: e.string().min(1)
|
|
33
|
+
}), D = e.object({
|
|
34
|
+
id: a,
|
|
35
|
+
computedName: e.string().min(1),
|
|
36
|
+
attributes: e.array(g).default([]),
|
|
37
|
+
identifiers: e.array(_).default([])
|
|
38
|
+
}), d = e.object({
|
|
39
|
+
_id: a,
|
|
40
|
+
kind: f,
|
|
41
|
+
name: t,
|
|
42
|
+
description: t.optional(),
|
|
43
|
+
warning: t.optional(),
|
|
44
|
+
images: e.array(S).optional(),
|
|
45
|
+
prices: e.array(c).optional(),
|
|
46
|
+
depositAmount: o.default(0),
|
|
47
|
+
insurance: e.object({
|
|
48
|
+
enabled: e.boolean().default(!1),
|
|
49
|
+
pricePerDay: o.default(0)
|
|
50
|
+
}).default({ enabled: !1, pricePerDay: 0 }),
|
|
51
|
+
bufferStartMinutes: e.number().int().min(0).optional(),
|
|
52
|
+
bufferEndMinutes: e.number().int().min(0).optional(),
|
|
53
|
+
storefrontDisplayMode: b.default("variant_selector"),
|
|
54
|
+
createdAt: n,
|
|
55
|
+
updatedAt: n,
|
|
56
|
+
productVariants: e.array(D).min(1)
|
|
57
|
+
}), m = d.extend({
|
|
58
|
+
features: p.optional()
|
|
59
|
+
}), A = m.extend({
|
|
60
|
+
kind: e.literal("bike")
|
|
61
|
+
}), I = m.extend({
|
|
62
|
+
kind: e.literal("e-bike")
|
|
63
|
+
}), P = d.extend({
|
|
64
|
+
kind: e.literal("accessory"),
|
|
65
|
+
prices: e.array(c)
|
|
66
|
+
}), T = e.discriminatedUnion("kind", [
|
|
67
|
+
A,
|
|
68
|
+
I,
|
|
69
|
+
P
|
|
70
|
+
]);
|
|
71
|
+
export {
|
|
72
|
+
h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND,
|
|
73
|
+
s as PRODUCT_VARIANT_CODE_MAX_LENGTH,
|
|
74
|
+
P as accessoryProductSchema,
|
|
75
|
+
A as bikeProductSchema,
|
|
76
|
+
I as eBikeProductSchema,
|
|
77
|
+
k as isProductVariantCodeIdentifierKind,
|
|
78
|
+
f as productKindSchema,
|
|
79
|
+
T as productSchema,
|
|
80
|
+
b as productStorefrontDisplayModeSchema,
|
|
81
|
+
g as productVariantAttributeSchema,
|
|
82
|
+
y as productVariantCodeSchema,
|
|
83
|
+
_ as productVariantIdentifierSchema,
|
|
84
|
+
D as productVariantSchema
|
|
85
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const n = e.string().min(1, "Identifier cannot be empty"), a = e.string().trim().regex(/^[0-9A-HJKMNP-TV-Z]{26}$/i, "Identifier must be a ULID"), m = e.string().regex(/^[a-fA-F0-9]{24}$/, "Identifier must be a MongoDB ObjectId"), t = e.string().min(1, "Record key cannot be empty"), r = e.string().datetime({ offset: !0, message: "Value must be an ISO-8601 timestamp" }), o = e.record(
|
|
3
|
+
t,
|
|
4
|
+
e.union([e.boolean(), e.number()])
|
|
5
|
+
);
|
|
6
|
+
export {
|
|
7
|
+
o as booleanNumberRecordSchema,
|
|
8
|
+
n as identifierSchema,
|
|
9
|
+
r as isoDateTimeSchema,
|
|
10
|
+
t as nonEmptyKeySchema,
|
|
11
|
+
m as objectIdStringSchema,
|
|
12
|
+
a as ulidStringSchema
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
import { isoDateTimeSchema as t, identifierSchema as a, booleanNumberRecordSchema as i } from "../models/types-DLcvzW5b.js";
|
|
3
|
+
import { productVariantIdentifierSchema as r } from "../models/Product.shared-BiDGmurZ.js";
|
|
4
|
+
const s = e.enum(["available", "maintenance", "lost", "blocked"]), c = e.object({
|
|
5
|
+
_id: a,
|
|
6
|
+
productId: a,
|
|
7
|
+
shopId: a,
|
|
8
|
+
status: s,
|
|
9
|
+
identifiers: e.array(r).default([]),
|
|
10
|
+
productVariantId: a,
|
|
11
|
+
attributes: i.optional(),
|
|
12
|
+
createdAt: t,
|
|
13
|
+
updatedAt: t
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
c as baseAssetSchema,
|
|
17
|
+
s as baseAssetStatusSchema
|
|
18
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z as o } from "zod";
|
|
2
|
+
import { identifierSchema as e, isoDateTimeSchema as n, ulidStringSchema as a, objectIdStringSchema as p } from "../models/types-DLcvzW5b.js";
|
|
3
|
+
import { productKindSchema as m, productVariantCodeSchema as s } from "../models/Product.shared-BiDGmurZ.js";
|
|
4
|
+
import { moneyMinorSchema as r } from "./money-Dy4b9loa.js";
|
|
5
|
+
import { richTextSchema as c } from "./rich-text-CqXhNDN3.js";
|
|
6
|
+
const d = o.enum([
|
|
7
|
+
"pending_approval",
|
|
8
|
+
"pending_payment",
|
|
9
|
+
"confirmed",
|
|
10
|
+
"active",
|
|
11
|
+
"completed",
|
|
12
|
+
"canceled",
|
|
13
|
+
"expired"
|
|
14
|
+
]), l = o.object({
|
|
15
|
+
_id: e,
|
|
16
|
+
productId: e,
|
|
17
|
+
kind: m,
|
|
18
|
+
qty: o.number().int().positive(),
|
|
19
|
+
productVariantId: e.optional(),
|
|
20
|
+
productShortCode: o.string().trim().min(1).max(3).optional(),
|
|
21
|
+
productName: o.string().trim().min(1).optional(),
|
|
22
|
+
productVariantName: o.string().trim().min(1).optional(),
|
|
23
|
+
productVariantCode: s.optional()
|
|
24
|
+
}), u = o.object({
|
|
25
|
+
name: o.preprocess(
|
|
26
|
+
(t) => {
|
|
27
|
+
if (typeof t != "string") return;
|
|
28
|
+
const i = t.trim();
|
|
29
|
+
return i.length > 0 ? i : void 0;
|
|
30
|
+
},
|
|
31
|
+
o.string().min(1).optional()
|
|
32
|
+
),
|
|
33
|
+
email: o.preprocess(
|
|
34
|
+
(t) => {
|
|
35
|
+
if (typeof t != "string") return;
|
|
36
|
+
const i = t.trim();
|
|
37
|
+
return i.length > 0 ? i : void 0;
|
|
38
|
+
},
|
|
39
|
+
o.string().email().optional()
|
|
40
|
+
),
|
|
41
|
+
phone: o.preprocess(
|
|
42
|
+
(t) => {
|
|
43
|
+
if (typeof t != "string") return;
|
|
44
|
+
const i = t.trim();
|
|
45
|
+
return i.length > 0 ? i : void 0;
|
|
46
|
+
},
|
|
47
|
+
o.string().min(1).optional()
|
|
48
|
+
),
|
|
49
|
+
message: c.optional()
|
|
50
|
+
}), y = o.object({
|
|
51
|
+
_id: p,
|
|
52
|
+
externalId: a,
|
|
53
|
+
state: d,
|
|
54
|
+
shopId: e,
|
|
55
|
+
customer: u,
|
|
56
|
+
deliveryOption: o.enum(["delivery", "pickup"]),
|
|
57
|
+
start: n,
|
|
58
|
+
end: n,
|
|
59
|
+
startAddress: o.string().optional(),
|
|
60
|
+
endAddress: o.string().optional(),
|
|
61
|
+
items: o.array(l),
|
|
62
|
+
couponCode: o.string().min(1).optional(),
|
|
63
|
+
couponDiscountRate: o.number().min(0).max(1).optional(),
|
|
64
|
+
couponDiscountAmountUnits: r.optional(),
|
|
65
|
+
couponAutoApplied: o.boolean().optional(),
|
|
66
|
+
couponPriceRuleId: e.optional(),
|
|
67
|
+
totalPriceUnits: r.optional(),
|
|
68
|
+
createdAt: n,
|
|
69
|
+
updatedAt: n
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
l as baseBookingItemSchema,
|
|
73
|
+
y as baseBookingSchema,
|
|
74
|
+
d as baseBookingStateSchema
|
|
75
|
+
};
|