@nethesis/phone-island 1.0.4 → 1.0.5-dev.1
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/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/components/AudioPlayerView/Progress.js +1 -1
- package/dist/components/AudioPlayerView/Progress.js.map +1 -1
- package/dist/components/CallView/BackCall.js +1 -1
- package/dist/components/CallView/BackCall.js.map +1 -1
- package/dist/components/CallView/DisplayNameUtils.js.map +1 -1
- package/dist/components/CallView/Number.js +1 -1
- package/dist/components/CallView/Number.js.map +1 -1
- package/dist/components/CallView/index.js +1 -1
- package/dist/components/CallView/index.js.map +1 -1
- package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
- package/dist/components/Socket.js +1 -1
- package/dist/components/Socket.js.map +1 -1
- package/dist/components/TextScroll.js.map +1 -1
- package/dist/events/SocketEvents.js +1 -1
- package/dist/events/SocketEvents.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/lib/phone/queue.js +2 -0
- package/dist/lib/phone/queue.js.map +1 -0
- package/dist/models/currentCall.js +1 -1
- package/dist/models/currentCall.js.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/queue.js +2 -0
- package/dist/models/queue.js.map +1 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +1 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/machine.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/machine.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +1 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +1 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +1 -1
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +1 -1
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +1 -1
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +1 -1
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +1 -1
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +1 -1
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +1 -1
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +1 -1
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +1 -1
- package/dist/node_modules/engine.io-client/build/esm/socket.js +1 -1
- package/dist/node_modules/engine.io-client/build/esm/socket.js.map +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +1 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +1 -1
- package/dist/node_modules/engine.io-client/build/esm/util.js +1 -1
- package/dist/node_modules/engine.io-client/build/esm/util.js.map +1 -1
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +1 -1
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
- package/dist/node_modules/js-base64/base64.mjs.js +1 -1
- package/dist/node_modules/js-base64/base64.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
- package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
- package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
- package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
- package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
- package/dist/node_modules/react-redux/es/hooks/useDispatch.js +1 -1
- package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +1 -1
- package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
- package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
- package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
- package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +1 -1
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +1 -1
- package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
- package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
- package/dist/node_modules/socket.io-client/build/esm/url.js +1 -1
- package/dist/node_modules/socket.io-client/build/esm/url.js.map +1 -1
- package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
- package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
- package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +1 -1
- package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/public/locales/en/translation.json.js +1 -1
- package/dist/public/locales/it/translation.json.js +1 -1
- package/dist/styles/CustomRange.styles.js.map +1 -1
- package/dist/styles/Island.styles.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js +0 -2
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js.map +0 -1
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -2
- package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../events/add-pointer-event.mjs.js"),e=require("../../events/event-info.mjs.js"),n=require("../../utils/distance.mjs.js"),s=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),i=require("../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js"),o=require("../../../../../motion-utils/dist/es/pipe.mjs.js"),r=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js");function a(t,e){return e?{point:e(t.point)}:t}function h(t,e){return{x:t.x-e.x,y:t.y-e.y}}function l(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../events/add-pointer-event.mjs.js"),e=require("../../events/event-info.mjs.js"),n=require("../../utils/distance.mjs.js"),s=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),i=require("../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js"),o=require("../../../../../motion-utils/dist/es/pipe.mjs.js"),r=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js");function a(t,e){return e?{point:e(t.point)}:t}function h(t,e){return{x:t.x-e.x,y:t.y-e.y}}function l(t,e){let{point:n}=t;return{point:n,delta:h(n,m(e)),offset:h(n,d(e)),velocity:v(e,.1)}}function d(t){return t[0]}function m(t){return t[t.length-1]}function v(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=m(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>r.secondsToMilliseconds(e)));)n--;if(!s)return{x:0,y:0};const o=r.millisecondsToSeconds(i.timestamp-s.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}exports.PanSession=class{constructor(r,h){let{transformPagePoint:d,contextWindow:m,dragSnapToOrigin:v=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=l(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=n.distance2D(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;const{point:o}=t,{timestamp:r}=s.frameData;this.history.push({...o,timestamp:r});const{onStart:a,onMove:h}=this.handlers;e||(a&&a(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=a(e,this.transformPagePoint),s.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:s,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=l("pointercancel"===t.type?this.lastMoveEventInfo:a(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),s&&s(t,o)},!i.isPrimaryPointer(r))return;this.dragSnapToOrigin=v,this.handlers=h,this.transformPagePoint=d,this.contextWindow=m||window;const u=a(e.extractEventInfo(r),this.transformPagePoint),{point:p}=u,{timestamp:c}=s.frameData;this.history=[{...p,timestamp:c}];const{onSessionStart:f}=h;f&&f(r,l(u,this.history)),this.removeListeners=o.pipe(t.addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),t.addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),t.addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),s.cancelFrame(this.updatePoint)}};
|
|
2
2
|
//# sourceMappingURL=PanSession.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanSession.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs"],"sourcesContent":["import { frame, isPrimaryPointer, cancelFrame, frameData } from 'motion-dom';\nimport { pipe, secondsToMilliseconds, millisecondsToSeconds } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\n\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false, } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n /**\n * @internal\n */\n this.contextWindow = window;\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursoe.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= 3;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n if (this.dragSnapToOrigin)\n resumeAnimation && resumeAnimation();\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.dragSnapToOrigin = dragSnapToOrigin;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n this.contextWindow = contextWindow || window;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n"],"names":["transformPoint","info","transformPagePoint","point","subtractPoint","a","b","x","y","getPanInfo","history","delta","lastDevicePoint","offset","startDevicePoint","velocity","getVelocity","length","timeDelta","i","timestampedPoint","lastPoint","timestamp","secondsToMilliseconds","time","millisecondsToSeconds","currentVelocity","Infinity","constructor","event","handlers","contextWindow","dragSnapToOrigin","this","startEvent","lastMoveEvent","lastMoveEventInfo","window","updatePoint","isPanStarted","isDistancePastThreshold","distance2D","frameData","push","onStart","onMove","handlePointerMove","frame","update","handlePointerUp","end","onEnd","onSessionEnd","resumeAnimation","panInfo","type","isPrimaryPointer","initialInfo","extractEventInfo","onSessionStart","removeListeners","pipe","addPointerEvent","updateHandlers","cancelFrame"],"mappings":"mfAkGA,SAASA,EAAeC,EAAMC,GAC1B,OAAOA,EAAqB,CAAEC,MAAOD,EAAmBD,EAAKE,QAAWF,CAC5E,CACA,SAASG,EAAcC,EAAGC,GACtB,MAAO,CAAEC,EAAGF,EAAEE,EAAID,EAAEC,EAAGC,EAAGH,EAAEG,EAAIF,EAAEE,EACtC,CACA,SAASC,
|
|
1
|
+
{"version":3,"file":"PanSession.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs"],"sourcesContent":["import { frame, isPrimaryPointer, cancelFrame, frameData } from 'motion-dom';\nimport { pipe, secondsToMilliseconds, millisecondsToSeconds } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\n\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false, } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n /**\n * @internal\n */\n this.contextWindow = window;\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursoe.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= 3;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n if (this.dragSnapToOrigin)\n resumeAnimation && resumeAnimation();\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.dragSnapToOrigin = dragSnapToOrigin;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n this.contextWindow = contextWindow || window;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n"],"names":["transformPoint","info","transformPagePoint","point","subtractPoint","a","b","x","y","getPanInfo","_ref","history","delta","lastDevicePoint","offset","startDevicePoint","velocity","getVelocity","length","timeDelta","i","timestampedPoint","lastPoint","timestamp","secondsToMilliseconds","time","millisecondsToSeconds","currentVelocity","Infinity","constructor","event","handlers","contextWindow","dragSnapToOrigin","arguments","undefined","this","startEvent","lastMoveEvent","lastMoveEventInfo","window","updatePoint","isPanStarted","isDistancePastThreshold","distance2D","frameData","push","onStart","onMove","handlePointerMove","frame","update","handlePointerUp","end","onEnd","onSessionEnd","resumeAnimation","panInfo","type","isPrimaryPointer","initialInfo","extractEventInfo","onSessionStart","removeListeners","pipe","addPointerEvent","updateHandlers","cancelFrame"],"mappings":"mfAkGA,SAASA,EAAeC,EAAMC,GAC1B,OAAOA,EAAqB,CAAEC,MAAOD,EAAmBD,EAAKE,QAAWF,CAC5E,CACA,SAASG,EAAcC,EAAGC,GACtB,MAAO,CAAEC,EAAGF,EAAEE,EAAID,EAAEC,EAAGC,EAAGH,EAAEG,EAAIF,EAAEE,EACtC,CACA,SAASC,EAAUC,EAAYC,GAAS,IAApBR,MAAEA,GAAOO,EACzB,MAAO,CACHP,QACAS,MAAOR,EAAcD,EAAOU,EAAgBF,IAC5CG,OAAQV,EAAcD,EAAOY,EAAiBJ,IAC9CK,SAAUC,EAAYN,EAAS,IAEvC,CACA,SAASI,EAAiBJ,GACtB,OAAOA,EAAQ,EACnB,CACA,SAASE,EAAgBF,GACrB,OAAOA,EAAQA,EAAQO,OAAS,EACpC,CACA,SAASD,EAAYN,EAASQ,GAC1B,GAAIR,EAAQO,OAAS,EACjB,MAAO,CAAEX,EAAG,EAAGC,EAAG,GAEtB,IAAIY,EAAIT,EAAQO,OAAS,EACrBG,EAAmB,KACvB,MAAMC,EAAYT,EAAgBF,GAClC,KAAOS,GAAK,IACRC,EAAmBV,EAAQS,KACvBE,EAAUC,UAAYF,EAAiBE,UACvCC,EAAAA,sBAAsBL,MAG1BC,IAEJ,IAAKC,EACD,MAAO,CAAEd,EAAG,EAAGC,EAAG,GAEtB,MAAMiB,EAAOC,EAAAA,sBAAsBJ,EAAUC,UAAYF,EAAiBE,WAC1E,GAAa,IAATE,EACA,MAAO,CAAElB,EAAG,EAAGC,EAAG,GAEtB,MAAMmB,EAAkB,CACpBpB,GAAIe,EAAUf,EAAIc,EAAiBd,GAAKkB,EACxCjB,GAAIc,EAAUd,EAAIa,EAAiBb,GAAKiB,GAQ5C,OANIE,EAAgBpB,IAAMqB,MACtBD,EAAgBpB,EAAI,GAEpBoB,EAAgBnB,IAAMoB,MACtBD,EAAgBnB,EAAI,GAEjBmB,CACX,oBA9IA,MACIE,WAAAA,CAAYC,EAAOC,GAAiF,IAAvE7B,mBAAEA,EAAkB8B,cAAEA,EAAaC,iBAAEA,GAAmB,GAAQC,UAAAhB,OAAAgB,QAAAC,IAAAD,UAAAC,GAAAD,UAAG,GAAA,GAgE5F,GA5DAE,KAAKC,WAAa,KAIlBD,KAAKE,cAAgB,KAIrBF,KAAKG,kBAAoB,KAIzBH,KAAKL,SAAW,GAIhBK,KAAKJ,cAAgBQ,OACrBJ,KAAKK,YAAc,KACf,IAAML,KAAKE,gBAAiBF,KAAKG,kBAC7B,OACJ,MAAMtC,EAAOQ,EAAW2B,KAAKG,kBAAmBH,KAAKzB,SAC/C+B,EAAmC,OAApBN,KAAKC,WAIpBM,EAA0BC,EAAAA,WAAW3C,EAAKa,OAAQ,CAAEP,EAAG,EAAGC,EAAG,KAAQ,EAC3E,IAAKkC,IAAiBC,EAClB,OACJ,MAAMxC,MAAEA,GAAUF,GACZsB,UAAEA,GAAcsB,YACtBT,KAAKzB,QAAQmC,KAAK,IAAK3C,EAAOoB,cAC9B,MAAMwB,QAAEA,EAAOC,OAAEA,GAAWZ,KAAKL,SAC5BW,IACDK,GAAWA,EAAQX,KAAKE,cAAerC,GACvCmC,KAAKC,WAAaD,KAAKE,eAE3BU,GAAUA,EAAOZ,KAAKE,cAAerC,EAAK,EAE9CmC,KAAKa,kBAAoB,CAACnB,EAAO7B,KAC7BmC,KAAKE,cAAgBR,EACrBM,KAAKG,kBAAoBvC,EAAeC,EAAMmC,KAAKlC,oBAEnDgD,EAAAA,MAAMC,OAAOf,KAAKK,aAAa,EAAK,EAExCL,KAAKgB,gBAAkB,CAACtB,EAAO7B,KAC3BmC,KAAKiB,MACL,MAAMC,MAAEA,EAAKC,aAAEA,EAAYC,gBAAEA,GAAoBpB,KAAKL,SAGtD,GAFIK,KAAKH,kBACLuB,GAAmBA,KACjBpB,KAAKE,gBAAiBF,KAAKG,kBAC7B,OACJ,MAAMkB,EAAUhD,EAA0B,kBAAfqB,EAAM4B,KAC3BtB,KAAKG,kBACLvC,EAAeC,EAAMmC,KAAKlC,oBAAqBkC,KAAKzB,SACtDyB,KAAKC,YAAciB,GACnBA,EAAMxB,EAAO2B,GAEjBF,GAAgBA,EAAazB,EAAO2B,EAAQ,GAG3CE,EAAAA,iBAAiB7B,GAClB,OACJM,KAAKH,iBAAmBA,EACxBG,KAAKL,SAAWA,EAChBK,KAAKlC,mBAAqBA,EAC1BkC,KAAKJ,cAAgBA,GAAiBQ,OACtC,MACMoB,EAAc5D,EADP6D,mBAAiB/B,GACWM,KAAKlC,qBACxCC,MAAEA,GAAUyD,GACZrC,UAAEA,GAAcsB,YACtBT,KAAKzB,QAAU,CAAC,IAAKR,EAAOoB,cAC5B,MAAMuC,eAAEA,GAAmB/B,EAC3B+B,GACIA,EAAehC,EAAOrB,EAAWmD,EAAaxB,KAAKzB,UACvDyB,KAAK2B,gBAAkBC,OAAKC,EAAAA,gBAAgB7B,KAAKJ,cAAe,cAAeI,KAAKa,mBAAoBgB,kBAAgB7B,KAAKJ,cAAe,YAAaI,KAAKgB,iBAAkBa,EAAeA,gBAAC7B,KAAKJ,cAAe,gBAAiBI,KAAKgB,iBAC9O,CACAc,cAAAA,CAAenC,GACXK,KAAKL,SAAWA,CACpB,CACAsB,GAAAA,GACIjB,KAAK2B,iBAAmB3B,KAAK2B,kBAC7BI,cAAY/B,KAAKK,YACrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../events/event-info.mjs.js"),t=require("../motion/features/Feature.mjs.js"),s=require("../../../../motion-dom/dist/es/gestures/press/index.mjs.js"),n=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function r(t,s,r){const{props:o}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap","Start"===r);const a=o["onTap"+("End"===r?"":r)];a&&n.frame.postRender((()=>a(s,e.extractEventInfo(s))))}class o extends t.Feature{mount(){const{current:e}=this.node;e&&(this.unmount=s.press(e,((e,t)=>(r(this.node,t,"Start"),(e,{success:t
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../events/event-info.mjs.js"),t=require("../motion/features/Feature.mjs.js"),s=require("../../../../motion-dom/dist/es/gestures/press/index.mjs.js"),n=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function r(t,s,r){const{props:o}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap","Start"===r);const a=o["onTap"+("End"===r?"":r)];a&&n.frame.postRender((()=>a(s,e.extractEventInfo(s))))}class o extends t.Feature{mount(){const{current:e}=this.node;e&&(this.unmount=s.press(e,((e,t)=>(r(this.node,t,"Start"),(e,t)=>{let{success:s}=t;return r(this.node,e,s?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}exports.PressGesture=o;
|
|
2
2
|
//# sourceMappingURL=press.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"press.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/press.mjs"],"sourcesContent":["import { press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, { useGlobalTarget: this.node.props.globalTapTarget });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n"],"names":["handlePressEvent","node","event","lifecycle","props","current","HTMLButtonElement","disabled","animationState","whileTap","setActive","callback","frame","postRender","extractEventInfo","PressGesture","Feature","mount","this","unmount","press","_element","startEvent","endEvent","success","useGlobalTarget","globalTapTarget"],"mappings":"2SAIA,SAASA,EAAiBC,EAAMC,EAAOC,GACnC,MAAMC,MAAEA,GAAUH,EAClB,GAAIA,EAAKI,mBAAmBC,mBAAqBL,EAAKI,QAAQE,SAC1D,OAEAN,EAAKO,gBAAkBJ,EAAMK,UAC7BR,EAAKO,eAAeE,UAAU,WAA0B,UAAdP,GAE9C,MACMQ,EAAWP,EADE,SAAyB,QAAdD,EAAsB,GAAKA,IAErDQ,GACAC,EAAKA,MAACC,YAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,KAEhE,CACA,MAAMa,UAAqBC,EAAAA,QACvBC,KAAAA,GACI,MAAMZ,QAAEA,GAAYa,KAAKjB,KACpBI,IAELa,KAAKC,QAAUC,EAAKA,MAACf,GAAS,CAACgB,EAAUC,KACrCtB,EAAiBkB,KAAKjB,KAAMqB,EAAY,SACjC,CAACC,
|
|
1
|
+
{"version":3,"file":"press.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/press.mjs"],"sourcesContent":["import { press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, { useGlobalTarget: this.node.props.globalTapTarget });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n"],"names":["handlePressEvent","node","event","lifecycle","props","current","HTMLButtonElement","disabled","animationState","whileTap","setActive","callback","frame","postRender","extractEventInfo","PressGesture","Feature","mount","this","unmount","press","_element","startEvent","endEvent","_ref","success","useGlobalTarget","globalTapTarget"],"mappings":"2SAIA,SAASA,EAAiBC,EAAMC,EAAOC,GACnC,MAAMC,MAAEA,GAAUH,EAClB,GAAIA,EAAKI,mBAAmBC,mBAAqBL,EAAKI,QAAQE,SAC1D,OAEAN,EAAKO,gBAAkBJ,EAAMK,UAC7BR,EAAKO,eAAeE,UAAU,WAA0B,UAAdP,GAE9C,MACMQ,EAAWP,EADE,SAAyB,QAAdD,EAAsB,GAAKA,IAErDQ,GACAC,EAAKA,MAACC,YAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,KAEhE,CACA,MAAMa,UAAqBC,EAAAA,QACvBC,KAAAA,GACI,MAAMZ,QAAEA,GAAYa,KAAKjB,KACpBI,IAELa,KAAKC,QAAUC,EAAKA,MAACf,GAAS,CAACgB,EAAUC,KACrCtB,EAAiBkB,KAAKjB,KAAMqB,EAAY,SACjC,CAACC,EAAQC,KAAA,IAAEC,QAAEA,GAASD,EAAA,OAAKxB,EAAiBkB,KAAKjB,KAAMsB,EAAUE,EAAU,MAAQ,SAAS,IACpG,CAAEC,gBAAiBR,KAAKjB,KAAKG,MAAMuB,kBAC1C,CACAR,OAAAA,GAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../Feature.mjs.js"),t=require("./observers.mjs.js");const r={some:0,all:1};class s extends e.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:i}=e,u={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:r[o]};return t.observeIntersection(this.node.current,u,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),n=t?r:s;n&&n(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../Feature.mjs.js"),t=require("./observers.mjs.js");const r={some:0,all:1};class s extends e.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:i}=e,u={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:r[o]};return t.observeIntersection(this.node.current,u,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),n=t?r:s;n&&n(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:r={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==r[e]}(e,t));r&&this.startObserver()}unmount(){}}exports.InViewFeature=s;
|
|
2
2
|
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from '../Feature.mjs';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n"],"names":["thresholdNames","some","all","InViewFeature","Feature","constructor","super","arguments","this","hasEnteredView","isInView","startObserver","unmount","viewport","node","getProps","root","margin","rootMargin","amount","once","options","current","undefined","threshold","observeIntersection","entry","isIntersecting","animationState","setActive","onViewportEnter","onViewportLeave","callback","mount","update","IntersectionObserver","props","prevProps","prevViewport","name","hasViewportOptionChanged"],"mappings":"uIAGA,MAAMA,EAAiB,CACnBC,KAAM,EACNC,IAAK,GAET,MAAMC,UAAsBC,EAAAA,QACxBC,WAAAA,GACIC,SAASC,WACTC,KAAKC,gBAAiB,EACtBD,KAAKE,UAAW,CACpB,CACAC,aAAAA,GACIH,KAAKI,UACL,MAAMC,SAAEA,EAAW,CAAC,GAAML,KAAKM,KAAKC,YAC9BC,KAAEA,EAAMC,OAAQC,EAAUC,OAAEA,EAAS,OAAMC,KAAEA,GAASP,EACtDQ,EAAU,CACZL,KAAMA,EAAOA,EAAKM,aAAUC,EAC5BL,aACAM,UAA6B,iBAAXL,EAAsBA,EAASnB,EAAemB,IA+BpE,OAAOM,EAAAA,oBAAoBjB,KAAKM,KAAKQ,QAASD,GA7BhBK,IAC1B,MAAMC,eAAEA,GAAmBD,EAI3B,GAAIlB,KAAKE,WAAaiB,EAClB,OAMJ,GALAnB,KAAKE,SAAWiB,EAKZP,IAASO,GAAkBnB,KAAKC,eAChC,OAEKkB,IACLnB,KAAKC,gBAAiB,GAEtBD,KAAKM,KAAKc,gBACVpB,KAAKM,KAAKc,eAAeC,UAAU,cAAeF,GAMtD,MAAMG,gBAAEA,EAAeC,gBAAEA,GAAoBvB,KAAKM,KAAKC,WACjDiB,EAAWL,EAAiBG,EAAkBC,EACpDC,GAAYA,EAASN,EAAM,GAGnC,CACAO,KAAAA,GACIzB,KAAKG,eACT,CACAuB,MAAAA,GACI,GAAoC,oBAAzBC,qBACP,OACJ,MAAMC,MAAEA,EAAKC,UAAEA,GAAc7B,KAAKM,
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from '../Feature.mjs';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n"],"names":["thresholdNames","some","all","InViewFeature","Feature","constructor","super","arguments","this","hasEnteredView","isInView","startObserver","unmount","viewport","node","getProps","root","margin","rootMargin","amount","once","options","current","undefined","threshold","observeIntersection","entry","isIntersecting","animationState","setActive","onViewportEnter","onViewportLeave","callback","mount","update","IntersectionObserver","props","prevProps","hasOptionsChanged","_ref","prevViewport","length","name","hasViewportOptionChanged"],"mappings":"uIAGA,MAAMA,EAAiB,CACnBC,KAAM,EACNC,IAAK,GAET,MAAMC,UAAsBC,EAAAA,QACxBC,WAAAA,GACIC,SAASC,WACTC,KAAKC,gBAAiB,EACtBD,KAAKE,UAAW,CACpB,CACAC,aAAAA,GACIH,KAAKI,UACL,MAAMC,SAAEA,EAAW,CAAC,GAAML,KAAKM,KAAKC,YAC9BC,KAAEA,EAAMC,OAAQC,EAAUC,OAAEA,EAAS,OAAMC,KAAEA,GAASP,EACtDQ,EAAU,CACZL,KAAMA,EAAOA,EAAKM,aAAUC,EAC5BL,aACAM,UAA6B,iBAAXL,EAAsBA,EAASnB,EAAemB,IA+BpE,OAAOM,EAAAA,oBAAoBjB,KAAKM,KAAKQ,QAASD,GA7BhBK,IAC1B,MAAMC,eAAEA,GAAmBD,EAI3B,GAAIlB,KAAKE,WAAaiB,EAClB,OAMJ,GALAnB,KAAKE,SAAWiB,EAKZP,IAASO,GAAkBnB,KAAKC,eAChC,OAEKkB,IACLnB,KAAKC,gBAAiB,GAEtBD,KAAKM,KAAKc,gBACVpB,KAAKM,KAAKc,eAAeC,UAAU,cAAeF,GAMtD,MAAMG,gBAAEA,EAAeC,gBAAEA,GAAoBvB,KAAKM,KAAKC,WACjDiB,EAAWL,EAAiBG,EAAkBC,EACpDC,GAAYA,EAASN,EAAM,GAGnC,CACAO,KAAAA,GACIzB,KAAKG,eACT,CACAuB,MAAAA,GACI,GAAoC,oBAAzBC,qBACP,OACJ,MAAMC,MAAEA,EAAKC,UAAEA,GAAc7B,KAAKM,KAC5BwB,EAAoB,CAAC,SAAU,SAAU,QAAQrC,KAO/D,SAAiCsC,GAA0D,IAAzD1B,SAAEA,EAAW,CAAC,GAAG0B,GAAI1B,SAAU2B,EAAe,CAAC,GAAGjC,UAAAkC,OAAAlC,QAAAgB,IAAAhB,UAAAgB,GAAAhB,UAAG,GAAA,GACnF,OAAQmC,GAAS7B,EAAS6B,KAAUF,EAAaE,EACrD,CAToEC,CAAyBP,EAAOC,IACxFC,GACA9B,KAAKG,eAEb,CACAC,OAAAA,GAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=new WeakMap,t=new WeakMap,n=t=>{const n=e.get(t.target);n&&n(t)},o=e=>{e.forEach(n)};exports.observeIntersection=function(n,r,s){const c=function({root:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=new WeakMap,t=new WeakMap,n=t=>{const n=e.get(t.target);n&&n(t)},o=e=>{e.forEach(n)};exports.observeIntersection=function(n,r,s){const c=function(e){let{root:n,...r}=e;const s=n||document;t.has(s)||t.set(s,{});const c=t.get(s),u=JSON.stringify(r);return c[u]||(c[u]=new IntersectionObserver(o,{root:n,...r})),c[u]}(r);return e.set(n,s),c.observe(n),()=>{e.delete(n),c.unobserve(n)}};
|
|
2
2
|
//# sourceMappingURL=observers.mjs.js.map
|
package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observers.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n"],"names":["observerCallbacks","WeakMap","observers","fireObserverCallback","entry","callback","get","target","fireAllObserverCallbacks","entries","forEach","element","options","rootInteresectionObserver","root","lookupRoot","document","has","set","rootObservers","key","JSON","stringify","IntersectionObserver","initIntersectionObserver","observe","delete","unobserve"],"mappings":"oEAKA,MAAMA,EAAoB,IAAIC,QAMxBC,EAAY,IAAID,QAChBE,EAAwBC,IAC1B,MAAMC,EAAWL,EAAkBM,IAAIF,EAAMG,QAC7CF,GAAYA,EAASD,EAAM,EAEzBI,EAA4BC,IAC9BA,EAAQC,QAAQP,EAAqB,8BAqBzC,SAA6BQ,EAASC,EAASP,GAC3C,MAAMQ,EApBV,
|
|
1
|
+
{"version":3,"file":"observers.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n"],"names":["observerCallbacks","WeakMap","observers","fireObserverCallback","entry","callback","get","target","fireAllObserverCallbacks","entries","forEach","element","options","rootInteresectionObserver","_ref","root","lookupRoot","document","has","set","rootObservers","key","JSON","stringify","IntersectionObserver","initIntersectionObserver","observe","delete","unobserve"],"mappings":"oEAKA,MAAMA,EAAoB,IAAIC,QAMxBC,EAAY,IAAID,QAChBE,EAAwBC,IAC1B,MAAMC,EAAWL,EAAkBM,IAAIF,EAAMG,QAC7CF,GAAYA,EAASD,EAAM,EAEzBI,EAA4BC,IAC9BA,EAAQC,QAAQP,EAAqB,8BAqBzC,SAA6BQ,EAASC,EAASP,GAC3C,MAAMQ,EApBV,SAAiCC,GAAuB,IAAtBC,KAAEA,KAASH,GAASE,EAClD,MAAME,EAAaD,GAAQE,SAItBf,EAAUgB,IAAIF,IACfd,EAAUiB,IAAIH,EAAY,CAAA,GAE9B,MAAMI,EAAgBlB,EAAUI,IAAIU,GAC9BK,EAAMC,KAAKC,UAAUX,GAQ3B,OAHKQ,EAAcC,KACfD,EAAcC,GAAO,IAAIG,qBAAqBhB,EAA0B,CAAEO,UAASH,KAEhFQ,EAAcC,EACzB,CAEsCI,CAAyBb,GAG3D,OAFAZ,EAAkBmB,IAAIR,EAASN,GAC/BQ,EAA0Ba,QAAQf,GAC3B,KACHX,EAAkB2B,OAAOhB,GACzBE,EAA0Be,UAAUjB,EAAQ,CAEpD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../react/jsx-runtime.js");var e=require("react"),t=require("../context/LayoutGroupContext.mjs.js"),o=require("../context/LazyContext.mjs.js"),n=require("../context/MotionConfigContext.mjs.js"),r=require("../context/MotionContext/index.mjs.js"),s=require("../context/MotionContext/create.mjs.js"),i=require("../utils/is-browser.mjs.js"),u=require("./features/definitions.mjs.js"),a=require("./features/load-features.mjs.js"),l=require("./utils/symbol.mjs.js"),m=require("./utils/use-motion-ref.mjs.js"),c=require("./utils/use-visual-element.mjs.js"),j=require("../../../../../_virtual/jsx-runtime.js"),d=require("../../../../motion-utils/dist/es/errors.mjs.js");function x({layoutId:o
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../react/jsx-runtime.js");var e=require("react"),t=require("../context/LayoutGroupContext.mjs.js"),o=require("../context/LazyContext.mjs.js"),n=require("../context/MotionConfigContext.mjs.js"),r=require("../context/MotionContext/index.mjs.js"),s=require("../context/MotionContext/create.mjs.js"),i=require("../utils/is-browser.mjs.js"),u=require("./features/definitions.mjs.js"),a=require("./features/load-features.mjs.js"),l=require("./utils/symbol.mjs.js"),m=require("./utils/use-motion-ref.mjs.js"),c=require("./utils/use-visual-element.mjs.js"),j=require("../../../../../_virtual/jsx-runtime.js"),d=require("../../../../motion-utils/dist/es/errors.mjs.js");function x(o){let{layoutId:n}=o;const r=e.useContext(t.LayoutGroupContext).id;return r&&void 0!==n?r+"-"+n:n}exports.createRendererMotionComponent=function(t){let{preloadedFeatures:f,createVisualElement:p,useRender:C,useVisualState:v,Component:y}=t;function q(t,a){let l;const q={...e.useContext(n.MotionConfigContext),...t,layoutId:x(t)},{isStatic:M}=q,E=s.useCreateMotionContext(t),L=v(t,M);if(!M&&i.isBrowser){!function(t,n){const r=e.useContext(o.LazyContext).strict;if("production"!==process.env.NODE_ENV&&n&&r){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?d.warning(!1,e):d.invariant(!1,e)}}(q,f);const t=function(e){const{drag:t,layout:o}=u.featureDefinitions;if(!t&&!o)return{};const n={...t,...o};return{MeasureLayout:t?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(q);l=t.MeasureLayout,E.visualElement=c.useVisualElement(y,L,q,p,t.ProjectionNode)}return j.exports.jsxs(r.MotionContext.Provider,{value:E,children:[l&&E.visualElement?j.exports.jsx(l,{visualElement:E.visualElement,...q}):null,C(y,t,m.useMotionRef(L,E.visualElement,a),L,M,E.visualElement)]})}f&&a.loadFeatures(f),q.displayName=`motion.${"string"==typeof y?y:`create(${y.displayName??y.name??""})`}`;const M=e.forwardRef(q);return M[l.motionComponentSymbol]=y,M};
|
|
2
2
|
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { isBrowser } from '../utils/is-browser.mjs';\nimport { featureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createRendererMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n function MotionComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && isBrowser) {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)] }));\n }\n MotionComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage)\n : invariant(false, strictMessage);\n }\n}\nfunction getProjectionFunctionality(props) {\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createRendererMotionComponent };\n"],"names":["useLayoutId","layoutId","layoutGroupId","useContext","LayoutGroupContext","id","undefined","preloadedFeatures","createVisualElement","useRender","useVisualState","Component","MotionComponent","props","externalRef","MeasureLayout","configAndProps","MotionConfigContext","isStatic","context","useCreateMotionContext","visualState","isBrowser","isStrict","LazyContext","strict","process","env","NODE_ENV","strictMessage","ignoreStrict","warning","invariant","useStrictMode","layoutProjection","drag","layout","featureDefinitions","combined","isEnabled","ProjectionNode","getProjectionFunctionality","visualElement","useVisualElement","jsxs","exports","MotionContext","Provider","value","children","jsx","useMotionRef","loadFeatures","displayName","name","ForwardRefMotionComponent","forwardRef","motionComponentSymbol"],"mappings":"2uBAkEA,SAASA,
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { isBrowser } from '../utils/is-browser.mjs';\nimport { featureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createRendererMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n function MotionComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && isBrowser) {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)] }));\n }\n MotionComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage)\n : invariant(false, strictMessage);\n }\n}\nfunction getProjectionFunctionality(props) {\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createRendererMotionComponent };\n"],"names":["useLayoutId","_ref2","layoutId","layoutGroupId","useContext","LayoutGroupContext","id","undefined","_ref","preloadedFeatures","createVisualElement","useRender","useVisualState","Component","MotionComponent","props","externalRef","MeasureLayout","configAndProps","MotionConfigContext","isStatic","context","useCreateMotionContext","visualState","isBrowser","isStrict","LazyContext","strict","process","env","NODE_ENV","strictMessage","ignoreStrict","warning","invariant","useStrictMode","layoutProjection","drag","layout","featureDefinitions","combined","isEnabled","ProjectionNode","getProjectionFunctionality","visualElement","useVisualElement","jsxs","exports","MotionContext","Provider","value","children","jsx","useMotionRef","loadFeatures","displayName","name","ForwardRefMotionComponent","forwardRef","motionComponentSymbol"],"mappings":"2uBAkEA,SAASA,EAAWC,GAAe,IAAdC,SAAEA,GAAUD,EAC7B,MAAME,EAAgBC,EAAAA,WAAWC,EAAkBA,oBAAEC,GACrD,OAAOH,QAA8BI,IAAbL,EAClBC,EAAgB,IAAMD,EACtBA,CACV,uCA9CA,SAAsCM,GAAoF,IAAnFC,kBAAEA,EAAiBC,oBAAEA,EAAmBC,UAAEA,EAASC,eAAEA,EAAcC,UAAEA,GAAYL,EAEpH,SAASM,EAAgBC,EAAOC,GAK5B,IAAIC,EACJ,MAAMC,EAAiB,IAChBd,EAAAA,WAAWe,EAAAA,wBACXJ,EACHb,SAAUF,EAAYe,KAEpBK,SAAEA,GAAaF,EACfG,EAAUC,yBAAuBP,GACjCQ,EAAcX,EAAeG,EAAOK,GAC1C,IAAKA,GAAYI,YAAW,EA+BpC,SAAuBN,EAAgBT,GACnC,MAAMgB,EAAWrB,EAAAA,WAAWsB,EAAWA,aAAEC,OAKzC,GAA6B,eAAzBC,QAAQC,IAAIC,UACZrB,GACAgB,EAAU,CACV,MAAMM,EAAgB,mJACtBb,EAAec,aACTC,EAAAA,SAAQ,EAAOF,GACfG,EAASA,WAAC,EAAOH,EAC3B,CACJ,CA5CYI,CAAcjB,EAAgBT,GAC9B,MAAM2B,EA4ClB,SAAoCrB,GAChC,MAAMsB,KAAEA,EAAIC,OAAEA,GAAWC,qBACzB,IAAKF,IAASC,EACV,MAAO,CAAA,EACX,MAAME,EAAW,IAAKH,KAASC,GAC/B,MAAO,CACHrB,cAAeoB,GAAMI,UAAU1B,IAAUuB,GAAQG,UAAU1B,GACrDyB,EAASvB,mBACTV,EACNmC,eAAgBF,EAASE,eAEjC,CAvDqCC,CAA2BzB,GACpDD,EAAgBmB,EAAiBnB,cAOjCI,EAAQuB,cAAgBC,EAAgBA,iBAAChC,EAAWU,EAAaL,EAAgBR,EAAqB0B,EAAiBM,eAC3H,CAKA,OAAQI,EAAIC,QAAAD,KAACE,EAAaA,cAACC,SAAU,CAAEC,MAAO7B,EAAS8B,SAAU,CAAClC,GAAiBI,EAAQuB,cAAiBQ,EAAAA,QAAAA,IAAInC,EAAe,CAAE2B,cAAevB,EAAQuB,iBAAkB1B,IAAqB,KAAMP,EAAUE,EAAWE,EAAOsC,EAAYA,aAAC9B,EAAaF,EAAQuB,cAAe5B,GAAcO,EAAaH,EAAUC,EAAQuB,iBACnU,CAhCAnC,GAAqB6C,EAAAA,aAAa7C,GAiClCK,EAAgByC,YAAc,UAA+B,iBAAd1C,EACzCA,EACA,UAAUA,EAAU0C,aAAe1C,EAAU2C,MAAQ,QAC3D,MAAMC,EAA4BC,aAAW5C,GAE7C,OADA2C,EAA0BE,EAAAA,uBAAyB9C,EAC5C4C,CACX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../projection/styles/scale-correction.mjs.js"),r=require("../../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js");exports.isForcedMotionValue=function(o,s){let{layout:t,layoutId:i}=s;return r.transformProps.has(o)||o.startsWith("origin")||(t||void 0!==i)&&(!!e.scaleCorrectors[o]||"opacity"===o)};
|
|
2
2
|
//# sourceMappingURL=is-forced-motion-value.mjs.js.map
|
package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-forced-motion-value.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs"],"sourcesContent":["import { transformProps } from 'motion-dom';\nimport { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';\n\nfunction isForcedMotionValue(key, { layout, layoutId }) {\n return (transformProps.has(key) ||\n key.startsWith(\"origin\") ||\n ((layout || layoutId !== undefined) &&\n (!!scaleCorrectors[key] || key === \"opacity\")));\n}\n\nexport { isForcedMotionValue };\n"],"names":["key","layout","layoutId","transformProps","has","startsWith","undefined","scaleCorrectors"],"mappings":"mPAGA,SAA6BA,
|
|
1
|
+
{"version":3,"file":"is-forced-motion-value.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs"],"sourcesContent":["import { transformProps } from 'motion-dom';\nimport { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';\n\nfunction isForcedMotionValue(key, { layout, layoutId }) {\n return (transformProps.has(key) ||\n key.startsWith(\"origin\") ||\n ((layout || layoutId !== undefined) &&\n (!!scaleCorrectors[key] || key === \"opacity\")));\n}\n\nexport { isForcedMotionValue };\n"],"names":["key","_ref","layout","layoutId","transformProps","has","startsWith","undefined","scaleCorrectors"],"mappings":"mPAGA,SAA6BA,EAAGC,GAAwB,IAAtBC,OAAEA,EAAMC,SAAEA,GAAUF,EAClD,OAAQG,EAAAA,eAAeC,IAAIL,IACvBA,EAAIM,WAAW,YACbJ,QAAuBK,IAAbJ,OACLK,EAAAA,gBAAgBR,IAAgB,YAARA,EACvC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../animation/utils/is-animation-controls.mjs.js"),n=require("../../context/MotionContext/index.mjs.js"),r=require("../../context/PresenceContext.mjs.js"),i=require("../../render/utils/is-controlling-variants.mjs.js"),s=require("../../render/utils/resolve-variants.mjs.js"),o=require("../../utils/use-constant.mjs.js"),a=require("../../value/utils/resolve-motion-value.mjs.js");function l(e,n,r,o){const l={},u=o(e,{});for(const e in u)l[e]=a.resolveMotionValue(u[e]);let{initial:c,animate:m}=e;const j=i.isControllingVariants(e),v=i.isVariantNode(e);n&&v&&!j&&!1!==e.inherit&&(void 0===c&&(c=n.initial),void 0===m&&(m=n.animate));let d=!!r&&!1===r.initial;d=d||!1===c;const f=d?m:c;if(f&&"boolean"!=typeof f&&!t.isAnimationControls(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const r=s.resolveVariantFromProps(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(l[e]=t)}for(const t in e)l[t]=e[t]}}}return l}exports.makeUseVisualState=t=>(i,s)=>{const a=e.useContext(n.MotionContext),u=e.useContext(r.PresenceContext),c=()=>function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../animation/utils/is-animation-controls.mjs.js"),n=require("../../context/MotionContext/index.mjs.js"),r=require("../../context/PresenceContext.mjs.js"),i=require("../../render/utils/is-controlling-variants.mjs.js"),s=require("../../render/utils/resolve-variants.mjs.js"),o=require("../../utils/use-constant.mjs.js"),a=require("../../value/utils/resolve-motion-value.mjs.js");function l(e,n,r,o){const l={},u=o(e,{});for(const e in u)l[e]=a.resolveMotionValue(u[e]);let{initial:c,animate:m}=e;const j=i.isControllingVariants(e),v=i.isVariantNode(e);n&&v&&!j&&!1!==e.inherit&&(void 0===c&&(c=n.initial),void 0===m&&(m=n.animate));let d=!!r&&!1===r.initial;d=d||!1===c;const f=d?m:c;if(f&&"boolean"!=typeof f&&!t.isAnimationControls(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const r=s.resolveVariantFromProps(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(l[e]=t)}for(const t in e)l[t]=e[t]}}}return l}exports.makeUseVisualState=t=>(i,s)=>{const a=e.useContext(n.MotionContext),u=e.useContext(r.PresenceContext),c=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:s}=e;return{latestValues:l(t,n,r,i),renderState:s()}}(t,i,a,u);return s?c():o.useConstant(c)};
|
|
2
2
|
//# sourceMappingURL=use-visual-state.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-visual-state.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs"],"sourcesContent":["import { useContext } from 'react';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { isControllingVariants, isVariantNode } from '../../render/utils/is-controlling-variants.mjs';\nimport { resolveVariantFromProps } from '../../render/utils/resolve-variants.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\n\nfunction makeState({ scrapeMotionValuesFromProps, createRenderState, }, props, context, presenceContext) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n return state;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext);\n return isStatic ? make() : useConstant(make);\n};\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n const values = {};\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n for (let i = 0; i < list.length; i++) {\n const resolved = resolveVariantFromProps(props, list[i]);\n if (resolved) {\n const { transitionEnd, transition, ...target } = resolved;\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd) {\n values[key] = transitionEnd[key];\n }\n }\n }\n }\n return values;\n}\n\nexport { makeUseVisualState };\n"],"names":["makeLatestValues","props","context","presenceContext","scrapeMotionValues","values","motionValues","key","resolveMotionValue","initial","animate","isControllingVariants$1","isControllingVariants","isVariantNode$1","isVariantNode","inherit","undefined","isInitialAnimationBlocked","variantToSet","isAnimationControls","list","Array","isArray","i","length","resolved","resolveVariantFromProps","transitionEnd","transition","target","valueTarget","config","isStatic","useContext","MotionContext","PresenceContext","make","scrapeMotionValuesFromProps","createRenderState","latestValues","renderState","makeState","useConstant"],"mappings":"keAsBA,SAASA,EAAiBC,EAAOC,EAASC,EAAiBC,GACvD,MAAMC,EAAS,CAAA,EACTC,EAAeF,EAAmBH,EAAO,CAAE,GACjD,IAAK,MAAMM,KAAOD,EACdD,EAAOE,GAAOC,EAAAA,mBAAmBF,EAAaC,IAElD,IAAIE,QAAEA,EAAOC,QAAEA,GAAYT,EAC3B,MAAMU,EAA0BC,wBAAsBX,GAChDY,EAAkBC,gBAAcb,GAClCC,GACAW,IACCF,IACiB,IAAlBV,EAAMc,eACUC,IAAZP,IACAA,EAAUP,EAAQO,cACNO,IAAZN,IACAA,EAAUR,EAAQQ,UAE1B,IAAIO,IAA4Bd,IACE,IAA5BA,EAAgBM,QAEtBQ,EAA4BA,IAAyC,IAAZR,EACzD,MAAMS,EAAeD,EAA4BP,EAAUD,EAC3D,GAAIS,GACwB,kBAAjBA,IACNC,EAAAA,oBAAoBD,GAAe,CACpC,MAAME,EAAOC,MAAMC,QAAQJ,GAAgBA,EAAe,CAACA,GAC3D,IAAK,IAAIK,EAAI,EAAGA,EAAIH,EAAKI,OAAQD,IAAK,CAClC,MAAME,EAAWC,EAAAA,wBAAwBzB,EAAOmB,EAAKG,IACrD,GAAIE,EAAU,CACV,MAAME,cAAEA,EAAaC,WAAEA,KAAeC,GAAWJ,EACjD,IAAK,MAAMlB,KAAOsB,EAAQ,CACtB,IAAIC,EAAcD,EAAOtB,GACzB,GAAIc,MAAMC,QAAQQ,GAAc,CAQ5BA,EAAcA,EAHAb,EACRa,EAAYN,OAAS,EACrB,EAEV,CACoB,OAAhBM,IACAzB,EAAOE,GAAOuB,EAEtB,CACA,IAAK,MAAMvB,KAAOoB,EACdtB,EAAOE,GAAOoB,EAAcpB,EAEpC,CACJ,CACJ,CACA,OAAOF,CACX,4BA5D4B0B,GAAW,CAAC9B,EAAO+B,KAC3C,MAAM9B,EAAU+B,aAAWC,EAAAA,eACrB/B,EAAkB8B,aAAWE,EAAAA,iBAC7BC,EAAOA,IAVjB,
|
|
1
|
+
{"version":3,"file":"use-visual-state.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs"],"sourcesContent":["import { useContext } from 'react';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { isControllingVariants, isVariantNode } from '../../render/utils/is-controlling-variants.mjs';\nimport { resolveVariantFromProps } from '../../render/utils/resolve-variants.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\n\nfunction makeState({ scrapeMotionValuesFromProps, createRenderState, }, props, context, presenceContext) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n return state;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext);\n return isStatic ? make() : useConstant(make);\n};\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n const values = {};\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n for (let i = 0; i < list.length; i++) {\n const resolved = resolveVariantFromProps(props, list[i]);\n if (resolved) {\n const { transitionEnd, transition, ...target } = resolved;\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd) {\n values[key] = transitionEnd[key];\n }\n }\n }\n }\n return values;\n}\n\nexport { makeUseVisualState };\n"],"names":["makeLatestValues","props","context","presenceContext","scrapeMotionValues","values","motionValues","key","resolveMotionValue","initial","animate","isControllingVariants$1","isControllingVariants","isVariantNode$1","isVariantNode","inherit","undefined","isInitialAnimationBlocked","variantToSet","isAnimationControls","list","Array","isArray","i","length","resolved","resolveVariantFromProps","transitionEnd","transition","target","valueTarget","config","isStatic","useContext","MotionContext","PresenceContext","make","_ref","scrapeMotionValuesFromProps","createRenderState","latestValues","renderState","makeState","useConstant"],"mappings":"keAsBA,SAASA,EAAiBC,EAAOC,EAASC,EAAiBC,GACvD,MAAMC,EAAS,CAAA,EACTC,EAAeF,EAAmBH,EAAO,CAAE,GACjD,IAAK,MAAMM,KAAOD,EACdD,EAAOE,GAAOC,EAAAA,mBAAmBF,EAAaC,IAElD,IAAIE,QAAEA,EAAOC,QAAEA,GAAYT,EAC3B,MAAMU,EAA0BC,wBAAsBX,GAChDY,EAAkBC,gBAAcb,GAClCC,GACAW,IACCF,IACiB,IAAlBV,EAAMc,eACUC,IAAZP,IACAA,EAAUP,EAAQO,cACNO,IAAZN,IACAA,EAAUR,EAAQQ,UAE1B,IAAIO,IAA4Bd,IACE,IAA5BA,EAAgBM,QAEtBQ,EAA4BA,IAAyC,IAAZR,EACzD,MAAMS,EAAeD,EAA4BP,EAAUD,EAC3D,GAAIS,GACwB,kBAAjBA,IACNC,EAAAA,oBAAoBD,GAAe,CACpC,MAAME,EAAOC,MAAMC,QAAQJ,GAAgBA,EAAe,CAACA,GAC3D,IAAK,IAAIK,EAAI,EAAGA,EAAIH,EAAKI,OAAQD,IAAK,CAClC,MAAME,EAAWC,EAAAA,wBAAwBzB,EAAOmB,EAAKG,IACrD,GAAIE,EAAU,CACV,MAAME,cAAEA,EAAaC,WAAEA,KAAeC,GAAWJ,EACjD,IAAK,MAAMlB,KAAOsB,EAAQ,CACtB,IAAIC,EAAcD,EAAOtB,GACzB,GAAIc,MAAMC,QAAQQ,GAAc,CAQ5BA,EAAcA,EAHAb,EACRa,EAAYN,OAAS,EACrB,EAEV,CACoB,OAAhBM,IACAzB,EAAOE,GAAOuB,EAEtB,CACA,IAAK,MAAMvB,KAAOoB,EACdtB,EAAOE,GAAOoB,EAAcpB,EAEpC,CACJ,CACJ,CACA,OAAOF,CACX,4BA5D4B0B,GAAW,CAAC9B,EAAO+B,KAC3C,MAAM9B,EAAU+B,aAAWC,EAAAA,eACrB/B,EAAkB8B,aAAWE,EAAAA,iBAC7BC,EAAOA,IAVjB,SAAkBC,EAAsDpC,EAAOC,EAASC,GAAiB,IAAtFmC,4BAAEA,EAA2BC,kBAAEA,GAAoBF,EAKlE,MAJc,CACVG,aAAcxC,EAAiBC,EAAOC,EAASC,EAAiBmC,GAChEG,YAAaF,IAGrB,CAIuBG,CAAUX,EAAQ9B,EAAOC,EAASC,GACrD,OAAO6B,EAAWI,IAASO,EAAWA,YAACP,EAAK"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertBoundingBoxToBox=function({top:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertBoundingBoxToBox=function(t){let{top:o,left:e,right:n,bottom:r}=t;return{x:{min:e,max:n},y:{min:o,max:r}}},exports.convertBoxToBoundingBox=function(t){let{x:o,y:e}=t;return{top:e.min,right:o.max,bottom:e.max,left:o.min}},exports.transformBoxPoints=function(t,o){if(!o)return t;const e=o({x:t.left,y:t.top}),n=o({x:t.right,y:t.bottom});return{top:e.y,left:e.x,bottom:n.y,right:n.x}};
|
|
2
2
|
//# sourceMappingURL=conversion.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversion.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs"],"sourcesContent":["/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n"],"names":["top","left","right","bottom","x","min","max","y","point","transformPoint","topLeft","bottomRight"],"mappings":"oGAKA,
|
|
1
|
+
{"version":3,"file":"conversion.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs"],"sourcesContent":["/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n"],"names":["_ref","top","left","right","bottom","x","min","max","y","_ref2","point","transformPoint","topLeft","bottomRight"],"mappings":"oGAKA,SAAgCA,GAAgC,IAA/BC,IAAEA,EAAGC,KAAEA,EAAIC,MAAEA,EAAKC,OAAEA,GAASJ,EAC1D,MAAO,CACHK,EAAG,CAAEC,IAAKJ,EAAMK,IAAKJ,GACrBK,EAAG,CAAEF,IAAKL,EAAKM,IAAKH,GAE5B,kCACA,SAAgCK,GAAW,IAAVJ,EAAEA,EAACG,EAAEA,GAAGC,EACrC,MAAO,CAAER,IAAKO,EAAEF,IAAKH,MAAOE,EAAEE,IAAKH,OAAQI,EAAED,IAAKL,KAAMG,EAAEC,IAC9D,6BAMA,SAA4BI,EAAOC,GAC/B,IAAKA,EACD,OAAOD,EACX,MAAME,EAAUD,EAAe,CAAEN,EAAGK,EAAMR,KAAMM,EAAGE,EAAMT,MACnDY,EAAcF,EAAe,CAAEN,EAAGK,EAAMP,MAAOK,EAAGE,EAAMN,SAC9D,MAAO,CACHH,IAAKW,EAAQJ,EACbN,KAAMU,EAAQP,EACdD,OAAQS,EAAYL,EACpBL,MAAOU,EAAYR,EAE3B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../utils/has-transform.mjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../utils/has-transform.mjs.js"),e=require("../../../../../motion-dom/dist/es/utils/mix/number.mjs.js");function o(t,e,o){return o+e*(t-o)}function s(t,e,s,n,l){return void 0!==l&&(t=o(t,l,n)),o(t,s,n)+e}function n(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;t.min=s(t.min,e,o,n,l),t.max=s(t.max,e,o,n,l)}function l(t,e){let{x:o,y:s}=e;n(t.x,o.translate,o.scale,o.originPoint),n(t.y,s.translate,s.scale,s.originPoint)}const i=.999999999999,r=1.0000000000001;function a(t,o,s,l){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;n(t,o,s,e.mixNumber(t.min,t.max,i),l)}function x(t,e){a(t.x,e.x,e.scaleX,e.scale,e.originX),a(t.y,e.y,e.scaleY,e.scale,e.originY)}exports.applyAxisDelta=n,exports.applyBoxDelta=l,exports.applyPointDelta=s,exports.applyTreeDeltas=function(e,o,s){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=s.length;if(!a)return;let c,p;o.x=o.y=1;for(let i=0;i<a;i++){c=s[i],p=c.projectionDelta;const{visualElement:r}=c.options;r&&r.props.style&&"contents"===r.props.style.display||(n&&c.options.layoutScroll&&c.scroll&&c!==c.root&&x(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),p&&(o.x*=p.x.scale,o.y*=p.y.scale,l(e,p)),n&&t.hasTransform(c.latestValues)&&x(e,c.latestValues))}o.x<r&&o.x>i&&(o.x=1),o.y<r&&o.y>i&&(o.y=1)},exports.scalePoint=o,exports.transformAxis=a,exports.transformBox=x,exports.translateAxis=function(t,e){t.min=t.min+e,t.max=t.max+e};
|
|
2
2
|
//# sourceMappingURL=delta-apply.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-apply.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs"],"sourcesContent":["import { mixNumber } from 'motion-dom';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nconst TREE_SCALE_SNAP_MIN = 0.999999999999;\nconst TREE_SCALE_SNAP_MAX = 1.0000000000001;\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const { visualElement } = node.options;\n if (visualElement &&\n visualElement.props.style &&\n visualElement.props.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n if (treeScale.x < TREE_SCALE_SNAP_MAX &&\n treeScale.x > TREE_SCALE_SNAP_MIN) {\n treeScale.x = 1.0;\n }\n if (treeScale.y < TREE_SCALE_SNAP_MAX &&\n treeScale.y > TREE_SCALE_SNAP_MIN) {\n treeScale.y = 1.0;\n }\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform.x, transform.scaleX, transform.scale, transform.originX);\n transformAxis(box.y, transform.y, transform.scaleY, transform.scale, transform.originY);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n"],"names":["scalePoint","point","scale","originPoint","applyPointDelta","translate","boxScale","undefined","applyAxisDelta","axis","min","max","applyBoxDelta","box","x","y","TREE_SCALE_SNAP_MIN","TREE_SCALE_SNAP_MAX","transformAxis","axisTranslate","axisScale","axisOrigin","mixNumber","transformBox","transform","scaleX","originX","scaleY","originY","treeScale","treePath","isSharedTransition","treeLength","
|
|
1
|
+
{"version":3,"file":"delta-apply.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs"],"sourcesContent":["import { mixNumber } from 'motion-dom';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nconst TREE_SCALE_SNAP_MIN = 0.999999999999;\nconst TREE_SCALE_SNAP_MAX = 1.0000000000001;\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const { visualElement } = node.options;\n if (visualElement &&\n visualElement.props.style &&\n visualElement.props.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n if (treeScale.x < TREE_SCALE_SNAP_MAX &&\n treeScale.x > TREE_SCALE_SNAP_MIN) {\n treeScale.x = 1.0;\n }\n if (treeScale.y < TREE_SCALE_SNAP_MAX &&\n treeScale.y > TREE_SCALE_SNAP_MIN) {\n treeScale.y = 1.0;\n }\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform.x, transform.scaleX, transform.scale, transform.originX);\n transformAxis(box.y, transform.y, transform.scaleY, transform.scale, transform.originY);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n"],"names":["scalePoint","point","scale","originPoint","applyPointDelta","translate","boxScale","undefined","applyAxisDelta","axis","arguments","length","min","max","applyBoxDelta","box","_ref","x","y","TREE_SCALE_SNAP_MIN","TREE_SCALE_SNAP_MAX","transformAxis","axisTranslate","axisScale","axisOrigin","mixNumber","transformBox","transform","scaleX","originX","scaleY","originY","treeScale","treePath","isSharedTransition","treeLength","node","delta","i","projectionDelta","visualElement","options","props","style","display","layoutScroll","scroll","root","offset","hasTransform","latestValues","distance"],"mappings":"0LAMA,SAASA,EAAWC,EAAOC,EAAOC,GAG9B,OAAOA,EADQD,GADYD,EAAQE,EAGvC,CAIA,SAASC,EAAgBH,EAAOI,EAAWH,EAAOC,EAAaG,GAI3D,YAHiBC,IAAbD,IACAL,EAAQD,EAAWC,EAAOK,EAAUH,IAEjCH,EAAWC,EAAOC,EAAOC,GAAeE,CACnD,CAIA,SAASG,EAAeC,GAAuD,IAAjDJ,EAASK,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,EAAGR,EAAKQ,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,EAAGP,EAAWO,UAAAC,OAAAD,EAAAA,kBAAAH,EAAED,EAAQI,UAAAC,OAAAD,EAAAA,kBAAAH,EACzEE,EAAKG,IAAMR,EAAgBK,EAAKG,IAAKP,EAAWH,EAAOC,EAAaG,GACpEG,EAAKI,IAAMT,EAAgBK,EAAKI,IAAKR,EAAWH,EAAOC,EAAaG,EACxE,CAIA,SAASQ,EAAcC,EAAGC,GAAY,IAAVC,EAAEA,EAACC,EAAEA,GAAGF,EAChCR,EAAeO,EAAIE,EAAGA,EAAEZ,UAAWY,EAAEf,MAAOe,EAAEd,aAC9CK,EAAeO,EAAIG,EAAGA,EAAEb,UAAWa,EAAEhB,MAAOgB,EAAEf,YAClD,CACA,MAAMgB,EAAsB,cACtBC,EAAsB,gBAsE5B,SAASC,EAAcZ,EAAMa,EAAeC,EAAWjB,GAA4B,IAAlBkB,EAAUd,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,GAG1EF,EAAeC,EAAMa,EAAeC,EAFhBE,EAAAA,UAAUhB,EAAKG,IAAKH,EAAKI,IAAKW,GAEUlB,EAChE,CAIA,SAASoB,EAAaX,EAAKY,GACvBN,EAAcN,EAAIE,EAAGU,EAAUV,EAAGU,EAAUC,OAAQD,EAAUzB,MAAOyB,EAAUE,SAC/ER,EAAcN,EAAIG,EAAGS,EAAUT,EAAGS,EAAUG,OAAQH,EAAUzB,MAAOyB,EAAUI,QACnF,oGA1EA,SAAyBhB,EAAKiB,EAAWC,GAAsC,IAA5BC,EAAkBxB,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,IAAAA,UAAA,GACjE,MAAMyB,EAAaF,EAAStB,OAC5B,IAAKwB,EACD,OAGJ,IAAIC,EACAC,EAFJL,EAAUf,EAAIe,EAAUd,EAAI,EAG5B,IAAK,IAAIoB,EAAI,EAAGA,EAAIH,EAAYG,IAAK,CACjCF,EAAOH,EAASK,GAChBD,EAAQD,EAAKG,gBAKb,MAAMC,cAAEA,GAAkBJ,EAAKK,QAC3BD,GACAA,EAAcE,MAAMC,OACkB,aAAtCH,EAAcE,MAAMC,MAAMC,UAG1BV,GACAE,EAAKK,QAAQI,cACbT,EAAKU,QACLV,IAASA,EAAKW,MACdrB,EAAaX,EAAK,CACdE,GAAImB,EAAKU,OAAOE,OAAO/B,EACvBC,GAAIkB,EAAKU,OAAOE,OAAO9B,IAG3BmB,IAEAL,EAAUf,GAAKoB,EAAMpB,EAAEf,MACvB8B,EAAUd,GAAKmB,EAAMnB,EAAEhB,MAEvBY,EAAcC,EAAKsB,IAEnBH,GAAsBe,EAAAA,aAAab,EAAKc,eACxCxB,EAAaX,EAAKqB,EAAKc,cAE/B,CAKIlB,EAAUf,EAAIG,GACdY,EAAUf,EAAIE,IACda,EAAUf,EAAI,GAEde,EAAUd,EAAIE,GACdY,EAAUd,EAAIC,IACda,EAAUd,EAAI,EAEtB,4FACA,SAAuBT,EAAM0C,GACzB1C,EAAKG,IAAMH,EAAKG,IAAMuC,EACtB1C,EAAKI,IAAMJ,EAAKI,IAAMsC,CAC1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../motion-dom/dist/es/utils/mix/number.mjs.js");const n=.9999,t=1.0001,e=-.01,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../motion-dom/dist/es/utils/mix/number.mjs.js");const n=.9999,t=1.0001,e=-.01,o=.01;function a(i){return i.max-i.min}function s(s,r,x){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;s.origin=c,s.originPoint=i.mixNumber(r.min,r.max,s.origin),s.scale=a(x)/a(r),s.translate=i.mixNumber(x.min,x.max,s.origin)-s.originPoint,(s.scale>=n&&s.scale<=t||isNaN(s.scale))&&(s.scale=1),(s.translate>=e&&s.translate<=o||isNaN(s.translate))&&(s.translate=0)}function r(i,n,t){i.min=t.min+n.min,i.max=i.min+a(n)}function x(i,n,t){i.min=n.min-t.min,i.max=i.min+a(n)}exports.calcAxisDelta=s,exports.calcBoxDelta=function(i,n,t,e){s(i.x,n.x,t.x,e?e.originX:void 0),s(i.y,n.y,t.y,e?e.originY:void 0)},exports.calcLength=a,exports.calcRelativeAxis=r,exports.calcRelativeAxisPosition=x,exports.calcRelativeBox=function(i,n,t){r(i.x,n.x,t.x),r(i.y,n.y,t.y)},exports.calcRelativePosition=function(i,n,t){x(i.x,n.x,t.x),x(i.y,n.y,t.y)},exports.isNear=function(i,n,t){return Math.abs(i-n)<=t};
|
|
2
2
|
//# sourceMappingURL=delta-calc.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-calc.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs"],"sourcesContent":["import { mixNumber } from 'motion-dom';\n\nconst SCALE_PRECISION = 0.0001;\nconst SCALE_MIN = 1 - SCALE_PRECISION;\nconst SCALE_MAX = 1 + SCALE_PRECISION;\nconst TRANSLATE_PRECISION = 0.01;\nconst TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nconst TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n delta.translate =\n mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n if ((delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX) ||\n isNaN(delta.scale)) {\n delta.scale = 1.0;\n }\n if ((delta.translate >= TRANSLATE_MIN &&\n delta.translate <= TRANSLATE_MAX) ||\n isNaN(delta.translate)) {\n delta.translate = 0.0;\n }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent) {\n target.min = parent.min + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent) {\n calcRelativeAxis(target.x, relative.x, parent.x);\n calcRelativeAxis(target.y, relative.y, parent.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent) {\n target.min = layout.min - parent.min;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n"],"names":["SCALE_MIN","SCALE_MAX","TRANSLATE_MIN","TRANSLATE_MAX","calcLength","axis","max","min","calcAxisDelta","delta","source","target","origin","originPoint","mixNumber","scale","translate","isNaN","calcRelativeAxis","relative","parent","calcRelativeAxisPosition","layout","x","originX","
|
|
1
|
+
{"version":3,"file":"delta-calc.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs"],"sourcesContent":["import { mixNumber } from 'motion-dom';\n\nconst SCALE_PRECISION = 0.0001;\nconst SCALE_MIN = 1 - SCALE_PRECISION;\nconst SCALE_MAX = 1 + SCALE_PRECISION;\nconst TRANSLATE_PRECISION = 0.01;\nconst TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nconst TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n delta.translate =\n mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n if ((delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX) ||\n isNaN(delta.scale)) {\n delta.scale = 1.0;\n }\n if ((delta.translate >= TRANSLATE_MIN &&\n delta.translate <= TRANSLATE_MAX) ||\n isNaN(delta.translate)) {\n delta.translate = 0.0;\n }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent) {\n target.min = parent.min + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent) {\n calcRelativeAxis(target.x, relative.x, parent.x);\n calcRelativeAxis(target.y, relative.y, parent.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent) {\n target.min = layout.min - parent.min;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n"],"names":["SCALE_MIN","SCALE_MAX","TRANSLATE_MIN","TRANSLATE_MAX","calcLength","axis","max","min","calcAxisDelta","delta","source","target","origin","arguments","length","undefined","originPoint","mixNumber","scale","translate","isNaN","calcRelativeAxis","relative","parent","calcRelativeAxisPosition","layout","x","originX","y","originY","value","maxDistance","Math","abs"],"mappings":"+IAEA,MACMA,EAAY,MACZC,EAAY,OAEZC,GAAgB,IAChBC,EAAgB,IACtB,SAASC,EAAWC,GAChB,OAAOA,EAAKC,IAAMD,EAAKE,GAC3B,CAIA,SAASC,EAAcC,EAAOC,EAAQC,GAAsB,IAAdC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,GACnDJ,EAAMG,OAASA,EACfH,EAAMO,YAAcC,EAASA,UAACP,EAAOH,IAAKG,EAAOJ,IAAKG,EAAMG,QAC5DH,EAAMS,MAAQd,EAAWO,GAAUP,EAAWM,GAC9CD,EAAMU,UACFF,YAAUN,EAAOJ,IAAKI,EAAOL,IAAKG,EAAMG,QAAUH,EAAMO,aACvDP,EAAMS,OAASlB,GAAaS,EAAMS,OAASjB,GAC5CmB,MAAMX,EAAMS,UACZT,EAAMS,MAAQ,IAEbT,EAAMU,WAAajB,GACpBO,EAAMU,WAAahB,GACnBiB,MAAMX,EAAMU,cACZV,EAAMU,UAAY,EAE1B,CAKA,SAASE,EAAiBV,EAAQW,EAAUC,GACxCZ,EAAOJ,IAAMgB,EAAOhB,IAAMe,EAASf,IACnCI,EAAOL,IAAMK,EAAOJ,IAAMH,EAAWkB,EACzC,CAKA,SAASE,EAAyBb,EAAQc,EAAQF,GAC9CZ,EAAOJ,IAAMkB,EAAOlB,IAAMgB,EAAOhB,IACjCI,EAAOL,IAAMK,EAAOJ,IAAMH,EAAWqB,EACzC,8CAfA,SAAsBhB,EAAOC,EAAQC,EAAQC,GACzCJ,EAAcC,EAAMiB,EAAGhB,EAAOgB,EAAGf,EAAOe,EAAGd,EAASA,EAAOe,aAAUZ,GACrEP,EAAcC,EAAMmB,EAAGlB,EAAOkB,EAAGjB,EAAOiB,EAAGhB,EAASA,EAAOiB,aAAUd,EACzE,6GAKA,SAAyBJ,EAAQW,EAAUC,GACvCF,EAAiBV,EAAOe,EAAGJ,EAASI,EAAGH,EAAOG,GAC9CL,EAAiBV,EAAOiB,EAAGN,EAASM,EAAGL,EAAOK,EAClD,+BAKA,SAA8BjB,EAAQc,EAAQF,GAC1CC,EAAyBb,EAAOe,EAAGD,EAAOC,EAAGH,EAAOG,GACpDF,EAAyBb,EAAOiB,EAAGH,EAAOG,EAAGL,EAAOK,EACxD,iBAtCA,SAAgBE,EAAOnB,EAAQoB,GAC3B,OAAOC,KAAKC,IAAIH,EAAQnB,IAAWoB,CACvC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./delta-apply.mjs.js"),i=require("../../../../../motion-dom/dist/es/value/types/numbers/units.mjs.js"),o=require("../../../../../motion-dom/dist/es/utils/mix/number.mjs.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./delta-apply.mjs.js"),i=require("../../../../../motion-dom/dist/es/value/types/numbers/units.mjs.js"),o=require("../../../../../motion-dom/dist/es/utils/mix/number.mjs.js");function t(i,o,t,n,r){return i-=o,i=e.scalePoint(i,1/t,n),void 0!==r&&(i=e.scalePoint(i,1/r,n)),i}function n(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,m=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;if(i.percent.test(n)){n=parseFloat(n);n=o.mixNumber(a.min,a.max,n/100)-a.min}if("number"!=typeof n)return;let u=o.mixNumber(l.min,l.max,s);e===l&&(u-=n),e.min=t(e.min,n,r,u,m),e.max=t(e.max,n,r,u,m)}function r(e,i,o,t,r){let[s,m,l]=o;n(e,i[s],i[m],i[l],i.scale,t,r)}const s=["x","scaleX","originX"],m=["y","scaleY","originY"];exports.removeAxisDelta=n,exports.removeAxisTransforms=r,exports.removeBoxTransforms=function(e,i,o,t){r(e.x,i,s,o?o.x:void 0,t?t.x:void 0),r(e.y,i,m,o?o.y:void 0,t?t.y:void 0)},exports.removePointDelta=t;
|
|
2
2
|
//# sourceMappingURL=delta-remove.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-remove.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs"],"sourcesContent":["import { percent, mixNumber } from 'motion-dom';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n"],"names":["removePointDelta","point","translate","scale","originPoint","boxScale","scalePoint","undefined","removeAxisDelta","axis","origin","originAxis","sourceAxis","percent","test","parseFloat","mixNumber","min","max","removeAxisTransforms","transforms","key","scaleKey","originKey","xKeys","yKeys","box","originBox","sourceBox","x","y"],"mappings":"iQAMA,SAASA,EAAiBC,EAAOC,EAAWC,EAAOC,EAAaC,GAM5D,OALAJ,GAASC,EACTD,EAAQK,EAAUA,WAACL,EAAO,EAAIE,EAAOC,QACpBG,IAAbF,IACAJ,EAAQK,EAAUA,WAACL,EAAO,EAAII,EAAUD,IAErCH,CACX,CAIA,SAASO,EAAgBC,
|
|
1
|
+
{"version":3,"file":"delta-remove.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs"],"sourcesContent":["import { percent, mixNumber } from 'motion-dom';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n"],"names":["removePointDelta","point","translate","scale","originPoint","boxScale","scalePoint","undefined","removeAxisDelta","axis","arguments","length","origin","originAxis","sourceAxis","percent","test","parseFloat","mixNumber","min","max","removeAxisTransforms","transforms","_ref","key","scaleKey","originKey","xKeys","yKeys","box","originBox","sourceBox","x","y"],"mappings":"iQAMA,SAASA,EAAiBC,EAAOC,EAAWC,EAAOC,EAAaC,GAM5D,OALAJ,GAASC,EACTD,EAAQK,EAAUA,WAACL,EAAO,EAAIE,EAAOC,QACpBG,IAAbF,IACAJ,EAAQK,EAAUA,WAACL,EAAO,EAAII,EAAUD,IAErCH,CACX,CAIA,SAASO,EAAgBC,GAA8F,IAAxFP,EAASQ,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,EAAGP,EAAKO,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,EAAGE,EAAMF,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAG,GAAKL,EAAQK,UAAAC,OAAAD,EAAAA,kBAAAH,EAAEM,EAAUH,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAGD,EAAMK,EAAUJ,UAAAC,OAAA,QAAAJ,IAAAG,UAAA,GAAAA,UAAA,GAAGD,EAC7G,GAAIM,EAAOA,QAACC,KAAKd,GAAY,CACzBA,EAAYe,WAAWf,GAEvBA,EADyBgB,EAASA,UAACJ,EAAWK,IAAKL,EAAWM,IAAKlB,EAAY,KAChDY,EAAWK,GAC9C,CACA,GAAyB,iBAAdjB,EACP,OACJ,IAAIE,EAAcc,EAAAA,UAAUL,EAAWM,IAAKN,EAAWO,IAAKR,GACxDH,IAASI,IACTT,GAAeF,GACnBO,EAAKU,IAAMnB,EAAiBS,EAAKU,IAAKjB,EAAWC,EAAOC,EAAaC,GACrEI,EAAKW,IAAMpB,EAAiBS,EAAKW,IAAKlB,EAAWC,EAAOC,EAAaC,EACzE,CAKA,SAASgB,EAAqBZ,EAAMa,EAAUC,EAA8BX,EAAQE,GAAY,IAA/CU,EAAKC,EAAUC,GAAUH,EACtEf,EAAgBC,EAAMa,EAAWE,GAAMF,EAAWG,GAAWH,EAAWI,GAAYJ,EAAWnB,MAAOS,EAAQE,EAClH,CAIA,MAAMa,EAAQ,CAAC,IAAK,SAAU,WACxBC,EAAQ,CAAC,IAAK,SAAU,gGAK9B,SAA6BC,EAAKP,EAAYQ,EAAWC,GACrDV,EAAqBQ,EAAIG,EAAGV,EAAYK,EAAOG,EAAYA,EAAUE,OAAIzB,EAAWwB,EAAYA,EAAUC,OAAIzB,GAC9Gc,EAAqBQ,EAAII,EAAGX,EAAYM,EAAOE,EAAYA,EAAUG,OAAI1B,EAAWwB,EAAYA,EAAUE,OAAI1B,EAClH"}
|