{"version":3,"sources":["../../src/helpers/getComponentName.js"],"names":["getComponentName","Component","displayName","type","$$typeof","Element"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEe,SAASA,gBAAT,CAA0BC,SAA1B,EAAqC;AAClD,MAAI,OAAOA,SAAP,KAAqB,QAAzB,EAAmC;AACjC,WAAOA,SAAP;AACD;;AACD,MAAI,OAAOA,SAAP,KAAqB,UAAzB,EAAqC;AACnC,WAAOA,SAAS,CAACC,WAAV,IAAyB,mCAAgBD,SAAhB,CAAhC;AACD;;AACD,MAAI,2BAAa;AAAEE,IAAAA,IAAI,EAAEF,SAAR;AAAmBG,IAAAA,QAAQ,EAAEC;AAA7B,GAAb,CAAJ,EAA0D;AACxD,WAAOJ,SAAS,CAACC,WAAjB;AACD;;AACD,MAAI,qBAAOD,SAAP,CAAJ,EAAuB;AACrB,WAAOD,gBAAgB,CAACC,SAAS,CAACE,IAAX,CAAvB;AACD;;AACD,SAAO,IAAP;AACD","sourcesContent":["import getFunctionName from 'function.prototype.name';\nimport { isForwardRef, Element, isMemo } from 'react-is';\n\nexport default function getComponentName(Component) {\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return Component.displayName || getFunctionName(Component);\n }\n if (isForwardRef({ type: Component, $$typeof: Element })) {\n return Component.displayName;\n }\n if (isMemo(Component)) {\n return getComponentName(Component.type);\n }\n return null;\n}\n"],"file":"getComponentName.js"}