PageSourceSearch

https://1keep.com/_app/immutable/entry/chapi-event-worker-page.svelte.48225ced.js

js 1keep.com collected 2026-09-28 06:37:35 UTC 2,398 bytes, 92 lines download raw bytes

1import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, y as create_component, l as claim_element, m as children, z as claim_component, h as detach, n as attr, b as insert_hydration, K as append_hydration, A as mount_component, C as noop, g as transition_in, d as transition_out, B as destroy_component, o as onMount } from '../chunks/index.ce768326.js';
2import { l as loadOnce, a as activateHandler } from '../chunks/index.289252c2.js';
3import { L as Loading } from '../chunks/Loading.f65422fb.js';
4
5/* src/routes/chapi/event/worker/+page.svelte generated by Svelte v3.58.0 */
6
7function create_fragment(ctx) {
8	let div1;
9	let div0;
10	let loading;
11	let current;
12	loading = new Loading({});
13
14	return {
15		c() {
16			div1 = element("div");
17			div0 = element("div");
18			create_component(loading.$$.fragment);
19			this.h();
20		},
21		l(nodes) {
22			div1 = claim_element(nodes, "DIV", { class: true });
23			var div1_nodes = children(div1);
24			div0 = claim_element(div1_nodes, "DIV", { class: true });
25			var div0_nodes = children(div0);
26			claim_component(loading.$$.fragment, div0_nodes);
27			div0_nodes.forEach(detach);
28			div1_nodes.forEach(detach);
29			this.h();
30		},
31		h() {
32			attr(div0, "class", "h-screen flex flex-col justify-center items-center gap-8");
33			attr(div1, "class", "w-screen h-screen bg-stone-800");
34		},
35		m(target, anchor) {
36			insert_hydration(target, div1, anchor);
37			append_hydration(div1, div0);
38			mount_component(loading, div0, null);
39			current = true;
40		},
41		p: noop,
42		i(local) {
43			if (current) return;
44			transition_in(loading.$$.fragment, local);
45			current = true;
46		},
47		o(local) {
48			transition_out(loading.$$.fragment, local);
49			current = false;
50		},
51		d(detaching) {
52			if (detaching) detach(div1);
53			destroy_component(loading);
54		}
55	};
56}
57
58function instance($$self) {
59	onMount(async () => {
60		await loadOnce();
61
62		activateHandler({
63			async get(event) {
64				console.log('WCH: Received get() event:', event);
65
66				return {
67					type: 'redirect',
68					url: '/chapi/event/get'
69				};
70			},
71			async store(event) {
72				console.log('WCH: Received store() event:', event);
73
74				return {
75					type: 'redirect',
76					url: '/chapi/event/store'
77				};
78			}
79		});
80	});
81
82	return [];
83}
84
85class Page extends SvelteComponent {
86	constructor(options) {
87		super();
88		init(this, options, instance, create_fragment, safe_not_equal, {});
89	}
90}
91
92export { Page as default };

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.