(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[108],{1082:function(e,r,a){"use strict";var t=a(19),o=a(1),n=a(0),c=a.n(n),u=a(618),l=a(1663),i=a.n(l),s=a(22),f=a(9),d=a(863),b=a(182),g=a(698),j=c.a.forwardRef((function(e,r){var a,c,l=Object(s.i)("submission"),j=!(null===(a=f.a.userPreference.codeFormatter)||void 0===a?void 0:a.disableByDefault),m=(null===(c=f.a.userPreference.codeFormatter)||void 0===c?void 0:c.options)||d.a,v=d.c(e.language),O=e.code,p=Object(n.useRef)(null),_=Object(n.useState)(j&&v),w=Object(t.a)(_,2),h=w[0],k=w[1];if(h&&!p.current){var y=d.b(O,e.language,m),N=Object(t.a)(y,2),x=N[0],B=N[1];x?p.current=B:(b.a.error(l(".failed_to_format",{error:B})),k(!1))}return Object(o.jsx)(g.b,{className:e.className,title:e.title,language:e.language,code:h&&null!=p.current?p.current:O,ref:r,children:v&&Object(o.jsx)(u.a,{className:i.a.formatCodeButton,content:l(h?".show_original_code":".format_code"),onClick:function(){return k(!h)}})})}));r.a=j}}]);
//# sourceMappingURL=108.5807d891.chunk.js.map