1import { B as Block } from './Button-0502e555.js'; 2import './Index-4c82ea7b.js'; 3import './index-7f1ea29b.js'; 4import './svelte/svelte.js'; 5 6/* home/runner/work/gradio/gradio/js/box/Index.svelte generated by Svelte v4.2.2 */ 7const { 8 SvelteComponent, 9 create_component, 10 create_slot, 11 destroy_component, 12 get_all_dirty_from_scope, 13 get_slot_changes, 14 init, 15 mount_component, 16 safe_not_equal, 17 transition_in, 18 transition_out, 19 update_slot_base 20} = window.__gradio__svelte__internal; 21function create_default_slot(ctx) { 22 let current; 23 const default_slot_template = /*#slots*/ ctx[3].default; 24 const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null); 25 26 return { 27 c() { 28 if (default_slot) default_slot.c(); 29 }, 30 m(target, anchor) { 31 if (default_slot) { 32 default_slot.m(target, anchor); 33 } 34 35 current = true; 36 }, 37 p(ctx, dirty) { 38 if (default_slot) { 39 if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) { 40 update_slot_base( 41 default_slot, 42 default_slot_template, 43 ctx, 44 /*$$scope*/ ctx[4], 45 !current 46 ? get_all_dirty_from_scope(/*$$scope*/ ctx[4]) 47 : get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null), 48 null 49 ); 50 } 51 } 52 }, 53 i(local) { 54 if (current) return; 55 transition_in(default_slot, local); 56 current = true; 57 }, 58 o(local) { 59 transition_out(default_slot, local); 60 current = false; 61 }, 62 d(detaching) { 63 if (default_slot) default_slot.d(detaching); 64 } 65 }; 66} 67 68function create_fragment(ctx) { 69 let block; 70 let current; 71 72 block = new Block({ 73 props: { 74 elem_id: /*elem_id*/ ctx[0], 75 elem_classes: /*elem_classes*/ ctx[1], 76 visible: /*visible*/ ctx[2], 77 explicit_call: true, 78 $$slots: { default: [create_default_slot] }, 79 $$scope: { ctx } 80 } 81 }); 82 83 return { 84 c() { 85 create_component(block.$$.fragment); 86 }, 87 m(target, anchor) { 88 mount_component(block, target, anchor); 89 current = true; 90 }, 91 p(ctx, [dirty]) { 92 const block_changes = {}; 93 if (dirty & /*elem_id*/ 1) block_changes.elem_id = /*elem_id*/ ctx[0]; 94 if (dirty & /*elem_classes*/ 2) block_changes.elem_classes = /*elem_classes*/ ctx[1]; 95 if (dirty & /*visible*/ 4) block_changes.visible = /*visible*/ ctx[2]; 96 97 if (dirty & /*$$scope*/ 16) { 98 block_changes.$$scope = { dirty, ctx }; 99 } 100 101 block.$set(block_changes); 102 }, 103 i(local) { 104 if (current) return; 105 transition_in(block.$$.fragment, local); 106 current = true; 107 }, 108 o(local) { 109 transition_out(block.$$.fragment, local); 110 current = false; 111 }, 112 d(detaching) { 113 destroy_component(block, detaching); 114 } 115 }; 116} 117 118function instance($$self, $$props, $$invalidate) { 119 let { $$slots: slots = {}, $$scope } = $$props; 120 let { elem_id } = $$props; 121 let { elem_classes } = $$props; 122 let { visible = true } = $$props; 123 124 $$self.$$set = $$props => {
125 if ('elem_id' in $$props) $$invalidate(0, elem_id = $$props.elem_id); 126 if ('elem_classes' in $$props) $$invalidate(1, elem_classes = $$props.elem_classes); 127 if ('visible' in $$props) $$invalidate(2, visible = $$props.visible); 128 if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope); 129 }; 130 131 return [elem_id, elem_classes, visible, slots, $$scope]; 132} 133 134class Index extends SvelteComponent { 135 constructor(options) { 136 super(); 137 init(this, options, instance, create_fragment, safe_not_equal, { elem_id: 0, elem_classes: 1, visible: 2 }); 138 } 139} 140 141export { Index as default }; 142//# sourceMappingURL=Index-7b8c75ea.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.