Module 550997

2,074 characters · in 6d3050752719b4f0.js, e5ad6b2864e7c7ff.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";let l;n.r(t),n.d(t,{default:()=>E,renderChangelogMessageMarkup:()=>I});var i=n(791332),s=n.n(i),a=n(873879),r=n(683412),o=n(704726),u=n(46054);let c=s().defaultRules.lheading,d=s().defaultRules.heading,m=s().defaultRules.link,g=s().defaultRules.image,h=s().defaultRules.list,A=s().defaultRules.blockQuote,f=s().defaultRules.paragraph,p=/\{(.+?)}/,x=/^\$(\w+?)\$/;l=n(482644);let v=e=>{let{transformUpperCase:t=!1}=e;return(e,n,l)=>{let i=p.exec(e[1]),a=e[1].replace(p,"");return t&&(a=a.toUpperCase()),{className:null!=i?i[1]:null,level:"="===e[2]?1:2,content:s().parseInline(n,a,l)}}},C=e=>({...l.baseRules,image:{...g,..."function"==typeof l.customRules.image?l.customRules.image(e):l.customRules.image},link:{...m,..."function"==typeof l.customRules.link?l.customRules.link(e):l.customRules.link},list:{...h,..."function"==typeof l.customRules.list?l.customRules.list(e):l.customRules.list},interpolation:{order:o.Ay.order,match:e=>x.exec(e),parse(e,t,n){let l=n.interpolations[e[1]];return null==l?{type:"text",content:e[0]}:{type:"interpolation",renderer:l}},react:e=>e.renderer()},lheading:{...c,parse:v({transformUpperCase:!0}),..."function"==typeof l.customRules.lheading?l.customRules.lheading(e):l.customRules.lheading},heading:{...d,..."function"==typeof l.customRules.heading?l.customRules.heading(e):l.customRules.heading},blockQuote:{...A,..."function"==typeof l.customRules.blockQuote?l.customRules.blockQuote(e):l.customRules.blockQuote},paragraph:{...f,..."function"==typeof l.customRules.paragraph?l.customRules.paragraph(e):l.customRules.paragraph}});function N(e){return{...C(e)}}let E={getDefaultRules:N,getSpecialRules:e=>({...C(e),...{lheading:{...c,parse:v({transformUpperCase:!1}),..."function"==typeof l.customRules.lheading?l.customRules.lheading(e):l.customRules.lheading}}}),getMessageRules:e=>({...{...C(e),newline:{...s().defaultRules.newline},text:o.Ay,list:a.A,subtext:r.A}})};function I(e,t,n){return{hasSpoilerEmbeds:!1,hasBailedAst:!1,content:u.A.reactParserFor(N(t))(e.content,!1,null!=n?{changeLog:n}:{})}}}