(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[13],{698:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return y}));var r=n(29),i=n(19),o=n(1),a=n(0),s=n.n(a),c=n(602),l=n(1336),d=n.n(l),m=n(1337),f=n.n(m),u=n(87),g=n(22),O=n(109),v=s.a.forwardRef((function(e,t){var n=e.html?void 0:e.content,s=Object(a.useState)(),l=Object(i.a)(s,2),d=l[0],m=l[1];return Object(a.useEffect)((function(){d&&(e.fontFaceOverride?d.style.setProperty("font-family",'"'.concat(e.fontFaceOverride,'"'),"important"):d.style.removeProperty("font-family"),"number"===typeof e.fontSizeOverride?d.style.setProperty("font-size","".concat(e.fontSizeOverride,"px"),"important"):d.style.removeProperty("font-size"),"number"===typeof e.lineHeightOverride?d.style.setProperty("line-height",String(e.lineHeightOverride),"important"):d.style.removeProperty("line-height"),!1===e.fontLigaturesOverride?d.style.setProperty("font-variant-ligatures","none","important"):d.style.removeProperty("font-variant-ligatures"))}),[d,e.fontFaceOverride,e.fontSizeOverride,e.lineHeightOverride,e.fontLigaturesOverride]),e.html||n?Object(o.jsxs)("div",{className:f.a.codeBox+(e.className?" "+e.className:""),children:[e.title&&Object(o.jsx)("p",{children:"string"===typeof e.title?Object(o.jsx)("strong",{children:e.title}):e.title}),Object(o.jsxs)(c.a,Object(r.a)(Object(r.a)({className:f.a.codeBoxSegment+(e.segmentClassName?" "+e.segmentClassName:"")},e.segment),{},{children:[e.children,Object(o.jsx)(O.a,{children:Object(o.jsx)("pre",{ref:function(e){"function"===typeof t?t(e):t&&(t.current=e),m(e)},className:f.a.codeBoxContent+(e.wrap?" "+f.a.wrap:""),dangerouslySetInnerHTML:e.html?{__html:e.html}:void 0,children:n})})]}))]}):null})),h=s.a.forwardRef((function(e,t){var n=u.b(e.code,e.language);return Object(o.jsx)(v,{className:e.className,segmentClassName:e.segmentClassName,segment:e.segment,title:e.title,html:n,fontFaceOverride:e.fontFaceOverride,fontSizeOverride:e.fontSizeOverride,lineHeightOverride:e.lineHeightOverride,fontLigaturesOverride:e.fontLigaturesOverride,ref:t,children:e.children})})),p=function(e){var t=Object(g.i)("components.code_box");return Object(o.jsx)("div",{className:f.a.omittedLabel+" monospace",children:1===e.omittedLength?t(".omitted",{count:e.omittedLength}):t(".omitted_s",{count:e.omittedLength})})},j=s.a.forwardRef((function(e,t){var n=Object(a.useMemo)((function(){var t=e.ansiMessage||"",n="string"===typeof t?t:t.data,r="string"===typeof t?0:t.omittedLength;return[(new d.a).ansi_to_html(n),r]}),[e.ansiMessage]),r=Object(i.a)(n,2),s=r[0],c=r[1];return Object(o.jsx)(v,{className:f.a.mainCodeBox,title:e.title,html:s,ref:t,children:c?Object(o.jsx)(p,{omittedLength:c}):null})})),y={segment:f.a.codeBoxSegment,pre:f.a.codeBoxContent}}}]);
//# sourceMappingURL=13.9aa985be.chunk.js.map