PageSourceSearch

https://john6666-danbooru-tags-transformer-v2-with-wd-tagger.hf.space/assets/Example-Cvew1Cxk.js

js john6666-danbooru-tags-transformer-v2-with-wd-tagger.hf.space collected 2026-10-03 17:00:56 UTC 1,132 bytes, 39 lines download raw bytes

1import { p as prop, b as set_class } from './i18n-dpAHICcw.js';
2import { R as push, t as template_effect, a as append, T as pop, W as from_html, a0 as set_text, V as child, Y as reset } from './index-CDZuCcOm.js';
3/* empty css                                               */
4
5var root = from_html(`<div> </div>`);
6
7function Example($$anchor, $$props) {
8	push($$props, true);
9
10	let selected = prop($$props, 'selected', 3, false);
11
12	let value_array = $$props.value
13		? Array.isArray($$props.value) ? $$props.value : [$$props.value]
14		: [];
15
16	let names = value_array.map((val) => $$props.choices.find((pair) => pair[1] === val)?.[0]).filter((name) => name !== undefined);
17	let names_string = names.join(", ");
18	var div = root();
19	let classes;
20	var text = child(div, true);
21
22	reset(div);
23
24	template_effect(() => {
25		classes = set_class(div, 1, 'svelte-1by696e', null, classes, {
26			table: $$props.type === "table",
27			gallery: $$props.type === "gallery",
28			selected: selected()
29		});
30
31		set_text(text, names_string);
32	});
33
34	append($$anchor, div);
35	pop();
36}
37
38export { Example as default };
39//# sourceMappingURL=Example-Cvew1Cxk.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.