import{i as x,s as y,d as B,a as S,b as j,f as k,g as p}from"./i18n-Dnhn5Rxr.js";import{R as q,t as C,w as e,a as R,T,a5 as a,X as V,W,V as X,Y}from"./index-DWyDLubb.js";import{S as z}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";var A=W("<div><!> <!></div>");function H(u,t){q(t,!0);let n,c=a(()=>t.scale??null),_=a(()=>t.min_width??0),v=a(()=>t.elem_id??""),f=a(()=>t.elem_classes??[]),g=a(()=>t.visible??!0),r=a(()=>t.variant??"default"),i=a(()=>t.loading_status);var s=A();let d,m;var o=X(s);{var h=l=>{{let w=a(()=>e(i)?e(i).status=="pending"?"generating":e(i).status:null);z(l,p({get autoscroll(){return t.autoscroll},get i18n(){return t.i18n}},()=>e(i),{get status(){return e(w)}}))}};x(o,l=>{e(i)&&e(i).show_progress&&l(h)})}var b=V(o,2);y(b,t,"default",{}),Y(s),B(s,l=>n=l,()=>n),C(l=>{S(s,"id",e(v)),d=j(s,1,`column ${l??""}`,"svelte-siq5d6",d,{compact:e(r)==="compact",panel:e(r)==="panel",hide:!e(g)}),m=k(s,"",m,{"flex-grow":e(c),"min-width":`calc(min(${e(_)??""}px, 100%))`})},[()=>e(f).join(" ")]),R(u,s),T()}export{H as B};
