PageSourceSearch

https://juliandisalvoperez-tribe-v2-neural-activity-predictor.hf.space/assets/Example-fn88helW.js

js juliandisalvoperez-tribe-v2-neural-activity-predictor.hf.space collected 2026-10-03 17:01:16 UTC 1,047 bytes, 44 lines download raw bytes

1import { p as prop, b as set_class } from './i18n-dpAHICcw.js';
2import { t as template_effect, a0 as set_text, a as append, W as from_html, V as child, Y as reset } from './index-CDZuCcOm.js';
3/* empty css                                               */
4
5var root = from_html(`<pre> </pre>`);
6
7function Example($$anchor, $$props) {
8
9	let selected = prop($$props, 'selected', 3, false);
10
11	function truncate_text(text, max_length = 60) {
12		if (!text) return "";
13
14		const str = String(text);
15
16		if (str.length <= max_length) return str;
17
18		return str.slice(0, max_length) + "...";
19	}
20
21	var pre = root();
22	let classes;
23	var text_1 = child(pre, true);
24
25	reset(pre);
26
27	template_effect(
28		($0) => {
29			classes = set_class(pre, 1, 'svelte-1bbj91m', null, classes, {
30				table: $$props.type === "table",
31				gallery: $$props.type === "gallery",
32				selected: selected()
33			});
34
35			set_text(text_1, $0);
36		},
37		[() => truncate_text($$props.value)]
38	);
39
40	append($$anchor, pre);
41}
42
43export { Example as default };
44//# sourceMappingURL=Example-fn88helW.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.