PageSourceSearch

https://hunter.io/assets/company-logo-iCJP3mFk.js

js hunter.io collected 2026-09-24 07:50:36 UTC 4,146 bytes, 68 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] = "51f15458-0b26-428f-bd8f-16035e1548d9", e._sentryDebugIdIdentifier = "sentry-dbid-51f15458-0b26-428f-bd8f-16035e1548d9");
7	} catch (e) {}
8})();
9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js";
10import { a as cn, n as cva, r as init_dist, t as require_jsx_runtime, u as init_utils } from "./jsx-runtime-CHSMGLHp.js";
11import { t as require_react } from "./react-CrLPhuc5.js";
12import { n as init_default_company_logo, t as default_company_logo_default } from "./default_company_logo-CUlbiX6a.js";
13//#region app/frontend/react/ui/company-logo.tsx
14/**
15* Canonical builder for a company logo URL from our Logos API.
16* The single source of truth used by `<CompanyLogo>` and re-exported for
17* call sites that still build the URL themselves.
18*/
19function buildCompanyLogoUrl(domain) {
20	return `https://logos.hunter.io/${domain}`;
21}
22var import_react, import_jsx_runtime, companyLogoVariants, CompanyLogo;
23function init_company_logo() {
24	return (init_company_logo = __esmMin((() => {
25		import_react = /* @__PURE__ */ __toESM(require_react());
26		init_dist();
27		init_utils();
28		init_default_company_logo();
29		import_jsx_runtime = require_jsx_runtime();
30		companyLogoVariants = cva("h-company-logo", { variants: { size: {
31			xxs: "h-company-logo--xxs",
32			xs: "h-company-logo--xs",
33			sm: "h-company-logo--sm",
34			md: "h-company-logo--md",
35			lg: "h-company-logo--lg"
36		} } });
37		CompanyLogo = import_react.forwardRef(({ className, domain, src, size, alt = "", loading = "lazy", onError, ...props }, ref) => {
38			const resolved = src || (domain ? buildCompanyLogoUrl(domain) : "data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2048%2048'%20width='48'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m0%200h48v48h-48z'%20fill='%23f7f9fa'/%3e%3cpath%20d='m33%2014.25h-7.5c-.4219%200-.75.375-.75.75v18c0%20.4219.3281.75.75.75h7.5c.375%200%20.75-.3281.75-.75v-18c0-.375-.375-.75-.75-.75zm-7.5-2.25h7.5c1.6406%200%203%201.3594%203%203v18c0%201.6875-1.3594%203-3%203h-7.5c-1.6875%200-3-1.3125-3-3v-18c0-1.6406%201.3125-3%203-3zm-4.5%206v2.25h-5.625c-.6562%200-1.125.5156-1.125%201.125v11.25c0%20.6562.4688%201.125%201.125%201.125h5.6719c.1406.8906.5156%201.6406%201.0781%202.25h-6.75c-1.875%200-3.375-1.5-3.375-3.375v-11.25c0-1.8281%201.5-3.375%203.375-3.375zm-3.75%209h1.5c.375%200%20.75.375.75.75v1.5c0%20.4219-.375.75-.75.75h-1.5c-.4219%200-.75-.3281-.75-.75v-1.5c0-.375.3281-.75.75-.75zm10.5.75v-1.5c0-.375.3281-.75.75-.75h1.5c.375%200%20.75.375.75.75v1.5c0%20.4219-.375.75-.75.75h-1.5c-.4219%200-.75-.3281-.75-.75zm-10.5-5.25h1.5c.375%200%20.75.375.75.75v1.5c0%20.4219-.375.75-.75.75h-1.5c-.4219%200-.75-.3281-.75-.75v-1.5c0-.375.3281-.75.75-.75zm10.5-5.25c0-.375.3281-.75.75-.75h1.5c.375%200%20.75.375.75.75v1.5c0%20.4219-.375.75-.75.75h-1.5c-.4219%200-.75-.3281-.75-.75zm.75%206.75c-.4219%200-.75-.3281-.75-.75v-1.5c0-.375.3281-.75.75-.75h1.5c.375%200%20.75.375.75.75v1.5c0%20.4219-.375.75-.75.75z'%20fill='%23c7cdd4'/%3e%3c/svg%3e");
39			const [hasError, setHasError] = import_react.useState(false);
40			import_react.useEffect(() => {
41				setHasError(false);
42			}, [resolved]);
43			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
44				ref,
45				"data-component": "CompanyLogo",
46				"data-size": size,
47				className: cn(companyLogoVariants({
48					size,
49					className
50				})),
51				...props,
52				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", {
53					className: "h-company-logo__img",
54					src: hasError ? default_company_logo_default : resolved,
55					alt,
56					loading,
57					onError: hasError ? void 0 : (event) => {
58						setHasError(true);
59						onError?.(event);
60					}
61				})
62			});
63		});
64		CompanyLogo.displayName = "CompanyLogo";
65	})))();
66}
67//#endregion
68export { buildCompanyLogoUrl as n, init_company_logo as r, CompanyLogo 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.