@loczer/storefront-sdk 0.217.0 → 0.219.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 (347) hide show
  1. package/dist/chunks/_virtual/_rolldown/{runtime-CkxIErRK.js → runtime-B5ovbsoX.js} +12 -5
  2. package/dist/chunks/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm-6voMhWrN.js +11 -0
  3. package/dist/chunks/node_modules/@emotion/memoize/dist/emotion-memoize.esm-CbcNHeNh.js +12 -0
  4. package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild-DVb6X_PO.js +61 -0
  5. package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild-DyihLa7p.js +53 -0
  6. package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/index-DmhaitYv.js +60 -0
  7. package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence-Cig9mH3B.js +20 -0
  8. package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/utils-MuK80fQc.js +11 -0
  9. package/dist/chunks/node_modules/framer-motion/dist/es/context/LayoutGroupContext-CppToMHP.js +6 -0
  10. package/dist/chunks/node_modules/framer-motion/dist/es/context/LazyContext-pz7xXPnk.js +6 -0
  11. package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionConfigContext-CoJIbMbt.js +10 -0
  12. package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/create-Bn_I3YGX.js +17 -0
  13. package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/index-B9obK4sO.js +6 -0
  14. package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/utils-ByjX9df_.js +15 -0
  15. package/dist/chunks/node_modules/framer-motion/dist/es/context/PresenceContext-Cj2bJFe0.js +6 -0
  16. package/dist/chunks/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext-DhUxGAwV.js +6 -0
  17. package/dist/chunks/node_modules/framer-motion/dist/es/events/add-pointer-event-CHKBre-7.js +8 -0
  18. package/dist/chunks/node_modules/framer-motion/dist/es/events/event-info-CIMY2v27.js +11 -0
  19. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls-BP560JFy.js +258 -0
  20. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/index-DH25rbJs.js +22 -0
  21. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints-uATfUwby.js +59 -0
  22. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/focus-D5PGq15I.js +27 -0
  23. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/hover-BSuPivdx.js +20 -0
  24. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/pan/PanSession-DQk2Dv3G.js +138 -0
  25. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/pan/index-CSmtHc88.js +42 -0
  26. package/dist/chunks/node_modules/framer-motion/dist/es/gestures/press-jh5KkKLw.js +26 -0
  27. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/exit-C4vmhIuU.js +39 -0
  28. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/index-BxVBcgYs.js +25 -0
  29. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animations-D8nAGh1h.js +9 -0
  30. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/definitions-D5AEjfKY.js +51 -0
  31. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/drag-Ilu0wLsZ.js +15 -0
  32. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/gestures-NOCelRjM.js +13 -0
  33. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout-CiUIGE9r.js +61 -0
  34. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/layout-B_FwT4yv.js +9 -0
  35. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/load-features-BzH6YCRU.js +13 -0
  36. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/viewport/index-CulwEMSa.js +46 -0
  37. package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/viewport/observers-x2xlB0Om.js +24 -0
  38. package/dist/chunks/node_modules/framer-motion/dist/es/motion/index-Nj9omPyM.js +70 -0
  39. package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/symbol-BaRQvk9k.js +4 -0
  40. package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref-B42kEDKi.js +21 -0
  41. package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-visual-element-CG31NdKM.js +58 -0
  42. package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-visual-state-C3wTD2F4.js +50 -0
  43. package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/valid-prop-B-V3c3JM.js +7 -0
  44. package/dist/chunks/node_modules/framer-motion/dist/es/render/components/create-proxy-CkstUqll.js +10 -0
  45. package/dist/chunks/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle-DUpS38r2.js +13 -0
  46. package/dist/chunks/node_modules/framer-motion/dist/es/render/components/motion/proxy-DXxjnqei.js +7 -0
  47. package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/create-visual-element-Da4IYVeR.js +8 -0
  48. package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/use-render-vjqx3wpA.js +21 -0
  49. package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/utils/filter-props-8AWb0Fmy.js +19 -0
  50. package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component-Dfh-TmXQ.js +7 -0
  51. package/dist/chunks/node_modules/framer-motion/dist/es/render/html/use-html-visual-state-B0BxPJ3u.js +11 -0
  52. package/dist/chunks/node_modules/framer-motion/dist/es/render/html/use-props-D5zID_2s.js +26 -0
  53. package/dist/chunks/node_modules/framer-motion/dist/es/render/html/utils/create-render-state-dth6BoLB.js +9 -0
  54. package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/lowercase-elements-C04v53NG.js +30 -0
  55. package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/use-props-MZrwg07L.js +26 -0
  56. package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state-pJSuuPIs.js +11 -0
  57. package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state-b0r4UXLU.js +8 -0
  58. package/dist/chunks/node_modules/framer-motion/dist/es/utils/distance-DcZpIXTw.js +8 -0
  59. package/dist/chunks/node_modules/framer-motion/dist/es/utils/get-context-window-pYdCDRbN.js +4 -0
  60. package/dist/chunks/node_modules/framer-motion/dist/es/utils/is-browser-DaKd-mJB.js +4 -0
  61. package/dist/chunks/node_modules/framer-motion/dist/es/utils/is-ref-object-DfJ8Lr_g.js +6 -0
  62. package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-composed-ref-EoyZU9bo.js +25 -0
  63. package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-constant-B5X65PZe.js +9 -0
  64. package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect-D1bPqOsw.js +7 -0
  65. package/dist/chunks/node_modules/mapbox-gl/dist/{mapbox-gl-C3ih7CyM.js → mapbox-gl-C3MzR-4r.js} +1 -1
  66. package/dist/chunks/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation-CaTU1DM6.js +107 -0
  67. package/dist/chunks/node_modules/motion-dom/dist/es/animation/JSAnimation-zfqrUSXR.js +129 -0
  68. package/dist/chunks/node_modules/motion-dom/dist/es/animation/NativeAnimation-CfiXAYmD.js +84 -0
  69. package/dist/chunks/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended-BKiHRnbh.js +28 -0
  70. package/dist/chunks/node_modules/motion-dom/dist/es/animation/animate/single-value-66TFY3Ue.js +10 -0
  71. package/dist/chunks/node_modules/motion-dom/dist/es/animation/drivers/frame-C46tnJcG.js +13 -0
  72. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/inertia-CSs70-4B.js +32 -0
  73. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/keyframes-B8KsYraP.js +22 -0
  74. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/spring-CEJsZ0ds.js +166 -0
  75. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration-N3fRuYmx.js +9 -0
  76. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing-CNVBTdyB.js +16 -0
  77. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator-CeGXg0jv.js +6 -0
  78. package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/velocity-NngCxIQM.js +9 -0
  79. package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/motion-value-Dpez8dQD.js +45 -0
  80. package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-DZ-rOn58.js +21 -0
  81. package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target-C0xS2WGG.js +57 -0
  82. package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant-B35oZvml.js +26 -0
  83. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver-_h9E3nwl.js +61 -0
  84. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver-BxwoVKip.js +67 -0
  85. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/get-final-BQVKjyPS.js +8 -0
  86. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default-DW_NtU-K.js +8 -0
  87. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill-D-JxRntL.js +12 -0
  88. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time-BCh-zgvS.js +6 -0
  89. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards-Dasqyq5W.js +6 -0
  90. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none-Boi7nzNq.js +7 -0
  91. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable-DZ2uKxwT.js +18 -0
  92. package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion-CZVviGe6.js +36 -0
  93. package/dist/chunks/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id-DKf-WdGO.js +5 -0
  94. package/dist/chunks/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id-B3ocRUEp.js +7 -0
  95. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/WithPromise-Df7bJffn.js +22 -0
  96. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger-Zf1BbESP.js +7 -0
  97. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/can-animate-8-JdOSKl.js +18 -0
  98. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion-DbIMqS6o.js +25 -0
  99. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/default-transitions-DVnwrMKg.js +27 -0
  100. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/get-value-transition-5a_kRob8.js +8 -0
  101. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-animatable-C5hoiztj.js +5 -0
  102. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-css-variable-CyNVJBsm.js +7 -0
  103. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined-C1rwuBUy.js +19 -0
  104. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant-COWEl80Q.js +6 -0
  105. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type-BMiDtDGg.js +16 -0
  106. package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/resolve-transition-BTqjVzCB.js +13 -0
  107. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier-J2lt5jeZ.js +4 -0
  108. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing-BD7Y9jJG.js +11 -0
  109. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/supported-Cz-WgHfd.js +35 -0
  110. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation-ClEsx3cW.js +19 -0
  111. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi-DOBuuHlt.js +24 -0
  112. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values-D6fGw6G9.js +10 -0
  113. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator-BP_nJDar.js +8 -0
  114. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color-DlLrfl3t.js +8 -0
  115. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/linear-CfxAW4iV.js +8 -0
  116. package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing-CXVzjJ-M.js +17 -0
  117. package/dist/chunks/node_modules/motion-dom/dist/es/events/add-dom-event-CWEtxeZQ.js +6 -0
  118. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/batcher-DfPEJ0tV.js +30 -0
  119. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/frame-CKZTADU1.js +6 -0
  120. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/microtask-C0-dBzym.js +5 -0
  121. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/order-CHyaH5qN.js +13 -0
  122. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/render-step-CdDpWyF_.js +32 -0
  123. package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/sync-time-C_QyRCNd.js +15 -0
  124. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/drag/state/is-active-CVvtbTCK.js +10 -0
  125. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/drag/state/set-active-CDl0txXn.js +11 -0
  126. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/hover-rZyMySKA.js +36 -0
  127. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/index-CdNLBeeX.js +36 -0
  128. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible-DVnEOolg.js +21 -0
  129. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard-OEdF2Pgl.js +28 -0
  130. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/state-Ebi7SIjG.js +4 -0
  131. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child-Bpzb9pAt.js +4 -0
  132. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer-CiELcwyf.js +4 -0
  133. package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/setup-51FdPiwb.js +16 -0
  134. package/dist/chunks/node_modules/motion-dom/dist/es/projection/animation/mix-values-CI36Bvu8.js +25 -0
  135. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/conversion-C53fTUL0.js +39 -0
  136. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/copy-DLOE8cY-.js +12 -0
  137. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-apply-D_7fQFIs.js +43 -0
  138. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-calc-CnWZkKos.js +30 -0
  139. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-remove-BVg-RIJ5.js +29 -0
  140. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/models-d7gxmOp4.js +18 -0
  141. package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/utils-DB_aXUBK.js +28 -0
  142. package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode-DO5yRSLp.js +13 -0
  143. package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode-DPNJVDRP.js +22 -0
  144. package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/create-projection-node-23wDIc4D.js +584 -0
  145. package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/state-DB-DwaXn.js +7 -0
  146. package/dist/chunks/node_modules/motion-dom/dist/es/projection/shared/stack-tv0ZE6-p.js +51 -0
  147. package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius-o5vW8fHp.js +13 -0
  148. package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow-BhjA57xW.js +13 -0
  149. package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-correction-Dqs0DG_x.js +17 -0
  150. package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/transform-NKB2cwBd.js +12 -0
  151. package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth-D4ki-lbA.js +4 -0
  152. package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/each-axis-Bvmvr7Z2.js +6 -0
  153. package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/flat-tree-DoVrrxxY.js +19 -0
  154. package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/has-transform-MC2xCktm.js +18 -0
  155. package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/measure-9EHDTj-Q.js +12 -0
  156. package/dist/chunks/node_modules/motion-dom/dist/es/render/Feature-BO-74BEK.js +9 -0
  157. package/dist/chunks/node_modules/motion-dom/dist/es/render/VisualElement-Q2WcJv6t.js +204 -0
  158. package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement-C0PGIt5i.js +28 -0
  159. package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/is-css-var-Dp_b3naF.js +4 -0
  160. package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/parse-transform-BhriW6XO.js +56 -0
  161. package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/style-set-rv8o9V7z.js +7 -0
  162. package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash-DkTMivH-.js +6 -0
  163. package/dist/chunks/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement-BlmAcWaG.js +39 -0
  164. package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-styles-d8t31XT-.js +28 -0
  165. package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-transform-ses8bYxd.js +36 -0
  166. package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/render-D0WyK2kl.js +8 -0
  167. package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values-Dnanh7Pq.js +11 -0
  168. package/dist/chunks/node_modules/motion-dom/dist/es/render/store-BtTKq2jY.js +4 -0
  169. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement-CQOmrr3k.js +40 -0
  170. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs-CfRsHEuP.js +22 -0
  171. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs-eLNLAV8t.js +28 -0
  172. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag-DmzYEr13.js +4 -0
  173. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/path-DrGKJJG-.js +15 -0
  174. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/render--nKPYECx.js +10 -0
  175. package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values-BZpmWNaV.js +14 -0
  176. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/animation-state-DDMO-7FQ.js +135 -0
  177. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/get-variant-context-qR057mHU.js +19 -0
  178. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-animation-controls-B7ktiywN.js +6 -0
  179. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants-BTh61RuJ.js +12 -0
  180. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value-DJbn-QIQ.js +8 -0
  181. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target-BjHS8PGf.js +4 -0
  182. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-variant-label-CVoIfHaT.js +6 -0
  183. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/keys-position-6KzA4Ufp.js +13 -0
  184. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/keys-transform-D89O3jUI.js +22 -0
  185. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/motion-values-BofpGQv9.js +21 -0
  186. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index-CBQsVFcz.js +11 -0
  187. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state-ClY5PInV.js +4 -0
  188. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants-CctcYJsO.js +8 -0
  189. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/resolve-variants-YRQnmPS8.js +20 -0
  190. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/setters-CAm56hbR.js +20 -0
  191. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/shallow-compare-D_Ag1Ugh.js +10 -0
  192. package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/variant-props-wnjnGla7.js +12 -0
  193. package/dist/chunks/node_modules/motion-dom/dist/es/resize/handle-element-C0cdHgCp.js +37 -0
  194. package/dist/chunks/node_modules/motion-dom/dist/es/resize/handle-window-CYcfJ-yc.js +22 -0
  195. package/dist/chunks/node_modules/motion-dom/dist/es/resize/index-BxIqM2kA.js +8 -0
  196. package/dist/chunks/node_modules/motion-dom/dist/es/stats/buffer-Ddx-OwOh.js +7 -0
  197. package/dist/chunks/node_modules/motion-dom/dist/es/utils/border-radius-BzX2eyPO.js +9 -0
  198. package/dist/chunks/node_modules/motion-dom/dist/es/utils/delay-CHrWJUrg.js +12 -0
  199. package/dist/chunks/node_modules/motion-dom/dist/es/utils/interpolate-CzC1L8ZO.js +33 -0
  200. package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-html-element-C0nwVk_b.js +7 -0
  201. package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-svg-element-DBzZMKGK.js +7 -0
  202. package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-svg-svg-element-Ckc3gGsT.js +7 -0
  203. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/color-DWwiDYZb.js +30 -0
  204. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/complex-BHS_05I4.js +52 -0
  205. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/immediate-BKaWg21K.js +6 -0
  206. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/index-BRygSkxI.js +8 -0
  207. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/number-BQSwMPU1.js +4 -0
  208. package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/visibility-Cskd_oLV.js +7 -0
  209. package/dist/chunks/node_modules/motion-dom/dist/es/utils/resolve-elements-Dtu6Z_Ty.js +14 -0
  210. package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/flags-BurPNJ34.js +4 -0
  211. package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/linear-easing-Pzz4ZlUa.js +12 -0
  212. package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/memo-DC0cOD0o.js +9 -0
  213. package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline-rru9B6Gb.js +5 -0
  214. package/dist/chunks/node_modules/motion-dom/dist/es/value/index-Bwg0vVXH.js +92 -0
  215. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/auto-koixlyde.js +7 -0
  216. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hex-D_nQPreB.js +19 -0
  217. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hsla-UmYS8wgv.js +12 -0
  218. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba-DcyRElEM.js +21 -0
  219. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/index-N7DJKOLI.js +15 -0
  220. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/rgba-CdLIc-3D.js +15 -0
  221. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/utils-MnexfjLY.js +16 -0
  222. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/filter-ClIAXOZw.js +26 -0
  223. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/index-grhmCqMW.js +52 -0
  224. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/mask-BwJciot3.js +14 -0
  225. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/dimensions-DiF9rgiq.js +16 -0
  226. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/int-CXf2V5s3.js +8 -0
  227. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/defaults-CUGdDi7c.js +24 -0
  228. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/number-CbCxH6Jz.js +64 -0
  229. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/transform-KMLgKYda.js +32 -0
  230. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/numbers/index-DYQnrXRf.js +15 -0
  231. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/numbers/units-Cl3LhAl3.js +12 -0
  232. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/test-BkLtGGhq.js +4 -0
  233. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/animatable-none-48Tgfh--.js +12 -0
  234. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/color-regex-C3uB4EIr.js +4 -0
  235. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/find-DcyXW-Sp.js +12 -0
  236. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/float-regex-DjWNXroL.js +4 -0
  237. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/get-as-type-D-jDTeib.js +4 -0
  238. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/is-nullish-CqG_su_i.js +6 -0
  239. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/sanitize-CHpVppHV.js +4 -0
  240. package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex-B5zaDk0y.js +4 -0
  241. package/dist/chunks/node_modules/motion-dom/dist/es/value/utils/is-motion-value-DjNWSbJA.js +4 -0
  242. package/dist/chunks/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value-B_1ESd5B.js +7 -0
  243. package/dist/chunks/node_modules/motion-dom/dist/es/value/will-change/add-will-change-DBvewpY4.js +13 -0
  244. package/dist/chunks/node_modules/motion-dom/dist/es/value/will-change/is-T16fSSX5.js +7 -0
  245. package/dist/chunks/node_modules/motion-utils/dist/es/array-BBGK1j1b.js +10 -0
  246. package/dist/chunks/node_modules/motion-utils/dist/es/clamp-B15uFKIC.js +4 -0
  247. package/dist/chunks/node_modules/motion-utils/dist/es/easing/anticipate-CGu5JxBr.js +5 -0
  248. package/dist/chunks/node_modules/motion-utils/dist/es/easing/back-Dx4ysBOm.js +7 -0
  249. package/dist/chunks/node_modules/motion-utils/dist/es/easing/circ-BQFsYAQF.js +6 -0
  250. package/dist/chunks/node_modules/motion-utils/dist/es/easing/cubic-bezier-ChP-yr8D.js +18 -0
  251. package/dist/chunks/node_modules/motion-utils/dist/es/easing/ease-aj5zpqzD.js +5 -0
  252. package/dist/chunks/node_modules/motion-utils/dist/es/easing/modifiers/mirror-DK1HENQt.js +4 -0
  253. package/dist/chunks/node_modules/motion-utils/dist/es/easing/modifiers/reverse-SiUI2DwA.js +4 -0
  254. package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition-c8Afth9n.js +4 -0
  255. package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/is-easing-array-5MLjLjPK.js +4 -0
  256. package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/map-ldz_Xg06.js +31 -0
  257. package/dist/chunks/node_modules/motion-utils/dist/es/errors-zYMa5JTQ.js +10 -0
  258. package/dist/chunks/node_modules/motion-utils/dist/es/format-error-message-Dbn0S6vS.js +6 -0
  259. package/dist/chunks/node_modules/motion-utils/dist/es/global-config-BqV2nflf.js +4 -0
  260. package/dist/chunks/node_modules/motion-utils/dist/es/is-numerical-string-CiTQN66D.js +4 -0
  261. package/dist/chunks/node_modules/motion-utils/dist/es/is-object-QQQynvgM.js +4 -0
  262. package/dist/chunks/node_modules/motion-utils/dist/es/is-zero-value-string-Bss1UzBi.js +4 -0
  263. package/dist/chunks/node_modules/motion-utils/dist/es/memo-CwaXJmzB.js +8 -0
  264. package/dist/chunks/node_modules/motion-utils/dist/es/noop-DF4YCrc8.js +4 -0
  265. package/dist/chunks/node_modules/motion-utils/dist/es/pipe-BweOLNhL.js +4 -0
  266. package/dist/chunks/node_modules/motion-utils/dist/es/progress-B3YfSCwx.js +7 -0
  267. package/dist/chunks/node_modules/motion-utils/dist/es/subscription-manager-B1v5ik_R.js +26 -0
  268. package/dist/chunks/node_modules/motion-utils/dist/es/time-conversion-WGVLVIZI.js +4 -0
  269. package/dist/chunks/node_modules/motion-utils/dist/es/velocity-per-second-Hq_yU5RD.js +4 -0
  270. package/dist/chunks/node_modules/motion-utils/dist/es/warn-once-CNQIsdRh.js +8 -0
  271. package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-CWP_qule.js +71 -0
  272. package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-BhIOL2rP.js +23 -0
  273. package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-C9kJFMIu.js +69 -0
  274. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-BJHQLX8t.js → base-product-Bde9lJQD.js} +2 -1
  275. package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-epi7FXIk.js +74 -0
  276. package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-CPeHsTss.js → insurance-DXc34Bzy.js} +20 -19
  277. package/dist/chunks/pkg/booking-engine/dist/schemas/product-id--yyUTH1Y.js +5 -0
  278. package/dist/chunks/pkg/booking-engine/dist/schemas-DGn2a1my.js +15 -0
  279. package/dist/chunks/pkg/ui/dist/Map/{MapContent-TzYCv8ji.js → MapContent-BgCi-wZr.js} +2 -2
  280. package/dist/chunks/pkg/ui/dist/{Map-ZM-ZOU9P.js → Map-DCNW_9J_.js} +1 -1
  281. package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-DOH1GYVR.js → MorphingModalWizard-j1CgFGLe.js} +0 -1
  282. package/dist/components/BookingBikeQuickAddCard/index.js +37 -36
  283. package/dist/components/BookingFlowPageLayout/index.d.ts +13 -0
  284. package/dist/components/BookingFlowPageLayout/index.d.ts.map +1 -0
  285. package/dist/components/BookingFlowPageLayout/index.js +35 -0
  286. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -1
  287. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +11 -34
  288. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
  289. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -1
  290. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +2 -5
  291. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
  292. package/dist/components/BookingPeriodSelector/index.d.ts +1 -1
  293. package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -1
  294. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +0 -5
  295. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
  296. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +150 -159
  297. package/dist/components/Footer/BusinessHours.d.ts +2 -1
  298. package/dist/components/Footer/BusinessHours.d.ts.map +1 -1
  299. package/dist/components/Footer/BusinessHours.js +19 -18
  300. package/dist/components/Footer/businessHoursStatus.d.ts +25 -0
  301. package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -0
  302. package/dist/components/Footer/businessHoursStatus.js +99 -0
  303. package/dist/components/Footer/businessHoursUtils.d.ts +2 -1
  304. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
  305. package/dist/components/Footer/businessHoursUtils.js +52 -45
  306. package/dist/components/Footer/index.d.ts +2 -1
  307. package/dist/components/Footer/index.d.ts.map +1 -1
  308. package/dist/components/Footer/index.js +26 -25
  309. package/dist/components/Layout/index.d.ts.map +1 -1
  310. package/dist/components/Layout/index.js +2 -1
  311. package/dist/components/Map/index.js +1 -1
  312. package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -1
  313. package/dist/components/StorefrontCancellationPolicyNotice/index.js +89 -86
  314. package/dist/components/StorefrontCartPanel/index.js +4 -4
  315. package/dist/components/StorefrontInsuranceNotice/index.d.ts +2 -1
  316. package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -1
  317. package/dist/components/StorefrontInsuranceNotice/index.js +155 -162
  318. package/dist/i18n/en.d.ts +7 -1
  319. package/dist/i18n/en.d.ts.map +1 -1
  320. package/dist/i18n/en.js +8 -2
  321. package/dist/i18n/fr.d.ts +7 -1
  322. package/dist/i18n/fr.d.ts.map +1 -1
  323. package/dist/i18n/fr.js +8 -2
  324. package/dist/index.d.ts +27 -9
  325. package/dist/index.js +80 -79
  326. package/dist/lib/booking-period.js +1 -1
  327. package/dist/lib/booking.js +2 -2
  328. package/dist/lib/checkoutSubmit.js +3 -3
  329. package/dist/lib/pricing.d.ts.map +1 -1
  330. package/dist/lib/pricing.js +3 -1
  331. package/dist/lib/products.d.ts +6 -0
  332. package/dist/lib/products.d.ts.map +1 -1
  333. package/dist/lib/products.js +36 -32
  334. package/dist/pages/BookingPage.d.ts.map +1 -1
  335. package/dist/pages/BookingPage.js +306 -335
  336. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  337. package/dist/pages/CheckoutPage.js +154 -168
  338. package/dist/pages/HomePage.d.ts.map +1 -1
  339. package/dist/pages/HomePage.js +435 -378
  340. package/dist/storefront.css +1 -1
  341. package/dist/storefrontSchemas.js +1 -1
  342. package/package.json +1 -2
  343. package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js +0 -70
  344. package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-B4y__1qj.js +0 -22
  345. package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js +0 -68
  346. package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js +0 -72
  347. package/dist/chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAwGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAotBnC"}
1
+ {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAwGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAitBnC"}
@@ -8,9 +8,9 @@ import { ROUTE as le, buildStorefrontAvailabilityKey as ue, getStorefrontAvailab
8
8
  import { Button as me } from "../ui/button.js";
9
9
  import { useStorefront as he, useStorefrontProducts as ge } from "../StorefrontContext.js";
10
10
  import { toast as _e } from "../lib/toast.js";
11
- import { BookingFlowSteps as ve } from "../components/BookingFlowSteps/index.js";
12
11
  import { apiPost as a } from "../lib/apiCall.js";
13
- import { FulfillmentSection as ye } from "../components/FulfillmentSection/index.js";
12
+ import { FulfillmentSection as ve } from "../components/FulfillmentSection/index.js";
13
+ import { BookingFlowPageLayout as ye } from "../components/BookingFlowPageLayout/index.js";
14
14
  import { ROUTE as be, responseSchema as xe } from "../lib/checkoutVerifyCoupon.js";
15
15
  import { CheckoutDetailsCard as Se } from "./checkout/components/CheckoutDetailsCard.js";
16
16
  import { CheckoutPaymentSummaryCard as Ce } from "./checkout/components/CheckoutPaymentSummaryCard.js";
@@ -57,7 +57,7 @@ var Ie = .2, d = (e, t, n) => {
57
57
  return new Intl.DateTimeFormat(t, r).format(e);
58
58
  };
59
59
  function f() {
60
- let { t: f, i18n: p } = Me(), { storefrontConfiguration: m } = he(), ze = m.workspace?.workspaceLanguage, { bikes: h, accessories: Be } = ge(), { storeSlug: g } = Ae(), [_, Ve] = je(), He = ke(), { items: Ue, itemCount: We, setQuantity: Ge, removeItem: Ke, beginCheckoutSubmission: qe, confirmCheckoutPaymentSession: Je, clearCheckoutSession: Ye, clear: Xe } = ee(), [v, Ze] = c(!1), Qe = De(!1), [y, b] = c(null), [$e, x] = c(!1), [et, S] = c(null), tt = _.get("coupon") ?? _.get("code") ?? "", [nt, C] = c(tt), [rt, it] = c(tt.trim()), [w, T] = c(null), [E, D] = c(null), [at, ot] = c(!1), [st, O] = c(null), [ct, k] = c(null), [A, lt] = c(!1), [j, ut] = c(!1), dt = n(_).toString(), ft = s(() => r(new URLSearchParams(dt), g), [dt, g]), M = m.settings.fulfillmentModes.includes("delivery"), pt = m.settings.deliveryDisabledReason.trim(), mt = M || pt.length > 0, ht = m.shop.address?.trim() ?? "", N = s(() => {
60
+ let { t: f, i18n: p } = Me(), { storefrontConfiguration: m } = he(), ze = m.workspace?.workspaceLanguage, { bikes: h, accessories: Be } = ge(), { storeSlug: g } = Ae(), [_, Ve] = je(), He = ke(), { items: Ue, itemCount: We, setQuantity: Ge, removeItem: Ke, beginCheckoutSubmission: qe, confirmCheckoutPaymentSession: Je, clearCheckoutSession: Ye, clear: Xe } = ee(), [v, Ze] = c(!1), Qe = De(!1), [y, b] = c(null), [$e, et] = c(!1), [tt, x] = c(null), nt = _.get("coupon") ?? _.get("code") ?? "", [rt, it] = c(nt), [at, ot] = c(nt.trim()), [S, C] = c(null), [w, T] = c(null), [E, D] = c(!1), [st, O] = c(null), [ct, k] = c(null), [A, lt] = c(!1), [j, ut] = c(!1), dt = n(_).toString(), ft = s(() => r(new URLSearchParams(dt), g), [dt, g]), M = m.settings.fulfillmentModes.includes("delivery"), pt = m.settings.deliveryDisabledReason.trim(), mt = M || pt.length > 0, ht = m.shop.address?.trim() ?? "", N = s(() => {
61
61
  let e = t(ft, {
62
62
  start_time: "",
63
63
  end_time: ""
@@ -126,7 +126,7 @@ function f() {
126
126
  R,
127
127
  g
128
128
  ]);
129
- let xt = s(() => new Map(yt.map((e) => [ue(e.productId, e.productVariantId), e])), [yt]), V = s(() => ({
129
+ let xt = s(() => new Map(yt.map((e) => [ue(e.productId, e.productVariantId), e])), [yt]), St = s(() => ({
130
130
  ...L,
131
131
  lines: L.lines.map((e) => {
132
132
  let t = xt.get(ue(e.checkoutProductId, e.productVariantId)), n = t ? de(t) : e.availabilityStatus === "OUT_OF_STOCK" ? "unavailable" : void 0;
@@ -140,19 +140,19 @@ function f() {
140
140
  xt,
141
141
  bt,
142
142
  L
143
- ]), H = s(() => L.lines.map((e) => ({
143
+ ]), V = s(() => L.lines.map((e) => ({
144
144
  kind: e.kind,
145
145
  productId: e.checkoutProductId,
146
146
  productVariantId: e.productVariantId,
147
147
  quantity: e.quantity
148
- })), [L.lines]), St = new Map(h.map((e) => [e.checkoutProductId?.trim() || e.id, e])), Ct = L.lines.flatMap((e) => {
149
- let t = St.get(e.checkoutProductId);
148
+ })), [L.lines]), Ct = new Map(h.map((e) => [e.checkoutProductId?.trim() || e.id, e])), H = L.lines.flatMap((e) => {
149
+ let t = Ct.get(e.checkoutProductId);
150
150
  return t?.insurance?.enabled ? [{
151
151
  quantity: e.quantity,
152
152
  pricePerDayMinor: t.insurance.pricePerDayMinor,
153
153
  deductibleAmountMinor: t.insurance.deductibleAmountMinor
154
154
  }] : [];
155
- }), U = m.modules?.insurance?.enabled === !0 && Ct.length > 0, W = U && j, wt = Ct.reduce((e, t) => e + t.pricePerDayMinor * t.quantity, 0), Tt = Ct.reduce((e, t) => Math.max(e, t.deductibleAmountMinor), 0), Et = L.estimatedTotalMinor ?? L.totalPerBaseUnitMinor, G = E?.totalMinor ?? Et, K = w?.discountAmountMinor ?? 0, q = e(new URLSearchParams(), N).toString(), Dt = `/${g ?? ""}/booking${q ? `?${q}` : ""}`, Ot = `/${g ?? ""}/checkout${q ? `?${q}` : ""}`, kt = Pe({
155
+ }), U = m.modules?.insurance?.enabled === !0 && H.length > 0, W = U && j, wt = H.reduce((e, t) => e + t.pricePerDayMinor * t.quantity, 0), Tt = H.reduce((e, t) => Math.max(e, t.deductibleAmountMinor), 0), Et = L.estimatedTotalMinor ?? L.totalPerBaseUnitMinor, G = w?.totalMinor ?? Et, K = S?.discountAmountMinor ?? 0, q = e(new URLSearchParams(), N).toString(), J = `/${g ?? ""}/booking${q ? `?${q}` : ""}`, Dt = `/${g ?? ""}/checkout${q ? `?${q}` : ""}`, Ot = Pe({
156
156
  resolver: Fe(Ee),
157
157
  defaultValues: {
158
158
  first_name: "",
@@ -167,7 +167,7 @@ function f() {
167
167
  }, [N, g]), o(() => {
168
168
  !U && j && ut(!1);
169
169
  }, [j, U]);
170
- let J = (t) => {
170
+ let Y = (t) => {
171
171
  let n = {
172
172
  ...N,
173
173
  ...t
@@ -175,38 +175,38 @@ function f() {
175
175
  r.toString() !== _.toString() && (Ve(r, { replace: !0 }), i(g, r));
176
176
  };
177
177
  o(() => {
178
- if (!g || H.length === 0 || !P) {
179
- T(null), D(null), ot(!1), O(null), k(null);
178
+ if (!g || V.length === 0 || !P) {
179
+ C(null), T(null), D(!1), O(null), k(null);
180
180
  return;
181
181
  }
182
- let e = rt.trim(), t = e.length === 0 && !A, n = !1;
183
- return ot(!0), k(null), O(null), (async () => {
182
+ let e = at.trim(), t = e.length === 0 && !A, n = !1;
183
+ return D(!0), k(null), O(null), (async () => {
184
184
  try {
185
185
  let r = await a(be, {
186
186
  storeSlug: g,
187
187
  schedule: P,
188
- items: H,
188
+ items: V,
189
189
  couponCode: e || void 0,
190
190
  includeAutoApply: t,
191
191
  insuranceAccepted: W
192
192
  }), i = xe.parse(r);
193
193
  if (n) return;
194
- if (D(typeof i.subtotalMinor == "number" && typeof i.totalMinor == "number" ? {
194
+ if (T(typeof i.subtotalMinor == "number" && typeof i.totalMinor == "number" ? {
195
195
  subtotalMinor: i.subtotalMinor,
196
196
  totalMinor: i.totalMinor,
197
197
  lateReturnSurchargeMinor: i.lateReturnSurchargeMinor,
198
198
  insuranceSubtotalMinor: i.insuranceSubtotalMinor,
199
199
  insuranceBillableDays: i.insuranceBillableDays
200
200
  } : null), !i.success) {
201
- T(null), k(i.message || f("checkout_coupon_invalid"));
201
+ C(null), k(i.message || f("checkout_coupon_invalid"));
202
202
  return;
203
203
  }
204
- T(i.coupon ?? null), i.coupon && (i.coupon.autoApplied && e.length === 0 ? (C(i.coupon.code), O(f("checkout_coupon_auto_applied", { code: i.coupon.code }))) : O(f("checkout_coupon_manual_applied")));
204
+ C(i.coupon ?? null), i.coupon && (i.coupon.autoApplied && e.length === 0 ? (it(i.coupon.code), O(f("checkout_coupon_auto_applied", { code: i.coupon.code }))) : O(f("checkout_coupon_manual_applied")));
205
205
  } catch (e) {
206
206
  if (n) return;
207
- console.error("Failed to verify checkout coupon", e), T(null), D(null), k(f("checkout_coupon_error"));
207
+ console.error("Failed to verify checkout coupon", e), C(null), T(null), k(f("checkout_coupon_error"));
208
208
  } finally {
209
- n || ot(!1);
209
+ n || D(!1);
210
210
  }
211
211
  })(), () => {
212
212
  n = !0;
@@ -218,18 +218,18 @@ function f() {
218
218
  N.start_date,
219
219
  N.start_time,
220
220
  P,
221
- H,
221
+ V,
222
222
  W,
223
223
  g,
224
- rt,
224
+ at,
225
225
  f
226
226
  ]), o(() => {
227
227
  if (!g || L.lines.length === 0 || !P) {
228
- b(null), S(null), x(!1);
228
+ b(null), x(null), et(!1);
229
229
  return;
230
230
  }
231
231
  let e = !1;
232
- return x(!0), S(null), (async () => {
232
+ return et(!0), x(null), (async () => {
233
233
  try {
234
234
  let t = await a(ae, {
235
235
  storeSlug: g,
@@ -238,15 +238,15 @@ function f() {
238
238
  }), n = oe.parse(t);
239
239
  if (e) return;
240
240
  if (!n.success || !n.decision) {
241
- b(null), S(n.errorCode === "online_payment_provider_missing" ? f("checkout_payment_error") : n.message || f("checkout_payment_error"));
241
+ b(null), x(n.errorCode === "online_payment_provider_missing" ? f("checkout_payment_error") : n.message || f("checkout_payment_error"));
242
242
  return;
243
243
  }
244
244
  b(n.decision);
245
245
  } catch (t) {
246
246
  if (e) return;
247
- console.error("Failed to load checkout payment decision", t), b(null), S(f("checkout_payment_error"));
247
+ console.error("Failed to load checkout payment decision", t), b(null), x(f("checkout_payment_error"));
248
248
  } finally {
249
- e || x(!1);
249
+ e || et(!1);
250
250
  }
251
251
  })(), () => {
252
252
  e = !0;
@@ -262,25 +262,25 @@ function f() {
262
262
  g,
263
263
  f
264
264
  ]);
265
- let Y = y?.currency ?? "EUR", At = d(G, Y, p.language), jt = K > 0 ? `-${d(K, Y, p.language)}` : null, X = E?.insuranceSubtotalMinor ?? 0, Mt = Math.max(0, G - X), Nt = Math.round(Mt / 1.2), Pt = Nt + X, Ft = Math.max(0, Mt - Nt), It = d(Pt, Y, p.language), Lt = d(Ft, Y, p.language), Rt = Le(Ie, p.language), zt = X > 0 ? d(X, Y, p.language) : void 0, Z = y?.amountToCollectMinor ?? 0, Bt = d(Z, Y, p.language), Vt = y?.paymentMode === "deposit" && Z > 0 ? d(Z, Y, p.language) : null, Ht = y?.shouldCollectOnlinePayment === !0 && Z > 0, Ut = m.shop.timeZone?.trim() || void 0, Q = s(() => y ? Le(Math.max(0, Math.min(1, y.bookingDepositPercentage)), p.language) : null, [p.language, y]), $ = s(() => {
265
+ let X = y?.currency ?? "EUR", kt = d(G, X, p.language), At = K > 0 ? `-${d(K, X, p.language)}` : null, Z = w?.insuranceSubtotalMinor ?? 0, jt = Math.max(0, G - Z), Mt = Math.round(jt / 1.2), Nt = Mt + Z, Pt = Math.max(0, jt - Mt), Ft = d(Nt, X, p.language), It = d(Pt, X, p.language), Lt = Le(Ie, p.language), Rt = Z > 0 ? d(Z, X, p.language) : void 0, Q = y?.amountToCollectMinor ?? 0, zt = d(Q, X, p.language), Bt = y?.paymentMode === "deposit" && Q > 0 ? d(Q, X, p.language) : null, Vt = y?.shouldCollectOnlinePayment === !0 && Q > 0, Ht = m.shop.timeZone?.trim() || void 0, $ = s(() => y ? Le(Math.max(0, Math.min(1, y.bookingDepositPercentage)), p.language) : null, [p.language, y]), Ut = s(() => {
266
266
  if (!y?.depositRefundableUntilIso) return null;
267
267
  let e = new Date(y.depositRefundableUntilIso);
268
- return Number.isNaN(e.getTime()) ? null : Re(e, p.language, Ut);
268
+ return Number.isNaN(e.getTime()) ? null : Re(e, p.language, Ht);
269
269
  }, [
270
270
  p.language,
271
271
  y?.depositRefundableUntilIso,
272
- Ut
273
- ]), Wt = s(() => y ? y.paymentMode === "deposit" && Z > 0 && Q ? $ ? f("checkout_payment_due_now_helper_deposit_refundable_until", {
274
- percent: Q,
275
- date: $
276
- }) : f("checkout_payment_due_now_helper_deposit", { percent: Q }) : y.paymentMode === "none" || Z <= 0 ? f("checkout_payment_due_now_helper_none") : null : null, [
277
- Z,
272
+ Ht
273
+ ]), Wt = s(() => y ? y.paymentMode === "deposit" && Q > 0 && $ ? Ut ? f("checkout_payment_due_now_helper_deposit_refundable_until", {
274
+ percent: $,
275
+ date: Ut
276
+ }) : f("checkout_payment_due_now_helper_deposit", { percent: $ }) : y.paymentMode === "none" || Q <= 0 ? f("checkout_payment_due_now_helper_none") : null : null, [
278
277
  Q,
279
278
  $,
279
+ Ut,
280
280
  y,
281
281
  f
282
- ]), Gt = kt.handleSubmit(async (e) => {
283
- if (!g || H.length === 0 || !P || Qe.current) return;
282
+ ]), Gt = Ot.handleSubmit(async (e) => {
283
+ if (!g || V.length === 0 || !P || Qe.current) return;
284
284
  Ze(!0), Qe.current = !0;
285
285
  let t = qe();
286
286
  try {
@@ -292,8 +292,8 @@ function f() {
292
292
  fulfillment: N.fulfillment,
293
293
  startAddress: N.fulfillment === "delivery" ? N.start_address : void 0,
294
294
  endAddress: N.fulfillment === "delivery" ? N.end_address : void 0,
295
- couponCode: w?.code,
296
- couponAutoApplied: !A && w?.autoApplied,
295
+ couponCode: S?.code,
296
+ couponAutoApplied: !A && S?.autoApplied,
297
297
  insuranceAccepted: W,
298
298
  customer: {
299
299
  firstName: e.first_name,
@@ -302,7 +302,7 @@ function f() {
302
302
  phone: e.phone,
303
303
  notes: e.notes
304
304
  },
305
- items: H
305
+ items: V
306
306
  }), r = ce.parse(n);
307
307
  if (!r.success || !r.checkout) {
308
308
  Ye(), _e.error(r.errorCode === "online_payment_provider_missing" ? f("checkout_payment_error") : r.message || f("checkout_payment_error"));
@@ -314,7 +314,7 @@ function f() {
314
314
  } finally {
315
315
  Qe.current = !1, Ze(!1);
316
316
  }
317
- }), Kt = f(Ht ? "checkout_continue_to_payment" : "checkout_submit"), qt = N.fulfillment === "delivery" && N.start_address.trim().length === 0, Jt = !v && !$e && !et && !at && !ct && !!y && !!P && !qt && H.length > 0;
317
+ }), Kt = f(Vt ? "checkout_continue_to_payment" : "checkout_submit"), qt = N.fulfillment === "delivery" && N.start_address.trim().length === 0, Jt = !v && !$e && !tt && !E && !ct && !!y && !!P && !qt && V.length > 0;
318
318
  return L.lines.length === 0 ? /* @__PURE__ */ l("div", {
319
319
  className: "mx-auto max-w-3xl px-4 py-10 sm:px-6",
320
320
  children: /* @__PURE__ */ u("div", {
@@ -331,7 +331,7 @@ function f() {
331
331
  /* @__PURE__ */ l("div", {
332
332
  className: "mt-6",
333
333
  children: /* @__PURE__ */ l(Oe, {
334
- to: Dt,
334
+ to: J,
335
335
  children: /* @__PURE__ */ u(me, {
336
336
  className: "gap-2",
337
337
  children: [/* @__PURE__ */ l(Ne, {
@@ -343,138 +343,124 @@ function f() {
343
343
  })
344
344
  ]
345
345
  })
346
- }) : /* @__PURE__ */ l("div", {
347
- className: "mx-auto max-w-7xl px-4 py-8 sm:px-6",
346
+ }) : /* @__PURE__ */ l(ye, {
347
+ currentStep: "checkout",
348
+ bookingPath: J,
349
+ checkoutPath: Dt,
350
+ backPath: J,
351
+ backLabel: f("back_to_booking"),
348
352
  children: /* @__PURE__ */ u("div", {
349
- className: "flex flex-col gap-6",
350
- children: [
351
- /* @__PURE__ */ l(ve, {
352
- currentStep: "checkout",
353
- bookingPath: Dt,
354
- checkoutPath: Ot
355
- }),
356
- /* @__PURE__ */ u(Oe, {
357
- to: Dt,
358
- className: "inline-flex items-center gap-2 text-sm font-medium text-slate-700 hover:text-slate-950",
359
- children: [/* @__PURE__ */ l(Ne, {
360
- className: "h-4 w-4",
361
- "aria-hidden": "true"
362
- }), /* @__PURE__ */ l("span", { children: f("back_to_booking") })]
363
- }),
364
- /* @__PURE__ */ u("div", {
365
- className: "grid gap-6 lg:grid-cols-12",
366
- children: [/* @__PURE__ */ u("div", {
367
- className: "lg:col-span-7",
353
+ className: "grid gap-6 lg:grid-cols-12",
354
+ children: [/* @__PURE__ */ u("div", {
355
+ className: "lg:col-span-7",
356
+ children: [
357
+ /* @__PURE__ */ l("h1", {
358
+ className: "text-xl font-semibold tracking-tight text-slate-950",
359
+ children: /* @__PURE__ */ l("span", { children: f("checkout_title") })
360
+ }),
361
+ P ? null : /* @__PURE__ */ l("p", {
362
+ role: "alert",
363
+ className: "mt-3 text-sm text-destructive",
364
+ children: /* @__PURE__ */ l("span", { children: f("booking_time_slots_required") })
365
+ }),
366
+ /* @__PURE__ */ u("div", {
367
+ className: "mt-5 grid gap-4",
368
368
  children: [
369
- /* @__PURE__ */ l("h1", {
370
- className: "text-xl font-semibold tracking-tight text-slate-950",
371
- children: /* @__PURE__ */ l("span", { children: f("checkout_title") })
369
+ mt ? /* @__PURE__ */ l("div", {
370
+ className: "rounded-xl border border-slate-200 bg-white p-3 shadow-sm",
371
+ children: /* @__PURE__ */ l(ve, {
372
+ value: N.fulfillment,
373
+ onValueChange: (e) => Y({ fulfillment: e }),
374
+ pickupAddress: ht,
375
+ deliveryEnabled: M,
376
+ deliveryDisabledReason: pt,
377
+ startAddress: N.start_address,
378
+ onStartAddressChange: (e) => Y({ start_address: e }),
379
+ endAddress: N.end_address,
380
+ onEndAddressChange: (e) => Y({ end_address: e }),
381
+ showPickupAddressWhenPickupOnly: !1,
382
+ testIdPrefix: "storefront-checkout-fulfillment"
383
+ })
384
+ }) : null,
385
+ /* @__PURE__ */ l(Se, { form: Ot }),
386
+ U ? /* @__PURE__ */ l(we, {
387
+ accepted: W,
388
+ disabled: v || E,
389
+ dailyAmountLabel: d(wt, X, p.language),
390
+ totalAmountLabel: Rt,
391
+ billableDays: w?.insuranceBillableDays,
392
+ deductibleLabel: Tt > 0 ? d(Tt, X, p.language) : void 0,
393
+ onAcceptedChange: ut
394
+ }) : null,
395
+ /* @__PURE__ */ l(Ce, {
396
+ estimatedTotalLabel: kt,
397
+ couponCode: S?.code,
398
+ discountAmountLabel: At,
399
+ totalExcludingTaxLabel: Ft,
400
+ vatAmountLabel: It,
401
+ vatRateLabel: Lt,
402
+ insuranceAmountLabel: Rt,
403
+ depositAmountLabel: Bt,
404
+ amountToCollectMinor: Q,
405
+ amountToCollectLabel: zt,
406
+ paymentSummaryHelper: Wt,
407
+ paymentDecisionLoading: $e,
408
+ paymentDecisionError: tt,
409
+ canChoosePaymentMethod: !1,
410
+ showAmountDueNowRow: !0,
411
+ selectedPaymentMethod: "card",
412
+ submitting: v,
413
+ onSelectPaymentMethod: () => {}
372
414
  }),
373
- P ? null : /* @__PURE__ */ l("p", {
374
- role: "alert",
375
- className: "mt-3 text-sm text-destructive",
376
- children: /* @__PURE__ */ l("span", { children: f("booking_time_slots_required") })
415
+ /* @__PURE__ */ l(me, {
416
+ type: "button",
417
+ size: "lg",
418
+ onClick: () => {
419
+ Gt();
420
+ },
421
+ disabled: !Jt,
422
+ className: "mt-4 w-fit",
423
+ children: /* @__PURE__ */ l("span", { children: Kt })
377
424
  }),
378
- /* @__PURE__ */ u("div", {
379
- className: "mt-5 grid gap-4",
380
- children: [
381
- mt ? /* @__PURE__ */ l("div", {
382
- className: "rounded-xl border border-slate-200 bg-white p-3 shadow-sm",
383
- children: /* @__PURE__ */ l(ye, {
384
- value: N.fulfillment,
385
- onValueChange: (e) => J({ fulfillment: e }),
386
- pickupAddress: ht,
387
- deliveryEnabled: M,
388
- deliveryDisabledReason: pt,
389
- startAddress: N.start_address,
390
- onStartAddressChange: (e) => J({ start_address: e }),
391
- endAddress: N.end_address,
392
- onEndAddressChange: (e) => J({ end_address: e }),
393
- showPickupAddressWhenPickupOnly: !1,
394
- testIdPrefix: "storefront-checkout-fulfillment"
395
- })
396
- }) : null,
397
- /* @__PURE__ */ l(Se, { form: kt }),
398
- U ? /* @__PURE__ */ l(we, {
399
- accepted: W,
400
- disabled: v || at,
401
- dailyAmountLabel: d(wt, Y, p.language),
402
- totalAmountLabel: zt,
403
- billableDays: E?.insuranceBillableDays,
404
- deductibleLabel: Tt > 0 ? d(Tt, Y, p.language) : void 0,
405
- onAcceptedChange: ut
406
- }) : null,
407
- /* @__PURE__ */ l(Ce, {
408
- estimatedTotalLabel: At,
409
- couponCode: w?.code,
410
- discountAmountLabel: jt,
411
- totalExcludingTaxLabel: It,
412
- vatAmountLabel: Lt,
413
- vatRateLabel: Rt,
414
- insuranceAmountLabel: zt,
415
- depositAmountLabel: Vt,
416
- amountToCollectMinor: Z,
417
- amountToCollectLabel: Bt,
418
- paymentSummaryHelper: Wt,
419
- paymentDecisionLoading: $e,
420
- paymentDecisionError: et,
421
- canChoosePaymentMethod: !1,
422
- showAmountDueNowRow: !0,
423
- selectedPaymentMethod: "card",
424
- submitting: v,
425
- onSelectPaymentMethod: () => {}
426
- }),
427
- /* @__PURE__ */ l(me, {
428
- type: "button",
429
- size: "lg",
430
- onClick: () => {
431
- Gt();
432
- },
433
- disabled: !Jt,
434
- className: "mt-4 w-fit",
435
- children: /* @__PURE__ */ l("span", { children: Kt })
436
- }),
437
- qt ? /* @__PURE__ */ l("p", {
438
- className: "text-sm text-slate-600",
439
- children: /* @__PURE__ */ l("span", { children: f("checkout_delivery_address_required") })
440
- }) : null
441
- ]
442
- })
425
+ qt ? /* @__PURE__ */ l("p", {
426
+ className: "text-sm text-slate-600",
427
+ children: /* @__PURE__ */ l("span", { children: f("checkout_delivery_address_required") })
428
+ }) : null
443
429
  ]
444
- }), /* @__PURE__ */ l(Te, {
445
- lines: V.lines,
446
- itemCount: We,
447
- totalPerBaseUnitMinor: V.totalPerBaseUnitMinor,
448
- baseUnitLabel: gt,
449
- estimatedTotalMinor: V.estimatedTotalMinor,
450
- discountedEstimatedTotalMinor: G,
451
- discountAmountMinor: K,
452
- lateReturnSurchargeMinor: E?.lateReturnSurchargeMinor,
453
- couponCode: w?.code,
454
- durationInBaseUnitLabel: _t,
455
- onQuantityChange: Ge,
456
- onRemove: Ke,
457
- coupon: {
458
- code: nt,
459
- appliedCode: w?.code,
460
- discountLabel: w && K > 0 ? d(K, Y, p.language) : null,
461
- message: st,
462
- error: ct,
463
- loading: at,
464
- disabled: v,
465
- onCodeChange: (e) => {
466
- C(e), k(null), O(null);
467
- },
468
- onApply: () => {
469
- lt(!1), it(nt.trim());
470
- },
471
- onRemove: () => {
472
- C(""), it(""), T(null), D(null), k(null), O(null), lt(!0);
473
- }
474
- }
475
- })]
476
- })
477
- ]
430
+ })
431
+ ]
432
+ }), /* @__PURE__ */ l(Te, {
433
+ lines: St.lines,
434
+ itemCount: We,
435
+ totalPerBaseUnitMinor: St.totalPerBaseUnitMinor,
436
+ baseUnitLabel: gt,
437
+ estimatedTotalMinor: St.estimatedTotalMinor,
438
+ discountedEstimatedTotalMinor: G,
439
+ discountAmountMinor: K,
440
+ lateReturnSurchargeMinor: w?.lateReturnSurchargeMinor,
441
+ couponCode: S?.code,
442
+ durationInBaseUnitLabel: _t,
443
+ onQuantityChange: Ge,
444
+ onRemove: Ke,
445
+ coupon: {
446
+ code: rt,
447
+ appliedCode: S?.code,
448
+ discountLabel: S && K > 0 ? d(K, X, p.language) : null,
449
+ message: st,
450
+ error: ct,
451
+ loading: E,
452
+ disabled: v,
453
+ onCodeChange: (e) => {
454
+ it(e), k(null), O(null);
455
+ },
456
+ onApply: () => {
457
+ lt(!1), ot(rt.trim());
458
+ },
459
+ onRemove: () => {
460
+ it(""), ot(""), C(null), T(null), k(null), O(null), lt(!0);
461
+ }
462
+ }
463
+ })]
478
464
  })
479
465
  });
480
466
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AAoJA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAk0B/B"}
1
+ {"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA2JA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAw4B/B"}