"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[46],{6237:(e,t,o)=>{o.d(t,{d:()=>n});const n=e=>{let t=0;const o=()=>{const o=e.getDomNode();if(!o)return;const n=e.getOption(monaco.editor.EditorOption.lineHeight),i=(e.getModel()||{}).getLineCount()||1,a=e.getTopForLineNumber(i+1)+2*n;t!==Math.max(18,a)&&(t=Math.max(18,a),o.style.height=`${t}px`,e.layout())};e.updateOptions({minimap:{enabled:!1},scrollbar:{vertical:"hidden",handleMouseWheel:!1},scrollBeyondLastLine:!1}),e.onDidChangeModelDecorations((()=>{o(),requestAnimationFrame(o)})),o()}},70595:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var n=o(67294),i=o(81493),a=o(42176),r=o(90804),s=o(6237);o(24588);const u=({script:e,onChangeScript:t,autogrow:o,autofocus:u})=>n.createElement("div",{className:"markdown-editor--monaco","data-testid":"markdown-editor"},n.createElement(i.ZP,{language:a.Z,theme:r.Z,value:e,onChange:e=>{t(e)},options:{fontSize:13,fontFamily:'"IBMPlexMono", monospace',cursorWidth:2,lineNumbersMinChars:4,lineDecorationsWidth:0,minimap:{renderCharacters:!1},contextmenu:!1,overviewRulerBorder:!1,automaticLayout:!0},editorDidMount:e=>{if(o&&(0,s.d)(e),u&&!e.hasTextFocus()){const t=e.getModel();e.setPosition({lineNumber:t.getLineCount(),column:t.getLineLength(t.getLineCount())+1}),e.focus()}}}))}}]);
//# sourceMappingURL=85c826ed14.js.map