@loczer/storefront-sdk 0.216.0 → 0.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/_virtual/_rolldown/{runtime-CkxIErRK.js → runtime-B5ovbsoX.js} +12 -5
- package/dist/chunks/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm-6voMhWrN.js +11 -0
- package/dist/chunks/node_modules/@emotion/memoize/dist/emotion-memoize.esm-CbcNHeNh.js +12 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild-DVb6X_PO.js +61 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild-DyihLa7p.js +53 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/index-DmhaitYv.js +60 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence-Cig9mH3B.js +20 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/utils-MuK80fQc.js +11 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/LayoutGroupContext-CppToMHP.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/LazyContext-pz7xXPnk.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionConfigContext-CoJIbMbt.js +10 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/create-Bn_I3YGX.js +17 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/index-B9obK4sO.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/utils-ByjX9df_.js +15 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/PresenceContext-Cj2bJFe0.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext-DhUxGAwV.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/events/add-pointer-event-CHKBre-7.js +8 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/events/event-info-CIMY2v27.js +11 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls-BP560JFy.js +258 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/index-DH25rbJs.js +22 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints-uATfUwby.js +59 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/focus-D5PGq15I.js +27 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/hover-BSuPivdx.js +20 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/pan/PanSession-DQk2Dv3G.js +138 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/pan/index-CSmtHc88.js +42 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/gestures/press-jh5KkKLw.js +26 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/exit-C4vmhIuU.js +39 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/index-BxVBcgYs.js +25 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animations-D8nAGh1h.js +9 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/definitions-D5AEjfKY.js +51 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/drag-Ilu0wLsZ.js +15 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/gestures-NOCelRjM.js +13 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout-CiUIGE9r.js +61 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/layout-B_FwT4yv.js +9 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/load-features-BzH6YCRU.js +13 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/viewport/index-CulwEMSa.js +46 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/viewport/observers-x2xlB0Om.js +24 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/index-Nj9omPyM.js +70 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/symbol-BaRQvk9k.js +4 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref-B42kEDKi.js +21 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-visual-element-CG31NdKM.js +58 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/use-visual-state-C3wTD2F4.js +50 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/motion/utils/valid-prop-B-V3c3JM.js +7 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/components/create-proxy-CkstUqll.js +10 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle-DUpS38r2.js +13 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/components/motion/proxy-DXxjnqei.js +7 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/create-visual-element-Da4IYVeR.js +8 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/use-render-vjqx3wpA.js +21 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/utils/filter-props-8AWb0Fmy.js +19 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component-Dfh-TmXQ.js +7 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/html/use-html-visual-state-B0BxPJ3u.js +11 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/html/use-props-D5zID_2s.js +26 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/html/utils/create-render-state-dth6BoLB.js +9 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/lowercase-elements-C04v53NG.js +30 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/use-props-MZrwg07L.js +26 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state-pJSuuPIs.js +11 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state-b0r4UXLU.js +8 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/distance-DcZpIXTw.js +8 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/get-context-window-pYdCDRbN.js +4 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/is-browser-DaKd-mJB.js +4 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/is-ref-object-DfJ8Lr_g.js +6 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-composed-ref-EoyZU9bo.js +25 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-constant-B5X65PZe.js +9 -0
- package/dist/chunks/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect-D1bPqOsw.js +7 -0
- package/dist/chunks/node_modules/mapbox-gl/dist/{mapbox-gl-C3ih7CyM.js → mapbox-gl-C3MzR-4r.js} +1 -1
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation-CaTU1DM6.js +107 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/JSAnimation-zfqrUSXR.js +129 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/NativeAnimation-CfiXAYmD.js +84 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended-BKiHRnbh.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/animate/single-value-66TFY3Ue.js +10 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/drivers/frame-C46tnJcG.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/inertia-CSs70-4B.js +32 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/keyframes-B8KsYraP.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/spring-CEJsZ0ds.js +166 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration-N3fRuYmx.js +9 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing-CNVBTdyB.js +16 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator-CeGXg0jv.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/velocity-NngCxIQM.js +9 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/motion-value-Dpez8dQD.js +45 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-DZ-rOn58.js +21 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target-C0xS2WGG.js +57 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant-B35oZvml.js +26 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver-_h9E3nwl.js +61 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver-BxwoVKip.js +67 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/get-final-BQVKjyPS.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default-DW_NtU-K.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill-D-JxRntL.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time-BCh-zgvS.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards-Dasqyq5W.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none-Boi7nzNq.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable-DZ2uKxwT.js +18 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion-CZVviGe6.js +36 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id-DKf-WdGO.js +5 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id-B3ocRUEp.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/WithPromise-Df7bJffn.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger-Zf1BbESP.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/can-animate-8-JdOSKl.js +18 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion-DbIMqS6o.js +25 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/default-transitions-DVnwrMKg.js +27 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/get-value-transition-5a_kRob8.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-animatable-C5hoiztj.js +5 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-css-variable-CyNVJBsm.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined-C1rwuBUy.js +19 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant-COWEl80Q.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type-BMiDtDGg.js +16 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/utils/resolve-transition-BTqjVzCB.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier-J2lt5jeZ.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing-BD7Y9jJG.js +11 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/easing/supported-Cz-WgHfd.js +35 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation-ClEsx3cW.js +19 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi-DOBuuHlt.js +24 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values-D6fGw6G9.js +10 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator-BP_nJDar.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color-DlLrfl3t.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/linear-CfxAW4iV.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing-CXVzjJ-M.js +17 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/events/add-dom-event-CWEtxeZQ.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/batcher-DfPEJ0tV.js +30 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/frame-CKZTADU1.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/microtask-C0-dBzym.js +5 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/order-CHyaH5qN.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/render-step-CdDpWyF_.js +32 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/frameloop/sync-time-C_QyRCNd.js +15 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/drag/state/is-active-CVvtbTCK.js +10 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/drag/state/set-active-CDl0txXn.js +11 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/hover-rZyMySKA.js +36 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/index-CdNLBeeX.js +36 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible-DVnEOolg.js +21 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard-OEdF2Pgl.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/press/utils/state-Ebi7SIjG.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child-Bpzb9pAt.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer-CiELcwyf.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/gestures/utils/setup-51FdPiwb.js +16 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/animation/mix-values-CI36Bvu8.js +25 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/conversion-C53fTUL0.js +39 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/copy-DLOE8cY-.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-apply-D_7fQFIs.js +43 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-calc-CnWZkKos.js +30 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/delta-remove-BVg-RIJ5.js +29 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/models-d7gxmOp4.js +18 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/geometry/utils-DB_aXUBK.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode-DO5yRSLp.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode-DPNJVDRP.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/create-projection-node-23wDIc4D.js +584 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/node/state-DB-DwaXn.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/shared/stack-tv0ZE6-p.js +51 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius-o5vW8fHp.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow-BhjA57xW.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-correction-Dqs0DG_x.js +17 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/transform-NKB2cwBd.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth-D4ki-lbA.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/each-axis-Bvmvr7Z2.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/flat-tree-DoVrrxxY.js +19 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/has-transform-MC2xCktm.js +18 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/measure-9EHDTj-Q.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/Feature-BO-74BEK.js +9 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/VisualElement-Q2WcJv6t.js +204 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement-C0PGIt5i.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/is-css-var-Dp_b3naF.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/parse-transform-BhriW6XO.js +56 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/style-set-rv8o9V7z.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash-DkTMivH-.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement-BlmAcWaG.js +39 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-styles-d8t31XT-.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-transform-ses8bYxd.js +36 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/render-D0WyK2kl.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values-Dnanh7Pq.js +11 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/store-BtTKq2jY.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement-CQOmrr3k.js +40 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs-CfRsHEuP.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs-eLNLAV8t.js +28 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag-DmzYEr13.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/path-DrGKJJG-.js +15 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/render--nKPYECx.js +10 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values-BZpmWNaV.js +14 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/animation-state-DDMO-7FQ.js +135 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/get-variant-context-qR057mHU.js +19 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-animation-controls-B7ktiywN.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants-BTh61RuJ.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value-DJbn-QIQ.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target-BjHS8PGf.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/is-variant-label-CVoIfHaT.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/keys-position-6KzA4Ufp.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/keys-transform-D89O3jUI.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/motion-values-BofpGQv9.js +21 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index-CBQsVFcz.js +11 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state-ClY5PInV.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants-CctcYJsO.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/resolve-variants-YRQnmPS8.js +20 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/setters-CAm56hbR.js +20 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/shallow-compare-D_Ag1Ugh.js +10 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/render/utils/variant-props-wnjnGla7.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/resize/handle-element-C0cdHgCp.js +37 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/resize/handle-window-CYcfJ-yc.js +22 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/resize/index-BxIqM2kA.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/stats/buffer-Ddx-OwOh.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/border-radius-BzX2eyPO.js +9 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/delay-CHrWJUrg.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/interpolate-CzC1L8ZO.js +33 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-html-element-C0nwVk_b.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-svg-element-DBzZMKGK.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/is-svg-svg-element-Ckc3gGsT.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/color-DWwiDYZb.js +30 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/complex-BHS_05I4.js +52 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/immediate-BKaWg21K.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/index-BRygSkxI.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/number-BQSwMPU1.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/mix/visibility-Cskd_oLV.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/resolve-elements-Dtu6Z_Ty.js +14 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/flags-BurPNJ34.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/linear-easing-Pzz4ZlUa.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/memo-DC0cOD0o.js +9 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline-rru9B6Gb.js +5 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/index-Bwg0vVXH.js +92 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/auto-koixlyde.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hex-D_nQPreB.js +19 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hsla-UmYS8wgv.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba-DcyRElEM.js +21 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/index-N7DJKOLI.js +15 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/rgba-CdLIc-3D.js +15 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/color/utils-MnexfjLY.js +16 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/filter-ClIAXOZw.js +26 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/index-grhmCqMW.js +52 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/complex/mask-BwJciot3.js +14 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/dimensions-DiF9rgiq.js +16 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/int-CXf2V5s3.js +8 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/defaults-CUGdDi7c.js +24 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/number-CbCxH6Jz.js +64 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/maps/transform-KMLgKYda.js +32 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/numbers/index-DYQnrXRf.js +15 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/numbers/units-Cl3LhAl3.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/test-BkLtGGhq.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/animatable-none-48Tgfh--.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/color-regex-C3uB4EIr.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/find-DcyXW-Sp.js +12 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/float-regex-DjWNXroL.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/get-as-type-D-jDTeib.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/is-nullish-CqG_su_i.js +6 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/sanitize-CHpVppHV.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex-B5zaDk0y.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/utils/is-motion-value-DjNWSbJA.js +4 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value-B_1ESd5B.js +7 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/will-change/add-will-change-DBvewpY4.js +13 -0
- package/dist/chunks/node_modules/motion-dom/dist/es/value/will-change/is-T16fSSX5.js +7 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/array-BBGK1j1b.js +10 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/clamp-B15uFKIC.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/anticipate-CGu5JxBr.js +5 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/back-Dx4ysBOm.js +7 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/circ-BQFsYAQF.js +6 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/cubic-bezier-ChP-yr8D.js +18 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/ease-aj5zpqzD.js +5 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/modifiers/mirror-DK1HENQt.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/modifiers/reverse-SiUI2DwA.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition-c8Afth9n.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/is-easing-array-5MLjLjPK.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/easing/utils/map-ldz_Xg06.js +31 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/errors-zYMa5JTQ.js +10 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/format-error-message-Dbn0S6vS.js +6 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/global-config-BqV2nflf.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/is-numerical-string-CiTQN66D.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/is-object-QQQynvgM.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/is-zero-value-string-Bss1UzBi.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/memo-CwaXJmzB.js +8 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/noop-DF4YCrc8.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/pipe-BweOLNhL.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/progress-B3YfSCwx.js +7 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/subscription-manager-B1v5ik_R.js +26 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/time-conversion-WGVLVIZI.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/velocity-per-second-Hq_yU5RD.js +4 -0
- package/dist/chunks/node_modules/motion-utils/dist/es/warn-once-CNQIsdRh.js +8 -0
- package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-CWP_qule.js +71 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-BhIOL2rP.js +23 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-C9kJFMIu.js +69 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-BJHQLX8t.js → base-product-Bde9lJQD.js} +2 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-epi7FXIk.js +74 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-CPeHsTss.js → insurance-DXc34Bzy.js} +20 -19
- package/dist/chunks/pkg/booking-engine/dist/schemas/product-id--yyUTH1Y.js +5 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas-DGn2a1my.js +15 -0
- package/dist/chunks/pkg/ui/dist/Map/{MapContent-TzYCv8ji.js → MapContent-BgCi-wZr.js} +2 -2
- package/dist/chunks/pkg/ui/dist/{Map-ZM-ZOU9P.js → Map-DCNW_9J_.js} +1 -1
- package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-DOH1GYVR.js → MorphingModalWizard-j1CgFGLe.js} +0 -1
- package/dist/components/BookingBikeQuickAddCard/index.js +37 -36
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
- package/dist/components/Footer/BusinessHours.d.ts +2 -9
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -1
- package/dist/components/Footer/BusinessHours.js +48 -91
- package/dist/components/Footer/BusinessHoursOverviewDialog.d.ts +11 -0
- package/dist/components/Footer/BusinessHoursOverviewDialog.d.ts.map +1 -0
- package/dist/components/Footer/BusinessHoursOverviewDialog.js +161 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +37 -1
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
- package/dist/components/Footer/businessHoursUtils.js +112 -15
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +78 -94
- package/dist/components/Map/index.js +1 -1
- package/dist/i18n/en.d.ts +5 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +5 -0
- package/dist/i18n/fr.d.ts +5 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +5 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +80 -79
- package/dist/lib/booking-period.js +1 -1
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.js +3 -3
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +250 -205
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +1 -1
- package/package.json +1 -2
- package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js +0 -70
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-B4y__1qj.js +0 -22
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js +0 -68
- package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js +0 -72
- package/dist/chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js +0 -14
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { clamp as e } from "../../../../motion-utils/dist/es/clamp-B15uFKIC.js";
|
|
2
|
+
import { invariant as t } from "../../../../motion-utils/dist/es/errors-zYMa5JTQ.js";
|
|
3
|
+
import { pipe as n } from "../../../../motion-utils/dist/es/pipe-BweOLNhL.js";
|
|
4
|
+
import { millisecondsToSeconds as r, secondsToMilliseconds as i } from "../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
5
|
+
import { time as a } from "../frameloop/sync-time-C_QyRCNd.js";
|
|
6
|
+
import { mix as o } from "../utils/mix/index-BRygSkxI.js";
|
|
7
|
+
import { frameloopDriver as s } from "./drivers/frame-C46tnJcG.js";
|
|
8
|
+
import { calcGeneratorDuration as c } from "./generators/utils/calc-duration-N3fRuYmx.js";
|
|
9
|
+
import { getGeneratorVelocity as l } from "./generators/utils/velocity-NngCxIQM.js";
|
|
10
|
+
import { inertia as u } from "./generators/inertia-CSs70-4B.js";
|
|
11
|
+
import { keyframes as d } from "./generators/keyframes-B8KsYraP.js";
|
|
12
|
+
import { getFinalKeyframe as f } from "./keyframes/get-final-BQVKjyPS.js";
|
|
13
|
+
import { replaceTransitionType as p } from "./utils/replace-transition-type-BMiDtDGg.js";
|
|
14
|
+
import { WithPromise as m } from "./utils/WithPromise-Df7bJffn.js";
|
|
15
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/JSAnimation.mjs
|
|
16
|
+
var h = (e) => e / 100, g = class extends m {
|
|
17
|
+
constructor(e) {
|
|
18
|
+
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
19
|
+
done: !1,
|
|
20
|
+
value: void 0
|
|
21
|
+
}, this.stop = () => {
|
|
22
|
+
let { motionValue: e } = this.options;
|
|
23
|
+
e && e.updatedAt !== a.now() && this.tick(a.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
24
|
+
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
25
|
+
}
|
|
26
|
+
initAnimation() {
|
|
27
|
+
let { options: e } = this;
|
|
28
|
+
p(e);
|
|
29
|
+
let { type: r = d, repeat: i = 0, repeatDelay: a = 0, repeatType: s, velocity: l = 0 } = e, { keyframes: u } = e, f = r || d;
|
|
30
|
+
process.env.NODE_ENV !== "production" && f !== d && t(u.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`, "spring-two-frames"), f !== d && typeof u[0] != "number" && (this.mixKeyframes = n(h, o(u[0], u[1])), u = [0, 100]);
|
|
31
|
+
let m = f({
|
|
32
|
+
...e,
|
|
33
|
+
keyframes: u
|
|
34
|
+
});
|
|
35
|
+
s === "mirror" && (this.mirroredGenerator = f({
|
|
36
|
+
...e,
|
|
37
|
+
keyframes: [...u].reverse(),
|
|
38
|
+
velocity: -l
|
|
39
|
+
})), m.calculatedDuration === null && (m.calculatedDuration = c(m));
|
|
40
|
+
let { calculatedDuration: g } = m;
|
|
41
|
+
this.calculatedDuration = g, this.resolvedDuration = g + a, this.totalDuration = this.resolvedDuration * (i + 1) - a, this.generator = m;
|
|
42
|
+
}
|
|
43
|
+
updateTime(e) {
|
|
44
|
+
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
45
|
+
this.holdTime === null ? this.currentTime = t : this.currentTime = this.holdTime;
|
|
46
|
+
}
|
|
47
|
+
tick(t, n = !1) {
|
|
48
|
+
let { generator: r, totalDuration: i, mixKeyframes: a, mirroredGenerator: o, resolvedDuration: s, calculatedDuration: c } = this;
|
|
49
|
+
if (this.startTime === null) return r.next(0);
|
|
50
|
+
let { delay: l = 0, keyframes: d, repeat: p, repeatType: m, repeatDelay: h, type: g, onUpdate: _, finalKeyframe: v } = this.options;
|
|
51
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
|
|
52
|
+
let y = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), b = this.playbackSpeed >= 0 ? y < 0 : y > i;
|
|
53
|
+
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
|
|
54
|
+
let x = this.currentTime, S = r;
|
|
55
|
+
if (p) {
|
|
56
|
+
let t = Math.min(this.currentTime, i) / s, n = Math.floor(t), r = t % 1;
|
|
57
|
+
!r && t >= 1 && (r = 1), r === 1 && n--, n = Math.min(n, p + 1), n % 2 && (m === "reverse" ? (r = 1 - r, h && (r -= h / s)) : m === "mirror" && (S = o)), x = e(0, 1, r) * s;
|
|
58
|
+
}
|
|
59
|
+
let C;
|
|
60
|
+
b ? (this.delayState.value = d[0], C = this.delayState) : C = S.next(x), a && !b && (C.value = a(C.value));
|
|
61
|
+
let { done: w } = C;
|
|
62
|
+
!b && c !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
63
|
+
let T = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
|
|
64
|
+
return T && g !== u && (C.value = f(d, this.options, v, this.speed)), _ && _(C.value), T && this.finish(), C;
|
|
65
|
+
}
|
|
66
|
+
then(e, t) {
|
|
67
|
+
return this.finished.then(e, t);
|
|
68
|
+
}
|
|
69
|
+
get duration() {
|
|
70
|
+
return r(this.calculatedDuration);
|
|
71
|
+
}
|
|
72
|
+
get iterationDuration() {
|
|
73
|
+
let { delay: e = 0 } = this.options || {};
|
|
74
|
+
return this.duration + r(e);
|
|
75
|
+
}
|
|
76
|
+
get time() {
|
|
77
|
+
return r(this.currentTime);
|
|
78
|
+
}
|
|
79
|
+
set time(e) {
|
|
80
|
+
e = i(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
|
|
81
|
+
}
|
|
82
|
+
getGeneratorVelocity() {
|
|
83
|
+
let e = this.currentTime;
|
|
84
|
+
if (e <= 0) return this.options.velocity || 0;
|
|
85
|
+
if (this.generator.velocity) return this.generator.velocity(e);
|
|
86
|
+
let t = this.generator.next(e).value;
|
|
87
|
+
return l((e) => this.generator.next(e).value, e, t);
|
|
88
|
+
}
|
|
89
|
+
get speed() {
|
|
90
|
+
return this.playbackSpeed;
|
|
91
|
+
}
|
|
92
|
+
set speed(e) {
|
|
93
|
+
let t = this.playbackSpeed !== e;
|
|
94
|
+
t && this.driver && this.updateTime(a.now()), this.playbackSpeed = e, t && this.driver && (this.time = r(this.currentTime));
|
|
95
|
+
}
|
|
96
|
+
play() {
|
|
97
|
+
if (this.isStopped) return;
|
|
98
|
+
let { driver: e = s, startTime: t } = this.options;
|
|
99
|
+
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
100
|
+
let n = this.driver.now();
|
|
101
|
+
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
102
|
+
}
|
|
103
|
+
pause() {
|
|
104
|
+
this.state = "paused", this.updateTime(a.now()), this.holdTime = this.currentTime;
|
|
105
|
+
}
|
|
106
|
+
complete() {
|
|
107
|
+
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
108
|
+
}
|
|
109
|
+
finish() {
|
|
110
|
+
this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
|
|
111
|
+
}
|
|
112
|
+
cancel() {
|
|
113
|
+
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
114
|
+
}
|
|
115
|
+
teardown() {
|
|
116
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
|
|
117
|
+
}
|
|
118
|
+
stopDriver() {
|
|
119
|
+
this.driver &&= (this.driver.stop(), void 0);
|
|
120
|
+
}
|
|
121
|
+
sample(e) {
|
|
122
|
+
return this.startTime = 0, this.tick(e, !0);
|
|
123
|
+
}
|
|
124
|
+
attachTimeline(e) {
|
|
125
|
+
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
//#endregion
|
|
129
|
+
export { g as JSAnimation };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { invariant as e } from "../../../../motion-utils/dist/es/errors-zYMa5JTQ.js";
|
|
2
|
+
import { noop as t } from "../../../../motion-utils/dist/es/noop-DF4YCrc8.js";
|
|
3
|
+
import { millisecondsToSeconds as n, secondsToMilliseconds as r } from "../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
4
|
+
import { getFinalKeyframe as i } from "./keyframes/get-final-BQVKjyPS.js";
|
|
5
|
+
import { WithPromise as a } from "./utils/WithPromise-Df7bJffn.js";
|
|
6
|
+
import { setStyle as o } from "../render/dom/style-set-rv8o9V7z.js";
|
|
7
|
+
import { supportsScrollTimeline as s } from "../utils/supports/scroll-timeline-rru9B6Gb.js";
|
|
8
|
+
import { startWaapiAnimation as c } from "./waapi/start-waapi-animation-ClEsx3cW.js";
|
|
9
|
+
import { applyGeneratorOptions as l } from "./waapi/utils/apply-generator-BP_nJDar.js";
|
|
10
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
11
|
+
var u = class extends a {
|
|
12
|
+
constructor(t) {
|
|
13
|
+
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t) return;
|
|
14
|
+
let { element: n, name: r, keyframes: a, pseudoElement: s, allowFlatten: u = !1, finalKeyframe: d, onComplete: f } = t;
|
|
15
|
+
this.isPseudoElement = !!s, this.allowFlatten = u, this.options = t, e(typeof t.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
16
|
+
let p = l(t);
|
|
17
|
+
this.animation = c(n, r, a, p, s), p.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
18
|
+
if (this.finishedTime = this.time, !s) {
|
|
19
|
+
let e = i(a, this.options, d, this.speed);
|
|
20
|
+
this.updateMotionValue && this.updateMotionValue(e), o(n, r, e), this.animation.cancel();
|
|
21
|
+
}
|
|
22
|
+
f?.(), this.notifyFinished();
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
play() {
|
|
26
|
+
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
27
|
+
}
|
|
28
|
+
pause() {
|
|
29
|
+
this.animation.pause();
|
|
30
|
+
}
|
|
31
|
+
complete() {
|
|
32
|
+
this.animation.finish?.();
|
|
33
|
+
}
|
|
34
|
+
cancel() {
|
|
35
|
+
try {
|
|
36
|
+
this.animation.cancel();
|
|
37
|
+
} catch {}
|
|
38
|
+
}
|
|
39
|
+
stop() {
|
|
40
|
+
if (this.isStopped) return;
|
|
41
|
+
this.isStopped = !0;
|
|
42
|
+
let { state: e } = this;
|
|
43
|
+
e === "idle" || e === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
44
|
+
}
|
|
45
|
+
commitStyles() {
|
|
46
|
+
let e = this.options?.element;
|
|
47
|
+
!this.isPseudoElement && e?.isConnected && this.animation.commitStyles?.();
|
|
48
|
+
}
|
|
49
|
+
get duration() {
|
|
50
|
+
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
51
|
+
return n(Number(e));
|
|
52
|
+
}
|
|
53
|
+
get iterationDuration() {
|
|
54
|
+
let { delay: e = 0 } = this.options || {};
|
|
55
|
+
return this.duration + n(e);
|
|
56
|
+
}
|
|
57
|
+
get time() {
|
|
58
|
+
return n(Number(this.animation.currentTime) || 0);
|
|
59
|
+
}
|
|
60
|
+
set time(e) {
|
|
61
|
+
let t = this.finishedTime !== null;
|
|
62
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = r(e), t && this.animation.pause();
|
|
63
|
+
}
|
|
64
|
+
get speed() {
|
|
65
|
+
return this.animation.playbackRate;
|
|
66
|
+
}
|
|
67
|
+
set speed(e) {
|
|
68
|
+
e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
|
|
69
|
+
}
|
|
70
|
+
get state() {
|
|
71
|
+
return this.finishedTime === null ? this.animation.playState : "finished";
|
|
72
|
+
}
|
|
73
|
+
get startTime() {
|
|
74
|
+
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
75
|
+
}
|
|
76
|
+
set startTime(e) {
|
|
77
|
+
this.manualStartTime = this.animation.startTime = e;
|
|
78
|
+
}
|
|
79
|
+
attachTimeline({ timeline: e, rangeStart: n, rangeEnd: r, observe: i }) {
|
|
80
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && s() ? (this.animation.timeline = e, n && (this.animation.rangeStart = n), r && (this.animation.rangeEnd = r), t) : i(this);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { u as NativeAnimation };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended-BKiHRnbh.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { clamp as e } from "../../../../motion-utils/dist/es/clamp-B15uFKIC.js";
|
|
2
|
+
import { time as t } from "../frameloop/sync-time-C_QyRCNd.js";
|
|
3
|
+
import { replaceTransitionType as n } from "./utils/replace-transition-type-BMiDtDGg.js";
|
|
4
|
+
import { JSAnimation as r } from "./JSAnimation-zfqrUSXR.js";
|
|
5
|
+
import { setStyle as i } from "../render/dom/style-set-rv8o9V7z.js";
|
|
6
|
+
import { NativeAnimation as a } from "./NativeAnimation-CfiXAYmD.js";
|
|
7
|
+
import { replaceStringEasing as o } from "./waapi/utils/unsupported-easing-CXVzjJ-M.js";
|
|
8
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
9
|
+
var s = 10, c = class extends a {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
o(e), n(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
12
|
+
}
|
|
13
|
+
updateMotionValue(n) {
|
|
14
|
+
let { motionValue: a, onUpdate: o, onComplete: c, element: l, ...u } = this.options;
|
|
15
|
+
if (!a) return;
|
|
16
|
+
if (n !== void 0) {
|
|
17
|
+
a.set(n);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
let d = new r({
|
|
21
|
+
...u,
|
|
22
|
+
autoplay: !1
|
|
23
|
+
}), f = Math.max(s, t.now() - this.startTime), p = e(0, s, f - s), m = d.sample(f).value, { name: h } = this.options;
|
|
24
|
+
l && h && i(l, h, m), a.setWithVelocity(d.sample(Math.max(0, f - p)).value, m, p), d.stop();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { c as NativeAnimationExtended };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/animate/single-value-66TFY3Ue.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { motionValue as e } from "../../value/index-Bwg0vVXH.js";
|
|
2
|
+
import { animateMotionValue as t } from "../interfaces/motion-value-Dpez8dQD.js";
|
|
3
|
+
import { isMotionValue as n } from "../../value/utils/is-motion-value-DjNWSbJA.js";
|
|
4
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
5
|
+
function r(r, i, a) {
|
|
6
|
+
let o = n(r) ? r : e(r);
|
|
7
|
+
return o.start(t("", o, i, a)), o.animation;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as animateSingleValue };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cancelFrame as e, frame as t, frameData as n } from "../../frameloop/frame-CKZTADU1.js";
|
|
2
|
+
import { time as r } from "../../frameloop/sync-time-C_QyRCNd.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
4
|
+
var i = (i) => {
|
|
5
|
+
let a = ({ timestamp: e }) => i(e);
|
|
6
|
+
return {
|
|
7
|
+
start: (e = !0) => t.update(a, e),
|
|
8
|
+
stop: () => e(a),
|
|
9
|
+
now: () => n.isProcessing ? n.timestamp : r.now()
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as frameloopDriver };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { spring as e } from "./spring-CEJsZ0ds.js";
|
|
2
|
+
import { getGeneratorVelocity as t } from "./utils/velocity-NngCxIQM.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
4
|
+
function n({ keyframes: n, velocity: r = 0, power: i = .8, timeConstant: a = 325, bounceDamping: o = 10, bounceStiffness: s = 500, modifyTarget: c, min: l, max: u, restDelta: d = .5, restSpeed: f }) {
|
|
5
|
+
let p = n[0], m = {
|
|
6
|
+
done: !1,
|
|
7
|
+
value: p
|
|
8
|
+
}, h = (e) => l !== void 0 && e < l || u !== void 0 && e > u, g = (e) => l === void 0 ? u : u === void 0 || Math.abs(l - e) < Math.abs(u - e) ? l : u, _ = i * r, v = p + _, y = c === void 0 ? v : c(v);
|
|
9
|
+
y !== v && (_ = y - p);
|
|
10
|
+
let b = (e) => -_ * Math.exp(-e / a), x = (e) => y + b(e), S = (e) => {
|
|
11
|
+
let t = b(e), n = x(e);
|
|
12
|
+
m.done = Math.abs(t) <= d, m.value = m.done ? y : n;
|
|
13
|
+
}, C, w, T = (n) => {
|
|
14
|
+
h(m.value) && (C = n, w = e({
|
|
15
|
+
keyframes: [m.value, g(m.value)],
|
|
16
|
+
velocity: t(x, n, m.value),
|
|
17
|
+
damping: o,
|
|
18
|
+
stiffness: s,
|
|
19
|
+
restDelta: d,
|
|
20
|
+
restSpeed: f
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
return T(0), {
|
|
24
|
+
calculatedDuration: null,
|
|
25
|
+
next: (e) => {
|
|
26
|
+
let t = !1;
|
|
27
|
+
return !w && C === void 0 && (t = !0, S(e), T(e)), C !== void 0 && e >= C ? w.next(e - C) : (!t && S(e), m);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { n as inertia };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/keyframes-B8KsYraP.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { easeInOut as e } from "../../../../../motion-utils/dist/es/easing/ease-aj5zpqzD.js";
|
|
2
|
+
import { isEasingArray as t } from "../../../../../motion-utils/dist/es/easing/utils/is-easing-array-5MLjLjPK.js";
|
|
3
|
+
import { easingDefinitionToFunction as n } from "../../../../../motion-utils/dist/es/easing/utils/map-ldz_Xg06.js";
|
|
4
|
+
import { interpolate as r } from "../../utils/interpolate-CzC1L8ZO.js";
|
|
5
|
+
import { defaultOffset as i } from "../keyframes/offsets/default-DW_NtU-K.js";
|
|
6
|
+
import { convertOffsetToTimes as a } from "../keyframes/offsets/time-BCh-zgvS.js";
|
|
7
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
8
|
+
function o(t, n) {
|
|
9
|
+
return t.map(() => n || e).splice(0, t.length - 1);
|
|
10
|
+
}
|
|
11
|
+
function s({ duration: e = 300, keyframes: s, times: c, ease: l = "easeInOut" }) {
|
|
12
|
+
let u = t(l) ? l.map(n) : n(l), d = {
|
|
13
|
+
done: !1,
|
|
14
|
+
value: s[0]
|
|
15
|
+
}, f = r(a(c && c.length === s.length ? c : i(s), e), s, { ease: Array.isArray(u) ? u : o(s, u) });
|
|
16
|
+
return {
|
|
17
|
+
calculatedDuration: e,
|
|
18
|
+
next: (t) => (d.value = f(t), d.done = t >= e, d)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { o as defaultEasing, s as keyframes };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { clamp as e } from "../../../../../motion-utils/dist/es/clamp-B15uFKIC.js";
|
|
2
|
+
import { warning as t } from "../../../../../motion-utils/dist/es/errors-zYMa5JTQ.js";
|
|
3
|
+
import { millisecondsToSeconds as n, secondsToMilliseconds as r } from "../../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
4
|
+
import { generateLinearEasing as i } from "../waapi/utils/linear-CfxAW4iV.js";
|
|
5
|
+
import { calcGeneratorDuration as a, maxGeneratorDuration as o } from "./utils/calc-duration-N3fRuYmx.js";
|
|
6
|
+
import { createGeneratorEasing as s } from "./utils/create-generator-easing-CNVBTdyB.js";
|
|
7
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
8
|
+
var c = {
|
|
9
|
+
stiffness: 100,
|
|
10
|
+
damping: 10,
|
|
11
|
+
mass: 1,
|
|
12
|
+
velocity: 0,
|
|
13
|
+
duration: 800,
|
|
14
|
+
bounce: .3,
|
|
15
|
+
visualDuration: .3,
|
|
16
|
+
restSpeed: {
|
|
17
|
+
granular: .01,
|
|
18
|
+
default: 2
|
|
19
|
+
},
|
|
20
|
+
restDelta: {
|
|
21
|
+
granular: .005,
|
|
22
|
+
default: .5
|
|
23
|
+
},
|
|
24
|
+
minDuration: .01,
|
|
25
|
+
maxDuration: 10,
|
|
26
|
+
minDamping: .05,
|
|
27
|
+
maxDamping: 1
|
|
28
|
+
};
|
|
29
|
+
function l(e, t) {
|
|
30
|
+
return e * Math.sqrt(1 - t * t);
|
|
31
|
+
}
|
|
32
|
+
var u = 12;
|
|
33
|
+
function d(e, t, n) {
|
|
34
|
+
let r = n;
|
|
35
|
+
for (let n = 1; n < u; n++) r -= e(r) / t(r);
|
|
36
|
+
return r;
|
|
37
|
+
}
|
|
38
|
+
var f = .001;
|
|
39
|
+
function p({ duration: i = c.duration, bounce: a = c.bounce, velocity: o = c.velocity, mass: s = c.mass }) {
|
|
40
|
+
let u, p;
|
|
41
|
+
t(i <= r(c.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
42
|
+
let m = 1 - a;
|
|
43
|
+
m = e(c.minDamping, c.maxDamping, m), i = e(c.minDuration, c.maxDuration, n(i)), m < 1 ? (u = (e) => {
|
|
44
|
+
let t = e * m, n = t * i, r = t - o, a = l(e, m), s = Math.exp(-n);
|
|
45
|
+
return f - r / a * s;
|
|
46
|
+
}, p = (e) => {
|
|
47
|
+
let t = e * m * i, n = t * o + o, r = m ** 2 * e ** 2 * i, a = Math.exp(-t), s = l(e ** 2, m);
|
|
48
|
+
return (-u(e) + f > 0 ? -1 : 1) * ((n - r) * a) / s;
|
|
49
|
+
}) : (u = (e) => -.001 + Math.exp(-e * i) * ((e - o) * i + 1), p = (e) => Math.exp(-e * i) * ((o - e) * (i * i)));
|
|
50
|
+
let h = 5 / i, g = d(u, p, h);
|
|
51
|
+
if (i = r(i), isNaN(g)) return {
|
|
52
|
+
stiffness: c.stiffness,
|
|
53
|
+
damping: c.damping,
|
|
54
|
+
duration: i
|
|
55
|
+
};
|
|
56
|
+
{
|
|
57
|
+
let e = g ** 2 * s;
|
|
58
|
+
return {
|
|
59
|
+
stiffness: e,
|
|
60
|
+
damping: m * 2 * Math.sqrt(s * e),
|
|
61
|
+
duration: i
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var m = ["duration", "bounce"], h = [
|
|
66
|
+
"stiffness",
|
|
67
|
+
"damping",
|
|
68
|
+
"mass"
|
|
69
|
+
];
|
|
70
|
+
function g(e, t) {
|
|
71
|
+
return t.some((t) => e[t] !== void 0);
|
|
72
|
+
}
|
|
73
|
+
function _(t) {
|
|
74
|
+
let n = {
|
|
75
|
+
velocity: c.velocity,
|
|
76
|
+
stiffness: c.stiffness,
|
|
77
|
+
damping: c.damping,
|
|
78
|
+
mass: c.mass,
|
|
79
|
+
isResolvedFromDuration: !1,
|
|
80
|
+
...t
|
|
81
|
+
};
|
|
82
|
+
if (!g(t, h) && g(t, m)) if (n.velocity = 0, t.visualDuration) {
|
|
83
|
+
let r = t.visualDuration, i = 2 * Math.PI / (r * 1.2), a = i * i, o = 2 * e(.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(a);
|
|
84
|
+
n = {
|
|
85
|
+
...n,
|
|
86
|
+
mass: c.mass,
|
|
87
|
+
stiffness: a,
|
|
88
|
+
damping: o
|
|
89
|
+
};
|
|
90
|
+
} else {
|
|
91
|
+
let e = p({
|
|
92
|
+
...t,
|
|
93
|
+
velocity: 0
|
|
94
|
+
});
|
|
95
|
+
n = {
|
|
96
|
+
...n,
|
|
97
|
+
...e,
|
|
98
|
+
mass: c.mass
|
|
99
|
+
}, n.isResolvedFromDuration = !0;
|
|
100
|
+
}
|
|
101
|
+
return n;
|
|
102
|
+
}
|
|
103
|
+
function v(e = c.visualDuration, t = c.bounce) {
|
|
104
|
+
let s = typeof e == "object" ? e : {
|
|
105
|
+
visualDuration: e,
|
|
106
|
+
keyframes: [0, 1],
|
|
107
|
+
bounce: t
|
|
108
|
+
}, { restSpeed: u, restDelta: d } = s, f = s.keyframes[0], p = s.keyframes[s.keyframes.length - 1], m = {
|
|
109
|
+
done: !1,
|
|
110
|
+
value: f
|
|
111
|
+
}, { stiffness: h, damping: g, mass: v, duration: y, velocity: b, isResolvedFromDuration: x } = _({
|
|
112
|
+
...s,
|
|
113
|
+
velocity: -n(s.velocity || 0)
|
|
114
|
+
}), S = b || 0, C = g / (2 * Math.sqrt(h * v)), w = p - f, T = n(Math.sqrt(h / v)), E = Math.abs(w) < 5;
|
|
115
|
+
u ||= E ? c.restSpeed.granular : c.restSpeed.default, d ||= E ? c.restDelta.granular : c.restDelta.default;
|
|
116
|
+
let D, O, k, A, j, M;
|
|
117
|
+
if (C < 1) k = l(T, C), A = (S + C * T * w) / k, D = (e) => {
|
|
118
|
+
let t = Math.exp(-C * T * e);
|
|
119
|
+
return p - t * (A * Math.sin(k * e) + w * Math.cos(k * e));
|
|
120
|
+
}, j = C * T * A + w * k, M = C * T * w - A * k, O = (e) => Math.exp(-C * T * e) * (j * Math.sin(k * e) + M * Math.cos(k * e));
|
|
121
|
+
else if (C === 1) {
|
|
122
|
+
D = (e) => p - Math.exp(-T * e) * (w + (S + T * w) * e);
|
|
123
|
+
let e = S + T * w;
|
|
124
|
+
O = (t) => Math.exp(-T * t) * (T * e * t - S);
|
|
125
|
+
} else {
|
|
126
|
+
let e = T * Math.sqrt(C * C - 1);
|
|
127
|
+
D = (t) => {
|
|
128
|
+
let n = Math.exp(-C * T * t), r = Math.min(e * t, 300);
|
|
129
|
+
return p - n * ((S + C * T * w) * Math.sinh(r) + e * w * Math.cosh(r)) / e;
|
|
130
|
+
};
|
|
131
|
+
let t = (S + C * T * w) / e, n = C * T * t - w * e, r = C * T * w - t * e;
|
|
132
|
+
O = (t) => {
|
|
133
|
+
let i = Math.exp(-C * T * t), a = Math.min(e * t, 300);
|
|
134
|
+
return i * (n * Math.sinh(a) + r * Math.cosh(a));
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
let N = {
|
|
138
|
+
calculatedDuration: x && y || null,
|
|
139
|
+
velocity: (e) => r(O(e)),
|
|
140
|
+
next: (e) => {
|
|
141
|
+
if (!x && C < 1) {
|
|
142
|
+
let t = Math.exp(-C * T * e), n = Math.sin(k * e), i = Math.cos(k * e), a = p - t * (A * n + w * i), o = r(t * (j * n + M * i));
|
|
143
|
+
return m.done = Math.abs(o) <= u && Math.abs(p - a) <= d, m.value = m.done ? p : a, m;
|
|
144
|
+
}
|
|
145
|
+
let t = D(e);
|
|
146
|
+
if (x) m.done = e >= y;
|
|
147
|
+
else {
|
|
148
|
+
let n = r(O(e));
|
|
149
|
+
m.done = Math.abs(n) <= u && Math.abs(p - t) <= d;
|
|
150
|
+
}
|
|
151
|
+
return m.value = m.done ? p : t, m;
|
|
152
|
+
},
|
|
153
|
+
toString: () => {
|
|
154
|
+
let e = Math.min(a(N), o), t = i((t) => N.next(e * t).value, e, 30);
|
|
155
|
+
return e + "ms " + t;
|
|
156
|
+
},
|
|
157
|
+
toTransition: () => {}
|
|
158
|
+
};
|
|
159
|
+
return N;
|
|
160
|
+
}
|
|
161
|
+
v.applyToOptions = (e) => {
|
|
162
|
+
let t = s(e, 100, v);
|
|
163
|
+
return e.ease = t.ease, e.duration = r(t.duration), e.type = "keyframes", e;
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
export { v as spring };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs
|
|
2
|
+
var e = 2e4;
|
|
3
|
+
function t(e) {
|
|
4
|
+
let t = 0, n = e.next(t);
|
|
5
|
+
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
6
|
+
return t >= 2e4 ? Infinity : t;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as calcGeneratorDuration, e as maxGeneratorDuration };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { millisecondsToSeconds as e } from "../../../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
2
|
+
import { calcGeneratorDuration as t, maxGeneratorDuration as n } from "./calc-duration-N3fRuYmx.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
4
|
+
function r(r, i = 100, a) {
|
|
5
|
+
let o = a({
|
|
6
|
+
...r,
|
|
7
|
+
keyframes: [0, i]
|
|
8
|
+
}), s = Math.min(t(o), n);
|
|
9
|
+
return {
|
|
10
|
+
type: "keyframes",
|
|
11
|
+
ease: (e) => o.next(s * e).value / i,
|
|
12
|
+
duration: e(s)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as createGeneratorEasing };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/generators/utils/velocity-NngCxIQM.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { velocityPerSecond as e } from "../../../../../../motion-utils/dist/es/velocity-per-second-Hq_yU5RD.js";
|
|
2
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
3
|
+
var t = 5;
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
let a = Math.max(r - t, 0);
|
|
6
|
+
return e(i - n(a), r - a);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as getGeneratorVelocity };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/motion-value-Dpez8dQD.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MotionGlobalConfig as e } from "../../../../../motion-utils/dist/es/global-config-BqV2nflf.js";
|
|
2
|
+
import { secondsToMilliseconds as t } from "../../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
3
|
+
import { frame as n } from "../../frameloop/frame-CKZTADU1.js";
|
|
4
|
+
import { getFinalKeyframe as r } from "../keyframes/get-final-BQVKjyPS.js";
|
|
5
|
+
import { JSAnimation as i } from "../JSAnimation-zfqrUSXR.js";
|
|
6
|
+
import { makeAnimationInstant as a } from "../utils/make-animation-instant-COWEl80Q.js";
|
|
7
|
+
import { AsyncMotionValueAnimation as o } from "../AsyncMotionValueAnimation-CaTU1DM6.js";
|
|
8
|
+
import { getValueTransition as s } from "../utils/get-value-transition-5a_kRob8.js";
|
|
9
|
+
import { getDefaultTransition as c } from "../utils/default-transitions-DVnwrMKg.js";
|
|
10
|
+
import { isTransitionDefined as l } from "../utils/is-transition-defined-C1rwuBUy.js";
|
|
11
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
12
|
+
var u = (u, d, f, p = {}, m, h) => (g) => {
|
|
13
|
+
let _ = s(p, u) || {}, v = _.delay || p.delay || 0, { elapsed: y = 0 } = p;
|
|
14
|
+
y -= t(v);
|
|
15
|
+
let b = {
|
|
16
|
+
keyframes: Array.isArray(f) ? f : [null, f],
|
|
17
|
+
ease: "easeOut",
|
|
18
|
+
velocity: d.getVelocity(),
|
|
19
|
+
..._,
|
|
20
|
+
delay: -y,
|
|
21
|
+
onUpdate: (e) => {
|
|
22
|
+
d.set(e), _.onUpdate && _.onUpdate(e);
|
|
23
|
+
},
|
|
24
|
+
onComplete: () => {
|
|
25
|
+
g(), _.onComplete && _.onComplete();
|
|
26
|
+
},
|
|
27
|
+
name: u,
|
|
28
|
+
motionValue: d,
|
|
29
|
+
element: h ? void 0 : m
|
|
30
|
+
};
|
|
31
|
+
l(_) || Object.assign(b, c(u, b)), b.duration &&= t(b.duration), b.repeatDelay &&= t(b.repeatDelay), b.from !== void 0 && (b.keyframes[0] = b.from);
|
|
32
|
+
let x = !1;
|
|
33
|
+
if ((b.type === !1 || b.duration === 0 && !b.repeatDelay) && (a(b), b.delay === 0 && (x = !0)), (e.instantAnimations || e.skipAnimations || m?.shouldSkipAnimations || _.skipAnimations) && (x = !0, a(b), b.delay = 0), b.allowFlatten = !_.type && !_.ease, x && !h && d.get() !== void 0) {
|
|
34
|
+
let e = r(b.keyframes, _);
|
|
35
|
+
if (e !== void 0) {
|
|
36
|
+
n.update(() => {
|
|
37
|
+
b.onUpdate(e), b.onComplete();
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return _.isSync ? new i(b) : new o(b);
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { u as animateMotionValue };
|
package/dist/chunks/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-DZ-rOn58.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { resolveVariant as e } from "../../render/utils/resolve-dynamic-variants-CctcYJsO.js";
|
|
2
|
+
import { animateTarget as t } from "./visual-element-target-C0xS2WGG.js";
|
|
3
|
+
import { animateVariant as n } from "./visual-element-variant-B35oZvml.js";
|
|
4
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
5
|
+
function r(r, i, a = {}) {
|
|
6
|
+
r.notify("AnimationStart", i);
|
|
7
|
+
let o;
|
|
8
|
+
if (Array.isArray(i)) {
|
|
9
|
+
let e = i.map((e) => n(r, e, a));
|
|
10
|
+
o = Promise.all(e);
|
|
11
|
+
} else if (typeof i == "string") o = n(r, i, a);
|
|
12
|
+
else {
|
|
13
|
+
let n = typeof i == "function" ? e(r, i, a.custom) : i;
|
|
14
|
+
o = Promise.all(t(r, n, a));
|
|
15
|
+
}
|
|
16
|
+
return o.then(() => {
|
|
17
|
+
r.notify("AnimationComplete", i);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as animateVisualElement };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { frame as e } from "../../frameloop/frame-CKZTADU1.js";
|
|
2
|
+
import { resolveTransition as t } from "../utils/resolve-transition-BTqjVzCB.js";
|
|
3
|
+
import { getValueTransition as n } from "../utils/get-value-transition-5a_kRob8.js";
|
|
4
|
+
import { animateMotionValue as r } from "./motion-value-Dpez8dQD.js";
|
|
5
|
+
import { positionalKeys as i } from "../../render/utils/keys-position-6KzA4Ufp.js";
|
|
6
|
+
import { setTarget as a } from "../../render/utils/setters-CAm56hbR.js";
|
|
7
|
+
import { addValueToWillChange as o } from "../../value/will-change/add-will-change-DBvewpY4.js";
|
|
8
|
+
import { getOptimisedAppearId as s } from "../optimized-appear/get-appear-id-B3ocRUEp.js";
|
|
9
|
+
//#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
10
|
+
function c({ protectedKeys: e, needsAnimating: t }, n) {
|
|
11
|
+
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
12
|
+
return t[n] = !1, r;
|
|
13
|
+
}
|
|
14
|
+
function l(l, u, { delay: d = 0, transitionOverride: f, type: p } = {}) {
|
|
15
|
+
let { transition: m, transitionEnd: h, ...g } = u, _ = l.getDefaultTransition();
|
|
16
|
+
m = m ? t(m, _) : _;
|
|
17
|
+
let v = m?.reduceMotion, y = m?.skipAnimations;
|
|
18
|
+
f && (m = f);
|
|
19
|
+
let b = [], x = p && l.animationState && l.animationState.getState()[p], S = m?.path;
|
|
20
|
+
S && S.animateVisualElement(l, g, m, d, b);
|
|
21
|
+
for (let t in g) {
|
|
22
|
+
let a = l.getValue(t, l.latestValues[t] ?? null), u = g[t];
|
|
23
|
+
if (u === void 0 || x && c(x, t)) continue;
|
|
24
|
+
let f = {
|
|
25
|
+
delay: d,
|
|
26
|
+
...n(m || {}, t)
|
|
27
|
+
};
|
|
28
|
+
y && (f.skipAnimations = !0);
|
|
29
|
+
let p = a.get();
|
|
30
|
+
if (p !== void 0 && !a.isAnimating() && !Array.isArray(u) && u === p && !f.velocity) {
|
|
31
|
+
e.update(() => a.set(u));
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
let h = !1;
|
|
35
|
+
if (window.MotionHandoffAnimation) {
|
|
36
|
+
let n = s(l);
|
|
37
|
+
if (n) {
|
|
38
|
+
let r = window.MotionHandoffAnimation(n, t, e);
|
|
39
|
+
r !== null && (f.startTime = r, h = !0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
o(l, t);
|
|
43
|
+
let _ = v ?? l.shouldReduceMotion;
|
|
44
|
+
a.start(r(t, a, u, _ && i.has(t) ? { type: !1 } : f, l, h));
|
|
45
|
+
let S = a.animation;
|
|
46
|
+
S && b.push(S);
|
|
47
|
+
}
|
|
48
|
+
if (h) {
|
|
49
|
+
let t = () => e.update(() => {
|
|
50
|
+
h && a(l, h);
|
|
51
|
+
});
|
|
52
|
+
b.length ? Promise.all(b).then(t) : t();
|
|
53
|
+
}
|
|
54
|
+
return b;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { l as animateTarget };
|