{"mappings":";2OAQI,IAAAA,EAAAC,EAAA,KAAA,cAEI,WAAA,CAAA,CACH,EAAA,EAEDC,EAAAD,EAAA,IAAAE,EAAAH,CAAA,CAAA,gBAGIA,EAAA,WAAA,QAAAI,GAAAA,EAAA,KAAA,CAAA,CACJ,CAAA,EAEA,CAAAJ,EAAAE,CAAA,CACJ","names":["scope","useConstant","animate","createScopedWaapiAnimate","animation"],"sources":["../esm/npm/framer-motion@12.38.0/node_modules/framer-motion/src/animation/hooks/use-animate-style.ts"],"sourcesContent":["\"use client\"\n\nimport { useConstant } from \"../../utils/use-constant\"\nimport { useUnmountEffect } from \"../../utils/use-unmount-effect\"\nimport { createScopedWaapiAnimate } from \"../animators/waapi/animate-style\"\nimport { AnimationScope } from \"motion-dom\"\n\nexport function useAnimateMini\u003cT extends Element = any\u003e() {\n    const scope: AnimationScope\u003cT\u003e = useConstant(() =\u003e ({\n        current: null!, // Will be hydrated by React\n        animations: [],\n    }))\n\n    const animate = useConstant(() =\u003e createScopedWaapiAnimate(scope))\n\n    useUnmountEffect(() =\u003e {\n        scope.animations.forEach((animation) =\u003e animation.stop())\n    })\n\n    return [scope, animate] as [AnimationScope\u003cT\u003e, typeof animate]\n}\n"],"version":3}
