PageSourceSearch

https://hunter.io/assets/useCustomEventListener-p4wEO_o6.js

js hunter.io collected 2026-09-24 07:51:23 UTC 1,540 bytes, 43 lines download raw bytes

1(function() {
2	try {
3		var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
4		e.SENTRY_RELEASE = { id: "b96dc26" };
5		var n = new e.Error().stack;
6		n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e4983382-8d39-4a70-8685-5ef5ae9a7f54", e._sentryDebugIdIdentifier = "sentry-dbid-e4983382-8d39-4a70-8685-5ef5ae9a7f54");
7	} catch (e) {}
8})();
9import { n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js";
10import { i as require_compiler_runtime } from "./jsx-runtime-CHSMGLHp.js";
11import { t as require_react } from "./react-CrLPhuc5.js";
12//#region app/frontend/react/hooks/useCustomEventListener.ts
13function useCustomEventListener(event, callback) {
14	const $ = (0, import_compiler_runtime.c)(4);
15	let t0;
16	let t1;
17	if ($[0] !== callback || $[1] !== event) {
18		t0 = () => {
19			window.addEventListener(event, callback);
20			return () => {
21				window.removeEventListener(event, callback);
22			};
23		};
24		t1 = [event, callback];
25		$[0] = callback;
26		$[1] = event;
27		$[2] = t0;
28		$[3] = t1;
29	} else {
30		t0 = $[2];
31		t1 = $[3];
32	}
33	(0, import_react.useEffect)(t0, t1);
34}
35var import_compiler_runtime, import_react;
36function init_useCustomEventListener() {
37	return (init_useCustomEventListener = __esmMin((() => {
38		import_compiler_runtime = require_compiler_runtime();
39		import_react = require_react();
40	})))();
41}
42//#endregion
43export { useCustomEventListener as n, init_useCustomEventListener as t };

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.