PageSourceSearch

https://prithivmlmods-ltx-2-loras-camera-control-dolly.hf.space/assets/Index-DPsbjNiT.js

js prithivmlmods-ltx-2-loras-camera-control-dolly.hf.space collected 2026-10-03 17:15:58 UTC 4,325 bytes, 185 lines download raw bytes

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