PageSourceSearch

https://leks-forever-lez-rus-2.hf.space/assets/Index-DzadCq8f.js

js leks-forever-lez-rus-2.hf.space collected 2026-10-03 10:23:46 UTC 4,793 bytes, 189 lines download raw bytes

1import { g as spread_props, d as bind_this, r as rest_props, b as set_class } from './i18n-CGlVUOvE.js';
2import { M as push, ad as user_effect, I as tick, N as first_child, Z as get, t as template_effect, a as append, S as sibling, Q as child, a2 as user_derived, O as pop, ab as state, $ as set, R as from_html, T as reset } from './index-Bq2njFOY.js';
3import { G as Gradio, s as should_show_scroll_fade } from './utils.svelte-Bi9ASwv9.js';
4import { M as Markdown } from './Index.svelte_svelte_type_style_lang-BIr0F_Dm.js';
5import { S as Static } from './index-1GCmrSlD.js';
6import './StreamingBar.svelte_svelte_type_style_lang-DWGn5tT_.js';
7import { B as Block } from './Block-DNK-JdLJ.js';
8import './MarkdownCode.svelte_svelte_type_style_lang-B29zDiob.js';
9import './ScrollFade.svelte_svelte_type_style_lang-D0JPkGar.js';
10import { S as ScrollFade } from './ScrollFade-CRDohWU-.js';
11export { default as BaseExample } from './Example-DUe-V0Ld.js';
12import './actions-CgRQ2lHA.js';
13import './Check-BKMHx_DF.js';
14import './Copy-BQlJe6-D.js';
15import './MarkdownCode-BYKuypS7.js';
16import './html-Bwif0JPw.js';
17import './IconButtonWrapper-DAsvkfJg.js';
18import './snippet-BG7qkY_1.js';
19import './Clear-C8Tfa7QP.js';
20import './prism-python-NrKIQnfs.js';
21/* empty css                                               */
22
23var root_1 = from_html(`<!> <div><!></div> <!>`, 1);
24
25function Index($$anchor, $$props) {
26	push($$props, true);
27
28	let props = rest_props($$props, ['$$slots', '$$events', '$$legacy']);
29	const gradio = new Gradio(props);
30	let wrapper;
31	let show_fade = state(false);
32
33	function update_fade() {
34		if (!gradio.props.height) return;
35
36		set(show_fade, should_show_scroll_fade(wrapper?.closest(".block")), true);
37	}
38
39	user_effect(() => {
40		const container = wrapper?.closest(".block");
41
42		if (!container || !gradio.props.height) return;
43
44		container.addEventListener("scroll", update_fade);
45		tick().then(update_fade);
46
47		return () => container.removeEventListener("scroll", update_fade);
48	});
49
50	user_effect(() => {
51		if (gradio.props.value !== undefined) tick().then(update_fade);
52	});
53
54	Block($$anchor, {
55		get visible() {
56			return gradio.shared.visible;
57		},
58
59		get elem_id() {
60			return gradio.shared.elem_id;
61		},
62
63		get elem_classes() {
64			return gradio.shared.elem_classes;
65		},
66
67		get container() {
68			return gradio.shared.container;
69		},
70		allow_overflow: true,
71		overflow_behavior: 'auto',
72		get height() {
73			return gradio.props.height;
74		},
75
76		get min_height() {
77			return gradio.props.min_height;
78		},
79
80		get max_height() {
81			return gradio.props.max_height;
82		},
83
84		get rtl() {
85			return gradio.props.rtl;
86		},
87
88		children: ($$anchor, $$slotProps) => {
89			var fragment_1 = root_1();
90			var node = first_child(fragment_1);
91
92			Static(node, spread_props(
93				{
94					get autoscroll() {
95						return gradio.shared.autoscroll;
96					},
97
98					get i18n() {
99						return gradio.i18n;
100					}
101				},
102				() => gradio.shared.loading_status,
103				{
104					variant: 'center',
105					on_clear_status: () => gradio.dispatch("clear_status", gradio.shared.loading_status)
106				}
107			));
108
109			var div = sibling(node, 2);
110			let classes;
111			var node_1 = child(div);
112
113			{
114				let $0 = user_derived(() => gradio.props.buttons?.includes("copy"));
115
116				Markdown(node_1, {
117					get value() {
118						return gradio.props.value;
119					},
120
121					get elem_classes() {
122						return gradio.shared.elem_classes;
123					},
124
125					get visible() {
126						return gradio.shared.visible;
127					},
128
129					get rtl() {
130						return gradio.props.rtl;
131					},
132					onchange: () => gradio.dispatch("change"),
133					oncopy: (e) => gradio.dispatch("copy", e.detail),
134					get latex_delimiters() {
135						return gradio.props.latex_delimiters;
136					},
137
138					get sanitize_html() {
139						return gradio.props.sanitize_html;
140					},
141
142					get line_breaks() {
143						return gradio.props.line_breaks;
144					},
145
146					get header_links() {
147						return gradio.props.header_links;
148					},
149
150					get show_copy_button() {
151						return get($0);
152					},
153
154					get loading_status() {
155						return gradio.shared.loading_status;
156					},
157
158					get theme_mode() {
159						return gradio.shared.theme_mode;
160					}
161				});
162			}
163
164			reset(div);
165			bind_this(div, ($$value) => wrapper = $$value, () => wrapper);
166
167			var node_2 = sibling(div, 2);
168
169			ScrollFade(node_2, {
170				get visible() {
171					return get(show_fade);
172				}
173			});
174
175			template_effect(() => classes = set_class(div, 1, 'svelte-16ln60g', null, classes, {
176				padding: gradio.props.padding,
177				pending: gradio.shared.loading_status?.status === "pending" && gradio.shared.loading_status?.show_progress !== "hidden"
178			}));
179
180			append($$anchor, fragment_1);
181		},
182		$$slots: { default: true }
183	});
184
185	pop();
186}
187
188export { Markdown as BaseMarkdown, Index as default };
189//# sourceMappingURL=Index-DzadCq8f.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.