PageSourceSearch

https://drexyhhhh-danbooru-tags-transformer-v2-with-wd-tagger.hf.space/assets/Index-BJGdaFJX.js

js drexyhhhh-danbooru-tags-transformer-v2-with-wd-tagger.hf.space collected 2026-10-03 16:51:00 UTC 4,352 bytes, 186 lines download raw bytes

1import { i as if_block, g as spread_props, r as rest_props } from './i18n-dpAHICcw.js';
2import { R as push, u as state, v as proxy, y as user_effect, w as get, x as set, S as first_child, a as append, X as sibling, a5 as user_derived, T as pop, W as from_html, V as child, Y as reset } from './index-CDZuCcOm.js';
3import { b as bind_element_size } from './size-CuuZBRle.js';
4import { G as Gradio } from './utils.svelte-CyWLYi-B.js';
5import { J as JSON_1, a as JSON } from './JSON-CeWOiUsf.js';
6import { B as Block } from './Block-DntE23uJ.js';
7import './MarkdownCode.svelte_svelte_type_style_lang-GeNUGzep.js';
8import './ScrollFade.svelte_svelte_type_style_lang-DUvCSfRk.js';
9import { B as BlockLabel } from './BlockLabel-D4yjUUAn.js';
10import { S as Static } from './index-DyDpuTN9.js';
11import './StreamingBar.svelte_svelte_type_style_lang-BxBb9ZZb.js';
12import './clone-dZfS06Ds.js';
13import './Check-4kogBHUX.js';
14import './Copy-C8W4pNlO.js';
15import './Empty-617iGDfy.js';
16import './IconButtonWrapper-KjCt2Pl8.js';
17import './snippet-DVkMfmSq.js';
18import './prism-python-C_fanlsZ.js';
19import './Clear-tvJMRS4J.js';
20import './html-h_YSgefI.js';
21
22var root_1 = from_html(`<div><!></div> <!> <!>`, 1);
23
24function Index($$anchor, $$props) {
25	push($$props, true);
26
27	const props = rest_props($$props, ['$$slots', '$$events', '$$legacy']);
28	const gradio = new Gradio(props);
29	let old_value = state(proxy(gradio.props.value));
30
31	user_effect(() => {
32		if (get(old_value) !== gradio.props.value) {
33			set(old_value, gradio.props.value, true);
34			gradio.dispatch("change");
35		}
36	});
37
38	let label_height = state(0);
39
40	Block($$anchor, {
41		get visible() {
42			return gradio.shared.visible;
43		},
44		test_id: 'json',
45		get elem_id() {
46			return gradio.shared.elem_id;
47		},
48
49		get elem_classes() {
50			return gradio.shared.elem_classes;
51		},
52
53		get container() {
54			return gradio.shared.container;
55		},
56
57		get scale() {
58			return gradio.shared.scale;
59		},
60
61		get min_width() {
62			return gradio.shared.min_width;
63		},
64		padding: false,
65		allow_overflow: true,
66		overflow_behavior: 'auto',
67		get height() {
68			return gradio.props.height;
69		},
70
71		get min_height() {
72			return gradio.props.min_height;
73		},
74
75		get max_height() {
76			return gradio.props.max_height;
77		},
78
79		children: ($$anchor, $$slotProps) => {
80			var fragment_1 = root_1();
81			var div = first_child(fragment_1);
82			var node = child(div);
83
84			{
85				var consequent = ($$anchor) => {
86					{
87						let $0 = user_derived(() => gradio.shared.container === false);
88
89						BlockLabel($$anchor, {
90							get Icon() {
91								return JSON;
92							},
93
94							get show_label() {
95								return gradio.shared.show_label;
96							},
97
98							get label() {
99								return gradio.shared.label;
100							},
101							float: false,
102							get disable() {
103								return get($0);
104							}
105						});
106					}
107				};
108
109				if_block(node, ($$render) => {
110					if (gradio.shared.label) $$render(consequent);
111				});
112			}
113
114			reset(div);
115
116			var node_1 = sibling(div, 2);
117
118			Static(node_1, spread_props(
119				{
120					get autoscroll() {
121						return gradio.shared.autoscroll;
122					},
123
124					get i18n() {
125						return gradio.i18n;
126					}
127				},
128				() => gradio.shared.loading_status,
129				{
130					on_clear_status: () => gradio.dispatch("clear_status", gradio.shared.loading_status)
131				}
132			));
133
134			var node_2 = sibling(node_1, 2);
135
136			{
137				let $0 = user_derived(() => gradio.props.buttons == null
138					? true
139					: gradio.props.buttons.some((btn) => typeof btn === "string" && btn === "copy"));
140
141				JSON_1(node_2, {
142					get value() {
143						return gradio.props.value;
144					},
145
146					get open() {
147						return gradio.props.open;
148					},
149
150					get theme_mode() {
151						return gradio.props.theme_mode;
152					},
153
154					get show_indices() {
155						return gradio.props.show_indices;
156					},
157
158					get show_copy_button() {
159						return get($0);
160					},
161
162					get buttons() {
163						return gradio.props.buttons;
164					},
165
166					on_custom_button_click: (id) => {
167						gradio.dispatch("custom_button_click", { id });
168					},
169
170					get label_height() {
171						return get(label_height);
172					}
173				});
174			}
175
176			bind_element_size(div, 'clientHeight', ($$value) => set(label_height, $$value));
177			append($$anchor, fragment_1);
178		},
179		$$slots: { default: true }
180	});
181
182	pop();
183}
184
185export { JSON_1 as BaseJSON, Index as default };
186//# sourceMappingURL=Index-BJGdaFJX.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.