1const Example_svelte_svelte_type_style_lang = ''; 2 3/* home/runner/work/gradio/gradio/js/model3D/Example.svelte generated by Svelte v4.2.2 */ 4const { 5 SvelteComponent, 6 append, 7 attr, 8 detach, 9 element, 10 init, 11 insert, 12 noop, 13 safe_not_equal, 14 set_data, 15 text, 16 toggle_class 17} = window.__gradio__svelte__internal; 18function create_fragment(ctx) { 19 let div; 20 let t; 21 22 return { 23 c() { 24 div = element("div"); 25 t = text(/*value*/ ctx[0]); 26 attr(div, "class", "svelte-1ayixqk"); 27 toggle_class(div, "table", /*type*/ ctx[1] === "table"); 28 toggle_class(div, "gallery", /*type*/ ctx[1] === "gallery"); 29 toggle_class(div, "selected", /*selected*/ ctx[2]); 30 }, 31 m(target, anchor) { 32 insert(target, div, anchor); 33 append(div, t); 34 }, 35 p(ctx, [dirty]) { 36 if (dirty & /*value*/ 1) set_data(t, /*value*/ ctx[0]); 37 38 if (dirty & /*type*/ 2) { 39 toggle_class(div, "table", /*type*/ ctx[1] === "table"); 40 } 41 42 if (dirty & /*type*/ 2) { 43 toggle_class(div, "gallery", /*type*/ ctx[1] === "gallery"); 44 } 45 46 if (dirty & /*selected*/ 4) { 47 toggle_class(div, "selected", /*selected*/ ctx[2]); 48 } 49 }, 50 i: noop, 51 o: noop, 52 d(detaching) { 53 if (detaching) { 54 detach(div); 55 } 56 } 57 }; 58} 59 60function instance($$self, $$props, $$invalidate) { 61 let { value } = $$props; 62 let { type } = $$props; 63 let { selected = false } = $$props; 64 65 $$self.$$set = $$props => {
66 if ('value' in $$props) $$invalidate(0, value = $$props.value); 67 if ('type' in $$props) $$invalidate(1, type = $$props.type); 68 if ('selected' in $$props) $$invalidate(2, selected = $$props.selected); 69 }; 70 71 return [value, type, selected]; 72} 73 74class Example extends SvelteComponent { 75 constructor(options) { 76 super(); 77 init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 }); 78 } 79} 80 81export { Example as default }; 82//# sourceMappingURL=Example-b5441cb7.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.