{"version":3,"file":"index-DHYGW7dH-chunk.js","sources":["../../../node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { useContext, useMemo } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { loadExternalIsValidProp } from '../../render/dom/utils/filter-props.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * `MotionConfig` is used to set configuration options for all children `motion` components.\n *\n * ```jsx\n * import { motion, MotionConfig } from \"framer-motion\"\n *\n * export function App() {\n * return (\n * \n * \n * \n * )\n * }\n * ```\n *\n * @public\n */\nfunction MotionConfig({ children, isValidProp, ...config }) {\n isValidProp && loadExternalIsValidProp(isValidProp);\n /**\n * Inherit props from any parent MotionConfig components\n */\n config = { ...useContext(MotionConfigContext), ...config };\n /**\n * Don't allow isStatic to change between renders as it affects how many hooks\n * motion components fire.\n */\n config.isStatic = useConstant(() => config.isStatic);\n /**\n * Creating a new config context object will re-render every `motion` component\n * every time it renders. So we only want to create a new one sparingly.\n */\n const context = useMemo(() => config, [\n JSON.stringify(config.transition),\n config.transformPagePoint,\n config.reducedMotion,\n ]);\n return (jsx(MotionConfigContext.Provider, { value: context, children: children }));\n}\n\nexport { MotionConfig };\n"],"names":["MotionConfig","children","isValidProp","config","loadExternalIsValidProp","useContext","MotionConfigContext","useConstant","context","useMemo","jsx"],"mappings":"6GAwBA,SAASA,EAAa,CAAE,SAAAC,EAAU,YAAAC,EAAa,GAAGC,CAAM,EAAI,CACxDD,GAAeE,EAAwBF,CAAW,EAIlDC,EAAS,CAAE,GAAGE,EAAU,WAACC,CAAmB,EAAG,GAAGH,CAAM,EAKxDA,EAAO,SAAWI,EAAY,IAAMJ,EAAO,QAAQ,EAKnD,MAAMK,EAAUC,UAAQ,IAAMN,EAAQ,CAClC,KAAK,UAAUA,EAAO,UAAU,EAChCA,EAAO,mBACPA,EAAO,aACf,CAAK,EACD,OAAQO,EAAG,IAACJ,EAAoB,SAAU,CAAE,MAAOE,EAAS,SAAUP,CAAQ,CAAE,CACpF","x_google_ignoreList":[0]}