PageSourceSearch

https://glimmarykarl-dragonbornv1.hf.space/assets/Example-3006537a.js

js glimmarykarl-dragonbornv1.hf.space collected 2026-10-03 16:54:12 UTC 2,100 bytes, 88 lines download raw bytes

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