PageSourceSearch

https://swimmiing-acl-ssl-zeroshot-demo.hf.space/assets/Index-a3ffbeb0.js

js swimmiing-acl-ssl-zeroshot-demo.hf.space collected 2026-10-03 10:23:47 UTC 3,503 bytes, 128 lines download raw bytes

1const Index_svelte_svelte_type_style_lang = '';
2
3/* home/runner/work/gradio/gradio/js/group/Index.svelte generated by Svelte v4.2.2 */
4const {
5	SvelteComponent,
6	append,
7	attr,
8	create_slot,
9	detach,
10	element,
11	get_all_dirty_from_scope,
12	get_slot_changes,
13	init,
14	insert,
15	safe_not_equal,
16	set_style,
17	toggle_class,
18	transition_in,
19	transition_out,
20	update_slot_base
21} = window.__gradio__svelte__internal;
22function create_fragment(ctx) {
23	let div1;
24	let div0;
25	let div1_class_value;
26	let current;
27	const default_slot_template = /*#slots*/ ctx[4].default;
28	const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
29
30	return {
31		c() {
32			div1 = element("div");
33			div0 = element("div");
34			if (default_slot) default_slot.c();
35			attr(div0, "class", "styler svelte-iyf88w");
36			set_style(div0, "--block-radius", `0px`);
37			set_style(div0, "--block-border-width", `0px`);
38			set_style(div0, "--layout-gap", `1px`);
39			set_style(div0, "--form-gap-width", `1px`);
40			set_style(div0, "--button-border-width", `0px`);
41			set_style(div0, "--button-large-radius", `0px`);
42			set_style(div0, "--button-small-radius", `0px`);
43			attr(div1, "id", /*elem_id*/ ctx[0]);
44			attr(div1, "class", div1_class_value = "gr-group " + /*elem_classes*/ ctx[1].join(' ') + " svelte-iyf88w");
45			toggle_class(div1, "hide", !/*visible*/ ctx[2]);
46		},
47		m(target, anchor) {
48			insert(target, div1, anchor);
49			append(div1, div0);
50
51			if (default_slot) {
52				default_slot.m(div0, null);
53			}
54
55			current = true;
56		},
57		p(ctx, [dirty]) {
58			if (default_slot) {
59				if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
60					update_slot_base(
61						default_slot,
62						default_slot_template,
63						ctx,
64						/*$$scope*/ ctx[3],
65						!current
66						? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
67						: get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
68						null
69					);
70				}
71			}
72
73			if (!current || dirty & /*elem_id*/ 1) {
74				attr(div1, "id", /*elem_id*/ ctx[0]);
75			}
76
77			if (!current || dirty & /*elem_classes*/ 2 && div1_class_value !== (div1_class_value = "gr-group " + /*elem_classes*/ ctx[1].join(' ') + " svelte-iyf88w")) {
78				attr(div1, "class", div1_class_value);
79			}
80
81			if (!current || dirty & /*elem_classes, visible*/ 6) {
82				toggle_class(div1, "hide", !/*visible*/ ctx[2]);
83			}
84		},
85		i(local) {
86			if (current) return;
87			transition_in(default_slot, local);
88			current = true;
89		},
90		o(local) {
91			transition_out(default_slot, local);
92			current = false;
93		},
94		d(detaching) {
95			if (detaching) {
96				detach(div1);
97			}
98
99			if (default_slot) default_slot.d(detaching);
100		}
101	};
102}
103
104function instance($$self, $$props, $$invalidate) {
105	let { $$slots: slots = {}, $$scope } = $$props;
106	let { elem_id = "" } = $$props;
107	let { elem_classes = [] } = $$props;
108	let { visible = true } = $$props;
109
110	$$self.$$set = $$props => {
111		if ('elem_id' in $$props) $$invalidate(0, elem_id = $$props.elem_id);
112		if ('elem_classes' in $$props) $$invalidate(1, elem_classes = $$props.elem_classes);
113		if ('visible' in $$props) $$invalidate(2, visible = $$props.visible);
114		if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
115	};
116
117	return [elem_id, elem_classes, visible, $$scope, slots];
118}
119
120class Index extends SvelteComponent {
121	constructor(options) {
122		super();
123		init(this, options, instance, create_fragment, safe_not_equal, { elem_id: 0, elem_classes: 1, visible: 2 });
124	}
125}
126
127export { Index as default };
128//# sourceMappingURL=Index-a3ffbeb0.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.