import{i as d,g as S,r as F}from"./i18n-Dnhn5Rxr.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-DWyDLubb.js";import{G as T}from"./utils.svelte-CCyS_0CY.js";import{P as X,a as j}from"./Plot-DfljBR3n.js";import{B as q}from"./Block-J4oodUWp.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{B as z}from"./BlockLabel-CZd21Hkw.js";import{I as A}from"./IconButtonWrapper-D0s9l4wW.js";import{F as C}from"./FullscreenButton-sCrcy_OJ.js";import{S as D}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import"./clone-BkeCM4Nl.js";import"./key-Xd_8JrI4.js";import"./misc-vsnLZ-Y1.js";import"./Empty-BIB2W5at.js";import"./snippet-BWgYNF9D.js";import"./Maximize-QH9NIRWs.js";import"./Clear-BF6j078A.js";import"./html-Ih_5QVTo.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};
