1import { g as spread_props, i as if_block, r as rest_props } from './i18n-CGlVUOvE.js'; 2import { M as push, N as first_child, Z as get, a as append, S as sibling, a2 as user_derived, O as pop, R as from_html } from './index-Bq2njFOY.js'; 3import { G as Gradio } from './utils.svelte-Bi9ASwv9.js'; 4import { B as Block } from './Block-DNK-JdLJ.js'; 5import { I as Info } from './Info-CfqzbVCN.js'; 6import './ScrollFade.svelte_svelte_type_style_lang-D0JPkGar.js'; 7import { I as IconButtonWrapper } from './IconButtonWrapper-DAsvkfJg.js'; 8import { S as Static } from './index-1GCmrSlD.js'; 9import './StreamingBar.svelte_svelte_type_style_lang-DWGn5tT_.js'; 10import { C as Checkbox } from './Checkbox-dsIC6373.js'; 11import './MarkdownCode-BYKuypS7.js'; 12import './html-Bwif0JPw.js'; 13import './MarkdownCode.svelte_svelte_type_style_lang-B29zDiob.js'; 14import './prism-python-NrKIQnfs.js'; 15import './snippet-BG7qkY_1.js'; 16import './Clear-C8Tfa7QP.js'; 17import './input-CXpCw23l.js'; 18 19var root_1 = from_html(`<!> <!> <!> <!>`, 1); 20 21function Index($$anchor, $$props) { 22 push($$props, true); 23 24 let props = rest_props($$props, ['$$slots', '$$events', '$$legacy']); 25 const gradio = new Gradio(props); 26 27 Block($$anchor, { 28 get visible() { 29 return gradio.shared.visible; 30 }, 31 32 get elem_id() { 33 return gradio.shared.elem_id; 34 }, 35 36 get elem_classes() { 37 return gradio.shared.elem_classes; 38 }, 39 40 children: ($$anchor, $$slotProps) => { 41 var fragment_1 = root_1(); 42 var node = first_child(fragment_1); 43 44 Static(node, spread_props( 45 { 46 get autoscroll() { 47 return gradio.shared.autoscroll; 48 }, 49 50 get i18n() { 51 return gradio.i18n; 52 } 53 }, 54 () => gradio.shared.loading_status, 55 { 56 on_clear_status: () => gradio.dispatch("clear_status", gradio.shared.loading_status) 57 } 58 )); 59 60 var node_1 = sibling(node, 2); 61 62 { 63 var consequent = ($$anchor) => { 64 IconButtonWrapper($$anchor, { 65 get buttons() { 66 return gradio.props.buttons; 67 }, 68 69 on_custom_button_click: (id) => { 70 gradio.dispatch("custom_button_click", { id }); 71 } 72 }); 73 }; 74 75 if_block(node_1, ($$render) => { 76 if (gradio.shared.show_label && gradio.props.buttons && gradio.props.buttons.length > 0) $$render(consequent); 77 }); 78 } 79 80 var node_2 = sibling(node_1, 2); 81 82 { 83 let $0 = user_derived(() => gradio.shared.label || gradio.i18n("checkbox.checkbox")); 84 85 Checkbox(node_2, { 86 get label() { 87 return get($0); 88 }, 89 90 get interactive() { 91 return gradio.shared.interactive; 92 }, 93 94 get show_label() { 95 return gradio.shared.show_label; 96 }, 97 on_change: (val) => gradio.dispatch("change", val), 98 on_input: () => gradio.dispatch("input"), 99 on_select: (data) => gradio.dispatch("select", data), 100 get value() { 101 return gradio.props.value; 102 }, 103 104 set value($$value) { 105 gradio.props.value = $$value; 106 } 107 }); 108 } 109 110 var node_3 = sibling(node_2, 2); 111 112 { 113 var consequent_1 = ($$anchor) => { 114 Info($$anchor, { 115 get info() { 116 return gradio.props.info; 117 } 118 }); 119 }; 120 121 if_block(node_3, ($$render) => { 122 if (gradio.props.info) $$render(consequent_1); 123 }); 124 } 125 126 append($$anchor, fragment_1); 127 }, 128 $$slots: { default: true } 129 }); 130 131 pop(); 132} 133 134export { Checkbox as BaseCheckbox, Index as default }; 135//# sourceMappingURL=Index-BHGkz0L8.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.