"use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[405],{1405:function(e,t,u){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(u(6246)),r=u(7350);function l(e,t){var u,n,a=e.levels;return((a&&0!==a.length?a[a.length-1]-((null===(u=this.electricInput)||void 0===u?void 0:u.test(t))?1:0):e.indentLevel)||0)*((null===(n=this.config)||void 0===n?void 0:n.indentUnit)||0)}a.default.defineMode("graphql-variables",(function(e){var t=r.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:i,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[r.p("{"),r.list("Variable",r.opt(r.p(","))),r.p("}")],Variable:[c("variable"),r.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r.t("Number","number")],StringValue:[r.t("String","string")],BooleanValue:[r.t("Keyword","builtin")],NullValue:[r.t("Keyword","keyword")],ListValue:[r.p("["),r.list("Value",r.opt(r.p(","))),r.p("]")],ObjectValue:[r.p("{"),r.list("ObjectField",r.opt(r.p(","))),r.p("}")],ObjectField:[c("attribute"),r.p(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}}}]);
//# sourceMappingURL=405.f706a566.chunk.js.map