1 line
971 B
JavaScript
1 line
971 B
JavaScript
"use strict";(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[4880],{24880:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c,markdown:()=>u});var r=e(14320),o=e(90375),i=e(10298),s=e.n(i),d=e(32347),p=s()();function u(t,n){return n&&p.set(n),p.render(t)}p.use(d.html5Media);var c=function(t){function n(n){var e=t.call(this,n)||this;return e.htmlRef=e.htmlRef.bind(e),e}return(0,r.ZT)(n,t),n.prototype.htmlRef=function(t){this.dom=t,t&&this._render()},n.prototype.componentDidUpdate=function(t){this.props.content!==t.content&&this._render()},n.prototype._render=function(){return(0,r.mG)(this,void 0,void 0,(function(){var t,n,e;return(0,r.Jh)(this,(function(r){return t=this.props,n=t.content,e=t.options,this.dom.innerHTML=u(n,e),[2]}))}))},n.prototype.render=function(){return o.Z.createElement("div",{"data-testid":"markdown-body",className:"markdown-body",ref:this.htmlRef})},n.defaultProps={content:"",options:{linkify:!0}},n}(o.Z.Component)}}]); |