@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,402 @@
|
|
|
1
|
+
import { jsx as a, Fragment as Ie, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useRef as H, useEffect as p } from "react";
|
|
3
|
+
import * as Ae from "html-to-image";
|
|
4
|
+
import { CheckCircle2 as Ne } from "lucide-react";
|
|
5
|
+
import { toString as ke } from "qrcode";
|
|
6
|
+
import { useTranslation as xe } from "react-i18next";
|
|
7
|
+
import { Button as Ce } from "../../ui/button.js";
|
|
8
|
+
import { AcceptanceModal as Ee } from "./AcceptanceModal.js";
|
|
9
|
+
import { InvoiceDetails as Pe } from "./InvoiceDetails.js";
|
|
10
|
+
import { Page as Re } from "./Page.js";
|
|
11
|
+
import { PageFooter as Me } from "./PageFooter.js";
|
|
12
|
+
import { PageHeader as De } from "./PageHeader.js";
|
|
13
|
+
import { SignatureModal as Le } from "./SignatureModal.js";
|
|
14
|
+
import { DEFAULT_TERMS_TITLE as $e, DEFAULT_TERMS_ARTICLES as Oe, TermsAndConditionsContent as Be } from "./TermsAndConditionsContent.js";
|
|
15
|
+
import { ThumbnailSidebar as Fe } from "./ThumbnailSidebar.js";
|
|
16
|
+
import { resolveContractSaleDocumentLanguage as He, formatContractSaleDocumentLabel as Ue } from "./language.js";
|
|
17
|
+
/* empty css */
|
|
18
|
+
const U = 22, G = 10, j = 14, re = 14, Ge = 3, je = 6, ae = (o, r) => {
|
|
19
|
+
if (r <= 0)
|
|
20
|
+
return [o];
|
|
21
|
+
const s = [];
|
|
22
|
+
for (let l = 0; l < o.length; l += r)
|
|
23
|
+
s.push(o.slice(l, l + r));
|
|
24
|
+
return s;
|
|
25
|
+
}, ze = (o) => {
|
|
26
|
+
if (o.length <= G)
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
kind: "invoice",
|
|
30
|
+
key: "invoice-page-1",
|
|
31
|
+
items: o,
|
|
32
|
+
showInvoiceMeta: !0,
|
|
33
|
+
showTotalsSection: !0,
|
|
34
|
+
showNotesSection: !0,
|
|
35
|
+
showAcceptanceSection: !0
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
const r = [
|
|
39
|
+
{
|
|
40
|
+
kind: "invoice",
|
|
41
|
+
key: "invoice-page-1",
|
|
42
|
+
items: o.slice(0, G),
|
|
43
|
+
showInvoiceMeta: !0,
|
|
44
|
+
showTotalsSection: !1,
|
|
45
|
+
showNotesSection: !1,
|
|
46
|
+
showAcceptanceSection: !1
|
|
47
|
+
}
|
|
48
|
+
], s = o.slice(G);
|
|
49
|
+
if (s.length <= re)
|
|
50
|
+
return r.push({
|
|
51
|
+
kind: "invoice",
|
|
52
|
+
key: "invoice-page-final-1",
|
|
53
|
+
items: s,
|
|
54
|
+
showInvoiceMeta: !1,
|
|
55
|
+
showTotalsSection: !0,
|
|
56
|
+
showNotesSection: !0,
|
|
57
|
+
showAcceptanceSection: !0
|
|
58
|
+
}), r;
|
|
59
|
+
let l = s.length % j;
|
|
60
|
+
l === 0 && (l = Math.min(re, j));
|
|
61
|
+
const b = Math.max(0, s.length - l), S = s.slice(0, b), f = s.slice(b), u = ae(S, j);
|
|
62
|
+
return u.forEach((M, _) => {
|
|
63
|
+
r.push({
|
|
64
|
+
kind: "invoice",
|
|
65
|
+
key: `invoice-page-continuation-${_ + 1}`,
|
|
66
|
+
items: M,
|
|
67
|
+
showInvoiceMeta: !1,
|
|
68
|
+
showTotalsSection: !1,
|
|
69
|
+
showNotesSection: !1,
|
|
70
|
+
showAcceptanceSection: !1
|
|
71
|
+
});
|
|
72
|
+
}), r.push({
|
|
73
|
+
kind: "invoice",
|
|
74
|
+
key: `invoice-page-final-${u.length + 1}`,
|
|
75
|
+
items: f,
|
|
76
|
+
showInvoiceMeta: !1,
|
|
77
|
+
showTotalsSection: !0,
|
|
78
|
+
showNotesSection: !0,
|
|
79
|
+
showAcceptanceSection: !0
|
|
80
|
+
}), r;
|
|
81
|
+
}, Qe = (o, r, s) => ae(o, s ? Ge : je).map((S, f) => ({
|
|
82
|
+
kind: "terms",
|
|
83
|
+
key: `terms-page-${f + 1}`,
|
|
84
|
+
title: r,
|
|
85
|
+
showTitle: f === 0,
|
|
86
|
+
articles: S
|
|
87
|
+
})), Ve = (o) => o.kind === "credit_note" ? [] : !o.terms || o.terms.articles.length === 0 ? Oe : o.terms.articles, Xe = (o) => o.terms?.title ?? $e;
|
|
88
|
+
function ut({
|
|
89
|
+
data: o,
|
|
90
|
+
showTermsPage: r = !0,
|
|
91
|
+
withEnglishTranslation: s = !0,
|
|
92
|
+
heightMode: l = "viewport",
|
|
93
|
+
renderMode: b = "interactive",
|
|
94
|
+
publicDocumentUrl: S,
|
|
95
|
+
onAccept: f
|
|
96
|
+
}) {
|
|
97
|
+
const { t: u, i18n: M } = xe(), _ = S?.trim() ?? "", d = b === "pdf", [n, D] = h(o), [L, z] = h(!1), [Q, w] = h(null), [se, V] = h(0), [$, X] = h([]), [ie, O] = h(!0), [le, I] = h(0), [q, A] = h(""), [ue, B] = h(
|
|
98
|
+
_.length === 0 && !d
|
|
99
|
+
), F = H(null), W = H(null), v = H([]);
|
|
100
|
+
p(() => {
|
|
101
|
+
D(o);
|
|
102
|
+
}, [o]), p(() => {
|
|
103
|
+
if (!_) {
|
|
104
|
+
A(""), B(!d);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
let e = !1;
|
|
108
|
+
return A(""), B(!1), ke(_, {
|
|
109
|
+
type: "svg",
|
|
110
|
+
errorCorrectionLevel: "M",
|
|
111
|
+
margin: 1,
|
|
112
|
+
width: 160,
|
|
113
|
+
color: { dark: "#111827", light: "#FFFFFF" }
|
|
114
|
+
}).then((t) => {
|
|
115
|
+
e || A(`data:image/svg+xml;utf8,${encodeURIComponent(t)}`);
|
|
116
|
+
}).catch((t) => {
|
|
117
|
+
e || (console.error("Document QR code generation failed:", t), A(""));
|
|
118
|
+
}).finally(() => {
|
|
119
|
+
e || B(!0);
|
|
120
|
+
}), () => {
|
|
121
|
+
e = !0;
|
|
122
|
+
};
|
|
123
|
+
}, [_, d]);
|
|
124
|
+
const m = He(n, M.language), de = (e, t = {}) => Ue(u, m, e, t), me = n.kind === "credit_note" ? -1 : 1, N = n.items.reduce((e, t) => e + t.quantity * t.unitPrice, 0) * me, K = n.taxRate != null ? N / (1 + n.taxRate) : N, he = n.taxRate != null ? N - K : 0, fe = n.kind === "credit_note" ? "docs_contract_sale_credit_note_title" : "docs_contract_sale_invoice_title", J = de(fe), Y = Xe(n), Z = Ve(n), ge = ze(n.items), k = s, pe = r ? Qe(Z, Y, k) : [], x = [...ge, ...pe], i = x.length, _e = [
|
|
125
|
+
n.id,
|
|
126
|
+
n.kind,
|
|
127
|
+
n.saleDocumentNumber,
|
|
128
|
+
n.items.map((e) => `${e.id}:${e.description}:${e.quantity}:${e.unitPrice}`).join(","),
|
|
129
|
+
r ? Y : "",
|
|
130
|
+
r ? Z.map((e) => `${e.id}:${e.title}:${e.body}:${e.translationTitle ?? ""}:${e.translationBody ?? ""}`).join(",") : "",
|
|
131
|
+
k ? "translated" : "legal-only",
|
|
132
|
+
m.legal,
|
|
133
|
+
m.customer,
|
|
134
|
+
m.translation ?? "",
|
|
135
|
+
x.map((e) => e.key).join(",")
|
|
136
|
+
].join("|"), C = !d && (n.acceptanceLevel !== "none" || n.acceptance != null), E = n.acceptance;
|
|
137
|
+
v.current.length > i && (v.current.length = i), p(() => {
|
|
138
|
+
I((e) => i === 0 ? 0 : Math.min(e, i - 1));
|
|
139
|
+
}, [i]), p(() => {
|
|
140
|
+
const e = F.current;
|
|
141
|
+
z(!1), I(0), e?.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
142
|
+
const t = () => {
|
|
143
|
+
if (!e)
|
|
144
|
+
return;
|
|
145
|
+
e.scrollHeight - e.scrollTop <= e.clientHeight + 5 && z(!0);
|
|
146
|
+
};
|
|
147
|
+
return e?.addEventListener("scroll", t), t(), () => {
|
|
148
|
+
e?.removeEventListener("scroll", t);
|
|
149
|
+
};
|
|
150
|
+
}, [_e]), p(() => {
|
|
151
|
+
let e = !1;
|
|
152
|
+
return (async () => {
|
|
153
|
+
if (d) {
|
|
154
|
+
X([]), O(!1);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
O(!0), await new Promise((g) => setTimeout(g, 0));
|
|
158
|
+
const c = [], P = v.current.slice(0, i);
|
|
159
|
+
for (const g of P)
|
|
160
|
+
if (g)
|
|
161
|
+
try {
|
|
162
|
+
const y = await Ae.toPng(g, {
|
|
163
|
+
quality: 0.7,
|
|
164
|
+
pixelRatio: 1,
|
|
165
|
+
style: {
|
|
166
|
+
margin: "0",
|
|
167
|
+
borderRadius: "0",
|
|
168
|
+
boxShadow: "none"
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
c.push(y);
|
|
172
|
+
} catch (y) {
|
|
173
|
+
console.error("Thumbnail generation failed:", y);
|
|
174
|
+
}
|
|
175
|
+
e || (X(c), O(!1));
|
|
176
|
+
})(), () => {
|
|
177
|
+
e = !0;
|
|
178
|
+
};
|
|
179
|
+
}, [n, r, k, i, d, q]), p(() => {
|
|
180
|
+
if (d || $.length === 0)
|
|
181
|
+
return;
|
|
182
|
+
const e = v.current.slice(0, i).filter((c) => c != null);
|
|
183
|
+
if (e.length === 0)
|
|
184
|
+
return;
|
|
185
|
+
const t = new IntersectionObserver(
|
|
186
|
+
(c) => {
|
|
187
|
+
for (const P of c) {
|
|
188
|
+
if (!P.isIntersecting)
|
|
189
|
+
continue;
|
|
190
|
+
const g = e.findIndex((y) => y === P.target);
|
|
191
|
+
g !== -1 && I(g);
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{ root: F.current, threshold: 0.5 }
|
|
195
|
+
);
|
|
196
|
+
return e.forEach((c) => {
|
|
197
|
+
t.observe(c);
|
|
198
|
+
}), () => {
|
|
199
|
+
e.forEach((c) => {
|
|
200
|
+
t.unobserve(c);
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
}, [$, i, d]), p(() => {
|
|
204
|
+
const e = W.current;
|
|
205
|
+
if (!C || !e) {
|
|
206
|
+
V(0);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const t = () => {
|
|
210
|
+
V(Math.ceil(e.getBoundingClientRect().height));
|
|
211
|
+
};
|
|
212
|
+
if (t(), typeof ResizeObserver > "u")
|
|
213
|
+
return;
|
|
214
|
+
const c = new ResizeObserver(t);
|
|
215
|
+
return c.observe(e), () => {
|
|
216
|
+
c.disconnect();
|
|
217
|
+
};
|
|
218
|
+
}, [n.acceptance, C]);
|
|
219
|
+
const ee = (e) => {
|
|
220
|
+
const t = e instanceof Date ? e : new Date(e);
|
|
221
|
+
return Number.isNaN(t.getTime()) ? null : t;
|
|
222
|
+
}, ve = (e) => {
|
|
223
|
+
const t = ee(e);
|
|
224
|
+
return t ? new Intl.DateTimeFormat(m.legal, {
|
|
225
|
+
day: "2-digit",
|
|
226
|
+
month: "2-digit",
|
|
227
|
+
year: "numeric"
|
|
228
|
+
}).format(t) : "-";
|
|
229
|
+
}, te = (e) => {
|
|
230
|
+
const t = ee(e);
|
|
231
|
+
return t ? new Intl.DateTimeFormat(m.legal, {
|
|
232
|
+
day: "2-digit",
|
|
233
|
+
month: "2-digit",
|
|
234
|
+
year: "numeric",
|
|
235
|
+
hour: "2-digit",
|
|
236
|
+
minute: "2-digit"
|
|
237
|
+
}).format(t) : "-";
|
|
238
|
+
}, ne = async (e) => {
|
|
239
|
+
const t = f ? await f(e) : void 0;
|
|
240
|
+
if (t) {
|
|
241
|
+
D(t);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
D((c) => ({ ...c, acceptance: e }));
|
|
245
|
+
}, Te = async () => {
|
|
246
|
+
await ne({
|
|
247
|
+
mode: "acceptance",
|
|
248
|
+
date: /* @__PURE__ */ new Date()
|
|
249
|
+
});
|
|
250
|
+
}, be = async (e) => {
|
|
251
|
+
await ne(e);
|
|
252
|
+
}, Se = (e) => {
|
|
253
|
+
I(e), v.current[e]?.scrollIntoView({
|
|
254
|
+
behavior: "smooth",
|
|
255
|
+
block: "start"
|
|
256
|
+
});
|
|
257
|
+
}, we = C ? se + U : U, T = l === "parent", ye = n.acceptanceLevel === "signature" ? u(L ? "docs_contract_sale_action_signature_ready" : "docs_contract_sale_action_signature_locked") : u(L ? "docs_contract_sale_action_acceptance_ready" : "docs_contract_sale_action_acceptance_locked"), oe = E?.mode === "signature" ? u("docs_contract_sale_already_signed", { date: te(E.date) }) : E?.mode === "acceptance" ? u("docs_contract_sale_already_accepted", { date: te(E.date) }) : null, ce = (e, t) => /* @__PURE__ */ R(
|
|
258
|
+
Re,
|
|
259
|
+
{
|
|
260
|
+
ref: (c) => {
|
|
261
|
+
v.current[t] = c;
|
|
262
|
+
},
|
|
263
|
+
className: d || t === i - 1 ? "!mb-0" : void 0,
|
|
264
|
+
children: [
|
|
265
|
+
/* @__PURE__ */ a(
|
|
266
|
+
De,
|
|
267
|
+
{
|
|
268
|
+
documentTitle: J,
|
|
269
|
+
saleDocumentNumber: n.saleDocumentNumber,
|
|
270
|
+
currentPage: t + 1,
|
|
271
|
+
totalPages: i,
|
|
272
|
+
documentLanguage: m
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
e.kind === "invoice" ? /* @__PURE__ */ a(
|
|
276
|
+
Pe,
|
|
277
|
+
{
|
|
278
|
+
saleDocument: n,
|
|
279
|
+
items: e.items,
|
|
280
|
+
subtotal: K,
|
|
281
|
+
tax: he,
|
|
282
|
+
total: N,
|
|
283
|
+
formatDate: ve,
|
|
284
|
+
showInvoiceMeta: e.showInvoiceMeta,
|
|
285
|
+
showTotalsSection: e.showTotalsSection,
|
|
286
|
+
showNotesSection: e.showNotesSection,
|
|
287
|
+
showAcceptanceSection: e.showAcceptanceSection,
|
|
288
|
+
documentQrCodeUrl: e.showInvoiceMeta ? q : void 0,
|
|
289
|
+
documentLanguage: m
|
|
290
|
+
}
|
|
291
|
+
) : /* @__PURE__ */ a("main", { className: "flex-grow px-4 text-left md:px-8", children: /* @__PURE__ */ a(
|
|
292
|
+
Be,
|
|
293
|
+
{
|
|
294
|
+
title: e.title,
|
|
295
|
+
articles: e.articles,
|
|
296
|
+
withEnglishTranslation: k,
|
|
297
|
+
showTitle: e.showTitle
|
|
298
|
+
}
|
|
299
|
+
) }),
|
|
300
|
+
/* @__PURE__ */ a(
|
|
301
|
+
Me,
|
|
302
|
+
{
|
|
303
|
+
documentTitle: J,
|
|
304
|
+
saleDocumentNumber: n.saleDocumentNumber,
|
|
305
|
+
currentPage: t + 1,
|
|
306
|
+
totalPages: i,
|
|
307
|
+
documentLanguage: m
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
e.key
|
|
313
|
+
);
|
|
314
|
+
return d ? /* @__PURE__ */ a(
|
|
315
|
+
"div",
|
|
316
|
+
{
|
|
317
|
+
"data-testid": ue ? "contract-sale-document-pdf-ready" : void 0,
|
|
318
|
+
className: "contract-sale-document contract-sale-document-pdf bg-white text-foreground",
|
|
319
|
+
children: x.map(ce)
|
|
320
|
+
}
|
|
321
|
+
) : /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ R("div", { className: `contract-sale-document ${T ? "h-full" : "h-dvh"} min-h-0 md:flex`, children: [
|
|
322
|
+
/* @__PURE__ */ a(
|
|
323
|
+
Fe,
|
|
324
|
+
{
|
|
325
|
+
thumbnails: $,
|
|
326
|
+
activePage: le,
|
|
327
|
+
onThumbnailClick: Se,
|
|
328
|
+
totalPages: i,
|
|
329
|
+
heightClassName: T ? "h-full" : "h-dvh",
|
|
330
|
+
contentClassName: T ? "pt-16" : void 0,
|
|
331
|
+
isLoading: ie
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ R(
|
|
335
|
+
"div",
|
|
336
|
+
{
|
|
337
|
+
ref: F,
|
|
338
|
+
"data-testid": "contract-sale-document-scroll-container",
|
|
339
|
+
className: `${T ? "h-full" : "h-dvh"} min-h-0 flex-1 overflow-y-auto overscroll-y-contain bg-transparent`,
|
|
340
|
+
style: {
|
|
341
|
+
paddingTop: T ? "3.5rem" : void 0,
|
|
342
|
+
scrollPaddingTop: T ? "3.5rem" : void 0,
|
|
343
|
+
paddingBottom: `${we}px`
|
|
344
|
+
},
|
|
345
|
+
children: [
|
|
346
|
+
x.map(ce),
|
|
347
|
+
/* @__PURE__ */ a(
|
|
348
|
+
"p",
|
|
349
|
+
{
|
|
350
|
+
className: "px-4 text-center text-xs text-muted-foreground/75 md:px-8",
|
|
351
|
+
style: { paddingTop: `${U}px` },
|
|
352
|
+
children: u("docs_contract_sale_end")
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
C ? /* @__PURE__ */ a(
|
|
356
|
+
"div",
|
|
357
|
+
{
|
|
358
|
+
ref: W,
|
|
359
|
+
className: "fixed bottom-0 left-0 right-0 z-30 flex items-center justify-center border-t border-border bg-background/70 p-4 backdrop-blur-xl backdrop-saturate-125 supports-[backdrop-filter]:bg-background/55",
|
|
360
|
+
children: oe ? /* @__PURE__ */ R("div", { className: "flex items-center gap-2 px-6 py-3 text-sm font-semibold text-emerald-700", children: [
|
|
361
|
+
/* @__PURE__ */ a(Ne, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
362
|
+
/* @__PURE__ */ a("p", { className: "text-center", children: oe })
|
|
363
|
+
] }) : /* @__PURE__ */ a(
|
|
364
|
+
Ce,
|
|
365
|
+
{
|
|
366
|
+
onClick: () => w(n.acceptanceLevel === "signature" ? "signature" : "acceptance"),
|
|
367
|
+
disabled: !L,
|
|
368
|
+
className: "px-6 py-3 text-sm font-semibold",
|
|
369
|
+
"data-testid": "contract-sale-document-action-button",
|
|
370
|
+
children: ye
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
}
|
|
374
|
+
) : null,
|
|
375
|
+
/* @__PURE__ */ a(
|
|
376
|
+
Ee,
|
|
377
|
+
{
|
|
378
|
+
isOpen: Q === "acceptance",
|
|
379
|
+
onClose: () => w(null),
|
|
380
|
+
onAccept: async () => {
|
|
381
|
+
await Te(), w(null);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
),
|
|
385
|
+
/* @__PURE__ */ a(
|
|
386
|
+
Le,
|
|
387
|
+
{
|
|
388
|
+
isOpen: Q === "signature",
|
|
389
|
+
onClose: () => w(null),
|
|
390
|
+
onSave: async (e) => {
|
|
391
|
+
await be(e), w(null);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
)
|
|
398
|
+
] }) });
|
|
399
|
+
}
|
|
400
|
+
export {
|
|
401
|
+
ut as ContractSaleDocument
|
|
402
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as T } from "react-i18next";
|
|
3
|
+
import { formatContractSaleDocumentLabel as B, formatContractSaleDocumentLegalLabel as G } from "./language.js";
|
|
4
|
+
function I(c) {
|
|
5
|
+
const l = c?.trim() ?? "";
|
|
6
|
+
return !l || l === "-" ? "" : l;
|
|
7
|
+
}
|
|
8
|
+
function i(c, l, p) {
|
|
9
|
+
const o = l.trim().toUpperCase();
|
|
10
|
+
try {
|
|
11
|
+
return new Intl.NumberFormat(p, {
|
|
12
|
+
style: "currency",
|
|
13
|
+
currency: o
|
|
14
|
+
}).format(c);
|
|
15
|
+
} catch {
|
|
16
|
+
return `${c.toFixed(2)} ${o}`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function M({
|
|
20
|
+
saleDocument: c,
|
|
21
|
+
items: l,
|
|
22
|
+
subtotal: p,
|
|
23
|
+
tax: o,
|
|
24
|
+
total: R,
|
|
25
|
+
formatDate: _,
|
|
26
|
+
documentLanguage: s,
|
|
27
|
+
showInvoiceMeta: P = !0,
|
|
28
|
+
showTotalsSection: N = !0,
|
|
29
|
+
showNotesSection: v = !0,
|
|
30
|
+
showAcceptanceSection: w = !0,
|
|
31
|
+
documentQrCodeUrl: y
|
|
32
|
+
}) {
|
|
33
|
+
const { t: x } = T(), r = (a, d = {}) => B(x, s, a, d), m = (a, d = {}) => G(x, s, a, d), f = (a, d = {}) => {
|
|
34
|
+
const h = r(a, d), C = " / ", g = h.indexOf(C);
|
|
35
|
+
return g === -1 ? /* @__PURE__ */ e("span", { children: h }) : /* @__PURE__ */ t("span", { className: "inline-flex flex-col text-left leading-snug", children: [
|
|
36
|
+
/* @__PURE__ */ e("span", { children: h.slice(0, g) }),
|
|
37
|
+
/* @__PURE__ */ e("span", { className: "text-[0.9em] font-normal", children: h.slice(g + C.length) })
|
|
38
|
+
] });
|
|
39
|
+
}, j = !N && !v && !w, k = I(c.issuer.address), q = I(c.recipient.address), L = c.recipient.email?.trim() ?? "", n = c.acceptance?.mode === "signature" ? c.acceptance : null, b = c.acceptance?.mode === "acceptance" ? c.acceptance : null, z = c.acceptanceLevel === "signature" || n !== null, u = c.kind === "credit_note", O = r(
|
|
40
|
+
u ? "docs_contract_sale_credit_note_title" : "docs_contract_sale_invoice_title"
|
|
41
|
+
), S = r(
|
|
42
|
+
u ? "docs_contract_sale_credit_note_date_label" : "docs_contract_sale_invoice_date_label"
|
|
43
|
+
), $ = r(
|
|
44
|
+
u ? "docs_contract_sale_credit_note_recipient_label" : "docs_contract_sale_invoice_recipient_label"
|
|
45
|
+
), A = u ? -1 : 1, F = c.taxRate != null ? 1 + c.taxRate : 1;
|
|
46
|
+
return /* @__PURE__ */ t("main", { className: "flex flex-grow flex-col px-4 md:px-8", children: [
|
|
47
|
+
P && /* @__PURE__ */ t("header", { className: "mb-8 grid gap-6", children: [
|
|
48
|
+
/* @__PURE__ */ t("div", { className: "grid gap-6 md:grid-cols-2 md:gap-8", children: [
|
|
49
|
+
/* @__PURE__ */ t("div", { children: [
|
|
50
|
+
/* @__PURE__ */ t("h1", { className: "flex flex-wrap items-baseline gap-x-2 gap-y-1 text-xl font-semibold text-foreground", children: [
|
|
51
|
+
/* @__PURE__ */ e("span", { children: O }),
|
|
52
|
+
/* @__PURE__ */ t("span", { className: "font-normal text-muted-foreground", children: [
|
|
53
|
+
"#",
|
|
54
|
+
c.saleDocumentNumber
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
y ? /* @__PURE__ */ e(
|
|
58
|
+
"img",
|
|
59
|
+
{
|
|
60
|
+
src: y,
|
|
61
|
+
alt: x("docs_contract_sale_qr_alt"),
|
|
62
|
+
className: "mt-4 block h-24 w-24",
|
|
63
|
+
"data-testid": "contract-sale-document-public-url-qr"
|
|
64
|
+
}
|
|
65
|
+
) : null
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ t("div", { className: "md:text-right", children: [
|
|
68
|
+
/* @__PURE__ */ t("div", { className: "mb-2", children: [
|
|
69
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: S }),
|
|
70
|
+
/* @__PURE__ */ e("p", { className: "text-muted-foreground", children: _(c.date) })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ t("div", { children: [
|
|
73
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: r("docs_contract_sale_due_date_label") }),
|
|
74
|
+
/* @__PURE__ */ e("p", { className: "text-muted-foreground", children: _(c.dueDate) })
|
|
75
|
+
] })
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ t("div", { className: "grid gap-6 md:grid-cols-2 md:gap-8", children: [
|
|
79
|
+
/* @__PURE__ */ t("div", { children: [
|
|
80
|
+
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-primary", children: c.issuer.name }),
|
|
81
|
+
k ? /* @__PURE__ */ e("p", { className: "text-muted-foreground whitespace-pre-line", children: k }) : null
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ t("div", { className: "md:text-right", children: [
|
|
84
|
+
/* @__PURE__ */ e("h3", { className: "mb-2 font-semibold text-foreground", children: $ }),
|
|
85
|
+
/* @__PURE__ */ e("p", { className: "font-bold text-foreground", children: c.recipient.name }),
|
|
86
|
+
q ? /* @__PURE__ */ e("p", { className: "text-muted-foreground whitespace-pre-line", children: q }) : null,
|
|
87
|
+
L ? /* @__PURE__ */ e("p", { className: "text-muted-foreground", children: L }) : null
|
|
88
|
+
] })
|
|
89
|
+
] })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ t("section", { className: j ? "mb-0 flex flex-grow flex-col" : "mb-8", children: [
|
|
92
|
+
/* @__PURE__ */ t("div", { className: "flex bg-muted p-2 text-xs font-semibold text-muted-foreground md:p-3 md:text-base", children: [
|
|
93
|
+
/* @__PURE__ */ e("div", { className: "w-5/12 pr-2 md:w-1/2", children: /* @__PURE__ */ e("span", { children: m("docs_contract_sale_description_label") }) }),
|
|
94
|
+
/* @__PURE__ */ e("div", { className: "w-1/6 text-center", children: /* @__PURE__ */ e("span", { children: m("docs_contract_sale_quantity_label") }) }),
|
|
95
|
+
/* @__PURE__ */ e("div", { className: "w-3/12 text-right md:w-1/6", children: /* @__PURE__ */ e("span", { children: m("docs_contract_sale_unit_price_label") }) }),
|
|
96
|
+
/* @__PURE__ */ e("div", { className: "w-1/6 text-right", children: /* @__PURE__ */ e("span", { children: m("docs_contract_sale_line_total_label") }) })
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ e("div", { className: j ? "flex flex-1 flex-col" : "flex flex-col", children: l.map((a) => /* @__PURE__ */ t("div", { className: "flex items-center border-b border-border p-2 text-sm md:p-3 md:text-base", children: [
|
|
99
|
+
/* @__PURE__ */ e("div", { className: "w-5/12 pr-2 md:w-1/2", children: /* @__PURE__ */ e("span", { children: a.description }) }),
|
|
100
|
+
/* @__PURE__ */ e("div", { className: "w-1/6 text-center", children: /* @__PURE__ */ e("span", { children: a.quantity }) }),
|
|
101
|
+
/* @__PURE__ */ e("div", { className: "w-3/12 text-right md:w-1/6", children: /* @__PURE__ */ e("span", { children: i(a.unitPrice / F * A, c.currency, s.customer) }) }),
|
|
102
|
+
/* @__PURE__ */ e("div", { className: "w-1/6 text-right", children: /* @__PURE__ */ e("span", { children: i(a.quantity * a.unitPrice / F * A, c.currency, s.customer) }) })
|
|
103
|
+
] }, a.id)) })
|
|
104
|
+
] }),
|
|
105
|
+
N && /* @__PURE__ */ e("section", { className: "mb-16 flex justify-end", children: /* @__PURE__ */ t("div", { className: "w-full md:w-1/3", children: [
|
|
106
|
+
/* @__PURE__ */ t("div", { className: "mb-2 flex items-start justify-between gap-4", children: [
|
|
107
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: f("docs_contract_sale_subtotal_label") }),
|
|
108
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-right font-semibold", children: i(p, c.currency, s.customer) })
|
|
109
|
+
] }),
|
|
110
|
+
c.taxRate != null && /* @__PURE__ */ t("div", { className: "mb-2 flex items-start justify-between gap-4", children: [
|
|
111
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: f("docs_contract_sale_tax_label", { rate: (c.taxRate * 100).toFixed(0) }) }),
|
|
112
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-right font-semibold", children: i(o, c.currency, s.customer) })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "mt-2 flex items-start justify-between gap-4 border-t border-border pt-2", children: [
|
|
115
|
+
/* @__PURE__ */ e("span", { className: "text-xl font-bold", children: f("docs_contract_sale_total_label") }),
|
|
116
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-right text-xl font-bold", children: i(R, c.currency, s.customer) })
|
|
117
|
+
] })
|
|
118
|
+
] }) }),
|
|
119
|
+
v && c.notes && /* @__PURE__ */ t("section", { className: "mb-16", children: [
|
|
120
|
+
/* @__PURE__ */ e("h3", { className: "mb-4 border-b border-border pb-2 font-semibold text-foreground", children: r("docs_contract_sale_notes_title") }),
|
|
121
|
+
/* @__PURE__ */ e("div", { className: "gap-8 text-sm text-muted-foreground md:columns-2", children: /* @__PURE__ */ e("p", { children: c.notes }) })
|
|
122
|
+
] }),
|
|
123
|
+
w && (c.acceptanceLevel !== "none" || c.acceptance) ? /* @__PURE__ */ e("section", { className: "mt-auto border-t border-border pt-8", children: z ? /* @__PURE__ */ t(E, { children: [
|
|
124
|
+
/* @__PURE__ */ e("p", { className: "mb-12 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ e("span", { children: r("docs_contract_sale_signature_acknowledgement") }) }),
|
|
125
|
+
n ? /* @__PURE__ */ t("div", { className: "flex flex-col justify-between md:flex-row", children: [
|
|
126
|
+
/* @__PURE__ */ t("div", { className: "mb-8 w-full md:mb-0 md:w-2/5", children: [
|
|
127
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: r("docs_contract_sale_signature_issuer_label") }),
|
|
128
|
+
/* @__PURE__ */ e("p", { className: "mb-2 mt-2 text-sm text-muted-foreground", children: /* @__PURE__ */ t("span", { children: [
|
|
129
|
+
r("docs_contract_sale_signature_date_label"),
|
|
130
|
+
": ___________________"
|
|
131
|
+
] }) }),
|
|
132
|
+
/* @__PURE__ */ e("div", { className: "h-24 rounded-lg bg-muted/40" })
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ t("div", { className: "w-full text-left md:w-2/5", children: [
|
|
135
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: r("docs_contract_sale_signature_customer_label") }),
|
|
136
|
+
/* @__PURE__ */ e("p", { className: "mb-2 mt-2 text-sm text-muted-foreground", children: /* @__PURE__ */ t("span", { children: [
|
|
137
|
+
r("docs_contract_sale_signature_date_label"),
|
|
138
|
+
": ",
|
|
139
|
+
_(n.date)
|
|
140
|
+
] }) }),
|
|
141
|
+
/* @__PURE__ */ e("div", { className: "flex h-24 items-center justify-center rounded-lg bg-muted/40 p-2", children: /* @__PURE__ */ e(
|
|
142
|
+
"img",
|
|
143
|
+
{
|
|
144
|
+
src: n.signature,
|
|
145
|
+
alt: r("docs_contract_sale_signature_image_alt"),
|
|
146
|
+
className: "max-h-full max-w-full"
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ e("p", { className: "mt-2 text-sm text-foreground", children: n.name }),
|
|
150
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: n.phone })
|
|
151
|
+
] })
|
|
152
|
+
] }) : /* @__PURE__ */ t("div", { className: "flex flex-col justify-between md:flex-row", children: [
|
|
153
|
+
/* @__PURE__ */ t("div", { className: "mb-8 w-full md:mb-0 md:w-2/5", children: [
|
|
154
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: r("docs_contract_sale_signature_issuer_label") }),
|
|
155
|
+
/* @__PURE__ */ e("p", { className: "mb-2 mt-2 text-sm text-muted-foreground", children: /* @__PURE__ */ t("span", { children: [
|
|
156
|
+
r("docs_contract_sale_signature_date_label"),
|
|
157
|
+
": ___________________"
|
|
158
|
+
] }) }),
|
|
159
|
+
/* @__PURE__ */ e("div", { className: "h-24 rounded-lg bg-muted/40" })
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ t("div", { className: "w-full md:w-2/5", children: [
|
|
162
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-foreground", children: r("docs_contract_sale_signature_customer_label") }),
|
|
163
|
+
/* @__PURE__ */ e("p", { className: "mb-2 mt-2 text-sm text-muted-foreground", children: /* @__PURE__ */ t("span", { children: [
|
|
164
|
+
r("docs_contract_sale_signature_date_label"),
|
|
165
|
+
": ___________________"
|
|
166
|
+
] }) }),
|
|
167
|
+
/* @__PURE__ */ e("div", { className: "h-24 rounded-lg bg-muted/40" })
|
|
168
|
+
] })
|
|
169
|
+
] })
|
|
170
|
+
] }) : /* @__PURE__ */ t("div", { className: "rounded-lg border border-border bg-muted/30 p-4", children: [
|
|
171
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-foreground", children: r(b ? "docs_contract_sale_acceptance_section_accepted_title" : "docs_contract_sale_acceptance_section_required_title") }),
|
|
172
|
+
/* @__PURE__ */ e("p", { className: "mt-1 text-sm text-muted-foreground", children: b ? r("docs_contract_sale_acceptance_section_accepted_date", {
|
|
173
|
+
date: _(b.date)
|
|
174
|
+
}) : r("docs_contract_sale_acceptance_section_required_description") })
|
|
175
|
+
] }) }) : null
|
|
176
|
+
] });
|
|
177
|
+
}
|
|
178
|
+
export {
|
|
179
|
+
M as InvoiceDetails
|
|
180
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
const m = d(({ children: e, className: r }, a) => /* @__PURE__ */ o(
|
|
4
|
+
"div",
|
|
5
|
+
{
|
|
6
|
+
ref: a,
|
|
7
|
+
className: `invoice-wrapper a4-page-screen mb-6 break-after-page flex flex-col bg-card text-card-foreground md:mx-auto md:mb-8 md:border md:border-border md:shadow-subtle ${r ?? ""}`,
|
|
8
|
+
children: e
|
|
9
|
+
}
|
|
10
|
+
));
|
|
11
|
+
m.displayName = "Page";
|
|
12
|
+
export {
|
|
13
|
+
m as Page
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as t, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as p } from "react-i18next";
|
|
3
|
+
import { formatContractSaleDocumentLegalLabel as d } from "./language.js";
|
|
4
|
+
function u({
|
|
5
|
+
documentTitle: r,
|
|
6
|
+
saleDocumentNumber: o,
|
|
7
|
+
currentPage: n,
|
|
8
|
+
totalPages: e,
|
|
9
|
+
documentLanguage: a
|
|
10
|
+
}) {
|
|
11
|
+
const { t: s } = p(), c = d(s, a, "docs_contract_sale_page_counter", {
|
|
12
|
+
current_page: n,
|
|
13
|
+
total_pages: e
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ t("footer", { className: "mt-12 hidden items-center justify-between border-t border-border px-4 pb-4 pt-4 text-sm text-muted-foreground md:flex md:px-8", children: [
|
|
16
|
+
/* @__PURE__ */ t("span", { children: [
|
|
17
|
+
r,
|
|
18
|
+
" #",
|
|
19
|
+
o
|
|
20
|
+
] }),
|
|
21
|
+
e > 1 && /* @__PURE__ */ m("span", { children: c })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as PageFooter
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as r, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as d } from "react-i18next";
|
|
3
|
+
import { formatContractSaleDocumentLegalLabel as m } from "./language.js";
|
|
4
|
+
function u({
|
|
5
|
+
documentTitle: t,
|
|
6
|
+
saleDocumentNumber: o,
|
|
7
|
+
currentPage: a,
|
|
8
|
+
totalPages: e,
|
|
9
|
+
documentLanguage: n
|
|
10
|
+
}) {
|
|
11
|
+
const { t: c } = d(), s = m(c, n, "docs_contract_sale_page_counter", {
|
|
12
|
+
current_page: a,
|
|
13
|
+
total_pages: e
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ r("div", { className: "sticky top-0 z-10 mb-8 flex items-center justify-between border-b border-border bg-card/95 px-4 pb-4 pt-4 text-sm text-muted-foreground backdrop-blur md:px-8", children: [
|
|
16
|
+
/* @__PURE__ */ r("span", { children: [
|
|
17
|
+
t,
|
|
18
|
+
" #",
|
|
19
|
+
o
|
|
20
|
+
] }),
|
|
21
|
+
e > 1 && /* @__PURE__ */ p("span", { children: s })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as PageHeader
|
|
26
|
+
};
|