import{i as d,g as S,r as F}from"./i18n-eTakDDhg.js";import{R as G,S as h,w as s,a as g,x as f,a5 as b,X as n,T as W,u as y,W as L,a6 as R}from"./index-BkylzejB.js";import{G as T}from"./utils.svelte-DZ62NrTu.js";import{P as X,a as j}from"./Plot-CcohKxZT.js";import{B as q}from"./Block-Bl_3z_UU.js";import"./ScrollFade.svelte_svelte_type_style_lang-De9nUaYy.js";import{B as z}from"./BlockLabel-Da0UC1oT.js";import{I as A}from"./IconButtonWrapper-33oacT7w.js";import{F as C}from"./FullscreenButton-4wvwkSe5.js";import{S as D}from"./index-C-r_2iGV.js";import"./StreamingBar.svelte_svelte_type_style_lang-CFNH9sqm.js";import"./clone-IGppQJ7B.js";import"./key-BmzaO7RD.js";import"./misc-Q1bfX-rj.js";import"./Empty-DQDlXvhE.js";import"./snippet-CC9u6I34.js";import"./Maximize-B_CM6J2b.js";import"./Clear-Daql2pLY.js";import"./html-DvOIMrhY.js";import"./index-B_pwUImq.js";var E=L("<!> <!> <!> <!>",1);function _e(v,p){G(p,!0);let $=F(p,["$$slots","$$events","$$legacy"]);const e=new T($);let r=y(!1);q(v,{padding:!1,get elem_id(){return e.shared.elem_id},get elem_classes(){return e.shared.elem_classes},get visible(){return e.shared.visible},get container(){return e.shared.container},get scale(){return e.shared.scale},get min_width(){return e.shared.min_width},allow_overflow:!1,get fullscreen(){return s(r)},set fullscreen(o){f(r,o,!0)},children:(o,H)=>{var u=E(),i=h(u);{let t=b(()=>e.shared.label||e.i18n("plot.plot"));z(i,{get show_label(){return e.shared.show_label},get label(){return s(t)},get Icon(){return X}})}var _=n(i,2);{var w=t=>{{let B=b(()=>e.props.buttons??[]);A(t,{get buttons(){return s(B)},on_custom_button_click:a=>{e.dispatch("custom_button_click",{id:a})},children:(a,J)=>{var m=R(),P=h(m);{var x=l=>{C(l,{get fullscreen(){return s(r)},$$events:{fullscreen:({detail:I})=>{f(r,I,!0)}}})};d(P,l=>{e.props.show_fullscreen_button&&l(x)})}g(a,m)},$$slots:{default:!0}})}};d(_,t=>{(e.props.buttons&&e.props.buttons.length>0||e.props.show_fullscreen_button)&&t(w)})}var c=n(_,2);D(c,S({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status,{on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}));var k=n(c,2);j(k,{get value(){return e.props.value},get theme_mode(){return e.props.theme_mode},get show_label(){return e.shared.show_label},get caption(){return e.props.caption},get bokeh_version(){return e.props.bokeh_version},get show_actions_button(){return e.props.show_actions_button},get _selectable(){return e.props._selectable},get x_lim(){return e.props.x_lim},get show_fullscreen_button(){return e.props.show_fullscreen_button},on_change:()=>e.dispatch("change")}),g(o,u)},$$slots:{default:!0}}),W()}export{j as BasePlot,_e as default};
