@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,131 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { Link as B } from "@rpcbase/router";
|
|
3
|
+
import { cn as c } from "@rpcbase/ui";
|
|
4
|
+
import { Trash2 as F, ArrowRight as S } from "lucide-react";
|
|
5
|
+
import { useTranslation as W } from "react-i18next";
|
|
6
|
+
import { formatPriceMinor as i } from "../../lib/utils.js";
|
|
7
|
+
import { Badge as d } from "../../ui/badge.js";
|
|
8
|
+
import { Button as m } from "../../ui/button.js";
|
|
9
|
+
import { Card as D } from "../../ui/card.js";
|
|
10
|
+
import { Input as T } from "../../ui/input.js";
|
|
11
|
+
import { ProductWarningNotice as E } from "../ProductWarningNotice/index.js";
|
|
12
|
+
function A({
|
|
13
|
+
lines: r,
|
|
14
|
+
itemCount: y,
|
|
15
|
+
totalPerDayMinor: v,
|
|
16
|
+
estimatedDays: o,
|
|
17
|
+
estimatedTotalMinor: p,
|
|
18
|
+
discountedEstimatedTotalMinor: _,
|
|
19
|
+
discountAmountMinor: n,
|
|
20
|
+
couponCode: w,
|
|
21
|
+
durationLabel: u,
|
|
22
|
+
title: k,
|
|
23
|
+
description: h,
|
|
24
|
+
checkoutPath: x,
|
|
25
|
+
showCheckoutAction: j = !1,
|
|
26
|
+
showClearAction: q = !1,
|
|
27
|
+
editable: C = !0,
|
|
28
|
+
stickyTopClassName: V = "top-24",
|
|
29
|
+
onQuantityChange: f,
|
|
30
|
+
onRemove: b,
|
|
31
|
+
onClear: N
|
|
32
|
+
}) {
|
|
33
|
+
const { t, i18n: s } = W();
|
|
34
|
+
return /* @__PURE__ */ l(D, { className: c("sticky border-slate-200 bg-white shadow-sm", V), children: [
|
|
35
|
+
/* @__PURE__ */ l("div", { className: "border-b border-slate-200 px-4 py-4", children: [
|
|
36
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
|
|
37
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: k ?? t("cart_title") }) }),
|
|
38
|
+
/* @__PURE__ */ e(d, { variant: "outline", className: "border-slate-200 bg-white text-slate-700", children: /* @__PURE__ */ e("span", { children: t("cart_items_count", { count: y }) }) })
|
|
39
|
+
] }),
|
|
40
|
+
h ? /* @__PURE__ */ e("p", { className: "mt-1 text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: h }) }) : null
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ l("div", { className: "grid gap-3 p-4", children: [
|
|
43
|
+
r.length === 0 ? /* @__PURE__ */ e("p", { className: "text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("cart_empty") }) }) : /* @__PURE__ */ e("div", { className: "grid gap-3", children: r.map((a) => {
|
|
44
|
+
const L = i(a.unitPriceMinor, s.language), P = a.insufficientCapacity === !0, z = a.availabilityIssue === "quantity_unavailable" ? t("availability_quantity_unavailable") : t("availability_out_of_stock");
|
|
45
|
+
return /* @__PURE__ */ l(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: "flex items-start justify-between gap-3 rounded-xl border border-slate-200 p-3",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
51
|
+
/* @__PURE__ */ e("p", { className: "truncate text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: a.productName }) }),
|
|
52
|
+
a.productVariantLabel ? /* @__PURE__ */ e("p", { className: "text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: `${t(a.productVariantIsSize ? "product_size_label" : "product_variant_label")}: ${a.productVariantLabel}` }) }) : null,
|
|
53
|
+
a.productVariantDescription ? /* @__PURE__ */ e("p", { className: "text-xs text-slate-500", children: /* @__PURE__ */ e("span", { children: a.productVariantDescription }) }) : null,
|
|
54
|
+
/* @__PURE__ */ e(E, { warning: a.productWarning }),
|
|
55
|
+
/* @__PURE__ */ e("p", { className: "text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: t("cart_line_meta", { quantity: a.quantity, price: L }) }) }),
|
|
56
|
+
P ? /* @__PURE__ */ e("div", { className: "flex flex-col items-start gap-1 pt-1", children: /* @__PURE__ */ e(d, { variant: "destructive", children: /* @__PURE__ */ e("span", { children: z }) }) }) : null
|
|
57
|
+
] }),
|
|
58
|
+
C ? /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
59
|
+
f ? /* @__PURE__ */ e(
|
|
60
|
+
T,
|
|
61
|
+
{
|
|
62
|
+
type: "number",
|
|
63
|
+
min: 1,
|
|
64
|
+
max: 99,
|
|
65
|
+
value: a.quantity,
|
|
66
|
+
onChange: (I) => {
|
|
67
|
+
const g = Number(I.target.value);
|
|
68
|
+
f(a.key, Number.isFinite(g) ? g : 0);
|
|
69
|
+
},
|
|
70
|
+
className: "h-9 w-16",
|
|
71
|
+
"aria-label": t("quantity_label")
|
|
72
|
+
}
|
|
73
|
+
) : null,
|
|
74
|
+
b ? /* @__PURE__ */ e(
|
|
75
|
+
m,
|
|
76
|
+
{
|
|
77
|
+
type: "button",
|
|
78
|
+
variant: "ghost",
|
|
79
|
+
size: "icon",
|
|
80
|
+
className: "h-8 w-8 text-slate-500 hover:bg-slate-50 hover:text-slate-700",
|
|
81
|
+
onClick: () => b(a.key),
|
|
82
|
+
"aria-label": t("remove_from_cart"),
|
|
83
|
+
children: /* @__PURE__ */ e(F, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
84
|
+
}
|
|
85
|
+
) : null
|
|
86
|
+
] }) : null
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
a.key
|
|
90
|
+
);
|
|
91
|
+
}) }),
|
|
92
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 border-t border-slate-200 pt-3 text-sm", children: [
|
|
93
|
+
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("cart_total_per_day") }) }),
|
|
94
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: i(v, s.language) }) })
|
|
95
|
+
] }),
|
|
96
|
+
typeof o == "number" && typeof p == "number" ? /* @__PURE__ */ l($, { children: [
|
|
97
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
98
|
+
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_estimated_days", { count: o }) }) }),
|
|
99
|
+
u ? /* @__PURE__ */ e(d, { variant: "outline", className: "border-slate-200 bg-white text-slate-700", children: /* @__PURE__ */ e("span", { children: u }) }) : null
|
|
100
|
+
] }),
|
|
101
|
+
typeof n == "number" && n > 0 ? /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
102
|
+
/* @__PURE__ */ e("p", { className: "text-emerald-700", children: /* @__PURE__ */ e("span", { children: t("checkout_coupon_discount", { code: w ?? "" }) }) }),
|
|
103
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-emerald-700", children: /* @__PURE__ */ e("span", { children: `-${i(n, s.language)}` }) })
|
|
104
|
+
] }) : null,
|
|
105
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
106
|
+
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_estimated_total") }) }),
|
|
107
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: i(_ ?? p, s.language) }) })
|
|
108
|
+
] })
|
|
109
|
+
] }) : null,
|
|
110
|
+
/* @__PURE__ */ l("div", { className: "grid gap-2", children: [
|
|
111
|
+
j && x ? /* @__PURE__ */ e(B, { to: x, className: c(r.length > 0 ? "block" : "hidden"), children: /* @__PURE__ */ l(m, { className: "w-full gap-2", children: [
|
|
112
|
+
/* @__PURE__ */ e("span", { children: t("checkout_button") }),
|
|
113
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
114
|
+
] }) }) : null,
|
|
115
|
+
q && N ? /* @__PURE__ */ e(
|
|
116
|
+
m,
|
|
117
|
+
{
|
|
118
|
+
type: "button",
|
|
119
|
+
variant: "outline",
|
|
120
|
+
className: c(r.length > 0 ? "w-full gap-2" : "hidden"),
|
|
121
|
+
onClick: N,
|
|
122
|
+
children: /* @__PURE__ */ e("span", { children: t("cart_clear") })
|
|
123
|
+
}
|
|
124
|
+
) : null
|
|
125
|
+
] })
|
|
126
|
+
] })
|
|
127
|
+
] });
|
|
128
|
+
}
|
|
129
|
+
export {
|
|
130
|
+
A as StorefrontCartPanel
|
|
131
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StorefrontConfiguration } from '../../storefrontSchemas';
|
|
2
|
+
type StorefrontPopupMessagesProps = {
|
|
3
|
+
storefrontConfiguration?: StorefrontConfiguration;
|
|
4
|
+
};
|
|
5
|
+
export declare function StorefrontPopupMessages({ storefrontConfiguration }: StorefrontPopupMessagesProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useEffect as $ } from "react";
|
|
3
|
+
import { ResponsiveDialog as R, ResponsiveDialogContent as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as I, ResponsiveDialogDescription as P, ResponsiveDialogFooter as O } from "../../chunks/pkg/ui/dist/ResponsiveDialog-D8YzB_3J.js";
|
|
4
|
+
import { useParams as j, useLocation as z } from "@rpcbase/router";
|
|
5
|
+
import { cn as x } from "@rpcbase/ui";
|
|
6
|
+
import { X as H, Info as L } from "lucide-react";
|
|
7
|
+
import { useTranslation as A } from "react-i18next";
|
|
8
|
+
import { buildStorefrontImageUrl as U } from "../../lib/storefrontImage.js";
|
|
9
|
+
import { isAutomationRuntime as C } from "../../lib/isAutomationRuntime.js";
|
|
10
|
+
import { getLocalizedValue as T, getLocalizedEntry as F } from "../../localization.js";
|
|
11
|
+
import { Button as V } from "../../ui/button.js";
|
|
12
|
+
const Z = "loczer-storefront-popup-message-dismissed", k = (e, s) => `${Z}:${e || "storefront"}:${s}`, M = (e) => {
|
|
13
|
+
if (typeof window > "u") return null;
|
|
14
|
+
try {
|
|
15
|
+
return e ? window.sessionStorage : window.localStorage;
|
|
16
|
+
} catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
}, B = ({
|
|
20
|
+
dismissedMessageKeys: e,
|
|
21
|
+
message: s,
|
|
22
|
+
storeSlug: n
|
|
23
|
+
}) => {
|
|
24
|
+
const l = k(n, s.id);
|
|
25
|
+
if (e.has(l)) return !0;
|
|
26
|
+
const r = M(s.showOnEachVisit);
|
|
27
|
+
if (!r) return !1;
|
|
28
|
+
try {
|
|
29
|
+
return r.getItem(l) === "1";
|
|
30
|
+
} catch {
|
|
31
|
+
return !1;
|
|
32
|
+
}
|
|
33
|
+
}, X = (e) => {
|
|
34
|
+
const s = M(e.showOnEachVisit);
|
|
35
|
+
if (s)
|
|
36
|
+
try {
|
|
37
|
+
s.setItem(e.storageKey, "1");
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
}, q = (e) => {
|
|
41
|
+
const s = String(e.getFullYear()).padStart(4, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), l = String(e.getDate()).padStart(2, "0");
|
|
42
|
+
return `${s}-${n}-${l}`;
|
|
43
|
+
}, G = (e) => {
|
|
44
|
+
const s = /* @__PURE__ */ new Date(), n = e?.trim();
|
|
45
|
+
if (n)
|
|
46
|
+
try {
|
|
47
|
+
const l = new Intl.DateTimeFormat("en", {
|
|
48
|
+
day: "2-digit",
|
|
49
|
+
month: "2-digit",
|
|
50
|
+
timeZone: n,
|
|
51
|
+
year: "numeric"
|
|
52
|
+
}).formatToParts(s), r = l.find((i) => i.type === "year")?.value, c = l.find((i) => i.type === "month")?.value, d = l.find((i) => i.type === "day")?.value;
|
|
53
|
+
if (r && c && d)
|
|
54
|
+
return `${r}-${c}-${d}`;
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
return q(s);
|
|
58
|
+
}, Y = (e, s) => !(!e.enabled || e.startDate && e.startDate > s || e.endDate && e.endDate < s), J = ({
|
|
59
|
+
fallbackTitle: e,
|
|
60
|
+
fallbackLanguage: s,
|
|
61
|
+
language: n,
|
|
62
|
+
message: l,
|
|
63
|
+
storeSlug: r
|
|
64
|
+
}) => {
|
|
65
|
+
const c = T(l.title, n, s).trim(), d = T(l.subtitle, n, s).trim(), i = F(l.message, n, s), u = i?.html?.trim() ?? "", p = i?.text?.trim() ?? "", h = l.imageIds.map((g) => U(g, r)).filter((g) => g.length > 0);
|
|
66
|
+
return !c && !d && !u && h.length === 0 ? null : {
|
|
67
|
+
id: l.id,
|
|
68
|
+
title: c || e,
|
|
69
|
+
subtitle: d,
|
|
70
|
+
messageHtml: u,
|
|
71
|
+
messageText: p,
|
|
72
|
+
imageUrls: h,
|
|
73
|
+
showOnEachVisit: l.showOnEachVisit,
|
|
74
|
+
storageKey: k(r, l.id)
|
|
75
|
+
};
|
|
76
|
+
}, Q = "absolute right-5 top-5 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-white/12 text-white/75 ring-1 ring-white/75 backdrop-blur-lg transition hover:bg-white/18 hover:text-white/85 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/85";
|
|
77
|
+
function de({ storefrontConfiguration: e }) {
|
|
78
|
+
const { t: s, i18n: n } = A(), { storeSlug: l } = j(), r = z(), [c, d] = S(null), [i, u] = S(() => /* @__PURE__ */ new Set()), p = l?.trim() || e?.storeSlug || "", h = new URLSearchParams(r.search).get("popup_e2e") === "1", K = C() && !h ? [] : e?.content?.modalMessages ?? [];
|
|
79
|
+
$(() => {
|
|
80
|
+
const a = () => {
|
|
81
|
+
d(G(e?.shop.timeZone));
|
|
82
|
+
};
|
|
83
|
+
a();
|
|
84
|
+
const b = window.setInterval(a, 6e4);
|
|
85
|
+
return () => window.clearInterval(b);
|
|
86
|
+
}, [e?.shop.timeZone]);
|
|
87
|
+
const o = c ? K.filter((a) => Y(a, c)).filter((a) => !B({ dismissedMessageKeys: i, message: a, storeSlug: p })).map((a) => J({
|
|
88
|
+
fallbackTitle: s("storefront_popup_title_fallback"),
|
|
89
|
+
fallbackLanguage: e?.workspace?.workspaceLanguage,
|
|
90
|
+
language: n.language,
|
|
91
|
+
message: a,
|
|
92
|
+
storeSlug: p
|
|
93
|
+
})).find((a) => a !== null) ?? null : null, f = (a) => {
|
|
94
|
+
a || !o || (X(o), u((b) => {
|
|
95
|
+
const N = new Set(b);
|
|
96
|
+
return N.add(o.storageKey), N;
|
|
97
|
+
}));
|
|
98
|
+
};
|
|
99
|
+
if (!o)
|
|
100
|
+
return null;
|
|
101
|
+
const [w, ...y] = o.imageUrls, v = !!w, _ = o.subtitle || o.messageText || o.title;
|
|
102
|
+
return /* @__PURE__ */ t(R, { open: !!o, onOpenChange: f, children: /* @__PURE__ */ t(
|
|
103
|
+
E,
|
|
104
|
+
{
|
|
105
|
+
"data-testid": "storefront-popup-modal-content",
|
|
106
|
+
showCloseButton: !1,
|
|
107
|
+
className: "overflow-hidden border-0 bg-white p-0 shadow-2xl",
|
|
108
|
+
desktopClassName: "max-w-xl gap-0",
|
|
109
|
+
mobileClassName: "max-h-[92dvh] gap-0",
|
|
110
|
+
children: /* @__PURE__ */ m("div", { "data-testid": "storefront-popup-modal", className: "flex max-h-[90dvh] w-full min-w-0 flex-col", children: [
|
|
111
|
+
v ? /* @__PURE__ */ t(D, { className: "w-full p-0 text-left", children: /* @__PURE__ */ m("div", { className: "relative aspect-[17/7] min-h-52 w-full overflow-hidden border-b border-slate-200 sm:aspect-[17/6]", children: [
|
|
112
|
+
/* @__PURE__ */ t(
|
|
113
|
+
"button",
|
|
114
|
+
{
|
|
115
|
+
type: "button",
|
|
116
|
+
className: Q,
|
|
117
|
+
"aria-label": s("close_modal"),
|
|
118
|
+
onClick: () => f(!1),
|
|
119
|
+
children: /* @__PURE__ */ t(H, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ t(
|
|
123
|
+
"img",
|
|
124
|
+
{
|
|
125
|
+
src: w,
|
|
126
|
+
alt: "",
|
|
127
|
+
className: "absolute inset-0 h-full w-full object-cover object-center",
|
|
128
|
+
loading: "lazy"
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-[linear-gradient(180deg,rgba(2,6,23,0.04)_0%,rgba(15,23,42,0.22)_42%,rgba(15,23,42,0.9)_100%)]" }),
|
|
132
|
+
/* @__PURE__ */ m("div", { className: "absolute inset-x-0 bottom-0 px-5 pb-5 sm:px-6", children: [
|
|
133
|
+
/* @__PURE__ */ t(I, { className: "max-w-[28rem] text-left text-3xl font-semibold leading-tight text-white", children: /* @__PURE__ */ t("span", { children: o.title }) }),
|
|
134
|
+
/* @__PURE__ */ t(P, { className: x("mt-2 max-w-[30rem] text-left text-sm leading-6 text-white/85", !o.subtitle && "sr-only"), children: /* @__PURE__ */ t("span", { children: _ }) })
|
|
135
|
+
] })
|
|
136
|
+
] }) }) : /* @__PURE__ */ t(D, { className: "border-b border-slate-200 px-5 py-4 text-left sm:px-6", children: /* @__PURE__ */ m("div", { className: "flex items-start gap-3", children: [
|
|
137
|
+
/* @__PURE__ */ t("span", { className: "mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-slate-950 text-white", children: /* @__PURE__ */ t(L, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
138
|
+
/* @__PURE__ */ m("span", { className: "min-w-0 space-y-1", children: [
|
|
139
|
+
/* @__PURE__ */ t(I, { className: "text-left text-lg font-semibold leading-6 text-slate-950", children: /* @__PURE__ */ t("span", { children: o.title }) }),
|
|
140
|
+
/* @__PURE__ */ t(P, { className: x("text-left text-sm text-slate-600", !o.subtitle && "sr-only"), children: /* @__PURE__ */ t("span", { children: _ }) })
|
|
141
|
+
] })
|
|
142
|
+
] }) }),
|
|
143
|
+
/* @__PURE__ */ t("div", { className: "overflow-y-auto px-5 py-5 sm:px-6", children: /* @__PURE__ */ m("div", { className: "grid gap-5", children: [
|
|
144
|
+
v && y.length > 0 ? /* @__PURE__ */ t("div", { className: "grid grid-cols-3 gap-2", children: y.slice(0, 3).map((a) => /* @__PURE__ */ t("div", { className: "overflow-hidden rounded-lg border border-slate-200 bg-slate-50", children: /* @__PURE__ */ t("img", { src: a, alt: "", className: "aspect-[4/3] h-full w-full object-cover", loading: "lazy" }) }, a)) }) : null,
|
|
145
|
+
o.messageHtml ? /* @__PURE__ */ t(
|
|
146
|
+
"div",
|
|
147
|
+
{
|
|
148
|
+
className: x(
|
|
149
|
+
"text-sm leading-6 text-slate-700 [&_a]:text-slate-950 [&_a]:underline [&_blockquote]:border-l-2 [&_blockquote]:border-slate-300 [&_blockquote]:pl-4 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:text-lg [&_h3]:font-semibold [&_li]:my-1 [&_ol]:list-decimal [&_ol]:pl-6 [&_p]:my-2 [&_ul]:list-disc [&_ul]:pl-6",
|
|
150
|
+
!o.subtitle && "text-base leading-7"
|
|
151
|
+
),
|
|
152
|
+
dangerouslySetInnerHTML: { __html: o.messageHtml }
|
|
153
|
+
}
|
|
154
|
+
) : null
|
|
155
|
+
] }) }),
|
|
156
|
+
/* @__PURE__ */ t(O, { className: "border-t border-slate-200 px-5 py-4 sm:px-6", children: /* @__PURE__ */ t(
|
|
157
|
+
V,
|
|
158
|
+
{
|
|
159
|
+
type: "button",
|
|
160
|
+
variant: "outline",
|
|
161
|
+
className: "h-11 w-full rounded-xl sm:w-auto",
|
|
162
|
+
onClick: () => f(!1),
|
|
163
|
+
children: /* @__PURE__ */ t("span", { children: s("close_modal") })
|
|
164
|
+
}
|
|
165
|
+
) })
|
|
166
|
+
] })
|
|
167
|
+
}
|
|
168
|
+
) });
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
de as StorefrontPopupMessages
|
|
172
|
+
};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { jsxs as a, jsx as r, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { Star as I } from "lucide-react";
|
|
4
|
+
import { useTranslation as z } from "react-i18next";
|
|
5
|
+
import { ROUTE as re, responseSchema as ne } from "../../lib/storefrontReviews.js";
|
|
6
|
+
import { cn as U } from "@rpcbase/ui";
|
|
7
|
+
import { useStorefront as se } from "../../StorefrontProvider.js";
|
|
8
|
+
function ae({ rating: e }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: "flex mb-2", children: [...Array(5)].map((t, n) => /* @__PURE__ */ r(
|
|
10
|
+
I,
|
|
11
|
+
{
|
|
12
|
+
className: U(
|
|
13
|
+
"w-4 h-4",
|
|
14
|
+
n < e ? "text-yellow-400 fill-yellow-400" : "text-slate-300"
|
|
15
|
+
)
|
|
16
|
+
},
|
|
17
|
+
n
|
|
18
|
+
)) });
|
|
19
|
+
}
|
|
20
|
+
const p = ({ className: e }) => /* @__PURE__ */ r("div", { "aria-hidden": !0, className: U("animate-pulse rounded bg-slate-200", e) }), oe = () => /* @__PURE__ */ a(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"aria-hidden": !0,
|
|
24
|
+
className: "bg-white p-4 rounded-xl border border-slate-200 shadow-sm w-[320px] flex-shrink-0",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
27
|
+
/* @__PURE__ */ r("div", { className: "h-10 w-10 rounded-full bg-slate-200 animate-pulse" }),
|
|
28
|
+
/* @__PURE__ */ a("div", { className: "flex-1 space-y-2", children: [
|
|
29
|
+
/* @__PURE__ */ r(p, { className: "h-4 w-24" }),
|
|
30
|
+
/* @__PURE__ */ r(p, { className: "h-3 w-20" })
|
|
31
|
+
] })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ r("div", { className: "mb-3 flex gap-1", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded bg-slate-200 animate-pulse" }, t)) }),
|
|
34
|
+
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
35
|
+
/* @__PURE__ */ r(p, { className: "h-3 w-full" }),
|
|
36
|
+
/* @__PURE__ */ r(p, { className: "h-3 w-full" }),
|
|
37
|
+
/* @__PURE__ */ r(p, { className: "h-3 w-5/6" })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ r(p, { className: "mt-4 h-3 w-16" })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
function j({
|
|
44
|
+
review: e,
|
|
45
|
+
enableExpand: t = !0,
|
|
46
|
+
defaultOriginalUrl: n
|
|
47
|
+
}) {
|
|
48
|
+
const { t: o } = z(), l = F(e.name), R = ie(l), d = e.source === "tripadvisor" ? o("testimonials.tripadvisor_review") : e.source === "google" ? o("testimonials.google_review") : void 0, [u, T] = i.useState(!1), [b, L] = i.useState(!1), k = i.useRef(null), y = t && u ? 6 : 4, g = e.originalUrl || n, N = X(g), v = t && b, w = typeof N == "string" && N.length > 0;
|
|
49
|
+
return i.useEffect(() => {
|
|
50
|
+
if (!t) return;
|
|
51
|
+
const m = k.current;
|
|
52
|
+
if (!m) return;
|
|
53
|
+
const S = () => {
|
|
54
|
+
const C = m.scrollHeight > m.clientHeight + 1, P = (e.text || "").trim().length > 240;
|
|
55
|
+
L(C || P);
|
|
56
|
+
};
|
|
57
|
+
return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
58
|
+
}, [t, e.text]), /* @__PURE__ */ a("div", { className: "bg-white p-4 rounded-xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow duration-300 w-[320px] flex-shrink-0", children: [
|
|
59
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
60
|
+
/* @__PURE__ */ r(pe, { name: e.name, size: 40, colorSeed: e.colorSeed }),
|
|
61
|
+
/* @__PURE__ */ a("div", { children: [
|
|
62
|
+
/* @__PURE__ */ r("div", { className: "font-semibold leading-tight", children: R }),
|
|
63
|
+
d && /* @__PURE__ */ r("div", { className: "text-xs text-slate-500", children: d })
|
|
64
|
+
] })
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ r(ae, { rating: e.rating }),
|
|
67
|
+
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
68
|
+
/* @__PURE__ */ a(
|
|
69
|
+
"p",
|
|
70
|
+
{
|
|
71
|
+
ref: k,
|
|
72
|
+
className: "text-slate-600 text-sm italic",
|
|
73
|
+
style: {
|
|
74
|
+
display: "-webkit-box",
|
|
75
|
+
WebkitLineClamp: y,
|
|
76
|
+
WebkitBoxOrient: "vertical",
|
|
77
|
+
overflow: "hidden"
|
|
78
|
+
},
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ r("span", { "aria-hidden": !0, children: "“" }),
|
|
81
|
+
/* @__PURE__ */ r("span", { children: e.text }),
|
|
82
|
+
/* @__PURE__ */ r("span", { "aria-hidden": !0, children: "”" })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
!u && v && /* @__PURE__ */ r(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
"aria-hidden": !0,
|
|
90
|
+
className: "pointer-events-none absolute inset-x-0 bottom-0 h-8 bg-gradient-to-b from-transparent to-white"
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] }),
|
|
94
|
+
(v || w) && /* @__PURE__ */ a(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
className: U(
|
|
98
|
+
"mt-2 flex items-center gap-3",
|
|
99
|
+
v && w ? "justify-between" : w ? "justify-end" : "justify-start"
|
|
100
|
+
),
|
|
101
|
+
children: [
|
|
102
|
+
v && /* @__PURE__ */ r(
|
|
103
|
+
"button",
|
|
104
|
+
{
|
|
105
|
+
type: "button",
|
|
106
|
+
onClick: () => T((m) => !m),
|
|
107
|
+
className: "text-primary hover:underline text-xs cursor-pointer",
|
|
108
|
+
children: o(u ? "testimonials.see_less" : "testimonials.see_more")
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
w && /* @__PURE__ */ r(
|
|
112
|
+
"a",
|
|
113
|
+
{
|
|
114
|
+
className: "text-slate-500 hover:text-slate-600 hover:underline text-xs whitespace-nowrap cursor-pointer",
|
|
115
|
+
href: N,
|
|
116
|
+
target: "_blank",
|
|
117
|
+
rel: "noreferrer noopener",
|
|
118
|
+
children: o("testimonials.view_original")
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
] });
|
|
125
|
+
}
|
|
126
|
+
const Re = () => {
|
|
127
|
+
const { t: e } = z(), { storeSlug: t, storefrontConfiguration: n } = se(), o = n.modules?.reviews, l = o ? o.enabled && o.showRecentReviewsOnStorefront : !0, R = 180, d = i.useRef(null), u = i.useRef(!1), [T, b] = i.useState(!1), L = i.useRef(0), k = i.useRef(0), y = 64, [g, N] = i.useState([]), [v, w] = i.useState({}), [m, S] = i.useState(!1);
|
|
128
|
+
i.useEffect(() => {
|
|
129
|
+
let s = !1;
|
|
130
|
+
if (!l)
|
|
131
|
+
return N([]), w({}), S(!0), () => {
|
|
132
|
+
s = !0;
|
|
133
|
+
};
|
|
134
|
+
async function h() {
|
|
135
|
+
try {
|
|
136
|
+
if (!t) return;
|
|
137
|
+
const E = new URLSearchParams({
|
|
138
|
+
storeSlug: t,
|
|
139
|
+
limit: "40"
|
|
140
|
+
}), B = await (await fetch(`${re}?${E.toString()}`)).json().catch(() => null);
|
|
141
|
+
if (s) return;
|
|
142
|
+
const q = ne.safeParse(B);
|
|
143
|
+
if (!q.success || !q.data.success)
|
|
144
|
+
return;
|
|
145
|
+
const _ = q.data, $ = Array.isArray(_?.providers) ? _.providers : [], x = $.find((c) => c?.source === "google"), J = $[0], M = typeof x?.providerUrl == "string" ? x.providerUrl : n.shop.googleMapsLink || n.shop.googleRequestReviewsLink, O = Array.isArray(_?.reviews) ? _.reviews.map((c, ee) => ({
|
|
146
|
+
id: ee + 1,
|
|
147
|
+
name: c.authorMasked || e("testimonials.google_user"),
|
|
148
|
+
source: c.source,
|
|
149
|
+
text: c.comment || "",
|
|
150
|
+
rating: c.rating || 5,
|
|
151
|
+
colorSeed: typeof c.avatarSeed == "number" ? c.avatarSeed : void 0,
|
|
152
|
+
originalUrl: typeof c.providerUrl == "string" ? c.providerUrl : M
|
|
153
|
+
})) : [], K = O.length > 0 ? O : [], Q = D(String(x?.fetchedAt || J?.fetchedAt || _?.reviews?.[0]?.createdAt || "mock")), Y = ce([...K], Q), Z = {
|
|
154
|
+
rating: typeof x?.rating == "number" ? x.rating : void 0,
|
|
155
|
+
total: typeof x?.totalReviewsCount == "number" ? x.totalReviewsCount : void 0,
|
|
156
|
+
url: M
|
|
157
|
+
};
|
|
158
|
+
if (s) return;
|
|
159
|
+
N(Y), w(Z);
|
|
160
|
+
} catch {
|
|
161
|
+
if (s) return;
|
|
162
|
+
} finally {
|
|
163
|
+
s || S(!0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return h(), () => {
|
|
167
|
+
s = !0;
|
|
168
|
+
};
|
|
169
|
+
}, [l, t, n.shop.googleMapsLink, n.shop.googleRequestReviewsLink]), i.useEffect(() => {
|
|
170
|
+
if (!m || g.length === 0) return;
|
|
171
|
+
const s = d.current;
|
|
172
|
+
s && s.scrollLeft === 0 && (s.scrollLeft = y);
|
|
173
|
+
}, [m, g.length, y]);
|
|
174
|
+
const C = v.rating, P = v.total, V = v.url, A = X(V);
|
|
175
|
+
if (!l)
|
|
176
|
+
return null;
|
|
177
|
+
const f = !m, W = g.length > 0;
|
|
178
|
+
return !f && !W ? null : /* @__PURE__ */ a("section", { id: "testimonials", className: "border-t border-slate-200 bg-slate-50/60", translate: "no", children: [
|
|
179
|
+
/* @__PURE__ */ r("style", { children: `
|
|
180
|
+
@keyframes testimonials-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
|
|
181
|
+
.t-marquee { animation: testimonials-marquee var(--t-marquee-duration, 40s) linear infinite; }
|
|
182
|
+
.t-marquee:hover { animation-play-state: paused; }
|
|
183
|
+
.marquee-container:hover .t-marquee { animation-play-state: paused; }
|
|
184
|
+
@media (prefers-reduced-motion: reduce) {
|
|
185
|
+
.t-marquee { animation: none !important; }
|
|
186
|
+
}
|
|
187
|
+
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
188
|
+
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
|
|
189
|
+
` }),
|
|
190
|
+
/* @__PURE__ */ a("div", { className: "mx-auto max-w-7xl px-4 py-10 sm:px-6", children: [
|
|
191
|
+
/* @__PURE__ */ a("div", { className: "text-center mb-8", children: [
|
|
192
|
+
/* @__PURE__ */ r("h2", { className: "text-xl font-semibold tracking-tight text-slate-950", children: e("testimonials.title") }),
|
|
193
|
+
/* @__PURE__ */ a("div", { className: "mt-3 flex items-center justify-center gap-3 text-sm text-slate-700", children: [
|
|
194
|
+
/* @__PURE__ */ a("div", { className: "inline-flex items-center gap-1", children: [
|
|
195
|
+
/* @__PURE__ */ r(I, { className: "w-5 h-5 text-yellow-400 fill-yellow-400" }),
|
|
196
|
+
f ? /* @__PURE__ */ r(p, { className: "inline-block h-5 w-12" }) : /* @__PURE__ */ a("span", { className: "font-medium", children: [
|
|
197
|
+
/* @__PURE__ */ r("span", { children: C?.toFixed(1) ?? "5.0" }),
|
|
198
|
+
/* @__PURE__ */ r("span", { children: "/5" })
|
|
199
|
+
] })
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ r("span", { "aria-hidden": !0, children: "•" }),
|
|
202
|
+
f ? /* @__PURE__ */ r(p, { className: "inline-block h-4 w-32" }) : /* @__PURE__ */ a("span", { children: [
|
|
203
|
+
P ?? g.length,
|
|
204
|
+
" ",
|
|
205
|
+
e("testimonials.reviews_label")
|
|
206
|
+
] }),
|
|
207
|
+
(f || A) && /* @__PURE__ */ a(te, { children: [
|
|
208
|
+
/* @__PURE__ */ r("span", { "aria-hidden": !0, children: "•" }),
|
|
209
|
+
f ? /* @__PURE__ */ r(p, { className: "inline-block h-4 w-40" }) : A ? /* @__PURE__ */ r("a", { className: "text-primary hover:underline cursor-pointer", href: A, target: "_blank", rel: "noreferrer noopener", children: e("testimonials.view_on_google") }) : null
|
|
210
|
+
] })
|
|
211
|
+
] })
|
|
212
|
+
] }),
|
|
213
|
+
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
214
|
+
/* @__PURE__ */ r(
|
|
215
|
+
"div",
|
|
216
|
+
{
|
|
217
|
+
className: "pointer-events-none absolute inset-y-0 left-0 bg-gradient-to-r from-slate-50 to-transparent z-10",
|
|
218
|
+
style: { width: y }
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ r(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
className: "pointer-events-none absolute inset-y-0 right-0 bg-gradient-to-l from-slate-50 to-transparent z-10",
|
|
225
|
+
style: { width: y }
|
|
226
|
+
}
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ r(
|
|
229
|
+
"div",
|
|
230
|
+
{
|
|
231
|
+
ref: d,
|
|
232
|
+
className: U(
|
|
233
|
+
"marquee-container overflow-x-auto overflow-y-visible px-2 py-2 no-scrollbar select-none",
|
|
234
|
+
f ? "cursor-default" : T ? "cursor-grabbing" : "cursor-grab"
|
|
235
|
+
),
|
|
236
|
+
style: { WebkitOverflowScrolling: "touch", touchAction: "pan-x" },
|
|
237
|
+
onPointerDown: (s) => {
|
|
238
|
+
if (f) return;
|
|
239
|
+
const h = d.current;
|
|
240
|
+
if (h) {
|
|
241
|
+
u.current = !0, b(!0), L.current = s.clientX, k.current = h.scrollLeft;
|
|
242
|
+
try {
|
|
243
|
+
s.target?.setPointerCapture?.(s.pointerId);
|
|
244
|
+
} catch {
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
onPointerMove: (s) => {
|
|
249
|
+
if (f || !u.current) return;
|
|
250
|
+
const h = d.current;
|
|
251
|
+
if (!h) return;
|
|
252
|
+
const E = s.clientX - L.current;
|
|
253
|
+
h.scrollLeft = k.current - E;
|
|
254
|
+
},
|
|
255
|
+
onPointerUp: () => {
|
|
256
|
+
u.current = !1, b(!1);
|
|
257
|
+
},
|
|
258
|
+
onPointerCancel: () => {
|
|
259
|
+
u.current = !1, b(!1);
|
|
260
|
+
},
|
|
261
|
+
onPointerLeave: () => {
|
|
262
|
+
u.current = !1, b(!1);
|
|
263
|
+
},
|
|
264
|
+
children: f ? /* @__PURE__ */ r("div", { className: "inline-flex w-max gap-4", children: Array.from({ length: 6 }).map((s, h) => /* @__PURE__ */ r(oe, {}, `s-${h}`)) }) : /* @__PURE__ */ a(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
className: "t-marquee inline-flex w-max gap-4",
|
|
268
|
+
style: { "--t-marquee-duration": `${R}s` },
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ r("div", { className: "flex w-max gap-4", children: g.map((s) => /* @__PURE__ */ r(j, { review: s, defaultOriginalUrl: A }, `a-${s.id}`)) }),
|
|
271
|
+
/* @__PURE__ */ r("div", { className: "flex w-max gap-4", children: g.map((s) => /* @__PURE__ */ r(j, { review: s, defaultOriginalUrl: A }, `b-${s.id}`)) })
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
] })
|
|
278
|
+
] })
|
|
279
|
+
] });
|
|
280
|
+
};
|
|
281
|
+
function F(e) {
|
|
282
|
+
if (!e) return "?";
|
|
283
|
+
const t = String(e).trim().split(/[\s-]+/).filter(Boolean);
|
|
284
|
+
if (t.length === 0) return "?";
|
|
285
|
+
const n = t[0]?.[0] || "", o = t.length > 1 ? t[t.length - 1]?.[0] : t[0]?.[1] || "";
|
|
286
|
+
return (n + o).toUpperCase();
|
|
287
|
+
}
|
|
288
|
+
function ie(e) {
|
|
289
|
+
return e ? e.length >= 2 ? `${e[0]}. ${e[1]}.` : `${e[0]}.` : "?";
|
|
290
|
+
}
|
|
291
|
+
function X(e) {
|
|
292
|
+
if (typeof e != "string") return;
|
|
293
|
+
const t = e.trim();
|
|
294
|
+
if (t.length !== 0)
|
|
295
|
+
try {
|
|
296
|
+
const n = new URL(t);
|
|
297
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? void 0 : n.toString();
|
|
298
|
+
} catch {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function D(e) {
|
|
303
|
+
let t = 2166136261;
|
|
304
|
+
for (let n = 0; n < e.length; n++)
|
|
305
|
+
t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);
|
|
306
|
+
return t >>> 0;
|
|
307
|
+
}
|
|
308
|
+
function le(e) {
|
|
309
|
+
return function() {
|
|
310
|
+
let t = e += 1831565813;
|
|
311
|
+
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
function ce(e, t) {
|
|
315
|
+
const n = le(t || 1);
|
|
316
|
+
for (let o = e.length - 1; o > 0; o--) {
|
|
317
|
+
const l = Math.floor(n() * (o + 1));
|
|
318
|
+
[e[o], e[l]] = [e[l], e[o]];
|
|
319
|
+
}
|
|
320
|
+
return e;
|
|
321
|
+
}
|
|
322
|
+
const de = 65, ue = 72, me = 20;
|
|
323
|
+
function G(e) {
|
|
324
|
+
return (e % 360 + 360) % 360;
|
|
325
|
+
}
|
|
326
|
+
function H(e, t) {
|
|
327
|
+
return `hsl(${e} ${de}% ${t}%)`;
|
|
328
|
+
}
|
|
329
|
+
function fe(e) {
|
|
330
|
+
return G(D(e));
|
|
331
|
+
}
|
|
332
|
+
function he(e) {
|
|
333
|
+
if (typeof e == "number")
|
|
334
|
+
return G(e);
|
|
335
|
+
}
|
|
336
|
+
function pe({ name: e, size: t = 40, colorSeed: n }) {
|
|
337
|
+
const o = F(e), l = he(n) ?? fe(e), R = H(l, ue), d = H(l, me);
|
|
338
|
+
return /* @__PURE__ */ r("div", { className: "relative", style: { width: t, height: t }, "aria-hidden": !0, children: /* @__PURE__ */ r(
|
|
339
|
+
"div",
|
|
340
|
+
{
|
|
341
|
+
className: "w-full h-full rounded-full flex items-center justify-center font-semibold select-none",
|
|
342
|
+
style: { backgroundColor: R, color: d },
|
|
343
|
+
children: o
|
|
344
|
+
}
|
|
345
|
+
) });
|
|
346
|
+
}
|
|
347
|
+
export {
|
|
348
|
+
Re as TestimonialsSection
|
|
349
|
+
};
|