PageSourceSearch

https://yuvraj-chopra-dl-gen-ai-project.hf.space/assets/Example-MMVQg1EW.js

js yuvraj-chopra-dl-gen-ai-project.hf.space collected 2026-10-03 17:33:37 UTC 1,218 bytes, 61 lines download raw bytes

1import { p as prop, f as set_style, b as set_class } from './i18n-dpAHICcw.js';
2import { R as push, t as template_effect, a as append, T as pop, U as flushSync, W as from_html } from './index-CDZuCcOm.js';
3
4var root = from_html(`<div></div>`);
5
6function Example($$anchor, $$props) {
7	push($$props, false);
8
9	let value = prop($$props, 'value', 12);
10	let type = prop($$props, 'type', 12);
11	let selected = prop($$props, 'selected', 12, false);
12
13	var $$exports = {
14		get value() {
15			return value();
16		},
17
18		set value($$value) {
19			value($$value);
20			flushSync();
21		},
22
23		get type() {
24			return type();
25		},
26
27		set type($$value) {
28			type($$value);
29			flushSync();
30		},
31
32		get selected() {
33			return selected();
34		},
35
36		set selected($$value) {
37			selected($$value);
38			flushSync();
39		}
40	};
41
42	var div = root();
43	let classes;
44
45	template_effect(() => {
46		set_style(div, `background-color: ${(value() ? value() : 'black') ?? ''}`);
47
48		classes = set_class(div, 1, 'svelte-1k1s8qu', null, classes, {
49			table: type() === "table",
50			gallery: type() === "gallery",
51			selected: selected()
52		});
53	});
54
55	append($$anchor, div);
56
57	return pop($$exports);
58}
59
60export { Example as default };
61//# sourceMappingURL=Example-MMVQg1EW.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.