PageSourceSearch

https://magicians7-korean-medicine-ai.hf.space/assets/Example-MOIw3ihL.js

js magicians7-korean-medicine-ai.hf.space collected 2026-10-03 17:06:06 UTC 1,576 bytes, 78 lines download raw bytes

1import { p as prop, e as init, b as set_class } from './i18n-CGlVUOvE.js';
2import { M as push, t as template_effect, a as append, O as pop, P as flushSync, R as from_html, X as set_text, Q as child, T as reset } from './index-Bq2njFOY.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	let choices = prop($$props, 'choices', 12);
13	let names = value().map((val) => choices().find((pair) => pair[1] === val)?.[0]).filter((name) => name !== undefined);
14	let names_string = names.join(", ");
15
16	var $$exports = {
17		get value() {
18			return value();
19		},
20
21		set value($$value) {
22			value($$value);
23			flushSync();
24		},
25
26		get type() {
27			return type();
28		},
29
30		set type($$value) {
31			type($$value);
32			flushSync();
33		},
34
35		get selected() {
36			return selected();
37		},
38
39		set selected($$value) {
40			selected($$value);
41			flushSync();
42		},
43
44		get choices() {
45			return choices();
46		},
47
48		set choices($$value) {
49			choices($$value);
50			flushSync();
51		}
52	};
53
54	init();
55
56	var div = root();
57	let classes;
58	var text = child(div, true);
59
60	reset(div);
61
62	template_effect(() => {
63		classes = set_class(div, 1, 'svelte-25nhtv', null, classes, {
64			table: type() === "table",
65			gallery: type() === "gallery",
66			selected: selected()
67		});
68
69		set_text(text, names_string);
70	});
71
72	append($$anchor, div);
73
74	return pop($$exports);
75}
76
77export { Example as default };
78//# sourceMappingURL=Example-MOIw3ihL.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.