PageSourceSearch

https://hunter.io/assets/dist-BdA8YO30.js

js hunter.io collected 2026-09-24 07:50:23 UTC 11,680 bytes, 242 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] = "cc932ccc-1f54-4cf7-80a1-1e6eabe0272f", e._sentryDebugIdIdentifier = "sentry-dbid-cc932ccc-1f54-4cf7-80a1-1e6eabe0272f");
7	} catch (e) {}
8})();
9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js";
10import { t as require_jsx_runtime } from "./jsx-runtime-CHSMGLHp.js";
11import { t as require_react } from "./react-CrLPhuc5.js";
12import { a as init_dist$2, o as init_dist$1, r as createSlot, s as useComposedRefs } from "./dist-DaaV-7o0.js";
13import { a as init_dist$6, c as init_dist$5, f as createContextScope, h as init_dist$7, l as useId, m as composeEventHandlers, n as init_dist$8, o as init_dist$4, p as init_dist$3, r as Primitive, s as useControllableState, t as Presence } from "./dist-UVQLpsj-.js";
14import { a as createPopperScope, d as DismissableLayer, f as init_dist$11, i as Root2$1, l as Portal$1, o as init_dist$9, r as Content, t as Anchor, u as init_dist$10 } from "./dist-CMhZUM1S.js";
15import { a as init_dist$12, c as init_dist$13, i as init_Combination, n as init_es2015, o as useFocusGuards, r as ReactRemoveScroll, s as FocusScope, t as hideOthers } from "./es2015-Cyuq-zQi.js";
16//#region node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+reac_bdb8fe50570f35efe0254f5915b263fd/node_modules/@radix-ui/react-popover/dist/index.mjs
17function getState(open) {
18	return open ? "open" : "closed";
19}
20var import_react, import_jsx_runtime, __defProp, __name, POPOVER_NAME, createPopoverContext, createPopoverScope, usePopperScope, PopoverProvider, usePopoverContext, Popover, TRIGGER_NAME, PopoverTrigger, PORTAL_NAME, PortalProvider, usePortalContext, PopoverPortal, CONTENT_NAME, PopoverContent, Slot, PopoverContentModal, PopoverContentNonModal, PopoverContentImpl, Root2, Trigger, Portal, Content2;
21function init_dist() {
22	return (init_dist = __esmMin((() => {
23		import_react = /* @__PURE__ */ __toESM(require_react(), 1);
24		init_dist$7();
25		init_dist$1();
26		init_dist$3();
27		init_dist$11();
28		init_dist$12();
29		init_dist$13();
30		init_dist$5();
31		init_dist$9();
32		init_dist$10();
33		init_dist$8();
34		init_dist$6();
35		init_dist$2();
36		init_dist$4();
37		init_es2015();
38		init_Combination();
39		import_jsx_runtime = require_jsx_runtime();
40		__defProp = Object.defineProperty;
41		__name = (target, value) => __defProp(target, "name", {
42			value,
43			configurable: true
44		});
45		POPOVER_NAME = "Popover";
46		[createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [createPopperScope]);
47		usePopperScope = createPopperScope();
48		[PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
49		Popover = /* @__PURE__ */ __name((props) => {
50			const { __scopePopover, children, open: openProp, defaultOpen, onOpenChange, modal = false } = props;
51			const popperScope = usePopperScope(__scopePopover);
52			const triggerRef = import_react.useRef(null);
53			const [hasCustomAnchor, setHasCustomAnchor] = import_react.useState(false);
54			const [open, setOpen] = useControllableState({
55				prop: openProp,
56				defaultProp: defaultOpen ?? false,
57				onChange: onOpenChange,
58				caller: POPOVER_NAME
59			});
60			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
61				...popperScope,
62				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverProvider, {
63					scope: __scopePopover,
64					contentId: useId(),
65					triggerRef,
66					open,
67					onOpenChange: setOpen,
68					onOpenToggle: import_react.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
69					hasCustomAnchor,
70					onCustomAnchorAdd: import_react.useCallback(() => setHasCustomAnchor(true), []),
71					onCustomAnchorRemove: import_react.useCallback(() => setHasCustomAnchor(false), []),
72					modal,
73					children
74				})
75			});
76		}, "Popover");
77		TRIGGER_NAME = "PopoverTrigger";
78		PopoverTrigger = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopoverTrigger2(props, forwardedRef) {
79			const { __scopePopover, ...triggerProps } = props;
80			const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
81			const popperScope = usePopperScope(__scopePopover);
82			const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
83			const trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
84				type: "button",
85				"aria-haspopup": "dialog",
86				"aria-expanded": context.open,
87				"aria-controls": context.open ? context.contentId : void 0,
88				"data-state": getState(context.open),
89				...triggerProps,
90				ref: composedTriggerRef,
91				onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
92			});
93			return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
94				asChild: true,
95				...popperScope,
96				children: trigger
97			});
98		}, "PopoverTrigger"));
99		PORTAL_NAME = "PopoverPortal";
100		[PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, { forceMount: void 0 });
101		PopoverPortal = /* @__PURE__ */ __name((props) => {
102			const { __scopePopover, forceMount, children, container } = props;
103			const context = usePopoverContext(PORTAL_NAME, __scopePopover);
104			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, {
105				scope: __scopePopover,
106				forceMount,
107				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
108					present: forceMount || context.open,
109					children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal$1, {
110						asChild: true,
111						container,
112						children
113					})
114				})
115			});
116		}, "PopoverPortal");
117		CONTENT_NAME = "PopoverContent";
118		PopoverContent = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopoverContent2(props, forwardedRef) {
119			const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
120			const { forceMount = portalContext.forceMount, ...contentProps } = props;
121			const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
122			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
123				present: forceMount || context.open,
124				children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentModal, {
125					...contentProps,
126					ref: forwardedRef
127				}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentNonModal, {
128					...contentProps,
129					ref: forwardedRef
130				})
131			});
132		}, "PopoverContent"));
133		Slot = createSlot("PopoverContent.RemoveScroll");
134		PopoverContentModal = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopoverContentModal2(props, forwardedRef) {
135			const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
136			const contentRef = import_react.useRef(null);
137			const composedRefs = useComposedRefs(forwardedRef, contentRef);
138			const isRightClickOutsideRef = import_react.useRef(false);
139			import_react.useEffect(() => {
140				const content = contentRef.current;
141				if (content) return hideOthers(content);
142			}, []);
143			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReactRemoveScroll, {
144				as: Slot,
145				allowPinchZoom: true,
146				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl, {
147					...props,
148					ref: composedRefs,
149					trapFocus: context.open,
150					disableOutsidePointerEvents: true,
151					onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
152						event.preventDefault();
153						if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
154					}),
155					onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
156						const originalEvent = event.detail.originalEvent;
157						const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
158						const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
159						isRightClickOutsideRef.current = isRightClick;
160					}, { checkForDefaultPrevented: false }),
161					onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => event.preventDefault(), { checkForDefaultPrevented: false })
162				})
163			});
164		}, "PopoverContentModal"));
165		PopoverContentNonModal = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopoverContentNonModal2(props, forwardedRef) {
166			const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
167			const hasInteractedOutsideRef = import_react.useRef(false);
168			const hasPointerDownOutsideRef = import_react.useRef(false);
169			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl, {
170				...props,
171				ref: forwardedRef,
172				trapFocus: false,
173				disableOutsidePointerEvents: false,
174				onCloseAutoFocus: (event) => {
175					props.onCloseAutoFocus?.(event);
176					if (!event.defaultPrevented) {
177						if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
178						event.preventDefault();
179					}
180					hasInteractedOutsideRef.current = false;
181					hasPointerDownOutsideRef.current = false;
182				},
183				onInteractOutside: (event) => {
184					props.onInteractOutside?.(event);
185					if (!event.defaultPrevented) {
186						hasInteractedOutsideRef.current = true;
187						if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
188					}
189					const target = event.target;
190					if (context.triggerRef.current?.contains(target)) event.preventDefault();
191					if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
192				}
193			});
194		}, "PopoverContentNonModal"));
195		PopoverContentImpl = /* @__PURE__ */ import_react.forwardRef(/* @__PURE__ */ __name(function PopoverContentImpl2(props, forwardedRef) {
196			const { __scopePopover, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, ...contentProps } = props;
197			const context = usePopoverContext(CONTENT_NAME, __scopePopover);
198			const popperScope = usePopperScope(__scopePopover);
199			useFocusGuards();
200			return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
201				asChild: true,
202				loop: true,
203				trapped: trapFocus,
204				onMountAutoFocus: onOpenAutoFocus,
205				onUnmountAutoFocus: onCloseAutoFocus,
206				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
207					asChild: true,
208					disableOutsidePointerEvents,
209					onInteractOutside,
210					onEscapeKeyDown,
211					onPointerDownOutside,
212					onFocusOutside,
213					onDismiss: () => context.onOpenChange(false),
214					deferPointerDownOutside: true,
215					children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content, {
216						"data-state": getState(context.open),
217						role: "dialog",
218						id: context.contentId,
219						...popperScope,
220						...contentProps,
221						ref: forwardedRef,
222						style: {
223							...contentProps.style,
224							"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
225							"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
226							"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
227							"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
228							"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
229						}
230					})
231				})
232			});
233		}, "PopoverContentImpl"));
234		__name(getState, "getState");
235		Root2 = Popover;
236		Trigger = PopoverTrigger;
237		Portal = PopoverPortal;
238		Content2 = PopoverContent;
239	})))();
240}
241//#endregion
242export { init_dist as a, Trigger as i, Portal as n, Root2 as r, Content2 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.