"use strict";var e=require("../../../@codemirror/commands/dist/index.js"),t=require("../../codemirror-extensions-basic-setup/esm/index.js"),i=require("../../../@codemirror/view/dist/index.js"),r=require("../../../@codemirror/theme-one-dark/dist/index.js"),o=require("../../../@codemirror/state/dist/index.js"),s=require("./theme/light.js");exports.oneDark=r.oneDark,exports.oneDarkHighlightStyle=r.oneDarkHighlightStyle,exports.oneDarkTheme=r.oneDarkTheme,exports.defaultLightThemeOption=s.defaultLightThemeOption,exports.getDefaultExtensions=function(a){void 0===a&&(a={});var{indentWithTab:n=!0,editable:d=!0,readOnly:h=!1,theme:u="light",placeholder:l="",basicSetup:p=!0}=a,c=[];switch(n&&c.unshift(i.keymap.of([e.indentWithTab])),p&&("boolean"==typeof p?c.unshift(t.basicSetup()):c.unshift(t.basicSetup(p))),l&&c.unshift(i.placeholder(l)),u){case"light":c.push(s.defaultLightThemeOption);break;case"dark":c.push(r.oneDark);break;case"none":break;default:c.push(u)}return!1===d&&c.push(i.EditorView.editable.of(!1)),h&&c.push(o.EditorState.readOnly.of(!0)),[...c]};
//# sourceMappingURL=getDefaultExtensions.js.map
