@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.
Files changed (491) hide show
  1. package/dist/BookingPage.d.ts +6 -0
  2. package/dist/CheckoutPage.d.ts +6 -0
  3. package/dist/CheckoutPaymentPage.d.ts +6 -0
  4. package/dist/CheckoutSuccessPage.d.ts +6 -0
  5. package/dist/ContractSaleDocumentPage.d.ts +116 -0
  6. package/dist/ErrorPage.d.ts +6 -0
  7. package/dist/HomePage.d.ts +6 -0
  8. package/dist/I18nProvider.d.ts +23 -0
  9. package/dist/NotFoundPage.d.ts +6 -0
  10. package/dist/PaymentLinkPage.d.ts +40 -0
  11. package/dist/PaymentLinkSuccessPage.d.ts +40 -0
  12. package/dist/ProductPage.d.ts +6 -0
  13. package/dist/StorefrontProvider.d.ts +1119 -0
  14. package/dist/StorefrontProvider.js +95 -0
  15. package/dist/accessories.d.ts +42 -0
  16. package/dist/apiCall.d.ts +7 -0
  17. package/dist/assets/dev.svg +4 -0
  18. package/dist/assets/playground-hero-preview.svg +4 -0
  19. package/dist/assets/whatsapp.svg +4 -0
  20. package/dist/badge.d.ts +14 -0
  21. package/dist/bikes.d.ts +107 -0
  22. package/dist/booking-period-time-slots.d.ts +279 -0
  23. package/dist/booking-period.d.ts +173 -0
  24. package/dist/booking.d.ts +384 -0
  25. package/dist/button.d.ts +16 -0
  26. package/dist/card.d.ts +18 -0
  27. package/dist/cart.d.ts +30 -0
  28. package/dist/cartSummary.d.ts +205 -0
  29. package/dist/checkoutPaymentDecision.d.ts +48 -0
  30. package/dist/checkoutPaymentSession.d.ts +65 -0
  31. package/dist/checkoutSubmit.d.ts +61 -0
  32. package/dist/checkoutVerifyCoupon.d.ts +45 -0
  33. package/dist/chunks/node_modules/react-day-picker/dist/esm/components/DayButton-D9KJeDKs.js +10 -0
  34. package/dist/chunks/pkg/booking-engine/dist/models/LocalizedString--6q77SPQ.js +36 -0
  35. package/dist/chunks/pkg/booking-engine/dist/models/Price-BlFRDHXV.js +13 -0
  36. package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-BiDGmurZ.js +85 -0
  37. package/dist/chunks/pkg/booking-engine/dist/models/types-DLcvzW5b.js +13 -0
  38. package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js +18 -0
  39. package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-D9k8ehGi.js +75 -0
  40. package/dist/chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CnBdp3jk.js +104 -0
  41. package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-DYgEGJ5M.js +73 -0
  42. package/dist/chunks/pkg/booking-engine/dist/schemas/money-Dy4b9loa.js +23 -0
  43. package/dist/chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-C9VB-WhU.js +17 -0
  44. package/dist/chunks/pkg/booking-engine/dist/schemas/rich-text-CqXhNDN3.js +15 -0
  45. package/dist/chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-B47MMaoD.js +45 -0
  46. package/dist/chunks/pkg/booking-engine/dist/utils/pricing-DcnUXaeI.js +36 -0
  47. package/dist/chunks/pkg/ui/dist/Button-CEl4MEmL.js +44 -0
  48. package/dist/chunks/pkg/ui/dist/Dialog-COr6fnKd.js +283 -0
  49. package/dist/chunks/pkg/ui/dist/Drawer/index-BxM7gmh_.js +226 -0
  50. package/dist/chunks/pkg/ui/dist/Map/MapContent-BqCzk6pD.js +292 -0
  51. package/dist/chunks/pkg/ui/dist/Map/constants-AiBwXZf6.js +4 -0
  52. package/dist/chunks/pkg/ui/dist/Map-Cqn7INdm.js +50 -0
  53. package/dist/chunks/pkg/ui/dist/MorphingModalWizard-D7hc-dDP.js +30 -0
  54. package/dist/chunks/pkg/ui/dist/ResponsiveDialog-D8YzB_3J.js +154 -0
  55. package/dist/chunks/pkg/ui/dist/ScrollArea-D9UdixQL.js +67 -0
  56. package/dist/chunks/pkg/ui/dist/SsrHydratablePortal/index-Ue09qUAi.js +40 -0
  57. package/dist/chunks/pkg/ui/dist/_virtual/_commonjsHelpers-W3dGiUWw.js +6 -0
  58. package/dist/chunks/pkg/ui/dist/_virtual/index-C9tmbAjU.js +5 -0
  59. package/dist/chunks/pkg/ui/dist/_virtual/index2-Cr2SmWQI.js +4 -0
  60. package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl-8G326Xvx.js +27 -0
  61. package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl2-CffgHKjA.js +4 -0
  62. package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.development-DmH-ks33.js +4 -0
  63. package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.production-BjPWYSZb.js +4 -0
  64. package/dist/chunks/pkg/ui/dist/_virtual/with-selector-BTwk-iW5.js +5 -0
  65. package/dist/chunks/pkg/ui/dist/_virtual/with-selector.development-DmH-ks33.js +4 -0
  66. package/dist/chunks/pkg/ui/dist/_virtual/with-selector.production-xTL6w2lb.js +4 -0
  67. package/dist/chunks/pkg/ui/dist/_virtual/with-selector2-Cr2SmWQI.js +4 -0
  68. package/dist/chunks/pkg/ui/dist/lib/body-pointer-events-CyPsDvc9.js +16 -0
  69. package/dist/chunks/pkg/ui/dist/lib/isAutomationRuntime-Cu2aNI6_.js +5 -0
  70. package/dist/chunks/pkg/ui/dist/lib/slot-CklkPb7k.js +50 -0
  71. package/dist/chunks/pkg/ui/dist/lib/useMediaQuery-DhKGnWgn.js +20 -0
  72. package/dist/chunks/pkg/ui/dist/lib/utils-B6zhukbw.js +8 -0
  73. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/csp-provider/CSPContext-9LViUOEN.js +13 -0
  74. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop-dfhPbhun.js +40 -0
  75. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/close/DialogClose-CiEiuP0S.js +41 -0
  76. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/description/DialogDescription-C793yEmX.js +25 -0
  77. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup-Ce1MaHNd.js +80 -0
  78. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars-Bt8y0AZk.js +6 -0
  79. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes-C1piwkT4.js +7 -0
  80. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal-DCoXyUCa.js +30 -0
  81. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext-CtWBuvRl.js +14 -0
  82. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRoot-DYrthiUT.js +64 -0
  83. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext-D__rrg4-.js +14 -0
  84. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot-Dmki7CJG.js +81 -0
  85. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/store/DialogStore-ltMcMpnh.js +69 -0
  86. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/title/DialogTitle-BYe_-O2U.js +25 -0
  87. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger-CDsWAaqd.js +56 -0
  88. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewport-CoAyzYQs.js +54 -0
  89. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewportDataAttributes-C_9BMPUj.js +7 -0
  90. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdrop-BqcC6xGK.js +45 -0
  91. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdropCssVars-BtzwweRf.js +6 -0
  92. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/close/DrawerClose-K9toitLg.js +5 -0
  93. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContent-DAER5HEH.js +22 -0
  94. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContentDataAttributes-CpDnPAXP.js +4 -0
  95. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/description/DrawerDescription-CmzTECJs.js +5 -0
  96. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopup-BXOe4Llu.js +241 -0
  97. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupCssVars-Ct685Bcm.js +6 -0
  98. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupDataAttributes-BsZri5W4.js +7 -0
  99. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/portal/DrawerPortal-BfTFM1p8.js +5 -0
  100. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/provider/DrawerProviderContext-euW_U5h8.js +10 -0
  101. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRoot-DuO16Hl3.js +148 -0
  102. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRootContext-Cyaf-7qv.js +14 -0
  103. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/useDrawerSnapPoints-CVbKGPMi.js +105 -0
  104. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/title/DrawerTitle-DPojAJP6.js +5 -0
  105. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/trigger/DrawerTrigger-BKWBskBD.js +5 -0
  106. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewport-BA1WyQud.js +593 -0
  107. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewportContext-xR35hPcl.js +10 -0
  108. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager-B-v_gyUI.js +264 -0
  109. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal-6JOqLjHM.js +129 -0
  110. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore-D8M2d4pp.js +74 -0
  111. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree-BJGeWpX5.js +15 -0
  112. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick-C3V1YAJN.js +68 -0
  113. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss-BzvyAPc1.js +265 -0
  114. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions-BWCpGAad.js +48 -0
  115. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole-DfMbRaU2.js +76 -0
  116. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext-Cczfd0Dg.js +35 -0
  117. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite-keZdnJD9.js +11 -0
  118. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants-B-72x4uQ.js +7 -0
  119. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute-DQjmnndx.js +6 -0
  120. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter-156NFNq-.js +17 -0
  121. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element-7_beKIST.js +29 -0
  122. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus-BoxfANJQ.js +22 -0
  123. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event-BJf3Eroa.js +29 -0
  124. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext-AtxQDZdS.js +18 -0
  125. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers-im_zgP9x.js +80 -0
  126. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes-BbaFB8UD.js +15 -0
  127. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable-BUkXLKOZ.js +140 -0
  128. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/clamp--orC6ThW.js +6 -0
  129. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/composite-Bl9mbNwg.js +14 -0
  130. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext-hBCEpdkp.js +14 -0
  131. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/constants-DrTrmCr_.js +12 -0
  132. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails-WO93mcXE.js +26 -0
  133. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext-DHsnfCgz.js +10 -0
  134. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/getStateAttributesProps-rQvCQegA.js +16 -0
  135. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/reason-parts-DKJ_-O8k.js +13 -0
  136. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/shadowDom-DTBRPFkJ.js +31 -0
  137. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/stateAttributesMapping-B17IMmGk.js +16 -0
  138. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/use-button/useButton-CW30d95j.js +113 -0
  139. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useAnimationsFinished-B8I0rTuq.js +54 -0
  140. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useBaseUiId-BhlhP3ZP.js +7 -0
  141. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useOpenChangeComplete-Doxu2x_W.js +22 -0
  142. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useRenderElement-CktkgllD.js +71 -0
  143. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useTransitionStatus-D7bNijs9.js +42 -0
  144. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useValueChanged-DNmBrXYR.js +14 -0
  145. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/merge-props/mergeProps-taN4tP1i.js +102 -0
  146. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/constants-BMXX3oM8.js +5 -0
  147. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner-z0cNScNF.js +31 -0
  148. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot-Cw_gyhhI.js +166 -0
  149. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootContext-CQVTL1yg.js +14 -0
  150. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootCssVars-UMzfvqzf.js +6 -0
  151. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootDataAttributes-DYAeFs1E.js +6 -0
  152. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/stateAttributes-e5OzHsp_.js +25 -0
  153. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbar-DGyLPhKe.js +132 -0
  154. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarContext-Cn2tB9KX.js +14 -0
  155. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarCssVars-CVtQQfDD.js +6 -0
  156. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes-CcesYZ2Y.js +6 -0
  157. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/thumb/ScrollAreaThumb-08Mmzry4.js +50 -0
  158. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/utils/getOffset-D1-wFs-x.js +9 -0
  159. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport-CadjBxEp.js +201 -0
  160. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportContext-O9cXognJ.js +6 -0
  161. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportCssVars-Dttwkr3N.js +6 -0
  162. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/FocusGuard-BkeVKSkX.js +24 -0
  163. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop-CZUtC9bU.js +30 -0
  164. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/getElementAtPoint-CR7qt9tE.js +6 -0
  165. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping-DVUopj_P.js +32 -0
  166. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils-DSjS8g02.js +95 -0
  167. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap-RUMkUgDU.js +64 -0
  168. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/store-Bz3dUxiI.js +52 -0
  169. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveClassName-D2IlO_XQ.js +6 -0
  170. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveRef-Csx4Vghu.js +6 -0
  171. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveStyle-MTmYMe0U.js +6 -0
  172. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollEdges-DZboWB_y.js +12 -0
  173. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollable-D1F6TRF5.js +34 -0
  174. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/styles-BrbvX9PD.js +16 -0
  175. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled-CJZi1M5y.js +24 -0
  176. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType-CW--rAaF.js +30 -0
  177. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useSwipeDismiss-ZcIND0Ss.js +530 -0
  178. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/addEventListener-DnnRp2CB.js +8 -0
  179. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/detectBrowser-CntSiJrj.js +43 -0
  180. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/empty-C3-x9M2q.js +7 -0
  181. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/error-KZbzusBH.js +11 -0
  182. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/formatErrorMessage-BJfWDcMI.js +11 -0
  183. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/getReactElementRef-CB7CT3xn.js +11 -0
  184. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/inertValue-C-Qws-Vy.js +7 -0
  185. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeCleanups-vij8IUwv.js +11 -0
  186. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeObjects-DodLCs_x.js +14 -0
  187. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/owner-CfKP3-Rk.js +6 -0
  188. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/reactVersion-oVIlFc4q.js +8 -0
  189. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/safeReact-C4X27Y1Z.js +7 -0
  190. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/ReactStore-CfPgecP0.js +145 -0
  191. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/Store-CRAQANWM.js +86 -0
  192. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/createSelector-SDRl3LYE.js +17 -0
  193. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/useStore-BsRFFm2l.js +21 -0
  194. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useAnimationFrame-C0av1dS7.js +68 -0
  195. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useControlled-BYl9LGEz.js +53 -0
  196. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler-Cu2E1baO.js +19 -0
  197. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useId-D8NyJjt3.js +20 -0
  198. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useIsoLayoutEffect-oOMudEAz.js +6 -0
  199. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useMergedRefs-p9UujHQn.js +69 -0
  200. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnFirstRender-IB3XPZ7h.js +8 -0
  201. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnMount-DjNCK2YI.js +8 -0
  202. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useRefWithInit-BObJZm23.js +9 -0
  203. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useScrollLock-kV6bksFe.js +125 -0
  204. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useStableCallback-DyHa2qMJ.js +32 -0
  205. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useTimeout-BPZmm8PE.js +32 -0
  206. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useValueAsRef-CCfi_eqC.js +19 -0
  207. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/visuallyHidden-CQbAGmCA.js +18 -0
  208. package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/warn-eK9kQMmi.js +11 -0
  209. package/dist/chunks/pkg/ui/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js +71 -0
  210. package/dist/chunks/pkg/ui/dist/node_modules/class-variance-authority/dist/index-DEupJ0QT.js +35 -0
  211. package/dist/chunks/pkg/ui/dist/node_modules/clsx/dist/clsx-DPl_DXM-.js +16 -0
  212. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id-DunDwGdX.js +6 -0
  213. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext-BWutRI4l.js +2 -0
  214. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LazyContext-yIDUGdfR.js +2 -0
  215. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext-C3EPauom.js +6 -0
  216. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext-BWutRI4l.js +2 -0
  217. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node-BDwaGtmx.js +9 -0
  218. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash-h54_qXon.js +4 -0
  219. package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props-DZcjZ2yt.js +9 -0
  220. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/Icon-BNiQfVqr.js +35 -0
  221. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-5_J8fxOF.js +21 -0
  222. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/defaultAttributes-C1BTxN61.js +14 -0
  223. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-asE1l_Qw.js +9 -0
  224. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/x-Cdi8GS7U.js +9 -0
  225. package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils-nzQUBs6v.js +18 -0
  226. package/dist/chunks/pkg/ui/dist/node_modules/mapbox-gl/dist/mapbox-gl-BWrsjoOR.js +35536 -0
  227. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion-Cc0tLlFf.js +5 -0
  228. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform-DY2FRn5v.js +22 -0
  229. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hex-BN1laQGd.js +19 -0
  230. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-CflwzkVO.js +12 -0
  231. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/index-D1GFyA5S.js +15 -0
  232. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/rgba-BIy7YqPw.js +16 -0
  233. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/utils-IDKsSWKt.js +18 -0
  234. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/filter-AXB6Rjjs.js +4 -0
  235. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/index-Z9QmZfw0.js +51 -0
  236. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/mask-AXB6Rjjs.js +4 -0
  237. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/int-CwcJvGhp.js +4 -0
  238. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/index-CWjqASeJ.js +16 -0
  239. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/units-DNXf-Ngr.js +11 -0
  240. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex-DKss3XP5.js +4 -0
  241. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex-Dw3Xm45S.js +4 -0
  242. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish-B7IIKRzS.js +6 -0
  243. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize-DYfJ2EAL.js +4 -0
  244. package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex-CjD_eR3p.js +4 -0
  245. package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/clamp-BMGeQDyI.js +4 -0
  246. package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/errors-CBdvTtJZ.js +2 -0
  247. package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/format-error-message-BwUIYuzJ.js +6 -0
  248. package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/noop-BGdtcOlD.js +4 -0
  249. package/dist/chunks/pkg/ui/dist/node_modules/tailwind-merge/dist/bundle-mjs-2e7LjAK7.js +2763 -0
  250. 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
  251. 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
  252. package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development-Bjtnv0KW.js +58 -0
  253. package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production-BvTUQFJj.js +46 -0
  254. package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/index-g__WfpEy.js +10 -0
  255. package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/with-selector-DFIcfxeX.js +10 -0
  256. package/dist/chunks/pkg/ui/dist/static/strings-lR4Uv4ze.js +4 -0
  257. package/dist/components/AboutSection/index.d.ts +7 -0
  258. package/dist/components/AboutSection/index.js +94 -0
  259. package/dist/components/AddressAutocompleteInput/index.d.ts +17 -0
  260. package/dist/components/AddressAutocompleteInput/index.js +143 -0
  261. package/dist/components/BikeProductCard/index.d.ts +17 -0
  262. package/dist/components/BikeProductCard/index.js +78 -0
  263. package/dist/components/BookingBikeVariantDialog/index.d.ts +2 -0
  264. package/dist/components/BookingBikeVariantDialog/index.js +216 -0
  265. package/dist/components/BookingFlowSteps/index.d.ts +9 -0
  266. package/dist/components/BookingFlowSteps/index.js +59 -0
  267. package/dist/components/BookingPeriodSelector/BookingPeriodContext.js +16 -0
  268. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +333 -0
  269. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +112 -0
  270. package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.js +7 -0
  271. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +156 -0
  272. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +130 -0
  273. package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.js +302 -0
  274. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +368 -0
  275. package/dist/components/BookingPeriodSelector/index.d.ts +12 -0
  276. package/dist/components/BookingPeriodSelector/index.js +27 -0
  277. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +241 -0
  278. package/dist/components/ContactSection/index.d.ts +6 -0
  279. package/dist/components/ContactSection/index.js +228 -0
  280. package/dist/components/ContractSaleDocument/AcceptanceModal.js +36 -0
  281. package/dist/components/ContractSaleDocument/Invoice.js +402 -0
  282. package/dist/components/ContractSaleDocument/InvoiceDetails.js +180 -0
  283. package/dist/components/ContractSaleDocument/Page.js +14 -0
  284. package/dist/components/ContractSaleDocument/PageFooter.js +26 -0
  285. package/dist/components/ContractSaleDocument/PageHeader.js +26 -0
  286. package/dist/components/ContractSaleDocument/SignatureModal.js +131 -0
  287. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +46 -0
  288. package/dist/components/ContractSaleDocument/ThumbnailSidebar.js +59 -0
  289. package/dist/components/ContractSaleDocument/index.d.ts +3 -0
  290. package/dist/components/ContractSaleDocument/index.js +4 -0
  291. package/dist/components/ContractSaleDocument/language.js +36 -0
  292. package/dist/components/DelayedReveal/index.d.ts +15 -0
  293. package/dist/components/DelayedReveal/index.js +61 -0
  294. package/dist/components/DeliveryAddressSelector/index.d.ts +23 -0
  295. package/dist/components/DeliveryAddressSelector/index.js +95 -0
  296. package/dist/components/Footer/BusinessHours.js +125 -0
  297. package/dist/components/Footer/businessHoursUtils.js +27 -0
  298. package/dist/components/Footer/index.d.ts +11 -0
  299. package/dist/components/Footer/index.js +127 -0
  300. package/dist/components/FulfillmentSection/index.d.ts +23 -0
  301. package/dist/components/FulfillmentSection/index.js +107 -0
  302. package/dist/components/Header/index.d.ts +10 -0
  303. package/dist/components/Header/index.js +119 -0
  304. package/dist/components/Layout/index.d.ts +7 -0
  305. package/dist/components/Layout/index.js +47 -0
  306. package/dist/components/Map/createMarkerElement.js +17 -0
  307. package/dist/components/Map/index.d.ts +3 -0
  308. package/dist/components/Map/index.js +6 -0
  309. package/dist/components/PlatformFooter/index.d.ts +2 -0
  310. package/dist/components/PlatformFooter/index.js +51 -0
  311. package/dist/components/PlaygroundDevFloatingButton/index.d.ts +2 -0
  312. package/dist/components/PlaygroundDevFloatingButton/index.js +216 -0
  313. package/dist/components/PoweredByLoczerBadge/index.d.ts +9 -0
  314. package/dist/components/PoweredByLoczerBadge/index.js +73 -0
  315. package/dist/components/ProductPriceBadge/index.d.ts +9 -0
  316. package/dist/components/ProductPriceBadge/index.js +229 -0
  317. package/dist/components/ProductWarningNotice/index.d.ts +7 -0
  318. package/dist/components/ProductWarningNotice/index.js +22 -0
  319. package/dist/components/StepSectionTitle/index.d.ts +8 -0
  320. package/dist/components/StepSectionTitle/index.js +6 -0
  321. package/dist/components/StorefrontCartPanel/index.d.ts +25 -0
  322. package/dist/components/StorefrontCartPanel/index.js +131 -0
  323. package/dist/components/StorefrontPopupMessages/index.d.ts +7 -0
  324. package/dist/components/StorefrontPopupMessages/index.js +172 -0
  325. package/dist/components/TestimonialsSection/index.d.ts +2 -0
  326. package/dist/components/TestimonialsSection/index.js +349 -0
  327. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.js +24 -0
  328. package/dist/components/WhatsAppFloatingButton/index.d.ts +4 -0
  329. package/dist/components/WhatsAppFloatingButton/index.js +6 -0
  330. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js +74 -0
  331. package/dist/components/payment/MollieCardFieldsForm.js +135 -0
  332. package/dist/components/payment/StripeCardFieldsForm.js +100 -0
  333. package/dist/components/payment/index.d.ts +3 -0
  334. package/dist/components/payment/index.js +6 -0
  335. package/dist/config.d.ts +19 -0
  336. package/dist/contactForm.d.ts +22 -0
  337. package/dist/contractSaleDocument.d.ts +242 -0
  338. package/dist/contractSaleDocumentApi.d.ts +481 -0
  339. package/dist/data/accessories.d.ts +30 -0
  340. package/dist/data/accessories.js +145 -0
  341. package/dist/data/bikes.d.ts +101 -0
  342. package/dist/data/bikes.js +418 -0
  343. package/dist/data/config.d.ts +15 -0
  344. package/dist/data/config.js +28 -0
  345. package/dist/en.d.ts +369 -0
  346. package/dist/form.d.ts +44 -0
  347. package/dist/fr.d.ts +369 -0
  348. package/dist/i18n/I18nProvider.d.ts +16 -0
  349. package/dist/i18n/I18nProvider.js +120 -0
  350. package/dist/i18n/en.d.ts +368 -0
  351. package/dist/i18n/en.js +370 -0
  352. package/dist/i18n/fr.d.ts +368 -0
  353. package/dist/i18n/fr.js +370 -0
  354. package/dist/index.d.ts +20 -0
  355. package/dist/index.js +331 -0
  356. package/dist/input.d.ts +5 -0
  357. package/dist/isAutomationRuntime.d.ts +3 -0
  358. package/dist/label.d.ts +7 -0
  359. package/dist/lib/apiCall.d.ts +4 -0
  360. package/dist/lib/apiCall.js +6 -0
  361. package/dist/lib/booking-period-time-slots.d.ts +61 -0
  362. package/dist/lib/booking-period-time-slots.js +273 -0
  363. package/dist/lib/booking-period.d.ts +147 -0
  364. package/dist/lib/booking-period.js +349 -0
  365. package/dist/lib/booking.d.ts +39 -0
  366. package/dist/lib/booking.js +159 -0
  367. package/dist/lib/cart.d.ts +25 -0
  368. package/dist/lib/cart.js +87 -0
  369. package/dist/lib/cartSummary.d.ts +31 -0
  370. package/dist/lib/cartSummary.js +41 -0
  371. package/dist/lib/checkoutPaymentDecision.d.ts +40 -0
  372. package/dist/lib/checkoutPaymentDecision.js +33 -0
  373. package/dist/lib/checkoutPaymentSession.d.ts +55 -0
  374. package/dist/lib/checkoutPaymentSession.js +44 -0
  375. package/dist/lib/checkoutSubmit.d.ts +53 -0
  376. package/dist/lib/checkoutSubmit.js +59 -0
  377. package/dist/lib/checkoutVerifyCoupon.d.ts +39 -0
  378. package/dist/lib/checkoutVerifyCoupon.js +32 -0
  379. package/dist/lib/contactForm.d.ts +16 -0
  380. package/dist/lib/contactForm.js +16 -0
  381. package/dist/lib/contractSaleDocument.d.ts +216 -0
  382. package/dist/lib/contractSaleDocument.js +70 -0
  383. package/dist/lib/contractSaleDocumentApi.d.ts +449 -0
  384. package/dist/lib/contractSaleDocumentApi.js +77 -0
  385. package/dist/lib/isAutomationRuntime.d.ts +2 -0
  386. package/dist/lib/isAutomationRuntime.js +5 -0
  387. package/dist/lib/mollieComponentStyles.d.ts +2 -0
  388. package/dist/lib/mollieComponentStyles.js +31 -0
  389. package/dist/lib/playgroundDevSettings.d.ts +11 -0
  390. package/dist/lib/playgroundDevSettings.js +61 -0
  391. package/dist/lib/pricing.d.ts +14 -0
  392. package/dist/lib/pricing.js +50 -0
  393. package/dist/lib/productImageStyles.d.ts +9 -0
  394. package/dist/lib/productImageStyles.js +8 -0
  395. package/dist/lib/productVariants.d.ts +13 -0
  396. package/dist/lib/productVariants.js +26 -0
  397. package/dist/lib/products.d.ts +37 -0
  398. package/dist/lib/products.js +58 -0
  399. package/dist/lib/richAddress.d.ts +21 -0
  400. package/dist/lib/richAddress.js +24 -0
  401. package/dist/lib/securePaymentLink.d.ts +105 -0
  402. package/dist/lib/securePaymentLink.js +79 -0
  403. package/dist/lib/storefrontAvailability.d.ts +82 -0
  404. package/dist/lib/storefrontAvailability.js +54 -0
  405. package/dist/lib/storefrontImage.d.ts +9 -0
  406. package/dist/lib/storefrontImage.js +16 -0
  407. package/dist/lib/storefrontProducts.d.ts +369 -0
  408. package/dist/lib/storefrontProducts.js +89 -0
  409. package/dist/lib/storefrontReviews.d.ts +72 -0
  410. package/dist/lib/storefrontReviews.js +36 -0
  411. package/dist/lib/utils.d.ts +16 -0
  412. package/dist/lib/utils.js +27 -0
  413. package/dist/lib/whatsapp.d.ts +17 -0
  414. package/dist/lib/whatsapp.js +60 -0
  415. package/dist/localization.d.ts +13 -0
  416. package/dist/localization.js +16 -0
  417. package/dist/mollieComponentStyles.d.ts +3 -0
  418. package/dist/pages/BookingPage.d.ts +2 -0
  419. package/dist/pages/BookingPage.js +535 -0
  420. package/dist/pages/CheckoutPage.d.ts +2 -0
  421. package/dist/pages/CheckoutPage.js +428 -0
  422. package/dist/pages/CheckoutPaymentPage.d.ts +2 -0
  423. package/dist/pages/CheckoutPaymentPage.js +243 -0
  424. package/dist/pages/CheckoutSuccessPage.d.ts +2 -0
  425. package/dist/pages/CheckoutSuccessPage.js +24 -0
  426. package/dist/pages/ContractSaleDocumentPage.d.ts +109 -0
  427. package/dist/pages/ContractSaleDocumentPage.js +342 -0
  428. package/dist/pages/ErrorPage.d.ts +2 -0
  429. package/dist/pages/ErrorPage.js +47 -0
  430. package/dist/pages/HomePage.d.ts +2 -0
  431. package/dist/pages/HomePage.js +501 -0
  432. package/dist/pages/NotFoundPage.d.ts +2 -0
  433. package/dist/pages/NotFoundPage.js +28 -0
  434. package/dist/pages/PaymentLinkPage.d.ts +34 -0
  435. package/dist/pages/PaymentLinkPage.js +258 -0
  436. package/dist/pages/PaymentLinkSuccessPage.d.ts +34 -0
  437. package/dist/pages/PaymentLinkSuccessPage.js +140 -0
  438. package/dist/pages/ProductPage.d.ts +2 -0
  439. package/dist/pages/ProductPage.js +255 -0
  440. package/dist/pages/checkout/components/CheckoutCouponCard.js +72 -0
  441. package/dist/pages/checkout/components/CheckoutDetailsCard.js +68 -0
  442. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +90 -0
  443. package/dist/pages/checkout/components/CheckoutSummaryColumn.js +41 -0
  444. package/dist/pages/checkout/types.js +10 -0
  445. package/dist/playgroundDevSettings.d.ts +19 -0
  446. package/dist/pricing.d.ts +35 -0
  447. package/dist/productImageStyles.d.ts +25 -0
  448. package/dist/productVariants.d.ts +16 -0
  449. package/dist/products.d.ts +224 -0
  450. package/dist/radio-group.d.ts +14 -0
  451. package/dist/richAddress.d.ts +24 -0
  452. package/dist/routes.d.ts +6 -0
  453. package/dist/routes.js +32 -0
  454. package/dist/securePaymentLink.d.ts +125 -0
  455. package/dist/select.d.ts +41 -0
  456. package/dist/slot.d.ts +15 -0
  457. package/dist/static/strings.js +4 -0
  458. package/dist/storefront.css +1 -0
  459. package/dist/storefrontAvailability.d.ts +103 -0
  460. package/dist/storefrontImage.d.ts +14 -0
  461. package/dist/storefrontProducts.d.ts +396 -0
  462. package/dist/storefrontReviews.d.ts +84 -0
  463. package/dist/storefrontSchemas.d.ts +588 -0
  464. package/dist/storefrontSchemas.js +132 -0
  465. package/dist/textarea.d.ts +5 -0
  466. package/dist/tooltip.d.ts +43 -0
  467. package/dist/ui/badge.d.ts +10 -0
  468. package/dist/ui/badge.js +39 -0
  469. package/dist/ui/button.d.ts +12 -0
  470. package/dist/ui/button.js +44 -0
  471. package/dist/ui/card.d.ts +10 -0
  472. package/dist/ui/card.js +93 -0
  473. package/dist/ui/form.d.ts +25 -0
  474. package/dist/ui/form.js +135 -0
  475. package/dist/ui/input.d.ts +4 -0
  476. package/dist/ui/input.js +24 -0
  477. package/dist/ui/label.d.ts +5 -0
  478. package/dist/ui/label.js +18 -0
  479. package/dist/ui/radio-group.d.ts +10 -0
  480. package/dist/ui/radio-group.js +55 -0
  481. package/dist/ui/select.d.ts +22 -0
  482. package/dist/ui/select.js +255 -0
  483. package/dist/ui/slot.d.ts +11 -0
  484. package/dist/ui/slot.js +33 -0
  485. package/dist/ui/textarea.d.ts +4 -0
  486. package/dist/ui/textarea.js +20 -0
  487. package/dist/ui/tooltip.d.ts +20 -0
  488. package/dist/ui/tooltip.js +73 -0
  489. package/dist/utils.d.ts +23 -0
  490. package/dist/whatsapp.d.ts +318 -0
  491. 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
+ };