import './async-D55cHugf.js';
import { c as spread_props } from './index-u8mz_F03.js';
import './2-EyCg4N-O.js';
import { $ } from './utils.svelte-C798QV9b.js';
import { J, K } from './JSON-CQBEuuEX.js';
import { G as G$1 } from './Block-DZmzQwnI.js';
import { k } from './BlockLabel-bKYWnOzQ.js';
import { W } from './index3-Rp9AmCmX.js';
import './escaping-CBnpiEl5.js';
import './context-CBkBucIx.js';
import './index5-BoOEKc6P.js';
import './dev-fallback-Bc5Ork7Y.js';
import './index-Cg-Pg6j3.js';
import './clone-Yk88IHKV.js';
import './Check-C7_ZsXgh.js';
import './Copy-B8YOhH7c.js';
import './IconButton-BRnu7KaR.js';
import './Empty-DGRbZO0a.js';
import './IconButtonWrapper-CjFRPb3y.js';
import './Clear-D7Yjckqz.js';

function G(a,e){a.component(i=>{const{$$slots:d,$$events:b,...l}=e,s=new $(l);s.props.value;let p=0;G$1(i,{visible:s.shared.visible,test_id:"json",elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,padding:false,allow_overflow:true,overflow_behavior:"auto",height:s.props.height,min_height:s.props.min_height,max_height:s.props.max_height,children:o=>{o.push("<div>"),s.shared.label?(o.push("<!--[-->"),k(o,{Icon:J,show_label:s.shared.show_label,label:s.shared.label,float:false,disable:s.shared.container===false})):o.push("<!--[!-->"),o.push("<!--]--></div> "),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),o.push("<!----> "),K(o,{value:s.props.value,open:s.props.open,theme_mode:s.props.theme_mode,show_indices:s.props.show_indices,show_copy_button:s.props.buttons==null?true:s.props.buttons.some(t=>typeof t=="string"&&t==="copy"),buttons:s.props.buttons,on_custom_button_click:t=>{s.dispatch("custom_button_click",{id:t});},label_height:p}),o.push("<!---->");},$$slots:{default:true}});});}

export { K as BaseJSON, G as default };
//# sourceMappingURL=Index11-CfP4-abz.js.map
