import"./svelte/svelte_internal_flags_async.js";import*as e from"./svelte/svelte_internal_client.js";import{S as h}from"./StreamingBar-C6ky6DsM.js";var p=e.from_html("<div><!> <!></div>");function B(u,t){e.push(t,!0),e.rest_props(t,["$$slots","$$events","$$legacy"]);let i,c=e.proxy(t.scale||null),m=e.proxy(t.min_width||0),_=e.proxy(t.elem_id||""),v=e.proxy(t.elem_classes||[]),g=e.proxy(t.visible||!0),n=e.proxy(t.variant||"default"),a=e.proxy(t.loading_status||void 0);e.proxy(t.show_progress||!1);var l=p();let r,o;var d=e.child(l);{var f=s=>{{let y=e.derived(()=>a?a.status=="pending"?"generating":a.status:null);h(s,e.spread_props({get autoscroll(){return t.autoscroll},get i18n(){return t.i18n}},()=>a,{get status(){return e.get(y)}}))}};e.if(d,s=>{a&&a.show_progress&&s(f)})}var x=e.sibling(d,2);e.slot(x,t,"default",{},null),e.reset(l),e.bind_this(l,s=>i=s,()=>i),e.template_effect(s=>{e.set_attribute(l,"id",_),r=e.set_class(l,1,`column ${s??""}`,"svelte-siq5d6",r,{compact:n==="compact",panel:n==="panel",hide:!g}),o=e.set_style(l,"",o,{"flex-grow":c,"min-width":`calc(min(${m??""}px, 100%))`})},[()=>v.join(" ")]),e.append(u,l),e.pop()}export{B};
