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