1import { i as if_block, g as spread_props, r as rest_props } from './i18n-CGlVUOvE.js'; 2import { M as push, N as first_child, Z as get, a as append, $ as set, a2 as user_derived, S as sibling, O as pop, ab as state, R as from_html, a3 as comment } from './index-Bq2njFOY.js'; 3import { G as Gradio } from './utils.svelte-Bi9ASwv9.js'; 4import { P as Plot, a as Plot$1 } from './Plot-Bv7e-GKH.js'; 5import { B as Block } from './Block-DNK-JdLJ.js'; 6import './MarkdownCode.svelte_svelte_type_style_lang-B29zDiob.js'; 7import './ScrollFade.svelte_svelte_type_style_lang-D0JPkGar.js'; 8import { B as BlockLabel } from './BlockLabel-VpI11pHf.js'; 9import { I as IconButtonWrapper } from './IconButtonWrapper-DAsvkfJg.js'; 10import { F as FullscreenButton } from './FullscreenButton-C6RgeACK.js'; 11import { S as Static } from './index-1GCmrSlD.js'; 12import './StreamingBar.svelte_svelte_type_style_lang-DWGn5tT_.js'; 13import './key-CQEYzg1f.js'; 14import './misc-D8a4ZbMA.js'; 15import './Empty-BrRNpJ3n.js'; 16import './prism-python-NrKIQnfs.js'; 17import './snippet-BG7qkY_1.js'; 18import './Maximize-2N5airbC.js'; 19import './Clear-C8Tfa7QP.js'; 20import './html-Bwif0JPw.js'; 21 22var root_1 = from_html(`<!> <!> <!> <!>`, 1); 23 24function Index($$anchor, $$props) { 25 push($$props, true); 26 27 let props = rest_props($$props, ['$$slots', '$$events', '$$legacy']); 28 const gradio = new Gradio(props); 29 let fullscreen = state(false); 30 31 Block($$anchor, { 32 padding: false, 33 get elem_id() { 34 return gradio.shared.elem_id; 35 }, 36 37 get elem_classes() { 38 return gradio.shared.elem_classes; 39 }, 40 41 get visible() { 42 return gradio.shared.visible; 43 }, 44 45 get container() { 46 return gradio.shared.container; 47 }, 48 49 get scale() { 50 return gradio.shared.scale; 51 }, 52 53 get min_width() { 54 return gradio.shared.min_width; 55 }, 56 allow_overflow: false, 57 get fullscreen() { 58 return get(fullscreen); 59 }, 60 61 set fullscreen($$value) { 62 set(fullscreen, $$value, true); 63 }, 64 65 children: ($$anchor, $$slotProps) => { 66 var fragment_1 = root_1(); 67 var node = first_child(fragment_1); 68 69 { 70 let $0 = user_derived(() => gradio.shared.label || gradio.i18n("plot.plot")); 71 72 BlockLabel(node, { 73 get show_label() { 74 return gradio.shared.show_label; 75 }, 76 77 get label() { 78 return get($0); 79 }, 80 81 get Icon() { 82 return Plot; 83 } 84 }); 85 } 86 87 var node_1 = sibling(node, 2); 88 89 { 90 var consequent_1 = ($$anchor) => { 91 { 92 let $0 = user_derived(() => gradio.props.buttons ?? []); 93 94 IconButtonWrapper($$anchor, { 95 get buttons() { 96 return get($0); 97 }, 98 99 on_custom_button_click: (id) => { 100 gradio.dispatch("custom_button_click", { id }); 101 }, 102 103 children: ($$anchor, $$slotProps) => { 104 var fragment_3 = comment(); 105 var node_2 = first_child(fragment_3); 106 107 { 108 var consequent = ($$anchor) => { 109 FullscreenButton($$anchor, { 110 get fullscreen() { 111 return get(fullscreen); 112 }, 113 114 $$events: { 115 fullscreen: ({ detail }) => { 116 set(fullscreen, detail, true); 117 } 118 } 119 }); 120 }; 121 122 if_block(node_2, ($$render) => { 123 if (gradio.props.show_fullscreen_button) $$render(consequent); 124 }); 125 } 126 127 append($$anchor, fragment_3); 128 }, 129 $$slots: { default: true } 130 }); 131 } 132 }; 133 134 if_block(node_1, ($$render) => { 135 if (gradio.props.buttons && gradio.props.buttons.length > 0 || gradio.props.show_fullscreen_button) $$render(consequent_1); 136 }); 137 } 138 139 var node_3 = sibling(node_1, 2); 140 141 Static(node_3, spread_props( 142 { 143 get autoscroll() { 144 return gradio.shared.autoscroll; 145 }, 146 147 get i18n() { 148 return gradio.i18n; 149 } 150 }, 151 () => gradio.shared.loading_status, 152 { 153 on_clear_status: () => gradio.dispatch("clear_status", gradio.shared.loading_status) 154 } 155 )); 156 157 var node_4 = sibling(node_3, 2); 158 159 Plot$1(node_4, { 160 get value() { 161 return gradio.props.value; 162 }, 163 164 get theme_mode() { 165 return gradio.props.theme_mode; 166 }, 167 168 get show_label() { 169 return gradio.shared.show_label; 170 }, 171 172 get caption() { 173 return gradio.props.caption; 174 }, 175 176 get bokeh_version() { 177 return gradio.props.bokeh_version; 178 }, 179 180 get show_actions_button() { 181 return gradio.props.show_actions_button; 182 }, 183 184 get _selectable() { 185 return gradio.props._selectable; 186 }, 187 188 get x_lim() { 189 return gradio.props.x_lim; 190 }, 191 192 get show_fullscreen_button() { 193 return gradio.props.show_fullscreen_button; 194 }, 195 on_change: () => gradio.dispatch("change") 196 }); 197 198 append($$anchor, fragment_1); 199 }, 200 $$slots: { default: true } 201 }); 202 203 pop(); 204} 205 206export { Plot$1 as BasePlot, Index as default }; 207//# sourceMappingURL=Index-BLvIY0lP.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.