import{i as u,s as m,a as f,b as c,f as _,r as v,g as x}from"./i18n-eTakDDhg.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-BkylzejB.js";import{S as R}from"./index-C-r_2iGV.js";import"./StreamingBar.svelte_svelte_type_style_lang-CFNH9sqm.js";import{G as T}from"./utils.svelte-DZ62NrTu.js";import"./ScrollFade.svelte_svelte_type_style_lang-De9nUaYy.js";import"./snippet-CC9u6I34.js";import"./Clear-Daql2pLY.js";import"./html-DvOIMrhY.js";import"./index-B_pwUImq.js";import"./clone-IGppQJ7B.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};
