import{P as D,a as E}from"./Plot-Df58kjS2.js";import{B as F}from"./Button-B93iS7QI.js";import{S as G}from"./Index-IwnOmiU7.js";import{B as H}from"./BlockLabel-C-3Xp78Z.js";import"./index-CFkTeYR6.js";import"./svelte/svelte.js";import"./Empty-D--JkcvQ.js";const{SvelteComponent:J,assign:K,create_component:w,destroy_component:d,detach:q,flush:h,get_spread_object:M,get_spread_update:N,init:O,insert:C,mount_component:k,safe_not_equal:Q,space:L,transition_in:v,transition_out:B}=window.__gradio__svelte__internal;function R(i){let e,l,n,_,o,r;e=new H({props:{show_label:i[6],label:i[5]||i[14].i18n("plot.plot"),Icon:D}});const m=[{autoscroll:i[14].autoscroll},{i18n:i[14].i18n},i[4]];let c={};for(let t=0;t<m.length;t+=1)c=K(c,m[t]);return n=new G({props:c}),n.$on("clear_status",i[16]),o=new E({props:{value:i[0],target:i[7],theme_mode:i[11],caption:i[12],bokeh_version:i[13],show_actions_button:i[15]}}),o.$on("change",i[17]),{c(){w(e.$$.fragment),l=L(),w(n.$$.fragment),_=L(),w(o.$$.fragment)},m(t,a){k(e,t,a),C(t,l,a),k(n,t,a),C(t,_,a),k(o,t,a),r=!0},p(t,a){const f={};a&64&&(f.show_label=t[6]),a&16416&&(f.label=t[5]||t[14].i18n("plot.plot")),e.$set(f);const g=a&16400?N(m,[a&16384&&{autoscroll:t[14].autoscroll},a&16384&&{i18n:t[14].i18n},a&16&&M(t[4])]):{};n.$set(g);const u={};a&1&&(u.value=t[0]),a&128&&(u.target=t[7]),a&2048&&(u.theme_mode=t[11]),a&4096&&(u.caption=t[12]),a&8192&&(u.bokeh_version=t[13]),a&32768&&(u.show_actions_button=t[15]),o.$set(u)},i(t){r||(v(e.$$.fragment,t),v(n.$$.fragment,t),v(o.$$.fragment,t),r=!0)},o(t){B(e.$$.fragment,t),B(n.$$.fragment,t),B(o.$$.fragment,t),r=!1},d(t){t&&(q(l),q(_)),d(e,t),d(n,t),d(o,t)}}}function T(i){let e,l;return e=new F({props:{padding:!1,elem_id:i[1],elem_classes:i[2],visible:i[3],container:i[8],scale:i[9],min_width:i[10],allow_overflow:!1,$$slots:{default:[R]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},m(n,_){k(e,n,_),l=!0},p(n,[_]){const o={};_&2&&(o.elem_id=n[1]),_&4&&(o.elem_classes=n[2]),_&8&&(o.visible=n[3]),_&256&&(o.container=n[8]),_&512&&(o.scale=n[9]),_&1024&&(o.min_width=n[10]),_&325873&&(o.$$scope={dirty:_,ctx:n}),e.$set(o)},i(n){l||(v(e.$$.fragment,n),l=!0)},o(n){B(e.$$.fragment,n),l=!1},d(n){d(e,n)}}}function U(i,e,l){let{value:n=null}=e,{elem_id:_=""}=e,{elem_classes:o=[]}=e,{visible:r=!0}=e,{loading_status:m}=e,{label:c}=e,{show_label:t}=e,{target:a}=e,{container:f=!0}=e,{scale:g=null}=e,{min_width:u=void 0}=e,{theme_mode:P}=e,{caption:S}=e,{bokeh_version:I}=e,{gradio:b}=e,{show_actions_button:j=!1}=e;const z=()=>b.dispatch("clear_status",m),A=()=>b.dispatch("change");return i.$$set=s=>{"value"in s&&l(0,n=s.value),"elem_id"in s&&l(1,_=s.elem_id),"elem_classes"in s&&l(2,o=s.elem_classes),"visible"in s&&l(3,r=s.visible),"loading_status"in s&&l(4,m=s.loading_status),"label"in s&&l(5,c=s.label),"show_label"in s&&l(6,t=s.show_label),"target"in s&&l(7,a=s.target),"container"in s&&l(8,f=s.container),"scale"in s&&l(9,g=s.scale),"min_width"in s&&l(10,u=s.min_width),"theme_mode"in s&&l(11,P=s.theme_mode),"caption"in s&&l(12,S=s.caption),"bokeh_version"in s&&l(13,I=s.bokeh_version),"gradio"in s&&l(14,b=s.gradio),"show_actions_button"in s&&l(15,j=s.show_actions_button)},[n,_,o,r,m,c,t,a,f,g,u,P,S,I,b,j,z,A]}class $ extends J{constructor(e){super(),O(this,e,U,T,Q,{value:0,elem_id:1,elem_classes:2,visible:3,loading_status:4,label:5,show_label:6,target:7,container:8,scale:9,min_width:10,theme_mode:11,caption:12,bokeh_version:13,gradio:14,show_actions_button:15})}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get elem_id(){return this.$$.ctx[1]}set elem_id(e){this.$$set({elem_id:e}),h()}get elem_classes(){return this.$$.ctx[2]}set elem_classes(e){this.$$set({elem_classes:e}),h()}get visible(){return this.$$.ctx[3]}set visible(e){this.$$set({visible:e}),h()}get loading_status(){return this.$$.ctx[4]}set loading_status(e){this.$$set({loading_status:e}),h()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),h()}get show_label(){return this.$$.ctx[6]}set show_label(e){this.$$set({show_label:e}),h()}get target(){return this.$$.ctx[7]}set target(e){this.$$set({target:e}),h()}get container(){return this.$$.ctx[8]}set container(e){this.$$set({container:e}),h()}get scale(){return this.$$.ctx[9]}set scale(e){this.$$set({scale:e}),h()}get min_width(){return this.$$.ctx[10]}set min_width(e){this.$$set({min_width:e}),h()}get theme_mode(){return this.$$.ctx[11]}set theme_mode(e){this.$$set({theme_mode:e}),h()}get caption(){return this.$$.ctx[12]}set caption(e){this.$$set({caption:e}),h()}get bokeh_version(){return this.$$.ctx[13]}set bokeh_version(e){this.$$set({bokeh_version:e}),h()}get gradio(){return this.$$.ctx[14]}set gradio(e){this.$$set({gradio:e}),h()}get show_actions_button(){return this.$$.ctx[15]}set show_actions_button(e){this.$$set({show_actions_button:e}),h()}}export{E as BasePlot,$ as default};
//# sourceMappingURL=Index-MCMRAwPU.js.map
