PageSourceSearch

https://pendrokar-xvasynth-tts.hf.space/assets/Example-04e4c2ae.js

js pendrokar-xvasynth-tts.hf.space collected 2026-10-03 10:22:20 UTC 2,160 bytes, 92 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 = (/*value*/ ctx[0]
21	? Array.isArray(/*value*/ ctx[0])
22		? /*value*/ ctx[0].join(", ")
23		: /*value*/ ctx[0]
24	: "") + "";
25
26	let t;
27
28	return {
29		c() {
30			div = element("div");
31			t = text(t_value);
32			attr(div, "class", "svelte-rgtszb");
33			toggle_class(div, "table", /*type*/ ctx[1] === "table");
34			toggle_class(div, "gallery", /*type*/ ctx[1] === "gallery");
35			toggle_class(div, "selected", /*selected*/ ctx[2]);
36		},
37		m(target, anchor) {
38			insert(target, div, anchor);
39			append(div, t);
40		},
41		p(ctx, [dirty]) {
42			if (dirty & /*value*/ 1 && t_value !== (t_value = (/*value*/ ctx[0]
43			? Array.isArray(/*value*/ ctx[0])
44				? /*value*/ ctx[0].join(", ")
45				: /*value*/ ctx[0]
46			: "") + "")) set_data(t, t_value);
47
48			if (dirty & /*type*/ 2) {
49				toggle_class(div, "table", /*type*/ ctx[1] === "table");
50			}
51
52			if (dirty & /*type*/ 2) {
53				toggle_class(div, "gallery", /*type*/ ctx[1] === "gallery");
54			}
55
56			if (dirty & /*selected*/ 4) {
57				toggle_class(div, "selected", /*selected*/ ctx[2]);
58			}
59		},
60		i: noop,
61		o: noop,
62		d(detaching) {
63			if (detaching) {
64				detach(div);
65			}
66		}
67	};
68}
69
70function instance($$self, $$props, $$invalidate) {
71	let { value } = $$props;
72	let { type } = $$props;
73	let { selected = false } = $$props;
74
75	$$self.$$set = $$props => {
76		if ('value' in $$props) $$invalidate(0, value = $$props.value);
77		if ('type' in $$props) $$invalidate(1, type = $$props.type);
78		if ('selected' in $$props) $$invalidate(2, selected = $$props.selected);
79	};
80
81	return [value, type, selected];
82}
83
84class Example extends SvelteComponent {
85	constructor(options) {
86		super();
87		init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
88	}
89}
90
91export { Example as default };
92//# sourceMappingURL=Example-04e4c2ae.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.