@loczer/storefront-sdk 0.217.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/Map/index.js +1 -1
- package/dist/index.d.ts +3 -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/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
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t, n) => () => {
|
|
3
|
+
if (n) throw n[0];
|
|
4
|
+
try {
|
|
5
|
+
return e && (t = e(e = 0)), t;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw n = [e], e;
|
|
8
|
+
}
|
|
9
|
+
}, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
|
|
3
10
|
let r = {};
|
|
4
11
|
for (var i in e) t(r, i, {
|
|
5
12
|
get: e[i],
|
|
6
13
|
enumerable: !0
|
|
7
14
|
});
|
|
8
15
|
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
},
|
|
16
|
+
}, l = (e, i, o, s) => {
|
|
10
17
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
18
|
get: ((e) => i[e]).bind(null, d),
|
|
12
19
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
20
|
});
|
|
14
21
|
return e;
|
|
15
|
-
},
|
|
22
|
+
}, u = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
23
|
value: n,
|
|
17
24
|
enumerable: !0
|
|
18
|
-
}) : a, n));
|
|
25
|
+
}) : a, n)), d = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e);
|
|
19
26
|
//#endregion
|
|
20
|
-
export {
|
|
27
|
+
export { s as __commonJSMin, o as __esmMin, c as __exportAll, d as __toCommonJS, u as __toESM };
|
package/dist/chunks/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm-6voMhWrN.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __esmMin as e, __exportAll as t } from "../../../../_virtual/_rolldown/runtime-B5ovbsoX.js";
|
|
2
|
+
import n, { init_emotion_memoize_esm as r } from "../../memoize/dist/emotion-memoize.esm-CbcNHeNh.js";
|
|
3
|
+
//#region ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
4
|
+
var i = /* @__PURE__ */ t({ default: () => o }), a, o, s = e((() => {
|
|
5
|
+
r(), a = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, o = /* #__PURE__ */ n(function(e) {
|
|
6
|
+
return a.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
7
|
+
});
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
s();
|
|
11
|
+
export { o as default, i as emotion_is_prop_valid_esm_exports, s as init_emotion_is_prop_valid_esm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __esmMin as e } from "../../../../_virtual/_rolldown/runtime-B5ovbsoX.js";
|
|
2
|
+
//#region ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
var t = Object.create(null);
|
|
5
|
+
return function(n) {
|
|
6
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
var n = e((() => {}));
|
|
10
|
+
//#endregion
|
|
11
|
+
n();
|
|
12
|
+
export { t as default, n as init_emotion_memoize_esm };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { isHTMLElement as e } from "../../../../../motion-dom/dist/es/utils/is-html-element-C0nwVk_b.js";
|
|
3
|
+
import { MotionConfigContext as t } from "../../context/MotionConfigContext-CoJIbMbt.js";
|
|
4
|
+
import { useComposedRefs as n } from "../../utils/use-composed-ref-EoyZU9bo.js";
|
|
5
|
+
import * as r from "react";
|
|
6
|
+
import { useContext as i, useId as a, useInsertionEffect as o, useRef as s } from "react";
|
|
7
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
8
|
+
//#region ../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
9
|
+
var l = class extends r.Component {
|
|
10
|
+
getSnapshotBeforeUpdate(t) {
|
|
11
|
+
let n = this.props.childRef.current;
|
|
12
|
+
if (e(n) && t.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
13
|
+
let t = n.offsetParent, r = e(t) && t.offsetWidth || 0, i = e(t) && t.offsetHeight || 0, a = getComputedStyle(n), o = this.props.sizeRef.current;
|
|
14
|
+
o.height = parseFloat(a.height), o.width = parseFloat(a.width), o.top = n.offsetTop, o.left = n.offsetLeft, o.right = r - o.width - o.left, o.bottom = i - o.height - o.top, o.direction = a.direction;
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
componentDidUpdate() {}
|
|
19
|
+
render() {
|
|
20
|
+
return this.props.children;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function u({ children: e, isPresent: u, anchorX: d, anchorY: f, root: p, pop: m }) {
|
|
24
|
+
let h = a(), g = s(null), _ = s({
|
|
25
|
+
width: 0,
|
|
26
|
+
height: 0,
|
|
27
|
+
top: 0,
|
|
28
|
+
left: 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
bottom: 0,
|
|
31
|
+
direction: "ltr"
|
|
32
|
+
}), { nonce: v } = i(t), y = n(g, e.props?.ref ?? e?.ref);
|
|
33
|
+
return o(() => {
|
|
34
|
+
let { width: e, height: t, top: n, left: r, right: i, bottom: a, direction: o } = _.current;
|
|
35
|
+
if (u || m === !1 || !g.current || !e || !t) return;
|
|
36
|
+
let s = o === "rtl", c = d === "left" ? s ? `right: ${i}` : `left: ${r}` : s ? `left: ${r}` : `right: ${i}`, l = f === "bottom" ? `bottom: ${a}` : `top: ${n}`;
|
|
37
|
+
g.current.dataset.motionPopId = h;
|
|
38
|
+
let y = document.createElement("style");
|
|
39
|
+
v && (y.nonce = v);
|
|
40
|
+
let b = p ?? document.head;
|
|
41
|
+
return b.appendChild(y), y.sheet && y.sheet.insertRule(`
|
|
42
|
+
[data-motion-pop-id="${h}"] {
|
|
43
|
+
position: absolute !important;
|
|
44
|
+
width: ${e}px !important;
|
|
45
|
+
height: ${t}px !important;
|
|
46
|
+
${c}px !important;
|
|
47
|
+
${l}px !important;
|
|
48
|
+
}
|
|
49
|
+
`), () => {
|
|
50
|
+
g.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
|
|
51
|
+
};
|
|
52
|
+
}, [u]), c(l, {
|
|
53
|
+
isPresent: u,
|
|
54
|
+
childRef: g,
|
|
55
|
+
sizeRef: _,
|
|
56
|
+
pop: m,
|
|
57
|
+
children: m === !1 ? e : r.cloneElement(e, { ref: y })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { u as PopChild };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useConstant as e } from "../../utils/use-constant-B5X65PZe.js";
|
|
3
|
+
import { useIsomorphicLayoutEffect as t } from "../../utils/use-isomorphic-effect-D1bPqOsw.js";
|
|
4
|
+
import { PresenceContext as n } from "../../context/PresenceContext-Cj2bJFe0.js";
|
|
5
|
+
import { PopChild as r } from "./PopChild-DVb6X_PO.js";
|
|
6
|
+
import * as i from "react";
|
|
7
|
+
import { useId as a, useMemo as o, useRef as s } from "react";
|
|
8
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
10
|
+
var l = ({ children: l, initial: d, isPresent: f, onExitComplete: p, custom: m, presenceAffectsLayout: h, mode: g, anchorX: _, anchorY: v, root: y }) => {
|
|
11
|
+
let b = e(u), x = a(), S = s(f), C = s(p);
|
|
12
|
+
t(() => {
|
|
13
|
+
S.current = f, C.current = p;
|
|
14
|
+
});
|
|
15
|
+
let w = !0, T = o(() => (w = !1, {
|
|
16
|
+
id: x,
|
|
17
|
+
initial: d,
|
|
18
|
+
isPresent: f,
|
|
19
|
+
custom: m,
|
|
20
|
+
onExitComplete: (e) => {
|
|
21
|
+
b.set(e, !0);
|
|
22
|
+
for (let e of b.values()) if (!e) return;
|
|
23
|
+
p && p();
|
|
24
|
+
},
|
|
25
|
+
register: (e) => (b.set(e, !1), () => {
|
|
26
|
+
b.delete(e), !S.current && !b.size && C.current?.();
|
|
27
|
+
})
|
|
28
|
+
}), [
|
|
29
|
+
f,
|
|
30
|
+
b,
|
|
31
|
+
p
|
|
32
|
+
]);
|
|
33
|
+
return h && w && (T = { ...T }), o(() => {
|
|
34
|
+
b.forEach((e, t) => b.set(t, !1));
|
|
35
|
+
}, [f]), i.useEffect(() => {
|
|
36
|
+
!f && !b.size && p && p();
|
|
37
|
+
}, [f]), l = c(r, {
|
|
38
|
+
pop: g === "popLayout",
|
|
39
|
+
isPresent: f,
|
|
40
|
+
anchorX: _,
|
|
41
|
+
anchorY: v,
|
|
42
|
+
root: y,
|
|
43
|
+
children: l
|
|
44
|
+
}), c(n.Provider, {
|
|
45
|
+
value: T,
|
|
46
|
+
children: l
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
function u() {
|
|
50
|
+
return /* @__PURE__ */ new Map();
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { l as PresenceChild };
|
package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/index-DmhaitYv.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LayoutGroupContext as e } from "../../context/LayoutGroupContext-CppToMHP.js";
|
|
3
|
+
import { useConstant as t } from "../../utils/use-constant-B5X65PZe.js";
|
|
4
|
+
import { useIsomorphicLayoutEffect as n } from "../../utils/use-isomorphic-effect-D1bPqOsw.js";
|
|
5
|
+
import { PresenceChild as r } from "./PresenceChild-DyihLa7p.js";
|
|
6
|
+
import { usePresence as i } from "./use-presence-Cig9mH3B.js";
|
|
7
|
+
import { getChildKey as a, onlyElements as o } from "./utils-MuK80fQc.js";
|
|
8
|
+
import { useContext as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
9
|
+
import { Fragment as d, jsx as f } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
11
|
+
var p = ({ children: p, custom: m, initial: h = !0, onExitComplete: g, presenceAffectsLayout: _ = !0, mode: v = "sync", propagate: y = !1, anchorX: b = "left", anchorY: x = "top", root: S }) => {
|
|
12
|
+
let [C, w] = i(y), T = c(() => o(p), [p]), E = y && !C ? [] : T.map(a), D = l(!0), O = l(T), k = t(() => /* @__PURE__ */ new Map()), A = l(/* @__PURE__ */ new Set()), [j, M] = u(T), [N, P] = u(T);
|
|
13
|
+
n(() => {
|
|
14
|
+
D.current = !1, O.current = T;
|
|
15
|
+
for (let e = 0; e < N.length; e++) {
|
|
16
|
+
let t = a(N[e]);
|
|
17
|
+
E.includes(t) ? (k.delete(t), A.current.delete(t)) : k.get(t) !== !0 && k.set(t, !1);
|
|
18
|
+
}
|
|
19
|
+
}, [
|
|
20
|
+
N,
|
|
21
|
+
E.length,
|
|
22
|
+
E.join("-")
|
|
23
|
+
]);
|
|
24
|
+
let F = [];
|
|
25
|
+
if (T !== j) {
|
|
26
|
+
let e = [...T];
|
|
27
|
+
for (let t = 0; t < N.length; t++) {
|
|
28
|
+
let n = N[t], r = a(n);
|
|
29
|
+
E.includes(r) || (e.splice(t, 0, n), F.push(n));
|
|
30
|
+
}
|
|
31
|
+
return v === "wait" && F.length && (e = F), P(o(e)), M(T), null;
|
|
32
|
+
}
|
|
33
|
+
process.env.NODE_ENV !== "production" && v === "wait" && N.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
|
|
34
|
+
let { forceRender: I } = s(e);
|
|
35
|
+
return f(d, { children: N.map((e) => {
|
|
36
|
+
let t = a(e), n = y && !C ? !1 : T === N || E.includes(t);
|
|
37
|
+
return f(r, {
|
|
38
|
+
isPresent: n,
|
|
39
|
+
initial: !D.current || h ? void 0 : !1,
|
|
40
|
+
custom: m,
|
|
41
|
+
presenceAffectsLayout: _,
|
|
42
|
+
mode: v,
|
|
43
|
+
root: S,
|
|
44
|
+
onExitComplete: n ? void 0 : () => {
|
|
45
|
+
if (A.current.has(t)) return;
|
|
46
|
+
if (k.has(t)) A.current.add(t), k.set(t, !0);
|
|
47
|
+
else return;
|
|
48
|
+
let e = !0;
|
|
49
|
+
k.forEach((t) => {
|
|
50
|
+
t || (e = !1);
|
|
51
|
+
}), e && (I?.(), P(O.current), y && w?.(), g && g());
|
|
52
|
+
},
|
|
53
|
+
anchorX: b,
|
|
54
|
+
anchorY: x,
|
|
55
|
+
children: e
|
|
56
|
+
}, t);
|
|
57
|
+
}) });
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as AnimatePresence };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { PresenceContext as e } from "../../context/PresenceContext-Cj2bJFe0.js";
|
|
3
|
+
import { useCallback as t, useContext as n, useEffect as r, useId as i } from "react";
|
|
4
|
+
//#region ../../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
5
|
+
function a(a = !0) {
|
|
6
|
+
let o = n(e);
|
|
7
|
+
if (o === null) return [!0, null];
|
|
8
|
+
let { isPresent: s, onExitComplete: c, register: l } = o, u = i();
|
|
9
|
+
r(() => {
|
|
10
|
+
if (a) return l(u);
|
|
11
|
+
}, [a]);
|
|
12
|
+
let d = t(() => a && c && c(u), [
|
|
13
|
+
u,
|
|
14
|
+
c,
|
|
15
|
+
a
|
|
16
|
+
]);
|
|
17
|
+
return !s && c ? [!1, d] : [!0];
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as usePresence };
|
package/dist/chunks/node_modules/framer-motion/dist/es/components/AnimatePresence/utils-MuK80fQc.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Children as e, isValidElement as t } from "react";
|
|
2
|
+
//#region ../../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
|
|
3
|
+
var n = (e) => e.key || "";
|
|
4
|
+
function r(n) {
|
|
5
|
+
let r = [];
|
|
6
|
+
return e.forEach(n, (e) => {
|
|
7
|
+
t(e) && r.push(e);
|
|
8
|
+
}), r;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as getChildKey, r as onlyElements };
|
package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionConfigContext-CoJIbMbt.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e } from "react";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
4
|
+
var t = e({
|
|
5
|
+
transformPagePoint: (e) => e,
|
|
6
|
+
isStatic: !1,
|
|
7
|
+
reducedMotion: "never"
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as MotionConfigContext };
|
package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/create-Bn_I3YGX.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { MotionContext as e } from "./index-B9obK4sO.js";
|
|
3
|
+
import { getCurrentTreeVariants as t } from "./utils-ByjX9df_.js";
|
|
4
|
+
import { useContext as n, useMemo as r } from "react";
|
|
5
|
+
//#region ../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
6
|
+
function i(i) {
|
|
7
|
+
let { initial: o, animate: s } = t(i, n(e));
|
|
8
|
+
return r(() => ({
|
|
9
|
+
initial: o,
|
|
10
|
+
animate: s
|
|
11
|
+
}), [a(o), a(s)]);
|
|
12
|
+
}
|
|
13
|
+
function a(e) {
|
|
14
|
+
return Array.isArray(e) ? e.join(" ") : e;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as useCreateMotionContext };
|
package/dist/chunks/node_modules/framer-motion/dist/es/context/MotionContext/utils-ByjX9df_.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isVariantLabel as e } from "../../../../../motion-dom/dist/es/render/utils/is-variant-label-CVoIfHaT.js";
|
|
2
|
+
import { isControllingVariants as t } from "../../../../../motion-dom/dist/es/render/utils/is-controlling-variants-BTh61RuJ.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
if (t(n)) {
|
|
6
|
+
let { initial: t, animate: r } = n;
|
|
7
|
+
return {
|
|
8
|
+
initial: t === !1 || e(t) ? t : void 0,
|
|
9
|
+
animate: e(r) ? r : void 0
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
return n.inherit === !1 ? {} : r;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as getCurrentTreeVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { addDomEvent as e } from "../../../../motion-dom/dist/es/events/add-dom-event-CWEtxeZQ.js";
|
|
2
|
+
import { addPointerInfo as t } from "./event-info-CIMY2v27.js";
|
|
3
|
+
//#region ../../node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
|
|
4
|
+
function n(n, r, i, a) {
|
|
5
|
+
return e(n, r, t(i), a);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as addPointerEvent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isPrimaryPointer as e } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer-CiELcwyf.js";
|
|
2
|
+
//#region ../../node_modules/framer-motion/dist/es/events/event-info.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
return { point: {
|
|
5
|
+
x: e.pageX,
|
|
6
|
+
y: e.pageY
|
|
7
|
+
} };
|
|
8
|
+
}
|
|
9
|
+
var n = (n) => (r) => e(r) && n(r, t(r));
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as addPointerInfo, t as extractEventInfo };
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { invariant as e } from "../../../../../motion-utils/dist/es/errors-zYMa5JTQ.js";
|
|
2
|
+
import { frame as t } from "../../../../../motion-dom/dist/es/frameloop/frame-CKZTADU1.js";
|
|
3
|
+
import { percent as n } from "../../../../../motion-dom/dist/es/value/types/numbers/units-Cl3LhAl3.js";
|
|
4
|
+
import { mixNumber as r } from "../../../../../motion-dom/dist/es/utils/mix/number-BQSwMPU1.js";
|
|
5
|
+
import { animateMotionValue as i } from "../../../../../motion-dom/dist/es/animation/interfaces/motion-value-Dpez8dQD.js";
|
|
6
|
+
import { addValueToWillChange as a } from "../../../../../motion-dom/dist/es/value/will-change/add-will-change-DBvewpY4.js";
|
|
7
|
+
import { setDragLock as o } from "../../../../../motion-dom/dist/es/gestures/drag/state/set-active-CDl0txXn.js";
|
|
8
|
+
import { isElementTextInput as s } from "../../../../../motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible-DVnEOolg.js";
|
|
9
|
+
import { resize as c } from "../../../../../motion-dom/dist/es/resize/index-BxIqM2kA.js";
|
|
10
|
+
import { createBox as l } from "../../../../../motion-dom/dist/es/projection/geometry/models-d7gxmOp4.js";
|
|
11
|
+
import { convertBoundingBoxToBox as u, convertBoxToBoundingBox as d } from "../../../../../motion-dom/dist/es/projection/geometry/conversion-C53fTUL0.js";
|
|
12
|
+
import { measurePageBox as f } from "../../../../../motion-dom/dist/es/projection/utils/measure-9EHDTj-Q.js";
|
|
13
|
+
import { calcLength as p } from "../../../../../motion-dom/dist/es/projection/geometry/delta-calc-CnWZkKos.js";
|
|
14
|
+
import { eachAxis as m } from "../../../../../motion-dom/dist/es/projection/utils/each-axis-Bvmvr7Z2.js";
|
|
15
|
+
import { addDomEvent as h } from "../../../../../motion-dom/dist/es/events/add-dom-event-CWEtxeZQ.js";
|
|
16
|
+
import { isRefObject as g } from "../../utils/is-ref-object-DfJ8Lr_g.js";
|
|
17
|
+
import { extractEventInfo as _ } from "../../events/event-info-CIMY2v27.js";
|
|
18
|
+
import { addPointerEvent as v } from "../../events/add-pointer-event-CHKBre-7.js";
|
|
19
|
+
import { getContextWindow as y } from "../../utils/get-context-window-pYdCDRbN.js";
|
|
20
|
+
import { PanSession as b } from "../pan/PanSession-DQk2Dv3G.js";
|
|
21
|
+
import { applyConstraints as x, calcOrigin as S, calcRelativeConstraints as C, calcViewportConstraints as w, defaultElastic as T, rebaseAxisConstraints as E, resolveDragElastic as D } from "./utils/constraints-uATfUwby.js";
|
|
22
|
+
//#region ../../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
|
23
|
+
var O = /* @__PURE__ */ new WeakMap(), k = class {
|
|
24
|
+
constructor(e) {
|
|
25
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
26
|
+
x: 0,
|
|
27
|
+
y: 0
|
|
28
|
+
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = l(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
29
|
+
}
|
|
30
|
+
start(e, { snapToCursor: r = !1, distanceThreshold: i } = {}) {
|
|
31
|
+
let { presenceContext: s } = this.visualElement;
|
|
32
|
+
if (s && s.isPresent === !1) return;
|
|
33
|
+
let c = (e) => {
|
|
34
|
+
r && this.snapToCursor(_(e).point), this.stopAnimation();
|
|
35
|
+
}, l = (e, r) => {
|
|
36
|
+
let { drag: i, dragPropagation: s, onDragStart: c } = this.getProps();
|
|
37
|
+
if (i && !s && (this.openDragLock && this.openDragLock(), this.openDragLock = o(i), !this.openDragLock)) return;
|
|
38
|
+
this.latestPointerEvent = e, this.latestPanInfo = r, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), m((e) => {
|
|
39
|
+
let t = this.getAxisMotionValue(e).get() || 0;
|
|
40
|
+
if (n.test(t)) {
|
|
41
|
+
let { projection: n } = this.visualElement;
|
|
42
|
+
if (n && n.layout) {
|
|
43
|
+
let r = n.layout.layoutBox[e];
|
|
44
|
+
r && (t = p(r) * (parseFloat(t) / 100));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
this.originPoint[e] = t;
|
|
48
|
+
}), c && t.update(() => c(e, r), !1, !0), a(this.visualElement, "transform");
|
|
49
|
+
let { animationState: l } = this.visualElement;
|
|
50
|
+
l && l.setActive("whileDrag", !0);
|
|
51
|
+
}, u = (e, n) => {
|
|
52
|
+
this.latestPointerEvent = e, this.latestPanInfo = n;
|
|
53
|
+
let { dragPropagation: r, dragDirectionLock: i, onDirectionLock: a, onDrag: o } = this.getProps();
|
|
54
|
+
if (!r && !this.openDragLock) return;
|
|
55
|
+
let { offset: s } = n;
|
|
56
|
+
if (i && this.currentDirection === null) {
|
|
57
|
+
this.currentDirection = N(s), this.currentDirection !== null && a && a(this.currentDirection);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
this.updateAxis("x", n.point, s), this.updateAxis("y", n.point, s), this.visualElement.render(), o && t.update(() => o(e, n), !1, !0);
|
|
61
|
+
}, d = (e, t) => {
|
|
62
|
+
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
63
|
+
}, f = () => {
|
|
64
|
+
let { dragSnapToOrigin: e } = this.getProps();
|
|
65
|
+
(e || this.constraints) && this.startAnimation({
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0
|
|
68
|
+
});
|
|
69
|
+
}, { dragSnapToOrigin: h } = this.getProps();
|
|
70
|
+
this.panSession = new b(e, {
|
|
71
|
+
onSessionStart: c,
|
|
72
|
+
onStart: l,
|
|
73
|
+
onMove: u,
|
|
74
|
+
onSessionEnd: d,
|
|
75
|
+
resumeAnimation: f
|
|
76
|
+
}, {
|
|
77
|
+
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
78
|
+
dragSnapToOrigin: h,
|
|
79
|
+
distanceThreshold: i,
|
|
80
|
+
contextWindow: y(this.visualElement),
|
|
81
|
+
element: this.visualElement.current
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
stop(e, n) {
|
|
85
|
+
let r = e || this.latestPointerEvent, i = n || this.latestPanInfo, a = this.isDragging;
|
|
86
|
+
if (this.cancel(), !a || !i || !r) return;
|
|
87
|
+
let { velocity: o } = i;
|
|
88
|
+
this.startAnimation(o);
|
|
89
|
+
let { onDragEnd: s } = this.getProps();
|
|
90
|
+
s && t.postRender(() => s(r, i));
|
|
91
|
+
}
|
|
92
|
+
cancel() {
|
|
93
|
+
this.isDragging = !1;
|
|
94
|
+
let { projection: e, animationState: t } = this.visualElement;
|
|
95
|
+
e && (e.isAnimationBlocked = !1), this.endPanSession();
|
|
96
|
+
let { dragPropagation: n } = this.getProps();
|
|
97
|
+
!n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
|
|
98
|
+
}
|
|
99
|
+
endPanSession() {
|
|
100
|
+
this.panSession && this.panSession.end(), this.panSession = void 0;
|
|
101
|
+
}
|
|
102
|
+
updateAxis(e, t, n) {
|
|
103
|
+
let { drag: r } = this.getProps();
|
|
104
|
+
if (!n || !M(e, r, this.currentDirection)) return;
|
|
105
|
+
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
|
|
106
|
+
this.constraints && this.constraints[e] && (a = x(a, this.constraints[e], this.elastic[e])), i.set(a);
|
|
107
|
+
}
|
|
108
|
+
resolveConstraints() {
|
|
109
|
+
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
|
|
110
|
+
e && g(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = C(n.layoutBox, e) : this.constraints = !1, this.elastic = D(t), r !== this.constraints && !g(e) && n && this.constraints && !this.hasMutatedConstraints && m((e) => {
|
|
111
|
+
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = E(n.layoutBox[e], this.constraints[e]));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
resolveRefConstraints() {
|
|
115
|
+
let { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
|
|
116
|
+
if (!t || !g(t)) return !1;
|
|
117
|
+
let r = t.current;
|
|
118
|
+
e(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
119
|
+
let { projection: i } = this.visualElement;
|
|
120
|
+
if (!i || !i.layout) return !1;
|
|
121
|
+
i.root && (i.root.scroll = void 0, i.root.updateScroll());
|
|
122
|
+
let a = f(r, i.root, this.visualElement.getTransformPagePoint()), o = w(i.layout.layoutBox, a);
|
|
123
|
+
if (n) {
|
|
124
|
+
let e = n(d(o));
|
|
125
|
+
this.hasMutatedConstraints = !!e, e && (o = u(e));
|
|
126
|
+
}
|
|
127
|
+
return o;
|
|
128
|
+
}
|
|
129
|
+
startAnimation(e) {
|
|
130
|
+
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = m((o) => {
|
|
131
|
+
if (!M(o, t, this.currentDirection)) return;
|
|
132
|
+
let c = s && s[o] || {};
|
|
133
|
+
(a === !0 || a === o) && (c = {
|
|
134
|
+
min: 0,
|
|
135
|
+
max: 0
|
|
136
|
+
});
|
|
137
|
+
let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
|
|
138
|
+
type: "inertia",
|
|
139
|
+
velocity: n ? e[o] : 0,
|
|
140
|
+
bounceStiffness: l,
|
|
141
|
+
bounceDamping: u,
|
|
142
|
+
timeConstant: 750,
|
|
143
|
+
restDelta: 1,
|
|
144
|
+
restSpeed: 10,
|
|
145
|
+
...i,
|
|
146
|
+
...c
|
|
147
|
+
};
|
|
148
|
+
return this.startAxisValueAnimation(o, d);
|
|
149
|
+
});
|
|
150
|
+
return Promise.all(c).then(o);
|
|
151
|
+
}
|
|
152
|
+
startAxisValueAnimation(e, t) {
|
|
153
|
+
let n = this.getAxisMotionValue(e);
|
|
154
|
+
return a(this.visualElement, e), n.start(i(e, n, 0, t, this.visualElement, !1));
|
|
155
|
+
}
|
|
156
|
+
stopAnimation() {
|
|
157
|
+
m((e) => this.getAxisMotionValue(e).stop());
|
|
158
|
+
}
|
|
159
|
+
getAxisMotionValue(e) {
|
|
160
|
+
let t = `_drag${e.toUpperCase()}`;
|
|
161
|
+
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
|
|
162
|
+
}
|
|
163
|
+
snapToCursor(e) {
|
|
164
|
+
m((t) => {
|
|
165
|
+
let { drag: n } = this.getProps();
|
|
166
|
+
if (!M(t, n, this.currentDirection)) return;
|
|
167
|
+
let { projection: i } = this.visualElement, a = this.getAxisMotionValue(t);
|
|
168
|
+
if (i && i.layout) {
|
|
169
|
+
let { min: n, max: o } = i.layout.layoutBox[t], s = a.get() || 0;
|
|
170
|
+
a.set(e[t] - r(n, o, .5) + s);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
scalePositionWithinConstraints() {
|
|
175
|
+
if (!this.visualElement.current) return;
|
|
176
|
+
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
|
|
177
|
+
if (!g(t) || !n || !this.constraints) return;
|
|
178
|
+
this.stopAnimation();
|
|
179
|
+
let i = {
|
|
180
|
+
x: 0,
|
|
181
|
+
y: 0
|
|
182
|
+
};
|
|
183
|
+
m((e) => {
|
|
184
|
+
let t = this.getAxisMotionValue(e);
|
|
185
|
+
if (t && this.constraints !== !1) {
|
|
186
|
+
let n = t.get();
|
|
187
|
+
i[e] = S({
|
|
188
|
+
min: n,
|
|
189
|
+
max: n
|
|
190
|
+
}, this.constraints[e]);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
let { transformTemplate: a } = this.visualElement.getProps();
|
|
194
|
+
this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), m((t) => {
|
|
195
|
+
if (!M(t, e, null)) return;
|
|
196
|
+
let n = this.getAxisMotionValue(t), { min: a, max: o } = this.constraints[t];
|
|
197
|
+
n.set(r(a, o, i[t]));
|
|
198
|
+
}), this.visualElement.render();
|
|
199
|
+
}
|
|
200
|
+
addListeners() {
|
|
201
|
+
if (!this.visualElement.current) return;
|
|
202
|
+
O.set(this.visualElement, this);
|
|
203
|
+
let e = this.visualElement.current, n = v(e, "pointerdown", (t) => {
|
|
204
|
+
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && s(i);
|
|
205
|
+
n && r && !a && this.start(t);
|
|
206
|
+
}), r, i = () => {
|
|
207
|
+
let { dragConstraints: t } = this.getProps();
|
|
208
|
+
g(t) && t.current && (this.constraints = this.resolveRefConstraints(), r ||= j(e, t.current, () => this.scalePositionWithinConstraints()));
|
|
209
|
+
}, { projection: a } = this.visualElement, o = a.addEventListener("measure", i);
|
|
210
|
+
a && !a.layout && (a.root && a.root.updateScroll(), a.updateLayout()), t.read(i);
|
|
211
|
+
let c = h(window, "resize", () => this.scalePositionWithinConstraints()), l = a.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
|
|
212
|
+
this.isDragging && t && (m((t) => {
|
|
213
|
+
let n = this.getAxisMotionValue(t);
|
|
214
|
+
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
|
|
215
|
+
}), this.visualElement.render());
|
|
216
|
+
}));
|
|
217
|
+
return () => {
|
|
218
|
+
c(), n(), o(), l && l(), r && r();
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
getProps() {
|
|
222
|
+
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = T, dragMomentum: o = !0 } = e;
|
|
223
|
+
return {
|
|
224
|
+
...e,
|
|
225
|
+
drag: t,
|
|
226
|
+
dragDirectionLock: n,
|
|
227
|
+
dragPropagation: r,
|
|
228
|
+
dragConstraints: i,
|
|
229
|
+
dragElastic: a,
|
|
230
|
+
dragMomentum: o
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
function A(e) {
|
|
235
|
+
let t = !0;
|
|
236
|
+
return () => {
|
|
237
|
+
if (t) {
|
|
238
|
+
t = !1;
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
e();
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function j(e, t, n) {
|
|
245
|
+
let r = c(e, A(n)), i = c(t, A(n));
|
|
246
|
+
return () => {
|
|
247
|
+
r(), i();
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
function M(e, t, n) {
|
|
251
|
+
return (t === !0 || t === e) && (n === null || n === e);
|
|
252
|
+
}
|
|
253
|
+
function N(e, t = 10) {
|
|
254
|
+
let n = null;
|
|
255
|
+
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
256
|
+
}
|
|
257
|
+
//#endregion
|
|
258
|
+
export { k as VisualElementDragControls, O as elementDragControls };
|