import{i as w,g as $,r as x}from"./i18n-Dnhn5Rxr.js";import{R as y,u,v as S,y as k,w as o,x as d,S as B,a as J,X as h,a5 as m,T as N,W as O,V as G,Y as I}from"./index-DWyDLubb.js";import{b as j}from"./size-CtOeLwIl.js";import{G as z}from"./utils.svelte-CCyS_0CY.js";import{J as H,a as L}from"./JSON-CNFUDzUL.js";import{B as P}from"./Block-J4oodUWp.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{B as R}from"./BlockLabel-CZd21Hkw.js";import{S as T}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import"./clone-BkeCM4Nl.js";import"./Check-DUAHzS2-.js";import"./Copy-ChCbTvli.js";import"./Empty-BIB2W5at.js";import"./IconButtonWrapper-D0s9l4wW.js";import"./snippet-BWgYNF9D.js";import"./Clear-BF6j078A.js";import"./html-Ih_5QVTo.js";import"./index-B_pwUImq.js";var V=O("<div><!></div> <!> <!>",1);function ie(_,a){y(a,!0);const g=x(a,["$$slots","$$events","$$legacy"]),e=new z(g);let i=u(S(e.props.value));k(()=>{o(i)!==e.props.value&&(d(i,e.props.value,!0),e.dispatch("change"))});let l=u(0);P(_,{get visible(){return e.shared.visible},test_id:"json",get elem_id(){return e.shared.elem_id},get elem_classes(){return e.shared.elem_classes},get container(){return e.shared.container},get scale(){return e.shared.scale},get min_width(){return e.shared.min_width},padding:!1,allow_overflow:!0,overflow_behavior:"auto",get height(){return e.props.height},get min_height(){return e.props.min_height},get max_height(){return e.props.max_height},children:(c,W)=>{var n=V(),s=B(n),f=G(s);{var v=t=>{{let r=m(()=>e.shared.container===!1);R(t,{get Icon(){return L},get show_label(){return e.shared.show_label},get label(){return e.shared.label},float:!1,get disable(){return o(r)}})}};w(f,t=>{e.shared.label&&t(v)})}I(s);var p=h(s,2);T(p,$({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status,{on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}));var b=h(p,2);{let t=m(()=>e.props.buttons==null?!0:e.props.buttons.some(r=>typeof r=="string"&&r==="copy"));H(b,{get value(){return e.props.value},get open(){return e.props.open},get theme_mode(){return e.props.theme_mode},get show_indices(){return e.props.show_indices},get show_copy_button(){return o(t)},get buttons(){return e.props.buttons},on_custom_button_click:r=>{e.dispatch("custom_button_click",{id:r})},get label_height(){return o(l)}})}j(s,"clientHeight",t=>d(l,t)),J(c,n)},$$slots:{default:!0}}),N()}export{H as BaseJSON,ie as default};
