import{S as C}from"./Index-IwnOmiU7.js";import"./index-CFkTeYR6.js";import"./svelte/svelte.js";const{SvelteComponent:I,append:z,assign:A,attr:h,check_outros:B,create_component:D,create_slot:E,destroy_component:F,detach:G,element:H,flush:f,get_all_dirty_from_scope:J,get_slot_changes:K,get_spread_object:L,get_spread_update:M,group_outros:N,init:O,insert:P,mount_component:Q,null_to_empty:S,safe_not_equal:R,set_style:d,space:T,toggle_class:m,transition_in:c,transition_out:w,update_slot_base:U}=window.__gradio__svelte__internal;function q(l){let e,a;const o=[{autoscroll:l[8].autoscroll},{i18n:l[8].i18n},l[7],{status:l[7]?l[7].status=="pending"?"generating":l[7].status:null}];let r={};for(let t=0;t<o.length;t+=1)r=A(r,o[t]);return e=new C({props:r}),{c(){D(e.$$.fragment)},m(t,s){Q(e,t,s),a=!0},p(t,s){const g=s&384?M(o,[s&256&&{autoscroll:t[8].autoscroll},s&256&&{i18n:t[8].i18n},s&128&&L(t[7]),s&128&&{status:t[7]?t[7].status=="pending"?"generating":t[7].status:null}]):{};e.$set(g)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){F(e,t)}}}function V(l){let e,a,o,r=`calc(min(${l[2]}px, 100%))`,t,s=l[7]&&l[9]&&l[8]&&q(l);const g=l[11].default,u=E(g,l,l[10],null);return{c(){e=H("div"),s&&s.c(),a=T(),u&&u.c(),h(e,"id",l[3]),h(e,"class",o=S(l[4].join(" "))+" svelte-vt1mxs"),m(e,"gap",l[1]),m(e,"compact",l[6]==="compact"),m(e,"panel",l[6]==="panel"),m(e,"hide",!l[5]),d(e,"flex-grow",l[0]),d(e,"min-width",r)},m(i,_){P(i,e,_),s&&s.m(e,null),z(e,a),u&&u.m(e,null),t=!0},p(i,[_]){i[7]&&i[9]&&i[8]?s?(s.p(i,_),_&896&&c(s,1)):(s=q(i),s.c(),c(s,1),s.m(e,a)):s&&(N(),w(s,1,1,()=>{s=null}),B()),u&&u.p&&(!t||_&1024)&&U(u,g,i,i[10],t?K(g,i[10],_,null):J(i[10]),null),(!t||_&8)&&h(e,"id",i[3]),(!t||_&16&&o!==(o=S(i[4].join(" "))+" svelte-vt1mxs"))&&h(e,"class",o),(!t||_&18)&&m(e,"gap",i[1]),(!t||_&80)&&m(e,"compact",i[6]==="compact"),(!t||_&80)&&m(e,"panel",i[6]==="panel"),(!t||_&48)&&m(e,"hide",!i[5]),_&1&&d(e,"flex-grow",i[0]),_&4&&r!==(r=`calc(min(${i[2]}px, 100%))`)&&d(e,"min-width",r)},i(i){t||(c(s),c(u,i),t=!0)},o(i){w(s),w(u,i),t=!1},d(i){i&&G(e),s&&s.d(),u&&u.d(i)}}}function W(l,e,a){let{$$slots:o={},$$scope:r}=e,{scale:t=null}=e,{gap:s=!0}=e,{min_width:g=0}=e,{elem_id:u=""}=e,{elem_classes:i=[]}=e,{visible:_=!0}=e,{variant:v="default"}=e,{loading_status:b=void 0}=e,{gradio:k=void 0}=e,{show_progress:j=!1}=e;return l.$$set=n=>{"scale"in n&&a(0,t=n.scale),"gap"in n&&a(1,s=n.gap),"min_width"in n&&a(2,g=n.min_width),"elem_id"in n&&a(3,u=n.elem_id),"elem_classes"in n&&a(4,i=n.elem_classes),"visible"in n&&a(5,_=n.visible),"variant"in n&&a(6,v=n.variant),"loading_status"in n&&a(7,b=n.loading_status),"gradio"in n&&a(8,k=n.gradio),"show_progress"in n&&a(9,j=n.show_progress),"$$scope"in n&&a(10,r=n.$$scope)},[t,s,g,u,i,_,v,b,k,j,r,o]}class p extends I{constructor(e){super(),O(this,e,W,V,R,{scale:0,gap:1,min_width:2,elem_id:3,elem_classes:4,visible:5,variant:6,loading_status:7,gradio:8,show_progress:9})}get scale(){return this.$$.ctx[0]}set scale(e){this.$$set({scale:e}),f()}get gap(){return this.$$.ctx[1]}set gap(e){this.$$set({gap:e}),f()}get min_width(){return this.$$.ctx[2]}set min_width(e){this.$$set({min_width:e}),f()}get elem_id(){return this.$$.ctx[3]}set elem_id(e){this.$$set({elem_id:e}),f()}get elem_classes(){return this.$$.ctx[4]}set elem_classes(e){this.$$set({elem_classes:e}),f()}get visible(){return this.$$.ctx[5]}set visible(e){this.$$set({visible:e}),f()}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),f()}get loading_status(){return this.$$.ctx[7]}set loading_status(e){this.$$set({loading_status:e}),f()}get gradio(){return this.$$.ctx[8]}set gradio(e){this.$$set({gradio:e}),f()}get show_progress(){return this.$$.ctx[9]}set show_progress(e){this.$$set({show_progress:e}),f()}}export{p as default};
//# sourceMappingURL=Index-D4TDh9B5.js.map
