@tamagui/animations-motion 3.0.7 → 3.0.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function(style) {\n return style && typeof style === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (e) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function(animationProps) {\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps, styleState } = animationProps;\n var _styleState_effectiveTransition;\n var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !effectiveTransition;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState, effectiveTransition);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition !== null && effectiveTransition !== void 0 ? effectiveTransition : null, {\n animations\n }), \"exit\")) : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!(node instanceof HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (e) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (e) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (e) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var _opts_x, _ref, _ref1;\n var positionTransition = (_ref1 = (_ref = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref !== void 0 ? _ref : opts.default) !== null && _ref1 !== void 0 ? _ref1 : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (e) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);\n }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, emittedTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (node instanceof HTMLElement) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _doAnimate_transform;\n var target = parseTranslate((_doAnimate_transform = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _doAnimate_transform !== void 0 ? _doAnimate_transform : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var _ref;\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, {\n animations\n }), animationState);\n var animationOptions = getAnimationOptions(resolved);\n var dontAnimate;\n var doAnimate;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(resolved) {\n if (!(0, import_animation_helpers.hasTransition)(resolved)) return {};\n var result = {};\n if (resolved.all) {\n var base = entryToMotion(resolved.all);\n Object.assign(result, base);\n result.default = {\n ...base\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = resolved.entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.property === \"all\") continue;\n var config = entryToMotion(entry);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = (0, import_animation_helpers.styleKeysForProperty)(entry.property)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key = _step1.value;\n result[key] = {\n ...config\n };\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return result;\n }\n}\nfunction entryToMotion(entry) {\n var delay = entry.delayMs ? {\n delay: entry.delayMs / 1e3\n } : null;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...delay\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"tween\",\n duration: entry.timing.durationMs / 1e3,\n ...bezier ? {\n ease: [\n bezier[0],\n bezier[1],\n bezier[2],\n bezier[3]\n ]\n } : null,\n ...delay\n };\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _shorthands_source, _shorthands_source1, _shorthands_source2;\n return {\n source,\n target: (_shorthands_source = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source !== void 0 ? _shorthands_source : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_shorthands_source1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source1 !== void 0 ? _shorthands_source1 : source] !== initialSource[source] ? initialResolved[(_shorthands_source2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source2 !== void 0 ? _shorthands_source2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_internal_runtime.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_internal_runtime.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_internal_runtime.fixStyles)(out.viewProps.style);\n (0, import_internal_runtime.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (node instanceof HTMLElement && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function(nextStyle, transition, motionValue3) {\n if (!(node instanceof HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));\n };\n var animateChangedValue = function(nextStyle, transition, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, transition, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, transition, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), toTransition(MotionValueStrategy.get(mv)), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), toTransition(MotionValueStrategy.get(motionValue2)), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe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AC/D;MACF;KACF;IACF;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;GACA,IAAI,WAAW,MAAM;IACnB,SAAS,EACP,GAAG,KACL;GACF;GACA,OAAO,OAAO;EAChB;CACF;CACA,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function asStyleRecord2(style) {\n return style && typeof style === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (unused) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function useAnimations(animationProps) {\n var _ref;\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps, styleState } = animationProps;\n var effectiveTransition = (_ref = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref !== void 0 ? _ref : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function emit2(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !effectiveTransition;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState, effectiveTransition);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function flushAnimation2(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition !== null && effectiveTransition !== void 0 ? effectiveTransition : null, {\n animations\n }), \"exit\")) : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!(node instanceof HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var _ref2, _ref1, _opts_x;\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (unused) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function write2() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (unused) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (unused) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var positionTransition = (_ref2 = (_ref1 = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref1 !== void 0 ? _ref1 : opts.default) !== null && _ref2 !== void 0 ? _ref2 : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (unused) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);\n }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function complete2(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function complete2(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function settle2(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, emittedTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (node instanceof HTMLElement) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _ref2;\n var target = parseTranslate((_ref2 = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _ref2 !== void 0 ? _ref2 : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function getStyle() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n var _ref;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, {\n animations\n }), animationState);\n var animationOptions = getAnimationOptions(resolved);\n var dontAnimate;\n var doAnimate;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(resolved) {\n if (!(0, import_animation_helpers.hasTransition)(resolved)) return {};\n var result = {};\n if (resolved.all) {\n var base = entryToMotion(resolved.all);\n Object.assign(result, base);\n result.default = {\n ...base\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = resolved.entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.property === \"all\") continue;\n var config = entryToMotion(entry);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = (0, import_animation_helpers.styleKeysForProperty)(entry.property)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key = _step1.value;\n result[key] = {\n ...config\n };\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return result;\n }\n}\nfunction entryToMotion(entry) {\n var delay = entry.delayMs ? {\n delay: entry.delayMs / 1e3\n } : null;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...delay\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"tween\",\n duration: entry.timing.durationMs / 1e3,\n ...bezier ? {\n ease: [\n bezier[0],\n bezier[1],\n bezier[2],\n bezier[3]\n ]\n } : null,\n ...delay\n };\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _ref, _ref1, _ref2;\n return {\n source,\n target: (_ref = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref !== void 0 ? _ref : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_ref1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref1 !== void 0 ? _ref1 : source] !== initialSource[source] ? initialResolved[(_ref2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref2 !== void 0 ? _ref2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_internal_runtime.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_internal_runtime.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_internal_runtime.fixStyles)(out.viewProps.style);\n (0, import_internal_runtime.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (node instanceof HTMLElement && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function toTransition2(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function animateNodeTo2(nextStyle, transition, motionValue3) {\n if (!(node instanceof HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));\n };\n var animateChangedValue = function animateChangedValue2(nextStyle, transition, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, transition, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, transition, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function styleForAll2() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), toTransition(MotionValueStrategy.get(mv)), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), toTransition(MotionValueStrategy.get(motionValue2)), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\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,CAAE,OAAO,4BAA4B,MAAM;KAC3J,IAAI,YAAY,MAAM;KACtB,IAAI,OAAO,cAAc,YAAY,cAAc,eAAe;MAChE,IAAI,YAAY,UAAU,MAAM,wCAAwC;MACxE,IAAI,WAAW;OACb,QAAQ,QAAQ,UAAU,GAAG,IAAI,UAAU,GAAG,IAAI,UAAU,GAAG;OAC/D;MACF;KACF;IACF;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;GACA,IAAI,WAAW,MAAM;IACnB,SAAS,EACP,GAAG,KACL;GACF;GACA,OAAO,OAAO;EAChB;CACF;CACA,OAAO;AACT"}
|
|
@@ -13,7 +13,7 @@ function useAnimateSSRSafe() {
|
|
|
13
13
|
}
|
|
14
14
|
return useAnimate();
|
|
15
15
|
}
|
|
16
|
-
var asStyleRecord = function(style) {
|
|
16
|
+
var asStyleRecord = function asStyleRecord2(style) {
|
|
17
17
|
return style && typeof style === "object" && !Array.isArray(style) ? style : {};
|
|
18
18
|
};
|
|
19
19
|
function assignInlineStyles(node, styles) {
|
|
@@ -46,7 +46,7 @@ function parseTranslate(transform) {
|
|
|
46
46
|
x: m.e,
|
|
47
47
|
y: m.f
|
|
48
48
|
};
|
|
49
|
-
} catch (
|
|
49
|
+
} catch (unused) {
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -68,13 +68,13 @@ function createAnimations(animations) {
|
|
|
68
68
|
return cb();
|
|
69
69
|
});
|
|
70
70
|
},
|
|
71
|
-
useAnimations: function(animationProps) {
|
|
71
|
+
useAnimations: function useAnimations(animationProps) {
|
|
72
|
+
var _ref;
|
|
72
73
|
if (isHydratingGlobal === void 0 && !getConfig().settings.disableSSR) {
|
|
73
74
|
isHydratingGlobal = true;
|
|
74
75
|
}
|
|
75
76
|
var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps, styleState } = animationProps;
|
|
76
|
-
var
|
|
77
|
-
var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;
|
|
77
|
+
var effectiveTransition = (_ref = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref !== void 0 ? _ref : props.transition;
|
|
78
78
|
var isComponentHydrating = componentState.unmounted === true;
|
|
79
79
|
var isMounting = componentState.unmounted === "should-enter";
|
|
80
80
|
var isEntering = !!componentState.unmounted;
|
|
@@ -107,7 +107,7 @@ function createAnimations(animations) {
|
|
|
107
107
|
wasNoClass: !!styleProps.noClass
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
var emit = function(phase, cause, finished) {
|
|
110
|
+
var emit = function emit2(phase, cause, finished) {
|
|
111
111
|
var _refs_current_onTransition, _refs_current;
|
|
112
112
|
(_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === "end" ? {
|
|
113
113
|
phase,
|
|
@@ -162,7 +162,7 @@ function createAnimations(animations) {
|
|
|
162
162
|
refs.current.disposed = true;
|
|
163
163
|
};
|
|
164
164
|
}, []);
|
|
165
|
-
var flushAnimation = function(param) {
|
|
165
|
+
var flushAnimation = function flushAnimation2(param) {
|
|
166
166
|
var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;
|
|
167
167
|
var startedControls = null;
|
|
168
168
|
var isCurrentlyExiting = refs.current.isExiting;
|
|
@@ -243,16 +243,17 @@ function createAnimations(animations) {
|
|
|
243
243
|
if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === "string") {
|
|
244
244
|
var target = parseTranslate(diff.transform);
|
|
245
245
|
if (target) {
|
|
246
|
+
var _ref2, _ref1, _opts_x;
|
|
246
247
|
var entry = PopperPositionAnims.get(node);
|
|
247
248
|
if (!entry) {
|
|
248
249
|
var seed = target;
|
|
249
250
|
try {
|
|
250
251
|
var _parseTranslate;
|
|
251
252
|
seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;
|
|
252
|
-
} catch (
|
|
253
|
+
} catch (unused) {}
|
|
253
254
|
var x = motionValue(seed.x);
|
|
254
255
|
var y = motionValue(seed.y);
|
|
255
|
-
var write = function() {
|
|
256
|
+
var write = function write2() {
|
|
256
257
|
node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;
|
|
257
258
|
};
|
|
258
259
|
x.on("change", write);
|
|
@@ -271,7 +272,7 @@ function createAnimations(animations) {
|
|
|
271
272
|
entry.x.jump(live.x);
|
|
272
273
|
entry.y.jump(live.y);
|
|
273
274
|
}
|
|
274
|
-
} catch (
|
|
275
|
+
} catch (unused) {}
|
|
275
276
|
}
|
|
276
277
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
277
278
|
try {
|
|
@@ -285,7 +286,7 @@ function createAnimations(animations) {
|
|
|
285
286
|
})) {
|
|
286
287
|
anim.cancel();
|
|
287
288
|
}
|
|
288
|
-
} catch (
|
|
289
|
+
} catch (unused) {}
|
|
289
290
|
}
|
|
290
291
|
} catch (err) {
|
|
291
292
|
_didIteratorError = true;
|
|
@@ -302,8 +303,7 @@ function createAnimations(animations) {
|
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
var opts = animationOptions2;
|
|
305
|
-
var _opts_x
|
|
306
|
-
var positionTransition = (_ref1 = (_ref = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref !== void 0 ? _ref : opts.default) !== null && _ref1 !== void 0 ? _ref1 : animationOptions2;
|
|
306
|
+
var positionTransition = (_ref2 = (_ref1 = (_opts_x = opts.x) !== null && _opts_x !== void 0 ? _opts_x : opts.transform) !== null && _ref1 !== void 0 ? _ref1 : opts.default) !== null && _ref2 !== void 0 ? _ref2 : animationOptions2;
|
|
307
307
|
var cx = animate(entry.x, target.x, positionTransition);
|
|
308
308
|
var cy = animate(entry.y, target.y, positionTransition);
|
|
309
309
|
entry.stop = function() {
|
|
@@ -331,7 +331,7 @@ function createAnimations(animations) {
|
|
|
331
331
|
midFlightValues[key1] = val;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
} catch (
|
|
334
|
+
} catch (unused) {}
|
|
335
335
|
if (isCurrentlyExiting) {
|
|
336
336
|
refs.current.controls.stop();
|
|
337
337
|
}
|
|
@@ -400,7 +400,7 @@ function createAnimations(animations) {
|
|
|
400
400
|
emit("start", "exit");
|
|
401
401
|
}
|
|
402
402
|
refs.current.exitCompleteScheduled = true;
|
|
403
|
-
var complete = function(finished) {
|
|
403
|
+
var complete = function complete2(finished) {
|
|
404
404
|
if (!refs.current.isExiting) return;
|
|
405
405
|
if (refs.current.exitStarted) {
|
|
406
406
|
refs.current.exitStarted = false;
|
|
@@ -425,7 +425,7 @@ function createAnimations(animations) {
|
|
|
425
425
|
emit("start", "enter");
|
|
426
426
|
}
|
|
427
427
|
refs.current.enterCompleteScheduled = true;
|
|
428
|
-
var complete1 = function(finished) {
|
|
428
|
+
var complete1 = function complete2(finished) {
|
|
429
429
|
if (refs.current.disposed || refs.current.animationState !== "enter") return;
|
|
430
430
|
if (refs.current.enterStarted) {
|
|
431
431
|
refs.current.enterStarted = false;
|
|
@@ -449,7 +449,7 @@ function createAnimations(animations) {
|
|
|
449
449
|
refs.current.updateInFlight = true;
|
|
450
450
|
refs.current.updateControls = controls;
|
|
451
451
|
emit("start", "update");
|
|
452
|
-
var settle = function(finished) {
|
|
452
|
+
var settle = function settle2(finished) {
|
|
453
453
|
if (refs.current.updateControls !== controls) return;
|
|
454
454
|
refs.current.updateInFlight = false;
|
|
455
455
|
refs.current.updateControls = null;
|
|
@@ -496,8 +496,8 @@ function createAnimations(animations) {
|
|
|
496
496
|
if (doAnimate) assignInlineStyles(node, doAnimate);
|
|
497
497
|
var entry = PopperPositionAnims.get(node);
|
|
498
498
|
if (entry) {
|
|
499
|
-
var
|
|
500
|
-
var target = parseTranslate((
|
|
499
|
+
var _ref2;
|
|
500
|
+
var target = parseTranslate((_ref2 = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _ref2 !== void 0 ? _ref2 : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);
|
|
501
501
|
if (target) {
|
|
502
502
|
var _entry_stop;
|
|
503
503
|
(_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);
|
|
@@ -590,7 +590,7 @@ function createAnimations(animations) {
|
|
|
590
590
|
getStyleRef.current = getStyleProp;
|
|
591
591
|
return useMemo(function() {
|
|
592
592
|
return {
|
|
593
|
-
getStyle: function(cur) {
|
|
593
|
+
getStyle: function getStyle(cur) {
|
|
594
594
|
return getStyleRef.current(cur);
|
|
595
595
|
},
|
|
596
596
|
motionValue: motionValue2
|
|
@@ -605,7 +605,7 @@ function createAnimations(animations) {
|
|
|
605
605
|
getStyleRef.current = getStyleProp;
|
|
606
606
|
return useMemo(function() {
|
|
607
607
|
return {
|
|
608
|
-
getStyle: function() {
|
|
608
|
+
getStyle: function getStyle() {
|
|
609
609
|
for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
610
610
|
currentValues[_key] = arguments[_key];
|
|
611
611
|
}
|
|
@@ -618,10 +618,10 @@ function createAnimations(animations) {
|
|
|
618
618
|
};
|
|
619
619
|
function getMotionAnimatedProps(props, style, disable) {
|
|
620
620
|
var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "default", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;
|
|
621
|
+
var _ref;
|
|
621
622
|
if (disable) {
|
|
622
623
|
return { dontAnimate: style };
|
|
623
624
|
}
|
|
624
|
-
var _ref;
|
|
625
625
|
var resolved = forAnimationState(resolveTransition((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, { animations }), animationState);
|
|
626
626
|
var animationOptions = getAnimationOptions(resolved);
|
|
627
627
|
var dontAnimate;
|
|
@@ -780,11 +780,11 @@ var transformAliases = {
|
|
|
780
780
|
function compileAnimatedStyle(initialSource, initialResolved) {
|
|
781
781
|
var shorthands = getConfig().shorthands;
|
|
782
782
|
var entries = Object.keys(initialSource).map(function(source) {
|
|
783
|
-
var
|
|
783
|
+
var _ref, _ref1, _ref2;
|
|
784
784
|
return {
|
|
785
785
|
source,
|
|
786
|
-
target: (
|
|
787
|
-
tokenValue: typeof initialSource[source] === "string" && initialResolved[(
|
|
786
|
+
target: (_ref = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref !== void 0 ? _ref : source,
|
|
787
|
+
tokenValue: typeof initialSource[source] === "string" && initialResolved[(_ref1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref1 !== void 0 ? _ref1 : source] !== initialSource[source] ? initialResolved[(_ref2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _ref2 !== void 0 ? _ref2 : source] : void 0
|
|
788
788
|
};
|
|
789
789
|
});
|
|
790
790
|
return function(sourceStyle) {
|
|
@@ -957,7 +957,7 @@ function createMotionView(defaultTag) {
|
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
var toTransition = function(animationConfig) {
|
|
960
|
+
var toTransition = function toTransition2(animationConfig) {
|
|
961
961
|
return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === "timing" ? {
|
|
962
962
|
type: "tween",
|
|
963
963
|
duration: (animationConfig.duration || 0) / 1e3
|
|
@@ -969,13 +969,13 @@ function createMotionView(defaultTag) {
|
|
|
969
969
|
...animationConfig
|
|
970
970
|
};
|
|
971
971
|
};
|
|
972
|
-
var animateNodeTo = function(nextStyle, transition, motionValue3) {
|
|
972
|
+
var animateNodeTo = function animateNodeTo2(nextStyle, transition, motionValue3) {
|
|
973
973
|
if (!(node instanceof HTMLElement) || hostRef.current !== node) return;
|
|
974
974
|
var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);
|
|
975
975
|
if (!webStyle2) return;
|
|
976
976
|
settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));
|
|
977
977
|
};
|
|
978
|
-
var animateChangedValue = function(nextStyle, transition, motionValue3) {
|
|
978
|
+
var animateChangedValue = function animateChangedValue2(nextStyle, transition, motionValue3) {
|
|
979
979
|
if (seededInCurrentFrame.current && seededNode.current === node) {
|
|
980
980
|
var queuedFrame = queuedAnimationFrames.current.get(motionValue3);
|
|
981
981
|
if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);
|
|
@@ -997,7 +997,7 @@ function createMotionView(defaultTag) {
|
|
|
997
997
|
};
|
|
998
998
|
if (animatedStyle.motionValues) {
|
|
999
999
|
var mvs = animatedStyle.motionValues;
|
|
1000
|
-
var styleForAll = function() {
|
|
1000
|
+
var styleForAll = function styleForAll2() {
|
|
1001
1001
|
return animatedStyle.getStyle(...mvs.map(function(value) {
|
|
1002
1002
|
return value.get();
|
|
1003
1003
|
}));
|