@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,16 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
const i = t.string().trim().regex(/^[a-f0-9]{24}$/i), m = t.string().trim().min(1).toLowerCase(), s = "/api/public/storefront/images/get", c = t.object({
|
|
3
|
+
imageId: i,
|
|
4
|
+
storeSlug: m
|
|
5
|
+
}), g = (r, n) => {
|
|
6
|
+
const e = r.trim();
|
|
7
|
+
if (!e) return "";
|
|
8
|
+
if (!/^[a-f0-9]{24}$/i.test(e)) return e;
|
|
9
|
+
const o = n.trim().toLowerCase();
|
|
10
|
+
return o ? `${s}?imageId=${encodeURIComponent(e)}&storeSlug=${encodeURIComponent(o)}` : e;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as ROUTE,
|
|
14
|
+
g as buildStorefrontImageUrl,
|
|
15
|
+
c as requestSchema
|
|
16
|
+
};
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const storefrontPublicProductPriceSchema: z.ZodObject<{
|
|
3
|
+
value: z.ZodNumber;
|
|
4
|
+
unit: z.ZodEnum<{
|
|
5
|
+
hour: "hour";
|
|
6
|
+
half_day: "half_day";
|
|
7
|
+
day: "day";
|
|
8
|
+
week: "week";
|
|
9
|
+
month: "month";
|
|
10
|
+
}>;
|
|
11
|
+
quantity: z.ZodNumber;
|
|
12
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type StorefrontPublicProductPrice = z.infer<typeof storefrontPublicProductPriceSchema>;
|
|
15
|
+
export declare const storefrontPublicProductVariantIdentifierSchema: z.ZodObject<{
|
|
16
|
+
kind: z.ZodString;
|
|
17
|
+
value: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type StorefrontPublicProductVariantIdentifier = z.infer<typeof storefrontPublicProductVariantIdentifierSchema>;
|
|
20
|
+
export declare const storefrontPublicProductVariantAttributeSchema: z.ZodObject<{
|
|
21
|
+
key: z.ZodString;
|
|
22
|
+
label: z.ZodOptional<z.ZodString>;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type StorefrontPublicProductVariantAttribute = z.infer<typeof storefrontPublicProductVariantAttributeSchema>;
|
|
26
|
+
export declare const storefrontPublicProductVariantSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
computedName: z.ZodString;
|
|
29
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
|
+
key: z.ZodString;
|
|
31
|
+
label: z.ZodOptional<z.ZodString>;
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
35
|
+
kind: z.ZodString;
|
|
36
|
+
value: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type StorefrontPublicProductVariant = z.infer<typeof storefrontPublicProductVariantSchema>;
|
|
40
|
+
export declare const storefrontPublicBikeAvailabilityStatusSchema: z.ZodEnum<{
|
|
41
|
+
AVAILABLE: "AVAILABLE";
|
|
42
|
+
LOW_STOCK: "LOW_STOCK";
|
|
43
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
44
|
+
}>;
|
|
45
|
+
export type StorefrontPublicBikeAvailabilityStatus = z.infer<typeof storefrontPublicBikeAvailabilityStatusSchema>;
|
|
46
|
+
export declare const storefrontPublicBikeKindSchema: z.ZodEnum<{
|
|
47
|
+
bike: "bike";
|
|
48
|
+
"e-bike": "e-bike";
|
|
49
|
+
}>;
|
|
50
|
+
export type StorefrontPublicBikeKind = z.infer<typeof storefrontPublicBikeKindSchema>;
|
|
51
|
+
export declare const storefrontPublicProductSlugSchema: z.ZodString;
|
|
52
|
+
export declare const storefrontPublicProductDisplayModeSchema: z.ZodEnum<{
|
|
53
|
+
variant_selector: "variant_selector";
|
|
54
|
+
variants_as_products: "variants_as_products";
|
|
55
|
+
}>;
|
|
56
|
+
export type StorefrontPublicProductDisplayMode = z.infer<typeof storefrontPublicProductDisplayModeSchema>;
|
|
57
|
+
export declare const storefrontPublicImageStyleSchema: z.ZodObject<{
|
|
58
|
+
bgMode: z.ZodEnum<{
|
|
59
|
+
transparent: "transparent";
|
|
60
|
+
solid: "solid";
|
|
61
|
+
complex: "complex";
|
|
62
|
+
}>;
|
|
63
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
64
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type StorefrontPublicImageStyle = z.infer<typeof storefrontPublicImageStyleSchema>;
|
|
69
|
+
export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
slug: z.ZodString;
|
|
74
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
bike: "bike";
|
|
76
|
+
"e-bike": "e-bike";
|
|
77
|
+
}>>;
|
|
78
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79
|
+
value: z.ZodString;
|
|
80
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
81
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
}, z.core.$loose>>;
|
|
83
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
84
|
+
value: z.ZodString;
|
|
85
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
86
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
}, z.core.$loose>>>;
|
|
88
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
|
+
value: z.ZodString;
|
|
90
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
91
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$loose>>>;
|
|
93
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
bgMode: z.ZodEnum<{
|
|
96
|
+
transparent: "transparent";
|
|
97
|
+
solid: "solid";
|
|
98
|
+
complex: "complex";
|
|
99
|
+
}>;
|
|
100
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
101
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
102
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
+
value: z.ZodNumber;
|
|
107
|
+
unit: z.ZodEnum<{
|
|
108
|
+
hour: "hour";
|
|
109
|
+
half_day: "half_day";
|
|
110
|
+
day: "day";
|
|
111
|
+
week: "week";
|
|
112
|
+
month: "month";
|
|
113
|
+
}>;
|
|
114
|
+
quantity: z.ZodNumber;
|
|
115
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
118
|
+
value: z.ZodString;
|
|
119
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
120
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
}, z.core.$loose>>>>;
|
|
122
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
computedName: z.ZodString;
|
|
125
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
126
|
+
key: z.ZodString;
|
|
127
|
+
label: z.ZodOptional<z.ZodString>;
|
|
128
|
+
value: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
|
+
kind: z.ZodString;
|
|
132
|
+
value: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
136
|
+
variant_selector: "variant_selector";
|
|
137
|
+
variants_as_products: "variants_as_products";
|
|
138
|
+
}>>;
|
|
139
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
AVAILABLE: "AVAILABLE";
|
|
141
|
+
LOW_STOCK: "LOW_STOCK";
|
|
142
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
143
|
+
}>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type StorefrontPublicBikeProduct = z.infer<typeof storefrontPublicBikeProductSchema>;
|
|
146
|
+
export declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
149
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
slug: z.ZodString;
|
|
151
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
value: z.ZodString;
|
|
153
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
154
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
}, z.core.$loose>>;
|
|
156
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
157
|
+
value: z.ZodString;
|
|
158
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
159
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
}, z.core.$loose>>>;
|
|
161
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
162
|
+
value: z.ZodString;
|
|
163
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
164
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$loose>>>;
|
|
166
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
bgMode: z.ZodEnum<{
|
|
169
|
+
transparent: "transparent";
|
|
170
|
+
solid: "solid";
|
|
171
|
+
complex: "complex";
|
|
172
|
+
}>;
|
|
173
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
174
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
175
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
179
|
+
value: z.ZodNumber;
|
|
180
|
+
unit: z.ZodEnum<{
|
|
181
|
+
hour: "hour";
|
|
182
|
+
half_day: "half_day";
|
|
183
|
+
day: "day";
|
|
184
|
+
week: "week";
|
|
185
|
+
month: "month";
|
|
186
|
+
}>;
|
|
187
|
+
quantity: z.ZodNumber;
|
|
188
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
191
|
+
value: z.ZodString;
|
|
192
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
193
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
}, z.core.$loose>>>>;
|
|
195
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
computedName: z.ZodString;
|
|
198
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
199
|
+
key: z.ZodString;
|
|
200
|
+
label: z.ZodOptional<z.ZodString>;
|
|
201
|
+
value: z.ZodString;
|
|
202
|
+
}, z.core.$strip>>>;
|
|
203
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
204
|
+
kind: z.ZodString;
|
|
205
|
+
value: z.ZodString;
|
|
206
|
+
}, z.core.$strip>>>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
209
|
+
variant_selector: "variant_selector";
|
|
210
|
+
variants_as_products: "variants_as_products";
|
|
211
|
+
}>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
|
|
214
|
+
export declare const ROUTE = "/api/public/storefront/products";
|
|
215
|
+
export declare const requestSchema: z.ZodObject<{
|
|
216
|
+
storeSlug: z.ZodString;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
export type RequestPayload = z.infer<typeof requestSchema>;
|
|
219
|
+
export declare const responseSchema: z.ZodObject<{
|
|
220
|
+
success: z.ZodBoolean;
|
|
221
|
+
message: z.ZodOptional<z.ZodString>;
|
|
222
|
+
products: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
bikes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
226
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
slug: z.ZodString;
|
|
228
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
bike: "bike";
|
|
230
|
+
"e-bike": "e-bike";
|
|
231
|
+
}>>;
|
|
232
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
233
|
+
value: z.ZodString;
|
|
234
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
235
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
}, z.core.$loose>>;
|
|
237
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
238
|
+
value: z.ZodString;
|
|
239
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
240
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
}, z.core.$loose>>>;
|
|
242
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
243
|
+
value: z.ZodString;
|
|
244
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
245
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
}, z.core.$loose>>>;
|
|
247
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
bgMode: z.ZodEnum<{
|
|
250
|
+
transparent: "transparent";
|
|
251
|
+
solid: "solid";
|
|
252
|
+
complex: "complex";
|
|
253
|
+
}>;
|
|
254
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
255
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
256
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
260
|
+
value: z.ZodNumber;
|
|
261
|
+
unit: z.ZodEnum<{
|
|
262
|
+
hour: "hour";
|
|
263
|
+
half_day: "half_day";
|
|
264
|
+
day: "day";
|
|
265
|
+
week: "week";
|
|
266
|
+
month: "month";
|
|
267
|
+
}>;
|
|
268
|
+
quantity: z.ZodNumber;
|
|
269
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>>>;
|
|
271
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
272
|
+
value: z.ZodString;
|
|
273
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
274
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
}, z.core.$loose>>>>;
|
|
276
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
computedName: z.ZodString;
|
|
279
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
280
|
+
key: z.ZodString;
|
|
281
|
+
label: z.ZodOptional<z.ZodString>;
|
|
282
|
+
value: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>>;
|
|
284
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
285
|
+
kind: z.ZodString;
|
|
286
|
+
value: z.ZodString;
|
|
287
|
+
}, z.core.$strip>>>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
290
|
+
variant_selector: "variant_selector";
|
|
291
|
+
variants_as_products: "variants_as_products";
|
|
292
|
+
}>>;
|
|
293
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<{
|
|
294
|
+
AVAILABLE: "AVAILABLE";
|
|
295
|
+
LOW_STOCK: "LOW_STOCK";
|
|
296
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
297
|
+
}>>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
accessories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
302
|
+
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
303
|
+
slug: z.ZodString;
|
|
304
|
+
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
305
|
+
value: z.ZodString;
|
|
306
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
307
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
}, z.core.$loose>>;
|
|
309
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
310
|
+
value: z.ZodString;
|
|
311
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
312
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
}, z.core.$loose>>>;
|
|
314
|
+
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
315
|
+
value: z.ZodString;
|
|
316
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
317
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$loose>>>;
|
|
319
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
+
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
bgMode: z.ZodEnum<{
|
|
322
|
+
transparent: "transparent";
|
|
323
|
+
solid: "solid";
|
|
324
|
+
complex: "complex";
|
|
325
|
+
}>;
|
|
326
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
327
|
+
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
332
|
+
value: z.ZodNumber;
|
|
333
|
+
unit: z.ZodEnum<{
|
|
334
|
+
hour: "hour";
|
|
335
|
+
half_day: "half_day";
|
|
336
|
+
day: "day";
|
|
337
|
+
week: "week";
|
|
338
|
+
month: "month";
|
|
339
|
+
}>;
|
|
340
|
+
quantity: z.ZodNumber;
|
|
341
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
344
|
+
value: z.ZodString;
|
|
345
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
346
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
347
|
+
}, z.core.$loose>>>>;
|
|
348
|
+
productVariants: z.ZodArray<z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
computedName: z.ZodString;
|
|
351
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
352
|
+
key: z.ZodString;
|
|
353
|
+
label: z.ZodOptional<z.ZodString>;
|
|
354
|
+
value: z.ZodString;
|
|
355
|
+
}, z.core.$strip>>>;
|
|
356
|
+
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
357
|
+
kind: z.ZodString;
|
|
358
|
+
value: z.ZodString;
|
|
359
|
+
}, z.core.$strip>>>;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
362
|
+
variant_selector: "variant_selector";
|
|
363
|
+
variants_as_products: "variants_as_products";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strip>>>;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
export type ResponsePayload = z.infer<typeof responseSchema>;
|
|
369
|
+
//# sourceMappingURL=storefrontProducts.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
const c = t.object({
|
|
3
|
+
value: t.string().trim().min(1),
|
|
4
|
+
updatedAt: t.coerce.date(),
|
|
5
|
+
autoTranslated: t.boolean().optional()
|
|
6
|
+
}).passthrough(), r = t.record(t.string().min(1), c), m = t.enum(["hour", "half_day", "day", "week", "month"]), l = t.string().trim().regex(/^#[0-9a-f]{6}$/i), o = t.object({
|
|
7
|
+
value: t.number().int().min(0),
|
|
8
|
+
unit: m,
|
|
9
|
+
quantity: t.number().positive(),
|
|
10
|
+
currency: t.string().trim().min(1).optional()
|
|
11
|
+
}), u = t.object({
|
|
12
|
+
kind: t.string().trim().min(1),
|
|
13
|
+
value: t.string().trim().min(1)
|
|
14
|
+
}), d = t.object({
|
|
15
|
+
key: t.string().trim().min(1),
|
|
16
|
+
label: t.string().trim().min(1).optional(),
|
|
17
|
+
value: t.string().trim().min(1)
|
|
18
|
+
}), e = t.object({
|
|
19
|
+
id: t.string().trim().min(1),
|
|
20
|
+
computedName: t.string().trim().min(1),
|
|
21
|
+
attributes: t.array(d).default([]),
|
|
22
|
+
identifiers: t.array(u).default([])
|
|
23
|
+
}), p = t.enum(["AVAILABLE", "LOW_STOCK", "OUT_OF_STOCK"]), g = t.enum(["bike", "e-bike"]), n = t.string().trim().min(1), a = t.enum([
|
|
24
|
+
"variant_selector",
|
|
25
|
+
"variants_as_products"
|
|
26
|
+
]), s = t.object({
|
|
27
|
+
bgMode: t.enum(["transparent", "solid", "complex"]),
|
|
28
|
+
bgColor: l.optional(),
|
|
29
|
+
needsLightBorder: t.boolean().default(!1),
|
|
30
|
+
confidence: t.number().min(0).max(1).optional(),
|
|
31
|
+
analyzerVersion: t.number().int().min(1).optional()
|
|
32
|
+
}).refine((i) => i.bgMode !== "solid" || !!i.bgColor, {
|
|
33
|
+
message: "bgColor is required when bgMode is solid."
|
|
34
|
+
}), b = t.object({
|
|
35
|
+
id: t.string().trim().min(1),
|
|
36
|
+
checkoutProductId: t.string().trim().min(1).optional(),
|
|
37
|
+
representedVariantId: t.string().trim().min(1).optional(),
|
|
38
|
+
slug: n,
|
|
39
|
+
kind: g.optional(),
|
|
40
|
+
name: r,
|
|
41
|
+
description: r.optional(),
|
|
42
|
+
warning: r.optional(),
|
|
43
|
+
images: t.array(t.string().trim().min(1)).optional(),
|
|
44
|
+
primaryImageStyle: s.optional(),
|
|
45
|
+
prices: t.array(o).optional(),
|
|
46
|
+
features: t.array(r).optional(),
|
|
47
|
+
productVariants: t.array(e).min(1),
|
|
48
|
+
storefrontDisplayMode: a.default("variant_selector"),
|
|
49
|
+
availabilityStatus: p.optional()
|
|
50
|
+
}), f = t.object({
|
|
51
|
+
id: t.string().trim().min(1),
|
|
52
|
+
checkoutProductId: t.string().trim().min(1).optional(),
|
|
53
|
+
representedVariantId: t.string().trim().min(1).optional(),
|
|
54
|
+
slug: n,
|
|
55
|
+
name: r,
|
|
56
|
+
description: r.optional(),
|
|
57
|
+
warning: r.optional(),
|
|
58
|
+
images: t.array(t.string().trim().min(1)).optional(),
|
|
59
|
+
primaryImageStyle: s.optional(),
|
|
60
|
+
prices: t.array(o),
|
|
61
|
+
features: t.array(r).optional(),
|
|
62
|
+
productVariants: t.array(e).min(1),
|
|
63
|
+
storefrontDisplayMode: a.default("variant_selector")
|
|
64
|
+
}), S = "/api/public/storefront/products", h = t.object({
|
|
65
|
+
storeSlug: t.string().trim().min(1).toLowerCase()
|
|
66
|
+
}), P = t.object({
|
|
67
|
+
success: t.boolean(),
|
|
68
|
+
message: t.string().optional(),
|
|
69
|
+
products: t.object({
|
|
70
|
+
bikes: t.array(b).default([]),
|
|
71
|
+
accessories: t.array(f).default([])
|
|
72
|
+
}).optional()
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
S as ROUTE,
|
|
76
|
+
h as requestSchema,
|
|
77
|
+
P as responseSchema,
|
|
78
|
+
f as storefrontPublicAccessoryProductSchema,
|
|
79
|
+
p as storefrontPublicBikeAvailabilityStatusSchema,
|
|
80
|
+
g as storefrontPublicBikeKindSchema,
|
|
81
|
+
b as storefrontPublicBikeProductSchema,
|
|
82
|
+
s as storefrontPublicImageStyleSchema,
|
|
83
|
+
a as storefrontPublicProductDisplayModeSchema,
|
|
84
|
+
o as storefrontPublicProductPriceSchema,
|
|
85
|
+
n as storefrontPublicProductSlugSchema,
|
|
86
|
+
d as storefrontPublicProductVariantAttributeSchema,
|
|
87
|
+
u as storefrontPublicProductVariantIdentifierSchema,
|
|
88
|
+
e as storefrontPublicProductVariantSchema
|
|
89
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ROUTE = "/api/public/storefront/reviews";
|
|
3
|
+
export declare const requestSchema: z.ZodObject<{
|
|
4
|
+
storeSlug: z.ZodString;
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type RequestPayload = z.infer<typeof requestSchema>;
|
|
8
|
+
export declare const reviewSourceSchema: z.ZodEnum<{
|
|
9
|
+
google: "google";
|
|
10
|
+
tripadvisor: "tripadvisor";
|
|
11
|
+
}>;
|
|
12
|
+
export type ReviewSource = z.infer<typeof reviewSourceSchema>;
|
|
13
|
+
export declare const shopReviewsProviderSchema: z.ZodObject<{
|
|
14
|
+
source: z.ZodEnum<{
|
|
15
|
+
google: "google";
|
|
16
|
+
tripadvisor: "tripadvisor";
|
|
17
|
+
}>;
|
|
18
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
totalReviewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
providerUrl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
address: z.ZodOptional<z.ZodString>;
|
|
23
|
+
website: z.ZodOptional<z.ZodString>;
|
|
24
|
+
fetchedAt: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type ShopReviewsProvider = z.infer<typeof shopReviewsProviderSchema>;
|
|
27
|
+
export declare const publicReviewItemSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
source: z.ZodEnum<{
|
|
30
|
+
google: "google";
|
|
31
|
+
tripadvisor: "tripadvisor";
|
|
32
|
+
}>;
|
|
33
|
+
authorMasked: z.ZodString;
|
|
34
|
+
avatarSeed: z.ZodNumber;
|
|
35
|
+
rating: z.ZodNumber;
|
|
36
|
+
comment: z.ZodString;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
providerUrl: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type PublicReviewItem = z.infer<typeof publicReviewItemSchema>;
|
|
41
|
+
export declare const responseSchema: z.ZodObject<{
|
|
42
|
+
success: z.ZodBoolean;
|
|
43
|
+
message: z.ZodOptional<z.ZodString>;
|
|
44
|
+
providers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
45
|
+
source: z.ZodEnum<{
|
|
46
|
+
google: "google";
|
|
47
|
+
tripadvisor: "tripadvisor";
|
|
48
|
+
}>;
|
|
49
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
totalReviewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
providerUrl: z.ZodOptional<z.ZodString>;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
address: z.ZodOptional<z.ZodString>;
|
|
54
|
+
website: z.ZodOptional<z.ZodString>;
|
|
55
|
+
fetchedAt: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
reviews: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
source: z.ZodEnum<{
|
|
60
|
+
google: "google";
|
|
61
|
+
tripadvisor: "tripadvisor";
|
|
62
|
+
}>;
|
|
63
|
+
authorMasked: z.ZodString;
|
|
64
|
+
avatarSeed: z.ZodNumber;
|
|
65
|
+
rating: z.ZodNumber;
|
|
66
|
+
comment: z.ZodString;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
providerUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type ResponsePayload = z.infer<typeof responseSchema>;
|
|
72
|
+
//# sourceMappingURL=storefrontReviews.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
const n = "/api/public/storefront/reviews", a = t.object({
|
|
3
|
+
storeSlug: t.string().trim().min(1).toLowerCase(),
|
|
4
|
+
limit: t.number().int().positive().max(200).optional()
|
|
5
|
+
}), e = t.enum(["google", "tripadvisor"]), i = t.object({
|
|
6
|
+
source: e,
|
|
7
|
+
rating: t.number().min(0).max(5).nullable().optional(),
|
|
8
|
+
totalReviewsCount: t.number().int().nonnegative().nullable().optional(),
|
|
9
|
+
providerUrl: t.string().trim().url().optional(),
|
|
10
|
+
name: t.string().trim().min(1).optional(),
|
|
11
|
+
address: t.string().trim().min(1).optional(),
|
|
12
|
+
website: t.string().trim().url().optional(),
|
|
13
|
+
fetchedAt: t.string().datetime({ offset: !0 }).optional()
|
|
14
|
+
}), r = t.object({
|
|
15
|
+
id: t.string().trim().min(1),
|
|
16
|
+
source: e,
|
|
17
|
+
authorMasked: t.string().trim().min(1),
|
|
18
|
+
avatarSeed: t.number().int().nonnegative(),
|
|
19
|
+
rating: t.number().min(0).max(5),
|
|
20
|
+
comment: t.string(),
|
|
21
|
+
createdAt: t.string().datetime({ offset: !0 }),
|
|
22
|
+
providerUrl: t.string().trim().url().optional()
|
|
23
|
+
}), s = t.object({
|
|
24
|
+
success: t.boolean(),
|
|
25
|
+
message: t.string().optional(),
|
|
26
|
+
providers: t.array(i).default([]),
|
|
27
|
+
reviews: t.array(r).default([])
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
n as ROUTE,
|
|
31
|
+
r as publicReviewItemSchema,
|
|
32
|
+
a as requestSchema,
|
|
33
|
+
s as responseSchema,
|
|
34
|
+
e as reviewSourceSchema,
|
|
35
|
+
i as shopReviewsProviderSchema
|
|
36
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type MoneyMinor = number;
|
|
2
|
+
export declare const formatPriceMinor: (valueMinor: MoneyMinor, language: string, { currency, minimumFractionDigits, maximumFractionDigits, }?: {
|
|
3
|
+
currency?: string;
|
|
4
|
+
minimumFractionDigits?: number;
|
|
5
|
+
maximumFractionDigits?: number;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const getMinDayPriceMinor: (prices: Array<{
|
|
8
|
+
value?: MoneyMinor;
|
|
9
|
+
unit?: string;
|
|
10
|
+
}>) => MoneyMinor | null;
|
|
11
|
+
export declare const getAvailabilityVariant: (status: string | undefined) => {
|
|
12
|
+
labelKey: string;
|
|
13
|
+
variant: "secondary" | "outline" | "destructive";
|
|
14
|
+
};
|
|
15
|
+
export { cn } from '@rpcbase/ui';
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn as v } from "@rpcbase/ui";
|
|
2
|
+
const l = (t, r, {
|
|
3
|
+
currency: a = "EUR",
|
|
4
|
+
minimumFractionDigits: n,
|
|
5
|
+
maximumFractionDigits: i
|
|
6
|
+
} = {}) => {
|
|
7
|
+
const e = t / 100;
|
|
8
|
+
try {
|
|
9
|
+
return new Intl.NumberFormat(r, {
|
|
10
|
+
style: "currency",
|
|
11
|
+
currency: a,
|
|
12
|
+
minimumFractionDigits: n,
|
|
13
|
+
maximumFractionDigits: i
|
|
14
|
+
}).format(e);
|
|
15
|
+
} catch {
|
|
16
|
+
return `${e}€`;
|
|
17
|
+
}
|
|
18
|
+
}, o = (t) => {
|
|
19
|
+
const r = t.filter((a) => typeof a?.value == "number" && (a?.unit ?? "day") === "day").map((a) => a.value);
|
|
20
|
+
return r.length === 0 ? null : Math.min(...r);
|
|
21
|
+
}, u = (t) => t === "OUT_OF_STOCK" ? { labelKey: "availability_out_of_stock", variant: "destructive" } : t === "LOW_STOCK" ? { labelKey: "availability_low_stock", variant: "outline" } : { labelKey: "availability_in_stock", variant: "secondary" };
|
|
22
|
+
export {
|
|
23
|
+
v as cn,
|
|
24
|
+
l as formatPriceMinor,
|
|
25
|
+
u as getAvailabilityVariant,
|
|
26
|
+
o as getMinDayPriceMinor
|
|
27
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StorefrontPreset } from '../data/config';
|
|
2
|
+
import { StorefrontConfiguration } from '../storefrontSchemas';
|
|
3
|
+
export declare function buildWhatsAppHref(phone: string | undefined, message?: string): string | undefined;
|
|
4
|
+
export declare function resolveStorefrontWhatsAppContact({ preset, storefrontConfiguration, language, }: {
|
|
5
|
+
preset: StorefrontPreset;
|
|
6
|
+
storefrontConfiguration?: StorefrontConfiguration;
|
|
7
|
+
language: string;
|
|
8
|
+
}): {
|
|
9
|
+
href: string;
|
|
10
|
+
phoneDisplay: string;
|
|
11
|
+
} | undefined;
|
|
12
|
+
export declare function resolveStorefrontWhatsAppHref(params: {
|
|
13
|
+
preset: StorefrontPreset;
|
|
14
|
+
storefrontConfiguration?: StorefrontConfiguration;
|
|
15
|
+
language: string;
|
|
16
|
+
}): string | undefined;
|
|
17
|
+
//# sourceMappingURL=whatsapp.d.ts.map
|