@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,24 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../assets/whatsapp.svg";
|
|
3
|
+
import { useWhatsAppFloatingButton as a } from "./useWhatsAppFloatingButton.js";
|
|
4
|
+
const f = (o) => {
|
|
5
|
+
const { href: n, containerRef: t, bubbleRef: r, onLinkClick: l } = a(o);
|
|
6
|
+
return typeof window > "u" || !n ? null : /* @__PURE__ */ e("div", { ref: t, className: "fixed bottom-4 right-4 z-50 pointer-events-none select-none", children: /* @__PURE__ */ e("div", { ref: r, className: "pointer-events-auto", style: { touchAction: "none" }, children: /* @__PURE__ */ i(
|
|
7
|
+
"a",
|
|
8
|
+
{
|
|
9
|
+
href: n,
|
|
10
|
+
target: "_blank",
|
|
11
|
+
rel: "nofollow noopener noreferrer",
|
|
12
|
+
className: "group inline-flex h-14 w-14 md:h-12 md:w-12 items-center justify-center rounded-full bg-[#25D366] hover:bg-[#1DA851] shadow-lg ring-1 ring-[#1DA851] transition-colors p-1",
|
|
13
|
+
"aria-label": "WhatsApp",
|
|
14
|
+
onClick: l,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ e("img", { src: s, className: "h-9 w-9 md:h-8 md:w-8", alt: "WhatsApp logo" }),
|
|
17
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "WhatsApp" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
) }) });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
f as WhatsAppFloatingButton
|
|
24
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useRef as i, useEffect as N, useCallback as q } from "react";
|
|
2
|
+
import H from "interactjs";
|
|
3
|
+
const W = (C = {}) => {
|
|
4
|
+
const { href: B } = C, D = B, $ = i(null), b = i(null), x = i(!1), y = i(!1), e = i({ x: 0, y: 0 }), d = i(null), s = i(null);
|
|
5
|
+
N(() => {
|
|
6
|
+
const r = b.current;
|
|
7
|
+
if (!r) return;
|
|
8
|
+
const m = r.getBoundingClientRect();
|
|
9
|
+
d.current = {
|
|
10
|
+
left: m.left,
|
|
11
|
+
top: m.top,
|
|
12
|
+
width: m.width,
|
|
13
|
+
height: m.height
|
|
14
|
+
};
|
|
15
|
+
const p = 8, M = () => {
|
|
16
|
+
if (!d.current) return e.current;
|
|
17
|
+
const { left: t, top: n, width: c, height: g } = d.current, o = p - t, w = p - n, u = window.innerWidth - p - c - t, a = window.innerHeight - p - g - n, l = Math.min(Math.max(e.current.x, o), u), f = Math.min(Math.max(e.current.y, w), a);
|
|
18
|
+
return e.current = { x: l, y: f }, { x: l, y: f, minX: o, minY: w, maxX: u, maxY: a };
|
|
19
|
+
}, h = () => {
|
|
20
|
+
const { x: t, y: n } = M();
|
|
21
|
+
r.style.transform = `translate3d(${t}px, ${n}px, 0)`;
|
|
22
|
+
}, R = () => {
|
|
23
|
+
s.current != null && (cancelAnimationFrame(s.current), s.current = null), y.current = !1;
|
|
24
|
+
}, z = typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches, E = (t, n) => {
|
|
25
|
+
if (z) {
|
|
26
|
+
h();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let c = performance.now();
|
|
30
|
+
y.current = !0;
|
|
31
|
+
const g = 0.92, o = 0.7, w = 20, u = (a) => {
|
|
32
|
+
const l = (a - c) / 1e3;
|
|
33
|
+
c = a, e.current.x += t * l, e.current.y += n * l;
|
|
34
|
+
const { minX: f, minY: F, maxX: X, maxY: Y } = M();
|
|
35
|
+
if (e.current.x <= f + 1e-3 && t < 0 ? (e.current.x = f, t = -t * o) : e.current.x >= X - 1e-3 && t > 0 && (e.current.x = X, t = -t * o), e.current.y <= F + 1e-3 && n < 0 ? (e.current.y = F, n = -n * o) : e.current.y >= Y - 1e-3 && n > 0 && (e.current.y = Y, n = -n * o), t *= g, n *= g, r.style.transform = `translate3d(${e.current.x}px, ${e.current.y}px, 0)`, Math.hypot(t, n) < w) {
|
|
36
|
+
R();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
s.current = requestAnimationFrame(u);
|
|
40
|
+
};
|
|
41
|
+
s.current = requestAnimationFrame(u);
|
|
42
|
+
}, L = H(r).draggable({ inertia: !1 }).styleCursor(!1).on("dragstart", () => {
|
|
43
|
+
R(), x.current = !0;
|
|
44
|
+
}).on("dragmove", (t) => {
|
|
45
|
+
e.current.x += t.dx, e.current.y += t.dy, h();
|
|
46
|
+
}).on("dragend", (t) => {
|
|
47
|
+
const n = Number.isFinite(t.velocityX) ? t.velocityX : 0, c = Number.isFinite(t.velocityY) ? t.velocityY : 0;
|
|
48
|
+
x.current = !1, Math.hypot(n, c) >= 10 && E(n, c);
|
|
49
|
+
}), A = () => {
|
|
50
|
+
const t = r.getBoundingClientRect();
|
|
51
|
+
d.current = {
|
|
52
|
+
left: t.left - e.current.x,
|
|
53
|
+
top: t.top - e.current.y,
|
|
54
|
+
width: t.width,
|
|
55
|
+
height: t.height
|
|
56
|
+
}, h();
|
|
57
|
+
};
|
|
58
|
+
return window.addEventListener("resize", A), h(), () => {
|
|
59
|
+
L.unset(), R(), window.removeEventListener("resize", A);
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
62
|
+
const k = q((r) => {
|
|
63
|
+
(x.current || y.current) && (r.preventDefault(), r.stopPropagation());
|
|
64
|
+
}, []);
|
|
65
|
+
return {
|
|
66
|
+
href: D,
|
|
67
|
+
containerRef: $,
|
|
68
|
+
bubbleRef: b,
|
|
69
|
+
onLinkClick: k
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
W as useWhatsAppFloatingButton
|
|
74
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useRef as w, useEffect as R } from "react";
|
|
3
|
+
import { Loader2 as H, CreditCard as j } from "lucide-react";
|
|
4
|
+
import { useTranslation as T } from "react-i18next";
|
|
5
|
+
import { getMollieCardStyles as z } from "../../lib/mollieComponentStyles.js";
|
|
6
|
+
import { Button as I } from "../../ui/button.js";
|
|
7
|
+
import { Label as _ } from "../../ui/label.js";
|
|
8
|
+
const $ = "https://js.mollie.com/v1/mollie.js";
|
|
9
|
+
let v = null;
|
|
10
|
+
const P = async () => {
|
|
11
|
+
if (typeof window > "u")
|
|
12
|
+
throw new Error("Mollie is not available in this environment.");
|
|
13
|
+
const o = window.Mollie;
|
|
14
|
+
return typeof o == "function" ? o : (v || (v = new Promise((s, d) => {
|
|
15
|
+
const f = document.querySelector(`script[src="${$}"]`), p = () => {
|
|
16
|
+
const r = window.Mollie;
|
|
17
|
+
if (typeof r == "function") {
|
|
18
|
+
s(r);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
d(new Error("Mollie.js did not expose a Mollie factory."));
|
|
22
|
+
};
|
|
23
|
+
if (f) {
|
|
24
|
+
f.addEventListener("load", p, { once: !0 }), f.addEventListener("error", () => d(new Error("Failed to load Mollie.js.")), { once: !0 });
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const a = document.createElement("script");
|
|
28
|
+
a.src = $, a.async = !0, a.addEventListener("load", p, { once: !0 }), a.addEventListener("error", () => d(new Error("Failed to load Mollie.js.")), { once: !0 }), document.body.appendChild(a);
|
|
29
|
+
}).catch((s) => {
|
|
30
|
+
throw v = null, s;
|
|
31
|
+
})), v);
|
|
32
|
+
}, q = (o) => o.toLowerCase().startsWith("fr") ? "fr_FR" : "en_US";
|
|
33
|
+
function Q({
|
|
34
|
+
profileId: o,
|
|
35
|
+
testmode: s,
|
|
36
|
+
disabled: d = !1,
|
|
37
|
+
submitLabel: f,
|
|
38
|
+
submittingLabel: p,
|
|
39
|
+
onSubmit: a
|
|
40
|
+
}) {
|
|
41
|
+
const { t: r, i18n: M } = T(), [D, x] = N(!0), [b, C] = N(!1), [k, l] = N(null), t = w({
|
|
42
|
+
cardHolder: `mollie-card-holder-${Math.random().toString(36).slice(2, 10)}`,
|
|
43
|
+
cardNumber: `mollie-card-number-${Math.random().toString(36).slice(2, 10)}`,
|
|
44
|
+
expiryDate: `mollie-expiry-date-${Math.random().toString(36).slice(2, 10)}`,
|
|
45
|
+
verificationCode: `mollie-verification-code-${Math.random().toString(36).slice(2, 10)}`
|
|
46
|
+
}), m = w(null), g = w([]);
|
|
47
|
+
return R(() => {
|
|
48
|
+
let u = !1;
|
|
49
|
+
return x(!0), l(null), m.current = null, (async () => {
|
|
50
|
+
try {
|
|
51
|
+
const n = await P();
|
|
52
|
+
if (u) return;
|
|
53
|
+
const i = n(o, {
|
|
54
|
+
locale: q(M.language),
|
|
55
|
+
testmode: s
|
|
56
|
+
}), h = z(), y = "", E = i.createComponent("cardHolder", {
|
|
57
|
+
styles: h,
|
|
58
|
+
label: y
|
|
59
|
+
}), F = i.createComponent("cardNumber", {
|
|
60
|
+
styles: h,
|
|
61
|
+
label: y
|
|
62
|
+
}), S = i.createComponent("expiryDate", {
|
|
63
|
+
styles: h,
|
|
64
|
+
label: y
|
|
65
|
+
}), L = i.createComponent("verificationCode", {
|
|
66
|
+
styles: h,
|
|
67
|
+
label: y
|
|
68
|
+
});
|
|
69
|
+
E.mount(`#${t.current.cardHolder}`), F.mount(`#${t.current.cardNumber}`), S.mount(`#${t.current.expiryDate}`), L.mount(`#${t.current.verificationCode}`), m.current = i, g.current = [E, F, S, L];
|
|
70
|
+
} catch (n) {
|
|
71
|
+
if (u) return;
|
|
72
|
+
l(n instanceof Error ? n.message : r("secure_payment_link.errors.payment_failed"));
|
|
73
|
+
} finally {
|
|
74
|
+
u || x(!1);
|
|
75
|
+
}
|
|
76
|
+
})(), () => {
|
|
77
|
+
u = !0;
|
|
78
|
+
for (const n of g.current)
|
|
79
|
+
n.unmount?.();
|
|
80
|
+
g.current = [], m.current = null;
|
|
81
|
+
};
|
|
82
|
+
}, [M.language, o, r, s]), /* @__PURE__ */ c("form", { onSubmit: async (u) => {
|
|
83
|
+
if (u.preventDefault(), !d) {
|
|
84
|
+
if (!m.current) {
|
|
85
|
+
l(r("secure_payment_link.errors.mollie_not_ready"));
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
C(!0), l(null);
|
|
89
|
+
try {
|
|
90
|
+
const n = await m.current.createToken();
|
|
91
|
+
if (n.error?.message) {
|
|
92
|
+
l(n.error.message);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const i = typeof n.token == "string" ? n.token.trim() : "";
|
|
96
|
+
if (!i) {
|
|
97
|
+
l(r("secure_payment_link.errors.payment_failed"));
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
await a(i);
|
|
101
|
+
} catch (n) {
|
|
102
|
+
l(n instanceof Error ? n.message : r("secure_payment_link.errors.payment_failed"));
|
|
103
|
+
} finally {
|
|
104
|
+
C(!1);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, className: "grid gap-3", children: [
|
|
108
|
+
/* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
109
|
+
/* @__PURE__ */ e(_, { htmlFor: t.current.cardHolder, children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.cardholder_name_label") }) }),
|
|
110
|
+
/* @__PURE__ */ e("div", { className: "min-h-11", children: /* @__PURE__ */ e("div", { id: t.current.cardHolder, className: "min-h-11" }) })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
113
|
+
/* @__PURE__ */ e(_, { htmlFor: t.current.cardNumber, children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_number_label") }) }),
|
|
114
|
+
/* @__PURE__ */ e("div", { className: "min-h-11", children: /* @__PURE__ */ e("div", { id: t.current.cardNumber, className: "min-h-11" }) })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ c("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
117
|
+
/* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
118
|
+
/* @__PURE__ */ e(_, { htmlFor: t.current.expiryDate, children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_expiry_label") }) }),
|
|
119
|
+
/* @__PURE__ */ e("div", { className: "min-h-11", children: /* @__PURE__ */ e("div", { id: t.current.expiryDate, className: "min-h-11" }) })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ c("div", { className: "space-y-1", children: [
|
|
122
|
+
/* @__PURE__ */ e(_, { htmlFor: t.current.verificationCode, children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_cvc_label") }) }),
|
|
123
|
+
/* @__PURE__ */ e("div", { className: "min-h-11", children: /* @__PURE__ */ e("div", { id: t.current.verificationCode, className: "min-h-11" }) })
|
|
124
|
+
] })
|
|
125
|
+
] }),
|
|
126
|
+
k ? /* @__PURE__ */ e("p", { className: "text-sm text-red-600", children: /* @__PURE__ */ e("span", { children: k }) }) : null,
|
|
127
|
+
/* @__PURE__ */ c(I, { type: "submit", disabled: d || b || D || !m.current, className: "h-11 gap-2", children: [
|
|
128
|
+
b ? /* @__PURE__ */ e(H, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }) : /* @__PURE__ */ e(j, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
129
|
+
/* @__PURE__ */ e("span", { children: b ? p ?? r("secure_payment_link.form.submitting_button") : f ?? r("secure_payment_link.form.submit_button") })
|
|
130
|
+
] })
|
|
131
|
+
] });
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
Q as MollieCardFieldsForm
|
|
135
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import { useStripe as w, useElements as M, CardNumberElement as g, CardExpiryElement as S, CardCvcElement as F } from "@stripe/react-stripe-js";
|
|
4
|
+
import { Loader2 as j, CreditCard as q } from "lucide-react";
|
|
5
|
+
import { useTranslation as z } from "react-i18next";
|
|
6
|
+
import { Button as I } from "../../ui/button.js";
|
|
7
|
+
import { Input as L } from "../../ui/input.js";
|
|
8
|
+
import { Label as m } from "../../ui/label.js";
|
|
9
|
+
function K({
|
|
10
|
+
email: N = "",
|
|
11
|
+
requireEmail: v = !0,
|
|
12
|
+
disabled: h = !1,
|
|
13
|
+
submitLabel: k,
|
|
14
|
+
submittingLabel: x,
|
|
15
|
+
onSubmit: C
|
|
16
|
+
}) {
|
|
17
|
+
const { t: r } = z(), d = w(), l = M(), [_, E] = u(""), [t, s] = u(!1), [y, a] = u(null);
|
|
18
|
+
return /* @__PURE__ */ n("form", { onSubmit: async (c) => {
|
|
19
|
+
if (c.preventDefault(), !d || !l) {
|
|
20
|
+
a(r("secure_payment_link.errors.stripe_not_ready"));
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const o = N.trim(), p = _.trim();
|
|
24
|
+
if (!p) {
|
|
25
|
+
a(r("secure_payment_link.form.name_required"));
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (v && !o) {
|
|
29
|
+
a(r("secure_payment_link.form.email_required"));
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const f = l.getElement(g);
|
|
33
|
+
if (!f) {
|
|
34
|
+
a(r("secure_payment_link.errors.stripe_not_ready"));
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
s(!0), a(null);
|
|
38
|
+
const i = await d.createPaymentMethod({
|
|
39
|
+
type: "card",
|
|
40
|
+
card: f,
|
|
41
|
+
billing_details: {
|
|
42
|
+
name: p,
|
|
43
|
+
email: o || void 0
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (i.error || !i.paymentMethod) {
|
|
47
|
+
s(!1), a(i.error?.message ?? r("secure_payment_link.errors.payment_failed"));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
await C({
|
|
52
|
+
paymentMethodId: i.paymentMethod.id,
|
|
53
|
+
cardholderName: p,
|
|
54
|
+
email: o || void 0
|
|
55
|
+
});
|
|
56
|
+
} catch (b) {
|
|
57
|
+
a(b instanceof Error ? b.message : r("secure_payment_link.errors.payment_failed"));
|
|
58
|
+
} finally {
|
|
59
|
+
s(!1);
|
|
60
|
+
}
|
|
61
|
+
}, className: "grid gap-3", children: [
|
|
62
|
+
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
63
|
+
/* @__PURE__ */ e(m, { htmlFor: "payment-cardholder-name", children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.cardholder_name_label") }) }),
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
L,
|
|
66
|
+
{
|
|
67
|
+
id: "payment-cardholder-name",
|
|
68
|
+
value: _,
|
|
69
|
+
onChange: (c) => {
|
|
70
|
+
E(c.target.value);
|
|
71
|
+
},
|
|
72
|
+
placeholder: r("secure_payment_link.form.cardholder_name_placeholder"),
|
|
73
|
+
disabled: h || t
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
78
|
+
/* @__PURE__ */ e(m, { htmlFor: "payment-card-number", children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_number_label") }) }),
|
|
79
|
+
/* @__PURE__ */ e("div", { className: "rounded-md border border-slate-200 bg-white px-3 py-2", children: /* @__PURE__ */ e(g, { id: "payment-card-number" }) })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ n("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
82
|
+
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
83
|
+
/* @__PURE__ */ e(m, { htmlFor: "payment-card-expiry", children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_expiry_label") }) }),
|
|
84
|
+
/* @__PURE__ */ e("div", { className: "rounded-md border border-slate-200 bg-white px-3 py-2", children: /* @__PURE__ */ e(S, { id: "payment-card-expiry" }) })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
87
|
+
/* @__PURE__ */ e(m, { htmlFor: "payment-card-cvc", children: /* @__PURE__ */ e("span", { children: r("secure_payment_link.form.card_cvc_label") }) }),
|
|
88
|
+
/* @__PURE__ */ e("div", { className: "rounded-md border border-slate-200 bg-white px-3 py-2", children: /* @__PURE__ */ e(F, { id: "payment-card-cvc" }) })
|
|
89
|
+
] })
|
|
90
|
+
] }),
|
|
91
|
+
y ? /* @__PURE__ */ e("p", { className: "text-sm text-red-600", children: /* @__PURE__ */ e("span", { children: y }) }) : null,
|
|
92
|
+
/* @__PURE__ */ n(I, { type: "submit", disabled: h || t || !d || !l, className: "gap-2", children: [
|
|
93
|
+
t ? /* @__PURE__ */ e(j, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }) : /* @__PURE__ */ e(q, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
94
|
+
/* @__PURE__ */ e("span", { children: t ? x ?? r("secure_payment_link.form.submitting_button") : k ?? r("secure_payment_link.form.submit_button") })
|
|
95
|
+
] })
|
|
96
|
+
] });
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
K as StripeCardFieldsForm
|
|
100
|
+
};
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const DEFAULT_STOREFRONT_PRESET: StorefrontPreset;
|
|
2
|
+
|
|
3
|
+
export declare const getStorefrontPreset: (storeSlug?: string | null) => StorefrontPreset;
|
|
4
|
+
|
|
5
|
+
export declare const STOREFRONT_PRESETS: Record<string, StorefrontPreset>;
|
|
6
|
+
|
|
7
|
+
export declare type StorefrontPreset = {
|
|
8
|
+
name: string;
|
|
9
|
+
tagline: string;
|
|
10
|
+
hero_title: string;
|
|
11
|
+
hero_description: string;
|
|
12
|
+
address: string;
|
|
13
|
+
email: string;
|
|
14
|
+
phone_display: string;
|
|
15
|
+
phone_href: string;
|
|
16
|
+
whatsapp_href: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { }
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
name: z.ZodString;
|
|
8
|
+
emailAddress: z.ZodString;
|
|
9
|
+
phoneNumber: z.ZodString;
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
|
|
13
|
+
export declare type ResponsePayload = z.infer<typeof responseSchema>;
|
|
14
|
+
|
|
15
|
+
export declare const responseSchema: z.ZodObject<{
|
|
16
|
+
success: z.ZodBoolean;
|
|
17
|
+
error: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
|
|
20
|
+
export declare const ROUTE = "/api/public/storefront/contact-form";
|
|
21
|
+
|
|
22
|
+
export { }
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare type ContractSaleDocument = z.infer<typeof contractSaleDocumentSchema>;
|
|
4
|
+
|
|
5
|
+
export declare type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
|
|
6
|
+
|
|
7
|
+
export declare type ContractSaleDocumentAcceptanceLevel = z.infer<typeof contractSaleDocumentAcceptanceLevelSchema>;
|
|
8
|
+
|
|
9
|
+
export declare const contractSaleDocumentAcceptanceLevelSchema: z.ZodEnum<{
|
|
10
|
+
none: "none";
|
|
11
|
+
acceptance: "acceptance";
|
|
12
|
+
signature: "signature";
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
export declare type ContractSaleDocumentAcceptanceRecord = z.infer<typeof contractSaleDocumentAcceptanceRecordSchema>;
|
|
16
|
+
|
|
17
|
+
export declare const contractSaleDocumentAcceptanceRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
mode: z.ZodLiteral<"acceptance">;
|
|
19
|
+
date: z.ZodDate;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
mode: z.ZodLiteral<"signature">;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
phone: z.ZodString;
|
|
24
|
+
signature: z.ZodString;
|
|
25
|
+
date: z.ZodDate;
|
|
26
|
+
}, z.core.$strip>], "mode">;
|
|
27
|
+
|
|
28
|
+
export declare const contractSaleDocumentAcceptanceSchema: z.ZodObject<{
|
|
29
|
+
mode: z.ZodLiteral<"acceptance">;
|
|
30
|
+
date: z.ZodDate;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
|
|
33
|
+
export declare const contractSaleDocumentAddressSchema: z.ZodString;
|
|
34
|
+
|
|
35
|
+
export declare type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
|
|
36
|
+
|
|
37
|
+
export declare const contractSaleDocumentContactSchema: z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
address: z.ZodOptional<z.ZodString>;
|
|
40
|
+
richAddress: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
provider: z.ZodLiteral<"google_places">;
|
|
42
|
+
placeId: z.ZodString;
|
|
43
|
+
label: z.ZodString;
|
|
44
|
+
fullLabel: z.ZodOptional<z.ZodString>;
|
|
45
|
+
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
46
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
lat: z.ZodNumber;
|
|
48
|
+
lng: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
longText: z.ZodString;
|
|
52
|
+
shortText: z.ZodString;
|
|
53
|
+
types: z.ZodArray<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>>>;
|
|
55
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
email: z.ZodOptional<z.ZodString>;
|
|
59
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
|
|
62
|
+
export declare type ContractSaleDocumentKind = z.infer<typeof contractSaleDocumentKindSchema>;
|
|
63
|
+
|
|
64
|
+
export declare const contractSaleDocumentKindSchema: z.ZodEnum<{
|
|
65
|
+
invoice: "invoice";
|
|
66
|
+
credit_note: "credit_note";
|
|
67
|
+
}>;
|
|
68
|
+
|
|
69
|
+
export declare type ContractSaleDocumentLanguage = z.infer<typeof contractSaleDocumentLanguageSchema>;
|
|
70
|
+
|
|
71
|
+
export declare type ContractSaleDocumentLanguageCode = z.infer<typeof contractSaleDocumentLanguageCodeSchema>;
|
|
72
|
+
|
|
73
|
+
export declare const contractSaleDocumentLanguageCodeSchema: z.ZodEnum<{
|
|
74
|
+
fr: "fr";
|
|
75
|
+
en: "en";
|
|
76
|
+
}>;
|
|
77
|
+
|
|
78
|
+
export declare const contractSaleDocumentLanguageSchema: z.ZodObject<{
|
|
79
|
+
legal: z.ZodEnum<{
|
|
80
|
+
fr: "fr";
|
|
81
|
+
en: "en";
|
|
82
|
+
}>;
|
|
83
|
+
customer: z.ZodEnum<{
|
|
84
|
+
fr: "fr";
|
|
85
|
+
en: "en";
|
|
86
|
+
}>;
|
|
87
|
+
translation: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
fr: "fr";
|
|
89
|
+
en: "en";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
|
|
93
|
+
export declare type ContractSaleDocumentLineItem = z.infer<typeof contractSaleDocumentLineItemSchema>;
|
|
94
|
+
|
|
95
|
+
export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodNumber;
|
|
97
|
+
description: z.ZodString;
|
|
98
|
+
quantity: z.ZodNumber;
|
|
99
|
+
unitPrice: z.ZodNumber;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
|
|
102
|
+
export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
kind: z.ZodEnum<{
|
|
105
|
+
invoice: "invoice";
|
|
106
|
+
credit_note: "credit_note";
|
|
107
|
+
}>;
|
|
108
|
+
language: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
legal: z.ZodEnum<{
|
|
110
|
+
fr: "fr";
|
|
111
|
+
en: "en";
|
|
112
|
+
}>;
|
|
113
|
+
customer: z.ZodEnum<{
|
|
114
|
+
fr: "fr";
|
|
115
|
+
en: "en";
|
|
116
|
+
}>;
|
|
117
|
+
translation: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
fr: "fr";
|
|
119
|
+
en: "en";
|
|
120
|
+
}>>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
saleDocumentNumber: z.ZodString;
|
|
123
|
+
currency: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
124
|
+
date: z.ZodDate;
|
|
125
|
+
dueDate: z.ZodDate;
|
|
126
|
+
issuer: z.ZodObject<{
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
address: z.ZodOptional<z.ZodString>;
|
|
129
|
+
richAddress: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
provider: z.ZodLiteral<"google_places">;
|
|
131
|
+
placeId: z.ZodString;
|
|
132
|
+
label: z.ZodString;
|
|
133
|
+
fullLabel: z.ZodOptional<z.ZodString>;
|
|
134
|
+
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
135
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
lat: z.ZodNumber;
|
|
137
|
+
lng: z.ZodNumber;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
longText: z.ZodString;
|
|
141
|
+
shortText: z.ZodString;
|
|
142
|
+
types: z.ZodArray<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>>>;
|
|
144
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
email: z.ZodOptional<z.ZodString>;
|
|
148
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
recipient: z.ZodObject<{
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
address: z.ZodOptional<z.ZodString>;
|
|
153
|
+
richAddress: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
provider: z.ZodLiteral<"google_places">;
|
|
155
|
+
placeId: z.ZodString;
|
|
156
|
+
label: z.ZodString;
|
|
157
|
+
fullLabel: z.ZodOptional<z.ZodString>;
|
|
158
|
+
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
159
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
lat: z.ZodNumber;
|
|
161
|
+
lng: z.ZodNumber;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
longText: z.ZodString;
|
|
165
|
+
shortText: z.ZodString;
|
|
166
|
+
types: z.ZodArray<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>>;
|
|
168
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
email: z.ZodOptional<z.ZodString>;
|
|
172
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
items: z.ZodArray<z.ZodObject<{
|
|
175
|
+
id: z.ZodNumber;
|
|
176
|
+
description: z.ZodString;
|
|
177
|
+
quantity: z.ZodNumber;
|
|
178
|
+
unitPrice: z.ZodNumber;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
terms: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
title: z.ZodString;
|
|
182
|
+
articles: z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
title: z.ZodString;
|
|
185
|
+
body: z.ZodString;
|
|
186
|
+
translationTitle: z.ZodOptional<z.ZodString>;
|
|
187
|
+
translationBody: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
192
|
+
none: "none";
|
|
193
|
+
acceptance: "acceptance";
|
|
194
|
+
signature: "signature";
|
|
195
|
+
}>>;
|
|
196
|
+
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
+
mode: z.ZodLiteral<"acceptance">;
|
|
198
|
+
date: z.ZodDate;
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
200
|
+
mode: z.ZodLiteral<"signature">;
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
phone: z.ZodString;
|
|
203
|
+
signature: z.ZodString;
|
|
204
|
+
date: z.ZodDate;
|
|
205
|
+
}, z.core.$strip>], "mode">>;
|
|
206
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
|
|
209
|
+
export declare type ContractSaleDocumentSignature = z.infer<typeof contractSaleDocumentSignatureSchema>;
|
|
210
|
+
|
|
211
|
+
export declare const contractSaleDocumentSignatureSchema: z.ZodObject<{
|
|
212
|
+
mode: z.ZodLiteral<"signature">;
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
phone: z.ZodString;
|
|
215
|
+
signature: z.ZodString;
|
|
216
|
+
date: z.ZodDate;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
|
|
219
|
+
export declare type ContractSaleDocumentTermArticle = z.infer<typeof contractSaleDocumentTermArticleSchema>;
|
|
220
|
+
|
|
221
|
+
export declare const contractSaleDocumentTermArticleSchema: z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
title: z.ZodString;
|
|
224
|
+
body: z.ZodString;
|
|
225
|
+
translationTitle: z.ZodOptional<z.ZodString>;
|
|
226
|
+
translationBody: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
|
|
229
|
+
export declare type ContractSaleDocumentTerms = z.infer<typeof contractSaleDocumentTermsSchema>;
|
|
230
|
+
|
|
231
|
+
export declare const contractSaleDocumentTermsSchema: z.ZodObject<{
|
|
232
|
+
title: z.ZodString;
|
|
233
|
+
articles: z.ZodArray<z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
title: z.ZodString;
|
|
236
|
+
body: z.ZodString;
|
|
237
|
+
translationTitle: z.ZodOptional<z.ZodString>;
|
|
238
|
+
translationBody: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
|
|
242
|
+
export { }
|