{"version":3,"sources":["jsdelivr-header.js","/npm/@dptoot/react-element-to-jsx-string@12.0.3/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oECJA,IAAA,OAAA,QAAA,SAAY,M,gCACZ,YAAA,QAAA,0B,iDACA,mBAAA,QAAA,8B,sTAGA,IAAM,wBAA0B,SAC9B,GAYG,IAAA,EAAA,UAAA,OAAA,QAAA,IAAA,UAAA,GAAA,UAAA,GADU,GACV,EAAA,EAVD,mBAUC,IAAA,EAVa,GAUb,EAAA,EAAA,EATD,wBASC,IAAA,KAAA,EAAA,EARD,qBAQC,IAAA,KAPD,EAOC,EAPD,cAOC,EAAA,EAND,eAMC,IAAA,EANS,EAMT,EAAA,EAAA,EALD,iCAKC,IAAA,KAAA,EAAA,EAJD,iBAIC,IAAA,KAHD,EAGC,EAHD,8BACA,EAEC,EAFD,YAGF,IAAK,EACH,MAAM,IAAI,MAAM,wDAGlB,IAAM,EAAU,CACd,cACA,mBACA,gBACA,gBACA,UACA,4BACA,YACA,gCACA,eAGF,OAAO,EAAA,aAAA,UAAW,EAAA,oBAAA,SAAkB,EAAS,GAAU,EACxD,E,gBAEc","file":"/npm/@dptoot/react-element-to-jsx-string@12.0.3/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@dptoot/react-element-to-jsx-string@12.0.3/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* @flow */\r\n\r\nimport * as React from 'react';\r\nimport formatTree from './formatter/formatTree';\r\nimport parseReactElement from './parser/parseReactElement';\r\nimport type { Options } from './options';\r\n\r\nconst reactElementToJsxString = (\r\n  element: React.Element<any>,\r\n  {\r\n    filterProps = [],\r\n    showDefaultProps = true,\r\n    showFunctions = false,\r\n    functionValue,\r\n    tabStop = 2,\r\n    useBooleanShorthandSyntax = true,\r\n    sortProps = true,\r\n    maxInlineAttributesLineLength,\r\n    displayName,\r\n  }: Options = {}\r\n) => {\r\n  if (!element) {\r\n    throw new Error('react-element-to-jsx-string: Expected a ReactElement');\r\n  }\r\n\r\n  const options = {\r\n    filterProps,\r\n    showDefaultProps,\r\n    showFunctions,\r\n    functionValue,\r\n    tabStop,\r\n    useBooleanShorthandSyntax,\r\n    sortProps,\r\n    maxInlineAttributesLineLength,\r\n    displayName,\r\n  };\r\n\r\n  return formatTree(parseReactElement(element, options), options);\r\n};\r\n\r\nexport default reactElementToJsxString;\r\n"]}