@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,145 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { Store as a } from "./Store-CRAQANWM.js";
|
|
3
|
+
import { useStore as l } from "./useStore-BsRFFm2l.js";
|
|
4
|
+
import { useStableCallback as h } from "../useStableCallback-DyHa2qMJ.js";
|
|
5
|
+
import { useIsoLayoutEffect as u } from "../useIsoLayoutEffect-oOMudEAz.js";
|
|
6
|
+
import { NOOP as d } from "../empty-C3-x9M2q.js";
|
|
7
|
+
class v extends a {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new ReactStore instance.
|
|
10
|
+
*
|
|
11
|
+
* @param state Initial state of the store.
|
|
12
|
+
* @param context Non-reactive context values.
|
|
13
|
+
* @param selectors Optional selectors for use with `useState`.
|
|
14
|
+
*/
|
|
15
|
+
constructor(e, t = {}, s) {
|
|
16
|
+
super(e), this.context = t, this.selectors = s;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Non-reactive values such as refs, callbacks, etc.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Synchronizes a single external value into the store.
|
|
23
|
+
*
|
|
24
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
25
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
26
|
+
*/
|
|
27
|
+
useSyncedValue(e, t) {
|
|
28
|
+
c.useDebugValue(e), u(() => {
|
|
29
|
+
this.state[e] !== t && this.set(e, t);
|
|
30
|
+
}, [e, t]);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Synchronizes a single external value into the store and
|
|
34
|
+
* cleans it up (sets to `undefined`) on unmount.
|
|
35
|
+
*
|
|
36
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
37
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
38
|
+
*/
|
|
39
|
+
useSyncedValueWithCleanup(e, t) {
|
|
40
|
+
const s = this;
|
|
41
|
+
u(() => (s.state[e] !== t && s.set(e, t), () => {
|
|
42
|
+
s.set(e, void 0);
|
|
43
|
+
}), [s, e, t]);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Synchronizes multiple external values into the store.
|
|
47
|
+
*
|
|
48
|
+
* Note that the while the values in `state` are updated immediately, the values returned
|
|
49
|
+
* by `useState` are updated before the next render (similarly to React's `useState`).
|
|
50
|
+
*/
|
|
51
|
+
useSyncedValues(e) {
|
|
52
|
+
const t = this;
|
|
53
|
+
if (process.env.NODE_ENV !== "production") {
|
|
54
|
+
c.useDebugValue(e, (n) => Object.keys(n));
|
|
55
|
+
const o = c.useRef(Object.keys(e)).current, r = Object.keys(e);
|
|
56
|
+
(o.length !== r.length || o.some((n, i) => n !== r[i])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
57
|
+
}
|
|
58
|
+
const s = Object.values(e);
|
|
59
|
+
u(() => {
|
|
60
|
+
t.update(e);
|
|
61
|
+
}, [t, ...s]);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
|
|
65
|
+
* is non-undefined, the store's state at `key` is updated to match `controlled`.
|
|
66
|
+
*/
|
|
67
|
+
useControlledProp(e, t) {
|
|
68
|
+
c.useDebugValue(e);
|
|
69
|
+
const s = t !== void 0;
|
|
70
|
+
if (u(() => {
|
|
71
|
+
s && !Object.is(this.state[e], t) && super.setState({
|
|
72
|
+
...this.state,
|
|
73
|
+
[e]: t
|
|
74
|
+
});
|
|
75
|
+
}, [e, t, s]), process.env.NODE_ENV !== "production") {
|
|
76
|
+
const o = this.controlledValues ??= /* @__PURE__ */ new Map();
|
|
77
|
+
o.has(e) || o.set(e, s);
|
|
78
|
+
const r = o.get(e);
|
|
79
|
+
r !== void 0 && r !== s && console.error(`A component is changing the ${s ? "" : "un"}controlled state of ${e.toString()} to be ${s ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/** Gets the current value from the store using a selector with the provided key.
|
|
83
|
+
*
|
|
84
|
+
* @param key Key of the selector to use.
|
|
85
|
+
*/
|
|
86
|
+
select(e, t, s, o) {
|
|
87
|
+
const r = this.selectors[e];
|
|
88
|
+
return r(this.state, t, s, o);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Returns a value from the store's state using a selector function.
|
|
92
|
+
* Used to subscribe to specific parts of the state.
|
|
93
|
+
* This methods causes a rerender whenever the selected state changes.
|
|
94
|
+
*
|
|
95
|
+
* @param key Key of the selector to use.
|
|
96
|
+
*/
|
|
97
|
+
useState(e, t, s, o) {
|
|
98
|
+
return c.useDebugValue(e), l(this, this.selectors[e], t, s, o);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Wraps a function with `useStableCallback` to ensure it has a stable reference
|
|
102
|
+
* and assigns it to the context.
|
|
103
|
+
*
|
|
104
|
+
* @param key Key of the event callback. Must be a function in the context.
|
|
105
|
+
* @param fn Function to assign.
|
|
106
|
+
*/
|
|
107
|
+
useContextCallback(e, t) {
|
|
108
|
+
c.useDebugValue(e);
|
|
109
|
+
const s = h(t ?? d);
|
|
110
|
+
this.context[e] = s;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns a stable setter function for a specific key in the store's state.
|
|
114
|
+
* It's commonly used to pass as a ref callback to React elements.
|
|
115
|
+
*
|
|
116
|
+
* @param key Key of the state to set.
|
|
117
|
+
*/
|
|
118
|
+
useStateSetter(e) {
|
|
119
|
+
const t = c.useRef(void 0);
|
|
120
|
+
return t.current === void 0 && (t.current = (s) => {
|
|
121
|
+
this.set(e, s);
|
|
122
|
+
}), t.current;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Observes changes derived from the store's selectors and calls the listener when the selected value changes.
|
|
126
|
+
*
|
|
127
|
+
* @param key Key of the selector to observe.
|
|
128
|
+
* @param listener Listener function called when the selector result changes.
|
|
129
|
+
*/
|
|
130
|
+
observe(e, t) {
|
|
131
|
+
let s;
|
|
132
|
+
typeof e == "function" ? s = e : s = this.selectors[e];
|
|
133
|
+
let o = s(this.state);
|
|
134
|
+
return t(o, o, this), this.subscribe((r) => {
|
|
135
|
+
const n = s(r);
|
|
136
|
+
if (!Object.is(o, n)) {
|
|
137
|
+
const i = o;
|
|
138
|
+
o = n, t(n, i, this);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
v as ReactStore
|
|
145
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { useStore as a } from "./useStore-BsRFFm2l.js";
|
|
2
|
+
class n {
|
|
3
|
+
/**
|
|
4
|
+
* The current state of the store.
|
|
5
|
+
* This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.
|
|
6
|
+
* To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).
|
|
7
|
+
* The values can be used directly (to avoid subscribing to the store) in effects or event handlers.
|
|
8
|
+
*
|
|
9
|
+
* Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.
|
|
10
|
+
*/
|
|
11
|
+
// Internal state to handle recursive `setState()` calls
|
|
12
|
+
constructor(t) {
|
|
13
|
+
this.state = t, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Registers a listener that will be called whenever the store's state changes.
|
|
17
|
+
*
|
|
18
|
+
* @param fn The listener function to be called on state changes.
|
|
19
|
+
* @returns A function to unsubscribe the listener.
|
|
20
|
+
*/
|
|
21
|
+
subscribe = (t) => (this.listeners.add(t), () => {
|
|
22
|
+
this.listeners.delete(t);
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Returns the current state of the store.
|
|
26
|
+
*/
|
|
27
|
+
getSnapshot = () => this.state;
|
|
28
|
+
/**
|
|
29
|
+
* Updates the entire store's state and notifies all registered listeners.
|
|
30
|
+
*
|
|
31
|
+
* @param newState The new state to set for the store.
|
|
32
|
+
*/
|
|
33
|
+
setState(t) {
|
|
34
|
+
if (this.state === t)
|
|
35
|
+
return;
|
|
36
|
+
this.state = t, this.updateTick += 1;
|
|
37
|
+
const s = this.updateTick;
|
|
38
|
+
for (const e of this.listeners) {
|
|
39
|
+
if (s !== this.updateTick)
|
|
40
|
+
return;
|
|
41
|
+
e(t);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
46
|
+
*
|
|
47
|
+
* @param changes An object containing the changes to apply to the current state.
|
|
48
|
+
*/
|
|
49
|
+
update(t) {
|
|
50
|
+
for (const s in t)
|
|
51
|
+
if (!Object.is(this.state[s], t[s])) {
|
|
52
|
+
this.setState({
|
|
53
|
+
...this.state,
|
|
54
|
+
...t
|
|
55
|
+
});
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
61
|
+
*
|
|
62
|
+
* @param key The key in the store's state to update.
|
|
63
|
+
* @param value The new value to set for the specified key.
|
|
64
|
+
*/
|
|
65
|
+
set(t, s) {
|
|
66
|
+
Object.is(this.state[t], s) || this.setState({
|
|
67
|
+
...this.state,
|
|
68
|
+
[t]: s
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Gives the state a new reference and updates all registered listeners.
|
|
73
|
+
*/
|
|
74
|
+
notifyAll() {
|
|
75
|
+
const t = {
|
|
76
|
+
...this.state
|
|
77
|
+
};
|
|
78
|
+
this.setState(t);
|
|
79
|
+
}
|
|
80
|
+
use(t, s, e, i) {
|
|
81
|
+
return a(this, t, s, e, i);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
n as Store
|
|
86
|
+
};
|
package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/createSelector-SDRl3LYE.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import t from "../formatErrorMessage-BJfWDcMI.js";
|
|
2
|
+
const f = (e, n, s, c, i, p, ...o) => {
|
|
3
|
+
if (o.length > 0)
|
|
4
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Unsupported number of selectors" : t(1));
|
|
5
|
+
let r;
|
|
6
|
+
if (e)
|
|
7
|
+
r = e;
|
|
8
|
+
else
|
|
9
|
+
throw (
|
|
10
|
+
/* minify-error-disabled */
|
|
11
|
+
new Error("Missing arguments")
|
|
12
|
+
);
|
|
13
|
+
return r;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
f as createSelector
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { s as c } from "../../../../../_virtual/index-C9tmbAjU.js";
|
|
3
|
+
import { w as i } from "../../../../../_virtual/with-selector-BTwk-iW5.js";
|
|
4
|
+
import { isReactVersionAtLeast as u } from "../reactVersion-oVIlFc4q.js";
|
|
5
|
+
const f = u(19), m = f ? S : l;
|
|
6
|
+
function x(t, r, e, o, s) {
|
|
7
|
+
return m(t, r, e, o, s);
|
|
8
|
+
}
|
|
9
|
+
function p(t, r, e, o, s) {
|
|
10
|
+
const n = a.useCallback(() => r(t.getSnapshot(), e, o, s), [t, r, e, o, s]);
|
|
11
|
+
return c.useSyncExternalStore(t.subscribe, n, n);
|
|
12
|
+
}
|
|
13
|
+
function S(t, r, e, o, s) {
|
|
14
|
+
return p(t, r, e, o, s);
|
|
15
|
+
}
|
|
16
|
+
function l(t, r, e, o, s) {
|
|
17
|
+
return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (n) => r(n, e, o, s));
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
x as useStore
|
|
21
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { useRefWithInit as u } from "./useRefWithInit-BObJZm23.js";
|
|
2
|
+
import { useOnMount as h } from "./useOnMount-DjNCK2YI.js";
|
|
3
|
+
const e = null;
|
|
4
|
+
let l = globalThis.requestAnimationFrame;
|
|
5
|
+
class o {
|
|
6
|
+
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
7
|
+
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
8
|
+
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
9
|
+
* be much more efficient if there is a call pattern that alterns as
|
|
10
|
+
* "request-cancel-request-cancel-…".
|
|
11
|
+
* But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
|
|
12
|
+
* frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
|
|
13
|
+
callbacks = [];
|
|
14
|
+
callbacksCount = 0;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
startId = 1;
|
|
17
|
+
isScheduled = !1;
|
|
18
|
+
tick = (t) => {
|
|
19
|
+
this.isScheduled = !1;
|
|
20
|
+
const s = this.callbacks, a = this.callbacksCount;
|
|
21
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, a > 0)
|
|
22
|
+
for (let i = 0; i < s.length; i += 1)
|
|
23
|
+
s[i]?.(t);
|
|
24
|
+
};
|
|
25
|
+
request(t) {
|
|
26
|
+
const s = this.nextId;
|
|
27
|
+
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
28
|
+
const a = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
|
|
29
|
+
return (!this.isScheduled || a) && (requestAnimationFrame(this.tick), this.isScheduled = !0), s;
|
|
30
|
+
}
|
|
31
|
+
cancel(t) {
|
|
32
|
+
const s = t - this.startId;
|
|
33
|
+
s < 0 || s >= this.callbacks.length || (this.callbacks[s] = null, this.callbacksCount -= 1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const c = new o();
|
|
37
|
+
class r {
|
|
38
|
+
static create() {
|
|
39
|
+
return new r();
|
|
40
|
+
}
|
|
41
|
+
static request(t) {
|
|
42
|
+
return c.request(t);
|
|
43
|
+
}
|
|
44
|
+
static cancel(t) {
|
|
45
|
+
return c.cancel(t);
|
|
46
|
+
}
|
|
47
|
+
currentId = e;
|
|
48
|
+
/**
|
|
49
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
50
|
+
*/
|
|
51
|
+
request(t) {
|
|
52
|
+
this.cancel(), this.currentId = c.request(() => {
|
|
53
|
+
this.currentId = e, t();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
cancel = () => {
|
|
57
|
+
this.currentId !== e && (c.cancel(this.currentId), this.currentId = e);
|
|
58
|
+
};
|
|
59
|
+
disposeEffect = () => this.cancel;
|
|
60
|
+
}
|
|
61
|
+
function k() {
|
|
62
|
+
const n = u(r.create).current;
|
|
63
|
+
return h(n.disposeEffect), n;
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
r as AnimationFrame,
|
|
67
|
+
k as useAnimationFrame
|
|
68
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { error as l } from "./error-KZbzusBH.js";
|
|
3
|
+
function _({
|
|
4
|
+
controlled: o,
|
|
5
|
+
default: n,
|
|
6
|
+
name: t,
|
|
7
|
+
state: i = "value"
|
|
8
|
+
}) {
|
|
9
|
+
const {
|
|
10
|
+
current: e
|
|
11
|
+
} = r.useRef(o !== void 0), [c, f] = r.useState(n), a = e ? o : c;
|
|
12
|
+
if (process.env.NODE_ENV !== "production") {
|
|
13
|
+
r.useEffect(() => {
|
|
14
|
+
e !== (o !== void 0) && l([`A component is changing the ${e ? "" : "un"}controlled ${i} state of ${t} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
15
|
+
`));
|
|
16
|
+
}, [i, t, o]);
|
|
17
|
+
const {
|
|
18
|
+
current: s
|
|
19
|
+
} = r.useRef(n);
|
|
20
|
+
r.useEffect(() => {
|
|
21
|
+
!e && u(s) !== u(n) && l([`A component is changing the default ${i} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
22
|
+
`));
|
|
23
|
+
}, [n]);
|
|
24
|
+
}
|
|
25
|
+
const d = r.useCallback((s) => {
|
|
26
|
+
e || f(s);
|
|
27
|
+
}, []);
|
|
28
|
+
return [a, d];
|
|
29
|
+
}
|
|
30
|
+
function u(o) {
|
|
31
|
+
let n = 0;
|
|
32
|
+
const t = /* @__PURE__ */ new WeakMap();
|
|
33
|
+
try {
|
|
34
|
+
return JSON.stringify(o, function(i, e) {
|
|
35
|
+
if (!(i === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
36
|
+
if (typeof e == "bigint")
|
|
37
|
+
return `__bigint__:${e}`;
|
|
38
|
+
if (e !== null && typeof e == "object") {
|
|
39
|
+
const c = t.get(e);
|
|
40
|
+
if (c !== void 0)
|
|
41
|
+
return `__object__:${c}`;
|
|
42
|
+
t.set(e, n), n += 1;
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
}) ?? `__top__:${typeof o}`;
|
|
47
|
+
} catch {
|
|
48
|
+
return "__unserializable__";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
_ as useControlled
|
|
53
|
+
};
|
package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler-Cu2E1baO.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
function a(n) {
|
|
3
|
+
const t = o.useRef(""), r = o.useCallback((e) => {
|
|
4
|
+
e.defaultPrevented || (t.current = e.pointerType, n(e, e.pointerType));
|
|
5
|
+
}, [n]);
|
|
6
|
+
return {
|
|
7
|
+
onClick: o.useCallback((e) => {
|
|
8
|
+
if (e.detail === 0) {
|
|
9
|
+
n(e, "keyboard");
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
"pointerType" in e ? n(e, e.pointerType) : n(e, t.current), t.current = "";
|
|
13
|
+
}, [n]),
|
|
14
|
+
onPointerDown: r
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
a as useEnhancedClickHandler
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { SafeReact as u } from "./safeReact-C4X27Y1Z.js";
|
|
3
|
+
let r = 0;
|
|
4
|
+
function f(o, e = "mui") {
|
|
5
|
+
const [t, a] = n.useState(o), c = o || t;
|
|
6
|
+
return n.useEffect(() => {
|
|
7
|
+
t == null && (r += 1, a(`${e}-${r}`));
|
|
8
|
+
}, [t, e]), c;
|
|
9
|
+
}
|
|
10
|
+
const s = u.useId;
|
|
11
|
+
function m(o, e) {
|
|
12
|
+
if (s !== void 0) {
|
|
13
|
+
const t = s();
|
|
14
|
+
return o ?? (e ? `${e}-${t}` : t);
|
|
15
|
+
}
|
|
16
|
+
return f(o, e);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as useId
|
|
20
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useRefWithInit as f } from "./useRefWithInit-BObJZm23.js";
|
|
2
|
+
function p(e, l, t, r) {
|
|
3
|
+
const n = f(s).current;
|
|
4
|
+
return a(n, e, l, t, r) && o(n, [e, l, t, r]), n.callback;
|
|
5
|
+
}
|
|
6
|
+
function h(e) {
|
|
7
|
+
const l = f(s).current;
|
|
8
|
+
return i(l, e) && o(l, e), l.callback;
|
|
9
|
+
}
|
|
10
|
+
function s() {
|
|
11
|
+
return {
|
|
12
|
+
callback: null,
|
|
13
|
+
cleanup: null,
|
|
14
|
+
refs: []
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function a(e, l, t, r, n) {
|
|
18
|
+
return e.refs[0] !== l || e.refs[1] !== t || e.refs[2] !== r || e.refs[3] !== n;
|
|
19
|
+
}
|
|
20
|
+
function i(e, l) {
|
|
21
|
+
return e.refs.length !== l.length || e.refs.some((t, r) => t !== l[r]);
|
|
22
|
+
}
|
|
23
|
+
function o(e, l) {
|
|
24
|
+
if (e.refs = l, l.every((t) => t == null)) {
|
|
25
|
+
e.callback = null;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
e.callback = (t) => {
|
|
29
|
+
if (e.cleanup && (e.cleanup(), e.cleanup = null), t != null) {
|
|
30
|
+
const r = Array(l.length).fill(null);
|
|
31
|
+
for (let n = 0; n < l.length; n += 1) {
|
|
32
|
+
const c = l[n];
|
|
33
|
+
if (c != null)
|
|
34
|
+
switch (typeof c) {
|
|
35
|
+
case "function": {
|
|
36
|
+
const u = c(t);
|
|
37
|
+
typeof u == "function" && (r[n] = u);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
case "object": {
|
|
41
|
+
c.current = t;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
e.cleanup = () => {
|
|
47
|
+
for (let n = 0; n < l.length; n += 1) {
|
|
48
|
+
const c = l[n];
|
|
49
|
+
if (c != null)
|
|
50
|
+
switch (typeof c) {
|
|
51
|
+
case "function": {
|
|
52
|
+
const u = r[n];
|
|
53
|
+
typeof u == "function" ? u() : c(null);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
case "object": {
|
|
57
|
+
c.current = null;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
p as useMergedRefs,
|
|
68
|
+
h as useMergedRefsN
|
|
69
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { getWindow as h, isOverflowElement as d } from "../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
2
|
+
import { addEventListener as B } from "./addEventListener-DnnRp2CB.js";
|
|
3
|
+
import { isIOS as $, isWebKit as j } from "./detectBrowser-CntSiJrj.js";
|
|
4
|
+
import { ownerDocument as a } from "./owner-CfKP3-Rk.js";
|
|
5
|
+
import { useIsoLayoutEffect as F } from "./useIsoLayoutEffect-oOMudEAz.js";
|
|
6
|
+
import { Timeout as Y } from "./useTimeout-BPZmm8PE.js";
|
|
7
|
+
import { AnimationFrame as T } from "./useAnimationFrame-C0av1dS7.js";
|
|
8
|
+
import { NOOP as q } from "./empty-C3-x9M2q.js";
|
|
9
|
+
let S = {}, C = {}, X = "";
|
|
10
|
+
function z(r) {
|
|
11
|
+
if (typeof document > "u")
|
|
12
|
+
return !1;
|
|
13
|
+
const o = a(r);
|
|
14
|
+
return h(o).innerWidth - o.documentElement.clientWidth > 0;
|
|
15
|
+
}
|
|
16
|
+
function A(r) {
|
|
17
|
+
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
|
|
18
|
+
return !1;
|
|
19
|
+
const o = a(r), t = o.documentElement, e = o.body, l = d(t) ? t : e, s = l.style.overflowY, n = t.style.scrollbarGutter;
|
|
20
|
+
t.style.scrollbarGutter = "stable", l.style.overflowY = "scroll";
|
|
21
|
+
const c = l.offsetWidth;
|
|
22
|
+
l.style.overflowY = "hidden";
|
|
23
|
+
const u = l.offsetWidth;
|
|
24
|
+
return l.style.overflowY = s, t.style.scrollbarGutter = n, c === u;
|
|
25
|
+
}
|
|
26
|
+
function H(r) {
|
|
27
|
+
const o = a(r), t = o.documentElement, e = o.body, l = d(t) ? t : e, s = {
|
|
28
|
+
overflowY: l.style.overflowY,
|
|
29
|
+
overflowX: l.style.overflowX
|
|
30
|
+
};
|
|
31
|
+
return Object.assign(l.style, {
|
|
32
|
+
overflowY: "hidden",
|
|
33
|
+
overflowX: "hidden"
|
|
34
|
+
}), () => {
|
|
35
|
+
Object.assign(l.style, s);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function I(r) {
|
|
39
|
+
const o = a(r), t = o.documentElement, e = o.body, l = h(t);
|
|
40
|
+
let s = 0, n = 0, c = !1;
|
|
41
|
+
const u = T.create();
|
|
42
|
+
if (j && (l.visualViewport?.scale ?? 1) !== 1)
|
|
43
|
+
return () => {
|
|
44
|
+
};
|
|
45
|
+
function m() {
|
|
46
|
+
const f = l.getComputedStyle(t), i = l.getComputedStyle(e), y = (f.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
47
|
+
s = t.scrollTop, n = t.scrollLeft, S = {
|
|
48
|
+
scrollbarGutter: t.style.scrollbarGutter,
|
|
49
|
+
overflowY: t.style.overflowY,
|
|
50
|
+
overflowX: t.style.overflowX
|
|
51
|
+
}, X = t.style.scrollBehavior, C = {
|
|
52
|
+
position: e.style.position,
|
|
53
|
+
height: e.style.height,
|
|
54
|
+
width: e.style.width,
|
|
55
|
+
boxSizing: e.style.boxSizing,
|
|
56
|
+
overflowY: e.style.overflowY,
|
|
57
|
+
overflowX: e.style.overflowX,
|
|
58
|
+
scrollBehavior: e.style.scrollBehavior
|
|
59
|
+
};
|
|
60
|
+
const W = t.scrollHeight > t.clientHeight, x = t.scrollWidth > t.clientWidth, E = f.overflowY === "scroll" || i.overflowY === "scroll", G = f.overflowX === "scroll" || i.overflowX === "scroll", w = Math.max(0, l.innerWidth - e.clientWidth), p = Math.max(0, l.innerHeight - e.clientHeight), b = parseFloat(i.marginTop) + parseFloat(i.marginBottom), g = parseFloat(i.marginLeft) + parseFloat(i.marginRight), k = d(t) ? t : e;
|
|
61
|
+
if (c = A(r), c) {
|
|
62
|
+
t.style.scrollbarGutter = y, k.style.overflowY = "hidden", k.style.overflowX = "hidden";
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
Object.assign(t.style, {
|
|
66
|
+
scrollbarGutter: y,
|
|
67
|
+
overflowY: "hidden",
|
|
68
|
+
overflowX: "hidden"
|
|
69
|
+
}), (W || E) && (t.style.overflowY = "scroll"), (x || G) && (t.style.overflowX = "scroll"), Object.assign(e.style, {
|
|
70
|
+
position: "relative",
|
|
71
|
+
height: b || p ? `calc(100dvh - ${b + p}px)` : "100dvh",
|
|
72
|
+
width: g || w ? `calc(100vw - ${g + w}px)` : "100vw",
|
|
73
|
+
boxSizing: "border-box",
|
|
74
|
+
overflow: "hidden",
|
|
75
|
+
scrollBehavior: "unset"
|
|
76
|
+
}), e.scrollTop = s, e.scrollLeft = n, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
|
|
77
|
+
}
|
|
78
|
+
function v() {
|
|
79
|
+
Object.assign(t.style, S), Object.assign(e.style, C), c || (t.scrollTop = s, t.scrollLeft = n, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = X);
|
|
80
|
+
}
|
|
81
|
+
function L() {
|
|
82
|
+
v(), u.request(m);
|
|
83
|
+
}
|
|
84
|
+
m();
|
|
85
|
+
const O = B(l, "resize", L);
|
|
86
|
+
return () => {
|
|
87
|
+
u.cancel(), v(), typeof l.removeEventListener == "function" && O();
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
class K {
|
|
91
|
+
lockCount = 0;
|
|
92
|
+
restore = null;
|
|
93
|
+
timeoutLock = Y.create();
|
|
94
|
+
timeoutUnlock = Y.create();
|
|
95
|
+
acquire(o) {
|
|
96
|
+
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(o)), this.release;
|
|
97
|
+
}
|
|
98
|
+
release = () => {
|
|
99
|
+
this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
|
|
100
|
+
};
|
|
101
|
+
unlock = () => {
|
|
102
|
+
this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
|
|
103
|
+
};
|
|
104
|
+
lock(o) {
|
|
105
|
+
if (this.lockCount === 0 || this.restore !== null)
|
|
106
|
+
return;
|
|
107
|
+
const t = a(o).documentElement, e = h(t).getComputedStyle(t).overflowY;
|
|
108
|
+
if (e === "hidden" || e === "clip") {
|
|
109
|
+
this.restore = q;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const l = $ || !z(o);
|
|
113
|
+
this.restore = l ? H(o) : I(o);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const M = new K();
|
|
117
|
+
function Z(r = !0, o = null) {
|
|
118
|
+
F(() => {
|
|
119
|
+
if (r)
|
|
120
|
+
return M.acquire(o);
|
|
121
|
+
}, [r, o]);
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
Z as useScrollLock
|
|
125
|
+
};
|