import{i as u,s as m,a as f,b as c,f as _,r as v,g as x}from"./i18n-Dnhn5Rxr.js";import{R as b,t as w,a as y,T as $,X as q,W as G,V as S,w as j,Y as k,a5 as I}from"./index-DWyDLubb.js";import{S as R}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{G as T}from"./utils.svelte-CCyS_0CY.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import"./snippet-BWgYNF9D.js";import"./Clear-BF6j078A.js";import"./html-Ih_5QVTo.js";import"./index-B_pwUImq.js";import"./clone-BkeCM4Nl.js";var V=G("<div><!> <!></div>");function J(d,a){b(a,!0);const r=e=>{if(e!==void 0){if(typeof e=="number")return e+"px";if(typeof e=="string")return e}};let h=v(a,["$$slots","$$events","$$legacy"]),s=new T(h);var t=V();let o,l;var p=S(t);{var n=e=>{{let i=I(()=>s.shared.loading_status?s.shared.loading_status.status=="pending"?"generating":s.shared.loading_status.status:null);R(e,x({get autoscroll(){return s.shared.autoscroll},get i18n(){return s.i18n}},()=>s.shared.loading_status,{get status(){return j(i)}}))}};u(p,e=>{s.shared.loading_status&&s.shared.loading_status.show_progress&&s&&e(n)})}var g=q(p,2);m(g,a,"default",{}),k(t),w((e,i)=>{f(t,"id",s.shared.elem_id),o=c(t,1,`row ${e??""}`,"svelte-7xavid",o,{compact:s.props.variant==="compact",panel:s.props.variant==="panel","unequal-height":s.props.equal_height===!1,stretch:s.props.equal_height,hide:!s.shared.visible,"grow-children":s.shared.scale&&s.shared.scale>=1}),l=_(t,"",l,i)},[()=>s.shared.elem_classes?.join(" "),()=>({height:r(s.props.height),"max-height":r(s.props.max_height),"min-height":r(s.props.min_height),"flex-grow":s.shared.scale})]),y(d,t),$()}export{J as default};
