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AAI,EAAA,CAAAgB,IAAA,EAAAV,WAAA,GAAAC,WAAApB,CAAA,QAAAU,EAAAQ,GAAA,EAAAhB,EAAA,CAAAe,UAAArB,EAAAqB,SAAA,eAAAlB,EAAA4B,SAAA,GAAAjB,EAAAQ,GAAA,EAAAZ,IAAA,CAAAU,OAAApB,EAAAkC,KAAA,CAAAX,WAAA,GAAAC,WAAApB,CAAA","sources":["webpack://_N_E/./components/MarkdownText/MarkdownText.js","webpack://_N_E/"],"sourcesContent":["import React from 'react';\nimport ReactMarkdown from 'react-markdown';\nimport Block from '../../adapters/helpers/Block'\nimport PropTypes from 'prop-types';\nimport htmlParser from 'react-markdown/plugins/html-parser';\nimport { MarkdownTextConstants } from '../../adapters/helpers/Constants'\n\nconst astPlugins = [\n htmlParser({\n isValidNode: node => node.type !== MarkdownTextConstants.script,\n processingInstructions: [/* ... */]\n }),\n];\n\nexport function Markdown({ source, className }) {\n return (\n \n );\n}\n\nMarkdown.propTypes = {\n source: PropTypes.any,\n className: PropTypes.string,\n}\n\nexport default function MarkdownText(props) {\n const block = new Block(props);\n const document = block.getDocument();\n const classNames = document?.fields?.classNames;\n let ariaHidden = null;\n if (classNames && classNames.indexOf('aria-hidden') >= 0) {\n ariaHidden = true;\n }\n const Tag = props.isSpan ? 'span' : 'div';\n\n return ((document?.fields) ?\n \n \n \n :\n \n \n \n );\n}\n\nMarkdownText.propTypes = {\n value: PropTypes.string,\n isSpan: PropTypes.bool,\n className: PropTypes.string,\n};\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[811],{80811:function(e,s,n){n.r(s),n.d(s,{Markdown:function(){return o},default:function(){return f}});n(67294);var a=n(30724),i=n.n(a),l=n(40483),u=n(17031),r=n.n(u),t=n(24036),c=n(85893),d=[r()({isValidNode:function(e){return e.type!==t.$6.script},processingInstructions:[]})];function o(e){var s=e.source,n=e.className;return(0,c.jsx)(i(),{source:s,className:n,escapeHtml:!1,astPlugins:d})}function f(e){var s,n=new l.Z(e),a=n.getDocument(),u=null==a||null==(s=a.fields)?void 0:s.classNames,r=null;u&&u.indexOf(\"aria-hidden\")>=0&&(r=!0);var o=e.isSpan?\"span\":\"div\";return(null==a?void 0:a.fields)?(0,c.jsx)(o,{className:u,\"aria-hidden\":r,children:(0,c.jsx)(i(),{source:n.getFieldValue(t.$6.text),escapeHtml:!1,astPlugins:d})}):(0,c.jsx)(o,{className:e.className,\"aria-hidden\":r,children:(0,c.jsx)(i(),{source:e.value,escapeHtml:!1,astPlugins:d})})}}}]);"],"names":["self","webpackChunk_N_E","push","e","s","n","r","d","Markdown","o","default","f","a","i","l","u","t","c","isValidNode","type","$6","script","processingInstructions","source","className","jsx","escapeHtml","astPlugins","Z","getDocument","fields","classNames","indexOf","isSpan","children","getFieldValue","text","value"],"sourceRoot":""}