PageSourceSearch

https://kdhs-junseok.hf.space/assets/Example-26f7bda8.js

js kdhs-junseok.hf.space collected 2026-10-04 17:01:45 UTC 1,998 bytes, 83 lines download raw bytes

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