Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/de815204bac00658705942dca563bdf0719d3cea34d9cb518f3ec8543daa9666.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
2.1 KiB
JSON

{"ast":null,"code":"import { useConstant } from '../../utils/use-constant.mjs';\nimport { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';\nimport { createScopedAnimate } from '../animate/index.mjs';\nfunction useAnimate() {\n const scope = useConstant(() => ({\n current: null,\n // Will be hydrated by React\n animations: []\n }));\n const animate = useConstant(() => createScopedAnimate(scope));\n useUnmountEffect(() => {\n scope.animations.forEach(animation => animation.stop());\n scope.animations.length = 0;\n });\n return [scope, animate];\n}\nexport { useAnimate };","map":{"version":3,"names":["useConstant","useUnmountEffect","createScopedAnimate","useAnimate","scope","current","animations","animate","forEach","animation","stop","length"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs"],"sourcesContent":["import { useConstant } from '../../utils/use-constant.mjs';\nimport { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';\nimport { createScopedAnimate } from '../animate/index.mjs';\n\nfunction useAnimate() {\n const scope = useConstant(() => ({\n current: null, // Will be hydrated by React\n animations: [],\n }));\n const animate = useConstant(() => createScopedAnimate(scope));\n useUnmountEffect(() => {\n scope.animations.forEach((animation) => animation.stop());\n scope.animations.length = 0;\n });\n return [scope, animate];\n}\n\nexport { useAnimate };\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,gBAAgB,QAAQ,oCAAoC;AACrE,SAASC,mBAAmB,QAAQ,sBAAsB;AAE1D,SAASC,UAAUA,CAAA,EAAG;EAClB,MAAMC,KAAK,GAAGJ,WAAW,CAAC,OAAO;IAC7BK,OAAO,EAAE,IAAI;IAAE;IACfC,UAAU,EAAE;EAChB,CAAC,CAAC,CAAC;EACH,MAAMC,OAAO,GAAGP,WAAW,CAAC,MAAME,mBAAmB,CAACE,KAAK,CAAC,CAAC;EAC7DH,gBAAgB,CAAC,MAAM;IACnBG,KAAK,CAACE,UAAU,CAACE,OAAO,CAAEC,SAAS,IAAKA,SAAS,CAACC,IAAI,CAAC,CAAC,CAAC;IACzDN,KAAK,CAACE,UAAU,CAACK,MAAM,GAAG,CAAC;EAC/B,CAAC,CAAC;EACF,OAAO,CAACP,KAAK,EAAEG,OAAO,CAAC;AAC3B;AAEA,SAASJ,UAAU","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}