1import { i as if_block, g as spread_props, r as rest_props } from './i18n-dpAHICcw.js'; 2import { R as push, S as first_child, w as get, a as append, x as set, a5 as user_derived, X as sibling, T as pop, u as state, W as from_html, a6 as comment } from './index-CDZuCcOm.js'; 3import { G as Gradio } from './utils.svelte-CyWLYi-B.js'; 4import { P as Plot, a as Plot$1 } from './Plot-C4DDLpW5.js'; 5import { B as Block } from './Block-DntE23uJ.js'; 6import './MarkdownCode.svelte_svelte_type_style_lang-GeNUGzep.js'; 7import './ScrollFade.svelte_svelte_type_style_lang-DUvCSfRk.js'; 8import { B as BlockLabel } from './BlockLabel-D4yjUUAn.js'; 9import { I as IconButtonWrapper } from './IconButtonWrapper-KjCt2Pl8.js'; 10import { F as FullscreenButton } from './FullscreenButton-wNz2x9hr.js'; 11import { S as Static } from './index-DyDpuTN9.js'; 12import './StreamingBar.svelte_svelte_type_style_lang-BxBb9ZZb.js'; 13import './clone-dZfS06Ds.js'; 14import './key-BkIRB637.js'; 15import './misc-C2MjMwBX.js'; 16import './Empty-617iGDfy.js'; 17import './prism-python-C_fanlsZ.js'; 18import './snippet-DVkMfmSq.js'; 19import './Maximize-CNFXHhlb.js'; 20import './Clear-tvJMRS4J.js'; 21import './html-h_YSgefI.js'; 22 23var root_1 = from_html(`<!> <!> <!> <!>`, 1); 24 25function Index($$anchor, $$props) { 26 push($$props, true); 27 28 let props = rest_props($$props, ['$$slots', '$$events', '$$legacy']); 29 const gradio = new Gradio(props); 30 let fullscreen = state(false); 31 32 Block($$anchor, { 33 padding: false, 34 get elem_id() { 35 return gradio.shared.elem_id; 36 }, 37 38 get elem_classes() { 39 return gradio.shared.elem_classes; 40 }, 41 42 get visible() { 43 return gradio.shared.visible; 44 }, 45 46 get container() { 47 return gradio.shared.container; 48 }, 49 50 get scale() { 51 return gradio.shared.scale; 52 }, 53 54 get min_width() { 55 return gradio.shared.min_width; 56 }, 57 allow_overflow: false, 58 get fullscreen() { 59 return get(fullscreen); 60 }, 61 62 set fullscreen($$value) { 63 set(fullscreen, $$value, true); 64 }, 65 66 children: ($$anchor, $$slotProps) => { 67 var fragment_1 = root_1(); 68 var node = first_child(fragment_1); 69 70 { 71 let $0 = user_derived(() => gradio.shared.label || gradio.i18n("plot.plot")); 72 73 BlockLabel(node, { 74 get show_label() { 75 return gradio.shared.show_label; 76 }, 77 78 get label() { 79 return get($0); 80 }, 81 82 get Icon() { 83 return Plot; 84 } 85 }); 86 } 87 88 var node_1 = sibling(node, 2); 89 90 { 91 var consequent_1 = ($$anchor) => { 92 { 93 let $0 = user_derived(() => gradio.props.buttons ?? []); 94 95 IconButtonWrapper($$anchor, { 96 get buttons() { 97 return get($0); 98 }, 99 100 on_custom_button_click: (id) => { 101 gradio.dispatch("custom_button_click", { id }); 102 }, 103 104 children: ($$anchor, $$slotProps) => { 105 var fragment_3 = comment(); 106 var node_2 = first_child(fragment_3); 107 108 { 109 var consequent = ($$anchor) => { 110 FullscreenButton($$anchor, { 111 get fullscreen() { 112 return get(fullscreen); 113 }, 114 115 $$events: { 116 fullscreen: ({ detail }) => { 117 set(fullscreen, detail, true); 118 } 119 } 120 }); 121 }; 122 123 if_block(node_2, ($$render) => { 124 if (gradio.props.show_fullscreen_button) $$render(consequent); 125 }); 126 } 127 128 append($$anchor, fragment_3); 129 }, 130 $$slots: { default: true } 131 }); 132 } 133 }; 134 135 if_block(node_1, ($$render) => { 136 if (gradio.props.buttons && gradio.props.buttons.length > 0 || gradio.props.show_fullscreen_button) $$render(consequent_1); 137 }); 138 } 139 140 var node_3 = sibling(node_1, 2); 141 142 Static(node_3, spread_props( 143 { 144 get autoscroll() { 145 return gradio.shared.autoscroll; 146 }, 147 148 get i18n() { 149 return gradio.i18n; 150 } 151 }, 152 () => gradio.shared.loading_status, 153 { 154 on_clear_status: () => gradio.dispatch("clear_status", gradio.shared.loading_status) 155 } 156 )); 157 158 var node_4 = sibling(node_3, 2); 159 160 Plot$1(node_4, { 161 get value() { 162 return gradio.props.value; 163 }, 164 165 get theme_mode() { 166 return gradio.props.theme_mode; 167 }, 168 169 get show_label() { 170 return gradio.shared.show_label; 171 }, 172 173 get caption() { 174 return gradio.props.caption; 175 }, 176 177 get bokeh_version() { 178 return gradio.props.bokeh_version; 179 }, 180 181 get show_actions_button() { 182 return gradio.props.show_actions_button; 183 }, 184 185 get _selectable() { 186 return gradio.props._selectable; 187 }, 188 189 get x_lim() { 190 return gradio.props.x_lim; 191 }, 192 193 get show_fullscreen_button() { 194 return gradio.props.show_fullscreen_button; 195 }, 196 on_change: () => gradio.dispatch("change") 197 }); 198 199 append($$anchor, fragment_1); 200 }, 201 $$slots: { default: true } 202 }); 203 204 pop(); 205} 206 207export { Plot$1 as BasePlot, Index as default }; 208//# sourceMappingURL=Index-4-BTFpNV.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.