@nethesis/phone-island 1.0.5-dev.4 → 1.0.6
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/README.md +35 -0
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index8.js +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/DisplayName.js +1 -1
- package/dist/components/CallView/DisplayName.js.map +1 -1
- package/dist/components/CallView/DisplayNameUtils.js +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 +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 +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/devices/devices.js +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/@fortawesome/react-fontawesome/index.es.js +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/portal/portal.js +1 -1
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.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/mic-check/lib/index.js +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/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +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 +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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolate.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/interpolate.mjs"],"sourcesContent":["import { invariant, clamp, MotionGlobalConfig, noop, pipe, progress } from 'motion-utils';\nimport { mix } from './mix/index.mjs';\n\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\n/**\n * Create a function that maps from a numerical input array to a generic output array.\n *\n * Accepts:\n * - Numbers\n * - Colors (hex, hsl, hsla, rgb, rgba)\n * - Complex (combinations of one or more numbers or strings)\n *\n * ```jsx\n * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n *\n * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n * ```\n *\n * TODO Revist this approach once we've moved to data models for values,\n * probably not needed to pregenerate mixer functions.\n *\n * @public\n */\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, \"Both input and output ranges must be the same length\");\n /**\n * If we're only provided a single input, we can just make a function\n * that returns the output.\n */\n if (inputLength === 1)\n return () => output[0];\n if (inputLength === 2 && output[0] === output[1])\n return () => output[1];\n const isZeroDeltaRange = input[0] === input[1];\n // If input runs highest -> lowest, reverse both arrays\n if (input[0] > input[inputLength - 1]) {\n input = [...input].reverse();\n output = [...output].reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const numMixers = mixers.length;\n const interpolator = (v) => {\n if (isZeroDeltaRange && v < input[0])\n return output[0];\n let i = 0;\n if (numMixers > 1) {\n for (; i < input.length - 2; i++) {\n if (v < input[i + 1])\n break;\n }\n }\n const progressInRange = progress(input[i], input[i + 1], v);\n return mixers[i](progressInRange);\n };\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n"],"names":["input","output","clamp","isClamp","ease","mixer","
|
|
1
|
+
{"version":3,"file":"interpolate.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/interpolate.mjs"],"sourcesContent":["import { invariant, clamp, MotionGlobalConfig, noop, pipe, progress } from 'motion-utils';\nimport { mix } from './mix/index.mjs';\n\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\n/**\n * Create a function that maps from a numerical input array to a generic output array.\n *\n * Accepts:\n * - Numbers\n * - Colors (hex, hsl, hsla, rgb, rgba)\n * - Complex (combinations of one or more numbers or strings)\n *\n * ```jsx\n * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n *\n * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n * ```\n *\n * TODO Revist this approach once we've moved to data models for values,\n * probably not needed to pregenerate mixer functions.\n *\n * @public\n */\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, \"Both input and output ranges must be the same length\");\n /**\n * If we're only provided a single input, we can just make a function\n * that returns the output.\n */\n if (inputLength === 1)\n return () => output[0];\n if (inputLength === 2 && output[0] === output[1])\n return () => output[1];\n const isZeroDeltaRange = input[0] === input[1];\n // If input runs highest -> lowest, reverse both arrays\n if (input[0] > input[inputLength - 1]) {\n input = [...input].reverse();\n output = [...output].reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const numMixers = mixers.length;\n const interpolator = (v) => {\n if (isZeroDeltaRange && v < input[0])\n return output[0];\n let i = 0;\n if (numMixers > 1) {\n for (; i < input.length - 2; i++) {\n if (v < input[i + 1])\n break;\n }\n }\n const progressInRange = progress(input[i], input[i + 1], v);\n return mixers[i](progressInRange);\n };\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n"],"names":["input","output","clamp","isClamp","ease","mixer","arguments","length","undefined","inputLength","invariant","isZeroDeltaRange","reverse","mixers","customMixer","mixerFactory","MotionGlobalConfig","mix","numMixers","i","easingFunction","Array","isArray","noop","pipe","push","createMixers","interpolator","v","progressInRange","progress"],"mappings":"weAoCA,SAAqBA,EAAOC,GAAqD,IAA3CC,MAAOC,GAAU,EAAIC,KAAEA,EAAIC,MAAEA,GAAOC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAG,GAAA,GACzE,MAAMG,EAAcT,EAAMO,OAM1B,GALAG,EAAAA,UAAUD,IAAgBR,EAAOM,OAAQ,wDAKrB,IAAhBE,EACA,MAAO,IAAMR,EAAO,GACxB,GAAoB,IAAhBQ,GAAqBR,EAAO,KAAOA,EAAO,GAC1C,MAAO,IAAMA,EAAO,GACxB,MAAMU,EAAmBX,EAAM,KAAOA,EAAM,GAExCA,EAAM,GAAKA,EAAMS,EAAc,KAC/BT,EAAQ,IAAIA,GAAOY,UACnBX,EAAS,IAAIA,GAAQW,WAEzB,MAAMC,EAlDV,SAAsBZ,EAAQG,EAAMU,GAChC,MAAMD,EAAS,GACTE,EAAeD,GAAeE,qBAAmBC,KAAOA,EAAAA,IACxDC,EAAYjB,EAAOM,OAAS,EAClC,IAAK,IAAIY,EAAI,EAAGA,EAAID,EAAWC,IAAK,CAChC,IAAId,EAAQU,EAAad,EAAOkB,GAAIlB,EAAOkB,EAAI,IAC/C,GAAIf,EAAM,CACN,MAAMgB,EAAiBC,MAAMC,QAAQlB,GAAQA,EAAKe,IAAMI,EAAIA,KAAGnB,EAC/DC,EAAQmB,EAAIA,KAACJ,EAAgBf,EACjC,CACAQ,EAAOY,KAAKpB,EAChB,CACA,OAAOQ,CACX,CAqCmBa,CAAazB,EAAQG,EAAMC,GACpCa,EAAYL,EAAON,OACnBoB,EAAgBC,IAClB,GAAIjB,GAAoBiB,EAAI5B,EAAM,GAC9B,OAAOC,EAAO,GAClB,IAAIkB,EAAI,EACR,GAAID,EAAY,EACZ,KAAOC,EAAInB,EAAMO,OAAS,KAClBqB,EAAI5B,EAAMmB,EAAI,IADOA,KAKjC,MAAMU,EAAkBC,WAAS9B,EAAMmB,GAAInB,EAAMmB,EAAI,GAAIS,GACzD,OAAOf,EAAOM,GAAGU,EAAgB,EAErC,OAAO1B,EACAyB,GAAMD,EAAazB,EAAKA,MAACF,EAAM,GAAIA,EAAMS,EAAc,GAAImB,IAC5DD,CACV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../frameloop/frame.mjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../frameloop/frame.mjs.js"),i=require("../../../../motion-utils/dist/es/warn-once.mjs.js"),s=require("../../../../motion-utils/dist/es/subscription-manager.mjs.js"),n=require("../../../../motion-utils/dist/es/velocity-per-second.mjs.js");class r{constructor(e){var i=this;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=t.time.now();i.updatedAt!==n&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(e),i.current!==i.prev&&i.events.change?.notify(i.current),s&&i.events.renderRequest?.notify(i.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){var i;this.current=e,this.updatedAt=t.time.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(i=this.current,!isNaN(parseFloat(i))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&i.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new s.SubscriptionManager);const n=this.events[t].add(i);return"change"===t?()=>{n(),e.frame.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=t.time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return n.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}exports.MotionValue=r,exports.motionValue=function(t,e){return new r(t,e)};
|
|
2
2
|
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/value/index.mjs"],"sourcesContent":["import { warnOnce, SubscriptionManager, velocityPerSecond } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n */\n constructor(init, options = {}) {\n /**\n * This will be replaced by the build step with the latest version number.\n * When MotionValues are provided to motion components, warn if versions are mixed.\n */\n this.version = \"12.9.1\";\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v, render = true) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev) {\n this.events.change?.notify(this.current);\n }\n // Update render subscribers\n if (render) {\n this.events.renderRequest?.notify(this.current);\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v, render = true) {\n if (!render || !this.passiveEffect) {\n this.updateAndNotify(v, render);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.events.destroy?.notify();\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n"],"names":["MotionValue","constructor","init","options","this","version","canTrackVelocity","events","updateAndNotify","v","render","currentTime","time","now","updatedAt","setPrevFrameValue","prev","current","setCurrent","change","notify","renderRequest","hasAnimated","owner","value","undefined","isNaN","parseFloat","prevFrameValue","prevUpdatedAt","onChange","subscription","process","env","NODE_ENV","warnOnce","on","eventName","callback","SubscriptionManager","unsubscribe","add","frame","read","getSize","stop","clearListeners","eventManagers","clear","attach","passiveEffect","stopPassiveEffect","set","setWithVelocity","delta","jump","endAnimation","get","getPrevious","getVelocity","Math","min","velocityPerSecond","start","startAnimation","Promise","resolve","animation","animationStart","then","animationComplete","clearAnimation","animationCancel","isAnimating","destroy"],"mappings":"4WAoBA,MAAMA,EAOFC,WAAAA,CAAYC,EAAMC,EAAU,IAKxBC,KAAKC,QAAU,SAQfD,KAAKE,iBAAmB,KAIxBF,KAAKG,OAAS,GACdH,KAAKI,gBAAkB,CAACC,EAAGC,GAAS,KAChC,MAAMC,EAAcC,OAAKC,MAMrBT,KAAKU,YAAcH,GACnBP,KAAKW,oBAETX,KAAKY,KAAOZ,KAAKa,QACjBb,KAAKc,WAAWT,GAEZL,KAAKa,UAAYb,KAAKY,MACtBZ,KAAKG,OAAOY,QAAQC,OAAOhB,KAAKa,SAGhCP,GACAN,KAAKG,OAAOc,eAAeD,OAAOhB,KAAKa,QAC3C,EAEJb,KAAKkB,aAAc,EACnBlB,KAAKc,WAAWhB,GAChBE,KAAKmB,MAAQpB,EAAQoB,KACzB,CACAL,UAAAA,CAAWD,GA7DEO,MA8DTpB,KAAKa,QAAUA,EACfb,KAAKU,UAAYF,OAAKC,MACQ,OAA1BT,KAAKE,uBAAyCmB,IAAZR,IAClCb,KAAKE,kBAjEAkB,EAiE2BpB,KAAKa,SAhErCS,MAAMC,WAAWH,KAkEzB,CACAT,iBAAAA,CAAkBa,EAAiBxB,KAAKa,SACpCb,KAAKwB,eAAiBA,EACtBxB,KAAKyB,cAAgBzB,KAAKU,SAC9B,CAyCAgB,QAAAA,CAASC,GAIL,MAH6B,eAAzBC,QAAQC,IAAIC,UACZC,EAAAA,UAAS,EAAO,mFAEb/B,KAAKgC,GAAG,SAAUL,EAC7B,CACAK,EAAAA,CAAGC,EAAWC,GACLlC,KAAKG,OAAO8B,KACbjC,KAAKG,OAAO8B,GAAa,IAAIE,EAAmBA,qBAEpD,MAAMC,EAAcpC,KAAKG,OAAO8B,GAAWI,IAAIH,GAC/C,MAAkB,WAAdD,EACO,KACHG,IAKAE,EAAKA,MAACC,MAAK,KACFvC,KAAKG,OAAOY,OAAOyB,WACpBxC,KAAKyC,MACT,GACF,EAGHL,CACX,CACAM,cAAAA,GACI,IAAK,MAAMC,KAAiB3C,KAAKG,OAC7BH,KAAKG,OAAOwC,GAAeC,OAEnC,CAIAC,MAAAA,CAAOC,EAAeC,GAClB/C,KAAK8C,cAAgBA,EACrB9C,KAAK+C,kBAAoBA,CAC7B,CAgBAC,GAAAA,CAAI3C,EAAGC,GAAS,GACPA,GAAWN,KAAK8C,cAIjB9C,KAAK8C,cAAczC,EAAGL,KAAKI,iBAH3BJ,KAAKI,gBAAgBC,EAAGC,EAKhC,CACA2C,eAAAA,CAAgBrC,EAAMC,EAASqC,GAC3BlD,KAAKgD,IAAInC,GACTb,KAAKY,UAAOS,EACZrB,KAAKwB,eAAiBZ,EACtBZ,KAAKyB,cAAgBzB,KAAKU,UAAYwC,CAC1C,CAKAC,IAAAA,CAAK9C,EAAG+C,GAAe,GACnBpD,KAAKI,gBAAgBC,GACrBL,KAAKY,KAAOP,EACZL,KAAKyB,cAAgBzB,KAAKwB,oBAAiBH,EAC3C+B,GAAgBpD,KAAKyC,OACjBzC,KAAK+C,mBACL/C,KAAK+C,mBACb,CAQAM,GAAAA,GAII,OAAOrD,KAAKa,OAChB,CAIAyC,WAAAA,GACI,OAAOtD,KAAKY,IAChB,CAQA2C,WAAAA,GACI,MAAMhD,EAAcC,OAAKC,MACzB,IAAKT,KAAKE,uBACkBmB,IAAxBrB,KAAKwB,gBACLjB,EAAcP,KAAKU,UA/NJ,GAgOf,OAAO,EAEX,MAAMwC,EAAQM,KAAKC,IAAIzD,KAAKU,UAAYV,KAAKyB,cAlO1B,IAoOnB,OAAOiC,EAAiBA,kBAACnC,WAAWvB,KAAKa,SACrCU,WAAWvB,KAAKwB,gBAAiB0B,EACzC,CAWAS,KAAAA,CAAMC,GAEF,OADA5D,KAAKyC,OACE,IAAIoB,SAASC,IAChB9D,KAAKkB,aAAc,EACnBlB,KAAK+D,UAAYH,EAAeE,GAC5B9D,KAAKG,OAAO6D,gBACZhE,KAAKG,OAAO6D,eAAehD,QAC/B,IACDiD,MAAK,KACAjE,KAAKG,OAAO+D,mBACZlE,KAAKG,OAAO+D,kBAAkBlD,SAElChB,KAAKmE,gBAAgB,GAE7B,CAMA1B,IAAAA,GACQzC,KAAK+D,YACL/D,KAAK+D,UAAUtB,OACXzC,KAAKG,OAAOiE,iBACZpE,KAAKG,OAAOiE,gBAAgBpD,UAGpChB,KAAKmE,gBACT,CAMAE,WAAAA,GACI,QAASrE,KAAK+D,SAClB,CACAI,cAAAA,UACWnE,KAAK+D,SAChB,CAUAO,OAAAA,GACItE,KAAKG,OAAOmE,SAAStD,SACrBhB,KAAK0C,iBACL1C,KAAKyC,OACDzC,KAAK+C,mBACL/C,KAAK+C,mBAEb,4CAEJ,SAAqBjD,EAAMC,GACvB,OAAO,IAAIH,EAAYE,EAAMC,EACjC"}
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/value/index.mjs"],"sourcesContent":["import { warnOnce, SubscriptionManager, velocityPerSecond } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n */\n constructor(init, options = {}) {\n /**\n * This will be replaced by the build step with the latest version number.\n * When MotionValues are provided to motion components, warn if versions are mixed.\n */\n this.version = \"12.9.1\";\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v, render = true) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev) {\n this.events.change?.notify(this.current);\n }\n // Update render subscribers\n if (render) {\n this.events.renderRequest?.notify(this.current);\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v, render = true) {\n if (!render || !this.passiveEffect) {\n this.updateAndNotify(v, render);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.events.destroy?.notify();\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n"],"names":["MotionValue","constructor","init","_this","this","options","arguments","length","undefined","version","canTrackVelocity","events","updateAndNotify","v","render","currentTime","time","now","updatedAt","setPrevFrameValue","prev","current","setCurrent","change","notify","renderRequest","hasAnimated","owner","value","isNaN","parseFloat","prevFrameValue","prevUpdatedAt","onChange","subscription","process","env","NODE_ENV","warnOnce","on","eventName","callback","SubscriptionManager","unsubscribe","add","frame","read","getSize","stop","clearListeners","eventManagers","clear","attach","passiveEffect","stopPassiveEffect","set","setWithVelocity","delta","jump","endAnimation","get","getPrevious","getVelocity","Math","min","velocityPerSecond","start","startAnimation","Promise","resolve","animation","animationStart","then","animationComplete","clearAnimation","animationCancel","isAnimating","destroy"],"mappings":"4WAoBA,MAAMA,EAOFC,WAAAA,CAAYC,GAAoB,IAAAC,EAAAC,KAAA,IAAdC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EAKxBF,KAAKK,QAAU,SAQfL,KAAKM,iBAAmB,KAIxBN,KAAKO,OAAS,GACdP,KAAKQ,gBAAkB,SAACC,GAAqB,IAAlBC,IAAMR,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAC7B,MAAMS,EAAcC,OAAKC,MAMrBd,EAAKe,YAAcH,GACnBZ,EAAKgB,oBAEThB,EAAKiB,KAAOjB,EAAKkB,QACjBlB,EAAKmB,WAAWT,GAEZV,EAAKkB,UAAYlB,EAAKiB,MACtBjB,EAAKQ,OAAOY,QAAQC,OAAOrB,EAAKkB,SAGhCP,GACAX,EAAKQ,OAAOc,eAAeD,OAAOrB,EAAKkB,UAG/CjB,KAAKsB,aAAc,EACnBtB,KAAKkB,WAAWpB,GAChBE,KAAKuB,MAAQtB,EAAQsB,KACzB,CACAL,UAAAA,CAAWD,GA7DEO,MA8DTxB,KAAKiB,QAAUA,EACfjB,KAAKc,UAAYF,OAAKC,MACQ,OAA1Bb,KAAKM,uBAAyCF,IAAZa,IAClCjB,KAAKM,kBAjEAkB,EAiE2BxB,KAAKiB,SAhErCQ,MAAMC,WAAWF,KAkEzB,CACAT,iBAAAA,GAAiD,IAA/BY,EAAczB,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAG,GAAAF,KAAKiB,QACpCjB,KAAK2B,eAAiBA,EACtB3B,KAAK4B,cAAgB5B,KAAKc,SAC9B,CAyCAe,QAAAA,CAASC,GAIL,MAH6B,eAAzBC,QAAQC,IAAIC,UACZC,EAAAA,UAAS,EAAO,mFAEblC,KAAKmC,GAAG,SAAUL,EAC7B,CACAK,EAAAA,CAAGC,EAAWC,GACLrC,KAAKO,OAAO6B,KACbpC,KAAKO,OAAO6B,GAAa,IAAIE,EAAmBA,qBAEpD,MAAMC,EAAcvC,KAAKO,OAAO6B,GAAWI,IAAIH,GAC/C,MAAkB,WAAdD,EACO,KACHG,IAKAE,EAAKA,MAACC,MAAK,KACF1C,KAAKO,OAAOY,OAAOwB,WACpB3C,KAAK4C,MACT,GACF,EAGHL,CACX,CACAM,cAAAA,GACI,IAAK,MAAMC,KAAiB9C,KAAKO,OAC7BP,KAAKO,OAAOuC,GAAeC,OAEnC,CAIAC,MAAAA,CAAOC,EAAeC,GAClBlD,KAAKiD,cAAgBA,EACrBjD,KAAKkD,kBAAoBA,CAC7B,CAgBAC,GAAAA,CAAI1C,GAAkB,IAAfC,IAAMR,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GACJQ,GAAWV,KAAKiD,cAIjBjD,KAAKiD,cAAcxC,EAAGT,KAAKQ,iBAH3BR,KAAKQ,gBAAgBC,EAAGC,EAKhC,CACA0C,eAAAA,CAAgBpC,EAAMC,EAASoC,GAC3BrD,KAAKmD,IAAIlC,GACTjB,KAAKgB,UAAOZ,EACZJ,KAAK2B,eAAiBX,EACtBhB,KAAK4B,cAAgB5B,KAAKc,UAAYuC,CAC1C,CAKAC,IAAAA,CAAK7C,GAAwB,IAArB8C,IAAYrD,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAChBF,KAAKQ,gBAAgBC,GACrBT,KAAKgB,KAAOP,EACZT,KAAK4B,cAAgB5B,KAAK2B,oBAAiBvB,EAC3CmD,GAAgBvD,KAAK4C,OACjB5C,KAAKkD,mBACLlD,KAAKkD,mBACb,CAQAM,GAAAA,GAII,OAAOxD,KAAKiB,OAChB,CAIAwC,WAAAA,GACI,OAAOzD,KAAKgB,IAChB,CAQA0C,WAAAA,GACI,MAAM/C,EAAcC,OAAKC,MACzB,IAAKb,KAAKM,uBACkBF,IAAxBJ,KAAK2B,gBACLhB,EAAcX,KAAKc,UA/NJ,GAgOf,OAAO,EAEX,MAAMuC,EAAQM,KAAKC,IAAI5D,KAAKc,UAAYd,KAAK4B,cAlO1B,IAoOnB,OAAOiC,EAAiBA,kBAACnC,WAAW1B,KAAKiB,SACrCS,WAAW1B,KAAK2B,gBAAiB0B,EACzC,CAWAS,KAAAA,CAAMC,GAEF,OADA/D,KAAK4C,OACE,IAAIoB,SAASC,IAChBjE,KAAKsB,aAAc,EACnBtB,KAAKkE,UAAYH,EAAeE,GAC5BjE,KAAKO,OAAO4D,gBACZnE,KAAKO,OAAO4D,eAAe/C,QAC/B,IACDgD,MAAK,KACApE,KAAKO,OAAO8D,mBACZrE,KAAKO,OAAO8D,kBAAkBjD,SAElCpB,KAAKsE,gBAAgB,GAE7B,CAMA1B,IAAAA,GACQ5C,KAAKkE,YACLlE,KAAKkE,UAAUtB,OACX5C,KAAKO,OAAOgE,iBACZvE,KAAKO,OAAOgE,gBAAgBnD,UAGpCpB,KAAKsE,gBACT,CAMAE,WAAAA,GACI,QAASxE,KAAKkE,SAClB,CACAI,cAAAA,UACWtE,KAAKkE,SAChB,CAUAO,OAAAA,GACIzE,KAAKO,OAAOkE,SAASrD,SACrBpB,KAAK6C,iBACL7C,KAAK4C,OACD5C,KAAKkD,mBACLlD,KAAKkD,mBAEb,4CAEJ,SAAqBpD,EAAMG,GACvB,OAAO,IAAIL,EAAYE,EAAMG,EACjC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.hslaToRgba=function({hue:
|
|
1
|
+
"use strict";function e(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.hslaToRgba=function(t){let{hue:r,saturation:n,lightness:u,alpha:a}=t;r/=360,n/=100,u/=100;let o=0,s=0,l=0;if(n){const t=u<.5?u*(1+n):u+n-u*n,a=2*u-t;o=e(a,t,r+1/3),s=e(a,t,r),l=e(a,t,r-1/3)}else o=s=l=u;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*l),alpha:a}};
|
|
2
2
|
//# sourceMappingURL=hsla-to-rgba.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsla-to-rgba.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs"],"sourcesContent":["// Adapted from https://gist.github.com/mjackson/5311256\nfunction hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n"],"names":["hueToRgb","p","q","t","hue","saturation","lightness","alpha","red","green","blue","Math","round"],"mappings":"aACA,SAASA,EAASC,EAAGC,EAAGC,GAKpB,OAJIA,EAAI,IACJA,GAAK,GACLA,EAAI,IACJA,GAAK,GACLA,EAAI,EAAI,EACDF,EAAc,GAATC,EAAID,GAASE,EACzBA,EAAI,GACGD,EACPC,EAAI,EAAI,EACDF,GAAKC,EAAID,IAAM,EAAI,EAAIE,GAAK,EAChCF,CACX,2EACA,
|
|
1
|
+
{"version":3,"file":"hsla-to-rgba.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs"],"sourcesContent":["// Adapted from https://gist.github.com/mjackson/5311256\nfunction hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n"],"names":["hueToRgb","p","q","t","_ref","hue","saturation","lightness","alpha","red","green","blue","Math","round"],"mappings":"aACA,SAASA,EAASC,EAAGC,EAAGC,GAKpB,OAJIA,EAAI,IACJA,GAAK,GACLA,EAAI,IACJA,GAAK,GACLA,EAAI,EAAI,EACDF,EAAc,GAATC,EAAID,GAASE,EACzBA,EAAI,GACGD,EACPC,EAAI,EAAI,EACDF,GAAKC,EAAID,IAAM,EAAI,EAAIE,GAAK,EAChCF,CACX,2EACA,SAAmBG,GAAwC,IAAvCC,IAAEA,EAAGC,WAAEA,EAAUC,UAAEA,EAASC,MAAEA,GAAOJ,EACrDC,GAAO,IACPC,GAAc,IACdC,GAAa,IACb,IAAIE,EAAM,EACNC,EAAQ,EACRC,EAAO,EACX,GAAKL,EAGA,CACD,MAAMJ,EAAIK,EAAY,GAChBA,GAAa,EAAID,GACjBC,EAAYD,EAAaC,EAAYD,EACrCL,EAAI,EAAIM,EAAYL,EAC1BO,EAAMT,EAASC,EAAGC,EAAGG,EAAM,EAAI,GAC/BK,EAAQV,EAASC,EAAGC,EAAGG,GACvBM,EAAOX,EAASC,EAAGC,EAAGG,EAAM,EAAI,EACpC,MAVII,EAAMC,EAAQC,EAAOJ,EAWzB,MAAO,CACHE,IAAKG,KAAKC,MAAY,IAANJ,GAChBC,MAAOE,KAAKC,MAAc,IAARH,GAClBC,KAAMC,KAAKC,MAAa,IAAPF,GACjBH,QAER"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../numbers/index.mjs.js"),e=require("../numbers/units.mjs.js"),r=require("../utils/sanitize.mjs.js"),t=require("./utils.mjs.js");const i={test:t.isColorString("hsl","hue"),parse:t.splitColor("hue","saturation","lightness"),transform:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../numbers/index.mjs.js"),e=require("../numbers/units.mjs.js"),r=require("../utils/sanitize.mjs.js"),t=require("./utils.mjs.js");const i={test:t.isColorString("hsl","hue"),parse:t.splitColor("hue","saturation","lightness"),transform:t=>{let{hue:i,saturation:n,lightness:a,alpha:u=1}=t;return"hsla("+Math.round(i)+", "+e.percent.transform(r.sanitize(n))+", "+e.percent.transform(r.sanitize(a))+", "+r.sanitize(s.alpha.transform(u))+")"}};exports.hsla=i;
|
|
2
2
|
//# sourceMappingURL=hsla.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsla.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/hsla.mjs"],"sourcesContent":["import { alpha } from '../numbers/index.mjs';\nimport { percent } from '../numbers/units.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst hsla = {\n test: /*@__PURE__*/ isColorString(\"hsl\", \"hue\"),\n parse: /*@__PURE__*/ splitColor(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n return (\"hsla(\" +\n Math.round(hue) +\n \", \" +\n percent.transform(sanitize(saturation)) +\n \", \" +\n percent.transform(sanitize(lightness)) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\");\n },\n};\n\nexport { hsla };\n"],"names":["hsla","test","isColorString","parse","splitColor","transform","hue","saturation","lightness","alpha","alpha$1","Math","round","percent","sanitize"],"mappings":"oNAKA,MAAMA,EAAO,CACTC,KAAoBC,EAAAA,cAAc,MAAO,OACzCC,MAAqBC,EAAUA,WAAC,MAAO,aAAc,aACrDC,
|
|
1
|
+
{"version":3,"file":"hsla.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/hsla.mjs"],"sourcesContent":["import { alpha } from '../numbers/index.mjs';\nimport { percent } from '../numbers/units.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst hsla = {\n test: /*@__PURE__*/ isColorString(\"hsl\", \"hue\"),\n parse: /*@__PURE__*/ splitColor(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n return (\"hsla(\" +\n Math.round(hue) +\n \", \" +\n percent.transform(sanitize(saturation)) +\n \", \" +\n percent.transform(sanitize(lightness)) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\");\n },\n};\n\nexport { hsla };\n"],"names":["hsla","test","isColorString","parse","splitColor","transform","_ref","hue","saturation","lightness","alpha","alpha$1","Math","round","percent","sanitize"],"mappings":"oNAKA,MAAMA,EAAO,CACTC,KAAoBC,EAAAA,cAAc,MAAO,OACzCC,MAAqBC,EAAUA,WAAC,MAAO,aAAc,aACrDC,UAAWC,IAAwD,IAAvDC,IAAEA,EAAGC,WAAEA,EAAUC,UAAEA,EAAWC,MAAOC,EAAU,GAAGL,EAC1D,MAAQ,QACJM,KAAKC,MAAMN,GACX,KACAO,EAAAA,QAAQT,UAAUU,WAASP,IAC3B,KACAM,EAAOA,QAACT,UAAUU,EAAAA,SAASN,IAC3B,KACAM,WAASL,EAAAA,MAAML,UAAUM,IACzB,GAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../numbers/index.mjs.js"),e=require("../utils/sanitize.mjs.js"),s=require("./utils.mjs.js"),t=require("../../../../../../motion-utils/dist/es/clamp.mjs.js");const a={...r.number,transform:r=>Math.round((r=>t.clamp(0,255,r))(r))},i={test:s.isColorString("rgb","red"),parse:s.splitColor("red","green","blue"),transform:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../numbers/index.mjs.js"),e=require("../utils/sanitize.mjs.js"),s=require("./utils.mjs.js"),t=require("../../../../../../motion-utils/dist/es/clamp.mjs.js");const a={...r.number,transform:r=>Math.round((r=>t.clamp(0,255,r))(r))},i={test:s.isColorString("rgb","red"),parse:s.splitColor("red","green","blue"),transform:s=>{let{red:t,green:i,blue:n,alpha:o=1}=s;return"rgba("+a.transform(t)+", "+a.transform(i)+", "+a.transform(n)+", "+e.sanitize(r.alpha.transform(o))+")"}};exports.rgbUnit=a,exports.rgba=i;
|
|
2
2
|
//# sourceMappingURL=rgba.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rgba.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/rgba.mjs"],"sourcesContent":["import { clamp } from 'motion-utils';\nimport { number, alpha } from '../numbers/index.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst clampRgbUnit = (v) => clamp(0, 255, v);\nconst rgbUnit = {\n ...number,\n transform: (v) => Math.round(clampRgbUnit(v)),\n};\nconst rgba = {\n test: /*@__PURE__*/ isColorString(\"rgb\", \"red\"),\n parse: /*@__PURE__*/ splitColor(\"red\", \"green\", \"blue\"),\n transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" +\n rgbUnit.transform(red) +\n \", \" +\n rgbUnit.transform(green) +\n \", \" +\n rgbUnit.transform(blue) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\",\n};\n\nexport { rgbUnit, rgba };\n"],"names":["rgbUnit","number","transform","v","Math","round","clamp","clampRgbUnit","rgba","test","isColorString","parse","splitColor","red","green","blue","alpha","alpha$1","sanitize"],"mappings":"gPAKA,MACMA,EAAU,IACTC,EAAMA,OACTC,UAAYC,GAAMC,KAAKC,MAHLF,IAAMG,EAAKA,MAAC,EAAG,IAAKH,GAGTI,CAAaJ,KAExCK,EAAO,CACTC,KAAoBC,EAAAA,cAAc,MAAO,OACzCC,MAAqBC,EAAUA,WAAC,MAAO,QAAS,QAChDV,
|
|
1
|
+
{"version":3,"file":"rgba.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/color/rgba.mjs"],"sourcesContent":["import { clamp } from 'motion-utils';\nimport { number, alpha } from '../numbers/index.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst clampRgbUnit = (v) => clamp(0, 255, v);\nconst rgbUnit = {\n ...number,\n transform: (v) => Math.round(clampRgbUnit(v)),\n};\nconst rgba = {\n test: /*@__PURE__*/ isColorString(\"rgb\", \"red\"),\n parse: /*@__PURE__*/ splitColor(\"red\", \"green\", \"blue\"),\n transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" +\n rgbUnit.transform(red) +\n \", \" +\n rgbUnit.transform(green) +\n \", \" +\n rgbUnit.transform(blue) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\",\n};\n\nexport { rgbUnit, rgba };\n"],"names":["rgbUnit","number","transform","v","Math","round","clamp","clampRgbUnit","rgba","test","isColorString","parse","splitColor","_ref","red","green","blue","alpha","alpha$1","sanitize"],"mappings":"gPAKA,MACMA,EAAU,IACTC,EAAMA,OACTC,UAAYC,GAAMC,KAAKC,MAHLF,IAAMG,EAAKA,MAAC,EAAG,IAAKH,GAGTI,CAAaJ,KAExCK,EAAO,CACTC,KAAoBC,EAAAA,cAAc,MAAO,OACzCC,MAAqBC,EAAUA,WAAC,MAAO,QAAS,QAChDV,UAAWW,IAAA,IAACC,IAAEA,EAAGC,MAAEA,EAAKC,KAAEA,EAAMC,MAAOC,EAAU,GAAGL,EAAA,MAAK,QACrDb,EAAQE,UAAUY,GAClB,KACAd,EAAQE,UAAUa,GAClB,KACAf,EAAQE,UAAUc,GAClB,KACAG,EAAAA,SAASF,EAAKA,MAACf,UAAUgB,IACzB,GAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,r)=>t=>r(e(t));exports.pipe=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.reduce(e)};
|
|
2
2
|
//# sourceMappingURL=pipe.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.mjs.js","sources":["../../../../../node_modules/motion-utils/dist/es/pipe.mjs"],"sourcesContent":["/**\n * Pipe\n * Compose other transformers to run linearily\n * pipe(min(20), max(40))\n * @param {...functions} transformers\n * @return {function}\n */\nconst combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n"],"names":["combineFunctions","a","b","v","
|
|
1
|
+
{"version":3,"file":"pipe.mjs.js","sources":["../../../../../node_modules/motion-utils/dist/es/pipe.mjs"],"sourcesContent":["/**\n * Pipe\n * Compose other transformers to run linearily\n * pipe(min(20), max(40))\n * @param {...functions} transformers\n * @return {function}\n */\nconst combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n"],"names":["combineFunctions","a","b","v","_len","arguments","length","transformers","Array","_key","reduce"],"mappings":"oEAOA,MAAMA,EAAmBA,CAACC,EAAGC,IAAOC,GAAMD,EAAED,EAAEE,iBACjC,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIC,EAAYC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAZF,EAAYE,GAAAJ,UAAAI,GAAA,OAAKF,EAAaG,OAAOV,EAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/index7.js"),r=require("./node_modules/react-is/index.js"),t=require("./factoryWithTypeCheckers.js"),i=require("./factoryWithThrowingShims.js");if("production"!==process.env.NODE_ENV){var s=r.__require();e.__module.exports=t.__require()(s.isElement,!0)}else e.__module.exports=i.__require()();Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e.exports}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("../../../../_virtual/index8.js"),s=require("./cjs/react-is.production.min.js"),t=require("./cjs/react-is.development.js");exports.__require=function(){return e||(e=1,i=r.__module,"production"===process.env.NODE_ENV?i.exports=s.__require():i.exports=t.__require()),r.exports;var i};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Context.js"),r=require("../utils/Subscription.js"),o=require("../utils/useIsomorphicLayoutEffect.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(e);exports.default=function({store:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Context.js"),r=require("../utils/Subscription.js"),o=require("../utils/useIsomorphicLayoutEffect.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(e);exports.default=function(s){let{store:n,context:i,children:c,serverState:a}=s;const f=e.useMemo((()=>{const e=r.createSubscription(n);return{store:n,subscription:e,getServerState:a?()=>a:void 0}}),[n,a]),d=e.useMemo((()=>n.getState()),[n]);o.useIsomorphicLayoutEffect((()=>{const{subscription:e}=f;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),d!==n.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[f,d]);const b=i||t.ReactReduxContext;return u.default.createElement(b.Provider,{value:f},c)};
|
|
2
2
|
//# sourceMappingURL=Provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sources":["../../../../../node_modules/react-redux/es/components/Provider.js"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { ReactReduxContext } from './Context';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\n\nfunction Provider({\n store,\n context,\n children,\n serverState\n}) {\n const contextValue = useMemo(() => {\n const subscription = createSubscription(store);\n return {\n store,\n subscription,\n getServerState: serverState ? () => serverState : undefined\n };\n }, [store, serverState]);\n const previousState = useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const {\n subscription\n } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = undefined;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype\n\n return /*#__PURE__*/React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nexport default Provider;"],"names":["store","context","children","serverState","contextValue","useMemo","subscription","createSubscription","getServerState","undefined","previousState","getState","useIsomorphicLayoutEffect","onStateChange","notifyNestedSubs","trySubscribe","tryUnsubscribe","Context","ReactReduxContext","React","createElement","Provider","value"],"mappings":"iTAKA,
|
|
1
|
+
{"version":3,"file":"Provider.js","sources":["../../../../../node_modules/react-redux/es/components/Provider.js"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { ReactReduxContext } from './Context';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\n\nfunction Provider({\n store,\n context,\n children,\n serverState\n}) {\n const contextValue = useMemo(() => {\n const subscription = createSubscription(store);\n return {\n store,\n subscription,\n getServerState: serverState ? () => serverState : undefined\n };\n }, [store, serverState]);\n const previousState = useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const {\n subscription\n } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = undefined;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype\n\n return /*#__PURE__*/React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nexport default Provider;"],"names":["_ref","store","context","children","serverState","contextValue","useMemo","subscription","createSubscription","getServerState","undefined","previousState","getState","useIsomorphicLayoutEffect","onStateChange","notifyNestedSubs","trySubscribe","tryUnsubscribe","Context","ReactReduxContext","React","createElement","Provider","value"],"mappings":"iTAKA,SAAiBA,GAKd,IALeC,MAChBA,EAAKC,QACLA,EAAOC,SACPA,EAAQC,YACRA,GACDJ,EACC,MAAMK,EAAeC,EAAAA,SAAQ,KAC3B,MAAMC,EAAeC,qBAAmBP,GACxC,MAAO,CACLA,QACAM,eACAE,eAAgBL,EAAc,IAAMA,OAAcM,EACnD,GACA,CAACT,EAAOG,IACLO,EAAgBL,EAAAA,SAAQ,IAAML,EAAMW,YAAY,CAACX,IACvDY,EAAAA,2BAA0B,KACxB,MAAMN,aACJA,GACEF,EAQJ,OAPAE,EAAaO,cAAgBP,EAAaQ,iBAC1CR,EAAaS,eAETL,IAAkBV,EAAMW,YAC1BL,EAAaQ,mBAGR,KACLR,EAAaU,iBACbV,EAAaO,mBAAgBJ,CAAS,CACvC,GACA,CAACL,EAAcM,IAClB,MAAMO,EAAUhB,GAAWiB,oBAE3B,OAAoBC,UAAMC,cAAcH,EAAQI,SAAU,CACxDC,MAAOlB,GACNF,EACL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../components/Context.js"),t=require("./useStore.js");function o(o=e.ReactReduxContext
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../components/Context.js"),t=require("./useStore.js");function o(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.ReactReduxContext;const r=o===e.ReactReduxContext?t.useStore:t.createStoreHook(o);return function(){return r().dispatch}}const r=o();exports.createDispatchHook=o,exports.useDispatch=r;
|
|
2
2
|
//# sourceMappingURL=useDispatch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDispatch.js","sources":["../../../../../node_modules/react-redux/es/hooks/useDispatch.js"],"sourcesContent":["import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\n\nexport function createDispatchHook(context = ReactReduxContext) {\n const useStore = // @ts-ignore\n context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n return function useDispatch() {\n const store = useStore(); // @ts-ignore\n\n return store.dispatch;\n };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const dispatch = useDispatch()\r\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n * return (\r\n * <div>\r\n * <span>{value}</span>\r\n * <button onClick={increaseCounter}>Increase counter</button>\r\n * </div>\r\n * )\r\n * }\r\n */\n\nexport const useDispatch = /*#__PURE__*/createDispatchHook();"],"names":["createDispatchHook","context","ReactReduxContext","useStore","useDefaultStore","createStoreHook","dispatch","useDispatch"],"mappings":"yIASO,SAASA,
|
|
1
|
+
{"version":3,"file":"useDispatch.js","sources":["../../../../../node_modules/react-redux/es/hooks/useDispatch.js"],"sourcesContent":["import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\n\nexport function createDispatchHook(context = ReactReduxContext) {\n const useStore = // @ts-ignore\n context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n return function useDispatch() {\n const store = useStore(); // @ts-ignore\n\n return store.dispatch;\n };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const dispatch = useDispatch()\r\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n * return (\r\n * <div>\r\n * <span>{value}</span>\r\n * <button onClick={increaseCounter}>Increase counter</button>\r\n * </div>\r\n * )\r\n * }\r\n */\n\nexport const useDispatch = /*#__PURE__*/createDispatchHook();"],"names":["createDispatchHook","context","arguments","length","undefined","ReactReduxContext","useStore","useDefaultStore","createStoreHook","dispatch","useDispatch"],"mappings":"yIASO,SAASA,IAAgD,IAA7BC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,kBAC3C,MAAMC,EACNL,IAAYI,EAAAA,kBAAoBE,EAAAA,SAAkBC,EAAeA,gBAACP,GAClE,OAAO,WAGL,OAFcK,IAEDG,SAEjB,OAuBaC,EAA2BV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useReduxContext.js"),o=require("../components/Context.js");let r=require("../utils/useSyncExternalStore.js").notInitialized;const s=(e,t)=>e===t;function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useReduxContext.js"),o=require("../components/Context.js");let r=require("../utils/useSyncExternalStore.js").notInitialized;const s=(e,t)=>e===t;function n(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.ReactReduxContext;const u=n===o.ReactReduxContext?t.useReduxContext:()=>e.useContext(n);return function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if("production"!==process.env.NODE_ENV){if(!t)throw new Error("You must pass a selector to useSelector");if("function"!=typeof t)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector")}const{store:n,subscription:i,getServerState:c}=u(),a=r(i.addNestedSub,n.getState,c||n.getState,t,o);return e.useDebugValue(a),a}}const u=n();exports.createSelectorHook=n,exports.initializeUseSelector=e=>{r=e},exports.useSelector=u;
|
|
2
2
|
//# sourceMappingURL=useSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelector.js","sources":["../../../../../node_modules/react-redux/es/hooks/useSelector.js"],"sourcesContent":["import { useContext, useDebugValue } from 'react';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport { ReactReduxContext } from '../components/Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStoreWithSelector = notInitialized;\nexport const initializeUseSelector = fn => {\n useSyncExternalStoreWithSelector = fn;\n};\n\nconst refEquality = (a, b) => a === b;\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nexport function createSelectorHook(context = ReactReduxContext) {\n const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useSelector(selector, equalityFn = refEquality) {\n if (process.env.NODE_ENV !== 'production') {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n\n if (typeof selector !== 'function') {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n\n if (typeof equalityFn !== 'function') {\n throw new Error(`You must pass a function as an equality function to useSelector`);\n }\n }\n\n const {\n store,\n subscription,\n getServerState\n } = useReduxContext();\n const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, selector, equalityFn);\n useDebugValue(selectedState);\n return selectedState;\n };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const counter = useSelector(state => state.counter)\r\n * return <div>{counter}</div>\r\n * }\r\n */\n\nexport const useSelector = /*#__PURE__*/createSelectorHook();"],"names":["useSyncExternalStoreWithSelector","notInitialized","initializeUseSelector","refEquality","a","b","createSelectorHook","context","ReactReduxContext","useReduxContext","useDefaultReduxContext","useContext","selector","equalityFn","process","env","NODE_ENV","Error","store","subscription","getServerState","selectedState","addNestedSub","getState","useDebugValue","useSelector","fn"],"mappings":"mKAIA,IAAIA,8CAAmCC,eAC1BC,MAIPC,EAAcA,CAACC,EAAGC,IAAMD,IAAMC,EAS7B,SAASC,
|
|
1
|
+
{"version":3,"file":"useSelector.js","sources":["../../../../../node_modules/react-redux/es/hooks/useSelector.js"],"sourcesContent":["import { useContext, useDebugValue } from 'react';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport { ReactReduxContext } from '../components/Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStoreWithSelector = notInitialized;\nexport const initializeUseSelector = fn => {\n useSyncExternalStoreWithSelector = fn;\n};\n\nconst refEquality = (a, b) => a === b;\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nexport function createSelectorHook(context = ReactReduxContext) {\n const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useSelector(selector, equalityFn = refEquality) {\n if (process.env.NODE_ENV !== 'production') {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n\n if (typeof selector !== 'function') {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n\n if (typeof equalityFn !== 'function') {\n throw new Error(`You must pass a function as an equality function to useSelector`);\n }\n }\n\n const {\n store,\n subscription,\n getServerState\n } = useReduxContext();\n const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, selector, equalityFn);\n useDebugValue(selectedState);\n return selectedState;\n };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const counter = useSelector(state => state.counter)\r\n * return <div>{counter}</div>\r\n * }\r\n */\n\nexport const useSelector = /*#__PURE__*/createSelectorHook();"],"names":["useSyncExternalStoreWithSelector","notInitialized","initializeUseSelector","refEquality","a","b","createSelectorHook","context","arguments","length","undefined","ReactReduxContext","useReduxContext","useDefaultReduxContext","useContext","selector","equalityFn","process","env","NODE_ENV","Error","store","subscription","getServerState","selectedState","addNestedSub","getState","useDebugValue","useSelector","fn"],"mappings":"mKAIA,IAAIA,8CAAmCC,eAC1BC,MAIPC,EAAcA,CAACC,EAAGC,IAAMD,IAAMC,EAS7B,SAASC,IAAgD,IAA7BC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,kBAC3C,MAAMC,EAAkBL,IAAYI,EAAiBA,kBAAGE,EAAsBD,gBAAG,IAAME,EAAAA,WAAWP,GAClG,OAAO,SAAqBQ,GAAoC,IAA1BC,EAAUR,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGL,EACjD,GAA6B,eAAzBc,QAAQC,IAAIC,SAA2B,CACzC,IAAKJ,EACH,MAAM,IAAIK,MAAM,2CAGlB,GAAwB,mBAAbL,EACT,MAAM,IAAIK,MAAM,yDAGlB,GAA0B,mBAAfJ,EACT,MAAM,IAAII,MAAM,kEAEpB,CAEA,MAAMC,MACJA,EAAKC,aACLA,EAAYC,eACZA,GACEX,IACEY,EAAgBxB,EAAiCsB,EAAaG,aAAcJ,EAAMK,SAAUH,GAAkBF,EAAMK,SAAUX,EAAUC,GAE9I,OADAW,EAAaA,cAACH,GACPA,EAEX,OAyBaI,EAA2BtB,+DAhEHuB,IACnC7B,EAAmC6B,CAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../components/Context.js"),o=require("./useReduxContext.js");function r(r=t.ReactReduxContext
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../components/Context.js"),o=require("./useReduxContext.js");function r(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.ReactReduxContext;const n=r===t.ReactReduxContext?o.useReduxContext:()=>e.useContext(r);return function(){const{store:e}=n();return e}}const n=r();exports.createStoreHook=r,exports.useStore=n;
|
|
2
2
|
//# sourceMappingURL=useStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStore.js","sources":["../../../../../node_modules/react-redux/es/hooks/useStore.js"],"sourcesContent":["import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\n\nexport function createStoreHook(context = ReactReduxContext) {\n const useReduxContext = // @ts-ignore\n context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useStore() {\n const {\n store\n } = useReduxContext(); // @ts-ignore\n\n return store;\n };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n * const store = useStore()\r\n * return <div>{store.getState()}</div>\r\n * }\r\n */\n\nexport const useStore = /*#__PURE__*/createStoreHook();"],"names":["createStoreHook","context","ReactReduxContext","useReduxContext","useDefaultReduxContext","useContext","store","useStore"],"mappings":"mKAUO,SAASA,
|
|
1
|
+
{"version":3,"file":"useStore.js","sources":["../../../../../node_modules/react-redux/es/hooks/useStore.js"],"sourcesContent":["import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext } from './useReduxContext';\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\n\nexport function createStoreHook(context = ReactReduxContext) {\n const useReduxContext = // @ts-ignore\n context === ReactReduxContext ? useDefaultReduxContext : () => useContext(context);\n return function useStore() {\n const {\n store\n } = useReduxContext(); // @ts-ignore\n\n return store;\n };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n * const store = useStore()\r\n * return <div>{store.getState()}</div>\r\n * }\r\n */\n\nexport const useStore = /*#__PURE__*/createStoreHook();"],"names":["createStoreHook","context","arguments","length","undefined","ReactReduxContext","useReduxContext","useDefaultReduxContext","useContext","store","useStore"],"mappings":"mKAUO,SAASA,IAA6C,IAA7BC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAAA,kBACxC,MAAMC,EACNL,IAAYI,EAAAA,kBAAoBE,EAAAA,gBAAyB,IAAMC,EAAUA,WAACP,GAC1E,OAAO,WACL,MAAMQ,MACJA,GACEH,IAEJ,OAAOG,EAEX,OAiBaC,EAAwBV"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
5
5
|
* @copyright ReactTooltip Team
|
|
6
6
|
* @license MIT
|
|
7
|
-
*/const s={core:!1,base:!1};function c({css:e,id:t="react-tooltip-base-styles",type:o="base",ref:r}){var l,n;if(!e||"undefined"==typeof document||s[o])return;if("core"===o&&"undefined"!=typeof process&&(null===(l=null===process||void 0===process?void 0:process.env)||void 0===l?void 0:l.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==o&&"undefined"!=typeof process&&(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===o&&(t="react-tooltip-core-styles"),r||(r={});const{insertAt:c}=r;if(document.getElementById(t))return;const i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.id=t,a.type="text/css","top"===c&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),s[o]=!0}const i=async({elementReference:e=null,tooltipReference:o=null,tooltipArrowReference:l=null,place:n="top",offset:s=10,strategy:c="absolute",middlewares:i=[r.offset(Number(s)),t.flip({fallbackAxisSideDirection:"start"}),t.shift({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===o)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const u=i;return l?(u.push(t.arrow({element:l,padding:5})),t.computePosition(e,o,{placement:n,strategy:c,middleware:u}).then((({x:e,y:t,placement:o,middlewareData:r})=>{var l,n;const s={left:`${e}px`,top:`${t}px`,border:a},{x:c,y:i}=null!==(l=r.arrow)&&void 0!==l?l:{x:0,y:0},u=null!==(n={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]])&&void 0!==n?n:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=i?`${i}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:o}}))):t.computePosition(e,o,{placement:"bottom",strategy:c,middleware:u}).then((({x:e,y:t,placement:o})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:o})))},a=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),u=(e,t,o)=>{let r=null;const l=function(...l){const n=()=>{r=null,o||e.apply(this,l)};o&&!r&&(e.apply(this,l),r=setTimeout(n,t)),o||(r&&clearTimeout(r),r=setTimeout(n,t))};return l.cancel=()=>{r&&(clearTimeout(r),r=null)},l},d=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,p=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,o)=>p(e,t[o])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!d(e)||!d(t))return e===t;const o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every((o=>p(e[o],t[o])))},f=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const o=t.getPropertyValue(e);return"auto"===o||"scroll"===o}))},v=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(f(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},m="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,y=e=>{e.current&&(clearTimeout(e.current),e.current=null)},h={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},w=e.createContext({getTooltipData:()=>h});function _(t="DEFAULT_TOOLTIP_ID"){return e.useContext(w).getTooltipData(t)}var b={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},E={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const g=({forwardRef:r,id:l,className:s,classNameArrow:c,variant:a="dark",anchorId:d,anchorSelect:f,place:h="top",offset:w=10,events:g=["hover"],openOnClick:S=!1,positionStrategy:A="absolute",middlewares:k,wrapper:O,delayShow:T=0,delayHide:x=0,float:R=!1,hidden:L=!1,noArrow:C=!1,clickable:N=!1,closeOnEsc:j=!1,closeOnScroll:$=!1,closeOnResize:I=!1,openEvents:q,closeEvents:B,globalCloseEvents:z,imperativeModeOnly:D,style:M,position:H,afterShow:K,afterHide:W,disableTooltip:P,content:V,contentWrapperRef:X,isOpen:F,defaultIsOpen:U=!1,setIsOpen:Z,activeAnchor:G,setActiveAnchor:Y,border:J,opacity:Q,arrowColor:ee,role:te="tooltip"})=>{var oe;const re=e.useRef(null),le=e.useRef(null),ne=e.useRef(null),se=e.useRef(null),ce=e.useRef(null),[ie,ae]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:h}),[ue,de]=e.useState(!1),[pe,fe]=e.useState(!1),[ve,me]=e.useState(null),ye=e.useRef(!1),he=e.useRef(null),{anchorRefs:we,setActiveAnchor:_e}=_(l),be=e.useRef(!1),[Ee,ge]=e.useState([]),Se=e.useRef(!1),Ae=S||g.includes("click"),ke=Ae||(null==q?void 0:q.click)||(null==q?void 0:q.dblclick)||(null==q?void 0:q.mousedown),Oe=q?{...q}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!q&&Ae&&Object.assign(Oe,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Te=B?{...B}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!B&&Ae&&Object.assign(Te,{mouseleave:!1,blur:!1,mouseout:!1});const xe=z?{...z}:{escape:j||!1,scroll:$||!1,resize:I||!1,clickOutsideAnchor:ke||!1};D&&(Object.assign(Oe,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Te,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(xe,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),m((()=>(Se.current=!0,()=>{Se.current=!1})),[]);const Re=e=>{Se.current&&(e&&fe(!0),setTimeout((()=>{Se.current&&(null==Z||Z(e),void 0===F&&de(e))}),10))};e.useEffect((()=>{if(void 0===F)return()=>null;F&&fe(!0);const e=setTimeout((()=>{de(F)}),10);return()=>{clearTimeout(e)}}),[F]),e.useEffect((()=>{if(ue!==ye.current)if(y(ce),ye.current=ue,ue)null==K||K();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,o,r]=t;return Number(o)*("ms"===r?1:1e3)})();ce.current=setTimeout((()=>{fe(!1),me(null),null==W||W()}),e+25)}}),[ue]);const Le=e=>{ae((t=>p(t,e)?t:e))},Ce=(e=T)=>{y(ne),pe?Re(!0):ne.current=setTimeout((()=>{Re(!0)}),e)},Ne=(e=x)=>{y(se),se.current=setTimeout((()=>{be.current||Re(!1)}),e)},je=e=>{var t;if(!e)return;const o=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==o?void 0:o.isConnected))return Y(null),void _e({current:null});T?Ce():Re(!0),Y(o),_e({current:o}),y(se)},$e=()=>{N?Ne(x||100):x?Ne():Re(!1),y(ne)},Ie=({x:e,y:t})=>{var o;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};i({place:null!==(o=null==ve?void 0:ve.place)&&void 0!==o?o:h,offset:w,elementReference:r,tooltipReference:re.current,tooltipArrowReference:le.current,strategy:A,middlewares:k,border:J}).then((e=>{Le(e)}))},qe=e=>{if(!e)return;const t=e,o={x:t.clientX,y:t.clientY};Ie(o),he.current=o},Be=e=>{var t;if(!ue)return;const o=e.target;o.isConnected&&((null===(t=re.current)||void 0===t?void 0:t.contains(o))||[document.querySelector(`[id='${d}']`),...Ee].some((e=>null==e?void 0:e.contains(o)))||(Re(!1),y(ne)))},ze=u(je,50,!0),De=u($e,50,!0),Me=e=>{De.cancel(),ze(e)},He=()=>{ze.cancel(),De()},Ke=e.useCallback((()=>{var e,t;const o=null!==(e=null==ve?void 0:ve.position)&&void 0!==e?e:H;o?Ie(o):R?he.current&&Ie(he.current):(null==G?void 0:G.isConnected)&&i({place:null!==(t=null==ve?void 0:ve.place)&&void 0!==t?t:h,offset:w,elementReference:G,tooltipReference:re.current,tooltipArrowReference:le.current,strategy:A,middlewares:k,border:J}).then((e=>{Se.current&&Le(e)}))}),[ue,G,V,M,h,null==ve?void 0:ve.place,w,A,H,null==ve?void 0:ve.position,R]);e.useEffect((()=>{var e,o;const r=new Set(we);Ee.forEach((e=>{(null==P?void 0:P(e))||r.add({current:e})}));const l=document.querySelector(`[id='${d}']`);l&&!(null==P?void 0:P(l))&&r.add({current:l});const n=()=>{Re(!1)},s=v(G),c=v(re.current);xe.scroll&&(window.addEventListener("scroll",n),null==s||s.addEventListener("scroll",n),null==c||c.addEventListener("scroll",n));let i=null;xe.resize?window.addEventListener("resize",n):G&&re.current&&(i=t.autoUpdate(G,re.current,Ke,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const a=e=>{"Escape"===e.key&&Re(!1)};xe.escape&&window.addEventListener("keydown",a),xe.clickOutsideAnchor&&window.addEventListener("click",Be);const u=[],p=e=>{ue&&(null==e?void 0:e.target)===G||je(e)},f=e=>{ue&&(null==e?void 0:e.target)===G&&$e()},m=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Oe).forEach((([e,t])=>{t&&(m.includes(e)?u.push({event:e,listener:Me}):y.includes(e)&&u.push({event:e,listener:p}))})),Object.entries(Te).forEach((([e,t])=>{t&&(m.includes(e)?u.push({event:e,listener:He}):y.includes(e)&&u.push({event:e,listener:f}))})),R&&u.push({event:"pointermove",listener:qe});const h=()=>{be.current=!0},w=()=>{be.current=!1,$e()};return N&&!ke&&(null===(e=re.current)||void 0===e||e.addEventListener("mouseenter",h),null===(o=re.current)||void 0===o||o.addEventListener("mouseleave",w)),u.forEach((({event:e,listener:t})=>{r.forEach((o=>{var r;null===(r=o.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;xe.scroll&&(window.removeEventListener("scroll",n),null==s||s.removeEventListener("scroll",n),null==c||c.removeEventListener("scroll",n)),xe.resize?window.removeEventListener("resize",n):null==i||i(),xe.clickOutsideAnchor&&window.removeEventListener("click",Be),xe.escape&&window.removeEventListener("keydown",a),N&&!ke&&(null===(e=re.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=re.current)||void 0===t||t.removeEventListener("mouseleave",w)),u.forEach((({event:e,listener:t})=>{r.forEach((o=>{var r;null===(r=o.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[G,Ke,pe,we,Ee,q,B,z,Ae,T,x]),e.useEffect((()=>{var e,t;let o=null!==(t=null!==(e=null==ve?void 0:ve.anchorSelect)&&void 0!==e?e:f)&&void 0!==t?t:"";!o&&l&&(o=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===l?t.push(e.target):e.oldValue===l&&r.push(e.target)),"childList"===e.type){if(G){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,G))&&(fe(!1),Re(!1),Y(null),y(ne),y(se),!0)}))}if(o)try{const r=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...r.filter((e=>e.matches(o)))),t.push(...r.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&ge((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[l,f,null==ve?void 0:ve.anchorSelect,G]),e.useEffect((()=>{Ke()}),[Ke]),e.useEffect((()=>{if(!(null==X?void 0:X.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ke()))}));return e.observe(X.current),()=>{e.disconnect()}}),[V,null==X?void 0:X.current]),e.useEffect((()=>{var e;const t=document.querySelector(`[id='${d}']`),o=[...Ee,t];G&&o.includes(G)||Y(null!==(e=Ee[0])&&void 0!==e?e:t)}),[d,Ee,G]),e.useEffect((()=>(U&&Re(!0),()=>{y(ne),y(se)})),[]),e.useEffect((()=>{var e;let t=null!==(e=null==ve?void 0:ve.anchorSelect)&&void 0!==e?e:f;if(!t&&l&&(t=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));ge(e)}catch(e){ge([])}}),[l,f,null==ve?void 0:ve.anchorSelect]),e.useEffect((()=>{ne.current&&(y(ne),Ce(T))}),[T]);const We=null!==(oe=null==ve?void 0:ve.content)&&void 0!==oe?oe:V,Pe=ue&&Object.keys(ie.tooltipStyles).length>0;return e.useImperativeHandle(r,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}me(null!=e?e:null),(null==e?void 0:e.delay)?Ce(e.delay):Re(!0)},close:e=>{(null==e?void 0:e.delay)?Ne(e.delay):Re(!1)},activeAnchor:G,place:ie.place,isOpen:Boolean(pe&&!L&&We&&Pe)}))),pe&&!L&&We?n.default.createElement(O,{id:l,role:te,className:o.default("react-tooltip",b.tooltip,E.tooltip,E[a],s,`react-tooltip__place-${ie.place}`,b[Pe?"show":"closing"],Pe?"react-tooltip__show":"react-tooltip__closing","fixed"===A&&b.fixed,N&&b.clickable),onTransitionEnd:e=>{y(ce),ue||"opacity"!==e.propertyName||(fe(!1),me(null),null==W||W())},style:{...M,...ie.tooltipStyles,opacity:void 0!==Q&&Pe?Q:void 0},ref:re},We,n.default.createElement(O,{className:o.default("react-tooltip-arrow",b.arrow,E.arrow,c,C&&b.noArrow),style:{...ie.tooltipArrowStyles,background:ee?`linear-gradient(to right bottom, transparent 50%, ${ee} 50%)`:void 0},ref:le})):null},S=({content:e})=>n.default.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),A=n.default.forwardRef((({id:t,anchorId:r,anchorSelect:l,content:s,html:c,render:i,className:u,classNameArrow:d,variant:p="dark",place:f="top",offset:v=10,wrapper:m="div",children:y=null,events:h=["hover"],openOnClick:w=!1,positionStrategy:b="absolute",middlewares:E,delayShow:A=0,delayHide:k=0,float:O=!1,hidden:T=!1,noArrow:x=!1,clickable:R=!1,closeOnEsc:L=!1,closeOnScroll:C=!1,closeOnResize:N=!1,openEvents:j,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:q=!1,style:B,position:z,isOpen:D,defaultIsOpen:M=!1,disableStyleInjection:H=!1,border:K,opacity:W,arrowColor:P,setIsOpen:V,afterShow:X,afterHide:F,disableTooltip:U,role:Z="tooltip"},G)=>{const[Y,J]=e.useState(s),[Q,ee]=e.useState(c),[te,oe]=e.useState(f),[re,le]=e.useState(p),[ne,se]=e.useState(v),[ce,ie]=e.useState(A),[ae,ue]=e.useState(k),[de,pe]=e.useState(O),[fe,ve]=e.useState(T),[me,ye]=e.useState(m),[he,we]=e.useState(h),[_e,be]=e.useState(b),[Ee,ge]=e.useState(null),[Se,Ae]=e.useState(null),ke=e.useRef(H),{anchorRefs:Oe,activeAnchor:Te}=_(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,o)=>{var r;return o.startsWith("data-tooltip-")&&(t[o.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(o))&&void 0!==r?r:null),t}),{}),Re=e=>{const t={place:e=>{var t;oe(null!==(t=e)&&void 0!==t?t:f)},content:e=>{J(null!=e?e:s)},html:e=>{ee(null!=e?e:c)},variant:e=>{var t;le(null!==(t=e)&&void 0!==t?t:p)},offset:e=>{se(null===e?v:Number(e))},wrapper:e=>{var t;ye(null!==(t=e)&&void 0!==t?t:m)},events:e=>{const t=null==e?void 0:e.split(" ");we(null!=t?t:h)},"position-strategy":e=>{var t;be(null!==(t=e)&&void 0!==t?t:b)},"delay-show":e=>{ie(null===e?A:Number(e))},"delay-hide":e=>{ue(null===e?k:Number(e))},float:e=>{pe(null===e?O:"true"===e)},hidden:e=>{ve(null===e?T:"true"===e)},"class-name":e=>{ge(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,o])=>{var r;null===(r=t[e])||void 0===r||r.call(t,o)}))};e.useEffect((()=>{J(s)}),[s]),e.useEffect((()=>{ee(c)}),[c]),e.useEffect((()=>{oe(f)}),[f]),e.useEffect((()=>{le(p)}),[p]),e.useEffect((()=>{se(v)}),[v]),e.useEffect((()=>{ie(A)}),[A]),e.useEffect((()=>{ue(k)}),[k]),e.useEffect((()=>{pe(O)}),[O]),e.useEffect((()=>{ve(T)}),[T]),e.useEffect((()=>{be(b)}),[b]),e.useEffect((()=>{ke.current!==H&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[H]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===H,disableBase:H}}))}),[]),e.useEffect((()=>{var e;const o=new Set(Oe);let n=l;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{document.querySelectorAll(n).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${n}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${r}']`);if(s&&o.add({current:s}),!o.size)return()=>null;const c=null!==(e=null!=Se?Se:s)&&void 0!==e?e:Te.current,i=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const o=xe(c);Re(o)}))})),a={attributes:!0,childList:!1,subtree:!1};if(c){const e=xe(c);Re(e),i.observe(c,a)}return()=>{i.disconnect()}}),[Oe,Te,Se,r,l]),e.useEffect((()=>{(null==B?void 0:B.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),K&&!a("border",`${K}`)&&console.warn(`[react-tooltip] "${K}" is not a valid \`border\`.`),(null==B?void 0:B.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),W&&!a("opacity",`${W}`)&&console.warn(`[react-tooltip] "${W}" is not a valid \`opacity\`.`)}),[]);let Le=y;const Ce=e.useRef(null);if(i){const e=i({content:(null==Se?void 0:Se.getAttribute("data-tooltip-content"))||Y||null,activeAnchor:Se});Le=e?n.default.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},e):null}else Y&&(Le=Y);Q&&(Le=n.default.createElement(S,{content:Q}));const Ne={forwardRef:G,id:t,anchorId:r,anchorSelect:l,className:o.default(u,Ee),classNameArrow:d,content:Le,contentWrapperRef:Ce,place:te,variant:re,offset:ne,wrapper:me,events:he,openOnClick:w,positionStrategy:_e,middlewares:E,delayShow:ce,delayHide:ae,float:de,hidden:fe,noArrow:x,clickable:R,closeOnEsc:L,closeOnScroll:C,closeOnResize:N,openEvents:j,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:q,style:B,position:z,isOpen:D,defaultIsOpen:M,border:K,opacity:W,arrowColor:P,setIsOpen:V,afterShow:X,afterHide:F,disableTooltip:U,activeAnchor:Se,setActiveAnchor:e=>Ae(e),role:Z};return n.default.createElement(g,{...Ne})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||c({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||c({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})})),exports.Tooltip=A;
|
|
7
|
+
*/const s="react-tooltip-base-styles",c={core:!1,base:!1};function i(e){let{css:t,id:o=s,type:r="base",ref:l}=e;var n,i;if(!t||"undefined"==typeof document||c[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(o="react-tooltip-core-styles"),l||(l={});const{insertAt:a}=l;if(document.getElementById(o))return;const u=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.id=o,d.type="text/css","top"===a&&u.firstChild?u.insertBefore(d,u.firstChild):u.appendChild(d),d.styleSheet?d.styleSheet.cssText=t:d.appendChild(document.createTextNode(t)),c[r]=!0}const a=async e=>{let{elementReference:o=null,tooltipReference:l=null,tooltipArrowReference:n=null,place:s="top",offset:c=10,strategy:i="absolute",middlewares:a=[r.offset(Number(c)),t.flip({fallbackAxisSideDirection:"start"}),t.shift({padding:5})],border:u}=e;if(!o)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};if(null===l)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};const d=a;return n?(d.push(t.arrow({element:n,padding:5})),t.computePosition(o,l,{placement:s,strategy:i,middleware:d}).then((e=>{let{x:t,y:o,placement:r,middlewareData:l}=e;var n,s;const c={left:`${t}px`,top:`${o}px`,border:u},{x:i,y:a}=null!==(n=l.arrow)&&void 0!==n?n:{x:0,y:0},d=null!==(s={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==s?s:"bottom",p=u&&{borderBottom:u,borderRight:u};let f=0;if(u){const e=`${u}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:c,tooltipArrowStyles:{left:null!=i?`${i}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...p,[d]:`-${4+f}px`},place:r}}))):t.computePosition(o,l,{placement:"bottom",strategy:i,middleware:d}).then((e=>{let{x:t,y:o,placement:r}=e;return{tooltipStyles:{left:`${t}px`,top:`${o}px`},tooltipArrowStyles:{},place:r}}))},u=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),d=(e,t,o)=>{let r=null;const l=function(){for(var l=arguments.length,n=new Array(l),s=0;s<l;s++)n[s]=arguments[s];const c=()=>{r=null,o||e.apply(this,n)};o&&!r&&(e.apply(this,n),r=setTimeout(c,t)),o||(r&&clearTimeout(r),r=setTimeout(c,t))};return l.cancel=()=>{r&&(clearTimeout(r),r=null)},l},p=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,f=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,o)=>f(e,t[o])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!p(e)||!p(t))return e===t;const o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every((o=>f(e[o],t[o])))},v=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const o=t.getPropertyValue(e);return"auto"===o||"scroll"===o}))},m=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(v(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},y="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,h=e=>{e.current&&(clearTimeout(e.current),e.current=null)},w={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},_=e.createContext({getTooltipData:()=>w});function b(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"DEFAULT_TOOLTIP_ID";return e.useContext(_).getTooltipData(t)}var g={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},E={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const S=r=>{let{forwardRef:l,id:s,className:c,classNameArrow:i,variant:u="dark",anchorId:p,anchorSelect:v,place:w="top",offset:_=10,events:S=["hover"],openOnClick:A=!1,positionStrategy:k="absolute",middlewares:O,wrapper:T,delayShow:x=0,delayHide:R=0,float:L=!1,hidden:C=!1,noArrow:N=!1,clickable:j=!1,closeOnEsc:$=!1,closeOnScroll:I=!1,closeOnResize:q=!1,openEvents:B,closeEvents:z,globalCloseEvents:D,imperativeModeOnly:M,style:H,position:K,afterShow:W,afterHide:P,disableTooltip:V,content:X,contentWrapperRef:F,isOpen:U,defaultIsOpen:Z=!1,setIsOpen:G,activeAnchor:Y,setActiveAnchor:J,border:Q,opacity:ee,arrowColor:te,role:oe="tooltip"}=r;var re;const le=e.useRef(null),ne=e.useRef(null),se=e.useRef(null),ce=e.useRef(null),ie=e.useRef(null),[ae,ue]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:w}),[de,pe]=e.useState(!1),[fe,ve]=e.useState(!1),[me,ye]=e.useState(null),he=e.useRef(!1),we=e.useRef(null),{anchorRefs:_e,setActiveAnchor:be}=b(s),ge=e.useRef(!1),[Ee,Se]=e.useState([]),Ae=e.useRef(!1),ke=A||S.includes("click"),Oe=ke||(null==B?void 0:B.click)||(null==B?void 0:B.dblclick)||(null==B?void 0:B.mousedown),Te=B?{...B}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!B&&ke&&Object.assign(Te,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const xe=z?{...z}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!z&&ke&&Object.assign(xe,{mouseleave:!1,blur:!1,mouseout:!1});const Re=D?{...D}:{escape:$||!1,scroll:I||!1,resize:q||!1,clickOutsideAnchor:Oe||!1};M&&(Object.assign(Te,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(xe,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),y((()=>(Ae.current=!0,()=>{Ae.current=!1})),[]);const Le=e=>{Ae.current&&(e&&ve(!0),setTimeout((()=>{Ae.current&&(null==G||G(e),void 0===U&&pe(e))}),10))};e.useEffect((()=>{if(void 0===U)return()=>null;U&&ve(!0);const e=setTimeout((()=>{pe(U)}),10);return()=>{clearTimeout(e)}}),[U]),e.useEffect((()=>{if(de!==he.current)if(h(ie),he.current=de,de)null==W||W();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,o,r]=t;return Number(o)*("ms"===r?1:1e3)})();ie.current=setTimeout((()=>{ve(!1),ye(null),null==P||P()}),e+25)}}),[de]);const Ce=e=>{ue((t=>f(t,e)?t:e))},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;h(se),fe?Le(!0):se.current=setTimeout((()=>{Le(!0)}),e)},je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;h(ce),ce.current=setTimeout((()=>{ge.current||Le(!1)}),e)},$e=e=>{var t;if(!e)return;const o=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==o?void 0:o.isConnected))return J(null),void be({current:null});x?Ne():Le(!0),J(o),be({current:o}),h(ce)},Ie=()=>{j?je(R||100):R?je():Le(!1),h(se)},qe=e=>{let{x:t,y:o}=e;var r;const l={getBoundingClientRect:()=>({x:t,y:o,width:0,height:0,top:o,left:t,right:t,bottom:o})};a({place:null!==(r=null==me?void 0:me.place)&&void 0!==r?r:w,offset:_,elementReference:l,tooltipReference:le.current,tooltipArrowReference:ne.current,strategy:k,middlewares:O,border:Q}).then((e=>{Ce(e)}))},Be=e=>{if(!e)return;const t=e,o={x:t.clientX,y:t.clientY};qe(o),we.current=o},ze=e=>{var t;if(!de)return;const o=e.target;o.isConnected&&((null===(t=le.current)||void 0===t?void 0:t.contains(o))||[document.querySelector(`[id='${p}']`),...Ee].some((e=>null==e?void 0:e.contains(o)))||(Le(!1),h(se)))},De=d($e,50,!0),Me=d(Ie,50,!0),He=e=>{Me.cancel(),De(e)},Ke=()=>{De.cancel(),Me()},We=e.useCallback((()=>{var e,t;const o=null!==(e=null==me?void 0:me.position)&&void 0!==e?e:K;o?qe(o):L?we.current&&qe(we.current):(null==Y?void 0:Y.isConnected)&&a({place:null!==(t=null==me?void 0:me.place)&&void 0!==t?t:w,offset:_,elementReference:Y,tooltipReference:le.current,tooltipArrowReference:ne.current,strategy:k,middlewares:O,border:Q}).then((e=>{Ae.current&&Ce(e)}))}),[de,Y,X,H,w,null==me?void 0:me.place,_,k,K,null==me?void 0:me.position,L]);e.useEffect((()=>{var e,o;const r=new Set(_e);Ee.forEach((e=>{(null==V?void 0:V(e))||r.add({current:e})}));const l=document.querySelector(`[id='${p}']`);l&&!(null==V?void 0:V(l))&&r.add({current:l});const n=()=>{Le(!1)},s=m(Y),c=m(le.current);Re.scroll&&(window.addEventListener("scroll",n),null==s||s.addEventListener("scroll",n),null==c||c.addEventListener("scroll",n));let i=null;Re.resize?window.addEventListener("resize",n):Y&&le.current&&(i=t.autoUpdate(Y,le.current,We,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const a=e=>{"Escape"===e.key&&Le(!1)};Re.escape&&window.addEventListener("keydown",a),Re.clickOutsideAnchor&&window.addEventListener("click",ze);const u=[],d=e=>{de&&(null==e?void 0:e.target)===Y||$e(e)},f=e=>{de&&(null==e?void 0:e.target)===Y&&Ie()},v=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Te).forEach((e=>{let[t,o]=e;o&&(v.includes(t)?u.push({event:t,listener:He}):y.includes(t)&&u.push({event:t,listener:d}))})),Object.entries(xe).forEach((e=>{let[t,o]=e;o&&(v.includes(t)?u.push({event:t,listener:Ke}):y.includes(t)&&u.push({event:t,listener:f}))})),L&&u.push({event:"pointermove",listener:Be});const h=()=>{ge.current=!0},w=()=>{ge.current=!1,Ie()};return j&&!Oe&&(null===(e=le.current)||void 0===e||e.addEventListener("mouseenter",h),null===(o=le.current)||void 0===o||o.addEventListener("mouseleave",w)),u.forEach((e=>{let{event:t,listener:o}=e;r.forEach((e=>{var r;null===(r=e.current)||void 0===r||r.addEventListener(t,o)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",n),null==s||s.removeEventListener("scroll",n),null==c||c.removeEventListener("scroll",n)),Re.resize?window.removeEventListener("resize",n):null==i||i(),Re.clickOutsideAnchor&&window.removeEventListener("click",ze),Re.escape&&window.removeEventListener("keydown",a),j&&!Oe&&(null===(e=le.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=le.current)||void 0===t||t.removeEventListener("mouseleave",w)),u.forEach((e=>{let{event:t,listener:o}=e;r.forEach((e=>{var r;null===(r=e.current)||void 0===r||r.removeEventListener(t,o)}))}))}}),[Y,We,fe,_e,Ee,B,z,D,ke,x,R]),e.useEffect((()=>{var e,t;let o=null!==(t=null!==(e=null==me?void 0:me.anchorSelect)&&void 0!==e?e:v)&&void 0!==t?t:"";!o&&s&&(o=`[data-tooltip-id='${s.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===s?t.push(e.target):e.oldValue===s&&r.push(e.target)),"childList"===e.type){if(Y){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,Y))&&(ve(!1),Le(!1),J(null),h(se),h(ce),!0)}))}if(o)try{const r=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...r.filter((e=>e.matches(o)))),t.push(...r.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&Se((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[s,v,null==me?void 0:me.anchorSelect,Y]),e.useEffect((()=>{We()}),[We]),e.useEffect((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>We()))}));return e.observe(F.current),()=>{e.disconnect()}}),[X,null==F?void 0:F.current]),e.useEffect((()=>{var e;const t=document.querySelector(`[id='${p}']`),o=[...Ee,t];Y&&o.includes(Y)||J(null!==(e=Ee[0])&&void 0!==e?e:t)}),[p,Ee,Y]),e.useEffect((()=>(Z&&Le(!0),()=>{h(se),h(ce)})),[]),e.useEffect((()=>{var e;let t=null!==(e=null==me?void 0:me.anchorSelect)&&void 0!==e?e:v;if(!t&&s&&(t=`[data-tooltip-id='${s.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Se(e)}catch(e){Se([])}}),[s,v,null==me?void 0:me.anchorSelect]),e.useEffect((()=>{se.current&&(h(se),Ne(x))}),[x]);const Pe=null!==(re=null==me?void 0:me.content)&&void 0!==re?re:X,Ve=de&&Object.keys(ae.tooltipStyles).length>0;return e.useImperativeHandle(l,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ye(null!=e?e:null),(null==e?void 0:e.delay)?Ne(e.delay):Le(!0)},close:e=>{(null==e?void 0:e.delay)?je(e.delay):Le(!1)},activeAnchor:Y,place:ae.place,isOpen:Boolean(fe&&!C&&Pe&&Ve)}))),fe&&!C&&Pe?n.default.createElement(T,{id:s,role:oe,className:o.default("react-tooltip",g.tooltip,E.tooltip,E[u],c,`react-tooltip__place-${ae.place}`,g[Ve?"show":"closing"],Ve?"react-tooltip__show":"react-tooltip__closing","fixed"===k&&g.fixed,j&&g.clickable),onTransitionEnd:e=>{h(ie),de||"opacity"!==e.propertyName||(ve(!1),ye(null),null==P||P())},style:{...H,...ae.tooltipStyles,opacity:void 0!==ee&&Ve?ee:void 0},ref:le},Pe,n.default.createElement(T,{className:o.default("react-tooltip-arrow",g.arrow,E.arrow,i,N&&g.noArrow),style:{...ae.tooltipArrowStyles,background:te?`linear-gradient(to right bottom, transparent 50%, ${te} 50%)`:void 0},ref:ne})):null},A=e=>{let{content:t}=e;return n.default.createElement("span",{dangerouslySetInnerHTML:{__html:t}})},k=n.default.forwardRef(((t,r)=>{let{id:l,anchorId:s,anchorSelect:c,content:i,html:a,render:d,className:p,classNameArrow:f,variant:v="dark",place:m="top",offset:y=10,wrapper:h="div",children:w=null,events:_=["hover"],openOnClick:g=!1,positionStrategy:E="absolute",middlewares:k,delayShow:O=0,delayHide:T=0,float:x=!1,hidden:R=!1,noArrow:L=!1,clickable:C=!1,closeOnEsc:N=!1,closeOnScroll:j=!1,closeOnResize:$=!1,openEvents:I,closeEvents:q,globalCloseEvents:B,imperativeModeOnly:z=!1,style:D,position:M,isOpen:H,defaultIsOpen:K=!1,disableStyleInjection:W=!1,border:P,opacity:V,arrowColor:X,setIsOpen:F,afterShow:U,afterHide:Z,disableTooltip:G,role:Y="tooltip"}=t;const[J,Q]=e.useState(i),[ee,te]=e.useState(a),[oe,re]=e.useState(m),[le,ne]=e.useState(v),[se,ce]=e.useState(y),[ie,ae]=e.useState(O),[ue,de]=e.useState(T),[pe,fe]=e.useState(x),[ve,me]=e.useState(R),[ye,he]=e.useState(h),[we,_e]=e.useState(_),[be,ge]=e.useState(E),[Ee,Se]=e.useState(null),[Ae,ke]=e.useState(null),Oe=e.useRef(W),{anchorRefs:Te,activeAnchor:xe}=b(l),Re=e=>null==e?void 0:e.getAttributeNames().reduce(((t,o)=>{var r;return o.startsWith("data-tooltip-")&&(t[o.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(o))&&void 0!==r?r:null),t}),{}),Le=e=>{const t={place:e=>{var t;re(null!==(t=e)&&void 0!==t?t:m)},content:e=>{Q(null!=e?e:i)},html:e=>{te(null!=e?e:a)},variant:e=>{var t;ne(null!==(t=e)&&void 0!==t?t:v)},offset:e=>{ce(null===e?y:Number(e))},wrapper:e=>{var t;he(null!==(t=e)&&void 0!==t?t:h)},events:e=>{const t=null==e?void 0:e.split(" ");_e(null!=t?t:_)},"position-strategy":e=>{var t;ge(null!==(t=e)&&void 0!==t?t:E)},"delay-show":e=>{ae(null===e?O:Number(e))},"delay-hide":e=>{de(null===e?T:Number(e))},float:e=>{fe(null===e?x:"true"===e)},hidden:e=>{me(null===e?R:"true"===e)},"class-name":e=>{Se(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((e=>{let[o,r]=e;var l;null===(l=t[o])||void 0===l||l.call(t,r)}))};e.useEffect((()=>{Q(i)}),[i]),e.useEffect((()=>{te(a)}),[a]),e.useEffect((()=>{re(m)}),[m]),e.useEffect((()=>{ne(v)}),[v]),e.useEffect((()=>{ce(y)}),[y]),e.useEffect((()=>{ae(O)}),[O]),e.useEffect((()=>{de(T)}),[T]),e.useEffect((()=>{fe(x)}),[x]),e.useEffect((()=>{me(R)}),[R]),e.useEffect((()=>{ge(E)}),[E]),e.useEffect((()=>{Oe.current!==W&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[W]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===W,disableBase:W}}))}),[]),e.useEffect((()=>{var e;const t=new Set(Te);let o=c;if(!o&&l&&(o=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach((e=>{t.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}const r=document.querySelector(`[id='${s}']`);if(r&&t.add({current:r}),!t.size)return()=>null;const n=null!==(e=null!=Ae?Ae:r)&&void 0!==e?e:xe.current,i=new MutationObserver((e=>{e.forEach((e=>{var t;if(!n||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const o=Re(n);Le(o)}))})),a={attributes:!0,childList:!1,subtree:!1};if(n){const e=Re(n);Le(e),i.observe(n,a)}return()=>{i.disconnect()}}),[Te,xe,Ae,s,c]),e.useEffect((()=>{(null==D?void 0:D.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),P&&!u("border",`${P}`)&&console.warn(`[react-tooltip] "${P}" is not a valid \`border\`.`),(null==D?void 0:D.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!u("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)}),[]);let Ce=w;const Ne=e.useRef(null);if(d){const e=d({content:(null==Ae?void 0:Ae.getAttribute("data-tooltip-content"))||J||null,activeAnchor:Ae});Ce=e?n.default.createElement("div",{ref:Ne,className:"react-tooltip-content-wrapper"},e):null}else J&&(Ce=J);ee&&(Ce=n.default.createElement(A,{content:ee}));const je={forwardRef:r,id:l,anchorId:s,anchorSelect:c,className:o.default(p,Ee),classNameArrow:f,content:Ce,contentWrapperRef:Ne,place:oe,variant:le,offset:se,wrapper:ye,events:we,openOnClick:g,positionStrategy:be,middlewares:k,delayShow:ie,delayHide:ue,float:pe,hidden:ve,noArrow:L,clickable:C,closeOnEsc:N,closeOnScroll:j,closeOnResize:$,openEvents:I,closeEvents:q,globalCloseEvents:B,imperativeModeOnly:z,style:D,position:M,isOpen:H,defaultIsOpen:K,border:P,opacity:V,arrowColor:X,setIsOpen:F,afterShow:U,afterHide:Z,disableTooltip:G,activeAnchor:Ae,setActiveAnchor:e=>ke(e),role:Y};return n.default.createElement(S,{...je})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||i({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||i({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})})),exports.Tooltip=k;
|
|
8
8
|
//# sourceMappingURL=react-tooltip.min.mjs.js.map
|