@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.
- 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/BookingFlowPageLayout/index.d.ts +13 -0
- package/dist/components/BookingFlowPageLayout/index.d.ts.map +1 -0
- package/dist/components/BookingFlowPageLayout/index.js +35 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +11 -34
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +2 -5
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
- package/dist/components/BookingPeriodSelector/index.d.ts +1 -1
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +0 -5
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +150 -159
- package/dist/components/Footer/BusinessHours.d.ts +2 -1
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -1
- package/dist/components/Footer/BusinessHours.js +19 -18
- package/dist/components/Footer/businessHoursStatus.d.ts +25 -0
- package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursStatus.js +99 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +2 -1
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
- package/dist/components/Footer/businessHoursUtils.js +52 -45
- package/dist/components/Footer/index.d.ts +2 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +26 -25
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +2 -1
- package/dist/components/Map/index.js +1 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +89 -86
- package/dist/components/StorefrontCartPanel/index.js +4 -4
- package/dist/components/StorefrontInsuranceNotice/index.d.ts +2 -1
- package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontInsuranceNotice/index.js +155 -162
- package/dist/i18n/en.d.ts +7 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +8 -2
- package/dist/i18n/fr.d.ts +7 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +8 -2
- package/dist/index.d.ts +27 -9
- 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/lib/pricing.d.ts.map +1 -1
- package/dist/lib/pricing.js +3 -1
- package/dist/lib/products.d.ts +6 -0
- package/dist/lib/products.d.ts.map +1 -1
- package/dist/lib/products.js +36 -32
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +306 -335
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +154 -168
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +435 -378
- 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,22 @@
|
|
|
1
|
+
import { noop as e } from "../../../../../motion-utils/dist/es/noop-DF4YCrc8.js";
|
|
2
|
+
import { Feature as t } from "../../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
3
|
+
import { VisualElementDragControls as n } from "./VisualElementDragControls-BP560JFy.js";
|
|
4
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs
|
|
5
|
+
var r = class extends t {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
super(t), this.removeGroupControls = e, this.removeListeners = e, this.controls = new n(t);
|
|
8
|
+
}
|
|
9
|
+
mount() {
|
|
10
|
+
let { dragControls: t } = this.node.getProps();
|
|
11
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || e;
|
|
12
|
+
}
|
|
13
|
+
update() {
|
|
14
|
+
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
15
|
+
e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
|
|
16
|
+
}
|
|
17
|
+
unmount() {
|
|
18
|
+
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as DragGesture };
|
package/dist/chunks/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints-uATfUwby.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { clamp as e } from "../../../../../../motion-utils/dist/es/clamp-B15uFKIC.js";
|
|
2
|
+
import { progress as t } from "../../../../../../motion-utils/dist/es/progress-B3YfSCwx.js";
|
|
3
|
+
import { mixNumber as n } from "../../../../../../motion-dom/dist/es/utils/mix/number-BQSwMPU1.js";
|
|
4
|
+
import { calcLength as r } from "../../../../../../motion-dom/dist/es/projection/geometry/delta-calc-CnWZkKos.js";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
|
|
6
|
+
function i(e, { min: t, max: r }, i) {
|
|
7
|
+
return t !== void 0 && e < t ? e = i ? n(t, e, i.min) : Math.max(e, t) : r !== void 0 && e > r && (e = i ? n(r, e, i.max) : Math.min(e, r)), e;
|
|
8
|
+
}
|
|
9
|
+
function a(e, t, n) {
|
|
10
|
+
return {
|
|
11
|
+
min: t === void 0 ? void 0 : e.min + t,
|
|
12
|
+
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function o(e, { top: t, left: n, bottom: r, right: i }) {
|
|
16
|
+
return {
|
|
17
|
+
x: a(e.x, n, i),
|
|
18
|
+
y: a(e.y, t, r)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function s(e, t) {
|
|
22
|
+
let n = t.min - e.min, r = t.max - e.max;
|
|
23
|
+
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
|
|
24
|
+
min: n,
|
|
25
|
+
max: r
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function c(e, t) {
|
|
29
|
+
return {
|
|
30
|
+
x: s(e.x, t.x),
|
|
31
|
+
y: s(e.y, t.y)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function l(n, i) {
|
|
35
|
+
let a = .5, o = r(n), s = r(i);
|
|
36
|
+
return s > o ? a = t(i.min, i.max - o, n.min) : o > s && (a = t(n.min, n.max - s, i.min)), e(0, 1, a);
|
|
37
|
+
}
|
|
38
|
+
function u(e, t) {
|
|
39
|
+
let n = {};
|
|
40
|
+
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
41
|
+
}
|
|
42
|
+
var d = .35;
|
|
43
|
+
function f(e = d) {
|
|
44
|
+
return e === !1 ? e = 0 : e === !0 && (e = d), {
|
|
45
|
+
x: p(e, "left", "right"),
|
|
46
|
+
y: p(e, "top", "bottom")
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function p(e, t, n) {
|
|
50
|
+
return {
|
|
51
|
+
min: m(e, t),
|
|
52
|
+
max: m(e, n)
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function m(e, t) {
|
|
56
|
+
return typeof e == "number" ? e : e[t] || 0;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { i as applyConstraints, l as calcOrigin, a as calcRelativeAxisConstraints, o as calcRelativeConstraints, s as calcViewportAxisConstraints, c as calcViewportConstraints, d as defaultElastic, u as rebaseAxisConstraints, p as resolveAxisElastic, f as resolveDragElastic, m as resolvePointElastic };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { pipe as e } from "../../../../motion-utils/dist/es/pipe-BweOLNhL.js";
|
|
2
|
+
import { Feature as t } from "../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
3
|
+
import { addDomEvent as n } from "../../../../motion-dom/dist/es/events/add-dom-event-CWEtxeZQ.js";
|
|
4
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/focus.mjs
|
|
5
|
+
var r = class extends t {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments), this.isActive = !1;
|
|
8
|
+
}
|
|
9
|
+
onFocus() {
|
|
10
|
+
let e = !1;
|
|
11
|
+
try {
|
|
12
|
+
e = this.node.current.matches(":focus-visible");
|
|
13
|
+
} catch {
|
|
14
|
+
e = !0;
|
|
15
|
+
}
|
|
16
|
+
!e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
17
|
+
}
|
|
18
|
+
onBlur() {
|
|
19
|
+
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
20
|
+
}
|
|
21
|
+
mount() {
|
|
22
|
+
this.unmount = e(n(this.node.current, "focus", () => this.onFocus()), n(this.node.current, "blur", () => this.onBlur()));
|
|
23
|
+
}
|
|
24
|
+
unmount() {}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as FocusGesture };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { frame as e } from "../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
2
|
+
import { hover as t } from "../../../../motion-dom/dist/es/gestures/hover-rZyMySKA.js";
|
|
3
|
+
import { Feature as n } from "../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
4
|
+
import { extractEventInfo as r } from "../events/event-info-CIMY2v27.js";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/hover.mjs
|
|
6
|
+
function i(t, n, i) {
|
|
7
|
+
let { props: a } = t;
|
|
8
|
+
t.animationState && a.whileHover && t.animationState.setActive("whileHover", i === "Start");
|
|
9
|
+
let o = a["onHover" + i];
|
|
10
|
+
o && e.postRender(() => o(n, r(n)));
|
|
11
|
+
}
|
|
12
|
+
var a = class extends n {
|
|
13
|
+
mount() {
|
|
14
|
+
let { current: e } = this.node;
|
|
15
|
+
e && (this.unmount = t(e, (e, t) => (i(this.node, t, "Start"), (e) => i(this.node, e, "End"))));
|
|
16
|
+
}
|
|
17
|
+
unmount() {}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as HoverGesture };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { pipe as e } from "../../../../../motion-utils/dist/es/pipe-BweOLNhL.js";
|
|
2
|
+
import { millisecondsToSeconds as t, secondsToMilliseconds as n } from "../../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
3
|
+
import { cancelFrame as r, frame as i, frameData as a } from "../../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
4
|
+
import { isPrimaryPointer as o } from "../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer-CiELcwyf.js";
|
|
5
|
+
import { extractEventInfo as s } from "../../events/event-info-CIMY2v27.js";
|
|
6
|
+
import { addPointerEvent as c } from "../../events/add-pointer-event-CHKBre-7.js";
|
|
7
|
+
import { distance2D as l } from "../../utils/distance-DcZpIXTw.js";
|
|
8
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
|
|
9
|
+
var u = /*#__PURE__*/ new Set(["auto", "scroll"]), d = class {
|
|
10
|
+
constructor(t, n, { transformPagePoint: r, contextWindow: u = window, dragSnapToOrigin: d = !1, distanceThreshold: p = 3, element: h } = {}) {
|
|
11
|
+
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
|
|
12
|
+
this.handleScroll(e.target);
|
|
13
|
+
}, this.onWindowScroll = () => {
|
|
14
|
+
this.handleScroll(window);
|
|
15
|
+
}, this.updatePoint = () => {
|
|
16
|
+
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
17
|
+
this.lastRawMoveEventInfo && (this.lastMoveEventInfo = f(this.lastRawMoveEventInfo, this.transformPagePoint));
|
|
18
|
+
let e = m(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = l(e.offset, {
|
|
19
|
+
x: 0,
|
|
20
|
+
y: 0
|
|
21
|
+
}) >= this.distanceThreshold;
|
|
22
|
+
if (!t && !n) return;
|
|
23
|
+
let { point: r } = e, { timestamp: i } = a;
|
|
24
|
+
this.history.push({
|
|
25
|
+
...r,
|
|
26
|
+
timestamp: i
|
|
27
|
+
});
|
|
28
|
+
let { onStart: o, onMove: s } = this.handlers;
|
|
29
|
+
t || (o && o(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), s && s(this.lastMoveEvent, e);
|
|
30
|
+
}, this.handlePointerMove = (e, t) => {
|
|
31
|
+
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = f(t, this.transformPagePoint), i.update(this.updatePoint, !0);
|
|
32
|
+
}, this.handlePointerUp = (e, t) => {
|
|
33
|
+
this.end();
|
|
34
|
+
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
|
|
35
|
+
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
36
|
+
let a = m(e.type === "pointercancel" ? this.lastMoveEventInfo : f(t, this.transformPagePoint), this.history);
|
|
37
|
+
this.startEvent && n && n(e, a), r && r(e, a);
|
|
38
|
+
}, !o(t)) return;
|
|
39
|
+
this.dragSnapToOrigin = d, this.handlers = n, this.transformPagePoint = r, this.distanceThreshold = p, this.contextWindow = u || window;
|
|
40
|
+
let g = f(s(t), this.transformPagePoint), { point: _ } = g, { timestamp: v } = a;
|
|
41
|
+
this.history = [{
|
|
42
|
+
..._,
|
|
43
|
+
timestamp: v
|
|
44
|
+
}];
|
|
45
|
+
let { onSessionStart: y } = n;
|
|
46
|
+
y && y(t, m(g, this.history));
|
|
47
|
+
let b = {
|
|
48
|
+
passive: !0,
|
|
49
|
+
capture: !0
|
|
50
|
+
};
|
|
51
|
+
this.removeListeners = e(c(this.contextWindow, "pointermove", this.handlePointerMove, b), c(this.contextWindow, "pointerup", this.handlePointerUp, b), c(this.contextWindow, "pointercancel", this.handlePointerUp, b)), h && this.startScrollTracking(h);
|
|
52
|
+
}
|
|
53
|
+
startScrollTracking(e) {
|
|
54
|
+
let t = e.parentElement;
|
|
55
|
+
for (; t;) {
|
|
56
|
+
let e = getComputedStyle(t);
|
|
57
|
+
(u.has(e.overflowX) || u.has(e.overflowY)) && this.scrollPositions.set(t, {
|
|
58
|
+
x: t.scrollLeft,
|
|
59
|
+
y: t.scrollTop
|
|
60
|
+
}), t = t.parentElement;
|
|
61
|
+
}
|
|
62
|
+
this.scrollPositions.set(window, {
|
|
63
|
+
x: window.scrollX,
|
|
64
|
+
y: window.scrollY
|
|
65
|
+
}), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
|
|
66
|
+
window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
handleScroll(e) {
|
|
70
|
+
let t = this.scrollPositions.get(e);
|
|
71
|
+
if (!t) return;
|
|
72
|
+
let n = e === window, r = n ? {
|
|
73
|
+
x: window.scrollX,
|
|
74
|
+
y: window.scrollY
|
|
75
|
+
} : {
|
|
76
|
+
x: e.scrollLeft,
|
|
77
|
+
y: e.scrollTop
|
|
78
|
+
}, a = {
|
|
79
|
+
x: r.x - t.x,
|
|
80
|
+
y: r.y - t.y
|
|
81
|
+
};
|
|
82
|
+
a.x === 0 && a.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += a.x, this.lastMoveEventInfo.point.y += a.y) : this.history.length > 0 && (this.history[0].x -= a.x, this.history[0].y -= a.y), this.scrollPositions.set(e, r), i.update(this.updatePoint, !0));
|
|
83
|
+
}
|
|
84
|
+
updateHandlers(e) {
|
|
85
|
+
this.handlers = e;
|
|
86
|
+
}
|
|
87
|
+
end() {
|
|
88
|
+
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), r(this.updatePoint);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
function f(e, t) {
|
|
92
|
+
return t ? { point: t(e.point) } : e;
|
|
93
|
+
}
|
|
94
|
+
function p(e, t) {
|
|
95
|
+
return {
|
|
96
|
+
x: e.x - t.x,
|
|
97
|
+
y: e.y - t.y
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function m({ point: e }, t) {
|
|
101
|
+
return {
|
|
102
|
+
point: e,
|
|
103
|
+
delta: p(e, g(t)),
|
|
104
|
+
offset: p(e, h(t)),
|
|
105
|
+
velocity: _(t, .1)
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function h(e) {
|
|
109
|
+
return e[0];
|
|
110
|
+
}
|
|
111
|
+
function g(e) {
|
|
112
|
+
return e[e.length - 1];
|
|
113
|
+
}
|
|
114
|
+
function _(e, r) {
|
|
115
|
+
if (e.length < 2) return {
|
|
116
|
+
x: 0,
|
|
117
|
+
y: 0
|
|
118
|
+
};
|
|
119
|
+
let i = e.length - 1, a = null, o = g(e);
|
|
120
|
+
for (; i >= 0 && (a = e[i], !(o.timestamp - a.timestamp > n(r)));) i--;
|
|
121
|
+
if (!a) return {
|
|
122
|
+
x: 0,
|
|
123
|
+
y: 0
|
|
124
|
+
};
|
|
125
|
+
a === e[0] && e.length > 2 && o.timestamp - a.timestamp > n(r) * 2 && (a = e[1]);
|
|
126
|
+
let s = t(o.timestamp - a.timestamp);
|
|
127
|
+
if (s === 0) return {
|
|
128
|
+
x: 0,
|
|
129
|
+
y: 0
|
|
130
|
+
};
|
|
131
|
+
let c = {
|
|
132
|
+
x: (o.x - a.x) / s,
|
|
133
|
+
y: (o.y - a.y) / s
|
|
134
|
+
};
|
|
135
|
+
return c.x === Infinity && (c.x = 0), c.y === Infinity && (c.y = 0), c;
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
export { d as PanSession };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { noop as e } from "../../../../../motion-utils/dist/es/noop-DF4YCrc8.js";
|
|
2
|
+
import { frame as t } from "../../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
3
|
+
import { Feature as n } from "../../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
4
|
+
import { addPointerEvent as r } from "../../events/add-pointer-event-CHKBre-7.js";
|
|
5
|
+
import { getContextWindow as i } from "../../utils/get-context-window-pYdCDRbN.js";
|
|
6
|
+
import { PanSession as a } from "./PanSession-DQk2Dv3G.js";
|
|
7
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs
|
|
8
|
+
var o = (e) => (n, r) => {
|
|
9
|
+
e && t.update(() => e(n, r), !1, !0);
|
|
10
|
+
}, s = class extends n {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.removePointerDownListener = e;
|
|
13
|
+
}
|
|
14
|
+
onPointerDown(e) {
|
|
15
|
+
this.session = new a(e, this.createPanHandlers(), {
|
|
16
|
+
transformPagePoint: this.node.getTransformPagePoint(),
|
|
17
|
+
contextWindow: i(this.node)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
createPanHandlers() {
|
|
21
|
+
let { onPanSessionStart: e, onPanStart: n, onPan: r, onPanEnd: i } = this.node.getProps();
|
|
22
|
+
return {
|
|
23
|
+
onSessionStart: o(e),
|
|
24
|
+
onStart: o(n),
|
|
25
|
+
onMove: o(r),
|
|
26
|
+
onEnd: (e, n) => {
|
|
27
|
+
delete this.session, i && t.postRender(() => i(e, n));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
mount() {
|
|
32
|
+
this.removePointerDownListener = r(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
|
|
33
|
+
}
|
|
34
|
+
update() {
|
|
35
|
+
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
36
|
+
}
|
|
37
|
+
unmount() {
|
|
38
|
+
this.removePointerDownListener(), this.session && this.session.end();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { s as PanGesture };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { frame as e } from "../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
2
|
+
import { press as t } from "../../../../motion-dom/dist/es/gestures/press/index-CdNLBeeX.js";
|
|
3
|
+
import { Feature as n } from "../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
4
|
+
import { extractEventInfo as r } from "../events/event-info-CIMY2v27.js";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/press.mjs
|
|
6
|
+
function i(t, n, i) {
|
|
7
|
+
let { props: a } = t;
|
|
8
|
+
if (t.current instanceof HTMLButtonElement && t.current.disabled) return;
|
|
9
|
+
t.animationState && a.whileTap && t.animationState.setActive("whileTap", i === "Start");
|
|
10
|
+
let o = a["onTap" + (i === "End" ? "" : i)];
|
|
11
|
+
o && e.postRender(() => o(n, r(n)));
|
|
12
|
+
}
|
|
13
|
+
var a = class extends n {
|
|
14
|
+
mount() {
|
|
15
|
+
let { current: e } = this.node;
|
|
16
|
+
if (!e) return;
|
|
17
|
+
let { globalTapTarget: n, propagate: r } = this.node.props;
|
|
18
|
+
this.unmount = t(e, (e, t) => (i(this.node, t, "Start"), (e, { success: t }) => i(this.node, e, t ? "End" : "Cancel")), {
|
|
19
|
+
useGlobalTarget: n,
|
|
20
|
+
stopPropagation: r?.tap === !1
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
unmount() {}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { a as PressGesture };
|
package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/exit-C4vmhIuU.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { resolveVariant as e } from "../../../../../../motion-dom/dist/es/render/utils/resolve-dynamic-variants-CctcYJsO.js";
|
|
2
|
+
import { Feature as t } from "../../../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
|
|
4
|
+
var n = 0, r = class extends t {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments), this.id = n++, this.isExitComplete = !1;
|
|
7
|
+
}
|
|
8
|
+
update() {
|
|
9
|
+
if (!this.node.presenceContext) return;
|
|
10
|
+
let { isPresent: t, onExitComplete: n } = this.node.presenceContext, { isPresent: r } = this.node.prevPresenceContext || {};
|
|
11
|
+
if (!this.node.animationState || t === r) return;
|
|
12
|
+
if (t && r === !1) {
|
|
13
|
+
if (this.isExitComplete) {
|
|
14
|
+
let { initial: t, custom: n } = this.node.getProps();
|
|
15
|
+
if (typeof t == "string" || typeof t == "object" && t && !Array.isArray(t)) {
|
|
16
|
+
let r = e(this.node, t, n);
|
|
17
|
+
if (r) {
|
|
18
|
+
let { transition: e, transitionEnd: t, ...n } = r;
|
|
19
|
+
for (let e in n) this.node.getValue(e)?.jump(n[e]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
this.node.animationState.reset(), this.node.animationState.animateChanges();
|
|
23
|
+
} else this.node.animationState.setActive("exit", !1);
|
|
24
|
+
this.isExitComplete = !1;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let i = this.node.animationState.setActive("exit", !t);
|
|
28
|
+
n && !t && i.then(() => {
|
|
29
|
+
this.isExitComplete = !0, n(this.id);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
mount() {
|
|
33
|
+
let { register: e, onExitComplete: t } = this.node.presenceContext || {};
|
|
34
|
+
t && t(this.id), e && (this.unmount = e(this.id));
|
|
35
|
+
}
|
|
36
|
+
unmount() {}
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { r as ExitAnimationFeature };
|
package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/animation/index-BxVBcgYs.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isAnimationControls as e } from "../../../../../../motion-dom/dist/es/render/utils/is-animation-controls-B7ktiywN.js";
|
|
2
|
+
import { Feature as t } from "../../../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
3
|
+
import { createAnimationState as n } from "../../../../../../motion-dom/dist/es/render/utils/animation-state-DDMO-7FQ.js";
|
|
4
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
|
|
5
|
+
var r = class extends t {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super(e), e.animationState ||= n(e);
|
|
8
|
+
}
|
|
9
|
+
updateAnimationControlsSubscription() {
|
|
10
|
+
let { animate: t } = this.node.getProps();
|
|
11
|
+
e(t) && (this.unmountControls = t.subscribe(this.node));
|
|
12
|
+
}
|
|
13
|
+
mount() {
|
|
14
|
+
this.updateAnimationControlsSubscription();
|
|
15
|
+
}
|
|
16
|
+
update() {
|
|
17
|
+
let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
|
|
18
|
+
e !== t && this.updateAnimationControlsSubscription();
|
|
19
|
+
}
|
|
20
|
+
unmount() {
|
|
21
|
+
this.node.animationState.reset(), this.unmountControls?.();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as AnimationFeature };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnimationFeature as e } from "./animation/index-BxVBcgYs.js";
|
|
2
|
+
import { ExitAnimationFeature as t } from "./animation/exit-C4vmhIuU.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/animations.mjs
|
|
4
|
+
var n = {
|
|
5
|
+
animation: { Feature: e },
|
|
6
|
+
exit: { Feature: t }
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as animations };
|
package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/definitions-D5AEjfKY.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { getFeatureDefinitions as e, setFeatureDefinitions as t } from "../../../../../motion-dom/dist/es/render/VisualElement-Q2WcJv6t.js";
|
|
2
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/definitions.mjs
|
|
3
|
+
var n = {
|
|
4
|
+
animation: [
|
|
5
|
+
"animate",
|
|
6
|
+
"variants",
|
|
7
|
+
"whileHover",
|
|
8
|
+
"whileTap",
|
|
9
|
+
"exit",
|
|
10
|
+
"whileInView",
|
|
11
|
+
"whileFocus",
|
|
12
|
+
"whileDrag"
|
|
13
|
+
],
|
|
14
|
+
exit: ["exit"],
|
|
15
|
+
drag: ["drag", "dragControls"],
|
|
16
|
+
focus: ["whileFocus"],
|
|
17
|
+
hover: [
|
|
18
|
+
"whileHover",
|
|
19
|
+
"onHoverStart",
|
|
20
|
+
"onHoverEnd"
|
|
21
|
+
],
|
|
22
|
+
tap: [
|
|
23
|
+
"whileTap",
|
|
24
|
+
"onTap",
|
|
25
|
+
"onTapStart",
|
|
26
|
+
"onTapCancel"
|
|
27
|
+
],
|
|
28
|
+
pan: [
|
|
29
|
+
"onPan",
|
|
30
|
+
"onPanStart",
|
|
31
|
+
"onPanSessionStart",
|
|
32
|
+
"onPanEnd"
|
|
33
|
+
],
|
|
34
|
+
inView: [
|
|
35
|
+
"whileInView",
|
|
36
|
+
"onViewportEnter",
|
|
37
|
+
"onViewportLeave"
|
|
38
|
+
],
|
|
39
|
+
layout: ["layout", "layoutId"]
|
|
40
|
+
}, r = !1;
|
|
41
|
+
function i() {
|
|
42
|
+
if (r) return;
|
|
43
|
+
let e = {};
|
|
44
|
+
for (let t in n) e[t] = { isEnabled: (e) => n[t].some((t) => !!e[t]) };
|
|
45
|
+
t(e), r = !0;
|
|
46
|
+
}
|
|
47
|
+
function a() {
|
|
48
|
+
return i(), e();
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { a as getInitializedFeatureDefinitions, i as initFeatureDefinitions };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLProjectionNode as e } from "../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode-DPNJVDRP.js";
|
|
2
|
+
import { DragGesture as t } from "../../gestures/drag/index-DH25rbJs.js";
|
|
3
|
+
import { PanGesture as n } from "../../gestures/pan/index-CSmtHc88.js";
|
|
4
|
+
import { MeasureLayout as r } from "./layout/MeasureLayout-CiUIGE9r.js";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/drag.mjs
|
|
6
|
+
var i = {
|
|
7
|
+
pan: { Feature: n },
|
|
8
|
+
drag: {
|
|
9
|
+
Feature: t,
|
|
10
|
+
ProjectionNode: e,
|
|
11
|
+
MeasureLayout: r
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as drag };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HoverGesture as e } from "../../gestures/hover-BSuPivdx.js";
|
|
2
|
+
import { FocusGesture as t } from "../../gestures/focus-D5PGq15I.js";
|
|
3
|
+
import { PressGesture as n } from "../../gestures/press-jh5KkKLw.js";
|
|
4
|
+
import { InViewFeature as r } from "./viewport/index-CulwEMSa.js";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs
|
|
6
|
+
var i = {
|
|
7
|
+
inView: { Feature: r },
|
|
8
|
+
tap: { Feature: n },
|
|
9
|
+
focus: { Feature: t },
|
|
10
|
+
hover: { Feature: e }
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as gestureAnimations };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LayoutGroupContext as e } from "../../../context/LayoutGroupContext-CppToMHP.js";
|
|
3
|
+
import { frame as t } from "../../../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
4
|
+
import { microtask as n } from "../../../../../../motion-dom/dist/es/frameloop/microtask-C0-dBzym.js";
|
|
5
|
+
import { globalProjectionState as r } from "../../../../../../motion-dom/dist/es/projection/node/state-DB-DwaXn.js";
|
|
6
|
+
import { usePresence as i } from "../../../components/AnimatePresence/use-presence-Cig9mH3B.js";
|
|
7
|
+
import { SwitchLayoutGroupContext as a } from "../../../context/SwitchLayoutGroupContext-DhUxGAwV.js";
|
|
8
|
+
import { Component as o, useContext as s } from "react";
|
|
9
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
|
|
11
|
+
var l = !1, u = class extends o {
|
|
12
|
+
componentDidMount() {
|
|
13
|
+
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: i } = this.props, { projection: a } = e;
|
|
14
|
+
a && (t.group && t.group.add(a), n && n.register && i && n.register(a), l && a.root.didUpdate(), a.addEventListener("animationComplete", () => {
|
|
15
|
+
this.safeToRemove();
|
|
16
|
+
}), a.setOptions({
|
|
17
|
+
...a.options,
|
|
18
|
+
layoutDependency: this.props.layoutDependency,
|
|
19
|
+
onExitComplete: () => this.safeToRemove()
|
|
20
|
+
})), r.hasEverUpdated = !0;
|
|
21
|
+
}
|
|
22
|
+
getSnapshotBeforeUpdate(e) {
|
|
23
|
+
let { layoutDependency: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
|
|
24
|
+
return o ? (o.isPresent = a, e.layoutDependency !== n && o.setOptions({
|
|
25
|
+
...o.options,
|
|
26
|
+
layoutDependency: n
|
|
27
|
+
}), l = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || t.postRender(() => {
|
|
28
|
+
let e = o.getStack();
|
|
29
|
+
(!e || !e.members.length) && this.safeToRemove();
|
|
30
|
+
})), null) : null;
|
|
31
|
+
}
|
|
32
|
+
componentDidUpdate() {
|
|
33
|
+
let { visualElement: e, layoutAnchor: t } = this.props, { projection: r } = e;
|
|
34
|
+
r && (r.options.layoutAnchor = t, r.root.didUpdate(), n.postRender(() => {
|
|
35
|
+
!r.currentAnimation && r.isLead() && this.safeToRemove();
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
componentWillUnmount() {
|
|
39
|
+
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
|
|
40
|
+
l = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
|
|
41
|
+
}
|
|
42
|
+
safeToRemove() {
|
|
43
|
+
let { safeToRemove: e } = this.props;
|
|
44
|
+
e && e();
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function d(t) {
|
|
51
|
+
let [n, r] = i(), o = s(e);
|
|
52
|
+
return c(u, {
|
|
53
|
+
...t,
|
|
54
|
+
layoutGroup: o,
|
|
55
|
+
switchLayoutGroup: s(a),
|
|
56
|
+
isPresent: n,
|
|
57
|
+
safeToRemove: r
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { d as MeasureLayout };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLProjectionNode as e } from "../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode-DPNJVDRP.js";
|
|
2
|
+
import { MeasureLayout as t } from "./layout/MeasureLayout-CiUIGE9r.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/layout.mjs
|
|
4
|
+
var n = { layout: {
|
|
5
|
+
ProjectionNode: e,
|
|
6
|
+
MeasureLayout: t
|
|
7
|
+
} };
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as layout };
|
package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/load-features-BzH6YCRU.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { setFeatureDefinitions as e } from "../../../../../motion-dom/dist/es/render/VisualElement-Q2WcJv6t.js";
|
|
2
|
+
import { getInitializedFeatureDefinitions as t } from "./definitions-D5AEjfKY.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs
|
|
4
|
+
function n(n) {
|
|
5
|
+
let r = t();
|
|
6
|
+
for (let e in n) r[e] = {
|
|
7
|
+
...r[e],
|
|
8
|
+
...n[e]
|
|
9
|
+
};
|
|
10
|
+
e(r);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as loadFeatures };
|
package/dist/chunks/node_modules/framer-motion/dist/es/motion/features/viewport/index-CulwEMSa.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Feature as e } from "../../../../../../motion-dom/dist/es/render/Feature-BO-74BEK.js";
|
|
2
|
+
import { observeIntersection as t } from "./observers-x2xlB0Om.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
4
|
+
var n = {
|
|
5
|
+
some: 0,
|
|
6
|
+
all: 1
|
|
7
|
+
}, r = class extends e {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
10
|
+
}
|
|
11
|
+
startObserver() {
|
|
12
|
+
this.stopObserver?.();
|
|
13
|
+
let { viewport: e = {} } = this.node.getProps(), { root: r, margin: i, amount: a = "some", once: o } = e, s = {
|
|
14
|
+
root: r ? r.current : void 0,
|
|
15
|
+
rootMargin: i,
|
|
16
|
+
threshold: typeof a == "number" ? a : n[a]
|
|
17
|
+
}, c = (e) => {
|
|
18
|
+
let { isIntersecting: t } = e;
|
|
19
|
+
if (this.isInView === t || (this.isInView = t, o && !t && this.hasEnteredView)) return;
|
|
20
|
+
t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
|
|
21
|
+
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), i = t ? n : r;
|
|
22
|
+
i && i(e);
|
|
23
|
+
};
|
|
24
|
+
this.stopObserver = t(this.node.current, s, c);
|
|
25
|
+
}
|
|
26
|
+
mount() {
|
|
27
|
+
this.startObserver();
|
|
28
|
+
}
|
|
29
|
+
update() {
|
|
30
|
+
if (typeof IntersectionObserver > "u") return;
|
|
31
|
+
let { props: e, prevProps: t } = this.node;
|
|
32
|
+
[
|
|
33
|
+
"amount",
|
|
34
|
+
"margin",
|
|
35
|
+
"root"
|
|
36
|
+
].some(i(e, t)) && this.startObserver();
|
|
37
|
+
}
|
|
38
|
+
unmount() {
|
|
39
|
+
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
function i({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
43
|
+
return (n) => e[n] !== t[n];
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { r as InViewFeature };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region ../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs
|
|
2
|
+
var e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = (t) => {
|
|
3
|
+
let n = e.get(t.target);
|
|
4
|
+
n && n(t);
|
|
5
|
+
}, r = (e) => {
|
|
6
|
+
e.forEach(n);
|
|
7
|
+
};
|
|
8
|
+
function i({ root: e, ...n }) {
|
|
9
|
+
let i = e || document;
|
|
10
|
+
t.has(i) || t.set(i, {});
|
|
11
|
+
let a = t.get(i), o = JSON.stringify(n);
|
|
12
|
+
return a[o] || (a[o] = new IntersectionObserver(r, {
|
|
13
|
+
root: e,
|
|
14
|
+
...n
|
|
15
|
+
})), a[o];
|
|
16
|
+
}
|
|
17
|
+
function a(t, n, r) {
|
|
18
|
+
let a = i(n);
|
|
19
|
+
return e.set(t, r), a.observe(t), () => {
|
|
20
|
+
e.delete(t), a.unobserve(t);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as observeIntersection };
|