import{r as s,J as n,co as u,cq as d,V as l}from"./vendor-DKP6ul09.js";import{bD as c,bo as m}from"./ControlType-C3G8KL5r.js";import{r as p}from"./mathjax-CS2eaJoM.js";import"./helpers-BosuxZz1.js";import"./index-B2hEC56I.js";import"./monaco-C4VaWq8m.js";function a(e,r,t){return(r=f(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(e){var r=g(e,"string");return typeof r=="symbol"?r:r+""}function g(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var v=e=>{var{children:r,className:t}=e,i=t!=null&&t!==void 0&&t.startsWith("language-")?t.substring(9):"plaintext";return n.jsx("pre",{children:n.jsx("code",{children:n.jsx(m,{language:i,children:l.Children.map(r,o=>typeof o=="string"?o.trim():o)})})})};class h extends s.PureComponent{constructor(r){super(r),a(this,"container",void 0),this.container=null}render(){var{isEditing:r,content:t,onEditorInitialized:i}=this.props;return n.jsx("div",{className:"markdown-editor-container",ref:o=>{this.container=o},children:r?n.jsx(c,{settings:{language:"markdown",value:t,lineNumbers:"off"},onEditorInitialized:i}):n.jsx(u,{components:{code:v},remarkPlugins:[d],rehypePlugins:[p],children:t})})}}a(h,"defaultProps",{isEditing:!1,content:""});export{h as default};
//# sourceMappingURL=MarkdownEditor-BenZTwzf.js.map
