{"ast":null,"code":"import { __rest, __assign } from 'tslib';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.js';\nimport { useConstant } from '../../utils/use-constant.js';\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 *     <MotionConfig transition={{ type: \"spring\" }}>\n *       <motion.div animate={{ x: 100 }} />\n *     </MotionConfig>\n *   )\n * }\n * ```\n *\n * @public\n */\nfunction MotionConfig(_a) {\n  var children = _a.children,\n    config = __rest(_a, [\"children\"]);\n  /**\n   * Inherit props from any parent MotionConfig components\n   */\n  config = __assign(__assign({}, 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(function () {\n    return config.isStatic;\n  });\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  var transitionDependency = typeof config.transition === \"object\" ? config.transition.toString() : \"\";\n  var context = useMemo(function () {\n    return config;\n  }, [transitionDependency, config.transformPagePoint]);\n  return React.createElement(MotionConfigContext.Provider, {\n    value: context\n  }, children);\n}\nexport { MotionConfig };","map":{"version":3,"names":["__rest","__assign","React","useContext","useMemo","MotionConfigContext","useConstant","MotionConfig","_a","children","config","isStatic","transitionDependency","transition","toString","context","transformPagePoint","createElement","Provider","value"],"sources":["C:/ldt/LDT/Safemate_Management/node_modules/framer-motion/dist/es/components/MotionConfig/index.js"],"sourcesContent":["import { __rest, __assign } from 'tslib';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.js';\nimport { useConstant } from '../../utils/use-constant.js';\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 *     <MotionConfig transition={{ type: \"spring\" }}>\n *       <motion.div animate={{ x: 100 }} />\n *     </MotionConfig>\n *   )\n * }\n * ```\n *\n * @public\n */\nfunction MotionConfig(_a) {\n    var children = _a.children, config = __rest(_a, [\"children\"]);\n    /**\n     * Inherit props from any parent MotionConfig components\n     */\n    config = __assign(__assign({}, 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(function () { return 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    var transitionDependency = typeof config.transition === \"object\"\n        ? config.transition.toString()\n        : \"\";\n    var context = useMemo(function () { return config; }, [\n        transitionDependency,\n        config.transformPagePoint,\n    ]);\n    return (React.createElement(MotionConfigContext.Provider, { value: context }, children));\n}\n\nexport { MotionConfig };\n"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACxC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,SAASC,mBAAmB,QAAQ,sCAAsC;AAC1E,SAASC,WAAW,QAAQ,6BAA6B;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAACC,EAAE,EAAE;EACtB,IAAIC,QAAQ,GAAGD,EAAE,CAACC,QAAQ;IAAEC,MAAM,GAAGV,MAAM,CAACQ,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;EAC7D;AACJ;AACA;EACIE,MAAM,GAAGT,QAAQ,CAACA,QAAQ,CAAC,CAAC,CAAC,EAAEE,UAAU,CAACE,mBAAmB,CAAC,CAAC,EAAEK,MAAM,CAAC;EACxE;AACJ;AACA;AACA;EACIA,MAAM,CAACC,QAAQ,GAAGL,WAAW,CAAC,YAAY;IAAE,OAAOI,MAAM,CAACC,QAAQ;EAAE,CAAC,CAAC;EACtE;AACJ;AACA;AACA;EACI,IAAIC,oBAAoB,GAAG,OAAOF,MAAM,CAACG,UAAU,KAAK,QAAQ,GAC1DH,MAAM,CAACG,UAAU,CAACC,QAAQ,CAAC,CAAC,GAC5B,EAAE;EACR,IAAIC,OAAO,GAAGX,OAAO,CAAC,YAAY;IAAE,OAAOM,MAAM;EAAE,CAAC,EAAE,CAClDE,oBAAoB,EACpBF,MAAM,CAACM,kBAAkB,CAC5B,CAAC;EACF,OAAQd,KAAK,CAACe,aAAa,CAACZ,mBAAmB,CAACa,QAAQ,EAAE;IAAEC,KAAK,EAAEJ;EAAQ,CAAC,EAAEN,QAAQ,CAAC;AAC3F;AAEA,SAASF,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}