@povio/ui 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/{Breadcrumbs-BibAIBhY.js → Breadcrumbs-C-mZtdCc.js} +1 -1
- package/dist/{Calendar-kSEji28A.js → Calendar-BYcN64W5.js} +6 -136
- package/dist/{DatePicker-BbdtBAGN.js → DatePicker-DGlMtlvy.js} +12 -12
- package/dist/{DatePickerInput-eyHwzKPm.js → DatePickerInput-Nj_rVUyU.js} +8 -7
- package/dist/{DateRangePicker-Ct182qur.js → DateRangePicker-CE9XvAy9.js} +13 -185
- package/dist/{DateTimePicker-taYHMMYi.js → DateTimePicker-CtUPjVp1.js} +12 -12
- package/dist/{FileInput-B-ADr0B3.js → FileInput-BUs7wL0_.js} +1 -1
- package/dist/{FileUpload-3-4Vt4f1.js → FileUpload-C3HzeFeb.js} +1 -1
- package/dist/{FormField-CAcDJ4HC.js → FormField-DTO2cbXC.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-C2IDI4ac.js → FormFieldHeaderTooltip-h6e5hq9V.js} +1 -1
- package/dist/{InlineTooltipWrapper-7HG-g2X3.js → InlineTooltipWrapper-Ct6zi24f.js} +1 -1
- package/dist/{InputItem-B3PlrjuD.js → InputItem-DAunP0iy.js} +9 -9
- package/dist/{Inputs-WZmrBWrL.js → Inputs-_IqA6JRE.js} +1 -1
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-X8G1zfNM.js → NumberRangeInput-Bu-3Y0zf.js} +6 -5
- package/dist/{RadioGroup-DW_OQQDu.js → RadioGroup-DiF7ILto.js} +1 -1
- package/dist/{RichTextEditor-BOTitK7E.js → RichTextEditor-eM9d2umr.js} +2 -2
- package/dist/{Select-DmLkOMr1.js → Select-CyBtGHk9.js} +2 -2
- package/dist/{Slider-Q87Hg_V2.js → Slider-KkWtEm09.js} +1 -1
- package/dist/{TextArea-DZv6XaT0.js → TextArea-DvqDGp4M.js} +2 -2
- package/dist/{TimePicker-DAoHgk8U.js → TimePicker-WirUMDrH.js} +10 -9
- package/dist/{ToggleGroup-Cho_oRZh.js → ToggleGroup-BK6Ka7WA.js} +5 -66
- package/dist/{Tooltip-D94a1IQl.js → Tooltip--PSxkQA3.js} +2 -2
- package/dist/{TooltipWrapper-S2JC-w4e.js → TooltipWrapper-BVc_Aln-.js} +1 -1
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/input.js +4 -4
- package/dist/components/number-field.js +7 -6
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{datePickerValue.utils-GADbSu7a.js → datePickerValue.utils-1z4mwZZs.js} +5 -5
- package/dist/hooks/use-filters.js +1 -1
- package/dist/index.js +15 -15
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.js +15 -15
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/staticDateTimeSegments-vP2f1woD.js +1763 -0
- package/dist/{staticSelect.utils-ad60elvT.js → staticSelect.utils-DOt6f-ck.js} +4 -143
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.js +24 -24
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-CtTdRX2u.js → useFieldAccessibility-BTs_WC_5.js} +2 -2
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-DqP6lB4l.js → useFormAutosave-BRlM0nmq.js} +1 -1
- package/dist/{useStaticInputHandoff-BAaDW_0z.js → useStaticInputHandoff-_stbpoX4.js} +2 -2
- package/dist/{useTableColumnConfig-DVI_jVHz.js → useTableColumnConfig-CiAr7Dbi.js} +1 -1
- package/package.json +1 -1
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-BQoA94W-.js +0 -3603
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
import { n as $caaf0dd3060ed57c$export$95185d699e05d4d7, r as $1969ac565cfec8d0$export$de79e2c695e052f3 } from "./openLink-CQhMhfzO.js";
|
|
2
|
-
import { c as $d447af545b77c9f1$export$f21a1ffae260145a, i as $23f2114a1b82827e$export$e58f029f0fbfdb29, n as $23f2114a1b82827e$export$4282f70798064fe0, o as $d447af545b77c9f1$export$af51f0f06c0f328a, r as $23f2114a1b82827e$export$cd4e5573fbe2b576, s as $d447af545b77c9f1$export$b204af158042fbac, t as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./useLayoutEffect-B2-1tbPJ.js";
|
|
3
|
-
import { a as $2add3ce32c6007eb$export$a11b0059900ceec8, i as $2add3ce32c6007eb$export$9ac100e40613ea10 } from "./platform-BXNIIAfU.js";
|
|
4
|
-
import $ahdqC$react, { useCallback, useContext, useRef, useState } from "react";
|
|
5
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/isElementVisible.mjs
|
|
6
|
-
const $ae77152785188400$var$supportsCheckVisibility = typeof Element !== "undefined" && "checkVisibility" in Element.prototype;
|
|
7
|
-
function $ae77152785188400$var$isStyleVisible(element) {
|
|
8
|
-
const windowObject = $d447af545b77c9f1$export$f21a1ffae260145a(element);
|
|
9
|
-
if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
|
|
10
|
-
let { display, visibility } = element.style;
|
|
11
|
-
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
12
|
-
if (isVisible) {
|
|
13
|
-
const { getComputedStyle } = $d447af545b77c9f1$export$f21a1ffae260145a(element);
|
|
14
|
-
let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
|
|
15
|
-
isVisible = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
|
|
16
|
-
}
|
|
17
|
-
return isVisible;
|
|
18
|
-
}
|
|
19
|
-
function $ae77152785188400$var$isAttributeVisible(element, childElement) {
|
|
20
|
-
return !element.hasAttribute("hidden") && !element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
|
|
21
|
-
}
|
|
22
|
-
function $ae77152785188400$export$e989c0fffaa6b27a(element, childElement) {
|
|
23
|
-
if ($ae77152785188400$var$supportsCheckVisibility) return element.checkVisibility({ visibilityProperty: true }) && !element.closest("[data-react-aria-prevent-focus]");
|
|
24
|
-
return element.nodeName !== "#comment" && $ae77152785188400$var$isStyleVisible(element) && $ae77152785188400$var$isAttributeVisible(element, childElement) && (!element.parentElement || $ae77152785188400$export$e989c0fffaa6b27a(element.parentElement, element));
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/isFocusable.mjs
|
|
28
|
-
const $3b8b240c1bf84ab9$var$focusableElements = [
|
|
29
|
-
"input:not([disabled]):not([type=hidden])",
|
|
30
|
-
"select:not([disabled])",
|
|
31
|
-
"textarea:not([disabled])",
|
|
32
|
-
"button:not([disabled])",
|
|
33
|
-
"a[href]",
|
|
34
|
-
"area[href]",
|
|
35
|
-
"summary",
|
|
36
|
-
"iframe",
|
|
37
|
-
"object",
|
|
38
|
-
"embed",
|
|
39
|
-
"audio[controls]",
|
|
40
|
-
"video[controls]",
|
|
41
|
-
"[contenteditable]:not([contenteditable^=\"false\"])",
|
|
42
|
-
"permission"
|
|
43
|
-
];
|
|
44
|
-
const $3b8b240c1bf84ab9$var$FOCUSABLE_ELEMENT_SELECTOR = $3b8b240c1bf84ab9$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
45
|
-
$3b8b240c1bf84ab9$var$focusableElements.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
|
|
46
|
-
const $3b8b240c1bf84ab9$var$TABBABLE_ELEMENT_SELECTOR = $3b8b240c1bf84ab9$var$focusableElements.join(":not([hidden]):not([tabindex=\"-1\"]),");
|
|
47
|
-
function $3b8b240c1bf84ab9$export$4c063cf1350e6fed(element, options) {
|
|
48
|
-
return element.matches($3b8b240c1bf84ab9$var$FOCUSABLE_ELEMENT_SELECTOR) && !$3b8b240c1bf84ab9$var$isInert(element) && (options?.skipVisibilityCheck || $ae77152785188400$export$e989c0fffaa6b27a(element));
|
|
49
|
-
}
|
|
50
|
-
function $3b8b240c1bf84ab9$export$bebd5a1431fec25d(element) {
|
|
51
|
-
return element.matches($3b8b240c1bf84ab9$var$TABBABLE_ELEMENT_SELECTOR) && $ae77152785188400$export$e989c0fffaa6b27a(element) && !$3b8b240c1bf84ab9$var$isInert(element);
|
|
52
|
-
}
|
|
53
|
-
function $3b8b240c1bf84ab9$var$isInert(element) {
|
|
54
|
-
let node = element;
|
|
55
|
-
while (node != null) {
|
|
56
|
-
if (node instanceof $d447af545b77c9f1$export$f21a1ffae260145a(node).HTMLElement && node.inert) return true;
|
|
57
|
-
node = node.parentElement;
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/interactions/utils.mjs
|
|
63
|
-
function $a92dc41f639950be$export$525bc4921d56d4a(nativeEvent) {
|
|
64
|
-
let event = nativeEvent;
|
|
65
|
-
event.nativeEvent = nativeEvent;
|
|
66
|
-
event.isDefaultPrevented = () => event.defaultPrevented;
|
|
67
|
-
event.isPropagationStopped = () => event.cancelBubble;
|
|
68
|
-
event.persist = () => {};
|
|
69
|
-
return event;
|
|
70
|
-
}
|
|
71
|
-
function $a92dc41f639950be$export$c2b7abe5d61ec696(event, target) {
|
|
72
|
-
Object.defineProperty(event, "target", { value: target });
|
|
73
|
-
Object.defineProperty(event, "currentTarget", { value: target });
|
|
74
|
-
}
|
|
75
|
-
function $a92dc41f639950be$export$715c682d09d639cc(onBlur) {
|
|
76
|
-
let stateRef = useRef({
|
|
77
|
-
isFocused: false,
|
|
78
|
-
observer: null
|
|
79
|
-
});
|
|
80
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
81
|
-
const state = stateRef.current;
|
|
82
|
-
return () => {
|
|
83
|
-
if (state.observer) {
|
|
84
|
-
state.observer.disconnect();
|
|
85
|
-
state.observer = null;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}, []);
|
|
89
|
-
return useCallback((e) => {
|
|
90
|
-
let eventTarget = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
91
|
-
if (eventTarget instanceof HTMLButtonElement || eventTarget instanceof HTMLInputElement || eventTarget instanceof HTMLTextAreaElement || eventTarget instanceof HTMLSelectElement) {
|
|
92
|
-
stateRef.current.isFocused = true;
|
|
93
|
-
let target = eventTarget;
|
|
94
|
-
let onBlurHandler = (e) => {
|
|
95
|
-
stateRef.current.isFocused = false;
|
|
96
|
-
if (target.disabled) {
|
|
97
|
-
let event = $a92dc41f639950be$export$525bc4921d56d4a(e);
|
|
98
|
-
onBlur?.(event);
|
|
99
|
-
}
|
|
100
|
-
if (stateRef.current.observer) {
|
|
101
|
-
stateRef.current.observer.disconnect();
|
|
102
|
-
stateRef.current.observer = null;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
target.addEventListener("focusout", onBlurHandler, { once: true });
|
|
106
|
-
stateRef.current.observer = new MutationObserver(() => {
|
|
107
|
-
if (stateRef.current.isFocused && target.disabled) {
|
|
108
|
-
stateRef.current.observer?.disconnect();
|
|
109
|
-
let relatedTargetEl = target === $23f2114a1b82827e$export$cd4e5573fbe2b576() ? null : $23f2114a1b82827e$export$cd4e5573fbe2b576();
|
|
110
|
-
target.dispatchEvent(new FocusEvent("blur", { relatedTarget: relatedTargetEl }));
|
|
111
|
-
target.dispatchEvent(new FocusEvent("focusout", {
|
|
112
|
-
bubbles: true,
|
|
113
|
-
relatedTarget: relatedTargetEl
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
stateRef.current.observer.observe(target, {
|
|
118
|
-
attributes: true,
|
|
119
|
-
attributeFilter: ["disabled"]
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}, [onBlur]);
|
|
123
|
-
}
|
|
124
|
-
let $a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
125
|
-
function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
126
|
-
while (target && !$3b8b240c1bf84ab9$export$4c063cf1350e6fed(target, { skipVisibilityCheck: true })) target = target.parentElement;
|
|
127
|
-
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
128
|
-
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(ownerWindow.document);
|
|
129
|
-
if (!activeElement || activeElement === target) return;
|
|
130
|
-
let targetRoot = target?.getRootNode();
|
|
131
|
-
let root = targetRoot != null && $d447af545b77c9f1$export$af51f0f06c0f328a(targetRoot) ? targetRoot : $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
132
|
-
let isFocusMovingToTarget = (focusTarget) => focusTarget === target || focusTarget != null && $23f2114a1b82827e$export$4282f70798064fe0(target, focusTarget);
|
|
133
|
-
let isBlurFromActiveElement = (eventTarget) => eventTarget === activeElement || activeElement != null && eventTarget != null && $23f2114a1b82827e$export$4282f70798064fe0(activeElement, eventTarget);
|
|
134
|
-
$a92dc41f639950be$export$fda7da73ab5d4c48 = true;
|
|
135
|
-
let isRefocusing = false;
|
|
136
|
-
let onBlur = (e) => {
|
|
137
|
-
if (isBlurFromActiveElement($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) e.stopImmediatePropagation();
|
|
138
|
-
};
|
|
139
|
-
let onFocusOut = (e) => {
|
|
140
|
-
if (isBlurFromActiveElement($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) {
|
|
141
|
-
e.stopImmediatePropagation();
|
|
142
|
-
if (!target && !isRefocusing) {
|
|
143
|
-
isRefocusing = true;
|
|
144
|
-
$1969ac565cfec8d0$export$de79e2c695e052f3(activeElement);
|
|
145
|
-
cleanup();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
let onFocus = (e) => {
|
|
150
|
-
if (isFocusMovingToTarget($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) e.stopImmediatePropagation();
|
|
151
|
-
};
|
|
152
|
-
let onFocusIn = (e) => {
|
|
153
|
-
if (isFocusMovingToTarget($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) {
|
|
154
|
-
e.stopImmediatePropagation();
|
|
155
|
-
if (!isRefocusing) {
|
|
156
|
-
isRefocusing = true;
|
|
157
|
-
$1969ac565cfec8d0$export$de79e2c695e052f3(activeElement);
|
|
158
|
-
cleanup();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
root.addEventListener("blur", onBlur, true);
|
|
163
|
-
root.addEventListener("focusout", onFocusOut, true);
|
|
164
|
-
root.addEventListener("focusin", onFocusIn, true);
|
|
165
|
-
root.addEventListener("focus", onFocus, true);
|
|
166
|
-
let cleanup = () => {
|
|
167
|
-
cancelAnimationFrame(raf);
|
|
168
|
-
root.removeEventListener("blur", onBlur, true);
|
|
169
|
-
root.removeEventListener("focusout", onFocusOut, true);
|
|
170
|
-
root.removeEventListener("focusin", onFocusIn, true);
|
|
171
|
-
root.removeEventListener("focus", onFocus, true);
|
|
172
|
-
$a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
173
|
-
isRefocusing = false;
|
|
174
|
-
};
|
|
175
|
-
let raf = requestAnimationFrame(cleanup);
|
|
176
|
-
return cleanup;
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
|
|
180
|
-
function $b5c62b033c25b96d$export$60278871457622de(event) {
|
|
181
|
-
if (event.pointerType === "" && event.isTrusted) return true;
|
|
182
|
-
if ($2add3ce32c6007eb$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
183
|
-
return event.detail === 0 && !event.pointerType;
|
|
184
|
-
}
|
|
185
|
-
function $b5c62b033c25b96d$export$29bf1b5f2c56cf63(event) {
|
|
186
|
-
return !$2add3ce32c6007eb$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || $2add3ce32c6007eb$export$a11b0059900ceec8() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
|
|
190
|
-
const $c7eafbbe1ea5834e$var$defaultContext = {
|
|
191
|
-
prefix: String(Math.round(Math.random() * 1e10)),
|
|
192
|
-
current: 0
|
|
193
|
-
};
|
|
194
|
-
const $c7eafbbe1ea5834e$var$SSRContext = /*#__PURE__*/ $ahdqC$react.createContext($c7eafbbe1ea5834e$var$defaultContext);
|
|
195
|
-
const $c7eafbbe1ea5834e$var$IsSSRContext = /*#__PURE__*/ $ahdqC$react.createContext(false);
|
|
196
|
-
let $c7eafbbe1ea5834e$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
197
|
-
let $c7eafbbe1ea5834e$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
198
|
-
function $c7eafbbe1ea5834e$var$useCounter(isDisabled = false) {
|
|
199
|
-
let ctx = useContext($c7eafbbe1ea5834e$var$SSRContext);
|
|
200
|
-
let ref = useRef(null);
|
|
201
|
-
if (ref.current === null && !isDisabled) {
|
|
202
|
-
let currentOwner = $ahdqC$react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
203
|
-
if (currentOwner) {
|
|
204
|
-
let prevComponentValue = $c7eafbbe1ea5834e$var$componentIds.get(currentOwner);
|
|
205
|
-
if (prevComponentValue == null) $c7eafbbe1ea5834e$var$componentIds.set(currentOwner, {
|
|
206
|
-
id: ctx.current,
|
|
207
|
-
state: currentOwner.memoizedState
|
|
208
|
-
});
|
|
209
|
-
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
210
|
-
ctx.current = prevComponentValue.id;
|
|
211
|
-
$c7eafbbe1ea5834e$var$componentIds.delete(currentOwner);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
ref.current = ++ctx.current;
|
|
215
|
-
}
|
|
216
|
-
return ref.current;
|
|
217
|
-
}
|
|
218
|
-
function $c7eafbbe1ea5834e$var$useLegacySSRSafeId(defaultId) {
|
|
219
|
-
let ctx = useContext($c7eafbbe1ea5834e$var$SSRContext);
|
|
220
|
-
if (ctx === $c7eafbbe1ea5834e$var$defaultContext && !$c7eafbbe1ea5834e$var$canUseDOM && true) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
221
|
-
let counter = $c7eafbbe1ea5834e$var$useCounter(!!defaultId);
|
|
222
|
-
let prefix = `react-aria${ctx.prefix}`;
|
|
223
|
-
return defaultId || `${prefix}-${counter}`;
|
|
224
|
-
}
|
|
225
|
-
function $c7eafbbe1ea5834e$var$useModernSSRSafeId(defaultId) {
|
|
226
|
-
let id = $ahdqC$react.useId();
|
|
227
|
-
let [didSSR] = useState($c7eafbbe1ea5834e$export$535bd6ca7f90a273());
|
|
228
|
-
let prefix = didSSR || false ? "react-aria" : `react-aria${$c7eafbbe1ea5834e$var$defaultContext.prefix}`;
|
|
229
|
-
return defaultId || `${prefix}-${id}`;
|
|
230
|
-
}
|
|
231
|
-
const $c7eafbbe1ea5834e$export$619500959fc48b26 = typeof $ahdqC$react["useId"] === "function" ? $c7eafbbe1ea5834e$var$useModernSSRSafeId : $c7eafbbe1ea5834e$var$useLegacySSRSafeId;
|
|
232
|
-
function $c7eafbbe1ea5834e$var$getSnapshot() {
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
235
|
-
function $c7eafbbe1ea5834e$var$getServerSnapshot() {
|
|
236
|
-
return true;
|
|
237
|
-
}
|
|
238
|
-
function $c7eafbbe1ea5834e$var$subscribe(onStoreChange) {
|
|
239
|
-
return () => {};
|
|
240
|
-
}
|
|
241
|
-
function $c7eafbbe1ea5834e$export$535bd6ca7f90a273() {
|
|
242
|
-
if (typeof $ahdqC$react["useSyncExternalStore"] === "function") return $ahdqC$react["useSyncExternalStore"]($c7eafbbe1ea5834e$var$subscribe, $c7eafbbe1ea5834e$var$getSnapshot, $c7eafbbe1ea5834e$var$getServerSnapshot);
|
|
243
|
-
return useContext($c7eafbbe1ea5834e$var$IsSSRContext);
|
|
244
|
-
}
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
|
|
247
|
-
let $8f5a2122b0992be3$var$currentModality = null;
|
|
248
|
-
const $8f5a2122b0992be3$export$901e90a13c50a14e = /* @__PURE__ */ new Set();
|
|
249
|
-
let $8f5a2122b0992be3$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
250
|
-
let $8f5a2122b0992be3$var$hasEventBeforeFocus = false;
|
|
251
|
-
let $8f5a2122b0992be3$var$hasBlurredWindowRecently = false;
|
|
252
|
-
function $8f5a2122b0992be3$var$triggerChangeHandlers(modality, e) {
|
|
253
|
-
for (let handler of $8f5a2122b0992be3$export$901e90a13c50a14e) handler(modality, e);
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus
|
|
257
|
-
* styles visible.
|
|
258
|
-
*/ function $8f5a2122b0992be3$var$isValidKey(e) {
|
|
259
|
-
return !(e.metaKey || !$2add3ce32c6007eb$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
260
|
-
}
|
|
261
|
-
function $8f5a2122b0992be3$var$handleKeyboardEvent(e) {
|
|
262
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = true;
|
|
263
|
-
if (!$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening && $8f5a2122b0992be3$var$isValidKey(e)) {
|
|
264
|
-
$8f5a2122b0992be3$var$currentModality = "keyboard";
|
|
265
|
-
$8f5a2122b0992be3$var$triggerChangeHandlers("keyboard", e);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function $8f5a2122b0992be3$var$handlePointerEvent(e) {
|
|
269
|
-
$8f5a2122b0992be3$var$currentModality = "pointer";
|
|
270
|
-
"pointerType" in e && e.pointerType;
|
|
271
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
272
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = true;
|
|
273
|
-
$8f5a2122b0992be3$var$triggerChangeHandlers("pointer", e);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
function $8f5a2122b0992be3$var$handleClickEvent(e) {
|
|
277
|
-
if (!$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening && $b5c62b033c25b96d$export$60278871457622de(e)) {
|
|
278
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = true;
|
|
279
|
-
$8f5a2122b0992be3$var$currentModality = "virtual";
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
function $8f5a2122b0992be3$var$handleFocusEvent(e) {
|
|
283
|
-
if ($a92dc41f639950be$export$fda7da73ab5d4c48) return;
|
|
284
|
-
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
285
|
-
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
286
|
-
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(target);
|
|
287
|
-
if (target === ownerWindow) {
|
|
288
|
-
$8f5a2122b0992be3$var$hasBlurredWindowRecently = true;
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
if (target === ownerDocument || !e.isTrusted) return;
|
|
292
|
-
if (!$8f5a2122b0992be3$var$hasEventBeforeFocus && !$8f5a2122b0992be3$var$hasBlurredWindowRecently) {
|
|
293
|
-
$8f5a2122b0992be3$var$currentModality = "virtual";
|
|
294
|
-
$8f5a2122b0992be3$var$triggerChangeHandlers("virtual", e);
|
|
295
|
-
}
|
|
296
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = false;
|
|
297
|
-
$8f5a2122b0992be3$var$hasBlurredWindowRecently = false;
|
|
298
|
-
}
|
|
299
|
-
function $8f5a2122b0992be3$var$handleWindowBlur() {
|
|
300
|
-
if ($a92dc41f639950be$export$fda7da73ab5d4c48) return;
|
|
301
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = false;
|
|
302
|
-
$8f5a2122b0992be3$var$hasBlurredWindowRecently = true;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Setup global event listeners to control when keyboard focus style should be visible.
|
|
306
|
-
*/ function $8f5a2122b0992be3$var$setupGlobalFocusEvents(element) {
|
|
307
|
-
if (typeof window === "undefined" || typeof document === "undefined") return;
|
|
308
|
-
const windowObject = $d447af545b77c9f1$export$f21a1ffae260145a(element);
|
|
309
|
-
const documentObject = $d447af545b77c9f1$export$b204af158042fbac(element);
|
|
310
|
-
if ($8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject)) return;
|
|
311
|
-
let focus = windowObject.HTMLElement.prototype.focus;
|
|
312
|
-
Reflect.defineProperty(windowObject.HTMLElement.prototype, "focus", {
|
|
313
|
-
configurable: true,
|
|
314
|
-
writable: true,
|
|
315
|
-
value: function() {
|
|
316
|
-
$8f5a2122b0992be3$var$hasEventBeforeFocus = true;
|
|
317
|
-
focus.apply(this, arguments);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
documentObject.addEventListener("keydown", $8f5a2122b0992be3$var$handleKeyboardEvent, true);
|
|
321
|
-
documentObject.addEventListener("keyup", $8f5a2122b0992be3$var$handleKeyboardEvent, true);
|
|
322
|
-
documentObject.addEventListener("click", $8f5a2122b0992be3$var$handleClickEvent, true);
|
|
323
|
-
windowObject.addEventListener("focus", $8f5a2122b0992be3$var$handleFocusEvent, true);
|
|
324
|
-
windowObject.addEventListener("blur", $8f5a2122b0992be3$var$handleWindowBlur, false);
|
|
325
|
-
if (typeof PointerEvent !== "undefined") {
|
|
326
|
-
documentObject.addEventListener("pointerdown", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
327
|
-
documentObject.addEventListener("pointermove", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
328
|
-
documentObject.addEventListener("pointerup", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
329
|
-
}
|
|
330
|
-
windowObject.addEventListener("beforeunload", () => {
|
|
331
|
-
$8f5a2122b0992be3$var$tearDownWindowFocusTracking(element);
|
|
332
|
-
}, { once: true });
|
|
333
|
-
$8f5a2122b0992be3$export$d90243b58daecda7.set(windowObject, { focus });
|
|
334
|
-
}
|
|
335
|
-
const $8f5a2122b0992be3$var$tearDownWindowFocusTracking = (element, loadListener) => {
|
|
336
|
-
const windowObject = $d447af545b77c9f1$export$f21a1ffae260145a(element);
|
|
337
|
-
const documentObject = $d447af545b77c9f1$export$b204af158042fbac(element);
|
|
338
|
-
if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
339
|
-
if (!$8f5a2122b0992be3$export$d90243b58daecda7.has(windowObject)) return;
|
|
340
|
-
Reflect.defineProperty(windowObject.HTMLElement.prototype, "focus", {
|
|
341
|
-
configurable: true,
|
|
342
|
-
writable: true,
|
|
343
|
-
value: $8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject).focus
|
|
344
|
-
});
|
|
345
|
-
documentObject.removeEventListener("keydown", $8f5a2122b0992be3$var$handleKeyboardEvent, true);
|
|
346
|
-
documentObject.removeEventListener("keyup", $8f5a2122b0992be3$var$handleKeyboardEvent, true);
|
|
347
|
-
documentObject.removeEventListener("click", $8f5a2122b0992be3$var$handleClickEvent, true);
|
|
348
|
-
windowObject.removeEventListener("focus", $8f5a2122b0992be3$var$handleFocusEvent, true);
|
|
349
|
-
windowObject.removeEventListener("blur", $8f5a2122b0992be3$var$handleWindowBlur, false);
|
|
350
|
-
if (typeof PointerEvent !== "undefined") {
|
|
351
|
-
documentObject.removeEventListener("pointerdown", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
352
|
-
documentObject.removeEventListener("pointermove", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
353
|
-
documentObject.removeEventListener("pointerup", $8f5a2122b0992be3$var$handlePointerEvent, true);
|
|
354
|
-
}
|
|
355
|
-
$8f5a2122b0992be3$export$d90243b58daecda7.delete(windowObject);
|
|
356
|
-
};
|
|
357
|
-
function $8f5a2122b0992be3$export$2f1888112f558a7d(element) {
|
|
358
|
-
const documentObject = $d447af545b77c9f1$export$b204af158042fbac(element);
|
|
359
|
-
let loadListener;
|
|
360
|
-
if (documentObject.readyState !== "loading") $8f5a2122b0992be3$var$setupGlobalFocusEvents(element);
|
|
361
|
-
else {
|
|
362
|
-
loadListener = () => {
|
|
363
|
-
$8f5a2122b0992be3$var$setupGlobalFocusEvents(element);
|
|
364
|
-
};
|
|
365
|
-
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
366
|
-
}
|
|
367
|
-
return () => $8f5a2122b0992be3$var$tearDownWindowFocusTracking(element, loadListener);
|
|
368
|
-
}
|
|
369
|
-
if (typeof document !== "undefined") $8f5a2122b0992be3$export$2f1888112f558a7d();
|
|
370
|
-
function $8f5a2122b0992be3$export$630ff653c5ada6a9() {
|
|
371
|
-
return $8f5a2122b0992be3$var$currentModality;
|
|
372
|
-
}
|
|
373
|
-
function $8f5a2122b0992be3$export$8397ddfc504fdb9a(modality) {
|
|
374
|
-
$8f5a2122b0992be3$var$currentModality = modality;
|
|
375
|
-
$8f5a2122b0992be3$var$triggerChangeHandlers(modality, null);
|
|
376
|
-
}
|
|
377
|
-
//#endregion
|
|
378
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
|
|
379
|
-
let $081cb5757e08788e$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
380
|
-
let $081cb5757e08788e$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
381
|
-
function $081cb5757e08788e$var$setupGlobalEvents() {
|
|
382
|
-
if (typeof window === "undefined") return;
|
|
383
|
-
function isTransitionEvent(event) {
|
|
384
|
-
return "propertyName" in event;
|
|
385
|
-
}
|
|
386
|
-
let onTransitionStart = (e) => {
|
|
387
|
-
let eventTarget = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
388
|
-
if (!isTransitionEvent(e) || !eventTarget) return;
|
|
389
|
-
let transitions = $081cb5757e08788e$var$transitionsByElement.get(eventTarget);
|
|
390
|
-
if (!transitions) {
|
|
391
|
-
transitions = /* @__PURE__ */ new Set();
|
|
392
|
-
$081cb5757e08788e$var$transitionsByElement.set(eventTarget, transitions);
|
|
393
|
-
eventTarget.addEventListener("transitioncancel", onTransitionEnd, { once: true });
|
|
394
|
-
}
|
|
395
|
-
transitions.add(e.propertyName);
|
|
396
|
-
};
|
|
397
|
-
let onTransitionEnd = (e) => {
|
|
398
|
-
let eventTarget = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
399
|
-
if (!isTransitionEvent(e) || !eventTarget) return;
|
|
400
|
-
let properties = $081cb5757e08788e$var$transitionsByElement.get(eventTarget);
|
|
401
|
-
if (!properties) return;
|
|
402
|
-
properties.delete(e.propertyName);
|
|
403
|
-
if (properties.size === 0) {
|
|
404
|
-
eventTarget.removeEventListener("transitioncancel", onTransitionEnd);
|
|
405
|
-
$081cb5757e08788e$var$transitionsByElement.delete(eventTarget);
|
|
406
|
-
}
|
|
407
|
-
if ($081cb5757e08788e$var$transitionsByElement.size === 0) {
|
|
408
|
-
for (let cb of $081cb5757e08788e$var$transitionCallbacks) cb();
|
|
409
|
-
$081cb5757e08788e$var$transitionCallbacks.clear();
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
413
|
-
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
414
|
-
}
|
|
415
|
-
if (typeof document !== "undefined") {
|
|
416
|
-
if (document.readyState !== "loading") $081cb5757e08788e$var$setupGlobalEvents();
|
|
417
|
-
else document.addEventListener("DOMContentLoaded", $081cb5757e08788e$var$setupGlobalEvents);
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Cleans up any elements that are no longer in the document.
|
|
421
|
-
* This is necessary because we can't rely on transitionend events to fire
|
|
422
|
-
* for elements that are removed from the document while transitioning.
|
|
423
|
-
*/ function $081cb5757e08788e$var$cleanupDetachedElements() {
|
|
424
|
-
for (const [eventTarget] of $081cb5757e08788e$var$transitionsByElement) if ("isConnected" in eventTarget && !eventTarget.isConnected) $081cb5757e08788e$var$transitionsByElement.delete(eventTarget);
|
|
425
|
-
}
|
|
426
|
-
function $081cb5757e08788e$export$24490316f764c430(fn) {
|
|
427
|
-
requestAnimationFrame(() => {
|
|
428
|
-
$081cb5757e08788e$var$cleanupDetachedElements();
|
|
429
|
-
if ($081cb5757e08788e$var$transitionsByElement.size === 0) fn();
|
|
430
|
-
else $081cb5757e08788e$var$transitionCallbacks.add(fn);
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
//#endregion
|
|
434
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/interactions/focusSafely.mjs
|
|
435
|
-
function $f192c2f16961cbe0$export$80f3e147d781571c(element) {
|
|
436
|
-
if (!element.isConnected) return;
|
|
437
|
-
const ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(element);
|
|
438
|
-
if ($8f5a2122b0992be3$export$630ff653c5ada6a9() === "virtual") {
|
|
439
|
-
let lastFocusedElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(ownerDocument);
|
|
440
|
-
$081cb5757e08788e$export$24490316f764c430(() => {
|
|
441
|
-
const activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(ownerDocument);
|
|
442
|
-
if ((activeElement === lastFocusedElement || activeElement === ownerDocument.body) && element.isConnected) $1969ac565cfec8d0$export$de79e2c695e052f3(element);
|
|
443
|
-
});
|
|
444
|
-
} else $1969ac565cfec8d0$export$de79e2c695e052f3(element);
|
|
445
|
-
}
|
|
446
|
-
//#endregion
|
|
447
|
-
export { $c7eafbbe1ea5834e$export$619500959fc48b26 as a, $a92dc41f639950be$export$525bc4921d56d4a as c, $a92dc41f639950be$export$cabe61c495ee3649 as d, $3b8b240c1bf84ab9$export$4c063cf1350e6fed as f, $c7eafbbe1ea5834e$export$535bd6ca7f90a273 as i, $a92dc41f639950be$export$715c682d09d639cc as l, $081cb5757e08788e$export$24490316f764c430 as n, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as o, $3b8b240c1bf84ab9$export$bebd5a1431fec25d as p, $8f5a2122b0992be3$export$8397ddfc504fdb9a as r, $b5c62b033c25b96d$export$60278871457622de as s, $f192c2f16961cbe0$export$80f3e147d781571c as t, $a92dc41f639950be$export$c2b7abe5d61ec696 as u };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { c as $d447af545b77c9f1$export$f21a1ffae260145a, s as $d447af545b77c9f1$export$b204af158042fbac } from "./useLayoutEffect-B2-1tbPJ.js";
|
|
2
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/getMetaValue.mjs
|
|
3
|
-
function $7096878c21af5e66$export$a929f3f93e2cc67e(key, doc) {
|
|
4
|
-
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(doc);
|
|
5
|
-
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(doc);
|
|
6
|
-
if (ownerDocument == null || ownerWindow == null) return;
|
|
7
|
-
let content = void 0;
|
|
8
|
-
let selector = `meta[name="${CSS.escape(key)}"], meta[property="${CSS.escape(key)}"]`;
|
|
9
|
-
let meta = ownerDocument.querySelector(selector);
|
|
10
|
-
if (meta && meta instanceof ownerWindow.HTMLMetaElement) {
|
|
11
|
-
if (key === "csp-nonce" && meta.nonce) content ??= meta.nonce || void 0;
|
|
12
|
-
if (meta.content) content ??= meta.content || void 0;
|
|
13
|
-
}
|
|
14
|
-
if (key === "csp-nonce") content ??= ownerWindow.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0;
|
|
15
|
-
return content;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/getNonce.mjs
|
|
19
|
-
let $2b2d34ff061957fb$var$nonceCache = /* @__PURE__ */ new WeakMap();
|
|
20
|
-
function $2b2d34ff061957fb$export$2b85b721e524d74b(doc) {
|
|
21
|
-
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(doc);
|
|
22
|
-
let nonce = $2b2d34ff061957fb$var$nonceCache.get(ownerDocument);
|
|
23
|
-
nonce ??= $7096878c21af5e66$export$a929f3f93e2cc67e("csp-nonce", ownerDocument);
|
|
24
|
-
if (nonce !== void 0) $2b2d34ff061957fb$var$nonceCache.set(ownerDocument, nonce);
|
|
25
|
-
return nonce;
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/isScrollable.mjs
|
|
29
|
-
function $901761b40e390936$export$2bb74740c4e19def(node, checkForOverflow) {
|
|
30
|
-
if (!node) return false;
|
|
31
|
-
let style = window.getComputedStyle(node);
|
|
32
|
-
let root = document.scrollingElement || document.documentElement;
|
|
33
|
-
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
34
|
-
if (node === root && style.overflow !== "hidden") isScrollable = true;
|
|
35
|
-
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
|
36
|
-
return isScrollable;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/getScrollParent.mjs
|
|
40
|
-
function $3578607fe3d4b096$export$cfa2225e87938781(node, checkForOverflow) {
|
|
41
|
-
let scrollableNode = node;
|
|
42
|
-
if ($901761b40e390936$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
43
|
-
while (scrollableNode && !$901761b40e390936$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
44
|
-
return scrollableNode || document.scrollingElement || document.documentElement;
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { $901761b40e390936$export$2bb74740c4e19def as n, $2b2d34ff061957fb$export$2b85b721e524d74b as r, $3578607fe3d4b096$export$cfa2225e87938781 as t };
|