1import { r as rest_props } from './i18n-dpAHICcw.js'; 2import { R as push, a7 as text, t as template_effect, a as append, w as get, T as pop, a5 as user_derived, a0 as set_text, a8 as next } from './index-CDZuCcOm.js'; 3import { G as Gradio } from './utils.svelte-CyWLYi-B.js'; 4import { B as Button } from './Button-DxE-syeF.js'; 5import './clone-dZfS06Ds.js'; 6import './snippet-DVkMfmSq.js'; 7import './Image-CJziNDBt.js'; 8import './misc-C2MjMwBX.js'; 9/* empty css */ 10import './ScrollFade.svelte_svelte_type_style_lang-DUvCSfRk.js'; 11import './MarkdownCode.svelte_svelte_type_style_lang-GeNUGzep.js'; 12import './prism-python-C_fanlsZ.js'; 13/* empty css */ 14 15function Index($$anchor, $$props) { 16 push($$props, true); 17 18 let _props = rest_props($$props, ['$$slots', '$$events', '$$legacy']); 19 const gradio = new Gradio(_props); 20 21 function handle_click() { 22 gradio.dispatch("click"); 23 } 24 25 { 26 let $0 = user_derived(() => !gradio.shared.interactive); 27 28 Button($$anchor, { 29 get value() { 30 return gradio.props.value; 31 }, 32 33 get variant() { 34 return gradio.props.variant; 35 }, 36 37 get elem_id() { 38 return gradio.shared.elem_id; 39 }, 40 41 get elem_classes() { 42 return gradio.shared.elem_classes; 43 }, 44 45 get size() { 46 return gradio.props.size; 47 }, 48 49 get scale() { 50 return gradio.shared.scale; 51 }, 52 53 get link() { 54 return gradio.props.link; 55 }, 56 57 get icon() { 58 return gradio.props.icon; 59 }, 60 61 get min_width() { 62 return gradio.shared.min_width; 63 }, 64 65 get visible() { 66 return gradio.shared.visible; 67 }, 68 69 get disabled() { 70 return get($0); 71 }, 72 73 get link_target() { 74 return gradio.props.link_target; 75 }, 76 onclick: handle_click, 77 children: ($$anchor, $$slotProps) => { 78 next(); 79 80 var text$1 = text(); 81 82 template_effect(() => set_text(text$1, gradio.props.value ?? "")); 83 append($$anchor, text$1); 84 }, 85 $$slots: { default: true } 86 }); 87 } 88 89 pop(); 90} 91 92export { Button as BaseButton, Index as default }; 93//# sourceMappingURL=Index-DWxvx4Mv.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.