PageSourceSearch

https://hunter.io/assets/empty-state-Crv2GUlN.js

js hunter.io collected 2026-09-24 07:50:54 UTC 11,169 bytes, 414 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] = "f8c3b5ca-142d-43cf-a735-fa599c365923", e._sentryDebugIdIdentifier = "sentry-dbid-f8c3b5ca-142d-43cf-a735-fa599c365923");
7	} catch (e) {}
8})();
9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js";
10import { l as unsafeCast } from "./type-guards-DVyG5ljW.js";
11import { a as cn, i as require_compiler_runtime, n as cva, r as init_dist, t as require_jsx_runtime, u as init_utils } from "./jsx-runtime-CHSMGLHp.js";
12import { t as require_react } from "./react-CrLPhuc5.js";
13//#region app/frontend/react/ui/empty-state.tsx
14var import_compiler_runtime, import_react, import_jsx_runtime, emptyStateVariants, EmptyStateRoot, EmptyStateBackground, EmptyStateImage, EmptyStateIcon, EmptyStateVideo, EmptyStateContent, EmptyStateTitle, EmptyStateDescription, EmptyStateActions, EmptyStateHint, EmptyState;
15function init_empty_state() {
16	return (init_empty_state = __esmMin((() => {
17		import_compiler_runtime = require_compiler_runtime();
18		import_react = /* @__PURE__ */ __toESM(require_react());
19		init_dist();
20		init_utils();
21		import_jsx_runtime = require_jsx_runtime();
22		emptyStateVariants = cva("empty-state", {
23			variants: {
24				size: {
25					default: "",
26					small: "empty-state--small",
27					lg: "empty-state--lg"
28				},
29				orientation: {
30					vertical: "",
31					horizontal: "empty-state--horizontal"
32				}
33			},
34			defaultVariants: {
35				size: "default",
36				orientation: "vertical"
37			}
38		});
39		EmptyStateRoot = import_react.forwardRef((t0, ref) => {
40			const $ = (0, import_compiler_runtime.c)(21);
41			let children;
42			let className;
43			let fill;
44			let orientation;
45			let props;
46			let sidepanel;
47			let size;
48			if ($[0] !== t0) {
49				({className, children, size, orientation, fill, sidepanel, ...props} = t0);
50				$[0] = t0;
51				$[1] = children;
52				$[2] = className;
53				$[3] = fill;
54				$[4] = orientation;
55				$[5] = props;
56				$[6] = sidepanel;
57				$[7] = size;
58			} else {
59				children = $[1];
60				className = $[2];
61				fill = $[3];
62				orientation = $[4];
63				props = $[5];
64				sidepanel = $[6];
65				size = $[7];
66			}
67			let t1;
68			if ($[8] !== className || $[9] !== fill || $[10] !== orientation || $[11] !== sidepanel || $[12] !== size) {
69				t1 = cn(emptyStateVariants({
70					size,
71					orientation
72				}), fill && "empty-state--fill", sidepanel && "empty-state--sidepanel", className);
73				$[8] = className;
74				$[9] = fill;
75				$[10] = orientation;
76				$[11] = sidepanel;
77				$[12] = size;
78				$[13] = t1;
79			} else t1 = $[13];
80			const t2 = size ?? "default";
81			const t3 = orientation ?? "vertical";
82			let t4;
83			if ($[14] !== children || $[15] !== props || $[16] !== ref || $[17] !== t1 || $[18] !== t2 || $[19] !== t3) {
84				t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
85					ref,
86					className: t1,
87					"data-component": "EmptyState",
88					"data-size": t2,
89					"data-orientation": t3,
90					"data-testid": "empty-state",
91					...props,
92					children
93				});
94				$[14] = children;
95				$[15] = props;
96				$[16] = ref;
97				$[17] = t1;
98				$[18] = t2;
99				$[19] = t3;
100				$[20] = t4;
101			} else t4 = $[20];
102			return t4;
103		});
104		EmptyStateRoot.displayName = "EmptyStateRoot";
105		EmptyStateBackground = import_react.forwardRef((t0, ref) => {
106			const $ = (0, import_compiler_runtime.c)(13);
107			let backgroundUrl;
108			let className;
109			let props;
110			if ($[0] !== t0) {
111				({className, backgroundUrl, ...props} = t0);
112				$[0] = t0;
113				$[1] = backgroundUrl;
114				$[2] = className;
115				$[3] = props;
116			} else {
117				backgroundUrl = $[1];
118				className = $[2];
119				props = $[3];
120			}
121			if (!backgroundUrl) return null;
122			let t1;
123			if ($[4] !== className) {
124				t1 = cn("empty-state__background", className);
125				$[4] = className;
126				$[5] = t1;
127			} else t1 = $[5];
128			const t2 = `url(${backgroundUrl})`;
129			let t3;
130			if ($[6] !== t2) {
131				t3 = { backgroundImage: t2 };
132				$[6] = t2;
133				$[7] = t3;
134			} else t3 = $[7];
135			let t4;
136			if ($[8] !== props || $[9] !== ref || $[10] !== t1 || $[11] !== t3) {
137				t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
138					ref,
139					className: t1,
140					style: t3,
141					"data-slot": "background",
142					...props
143				});
144				$[8] = props;
145				$[9] = ref;
146				$[10] = t1;
147				$[11] = t3;
148				$[12] = t4;
149			} else t4 = $[12];
150			return t4;
151		});
152		EmptyStateBackground.displayName = "EmptyStateBackground";
153		EmptyStateImage = import_react.forwardRef((t0, ref) => {
154			const $ = (0, import_compiler_runtime.c)(11);
155			let className;
156			let full;
157			let props;
158			if ($[0] !== t0) {
159				({className, full, ...props} = t0);
160				$[0] = t0;
161				$[1] = className;
162				$[2] = full;
163				$[3] = props;
164			} else {
165				className = $[1];
166				full = $[2];
167				props = $[3];
168			}
169			const t1 = full && "empty-state__img--full";
170			let t2;
171			if ($[4] !== className || $[5] !== t1) {
172				t2 = cn("empty-state__img", t1, className);
173				$[4] = className;
174				$[5] = t1;
175				$[6] = t2;
176			} else t2 = $[6];
177			let t3;
178			if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
179				t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
180					ref,
181					className: t2,
182					"data-slot": "image",
183					...props
184				});
185				$[7] = props;
186				$[8] = ref;
187				$[9] = t2;
188				$[10] = t3;
189			} else t3 = $[10];
190			return t3;
191		});
192		EmptyStateImage.displayName = "EmptyStateImage";
193		EmptyStateIcon = import_react.forwardRef((t0, ref) => {
194			const $ = (0, import_compiler_runtime.c)(9);
195			let className;
196			let props;
197			if ($[0] !== t0) {
198				({className, ...props} = t0);
199				$[0] = t0;
200				$[1] = className;
201				$[2] = props;
202			} else {
203				className = $[1];
204				props = $[2];
205			}
206			let t1;
207			if ($[3] !== className) {
208				t1 = cn("empty-state__icon", className);
209				$[3] = className;
210				$[4] = t1;
211			} else t1 = $[4];
212			let t2;
213			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
214				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
215					ref,
216					className: t1,
217					"data-slot": "icon",
218					...props
219				});
220				$[5] = props;
221				$[6] = ref;
222				$[7] = t1;
223				$[8] = t2;
224			} else t2 = $[8];
225			return t2;
226		});
227		EmptyStateIcon.displayName = "EmptyStateIcon";
228		EmptyStateVideo = import_react.forwardRef((t0, ref) => {
229			const $ = (0, import_compiler_runtime.c)(9);
230			let className;
231			let props;
232			if ($[0] !== t0) {
233				({className, ...props} = t0);
234				$[0] = t0;
235				$[1] = className;
236				$[2] = props;
237			} else {
238				className = $[1];
239				props = $[2];
240			}
241			let t1;
242			if ($[3] !== className) {
243				t1 = cn("empty-state__video", className);
244				$[3] = className;
245				$[4] = t1;
246			} else t1 = $[4];
247			let t2;
248			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
249				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
250					ref,
251					className: t1,
252					"data-slot": "video",
253					...props
254				});
255				$[5] = props;
256				$[6] = ref;
257				$[7] = t1;
258				$[8] = t2;
259			} else t2 = $[8];
260			return t2;
261		});
262		EmptyStateVideo.displayName = "EmptyStateVideo";
263		EmptyStateContent = import_react.forwardRef((t0, ref) => {
264			const $ = (0, import_compiler_runtime.c)(9);
265			let className;
266			let props;
267			if ($[0] !== t0) {
268				({className, ...props} = t0);
269				$[0] = t0;
270				$[1] = className;
271				$[2] = props;
272			} else {
273				className = $[1];
274				props = $[2];
275			}
276			let t1;
277			if ($[3] !== className) {
278				t1 = cn("empty-state__content", className);
279				$[3] = className;
280				$[4] = t1;
281			} else t1 = $[4];
282			let t2;
283			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
284				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
285					ref,
286					className: t1,
287					"data-slot": "content",
288					...props
289				});
290				$[5] = props;
291				$[6] = ref;
292				$[7] = t1;
293				$[8] = t2;
294			} else t2 = $[8];
295			return t2;
296		});
297		EmptyStateContent.displayName = "EmptyStateContent";
298		EmptyStateTitle = import_react.forwardRef(({ className, as: Comp = "h3", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, {
299			ref: unsafeCast(ref),
300			className: cn("empty-state__title", className),
301			"data-slot": "title",
302			...props
303		}));
304		EmptyStateTitle.displayName = "EmptyStateTitle";
305		EmptyStateDescription = import_react.forwardRef((t0, ref) => {
306			const $ = (0, import_compiler_runtime.c)(9);
307			let className;
308			let props;
309			if ($[0] !== t0) {
310				({className, ...props} = t0);
311				$[0] = t0;
312				$[1] = className;
313				$[2] = props;
314			} else {
315				className = $[1];
316				props = $[2];
317			}
318			let t1;
319			if ($[3] !== className) {
320				t1 = cn("empty-state__description", className);
321				$[3] = className;
322				$[4] = t1;
323			} else t1 = $[4];
324			let t2;
325			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
326				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
327					ref,
328					className: t1,
329					"data-slot": "description",
330					...props
331				});
332				$[5] = props;
333				$[6] = ref;
334				$[7] = t1;
335				$[8] = t2;
336			} else t2 = $[8];
337			return t2;
338		});
339		EmptyStateDescription.displayName = "EmptyStateDescription";
340		EmptyStateActions = import_react.forwardRef((t0, ref) => {
341			const $ = (0, import_compiler_runtime.c)(9);
342			let className;
343			let props;
344			if ($[0] !== t0) {
345				({className, ...props} = t0);
346				$[0] = t0;
347				$[1] = className;
348				$[2] = props;
349			} else {
350				className = $[1];
351				props = $[2];
352			}
353			let t1;
354			if ($[3] !== className) {
355				t1 = cn("empty-state__actions", className);
356				$[3] = className;
357				$[4] = t1;
358			} else t1 = $[4];
359			let t2;
360			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
361				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
362					ref,
363					className: t1,
364					"data-slot": "actions",
365					...props
366				});
367				$[5] = props;
368				$[6] = ref;
369				$[7] = t1;
370				$[8] = t2;
371			} else t2 = $[8];
372			return t2;
373		});
374		EmptyStateActions.displayName = "EmptyStateActions";
375		EmptyStateHint = import_react.forwardRef((t0, ref) => {
376			const $ = (0, import_compiler_runtime.c)(9);
377			let className;
378			let props;
379			if ($[0] !== t0) {
380				({className, ...props} = t0);
381				$[0] = t0;
382				$[1] = className;
383				$[2] = props;
384			} else {
385				className = $[1];
386				props = $[2];
387			}
388			let t1;
389			if ($[3] !== className) {
390				t1 = cn("empty-state__hint", className);
391				$[3] = className;
392				$[4] = t1;
393			} else t1 = $[4];
394			let t2;
395			if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
396				t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
397					ref,
398					className: t1,
399					"data-slot": "hint",
400					...props
401				});
402				$[5] = props;
403				$[6] = ref;
404				$[7] = t1;
405				$[8] = t2;
406			} else t2 = $[8];
407			return t2;
408		});
409		EmptyStateHint.displayName = "EmptyStateHint";
410		EmptyState = EmptyStateRoot;
411	})))();
412}
413//#endregion
414export { EmptyStateDescription as a, EmptyStateImage as c, init_empty_state as d, EmptyStateContent as i, EmptyStateTitle as l, EmptyStateActions as 
414n, EmptyStateHint as o, EmptyStateBackground as r, EmptyStateIcon as s, EmptyState as t, EmptyStateVideo as u };

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.