text: import{r as t,h as e}from"./p-b1a34f82.js";class s{constructor(e){t(this,e),this.depth=0}getKeys(){return Object.keys(this.data)}getDepthMinusOne(){return 0==this.depth?0:this.depth-1}getPadding(){return`${12*this.getDepthMinusOne()}px`}getOpeningBrace(){return Array.isArray(this.data)?"[":"{"}getClosingBrace(){return Array.isArray(this.data)?"]":"}"}render(){return e("div",{class:"json-display",style:{"padding-left":this.getPadding()}},0!=this.depth?e("div",{class:"key"},this.index,": ",this.getOpeningBrace()):e("div",{class:"key"},this.getOpeningBrace()),e("div",{style:{"padding-left":"12px"}},this.getKeys().map(t=>"store"==t?null:"object"==typeof this.data[t]?e("json-display",{index:t,data:this.data[t],depth:this.depth+1}):e("json-key-pair",{index:t,value:this.data[t]}))),e("div",{class:"key"},this.getClosingBrace()))}static get style(){return".json-display{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:monospace}.key{color:#888}#value,.key{font-size:16px;font-family:monospace}#value{color:#eee}"}}class i{constructor(e){t(this,e)}getValue(){const t=typeof this.value;return"boolean"===t?this.value?"true":"false":"function"===t?"function":"bigint"===t?this.value:"number"===t?this.value:"string"===t?`"${this.value}"`:void 0}getValueClass(){const t=typeof this.value;return"boolean"===t?"blue":"function"===t?"green":"bigint"===t?"blue":"number"===t?"blue":"string"===t?"orange":void 0}render(){return e("div",{class:"json-key-pair"},e("span",{class:"key"},this.index,": "),e("span",{class:`value ${this.getValueClass()}`},this.getValue()))}static get style(){return".key{color:#888}.key,.value{font-size:16px;font-family:monospace}.value{color:#eee}.blue{color:#2196f3}.orange{color:#ff9800}.green{color:#4caf50}#info{color:#bbb}"}}export{s as json_display,i as json_key_pair};