{"version":3,"file":"getDisplayName.mjs","sources":["../../../../../../../../../node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js"],"sourcesContent":["import { ForwardRef, Memo } from 'react-is';\nfunction getFunctionComponentName(Component, fallback = '') {\n  return Component.displayName || Component.name || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  const functionName = getFunctionComponentName(innerType);\n  return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName\n */\nexport default function getDisplayName(Component) {\n  if (Component == null) {\n    return undefined;\n  }\n  if (typeof Component === 'string') {\n    return Component;\n  }\n  if (typeof Component === 'function') {\n    return getFunctionComponentName(Component, 'Component');\n  }\n\n  // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n  if (typeof Component === 'object') {\n    switch (Component.$$typeof) {\n      case ForwardRef:\n        return getWrappedName(Component, Component.render, 'ForwardRef');\n      case Memo:\n        return getWrappedName(Component, Component.type, 'memo');\n      default:\n        return undefined;\n    }\n  }\n  return undefined;\n}"],"names":["ForwardRef","Memo"],"mappings":";;AACA,SAAS,wBAAwB,CAAC,SAAS,EAAE,QAAQ,GAAG,EAAE,EAAE;AAC5D,EAAE,OAAO,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,QAAQ;AAC5D;AACA,SAAS,cAAc,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE;AAC3D,EAAE,MAAM,YAAY,GAAG,wBAAwB,CAAC,SAAS,CAAC;AAC1D,EAAE,OAAO,SAAS,CAAC,WAAW,KAAK,YAAY,KAAK,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;AACzG;;AAEA;AACA;AACA;AACA;AACA;AACe,SAAS,cAAc,CAA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