@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
package/dist/chunks/node_modules/motion-dom/dist/es/projection/styles/scale-correction-Dqs0DG_x.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cornerRadiusProps as e } from "../../utils/border-radius-BzX2eyPO.js";
|
|
2
|
+
import { correctBorderRadius as t } from "./scale-border-radius-o5vW8fHp.js";
|
|
3
|
+
import { correctBoxShadow as n } from "./scale-box-shadow-BhjA57xW.js";
|
|
4
|
+
//#region ../../node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
|
|
5
|
+
var r = {
|
|
6
|
+
borderRadius: {
|
|
7
|
+
...t,
|
|
8
|
+
applyTo: [...e]
|
|
9
|
+
},
|
|
10
|
+
borderTopLeftRadius: t,
|
|
11
|
+
borderTopRightRadius: t,
|
|
12
|
+
borderBottomLeftRadius: t,
|
|
13
|
+
borderBottomRightRadius: t,
|
|
14
|
+
boxShadow: n
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as scaleCorrectors };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/projection/styles/transform.mjs
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
|
|
4
|
+
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
5
|
+
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
|
|
6
|
+
e && (r = `perspective(${e}px) ${r}`), t && (r += `rotate(${t}deg) `), i && (r += `rotate(${i}deg) `), a && (r += `rotateX(${a}deg) `), o && (r += `rotateY(${o}deg) `), s && (r += `skewX(${s}deg) `), c && (r += `skewY(${c}deg) `);
|
|
7
|
+
}
|
|
8
|
+
let s = e.x.scale * t.x, c = e.y.scale * t.y;
|
|
9
|
+
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as buildProjectionTransform };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { addUniqueItem as e, removeItem as t } from "../../../../../motion-utils/dist/es/array-BBGK1j1b.js";
|
|
2
|
+
import { compareByDepth as n } from "./compare-by-depth-D4ki-lbA.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs
|
|
4
|
+
var r = class {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.children = [], this.isDirty = !1;
|
|
7
|
+
}
|
|
8
|
+
add(t) {
|
|
9
|
+
e(this.children, t), this.isDirty = !0;
|
|
10
|
+
}
|
|
11
|
+
remove(e) {
|
|
12
|
+
t(this.children, e), this.isDirty = !0;
|
|
13
|
+
}
|
|
14
|
+
forEach(e) {
|
|
15
|
+
this.isDirty && this.children.sort(n), this.isDirty = !1, this.children.forEach(e);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as FlatTree };
|
package/dist/chunks/node_modules/motion-dom/dist/es/projection/utils/has-transform-MC2xCktm.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e === void 0 || e === 1;
|
|
4
|
+
}
|
|
5
|
+
function t({ scale: t, scaleX: n, scaleY: r }) {
|
|
6
|
+
return !e(t) || !e(n) || !e(r);
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return t(e) || r(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
return i(e.x) || i(e.y);
|
|
13
|
+
}
|
|
14
|
+
function i(e) {
|
|
15
|
+
return e && e !== "0%";
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as has2DTranslate, t as hasScale, n as hasTransform };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { convertBoundingBoxToBox as e, transformBoxPoints as t } from "../geometry/conversion-C53fTUL0.js";
|
|
2
|
+
import { translateAxis as n } from "../geometry/delta-apply-D_7fQFIs.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
4
|
+
function r(n, r) {
|
|
5
|
+
return e(t(n.getBoundingClientRect(), r));
|
|
6
|
+
}
|
|
7
|
+
function i(e, t, i) {
|
|
8
|
+
let a = r(e, i), { scroll: o } = t;
|
|
9
|
+
return o && (n(a.x, o.offset.x), n(a.y, o.offset.y)), a;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as measurePageBox, r as measureViewportBox };
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { isNumericalString as e } from "../../../../motion-utils/dist/es/is-numerical-string-CiTQN66D.js";
|
|
2
|
+
import { isZeroValueString as t } from "../../../../motion-utils/dist/es/is-zero-value-string-Bss1UzBi.js";
|
|
3
|
+
import { SubscriptionManager as n } from "../../../../motion-utils/dist/es/subscription-manager-B1v5ik_R.js";
|
|
4
|
+
import { secondsToMilliseconds as r } from "../../../../motion-utils/dist/es/time-conversion-WGVLVIZI.js";
|
|
5
|
+
import { warnOnce as i } from "../../../../motion-utils/dist/es/warn-once-CNQIsdRh.js";
|
|
6
|
+
import { cancelFrame as a, frame as o } from "../frameloop/frame-CKZTADU1.js";
|
|
7
|
+
import { time as s } from "../frameloop/sync-time-C_QyRCNd.js";
|
|
8
|
+
import { complex as c } from "../value/types/complex/index-grhmCqMW.js";
|
|
9
|
+
import { transformProps as l } from "./utils/keys-transform-D89O3jUI.js";
|
|
10
|
+
import { KeyframeResolver as u } from "../animation/keyframes/KeyframesResolver-BxwoVKip.js";
|
|
11
|
+
import { NativeAnimation as d } from "../animation/NativeAnimation-CfiXAYmD.js";
|
|
12
|
+
import { acceleratedValues as f } from "../animation/waapi/utils/accelerated-values-D6fGw6G9.js";
|
|
13
|
+
import { motionValue as p } from "../value/index-Bwg0vVXH.js";
|
|
14
|
+
import { resolveVariantFromProps as m } from "./utils/resolve-variants-YRQnmPS8.js";
|
|
15
|
+
import { isMotionValue as h } from "../value/utils/is-motion-value-DjNWSbJA.js";
|
|
16
|
+
import { getAnimatableNone as g } from "../value/types/utils/animatable-none-48Tgfh--.js";
|
|
17
|
+
import { microtask as _ } from "../frameloop/microtask-C0-dBzym.js";
|
|
18
|
+
import { findValueType as v } from "../value/types/utils/find-DcyXW-Sp.js";
|
|
19
|
+
import { createBox as y } from "../projection/geometry/models-d7gxmOp4.js";
|
|
20
|
+
import { visualElementStore as b } from "./store-BtTKq2jY.js";
|
|
21
|
+
import { isControllingVariants as x, isVariantNode as S } from "./utils/is-controlling-variants-BTh61RuJ.js";
|
|
22
|
+
import { updateMotionValuesFromProps as C } from "./utils/motion-values-BofpGQv9.js";
|
|
23
|
+
import { hasReducedMotionListener as w, prefersReducedMotion as T } from "./utils/reduced-motion/state-ClY5PInV.js";
|
|
24
|
+
import { initPrefersReducedMotion as E } from "./utils/reduced-motion/index-CBQsVFcz.js";
|
|
25
|
+
//#region ../../node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
26
|
+
var D = [
|
|
27
|
+
"AnimationStart",
|
|
28
|
+
"AnimationComplete",
|
|
29
|
+
"Update",
|
|
30
|
+
"BeforeLayoutMeasure",
|
|
31
|
+
"LayoutMeasure",
|
|
32
|
+
"LayoutAnimationStart",
|
|
33
|
+
"LayoutAnimationComplete"
|
|
34
|
+
], O = {};
|
|
35
|
+
function k(e) {
|
|
36
|
+
O = e;
|
|
37
|
+
}
|
|
38
|
+
function A() {
|
|
39
|
+
return O;
|
|
40
|
+
}
|
|
41
|
+
var j = class {
|
|
42
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: c }, l = {}) {
|
|
46
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = u, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
47
|
+
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
48
|
+
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
49
|
+
let e = s.now();
|
|
50
|
+
this.renderScheduledAt < e && (this.renderScheduledAt = e, o.render(this.render, !1, !0));
|
|
51
|
+
};
|
|
52
|
+
let { latestValues: d, renderState: f } = c;
|
|
53
|
+
this.latestValues = d, this.baseTarget = { ...d }, this.initialValues = t.initial ? { ...d } : {}, this.renderState = f, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = l, this.blockInitialAnimation = !!a, this.isControllingVariants = x(t), this.isVariantNode = S(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
54
|
+
let { willChange: p, ...m } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
55
|
+
for (let e in m) {
|
|
56
|
+
let t = m[e];
|
|
57
|
+
d[e] !== void 0 && h(t) && t.set(d[e]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
mount(e) {
|
|
61
|
+
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
62
|
+
this.current = e, b.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (w.current || E(), this.shouldReduceMotion = T.current), process.env.NODE_ENV !== "production" && i(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
63
|
+
}
|
|
64
|
+
unmount() {
|
|
65
|
+
this.projection && this.projection.unmount(), a(this.notifyUpdate), a(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
66
|
+
for (let e in this.events) this.events[e].clear();
|
|
67
|
+
for (let e in this.features) {
|
|
68
|
+
let t = this.features[e];
|
|
69
|
+
t && (t.unmount(), t.isMounted = !1);
|
|
70
|
+
}
|
|
71
|
+
this.current = null;
|
|
72
|
+
}
|
|
73
|
+
addChild(e) {
|
|
74
|
+
this.children.add(e), this.enteringChildren ??= /* @__PURE__ */ new Set(), this.enteringChildren.add(e);
|
|
75
|
+
}
|
|
76
|
+
removeChild(e) {
|
|
77
|
+
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
78
|
+
}
|
|
79
|
+
bindToMotionValue(e, t) {
|
|
80
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && f.has(e) && this.current instanceof HTMLElement) {
|
|
81
|
+
let { factory: n, keyframes: i, times: a, ease: o, duration: s } = t.accelerate, c = new d({
|
|
82
|
+
element: this.current,
|
|
83
|
+
name: e,
|
|
84
|
+
keyframes: i,
|
|
85
|
+
times: a,
|
|
86
|
+
ease: o,
|
|
87
|
+
duration: r(s)
|
|
88
|
+
}), l = n(c);
|
|
89
|
+
this.valueSubscriptions.set(e, () => {
|
|
90
|
+
l(), c.cancel();
|
|
91
|
+
});
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
let n = l.has(e);
|
|
95
|
+
n && this.onBindTransform && this.onBindTransform();
|
|
96
|
+
let i = t.on("change", (t) => {
|
|
97
|
+
this.latestValues[e] = t, this.props.onUpdate && o.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
98
|
+
}), a;
|
|
99
|
+
typeof window < "u" && window.MotionCheckAppearSync && (a = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
|
|
100
|
+
i(), a && a();
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
sortNodePosition(e) {
|
|
104
|
+
return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
|
|
105
|
+
}
|
|
106
|
+
updateFeatures() {
|
|
107
|
+
let e = "animation";
|
|
108
|
+
for (e in O) {
|
|
109
|
+
let t = O[e];
|
|
110
|
+
if (!t) continue;
|
|
111
|
+
let { isEnabled: n, Feature: r } = t;
|
|
112
|
+
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
113
|
+
let t = this.features[e];
|
|
114
|
+
t.isMounted ? t.update() : (t.mount(), t.isMounted = !0);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
triggerBuild() {
|
|
119
|
+
this.build(this.renderState, this.latestValues, this.props);
|
|
120
|
+
}
|
|
121
|
+
measureViewportBox() {
|
|
122
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : y();
|
|
123
|
+
}
|
|
124
|
+
getStaticValue(e) {
|
|
125
|
+
return this.latestValues[e];
|
|
126
|
+
}
|
|
127
|
+
setStaticValue(e, t) {
|
|
128
|
+
this.latestValues[e] = t;
|
|
129
|
+
}
|
|
130
|
+
update(e, t) {
|
|
131
|
+
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
132
|
+
for (let t = 0; t < D.length; t++) {
|
|
133
|
+
let n = D[t];
|
|
134
|
+
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
135
|
+
let r = e["on" + n];
|
|
136
|
+
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
137
|
+
}
|
|
138
|
+
this.prevMotionValues = C(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
139
|
+
}
|
|
140
|
+
getProps() {
|
|
141
|
+
return this.props;
|
|
142
|
+
}
|
|
143
|
+
getVariant(e) {
|
|
144
|
+
return this.props.variants ? this.props.variants[e] : void 0;
|
|
145
|
+
}
|
|
146
|
+
getDefaultTransition() {
|
|
147
|
+
return this.props.transition;
|
|
148
|
+
}
|
|
149
|
+
getTransformPagePoint() {
|
|
150
|
+
return this.props.transformPagePoint;
|
|
151
|
+
}
|
|
152
|
+
getClosestVariantNode() {
|
|
153
|
+
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
154
|
+
}
|
|
155
|
+
addVariantChild(e) {
|
|
156
|
+
let t = this.getClosestVariantNode();
|
|
157
|
+
if (t) return t.variantChildren && t.variantChildren.add(e), () => t.variantChildren.delete(e);
|
|
158
|
+
}
|
|
159
|
+
addValue(e, t) {
|
|
160
|
+
let n = this.values.get(e);
|
|
161
|
+
t !== n && (n && this.removeValue(e), this.bindToMotionValue(e, t), this.values.set(e, t), this.latestValues[e] = t.get());
|
|
162
|
+
}
|
|
163
|
+
removeValue(e) {
|
|
164
|
+
this.values.delete(e);
|
|
165
|
+
let t = this.valueSubscriptions.get(e);
|
|
166
|
+
t && (t(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
|
|
167
|
+
}
|
|
168
|
+
hasValue(e) {
|
|
169
|
+
return this.values.has(e);
|
|
170
|
+
}
|
|
171
|
+
getValue(e, t) {
|
|
172
|
+
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
173
|
+
let n = this.values.get(e);
|
|
174
|
+
return n === void 0 && t !== void 0 && (n = p(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
175
|
+
}
|
|
176
|
+
readValue(n, r) {
|
|
177
|
+
let i = this.latestValues[n] !== void 0 || !this.current ? this.latestValues[n] : this.getBaseTargetFromProps(this.props, n) ?? this.readValueFromInstance(this.current, n, this.options);
|
|
178
|
+
return i != null && (typeof i == "string" && (e(i) || t(i)) ? i = parseFloat(i) : !v(i) && c.test(r) && (i = g(n, r)), this.setBaseTarget(n, h(i) ? i.get() : i)), h(i) ? i.get() : i;
|
|
179
|
+
}
|
|
180
|
+
setBaseTarget(e, t) {
|
|
181
|
+
this.baseTarget[e] = t;
|
|
182
|
+
}
|
|
183
|
+
getBaseTarget(e) {
|
|
184
|
+
let { initial: t } = this.props, n;
|
|
185
|
+
if (typeof t == "string" || typeof t == "object") {
|
|
186
|
+
let r = m(this.props, t, this.presenceContext?.custom);
|
|
187
|
+
r && (n = r[e]);
|
|
188
|
+
}
|
|
189
|
+
if (t && n !== void 0) return n;
|
|
190
|
+
let r = this.getBaseTargetFromProps(this.props, e);
|
|
191
|
+
return r !== void 0 && !h(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
192
|
+
}
|
|
193
|
+
on(e, t) {
|
|
194
|
+
return this.events[e] || (this.events[e] = new n()), this.events[e].add(t);
|
|
195
|
+
}
|
|
196
|
+
notify(e, ...t) {
|
|
197
|
+
this.events[e] && this.events[e].notify(...t);
|
|
198
|
+
}
|
|
199
|
+
scheduleRenderMicrotask() {
|
|
200
|
+
_.render(this.render);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
//#endregion
|
|
204
|
+
export { j as VisualElement, A as getFeatureDefinitions, k as setFeatureDefinitions };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isMotionValue as e } from "../../value/utils/is-motion-value-DjNWSbJA.js";
|
|
2
|
+
import { DOMKeyframesResolver as t } from "../../animation/keyframes/DOMKeyframesResolver-_h9E3nwl.js";
|
|
3
|
+
import { VisualElement as n } from "../VisualElement-Q2WcJv6t.js";
|
|
4
|
+
//#region ../../node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs
|
|
5
|
+
var r = class extends n {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments), this.KeyframeResolver = t;
|
|
8
|
+
}
|
|
9
|
+
sortInstanceNodePosition(e, t) {
|
|
10
|
+
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
11
|
+
}
|
|
12
|
+
getBaseTargetFromProps(e, t) {
|
|
13
|
+
let n = e.style;
|
|
14
|
+
return n ? n[t] : void 0;
|
|
15
|
+
}
|
|
16
|
+
removeValueFromRenderState(e, { vars: t, style: n }) {
|
|
17
|
+
delete t[e], delete n[e];
|
|
18
|
+
}
|
|
19
|
+
handleChildMotionValue() {
|
|
20
|
+
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
21
|
+
let { children: t } = this.props;
|
|
22
|
+
e(t) && (this.childSubscription = t.on("change", (e) => {
|
|
23
|
+
this.current && (this.current.textContent = `${e}`);
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as DOMVisualElement };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
2
|
+
var e = (e) => e * 180 / Math.PI, t = (t) => r(e(Math.atan2(t[1], t[0]))), n = {
|
|
3
|
+
x: 4,
|
|
4
|
+
y: 5,
|
|
5
|
+
translateX: 4,
|
|
6
|
+
translateY: 5,
|
|
7
|
+
scaleX: 0,
|
|
8
|
+
scaleY: 3,
|
|
9
|
+
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
10
|
+
rotate: t,
|
|
11
|
+
rotateZ: t,
|
|
12
|
+
skewX: (t) => e(Math.atan(t[1])),
|
|
13
|
+
skewY: (t) => e(Math.atan(t[2])),
|
|
14
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
15
|
+
}, r = (e) => (e %= 360, e < 0 && (e += 360), e), i = t, a = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), o = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), s = {
|
|
16
|
+
x: 12,
|
|
17
|
+
y: 13,
|
|
18
|
+
z: 14,
|
|
19
|
+
translateX: 12,
|
|
20
|
+
translateY: 13,
|
|
21
|
+
translateZ: 14,
|
|
22
|
+
scaleX: a,
|
|
23
|
+
scaleY: o,
|
|
24
|
+
scale: (e) => (a(e) + o(e)) / 2,
|
|
25
|
+
rotateX: (t) => r(e(Math.atan2(t[6], t[5]))),
|
|
26
|
+
rotateY: (t) => r(e(Math.atan2(-t[2], t[0]))),
|
|
27
|
+
rotateZ: i,
|
|
28
|
+
rotate: i,
|
|
29
|
+
skewX: (t) => e(Math.atan(t[4])),
|
|
30
|
+
skewY: (t) => e(Math.atan(t[1])),
|
|
31
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
32
|
+
};
|
|
33
|
+
function c(e) {
|
|
34
|
+
return +!!e.includes("scale");
|
|
35
|
+
}
|
|
36
|
+
function l(e, t) {
|
|
37
|
+
if (!e || e === "none") return c(t);
|
|
38
|
+
let r = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), i, a;
|
|
39
|
+
if (r) i = s, a = r;
|
|
40
|
+
else {
|
|
41
|
+
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
42
|
+
i = n, a = t;
|
|
43
|
+
}
|
|
44
|
+
if (!a) return c(t);
|
|
45
|
+
let o = i[t], l = a[1].split(",").map(d);
|
|
46
|
+
return typeof o == "function" ? o(l) : l[o];
|
|
47
|
+
}
|
|
48
|
+
var u = (e, t) => {
|
|
49
|
+
let { transform: n = "none" } = getComputedStyle(e);
|
|
50
|
+
return l(n, t);
|
|
51
|
+
};
|
|
52
|
+
function d(e) {
|
|
53
|
+
return parseFloat(e.trim());
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { c as defaultTransformValue, l as parseValueFromTransform, u as readTransformValue };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { invariant as e } from "../../../../../motion-utils/dist/es/errors-zYMa5JTQ.js";
|
|
2
|
+
import { isCSSVariableName as t } from "../../animation/utils/is-css-variable-CyNVJBsm.js";
|
|
3
|
+
import { defaultTransformValue as n, readTransformValue as r } from "../dom/parse-transform-BhriW6XO.js";
|
|
4
|
+
import { transformProps as i } from "../utils/keys-transform-D89O3jUI.js";
|
|
5
|
+
import { DOMVisualElement as a } from "../dom/DOMVisualElement-C0PGIt5i.js";
|
|
6
|
+
import { measureViewportBox as o } from "../../projection/utils/measure-9EHDTj-Q.js";
|
|
7
|
+
import { buildHTMLStyles as s } from "./utils/build-styles-d8t31XT-.js";
|
|
8
|
+
import { renderHTML as c } from "./utils/render-D0WyK2kl.js";
|
|
9
|
+
import { scrapeMotionValuesFromProps as l } from "./utils/scrape-motion-values-Dnanh7Pq.js";
|
|
10
|
+
//#region ../../node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
11
|
+
function u(e) {
|
|
12
|
+
return window.getComputedStyle(e);
|
|
13
|
+
}
|
|
14
|
+
var d = class extends a {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.type = "html", this.renderInstance = c;
|
|
17
|
+
}
|
|
18
|
+
mount(t) {
|
|
19
|
+
e(!!t.style, "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref"), super.mount(t);
|
|
20
|
+
}
|
|
21
|
+
readValueFromInstance(e, a) {
|
|
22
|
+
if (i.has(a)) return this.projection?.isProjecting ? n(a) : r(e, a);
|
|
23
|
+
{
|
|
24
|
+
let n = u(e), r = (t(a) ? n.getPropertyValue(a) : n[a]) || 0;
|
|
25
|
+
return typeof r == "string" ? r.trim() : r;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
29
|
+
return o(e, t);
|
|
30
|
+
}
|
|
31
|
+
build(e, t, n) {
|
|
32
|
+
s(e, t, n.transformTemplate);
|
|
33
|
+
}
|
|
34
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
35
|
+
return l(e, t, n);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { d as HTMLVisualElement, u as getComputedStyle };
|
package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-styles-d8t31XT-.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isCSSVariableName as e } from "../../../animation/utils/is-css-variable-CyNVJBsm.js";
|
|
2
|
+
import { transformProps as t } from "../../utils/keys-transform-D89O3jUI.js";
|
|
3
|
+
import { numberValueTypes as n } from "../../../value/types/maps/number-CbCxH6Jz.js";
|
|
4
|
+
import { getValueAsType as r } from "../../../value/types/utils/get-as-type-D-jDTeib.js";
|
|
5
|
+
import { buildTransform as i } from "./build-transform-ses8bYxd.js";
|
|
6
|
+
//#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
7
|
+
function a(a, o, s) {
|
|
8
|
+
let { style: c, vars: l, transformOrigin: u } = a, d = !1, f = !1;
|
|
9
|
+
for (let i in o) {
|
|
10
|
+
let a = o[i];
|
|
11
|
+
if (t.has(i)) {
|
|
12
|
+
d = !0;
|
|
13
|
+
continue;
|
|
14
|
+
} else if (e(i)) {
|
|
15
|
+
l[i] = a;
|
|
16
|
+
continue;
|
|
17
|
+
} else {
|
|
18
|
+
let e = r(a, n[i]);
|
|
19
|
+
i.startsWith("origin") ? (f = !0, u[i] = e) : c[i] = e;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (o.transform || (d || s ? c.transform = i(o, a.transform, s) : c.transform &&= "none"), f) {
|
|
23
|
+
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = u;
|
|
24
|
+
c.transformOrigin = `${e} ${t} ${n}`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { a as buildHTMLStyles };
|
package/dist/chunks/node_modules/motion-dom/dist/es/render/html/utils/build-transform-ses8bYxd.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { transformPropOrder as e } from "../../utils/keys-transform-D89O3jUI.js";
|
|
2
|
+
import { numberValueTypes as t } from "../../../value/types/maps/number-CbCxH6Jz.js";
|
|
3
|
+
import { getValueAsType as n } from "../../../value/types/utils/get-as-type-D-jDTeib.js";
|
|
4
|
+
//#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
5
|
+
var r = {
|
|
6
|
+
x: "translateX",
|
|
7
|
+
y: "translateY",
|
|
8
|
+
z: "translateZ",
|
|
9
|
+
transformPerspective: "perspective"
|
|
10
|
+
}, i = e.length;
|
|
11
|
+
function a(a, o, s) {
|
|
12
|
+
let c = "", l = !0;
|
|
13
|
+
for (let u = 0; u < i; u++) {
|
|
14
|
+
let i = e[u], d = a[i];
|
|
15
|
+
if (d === void 0) continue;
|
|
16
|
+
let f = !0;
|
|
17
|
+
if (typeof d == "number") f = d === +!!i.startsWith("scale");
|
|
18
|
+
else {
|
|
19
|
+
let e = parseFloat(d);
|
|
20
|
+
f = i.startsWith("scale") ? e === 1 : e === 0;
|
|
21
|
+
}
|
|
22
|
+
if (!f || s) {
|
|
23
|
+
let e = n(d, t[i]);
|
|
24
|
+
if (!f) {
|
|
25
|
+
l = !1;
|
|
26
|
+
let t = r[i] || i;
|
|
27
|
+
c += `${t}(${e}) `;
|
|
28
|
+
}
|
|
29
|
+
s && (o[i] = e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
let u = a.pathRotation;
|
|
33
|
+
return u && (l = !1, c += `rotate(${n(u, t.pathRotation)}) `), c = c.trim(), s ? c = s(o, l ? "" : c) : l && (c = "none"), c;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { a as buildTransform };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2
|
+
function e(e, { style: t, vars: n }, r, i) {
|
|
3
|
+
let a = e.style, o;
|
|
4
|
+
for (o in t) a[o] = t[o];
|
|
5
|
+
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as renderHTML };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isMotionValue as e } from "../../../value/utils/is-motion-value-DjNWSbJA.js";
|
|
2
|
+
import { isForcedMotionValue as t } from "../../utils/is-forced-motion-value-DJbn-QIQ.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
let a = n.style, o = r?.style, s = {};
|
|
6
|
+
if (!a) return s;
|
|
7
|
+
for (let r in a) (e(a[r]) || o && e(o[r]) || t(r, n) || i?.getValue(r)?.liveStyle !== void 0) && (s[r] = a[r]);
|
|
8
|
+
return s;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as scrapeMotionValuesFromProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { transformProps as e } from "../utils/keys-transform-D89O3jUI.js";
|
|
2
|
+
import { camelToDash as t } from "../dom/utils/camel-to-dash-DkTMivH-.js";
|
|
3
|
+
import { getDefaultValueType as n } from "../../value/types/maps/defaults-CUGdDi7c.js";
|
|
4
|
+
import { createBox as r } from "../../projection/geometry/models-d7gxmOp4.js";
|
|
5
|
+
import { DOMVisualElement as i } from "../dom/DOMVisualElement-C0PGIt5i.js";
|
|
6
|
+
import { buildSVGAttrs as a } from "./utils/build-attrs-CfRsHEuP.js";
|
|
7
|
+
import { camelCaseAttributes as o } from "./utils/camel-case-attrs-eLNLAV8t.js";
|
|
8
|
+
import { isSVGTag as s } from "./utils/is-svg-tag-DmzYEr13.js";
|
|
9
|
+
import { renderSVG as c } from "./utils/render--nKPYECx.js";
|
|
10
|
+
import { scrapeMotionValuesFromProps as l } from "./utils/scrape-motion-values-BZpmWNaV.js";
|
|
11
|
+
//#region ../../node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
12
|
+
var u = class extends i {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = r;
|
|
15
|
+
}
|
|
16
|
+
getBaseTargetFromProps(e, t) {
|
|
17
|
+
return e[t];
|
|
18
|
+
}
|
|
19
|
+
readValueFromInstance(r, i) {
|
|
20
|
+
if (e.has(i)) {
|
|
21
|
+
let e = n(i);
|
|
22
|
+
return e && e.default || 0;
|
|
23
|
+
}
|
|
24
|
+
return i = o.has(i) ? i : t(i), r.getAttribute(i);
|
|
25
|
+
}
|
|
26
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
27
|
+
return l(e, t, n);
|
|
28
|
+
}
|
|
29
|
+
build(e, t, n) {
|
|
30
|
+
a(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
31
|
+
}
|
|
32
|
+
renderInstance(e, t, n, r) {
|
|
33
|
+
c(e, t, n, r);
|
|
34
|
+
}
|
|
35
|
+
mount(e) {
|
|
36
|
+
this.isSVGTag = s(e.tagName), super.mount(e);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { u as SVGVisualElement };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildHTMLStyles as e } from "../../html/utils/build-styles-d8t31XT-.js";
|
|
2
|
+
import { buildSVGPath as t } from "./path-DrGKJJG-.js";
|
|
3
|
+
//#region ../../node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
4
|
+
var n = [
|
|
5
|
+
"offsetDistance",
|
|
6
|
+
"offsetPath",
|
|
7
|
+
"offsetRotate",
|
|
8
|
+
"offsetAnchor"
|
|
9
|
+
];
|
|
10
|
+
function r(r, { attrX: i, attrY: a, attrScale: o, pathLength: s, pathSpacing: c = 1, pathOffset: l = 0, ...u }, d, f, p) {
|
|
11
|
+
if (e(r, u, f), d) {
|
|
12
|
+
r.style.viewBox && (r.attrs.viewBox = r.style.viewBox);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
r.attrs = r.style, r.style = {};
|
|
16
|
+
let { attrs: m, style: h } = r;
|
|
17
|
+
m.transform && (h.transform = m.transform, delete m.transform), (h.transform || m.transformOrigin) && (h.transformOrigin = m.transformOrigin ?? "50% 50%", delete m.transformOrigin), h.transform && (h.transformBox = p?.transformBox ?? "fill-box", delete m.transformBox);
|
|
18
|
+
for (let e of n) m[e] !== void 0 && (h[e] = m[e], delete m[e]);
|
|
19
|
+
i !== void 0 && (m.x = i), a !== void 0 && (m.y = a), o !== void 0 && (m.scale = o), s !== void 0 && t(m, s, c, l, !1);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as buildSVGAttrs };
|
package/dist/chunks/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs-eLNLAV8t.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region ../../node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2
|
+
var e = /* @__PURE__ */ new Set([
|
|
3
|
+
"baseFrequency",
|
|
4
|
+
"diffuseConstant",
|
|
5
|
+
"kernelMatrix",
|
|
6
|
+
"kernelUnitLength",
|
|
7
|
+
"keySplines",
|
|
8
|
+
"keyTimes",
|
|
9
|
+
"limitingConeAngle",
|
|
10
|
+
"markerHeight",
|
|
11
|
+
"markerWidth",
|
|
12
|
+
"numOctaves",
|
|
13
|
+
"targetX",
|
|
14
|
+
"targetY",
|
|
15
|
+
"surfaceScale",
|
|
16
|
+
"specularConstant",
|
|
17
|
+
"specularExponent",
|
|
18
|
+
"stdDeviation",
|
|
19
|
+
"tableValues",
|
|
20
|
+
"viewBox",
|
|
21
|
+
"gradientTransform",
|
|
22
|
+
"pathLength",
|
|
23
|
+
"startOffset",
|
|
24
|
+
"textLength",
|
|
25
|
+
"lengthAdjust"
|
|
26
|
+
]);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { e as camelCaseAttributes };
|