"use strict";(self.webpackChunknocode_component=self.webpackChunknocode_component||[]).push([[8344],{25016:function(e,n,t){t.r(n),t.d(n,{default:function(){return x}});t(87912),t(97308);var r=t(13939),o=t.n(r),u=t(34716),c=t.n(u),a=t(70696),l=t.n(a),i=t(4884),f=t.n(i),s=t(3464),d=t.n(s),m=t(51400),v=t.n(m),p=t(25028),h=t.n(p),E=t(30112),b=t(65984),C=t.n(b),k=t(68796),g=t.n(k),w="wutNrO3C_code_editor",y=(t(96947),t(49904),t(63676),t(50296),t(33124),t(89488),t(60480),t(72796),t(77728),t(68557),t(31792),t(99392),t(49856),t(71200),t(34112),t(14020)),O=t(71252),N=t.n(O);function _(e,n){var t=o()(e);if(c()){var r=c()(e);n&&(r=l()(r).call(r,(function(n){return f()(e,n).enumerable}))),t.push.apply(t,r)}return t}var j=(0,b.forwardRef)((function(e,n){var t=e.value,r=e.options,o=e.className,u=(0,b.useRef)(),c=(0,b.useMemo)((function(){return(0,y.IT)()}),[]);return(0,b.useEffect)((function(){var e=document.querySelector("#codeEditor".concat(c));u.current=g().fromTextArea(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,E.c)(e,n,t[n])})):d()?v()(e,d()(t)):_(Object(t)).forEach((function(n){h()(e,n,f()(t,n))}))}return e}({extraKeys:{Ctrl:"autocomplete"},gutters:["CodeMirror-foldgutter","CodeMirror-lint-markers"],line:!0,autoCloseBrackets:!0,mode:"application/json",lineNumbers:!1,theme:"cobalt",styleActiveLine:!(null!=r&&r.readOnly),foldGutter:!0,foldOptions:{widget:function(e,n){return"..."}}},r))}),[c]),(0,b.useImperativeHandle)(n,(function(){return{getInstance:function(){return u.current}}}),[]),(0,b.useEffect)((function(){var e,n;null===(e=u.current)||void 0===e||null===(n=e.setValue)||void 0===n||n.call(e,t)}),[t]),C().createElement("div",{className:N()(w,o)},C().createElement("textarea",{id:"codeEditor".concat(c)}))})),x=j}}]);