{"ast":null,"code":"import { isValidMotionProp } from '../../../motion/utils/valid-prop.js';\nvar shouldForward = function shouldForward(key) {\n  return !isValidMotionProp(key);\n};\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n  var emotionIsPropValid_1 = require(\"@emotion/is-prop-valid\")[\"default\"];\n  shouldForward = function shouldForward(key) {\n    // Handle events explicitly as Emotion validates them all as true\n    if (key.startsWith(\"on\")) {\n      return !isValidMotionProp(key);\n    } else {\n      return emotionIsPropValid_1(key);\n    }\n  };\n} catch (_a) {\n  // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n  var filteredProps = {};\n  for (var key in props) {\n    if (shouldForward(key) || forwardMotionProps === true && isValidMotionProp(key) || !isDom && !isValidMotionProp(key)) {\n      filteredProps[key] = props[key];\n    }\n  }\n  return filteredProps;\n}\nexport { filterProps };","map":{"version":3,"names":["isValidMotionProp","shouldForward","key","emotionIsPropValid_1","require","startsWith","_a","filterProps","props","isDom","forwardMotionProps","filteredProps"],"sources":["C:/ldt/LDT/Safemate_Management/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js"],"sourcesContent":["import { isValidMotionProp } from '../../../motion/utils/valid-prop.js';\n\nvar shouldForward = function (key) { return !isValidMotionProp(key); };\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n    var emotionIsPropValid_1 = require(\"@emotion/is-prop-valid\").default;\n    shouldForward = function (key) {\n        // Handle events explicitly as Emotion validates them all as true\n        if (key.startsWith(\"on\")) {\n            return !isValidMotionProp(key);\n        }\n        else {\n            return emotionIsPropValid_1(key);\n        }\n    };\n}\ncatch (_a) {\n    // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n    var filteredProps = {};\n    for (var key in props) {\n        if (shouldForward(key) ||\n            (forwardMotionProps === true && isValidMotionProp(key)) ||\n            (!isDom && !isValidMotionProp(key))) {\n            filteredProps[key] = props[key];\n        }\n    }\n    return filteredProps;\n}\n\nexport { filterProps };\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qCAAqC;AAEvE,IAAIC,aAAa,GAAG,SAAhBA,aAAaA,CAAaC,GAAG,EAAE;EAAE,OAAO,CAACF,iBAAiB,CAACE,GAAG,CAAC;AAAE,CAAC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;EACA,IAAIC,oBAAoB,GAAGC,OAAO,CAAC,wBAAwB,CAAC,WAAQ;EACpEH,aAAa,GAAG,SAAhBA,aAAaA,CAAaC,GAAG,EAAE;IAC3B;IACA,IAAIA,GAAG,CAACG,UAAU,CAAC,IAAI,CAAC,EAAE;MACtB,OAAO,CAACL,iBAAiB,CAACE,GAAG,CAAC;IAClC,CAAC,MACI;MACD,OAAOC,oBAAoB,CAACD,GAAG,CAAC;IACpC;EACJ,CAAC;AACL,CAAC,CACD,OAAOI,EAAE,EAAE;EACP;AAAA;AAEJ,SAASC,WAAWA,CAACC,KAAK,EAAEC,KAAK,EAAEC,kBAAkB,EAAE;EACnD,IAAIC,aAAa,GAAG,CAAC,CAAC;EACtB,KAAK,IAAIT,GAAG,IAAIM,KAAK,EAAE;IACnB,IAAIP,aAAa,CAACC,GAAG,CAAC,IACjBQ,kBAAkB,KAAK,IAAI,IAAIV,iBAAiB,CAACE,GAAG,CAAE,IACtD,CAACO,KAAK,IAAI,CAACT,iBAAiB,CAACE,GAAG,CAAE,EAAE;MACrCS,aAAa,CAACT,GAAG,CAAC,GAAGM,KAAK,CAACN,GAAG,CAAC;IACnC;EACJ;EACA,OAAOS,aAAa;AACxB;AAEA,SAASJ,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}