@nxgt/material 2.13.0 → 2.15.0
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/CHANGELOG.md +89 -0
- package/README.md +18 -5
- package/dist/{blockDiagram-BEXU5L5S-CQaNV8rX.js → blockDiagram-BEXU5L5S-BozTHxCb.js} +1 -1
- package/dist/{chunk-3FUC2YCW-DmtO_Y9L.js → chunk-3FUC2YCW-zWkkqKwC.js} +1 -1
- package/dist/{chunk-7M6MHVWA-BQ0cJz5u.js → chunk-7M6MHVWA-CGHIsno5.js} +1 -1
- package/dist/{chunk-GNY47TPC-DiVMvIit.js → chunk-GNY47TPC-BWB3R7nr.js} +4 -4
- package/dist/{chunk-NETBCI7D-B5Av2fJk.js → chunk-NETBCI7D-DwmNwFxb.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-D4uKosJW.js → chunk-Z7XXMR3K-0DGn7Rxi.js} +1 -1
- package/dist/{classDiagram-v2-NBCMYWYE-BYktffst.js → classDiagram-v2-NBCMYWYE-BERam5ND.js} +2 -2
- package/dist/components/components.css +13 -2
- package/dist/components/ui/feedback/spinner/spinner.css +28 -0
- package/dist/components/ui/fields/otp-field/input-otp.css +48 -0
- package/dist/components/ui/media/pdf-viewer/pdf-viewer.css +24 -0
- package/dist/components/ui/overlays/drawer/vaul-drawer.css +199 -0
- package/dist/components/ui/overlays/drawer/vaul-keyframes.css +95 -0
- package/dist/{components-C-y3kTRm.js → components-B-xPQ6XX.js} +118106 -129100
- package/dist/components.js +6 -6
- package/dist/{dagre-6A5THRUB-BvQAvoOX.js → dagre-6A5THRUB-CnIZQoNt.js} +3 -3
- package/dist/{diagram-22UHCM2B-BYd0lEdS.js → diagram-22UHCM2B-DN4-okl5.js} +2 -2
- package/dist/{diagram-3UASUU5V-B3ndNq2p.js → diagram-3UASUU5V-DcrNf7TY.js} +1 -1
- package/dist/{elk-276RUBZZ-BxXn1nvc.js → elk-276RUBZZ-B7yctkbs.js} +3 -3
- package/dist/{erDiagram-OPXOYQCR-DjYy4h_r.js → erDiagram-OPXOYQCR-BVrTNrkn.js} +2 -2
- package/dist/{field-blur-V8o79CDN.js → field-blur-DDfQkuSJ.js} +866 -871
- package/dist/{flowDiagram-KWPJA3E3-BD7xvcMh.js → flowDiagram-KWPJA3E3-BKxvqo0x.js} +3 -3
- package/dist/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/{ganttDiagram-FUAMR5RP-BAuk7X6i.js → ganttDiagram-FUAMR5RP-Cv9W4LOS.js} +1 -1
- package/dist/hooks.js +25 -25
- package/dist/{journeyDiagram-ZHPQQLJL-h2S56BMC.js → journeyDiagram-ZHPQQLJL-BwSv9L1j.js} +1 -1
- package/dist/lib/components/ui/dates/calendar/use-stable-component.d.ts +10 -0
- package/dist/lib/components/ui/dates/date-field/date-field-trigger.d.ts +1 -1
- package/dist/lib/components/ui/dates/date-range-field/date-range-field-trigger.d.ts +1 -1
- package/dist/lib/components/ui/dates/picker-trigger/use-trigger-locale.d.ts +10 -0
- package/dist/lib/components/ui/fields/attributes/attribute-form/consts.d.ts +5 -1
- package/dist/lib/components/ui/fields/attributes/attribute-form/types.d.ts +2 -2
- package/dist/lib/components/ui/fields/opening-hours/consts.d.ts +12 -1
- package/dist/lib/components/ui/media/image-cropper/image-crop-aspects.d.ts +6 -0
- package/dist/lib/components/ui/media/image-cropper/use-frame-size.d.ts +4 -0
- package/dist/lib/components/ui/primitives/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/nonce-provider/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/nonce-provider/nonce-provider.d.ts +20 -0
- package/dist/lib/components/ui/primitives/typography/typography.d.ts +7 -2
- package/dist/lib/components/ui/widgets/rich-text-editor/extensions/extensions.d.ts +2 -2
- package/dist/lib/components/ui/widgets/rich-text-editor/use-rich-text-editor.d.ts +17 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-csp-nonce.d.ts +16 -0
- package/dist/lib/lib/index.d.ts +1 -0
- package/dist/lib/vite/index.d.ts +3 -2
- package/dist/lib.js +30 -29
- package/dist/main.js +16 -16
- package/dist/map.js +1 -1
- package/dist/material.css +25 -1
- package/dist/{mermaid.core-BWF4Tq7X.js → mermaid.core-D_eXACPr.js} +21 -21
- package/dist/{mindmap-definition-NLK3R4M7-Q-4J7KMu.js → mindmap-definition-NLK3R4M7-GMAPXP2T.js} +2 -2
- package/dist/{pieDiagram-5QR66LMP-BIxQ164y.js → pieDiagram-5QR66LMP--qZHRFqG.js} +1 -1
- package/dist/{quadrantDiagram-O4NWA36T-BlI0otnv.js → quadrantDiagram-O4NWA36T-BxFGymBB.js} +1 -1
- package/dist/{requirementDiagram-PLB6GJNP-CuVPUh0S.js → requirementDiagram-PLB6GJNP-D4aL7HiM.js} +2 -2
- package/dist/{sankeyDiagram-IPEJSGJF-Cke5i_9w.js → sankeyDiagram-IPEJSGJF-zX1FL2aL.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-CT53U-pL.js → stateDiagram-v2-GCMORJYK-CDm1mDv2.js} +2 -2
- package/dist/{swimlanes-2SLR337P-BwEtm09G.js → swimlanes-2SLR337P-DNwIhCCu.js} +3 -3
- package/dist/{swimlanesDiagram-TC7HE7FX-36JXV6X2.js → swimlanesDiagram-TC7HE7FX-BaR9zAzq.js} +3 -3
- package/dist/{timeline-definition-EJHVYXUP-BeX-S1oM.js → timeline-definition-EJHVYXUP-B6Xd8Spe.js} +1 -1
- package/dist/{use-heading-spy--7KHY3lw.js → use-heading-spy-wlOv87q3.js} +63 -57
- package/dist/{usecaseDiagram-POWQR4AR-Dfd0rXLr.js → usecaseDiagram-POWQR4AR-XW5of8Kj.js} +2 -2
- package/dist/vite.js +2 -2
- package/dist/{xychartDiagram-PMCCYNJV-D0UPPflL.js → xychartDiagram-PMCCYNJV-DTV6AzhO.js} +1 -1
- package/docs/README.md +1 -0
- package/docs/components/data-display.md +5 -0
- package/docs/components/date-and-time.md +6 -0
- package/docs/components/feedback-and-status.md +3 -1
- package/docs/components/form-fields.md +14 -0
- package/docs/components/primitives.md +41 -2
- package/docs/getting-started.md +5 -1
- package/docs/guides/csp.md +408 -0
- package/docs/guides/helpers.md +2 -0
- package/docs/guides/i18n.md +2 -0
- package/docs/guides/theming.md +27 -0
- package/docs/roadmap.md +17 -1
- package/docs/troubleshooting.md +180 -0
- package/lib/components/components.css +13 -2
- package/lib/components/ui/feedback/spinner/spinner.css +28 -0
- package/lib/components/ui/fields/otp-field/input-otp.css +48 -0
- package/lib/components/ui/media/pdf-viewer/pdf-viewer.css +24 -0
- package/lib/components/ui/overlays/drawer/vaul-drawer.css +199 -0
- package/lib/components/ui/overlays/drawer/vaul-keyframes.css +95 -0
- package/package.json +4 -4
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
2
|
import { t } from "./utils-DC8bw9A_.js";
|
|
3
|
-
import { _t as n, a as r, at as i, ct as a, d as o, dt as s, et as c, g as l, h as u, ht as d, i as f, it as p, lt as m, m as h, mt as g, n as _, nt as v, o as y, ot as b, p as x, pt as S, r as C, rt as
|
|
4
|
-
import { t as
|
|
5
|
-
import { X as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
3
|
+
import { _t as n, a as r, at as i, ct as a, d as o, dt as s, et as c, g as l, h as u, ht as d, i as f, it as p, lt as m, m as h, mt as g, n as _, nt as v, o as y, ot as b, p as x, pt as S, r as C, rt as w, st as T, t as ee, tt as te } from "./icon-button-B1nN3J6B.js";
|
|
4
|
+
import { t as ne } from "./use-material-translation-BGFp1yXp.js";
|
|
5
|
+
import { X as re } from "lucide-react";
|
|
6
|
+
import { Fragment as ie, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
7
|
+
import * as O from "react";
|
|
8
|
+
import k, { Activity as ae, Children as A, Fragment as oe, cloneElement as se, createContext as ce, isValidElement as le, use as ue, useCallback as j, useContext as de, useEffect as fe, useId as pe, useLayoutEffect as me, useMemo as he, useRef as M, useState as ge } from "react";
|
|
9
|
+
import { getNonce as _e } from "@nxgt/material-core/csp-nonce";
|
|
9
10
|
import { inertOthers as ve } from "@nxgt/material-core/inert-others";
|
|
10
11
|
import { forwardEscape as ye } from "@nxgt/material-core/escape-forward";
|
|
11
12
|
import { describedBy as be } from "@nxgt/material-core/described-by";
|
|
12
13
|
import { layerOf as xe, openerOf as Se } from "@nxgt/material-core/field-blur-layers";
|
|
13
14
|
import { focusHandle as Ce } from "@nxgt/material-core/focus-control";
|
|
14
15
|
//#region ../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
15
|
-
var we = Object.defineProperty,
|
|
16
|
+
var we = Object.defineProperty, N = (e, t) => we(e, "name", {
|
|
16
17
|
value: t,
|
|
17
18
|
configurable: !0
|
|
18
19
|
}), Te = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount", De = {
|
|
19
20
|
bubbles: !1,
|
|
20
21
|
cancelable: !0
|
|
21
|
-
}, Oe = /* @__PURE__ */
|
|
22
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...c } = e, [l, u] =
|
|
22
|
+
}, Oe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
23
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...c } = e, [l, u] = O.useState(null), d = w(a), f = w(o), p = O.useRef(null), m = n(t, u), h = O.useRef({
|
|
23
24
|
paused: !1,
|
|
24
25
|
pause() {
|
|
25
26
|
this.paused = !0;
|
|
@@ -28,20 +29,20 @@ var we = Object.defineProperty, M = (e, t) => we(e, "name", {
|
|
|
28
29
|
this.paused = !1;
|
|
29
30
|
}
|
|
30
31
|
}).current;
|
|
31
|
-
|
|
32
|
+
O.useEffect(() => {
|
|
32
33
|
if (i) {
|
|
33
34
|
let e = function(e) {
|
|
34
35
|
if (h.paused || !l) return;
|
|
35
36
|
let t = e.target;
|
|
36
|
-
l.contains(t) ? p.current = t :
|
|
37
|
+
l.contains(t) ? p.current = t : Fe(p.current, { select: !0 });
|
|
37
38
|
}, t = function(e) {
|
|
38
39
|
if (h.paused || !l) return;
|
|
39
40
|
let t = e.relatedTarget;
|
|
40
|
-
t !== null && (l.contains(t) ||
|
|
41
|
+
t !== null && (l.contains(t) || Fe(p.current, { select: !0 }));
|
|
41
42
|
}, n = function(e) {
|
|
42
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
43
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Fe(l);
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
+
N(e, "handleFocusIn"), N(t, "handleFocusOut"), N(n, "handleMutations"), document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
45
46
|
let r = new MutationObserver(n);
|
|
46
47
|
return l && r.observe(l, {
|
|
47
48
|
childList: !0,
|
|
@@ -54,18 +55,18 @@ var we = Object.defineProperty, M = (e, t) => we(e, "name", {
|
|
|
54
55
|
i,
|
|
55
56
|
l,
|
|
56
57
|
h.paused
|
|
57
|
-
]),
|
|
58
|
+
]), O.useEffect(() => {
|
|
58
59
|
if (l) {
|
|
59
|
-
|
|
60
|
+
Ie.add(h);
|
|
60
61
|
let e = document.activeElement;
|
|
61
62
|
if (!l.contains(e)) {
|
|
62
63
|
let t = new CustomEvent(Te, De);
|
|
63
|
-
l.addEventListener(Te, d), l.dispatchEvent(t), t.defaultPrevented || (ke(
|
|
64
|
+
l.addEventListener(Te, d), l.dispatchEvent(t), t.defaultPrevented || (ke(ze(je(l)), { select: !0 }), document.activeElement === e && Fe(l));
|
|
64
65
|
}
|
|
65
66
|
return () => {
|
|
66
67
|
l.removeEventListener(Te, d), setTimeout(() => {
|
|
67
68
|
let t = new CustomEvent(Ee, De);
|
|
68
|
-
l.addEventListener(Ee, f), l.dispatchEvent(t), t.defaultPrevented ||
|
|
69
|
+
l.addEventListener(Ee, f), l.dispatchEvent(t), t.defaultPrevented || Fe(e ?? document.body, { select: !0 }), l.removeEventListener(Ee, f), Ie.remove(h);
|
|
69
70
|
}, 0);
|
|
70
71
|
};
|
|
71
72
|
}
|
|
@@ -75,19 +76,19 @@ var we = Object.defineProperty, M = (e, t) => we(e, "name", {
|
|
|
75
76
|
f,
|
|
76
77
|
h
|
|
77
78
|
]);
|
|
78
|
-
let g =
|
|
79
|
+
let g = O.useCallback((e) => {
|
|
79
80
|
if (!r && !i || h.paused) return;
|
|
80
81
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
81
82
|
if (t && n) {
|
|
82
83
|
let t = e.currentTarget, [i, a] = Ae(t);
|
|
83
|
-
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r &&
|
|
84
|
+
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && Fe(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && Fe(a, { select: !0 })) : n === t && e.preventDefault();
|
|
84
85
|
}
|
|
85
86
|
}, [
|
|
86
87
|
r,
|
|
87
88
|
i,
|
|
88
89
|
h.paused
|
|
89
90
|
]);
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ E(s.div, {
|
|
91
92
|
tabIndex: -1,
|
|
92
93
|
...c,
|
|
93
94
|
ref: m,
|
|
@@ -96,28 +97,28 @@ var we = Object.defineProperty, M = (e, t) => we(e, "name", {
|
|
|
96
97
|
}, "FocusScope"));
|
|
97
98
|
function ke(e, { select: t = !1 } = {}) {
|
|
98
99
|
let n = document.activeElement;
|
|
99
|
-
for (let r of e) if (
|
|
100
|
+
for (let r of e) if (Fe(r, { select: t }), document.activeElement !== n) return;
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
+
N(ke, "focusFirst");
|
|
102
103
|
function Ae(e) {
|
|
103
104
|
let t = je(e);
|
|
104
105
|
return [Me(t, e), Me(t.reverse(), e)];
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
+
N(Ae, "getTabbableEdges");
|
|
107
108
|
function je(e) {
|
|
108
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */
|
|
109
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ N((e) => {
|
|
109
110
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
110
111
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
111
112
|
}, "acceptNode") });
|
|
112
113
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
113
114
|
return t;
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
+
N(je, "getTabbableCandidates");
|
|
116
117
|
function Me(e, t) {
|
|
117
118
|
let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
118
119
|
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : Ne(r, { upTo: t }))) return r;
|
|
119
120
|
}
|
|
120
|
-
|
|
121
|
+
N(Me, "findVisible");
|
|
121
122
|
function Ne(e, { upTo: t }) {
|
|
122
123
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
123
124
|
for (; e;) {
|
|
@@ -127,82 +128,82 @@ function Ne(e, { upTo: t }) {
|
|
|
127
128
|
}
|
|
128
129
|
return !1;
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
+
N(Ne, "isHidden");
|
|
131
132
|
function Pe(e) {
|
|
132
133
|
return e instanceof HTMLInputElement && "select" in e;
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
-
function
|
|
135
|
+
N(Pe, "isSelectableInput");
|
|
136
|
+
function Fe(e, { select: t = !1 } = {}) {
|
|
136
137
|
if (e && e.focus) {
|
|
137
138
|
let n = document.activeElement;
|
|
138
139
|
e.focus({ preventScroll: !0 }), e !== n && Pe(e) && t && e.select();
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
-
var
|
|
143
|
-
function
|
|
142
|
+
N(Fe, "focus");
|
|
143
|
+
var Ie = Le();
|
|
144
|
+
function Le() {
|
|
144
145
|
let e = [];
|
|
145
146
|
return {
|
|
146
147
|
add(t) {
|
|
147
148
|
let n = e[0];
|
|
148
|
-
t !== n && n?.pause(), e =
|
|
149
|
+
t !== n && n?.pause(), e = Re(e, t), e.unshift(t);
|
|
149
150
|
},
|
|
150
151
|
remove(t) {
|
|
151
|
-
e =
|
|
152
|
+
e = Re(e, t), e[0]?.resume();
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
-
function
|
|
156
|
+
N(Le, "createFocusScopesStack");
|
|
157
|
+
function Re(e, t) {
|
|
157
158
|
let n = [...e], r = n.indexOf(t);
|
|
158
159
|
return r !== -1 && n.splice(r, 1), n;
|
|
159
160
|
}
|
|
160
|
-
|
|
161
|
-
function
|
|
161
|
+
N(Re, "arrayRemove");
|
|
162
|
+
function ze(e) {
|
|
162
163
|
return e.filter((e) => e.tagName !== "A");
|
|
163
164
|
}
|
|
164
|
-
|
|
165
|
+
N(ze, "removeLinks");
|
|
165
166
|
//#endregion
|
|
166
167
|
//#region ../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
167
|
-
var
|
|
168
|
+
var Be = Object.defineProperty, Ve = (e, t) => Be(e, "name", {
|
|
168
169
|
value: t,
|
|
169
170
|
configurable: !0
|
|
170
|
-
}),
|
|
171
|
-
function
|
|
172
|
-
return
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
start:
|
|
179
|
-
end:
|
|
171
|
+
}), He = 0, Ue = null;
|
|
172
|
+
function We(e) {
|
|
173
|
+
return Ge(), e.children;
|
|
174
|
+
}
|
|
175
|
+
Ve(We, "FocusGuards");
|
|
176
|
+
function Ge() {
|
|
177
|
+
O.useEffect(() => {
|
|
178
|
+
Ue ||= {
|
|
179
|
+
start: Ke(),
|
|
180
|
+
end: Ke()
|
|
180
181
|
};
|
|
181
|
-
let { start: e, end: t } =
|
|
182
|
-
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t),
|
|
183
|
-
|
|
182
|
+
let { start: e, end: t } = Ue;
|
|
183
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), He++, () => {
|
|
184
|
+
He === 1 && (Ue?.start.remove(), Ue?.end.remove(), Ue = null), He = Math.max(0, He - 1);
|
|
184
185
|
};
|
|
185
186
|
}, []);
|
|
186
187
|
}
|
|
187
|
-
|
|
188
|
-
function
|
|
188
|
+
Ve(Ge, "useFocusGuards");
|
|
189
|
+
function Ke() {
|
|
189
190
|
let e = document.createElement("span");
|
|
190
191
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
191
192
|
}
|
|
192
|
-
|
|
193
|
+
Ve(Ke, "createFocusGuard");
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region ../../node_modules/tslib/tslib.es6.mjs
|
|
195
|
-
function
|
|
196
|
+
function qe(e, t) {
|
|
196
197
|
var n = {};
|
|
197
198
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
198
199
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
199
200
|
return n;
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
+
function Je(e, t, n) {
|
|
202
203
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
203
204
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
204
205
|
}
|
|
205
|
-
var P,
|
|
206
|
+
var P, Ye = e((() => {
|
|
206
207
|
P = function() {
|
|
207
208
|
return P = Object.assign || function(e) {
|
|
208
209
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
@@ -212,17 +213,17 @@ var P, Je = e((() => {
|
|
|
212
213
|
}));
|
|
213
214
|
//#endregion
|
|
214
215
|
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
215
|
-
|
|
216
|
-
var
|
|
216
|
+
Ye();
|
|
217
|
+
var Xe = "right-scroll-bar-position", Ze = "width-before-scroll-bar", Qe = "with-scroll-bars-hidden", $e = "--removed-body-scroll-bar-size";
|
|
217
218
|
//#endregion
|
|
218
219
|
//#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
219
|
-
function
|
|
220
|
+
function et(e, t) {
|
|
220
221
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
221
222
|
}
|
|
222
223
|
//#endregion
|
|
223
224
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
224
|
-
function
|
|
225
|
-
var n =
|
|
225
|
+
function tt(e, t) {
|
|
226
|
+
var n = ge(function() {
|
|
226
227
|
return {
|
|
227
228
|
value: e,
|
|
228
229
|
callback: t,
|
|
@@ -241,33 +242,33 @@ function et(e, t) {
|
|
|
241
242
|
}
|
|
242
243
|
//#endregion
|
|
243
244
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
244
|
-
var
|
|
245
|
-
function
|
|
246
|
-
var n =
|
|
245
|
+
var nt = typeof window < "u" ? O.useLayoutEffect : O.useEffect, rt = /* @__PURE__ */ new WeakMap();
|
|
246
|
+
function it(e, t) {
|
|
247
|
+
var n = tt(t || null, function(t) {
|
|
247
248
|
return e.forEach(function(e) {
|
|
248
|
-
return
|
|
249
|
+
return et(e, t);
|
|
249
250
|
});
|
|
250
251
|
});
|
|
251
|
-
return
|
|
252
|
-
var t =
|
|
252
|
+
return nt(function() {
|
|
253
|
+
var t = rt.get(n);
|
|
253
254
|
if (t) {
|
|
254
255
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
255
256
|
r.forEach(function(e) {
|
|
256
|
-
i.has(e) ||
|
|
257
|
+
i.has(e) || et(e, null);
|
|
257
258
|
}), i.forEach(function(e) {
|
|
258
|
-
r.has(e) ||
|
|
259
|
+
r.has(e) || et(e, a);
|
|
259
260
|
});
|
|
260
261
|
}
|
|
261
|
-
|
|
262
|
+
rt.set(n, e);
|
|
262
263
|
}, [e]), n;
|
|
263
264
|
}
|
|
264
265
|
//#endregion
|
|
265
266
|
//#region ../../node_modules/use-sidecar/dist/es2015/medium.js
|
|
266
|
-
function
|
|
267
|
+
function at(e) {
|
|
267
268
|
return e;
|
|
268
269
|
}
|
|
269
|
-
function
|
|
270
|
-
t === void 0 && (t =
|
|
270
|
+
function ot(e, t) {
|
|
271
|
+
t === void 0 && (t = at);
|
|
271
272
|
var n = [], r = !1;
|
|
272
273
|
return {
|
|
273
274
|
read: function() {
|
|
@@ -320,9 +321,9 @@ function at(e, t) {
|
|
|
320
321
|
}
|
|
321
322
|
};
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function st(e) {
|
|
324
325
|
e === void 0 && (e = {});
|
|
325
|
-
var t =
|
|
326
|
+
var t = ot(null);
|
|
326
327
|
return t.options = P({
|
|
327
328
|
async: !0,
|
|
328
329
|
ssr: !1
|
|
@@ -330,30 +331,30 @@ function ot(e) {
|
|
|
330
331
|
}
|
|
331
332
|
//#endregion
|
|
332
333
|
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
var t = e.sideCar, n =
|
|
334
|
+
Ye();
|
|
335
|
+
var ct = function(e) {
|
|
336
|
+
var t = e.sideCar, n = qe(e, ["sideCar"]);
|
|
336
337
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
337
338
|
var r = t.read();
|
|
338
339
|
if (!r) throw Error("Sidecar medium not found");
|
|
339
|
-
return
|
|
340
|
+
return O.createElement(r, P({}, n));
|
|
340
341
|
};
|
|
341
|
-
|
|
342
|
-
function
|
|
343
|
-
return e.useMedium(t),
|
|
342
|
+
ct.isSideCarExport = !0;
|
|
343
|
+
function lt(e, t) {
|
|
344
|
+
return e.useMedium(t), ct;
|
|
344
345
|
}
|
|
345
346
|
//#endregion
|
|
346
347
|
//#region ../../node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
347
|
-
var
|
|
348
|
+
var ut = st();
|
|
348
349
|
//#endregion
|
|
349
350
|
//#region ../../node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
350
|
-
|
|
351
|
-
var
|
|
352
|
-
var n =
|
|
353
|
-
onScrollCapture:
|
|
354
|
-
onWheelCapture:
|
|
355
|
-
onTouchMoveCapture:
|
|
356
|
-
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b =
|
|
351
|
+
Ye();
|
|
352
|
+
var dt = function() {}, ft = O.forwardRef(function(e, t) {
|
|
353
|
+
var n = O.useRef(null), r = O.useState({
|
|
354
|
+
onScrollCapture: dt,
|
|
355
|
+
onWheelCapture: dt,
|
|
356
|
+
onTouchMoveCapture: dt
|
|
357
|
+
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = qe(e, [
|
|
357
358
|
"forwardProps",
|
|
358
359
|
"children",
|
|
359
360
|
"className",
|
|
@@ -367,9 +368,9 @@ var ut = function() {}, dt = D.forwardRef(function(e, t) {
|
|
|
367
368
|
"allowPinchZoom",
|
|
368
369
|
"as",
|
|
369
370
|
"gapMode"
|
|
370
|
-
]), x = f, S =
|
|
371
|
-
return
|
|
372
|
-
sideCar:
|
|
371
|
+
]), x = f, S = it([n, t]), C = P(P({}, b), i);
|
|
372
|
+
return O.createElement(O.Fragment, null, u && O.createElement(x, {
|
|
373
|
+
sideCar: ut,
|
|
373
374
|
removeScrollBar: l,
|
|
374
375
|
shards: d,
|
|
375
376
|
noRelative: p,
|
|
@@ -379,96 +380,90 @@ var ut = function() {}, dt = D.forwardRef(function(e, t) {
|
|
|
379
380
|
allowPinchZoom: !!g,
|
|
380
381
|
lockRef: n,
|
|
381
382
|
gapMode: y
|
|
382
|
-
}), o ?
|
|
383
|
+
}), o ? O.cloneElement(O.Children.only(s), P(P({}, C), { ref: S })) : O.createElement(v, P({}, C, {
|
|
383
384
|
className: c,
|
|
384
385
|
ref: S
|
|
385
386
|
}), s));
|
|
386
387
|
});
|
|
387
|
-
|
|
388
|
+
ft.defaultProps = {
|
|
388
389
|
enabled: !0,
|
|
389
390
|
removeScrollBar: !0,
|
|
390
391
|
inert: !1
|
|
391
|
-
},
|
|
392
|
-
fullWidth:
|
|
393
|
-
zeroRight:
|
|
394
|
-
};
|
|
395
|
-
//#endregion
|
|
396
|
-
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
397
|
-
var ft, pt = function() {
|
|
398
|
-
if (ft) return ft;
|
|
399
|
-
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
392
|
+
}, ft.classNames = {
|
|
393
|
+
fullWidth: Ze,
|
|
394
|
+
zeroRight: Xe
|
|
400
395
|
};
|
|
401
396
|
//#endregion
|
|
402
397
|
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
403
|
-
function
|
|
398
|
+
function pt() {
|
|
404
399
|
if (!document) return null;
|
|
405
400
|
var e = document.createElement("style");
|
|
406
401
|
e.type = "text/css";
|
|
407
|
-
var t =
|
|
402
|
+
var t = _e();
|
|
408
403
|
return t && e.setAttribute("nonce", t), e;
|
|
409
404
|
}
|
|
410
|
-
function
|
|
405
|
+
function mt(e, t) {
|
|
411
406
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
412
407
|
}
|
|
413
|
-
function
|
|
408
|
+
function ht(e) {
|
|
414
409
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
415
410
|
}
|
|
416
|
-
var
|
|
411
|
+
var gt = function() {
|
|
417
412
|
var e = 0, t = null;
|
|
418
413
|
return {
|
|
419
414
|
add: function(n) {
|
|
420
|
-
e == 0 && (t =
|
|
415
|
+
e == 0 && (t = pt()) && (mt(t, n), ht(t)), e++;
|
|
421
416
|
},
|
|
422
417
|
remove: function() {
|
|
423
418
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
424
419
|
}
|
|
425
420
|
};
|
|
426
|
-
},
|
|
427
|
-
var e =
|
|
421
|
+
}, _t = function() {
|
|
422
|
+
var e = gt();
|
|
428
423
|
return function(t, n) {
|
|
429
|
-
|
|
424
|
+
O.useEffect(function() {
|
|
430
425
|
return e.add(t), function() {
|
|
431
426
|
e.remove();
|
|
432
427
|
};
|
|
433
428
|
}, [t && n]);
|
|
434
429
|
};
|
|
435
|
-
},
|
|
436
|
-
var e =
|
|
430
|
+
}, vt = function() {
|
|
431
|
+
var e = _t();
|
|
437
432
|
return function(t) {
|
|
438
433
|
var n = t.styles, r = t.dynamic;
|
|
439
434
|
return e(n, r), null;
|
|
440
435
|
};
|
|
441
|
-
},
|
|
436
|
+
}, yt = {
|
|
442
437
|
left: 0,
|
|
443
438
|
top: 0,
|
|
444
439
|
right: 0,
|
|
445
440
|
gap: 0
|
|
446
|
-
},
|
|
441
|
+
}, bt = function(e) {
|
|
447
442
|
return parseInt(e || "", 10) || 0;
|
|
448
|
-
},
|
|
443
|
+
}, xt = function(e) {
|
|
449
444
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
450
445
|
return [
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
446
|
+
bt(n),
|
|
447
|
+
bt(r),
|
|
448
|
+
bt(i)
|
|
454
449
|
];
|
|
455
|
-
},
|
|
456
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
457
|
-
var t =
|
|
450
|
+
}, St = function(e) {
|
|
451
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return yt;
|
|
452
|
+
var t = xt(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
458
453
|
return {
|
|
459
454
|
left: t[0],
|
|
460
455
|
top: t[1],
|
|
461
456
|
right: t[2],
|
|
462
457
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
463
458
|
};
|
|
464
|
-
},
|
|
459
|
+
}, Ct = vt(), wt = "data-scroll-locked", Tt = function(e, t, n, r) {
|
|
465
460
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
466
461
|
return n === void 0 && (n = "margin"), `
|
|
467
|
-
.${
|
|
462
|
+
.${Qe} {
|
|
468
463
|
overflow: hidden ${r};
|
|
469
464
|
padding-right: ${s}px ${r};
|
|
470
465
|
}
|
|
471
|
-
body[${
|
|
466
|
+
body[${wt}] {
|
|
472
467
|
overflow: hidden ${r};
|
|
473
468
|
overscroll-behavior: contain;
|
|
474
469
|
${[
|
|
@@ -485,96 +480,96 @@ var _t = function() {
|
|
|
485
480
|
].filter(Boolean).join("")}
|
|
486
481
|
}
|
|
487
482
|
|
|
488
|
-
.${
|
|
483
|
+
.${Xe} {
|
|
489
484
|
right: ${s}px ${r};
|
|
490
485
|
}
|
|
491
486
|
|
|
492
|
-
.${
|
|
487
|
+
.${Ze} {
|
|
493
488
|
margin-right: ${s}px ${r};
|
|
494
489
|
}
|
|
495
490
|
|
|
496
|
-
.${
|
|
491
|
+
.${Xe} .${Xe} {
|
|
497
492
|
right: 0 ${r};
|
|
498
493
|
}
|
|
499
494
|
|
|
500
|
-
.${
|
|
495
|
+
.${Ze} .${Ze} {
|
|
501
496
|
margin-right: 0 ${r};
|
|
502
497
|
}
|
|
503
498
|
|
|
504
|
-
body[${
|
|
505
|
-
${
|
|
499
|
+
body[${wt}] {
|
|
500
|
+
${$e}: ${s}px;
|
|
506
501
|
}
|
|
507
502
|
`;
|
|
508
|
-
},
|
|
503
|
+
}, Et = function() {
|
|
509
504
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
510
505
|
return isFinite(e) ? e : 0;
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
return document.body.setAttribute(
|
|
514
|
-
var e =
|
|
515
|
-
e <= 0 ? document.body.removeAttribute(
|
|
506
|
+
}, Dt = function() {
|
|
507
|
+
O.useEffect(function() {
|
|
508
|
+
return document.body.setAttribute(wt, (Et() + 1).toString()), function() {
|
|
509
|
+
var e = Et() - 1;
|
|
510
|
+
e <= 0 ? document.body.removeAttribute(wt) : document.body.setAttribute(wt, e.toString());
|
|
516
511
|
};
|
|
517
512
|
}, []);
|
|
518
|
-
},
|
|
513
|
+
}, Ot = function(e) {
|
|
519
514
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
520
|
-
|
|
521
|
-
var a =
|
|
522
|
-
return
|
|
515
|
+
Dt();
|
|
516
|
+
var a = O.useMemo(function() {
|
|
517
|
+
return St(i);
|
|
523
518
|
}, [i]);
|
|
524
|
-
return
|
|
525
|
-
},
|
|
519
|
+
return O.createElement(Ct, { styles: Tt(a, !t, i, n ? "" : "!important") });
|
|
520
|
+
}, kt = !1;
|
|
526
521
|
if (typeof window < "u") try {
|
|
527
|
-
var
|
|
528
|
-
return
|
|
522
|
+
var At = Object.defineProperty({}, "passive", { get: function() {
|
|
523
|
+
return kt = !0, !0;
|
|
529
524
|
} });
|
|
530
|
-
window.addEventListener("test",
|
|
525
|
+
window.addEventListener("test", At, At), window.removeEventListener("test", At, At);
|
|
531
526
|
} catch {
|
|
532
|
-
|
|
527
|
+
kt = !1;
|
|
533
528
|
}
|
|
534
|
-
var
|
|
529
|
+
var jt = kt ? { passive: !1 } : !1, Mt = function(e) {
|
|
535
530
|
return e.tagName === "TEXTAREA";
|
|
536
|
-
},
|
|
531
|
+
}, Nt = function(e, t) {
|
|
537
532
|
if (!(e instanceof Element)) return !1;
|
|
538
533
|
var n = window.getComputedStyle(e);
|
|
539
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
534
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Mt(e) && n[t] === "visible");
|
|
535
|
+
}, Pt = function(e) {
|
|
536
|
+
return Nt(e, "overflowY");
|
|
540
537
|
}, Ft = function(e) {
|
|
541
|
-
return
|
|
542
|
-
}, It = function(e) {
|
|
543
|
-
return Pt(e, "overflowX");
|
|
544
|
-
}, Lt = function(e, t) {
|
|
538
|
+
return Nt(e, "overflowX");
|
|
539
|
+
}, It = function(e, t) {
|
|
545
540
|
var n = t.ownerDocument, r = t;
|
|
546
541
|
do {
|
|
547
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
548
|
-
var i =
|
|
542
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), zt(e, r)) {
|
|
543
|
+
var i = Bt(e, r);
|
|
549
544
|
if (i[1] > i[2]) return !0;
|
|
550
545
|
}
|
|
551
546
|
r = r.parentNode;
|
|
552
547
|
} while (r && r !== n.body);
|
|
553
548
|
return !1;
|
|
554
|
-
},
|
|
549
|
+
}, Lt = function(e) {
|
|
555
550
|
return [
|
|
556
551
|
e.scrollTop,
|
|
557
552
|
e.scrollHeight,
|
|
558
553
|
e.clientHeight
|
|
559
554
|
];
|
|
560
|
-
},
|
|
555
|
+
}, Rt = function(e) {
|
|
561
556
|
return [
|
|
562
557
|
e.scrollLeft,
|
|
563
558
|
e.scrollWidth,
|
|
564
559
|
e.clientWidth
|
|
565
560
|
];
|
|
561
|
+
}, zt = function(e, t) {
|
|
562
|
+
return e === "v" ? Pt(t) : Ft(t);
|
|
566
563
|
}, Bt = function(e, t) {
|
|
567
|
-
return e === "v" ?
|
|
564
|
+
return e === "v" ? Lt(t) : Rt(t);
|
|
568
565
|
}, Vt = function(e, t) {
|
|
569
|
-
return e === "v" ? Rt(t) : zt(t);
|
|
570
|
-
}, Ht = function(e, t) {
|
|
571
566
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
572
|
-
},
|
|
573
|
-
var a =
|
|
567
|
+
}, Ht = function(e, t, n, r, i) {
|
|
568
|
+
var a = Vt(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
574
569
|
do {
|
|
575
570
|
if (!s) break;
|
|
576
|
-
var p =
|
|
577
|
-
(m || h) &&
|
|
571
|
+
var p = Bt(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
572
|
+
(m || h) && zt(e, s) && (d += h, f += m);
|
|
578
573
|
var g = s.parentNode;
|
|
579
574
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
580
575
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
@@ -582,29 +577,29 @@ var Mt = At ? { passive: !1 } : !1, Nt = function(e) {
|
|
|
582
577
|
};
|
|
583
578
|
//#endregion
|
|
584
579
|
//#region ../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
585
|
-
|
|
586
|
-
var
|
|
580
|
+
Ye();
|
|
581
|
+
var Ut = function(e) {
|
|
587
582
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
588
|
-
},
|
|
583
|
+
}, Wt = function(e) {
|
|
589
584
|
return [e.deltaX, e.deltaY];
|
|
590
|
-
},
|
|
585
|
+
}, Gt = function(e) {
|
|
591
586
|
return e && "current" in e ? e.current : e;
|
|
592
|
-
},
|
|
587
|
+
}, Kt = function(e, t) {
|
|
593
588
|
return e[0] === t[0] && e[1] === t[1];
|
|
594
|
-
},
|
|
589
|
+
}, qt = function(e) {
|
|
595
590
|
return `
|
|
596
591
|
.block-interactivity-${e} {pointer-events: none;}
|
|
597
592
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
598
593
|
`;
|
|
599
|
-
},
|
|
600
|
-
function
|
|
601
|
-
var t =
|
|
602
|
-
|
|
594
|
+
}, Jt = 0, Yt = [];
|
|
595
|
+
function Xt(e) {
|
|
596
|
+
var t = O.useRef([]), n = O.useRef([0, 0]), r = O.useRef(), i = O.useState(Jt++)[0], a = O.useState(vt)[0], o = O.useRef(e);
|
|
597
|
+
O.useEffect(function() {
|
|
603
598
|
o.current = e;
|
|
604
|
-
}, [e]),
|
|
599
|
+
}, [e]), O.useEffect(function() {
|
|
605
600
|
if (e.inert) {
|
|
606
601
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
607
|
-
var t =
|
|
602
|
+
var t = Je([e.lockRef.current], (e.shards || []).map(Gt), !0).filter(Boolean);
|
|
608
603
|
return t.forEach(function(e) {
|
|
609
604
|
return e.classList.add(`allow-interactivity-${i}`);
|
|
610
605
|
}), function() {
|
|
@@ -618,107 +613,107 @@ function Zt(e) {
|
|
|
618
613
|
e.lockRef.current,
|
|
619
614
|
e.shards
|
|
620
615
|
]);
|
|
621
|
-
var s =
|
|
616
|
+
var s = O.useCallback(function(e, t) {
|
|
622
617
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
623
|
-
var i =
|
|
618
|
+
var i = Ut(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
624
619
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
625
620
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
626
621
|
if (p && (p === u || p.contains(u))) return !1;
|
|
627
|
-
var m =
|
|
622
|
+
var m = It(d, u);
|
|
628
623
|
if (!m) return !0;
|
|
629
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
624
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = It(d, u)), !m) return !1;
|
|
630
625
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
631
626
|
var h = r.current || l;
|
|
632
|
-
return
|
|
633
|
-
}, []), c =
|
|
627
|
+
return Ht(h, t, e, h === "h" ? s : c, !0);
|
|
628
|
+
}, []), c = O.useCallback(function(e) {
|
|
634
629
|
var n = e;
|
|
635
|
-
if (!(!
|
|
636
|
-
var r = "deltaY" in n ?
|
|
637
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
630
|
+
if (!(!Yt.length || Yt[Yt.length - 1] !== a)) {
|
|
631
|
+
var r = "deltaY" in n ? Wt(n) : Ut(n), i = t.current.filter(function(e) {
|
|
632
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Kt(e.delta, r);
|
|
638
633
|
})[0];
|
|
639
634
|
if (i && i.should) {
|
|
640
635
|
n.cancelable && n.preventDefault();
|
|
641
636
|
return;
|
|
642
637
|
}
|
|
643
638
|
if (!i) {
|
|
644
|
-
var c = (o.current.shards || []).map(
|
|
639
|
+
var c = (o.current.shards || []).map(Gt).filter(Boolean).filter(function(e) {
|
|
645
640
|
return e.contains(n.target);
|
|
646
641
|
});
|
|
647
642
|
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
648
643
|
}
|
|
649
644
|
}
|
|
650
|
-
}, []), l =
|
|
645
|
+
}, []), l = O.useCallback(function(e, n, r, i) {
|
|
651
646
|
var a = {
|
|
652
647
|
name: e,
|
|
653
648
|
delta: n,
|
|
654
649
|
target: r,
|
|
655
650
|
should: i,
|
|
656
|
-
shadowParent:
|
|
651
|
+
shadowParent: Zt(r)
|
|
657
652
|
};
|
|
658
653
|
t.current.push(a), setTimeout(function() {
|
|
659
654
|
t.current = t.current.filter(function(e) {
|
|
660
655
|
return e !== a;
|
|
661
656
|
});
|
|
662
657
|
}, 1);
|
|
663
|
-
}, []), u =
|
|
664
|
-
n.current =
|
|
665
|
-
}, []), d =
|
|
666
|
-
l(t.type, Gt(t), t.target, s(t, e.lockRef.current));
|
|
667
|
-
}, []), f = D.useCallback(function(t) {
|
|
658
|
+
}, []), u = O.useCallback(function(e) {
|
|
659
|
+
n.current = Ut(e), r.current = void 0;
|
|
660
|
+
}, []), d = O.useCallback(function(t) {
|
|
668
661
|
l(t.type, Wt(t), t.target, s(t, e.lockRef.current));
|
|
662
|
+
}, []), f = O.useCallback(function(t) {
|
|
663
|
+
l(t.type, Ut(t), t.target, s(t, e.lockRef.current));
|
|
669
664
|
}, []);
|
|
670
|
-
|
|
671
|
-
return
|
|
665
|
+
O.useEffect(function() {
|
|
666
|
+
return Yt.push(a), e.setCallbacks({
|
|
672
667
|
onScrollCapture: d,
|
|
673
668
|
onWheelCapture: d,
|
|
674
669
|
onTouchMoveCapture: f
|
|
675
|
-
}), document.addEventListener("wheel", c,
|
|
676
|
-
|
|
670
|
+
}), document.addEventListener("wheel", c, jt), document.addEventListener("touchmove", c, jt), document.addEventListener("touchstart", u, jt), function() {
|
|
671
|
+
Yt = Yt.filter(function(e) {
|
|
677
672
|
return e !== a;
|
|
678
|
-
}), document.removeEventListener("wheel", c,
|
|
673
|
+
}), document.removeEventListener("wheel", c, jt), document.removeEventListener("touchmove", c, jt), document.removeEventListener("touchstart", u, jt);
|
|
679
674
|
};
|
|
680
675
|
}, []);
|
|
681
676
|
var p = e.removeScrollBar, m = e.inert;
|
|
682
|
-
return
|
|
677
|
+
return O.createElement(O.Fragment, null, m ? O.createElement(a, { styles: qt(i) }) : null, p ? O.createElement(Ot, {
|
|
683
678
|
noRelative: e.noRelative,
|
|
684
679
|
gapMode: e.gapMode
|
|
685
680
|
}) : null);
|
|
686
681
|
}
|
|
687
|
-
function
|
|
682
|
+
function Zt(e) {
|
|
688
683
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
689
684
|
return t;
|
|
690
685
|
}
|
|
691
686
|
//#endregion
|
|
692
687
|
//#region ../../node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
693
|
-
var
|
|
688
|
+
var Qt = lt(ut, Xt);
|
|
694
689
|
//#endregion
|
|
695
690
|
//#region ../../node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
696
|
-
|
|
697
|
-
var
|
|
698
|
-
return
|
|
691
|
+
Ye();
|
|
692
|
+
var $t = O.forwardRef(function(e, t) {
|
|
693
|
+
return O.createElement(ft, P({}, e, {
|
|
699
694
|
ref: t,
|
|
700
|
-
sideCar:
|
|
695
|
+
sideCar: Qt
|
|
701
696
|
}));
|
|
702
697
|
});
|
|
703
|
-
|
|
698
|
+
$t.classNames = ft.classNames;
|
|
704
699
|
//#endregion
|
|
705
700
|
//#region ../../node_modules/aria-hidden/dist/es2015/index.js
|
|
706
|
-
var
|
|
701
|
+
var en = function(e) {
|
|
707
702
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
708
|
-
},
|
|
709
|
-
return e && (e.host ||
|
|
710
|
-
},
|
|
703
|
+
}, tn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), rn = {}, an = 0, on = function(e) {
|
|
704
|
+
return e && (e.host || on(e.parentNode));
|
|
705
|
+
}, sn = function(e, t) {
|
|
711
706
|
return t.map(function(t) {
|
|
712
707
|
if (e.contains(t)) return t;
|
|
713
|
-
var n =
|
|
708
|
+
var n = on(t);
|
|
714
709
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
715
710
|
}).filter(function(e) {
|
|
716
711
|
return !!e;
|
|
717
712
|
});
|
|
718
|
-
},
|
|
719
|
-
var i =
|
|
720
|
-
|
|
721
|
-
var a =
|
|
713
|
+
}, cn = function(e, t, n, r) {
|
|
714
|
+
var i = sn(t, Array.isArray(e) ? e : [e]);
|
|
715
|
+
rn[n] || (rn[n] = /* @__PURE__ */ new WeakMap());
|
|
716
|
+
var a = rn[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
722
717
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
723
718
|
};
|
|
724
719
|
i.forEach(l);
|
|
@@ -726,36 +721,36 @@ var tn = function(e) {
|
|
|
726
721
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
727
722
|
if (s.has(e)) u(e);
|
|
728
723
|
else try {
|
|
729
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
730
|
-
|
|
724
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (tn.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
725
|
+
tn.set(e, c), a.set(e, l), o.push(e), c === 1 && i && nn.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
731
726
|
} catch (t) {
|
|
732
727
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
733
728
|
}
|
|
734
729
|
});
|
|
735
730
|
};
|
|
736
|
-
return u(t), s.clear(),
|
|
731
|
+
return u(t), s.clear(), an++, function() {
|
|
737
732
|
o.forEach(function(e) {
|
|
738
|
-
var t =
|
|
739
|
-
|
|
740
|
-
}),
|
|
733
|
+
var t = tn.get(e) - 1, i = a.get(e) - 1;
|
|
734
|
+
tn.set(e, t), a.set(e, i), t || (nn.has(e) || e.removeAttribute(r), nn.delete(e)), i || e.removeAttribute(n);
|
|
735
|
+
}), an--, an || (tn = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), rn = {});
|
|
741
736
|
};
|
|
742
|
-
},
|
|
737
|
+
}, ln = function(e, t, n) {
|
|
743
738
|
n === void 0 && (n = "data-aria-hidden");
|
|
744
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
745
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
739
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || en(e);
|
|
740
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), cn(r, i, n, "aria-hidden")) : function() {
|
|
746
741
|
return null;
|
|
747
742
|
};
|
|
748
|
-
},
|
|
743
|
+
}, un = Object.defineProperty, F = (e, t) => un(e, "name", {
|
|
749
744
|
value: t,
|
|
750
745
|
configurable: !0
|
|
751
|
-
}),
|
|
752
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s =
|
|
746
|
+
}), dn = "Dialog", [fn, pn] = m(dn), [mn, I] = fn(dn), hn = /* @__PURE__ */ F((e) => {
|
|
747
|
+
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = O.useRef(null), c = O.useRef(null), [l, u] = b({
|
|
753
748
|
prop: r,
|
|
754
749
|
defaultProp: i ?? !1,
|
|
755
750
|
onChange: a,
|
|
756
|
-
caller:
|
|
757
|
-
}), [d, f] =
|
|
758
|
-
return /* @__PURE__ */
|
|
751
|
+
caller: dn
|
|
752
|
+
}), [d, f] = O.useState(0), [m, h] = O.useState(0);
|
|
753
|
+
return /* @__PURE__ */ E(mn, {
|
|
759
754
|
scope: t,
|
|
760
755
|
triggerRef: s,
|
|
761
756
|
contentRef: c,
|
|
@@ -768,53 +763,53 @@ var tn = function(e) {
|
|
|
768
763
|
setDescriptionCount: h,
|
|
769
764
|
open: l,
|
|
770
765
|
onOpenChange: u,
|
|
771
|
-
onOpenToggle:
|
|
766
|
+
onOpenToggle: O.useCallback(() => u((e) => !e), [u]),
|
|
772
767
|
modal: o,
|
|
773
768
|
children: n
|
|
774
769
|
});
|
|
775
|
-
}, "Dialog"),
|
|
776
|
-
let { __scopeDialog: r, ...i } = e, o = I(
|
|
777
|
-
return /* @__PURE__ */
|
|
770
|
+
}, "Dialog"), gn = "DialogTrigger", _n = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
771
|
+
let { __scopeDialog: r, ...i } = e, o = I(gn, r), c = n(t, o.triggerRef);
|
|
772
|
+
return /* @__PURE__ */ E(s.button, {
|
|
778
773
|
type: "button",
|
|
779
774
|
"aria-haspopup": "dialog",
|
|
780
775
|
"aria-expanded": o.open,
|
|
781
776
|
"aria-controls": o.open ? o.contentId : void 0,
|
|
782
|
-
"data-state":
|
|
777
|
+
"data-state": Ln(o.open),
|
|
783
778
|
...i,
|
|
784
779
|
ref: c,
|
|
785
780
|
onClick: a(e.onClick, o.onOpenToggle)
|
|
786
781
|
});
|
|
787
|
-
}, "DialogTrigger")),
|
|
788
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = I(
|
|
789
|
-
return /* @__PURE__ */
|
|
782
|
+
}, "DialogTrigger")), vn = "DialogPortal", [yn, bn] = fn(vn, { forceMount: void 0 }), xn = /* @__PURE__ */ F((e) => {
|
|
783
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = I(vn, t);
|
|
784
|
+
return /* @__PURE__ */ E(yn, {
|
|
790
785
|
scope: t,
|
|
791
786
|
forceMount: n,
|
|
792
|
-
children:
|
|
787
|
+
children: O.Children.map(r, (e) => /* @__PURE__ */ E(i, {
|
|
793
788
|
present: n || o.open,
|
|
794
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ E(c, {
|
|
795
790
|
asChild: !0,
|
|
796
791
|
container: a,
|
|
797
792
|
children: e
|
|
798
793
|
})
|
|
799
794
|
}))
|
|
800
795
|
});
|
|
801
|
-
}, "DialogPortal"),
|
|
802
|
-
let n =
|
|
803
|
-
return o.modal ? /* @__PURE__ */
|
|
796
|
+
}, "DialogPortal"), Sn = "DialogOverlay", Cn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
797
|
+
let n = bn(Sn, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = I(Sn, e.__scopeDialog);
|
|
798
|
+
return o.modal ? /* @__PURE__ */ E(i, {
|
|
804
799
|
present: r || o.open,
|
|
805
|
-
children: /* @__PURE__ */
|
|
800
|
+
children: /* @__PURE__ */ E(Tn, {
|
|
806
801
|
...a,
|
|
807
802
|
ref: t
|
|
808
803
|
})
|
|
809
804
|
}) : null;
|
|
810
|
-
}, "DialogOverlay")),
|
|
811
|
-
let { __scopeDialog: r, ...i } = e, a = I(
|
|
812
|
-
return /* @__PURE__ */
|
|
813
|
-
as:
|
|
805
|
+
}, "DialogOverlay")), wn = d("DialogOverlay.RemoveScroll"), Tn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
806
|
+
let { __scopeDialog: r, ...i } = e, a = I(Sn, r), o = n(t, v());
|
|
807
|
+
return /* @__PURE__ */ E($t, {
|
|
808
|
+
as: wn,
|
|
814
809
|
allowPinchZoom: !0,
|
|
815
810
|
shards: [a.contentRef],
|
|
816
|
-
children: /* @__PURE__ */
|
|
817
|
-
"data-state":
|
|
811
|
+
children: /* @__PURE__ */ E(s.div, {
|
|
812
|
+
"data-state": Ln(a.open),
|
|
818
813
|
...i,
|
|
819
814
|
ref: o,
|
|
820
815
|
style: {
|
|
@@ -823,24 +818,24 @@ var tn = function(e) {
|
|
|
823
818
|
}
|
|
824
819
|
})
|
|
825
820
|
});
|
|
826
|
-
}, "DialogOverlayImpl")),
|
|
827
|
-
let n =
|
|
828
|
-
return /* @__PURE__ */
|
|
821
|
+
}, "DialogOverlayImpl")), En = "DialogContent", Dn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
822
|
+
let n = bn(En, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = I(En, e.__scopeDialog);
|
|
823
|
+
return /* @__PURE__ */ E(i, {
|
|
829
824
|
present: r || o.open,
|
|
830
|
-
children: o.modal ? /* @__PURE__ */
|
|
825
|
+
children: o.modal ? /* @__PURE__ */ E(On, {
|
|
831
826
|
...a,
|
|
832
827
|
ref: t
|
|
833
|
-
}) : /* @__PURE__ */
|
|
828
|
+
}) : /* @__PURE__ */ E(kn, {
|
|
834
829
|
...a,
|
|
835
830
|
ref: t
|
|
836
831
|
})
|
|
837
832
|
});
|
|
838
|
-
}, "DialogContent")),
|
|
839
|
-
let r = I(
|
|
840
|
-
return
|
|
833
|
+
}, "DialogContent")), On = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
834
|
+
let r = I(En, e.__scopeDialog), i = O.useRef(null), o = n(t, r.contentRef, i);
|
|
835
|
+
return O.useEffect(() => {
|
|
841
836
|
let e = i.current;
|
|
842
|
-
if (e) return
|
|
843
|
-
}, []), /* @__PURE__ */
|
|
837
|
+
if (e) return ln(e);
|
|
838
|
+
}, []), /* @__PURE__ */ E(An, {
|
|
844
839
|
...e,
|
|
845
840
|
ref: o,
|
|
846
841
|
trapFocus: r.open,
|
|
@@ -854,9 +849,9 @@ var tn = function(e) {
|
|
|
854
849
|
}),
|
|
855
850
|
onFocusOutside: a(e.onFocusOutside, (e) => e.preventDefault())
|
|
856
851
|
});
|
|
857
|
-
}, "DialogContentModal")),
|
|
858
|
-
let n = I(
|
|
859
|
-
return /* @__PURE__ */
|
|
852
|
+
}, "DialogContentModal")), kn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
853
|
+
let n = I(En, e.__scopeDialog), r = O.useRef(!1), i = O.useRef(!1);
|
|
854
|
+
return /* @__PURE__ */ E(An, {
|
|
860
855
|
...e,
|
|
861
856
|
ref: t,
|
|
862
857
|
trapFocus: !1,
|
|
@@ -870,83 +865,83 @@ var tn = function(e) {
|
|
|
870
865
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
871
866
|
}
|
|
872
867
|
});
|
|
873
|
-
}, "DialogContentNonModal")),
|
|
874
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = I(
|
|
875
|
-
return
|
|
868
|
+
}, "DialogContentNonModal")), An = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
869
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = I(En, n);
|
|
870
|
+
return Ge(), /* @__PURE__ */ E(ie, { children: /* @__PURE__ */ E(Oe, {
|
|
876
871
|
asChild: !0,
|
|
877
872
|
loop: !0,
|
|
878
873
|
trapped: r,
|
|
879
874
|
onMountAutoFocus: i,
|
|
880
875
|
onUnmountAutoFocus: a,
|
|
881
|
-
children: /* @__PURE__ */
|
|
876
|
+
children: /* @__PURE__ */ E(te, {
|
|
882
877
|
role: "dialog",
|
|
883
878
|
id: s.contentId,
|
|
884
879
|
"aria-describedby": s.descriptionPresent ? s.descriptionId : void 0,
|
|
885
880
|
"aria-labelledby": s.titlePresent ? s.titleId : void 0,
|
|
886
|
-
"data-state":
|
|
881
|
+
"data-state": Ln(s.open),
|
|
887
882
|
...o,
|
|
888
883
|
ref: t,
|
|
889
884
|
deferPointerDownOutside: !0,
|
|
890
885
|
onDismiss: () => s.onOpenChange(!1)
|
|
891
886
|
})
|
|
892
887
|
}) });
|
|
893
|
-
}, "DialogContentImpl")),
|
|
894
|
-
let { __scopeDialog: n, ...r } = e, i = I(
|
|
895
|
-
return
|
|
888
|
+
}, "DialogContentImpl")), jn = "DialogTitle", Mn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
889
|
+
let { __scopeDialog: n, ...r } = e, i = I(jn, n), { setTitleCount: a } = i;
|
|
890
|
+
return T(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ E(s.h2, {
|
|
896
891
|
id: i.titleId,
|
|
897
892
|
...r,
|
|
898
893
|
ref: t
|
|
899
894
|
});
|
|
900
|
-
}, "DialogTitle")),
|
|
901
|
-
let { __scopeDialog: n, ...r } = e, i = I(
|
|
902
|
-
return
|
|
895
|
+
}, "DialogTitle")), Nn = "DialogDescription", Pn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
896
|
+
let { __scopeDialog: n, ...r } = e, i = I(Nn, n), { setDescriptionCount: a } = i;
|
|
897
|
+
return T(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ E(s.p, {
|
|
903
898
|
id: i.descriptionId,
|
|
904
899
|
...r,
|
|
905
900
|
ref: t
|
|
906
901
|
});
|
|
907
|
-
}, "DialogDescription")),
|
|
908
|
-
let { __scopeDialog: n, ...r } = e, i = I(
|
|
909
|
-
return /* @__PURE__ */
|
|
902
|
+
}, "DialogDescription")), Fn = "DialogClose", In = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
903
|
+
let { __scopeDialog: n, ...r } = e, i = I(Fn, n);
|
|
904
|
+
return /* @__PURE__ */ E(s.button, {
|
|
910
905
|
type: "button",
|
|
911
906
|
...r,
|
|
912
907
|
ref: t,
|
|
913
908
|
onClick: a(e.onClick, () => i.onOpenChange(!1))
|
|
914
909
|
});
|
|
915
910
|
}, "DialogClose"));
|
|
916
|
-
function
|
|
911
|
+
function Ln(e) {
|
|
917
912
|
return e ? "open" : "closed";
|
|
918
913
|
}
|
|
919
|
-
F(
|
|
914
|
+
F(Ln, "getState");
|
|
920
915
|
//#endregion
|
|
921
916
|
//#region ../../node_modules/@radix-ui/react-label/dist/index.mjs
|
|
922
|
-
var
|
|
917
|
+
var Rn = Object.defineProperty, zn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ ((e, t) => Rn(e, "name", {
|
|
923
918
|
value: t,
|
|
924
919
|
configurable: !0
|
|
925
920
|
}))(function(e, t) {
|
|
926
|
-
return /* @__PURE__ */
|
|
921
|
+
return /* @__PURE__ */ E(s.label, {
|
|
927
922
|
...e,
|
|
928
923
|
ref: t,
|
|
929
924
|
onMouseDown: (t) => {
|
|
930
925
|
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
931
926
|
}
|
|
932
927
|
});
|
|
933
|
-
}, "Label")),
|
|
928
|
+
}, "Label")), Bn = Object.defineProperty, L = (e, t) => Bn(e, "name", {
|
|
934
929
|
value: t,
|
|
935
930
|
configurable: !0
|
|
936
|
-
}),
|
|
937
|
-
let { __scopeHoverCard: t, children: n, open: r, defaultOpen: i, onOpenChange: a, openDelay: o = 700, closeDelay: s = 300 } = e, c =
|
|
931
|
+
}), Vn, Hn = "HoverCard", [Un, Wn] = m(Hn, [l]), Gn = l(), [Kn, qn] = Un(Hn), Jn = /* @__PURE__ */ L((e) => {
|
|
932
|
+
let { __scopeHoverCard: t, children: n, open: r, defaultOpen: i, onOpenChange: a, openDelay: o = 700, closeDelay: s = 300 } = e, c = Gn(t), l = O.useRef(0), d = O.useRef(0), f = O.useRef(!1), p = O.useRef(!1), [m, h] = b({
|
|
938
933
|
prop: r,
|
|
939
934
|
defaultProp: i ?? !1,
|
|
940
935
|
onChange: a,
|
|
941
|
-
caller:
|
|
942
|
-
}), g =
|
|
936
|
+
caller: Hn
|
|
937
|
+
}), g = O.useCallback(() => {
|
|
943
938
|
clearTimeout(d.current), l.current = window.setTimeout(() => h(!0), o);
|
|
944
|
-
}, [o, h]), _ =
|
|
939
|
+
}, [o, h]), _ = O.useCallback(() => {
|
|
945
940
|
clearTimeout(l.current), !f.current && !p.current && (d.current = window.setTimeout(() => h(!1), s));
|
|
946
|
-
}, [s, h]), v =
|
|
947
|
-
return
|
|
941
|
+
}, [s, h]), v = O.useCallback(() => h(!1), [h]);
|
|
942
|
+
return O.useEffect(() => () => {
|
|
948
943
|
clearTimeout(l.current), clearTimeout(d.current);
|
|
949
|
-
}, []), /* @__PURE__ */
|
|
944
|
+
}, []), /* @__PURE__ */ E(Kn, {
|
|
950
945
|
scope: t,
|
|
951
946
|
open: m,
|
|
952
947
|
onOpenChange: h,
|
|
@@ -955,63 +950,63 @@ var zn = Object.defineProperty, Bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ *
|
|
|
955
950
|
onDismiss: v,
|
|
956
951
|
hasSelectionRef: f,
|
|
957
952
|
isPointerDownOnContentRef: p,
|
|
958
|
-
children: /* @__PURE__ */
|
|
953
|
+
children: /* @__PURE__ */ E(u, {
|
|
959
954
|
...c,
|
|
960
955
|
children: n
|
|
961
956
|
})
|
|
962
957
|
});
|
|
963
|
-
}, "HoverCard"),
|
|
964
|
-
let { __scopeHoverCard: n, ...r } = e, i =
|
|
965
|
-
return /* @__PURE__ */
|
|
958
|
+
}, "HoverCard"), Yn = "HoverCardTrigger", Xn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
959
|
+
let { __scopeHoverCard: n, ...r } = e, i = qn(Yn, n);
|
|
960
|
+
return /* @__PURE__ */ E(x, {
|
|
966
961
|
asChild: !0,
|
|
967
|
-
...
|
|
968
|
-
children: /* @__PURE__ */
|
|
962
|
+
...Gn(n),
|
|
963
|
+
children: /* @__PURE__ */ E(s.a, {
|
|
969
964
|
"data-state": i.open ? "open" : "closed",
|
|
970
965
|
...r,
|
|
971
966
|
ref: t,
|
|
972
|
-
onPointerEnter: a(e.onPointerEnter,
|
|
973
|
-
onPointerLeave: a(e.onPointerLeave,
|
|
967
|
+
onPointerEnter: a(e.onPointerEnter, ir(i.onOpen)),
|
|
968
|
+
onPointerLeave: a(e.onPointerLeave, ir(i.onClose)),
|
|
974
969
|
onFocus: a(e.onFocus, i.onOpen),
|
|
975
970
|
onBlur: a(e.onBlur, i.onClose),
|
|
976
971
|
onTouchStart: a(e.onTouchStart, (e) => e.preventDefault())
|
|
977
972
|
})
|
|
978
973
|
});
|
|
979
|
-
}, "HoverCardTrigger")),
|
|
980
|
-
let { __scopeHoverCard: t, forceMount: n, children: r, container: a } = e, o =
|
|
981
|
-
return /* @__PURE__ */
|
|
974
|
+
}, "HoverCardTrigger")), Zn = "HoverCardPortal", [Qn, $n] = Un(Zn, { forceMount: void 0 }), er = /* @__PURE__ */ L((e) => {
|
|
975
|
+
let { __scopeHoverCard: t, forceMount: n, children: r, container: a } = e, o = qn(Zn, t);
|
|
976
|
+
return /* @__PURE__ */ E(Qn, {
|
|
982
977
|
scope: t,
|
|
983
978
|
forceMount: n,
|
|
984
|
-
children: /* @__PURE__ */
|
|
979
|
+
children: /* @__PURE__ */ E(i, {
|
|
985
980
|
present: n || o.open,
|
|
986
|
-
children: /* @__PURE__ */
|
|
981
|
+
children: /* @__PURE__ */ E(c, {
|
|
987
982
|
asChild: !0,
|
|
988
983
|
container: a,
|
|
989
984
|
children: r
|
|
990
985
|
})
|
|
991
986
|
})
|
|
992
987
|
});
|
|
993
|
-
}, "HoverCardPortal"),
|
|
994
|
-
let n =
|
|
995
|
-
return /* @__PURE__ */
|
|
988
|
+
}, "HoverCardPortal"), tr = "HoverCardContent", nr = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
989
|
+
let n = $n(tr, e.__scopeHoverCard), { forceMount: r = n.forceMount, ...o } = e, s = qn(tr, e.__scopeHoverCard);
|
|
990
|
+
return /* @__PURE__ */ E(i, {
|
|
996
991
|
present: r || s.open,
|
|
997
|
-
children: /* @__PURE__ */
|
|
992
|
+
children: /* @__PURE__ */ E(rr, {
|
|
998
993
|
"data-state": s.open ? "open" : "closed",
|
|
999
994
|
...o,
|
|
1000
|
-
onPointerEnter: a(e.onPointerEnter,
|
|
1001
|
-
onPointerLeave: a(e.onPointerLeave,
|
|
995
|
+
onPointerEnter: a(e.onPointerEnter, ir(s.onOpen)),
|
|
996
|
+
onPointerLeave: a(e.onPointerLeave, ir(s.onClose)),
|
|
1002
997
|
ref: t
|
|
1003
998
|
})
|
|
1004
999
|
});
|
|
1005
|
-
}, "HoverCardContent")),
|
|
1006
|
-
let { __scopeHoverCard: r, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, ...l } = e, u =
|
|
1007
|
-
return
|
|
1000
|
+
}, "HoverCardContent")), rr = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
1001
|
+
let { __scopeHoverCard: r, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, ...l } = e, u = qn(tr, r), d = Gn(r), f = O.useRef(null), p = n(t, f), [m, g] = O.useState(!1);
|
|
1002
|
+
return O.useEffect(() => {
|
|
1008
1003
|
if (m) {
|
|
1009
1004
|
let e = document.body;
|
|
1010
|
-
return
|
|
1011
|
-
e.style.userSelect =
|
|
1005
|
+
return Vn = e.style.userSelect || e.style.webkitUserSelect, e.style.userSelect = "none", e.style.webkitUserSelect = "none", () => {
|
|
1006
|
+
e.style.userSelect = Vn, e.style.webkitUserSelect = Vn;
|
|
1012
1007
|
};
|
|
1013
1008
|
}
|
|
1014
|
-
}, [m]),
|
|
1009
|
+
}, [m]), O.useEffect(() => {
|
|
1015
1010
|
if (f.current) {
|
|
1016
1011
|
let e = /* @__PURE__ */ L(() => {
|
|
1017
1012
|
g(!1), u.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
@@ -1022,9 +1017,9 @@ var zn = Object.defineProperty, Bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ *
|
|
|
1022
1017
|
document.removeEventListener("pointerup", e), u.hasSelectionRef.current = !1, u.isPointerDownOnContentRef.current = !1;
|
|
1023
1018
|
};
|
|
1024
1019
|
}
|
|
1025
|
-
}, [u.isPointerDownOnContentRef, u.hasSelectionRef]),
|
|
1026
|
-
f.current &&
|
|
1027
|
-
}), /* @__PURE__ */
|
|
1020
|
+
}, [u.isPointerDownOnContentRef, u.hasSelectionRef]), O.useEffect(() => {
|
|
1021
|
+
f.current && ar(f.current).forEach((e) => e.setAttribute("tabindex", "-1"));
|
|
1022
|
+
}), /* @__PURE__ */ E(te, {
|
|
1028
1023
|
asChild: !0,
|
|
1029
1024
|
disableOutsidePointerEvents: !1,
|
|
1030
1025
|
onInteractOutside: c,
|
|
@@ -1034,7 +1029,7 @@ var zn = Object.defineProperty, Bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ *
|
|
|
1034
1029
|
e.preventDefault();
|
|
1035
1030
|
}),
|
|
1036
1031
|
onDismiss: u.onDismiss,
|
|
1037
|
-
children: /* @__PURE__ */
|
|
1032
|
+
children: /* @__PURE__ */ E(h, {
|
|
1038
1033
|
...d,
|
|
1039
1034
|
...l,
|
|
1040
1035
|
onPointerDown: a(l.onPointerDown, (e) => {
|
|
@@ -1054,17 +1049,17 @@ var zn = Object.defineProperty, Bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ *
|
|
|
1054
1049
|
})
|
|
1055
1050
|
});
|
|
1056
1051
|
}, "HoverCardContentImpl"));
|
|
1057
|
-
function
|
|
1052
|
+
function ir(e) {
|
|
1058
1053
|
return (t) => t.pointerType === "touch" ? void 0 : e();
|
|
1059
1054
|
}
|
|
1060
|
-
L(
|
|
1061
|
-
function
|
|
1055
|
+
L(ir, "excludeTouch");
|
|
1056
|
+
function ar(e) {
|
|
1062
1057
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ L((e) => e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP, "acceptNode") });
|
|
1063
1058
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
1064
1059
|
return t;
|
|
1065
1060
|
}
|
|
1066
|
-
L(
|
|
1067
|
-
var
|
|
1061
|
+
L(ar, "getTabbableNodes");
|
|
1062
|
+
var or = Jn, sr = Xn, cr = er, lr = nr, ur = o("transition-all duration-500", {
|
|
1068
1063
|
variants: {
|
|
1069
1064
|
variant: {
|
|
1070
1065
|
1: "",
|
|
@@ -1250,9 +1245,9 @@ var sr = Yn, cr = Zn, lr = tr, ur = rr, dr = o("transition-all duration-500", {
|
|
|
1250
1245
|
}
|
|
1251
1246
|
]
|
|
1252
1247
|
});
|
|
1253
|
-
function
|
|
1254
|
-
let { t: a } =
|
|
1255
|
-
return e === "4" ? /* @__PURE__ */ E(
|
|
1248
|
+
function dr({ variant: e = "1", color: n, className: r, ...i }) {
|
|
1249
|
+
let { t: a } = ne();
|
|
1250
|
+
return e === "4" ? /* @__PURE__ */ E("svg", {
|
|
1256
1251
|
viewBox: "0 0 800 800",
|
|
1257
1252
|
"data-slot": "spinner",
|
|
1258
1253
|
"data-variant": e,
|
|
@@ -1261,8 +1256,8 @@ function fr({ variant: e = "1", color: n, className: r, ...i }) {
|
|
|
1261
1256
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1262
1257
|
role: "img",
|
|
1263
1258
|
"aria-label": i["aria-label"] ?? a("material.spinner.loading", "Loading..."),
|
|
1264
|
-
children: /* @__PURE__ */
|
|
1265
|
-
className: t("spin2",
|
|
1259
|
+
children: /* @__PURE__ */ E("circle", {
|
|
1260
|
+
className: t("spin2", ur({
|
|
1266
1261
|
variant: e,
|
|
1267
1262
|
color: n
|
|
1268
1263
|
})),
|
|
@@ -1274,11 +1269,11 @@ function fr({ variant: e = "1", color: n, className: r, ...i }) {
|
|
|
1274
1269
|
strokeDasharray: "700 1400",
|
|
1275
1270
|
strokeLinecap: "round"
|
|
1276
1271
|
})
|
|
1277
|
-
})
|
|
1272
|
+
}) : /* @__PURE__ */ E("div", {
|
|
1278
1273
|
"data-slot": "spinner",
|
|
1279
1274
|
"data-variant": e,
|
|
1280
1275
|
"data-color": n,
|
|
1281
|
-
className: t("size-12 border-[2px] rounded-full animate-spin",
|
|
1276
|
+
className: t("size-12 border-[2px] rounded-full animate-spin", ur({
|
|
1282
1277
|
variant: e,
|
|
1283
1278
|
color: n,
|
|
1284
1279
|
className: r
|
|
@@ -1288,7 +1283,7 @@ function fr({ variant: e = "1", color: n, className: r, ...i }) {
|
|
|
1288
1283
|
}
|
|
1289
1284
|
//#endregion
|
|
1290
1285
|
//#region lib/components/ui/actions/button/busy-click-capture.ts
|
|
1291
|
-
function
|
|
1286
|
+
function fr(e, t, n) {
|
|
1292
1287
|
return (r) => {
|
|
1293
1288
|
if (e || t.isLocked()) {
|
|
1294
1289
|
r.preventDefault(), r.stopPropagation();
|
|
@@ -1299,7 +1294,7 @@ function pr(e, t, n) {
|
|
|
1299
1294
|
}
|
|
1300
1295
|
//#endregion
|
|
1301
1296
|
//#region lib/components/ui/actions/button/button.variants.ts
|
|
1302
|
-
var
|
|
1297
|
+
var pr = o("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
|
|
1303
1298
|
variants: {
|
|
1304
1299
|
variant: {
|
|
1305
1300
|
filled: "shadow-xs",
|
|
@@ -1474,106 +1469,106 @@ var mr = o("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer w
|
|
|
1474
1469
|
class: `${f.default} ${C.default} hover:bg-foreground/10 active:bg-muted focus:bg-foreground/15`
|
|
1475
1470
|
}
|
|
1476
1471
|
]
|
|
1477
|
-
}),
|
|
1472
|
+
}), mr = {
|
|
1478
1473
|
xs: "min-h-6",
|
|
1479
1474
|
sm: "min-h-8",
|
|
1480
1475
|
default: "min-h-9",
|
|
1481
1476
|
lg: "min-h-10"
|
|
1482
1477
|
};
|
|
1483
|
-
function
|
|
1484
|
-
return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ?
|
|
1478
|
+
function hr(e, t) {
|
|
1479
|
+
return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ? mr[t] : ""} whitespace-normal **:whitespace-normal text-center`;
|
|
1485
1480
|
}
|
|
1486
1481
|
//#endregion
|
|
1487
1482
|
//#region lib/components/ui/actions/button/has-text-content.ts
|
|
1488
|
-
function
|
|
1489
|
-
return e == null || typeof e == "boolean" ? !1 : typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? String(e).trim() !== "" : Array.isArray(e) ? e.some(
|
|
1483
|
+
function gr(e) {
|
|
1484
|
+
return e == null || typeof e == "boolean" ? !1 : typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? String(e).trim() !== "" : Array.isArray(e) ? e.some(gr) : le(e) ? !_r(e.props["aria-hidden"]) && gr(e.props.children) : !1;
|
|
1490
1485
|
}
|
|
1491
|
-
function
|
|
1486
|
+
function _r(e) {
|
|
1492
1487
|
return !!e && e !== "false";
|
|
1493
1488
|
}
|
|
1494
1489
|
//#endregion
|
|
1495
1490
|
//#region lib/components/ui/actions/button/label-text.tsx
|
|
1496
|
-
function
|
|
1491
|
+
function vr(e) {
|
|
1497
1492
|
let t = [], n = 0, r = [], i = () => {
|
|
1498
1493
|
if (r.length === 0) return;
|
|
1499
1494
|
let e = r.join("");
|
|
1500
|
-
r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */
|
|
1495
|
+
r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */ E("span", {
|
|
1501
1496
|
"data-slot": "button-label",
|
|
1502
1497
|
children: e
|
|
1503
1498
|
}, `label-${n++}`));
|
|
1504
1499
|
};
|
|
1505
|
-
for (let n of
|
|
1500
|
+
for (let n of A.toArray(e)) {
|
|
1506
1501
|
if (typeof n == "string" || typeof n == "number" || typeof n == "bigint") {
|
|
1507
1502
|
r.push(n);
|
|
1508
1503
|
continue;
|
|
1509
1504
|
}
|
|
1510
|
-
i(), t.push(
|
|
1505
|
+
i(), t.push(yr(n));
|
|
1511
1506
|
}
|
|
1512
1507
|
return i(), t;
|
|
1513
1508
|
}
|
|
1514
|
-
function
|
|
1515
|
-
return
|
|
1509
|
+
function yr(e) {
|
|
1510
|
+
return le(e) && e.type === oe ? se(e, void 0, vr(e.props.children)) : e;
|
|
1516
1511
|
}
|
|
1517
1512
|
//#endregion
|
|
1518
1513
|
//#region lib/components/ui/actions/button/use-click-lock.ts
|
|
1519
|
-
var
|
|
1520
|
-
function
|
|
1521
|
-
let n =
|
|
1514
|
+
var br = 1e3;
|
|
1515
|
+
function xr(e, t) {
|
|
1516
|
+
let n = M(!1), r = M(!1), i = M(void 0), [a, o] = ge(!1), s = j(() => {
|
|
1522
1517
|
n.current = !1, r.current = !1, clearTimeout(i.current), o(!1);
|
|
1523
|
-
}, []), c =
|
|
1518
|
+
}, []), c = j(() => {
|
|
1524
1519
|
e && (n.current = !0, o(!0), clearTimeout(i.current), i.current = setTimeout(() => {
|
|
1525
1520
|
r.current || s();
|
|
1526
|
-
},
|
|
1521
|
+
}, br));
|
|
1527
1522
|
}, [e, s]);
|
|
1528
|
-
return
|
|
1523
|
+
return fe(() => {
|
|
1529
1524
|
n.current && (t ? r.current = !0 : r.current && s());
|
|
1530
|
-
}, [t, s]),
|
|
1525
|
+
}, [t, s]), fe(() => () => clearTimeout(i.current), []), {
|
|
1531
1526
|
locked: a,
|
|
1532
1527
|
lock: c,
|
|
1533
|
-
isLocked:
|
|
1528
|
+
isLocked: j(() => n.current, [])
|
|
1534
1529
|
};
|
|
1535
1530
|
}
|
|
1536
1531
|
//#endregion
|
|
1537
1532
|
//#region lib/components/ui/actions/button/button.tsx
|
|
1538
|
-
function
|
|
1539
|
-
let _ = i ? S : "button", v =
|
|
1540
|
-
return /* @__PURE__ */
|
|
1533
|
+
function Sr({ className: e, variant: n = "filled", asChild: i = !1, children: a, color: o, size: s, loading: c = !1, lockOnClick: l, spinnerVariant: u = "2", wrap: d, disabled: f, onClickCapture: p, type: m = "button", ...h }) {
|
|
1534
|
+
let _ = i ? S : "button", v = de(r) || !!(h["aria-label"] || h["aria-labelledby"]) || gr(a), y = xr(l, c), b = c || y.locked, x = fr(b, y, p);
|
|
1535
|
+
return /* @__PURE__ */ E(r, {
|
|
1541
1536
|
value: v,
|
|
1542
|
-
children: /* @__PURE__ */
|
|
1537
|
+
children: /* @__PURE__ */ D(_, {
|
|
1543
1538
|
"data-slot": "button",
|
|
1544
1539
|
"data-variant": n,
|
|
1545
1540
|
"data-color": o,
|
|
1546
|
-
className: t("w-fit max-w-full truncate justify-center line-clamp-1 text-ellipsis duration-500",
|
|
1541
|
+
className: t("w-fit max-w-full truncate justify-center line-clamp-1 text-ellipsis duration-500", pr({
|
|
1547
1542
|
variant: n,
|
|
1548
1543
|
color: o,
|
|
1549
1544
|
size: s
|
|
1550
|
-
}),
|
|
1545
|
+
}), hr(d, s), e),
|
|
1551
1546
|
type: i ? void 0 : m,
|
|
1552
1547
|
disabled: f,
|
|
1553
1548
|
...h,
|
|
1554
1549
|
"aria-disabled": b || h["aria-disabled"],
|
|
1555
1550
|
"aria-busy": b || h["aria-busy"],
|
|
1556
1551
|
onClickCapture: x,
|
|
1557
|
-
children: [b && /* @__PURE__ */
|
|
1552
|
+
children: [b && /* @__PURE__ */ E(dr, {
|
|
1558
1553
|
variant: u,
|
|
1559
1554
|
color: n === "filled" ? "light" : o,
|
|
1560
1555
|
className: t("starting:scale-0 duration-500", u === "4" ? "size-7.5" : "size-4.5")
|
|
1561
|
-
}), /* @__PURE__ */
|
|
1556
|
+
}), /* @__PURE__ */ E(g, { children: i ? a : vr(a) })]
|
|
1562
1557
|
})
|
|
1563
1558
|
});
|
|
1564
1559
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return e ? /* @__PURE__ */
|
|
1560
|
+
function Cr({ tooltip: e, ...t }) {
|
|
1561
|
+
return e ? /* @__PURE__ */ E(y, {
|
|
1567
1562
|
content: e,
|
|
1568
|
-
children: /* @__PURE__ */
|
|
1569
|
-
}) : /* @__PURE__ */
|
|
1563
|
+
children: /* @__PURE__ */ E(Sr, { ...t })
|
|
1564
|
+
}) : /* @__PURE__ */ E(Sr, { ...t });
|
|
1570
1565
|
}
|
|
1571
1566
|
//#endregion
|
|
1572
1567
|
//#region lib/components/ui/overlays/dialog/use-inert-others.ts
|
|
1573
|
-
var
|
|
1574
|
-
function
|
|
1575
|
-
let [r, i] =
|
|
1576
|
-
return
|
|
1568
|
+
var wr = ce(void 0);
|
|
1569
|
+
function Tr(e, t) {
|
|
1570
|
+
let [r, i] = ge(null), [a, o] = Er(r), s = M(null);
|
|
1571
|
+
return fe(() => {
|
|
1577
1572
|
if (!e || !a || !r || r.getAttribute("data-state") === "closed") return;
|
|
1578
1573
|
let t = ve(r);
|
|
1579
1574
|
return s.current = t, () => {
|
|
@@ -1583,13 +1578,13 @@ function Er(e, t) {
|
|
|
1583
1578
|
e,
|
|
1584
1579
|
a,
|
|
1585
1580
|
r
|
|
1586
|
-
]),
|
|
1581
|
+
]), me(() => {
|
|
1587
1582
|
!a || r?.getAttribute("data-state") !== "closed" || (s.current?.(), o(!1));
|
|
1588
1583
|
}), n(i, t);
|
|
1589
1584
|
}
|
|
1590
|
-
function
|
|
1591
|
-
let [t, n] =
|
|
1592
|
-
return
|
|
1585
|
+
function Er(e) {
|
|
1586
|
+
let [t, n] = ge(!0);
|
|
1587
|
+
return fe(() => {
|
|
1593
1588
|
let t = e?.ownerDocument.defaultView?.MutationObserver;
|
|
1594
1589
|
if (!e || !t) return;
|
|
1595
1590
|
let r = () => n(e.getAttribute("data-state") !== "closed");
|
|
@@ -1598,28 +1593,28 @@ function Dr(e) {
|
|
|
1598
1593
|
return i.observe(e, { attributeFilter: ["data-state"] }), () => i.disconnect();
|
|
1599
1594
|
}, [e]), [t, n];
|
|
1600
1595
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return
|
|
1596
|
+
function Dr(e, t) {
|
|
1597
|
+
return Tr(de(wr) ?? e, t);
|
|
1603
1598
|
}
|
|
1604
1599
|
//#endregion
|
|
1605
1600
|
//#region ../../node_modules/react-use/esm/misc/util.js
|
|
1606
|
-
var
|
|
1607
|
-
function
|
|
1601
|
+
var Or = function() {};
|
|
1602
|
+
function kr(e) {
|
|
1608
1603
|
var t = [...arguments].slice(1);
|
|
1609
1604
|
e && e.addEventListener && e.addEventListener.apply(e, t);
|
|
1610
1605
|
}
|
|
1611
|
-
function
|
|
1606
|
+
function Ar(e) {
|
|
1612
1607
|
var t = [...arguments].slice(1);
|
|
1613
1608
|
e && e.removeEventListener && e.removeEventListener.apply(e, t);
|
|
1614
1609
|
}
|
|
1615
|
-
var
|
|
1610
|
+
var jr = typeof window < "u", Mr = jr ? window : null, Nr = function(e) {
|
|
1616
1611
|
return !!e.addEventListener;
|
|
1617
|
-
},
|
|
1612
|
+
}, Pr = function(e) {
|
|
1618
1613
|
return !!e.on;
|
|
1619
|
-
},
|
|
1620
|
-
n === void 0 && (n =
|
|
1621
|
-
if (t && n) return
|
|
1622
|
-
|
|
1614
|
+
}, Fr = function(e, t, n, r) {
|
|
1615
|
+
n === void 0 && (n = Mr), fe(function() {
|
|
1616
|
+
if (t && n) return Nr(n) ? kr(n, e, t, r) : Pr(n) && n.on(e, t, r), function() {
|
|
1617
|
+
Nr(n) ? Ar(n, e, t, r) : Pr(n) && n.off(e, t, r);
|
|
1623
1618
|
};
|
|
1624
1619
|
}, [
|
|
1625
1620
|
e,
|
|
@@ -1627,10 +1622,10 @@ var Mr = typeof window < "u", Nr = Mr ? window : null, Pr = function(e) {
|
|
|
1627
1622
|
n,
|
|
1628
1623
|
JSON.stringify(r)
|
|
1629
1624
|
]);
|
|
1630
|
-
},
|
|
1631
|
-
var t =
|
|
1625
|
+
}, Ir = function(e) {
|
|
1626
|
+
var t = M(e);
|
|
1632
1627
|
return t.current = e, t;
|
|
1633
|
-
},
|
|
1628
|
+
}, Lr = o("overflow-auto in-[[data-state=selected]]:text-primary-foreground", {
|
|
1634
1629
|
variants: { variant: {
|
|
1635
1630
|
normal: "text-sm",
|
|
1636
1631
|
"huge-larger": "text-8xl font-semibold",
|
|
@@ -1650,34 +1645,34 @@ var Mr = typeof window < "u", Nr = Mr ? window : null, Pr = function(e) {
|
|
|
1650
1645
|
} },
|
|
1651
1646
|
defaultVariants: { variant: "normal" }
|
|
1652
1647
|
});
|
|
1653
|
-
function
|
|
1654
|
-
return /* @__PURE__ */
|
|
1648
|
+
function Rr({ className: e, variant: n, as: r = "div", asChild: i = !1, ...a }) {
|
|
1649
|
+
return /* @__PURE__ */ E(i ? S : r, {
|
|
1655
1650
|
"data-test": "typography",
|
|
1656
|
-
className: t(
|
|
1651
|
+
className: t(Lr({
|
|
1657
1652
|
variant: n,
|
|
1658
1653
|
className: e
|
|
1659
1654
|
})),
|
|
1660
|
-
...
|
|
1655
|
+
...a
|
|
1661
1656
|
});
|
|
1662
1657
|
}
|
|
1663
1658
|
//#endregion
|
|
1664
1659
|
//#region lib/components/ui/forms/field-blur-context.ts
|
|
1665
|
-
var
|
|
1666
|
-
function
|
|
1667
|
-
return
|
|
1660
|
+
var zr = ce(null);
|
|
1661
|
+
function Br(e, t) {
|
|
1662
|
+
return he(() => e ? t ? (n) => {
|
|
1668
1663
|
let r = e(n), i = typeof t == "function" ? t(n) : void 0;
|
|
1669
1664
|
return typeof t != "function" && (t.current = n), () => {
|
|
1670
1665
|
r?.(), typeof i == "function" ? i() : typeof t == "function" ? t(null) : t.current = null;
|
|
1671
1666
|
};
|
|
1672
1667
|
} : e : t, [e, t]);
|
|
1673
1668
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1669
|
+
function Vr(e) {
|
|
1670
|
+
return Br(ue(zr), e);
|
|
1676
1671
|
}
|
|
1677
1672
|
//#endregion
|
|
1678
1673
|
//#region lib/components/ui/primitives/helper-text/helper-text.tsx
|
|
1679
|
-
function
|
|
1680
|
-
return /* @__PURE__ */
|
|
1674
|
+
function Hr({ error: e, className: n, ...r }) {
|
|
1675
|
+
return /* @__PURE__ */ E(Rr, {
|
|
1681
1676
|
"data-slot": "helper-text",
|
|
1682
1677
|
variant: "caption",
|
|
1683
1678
|
className: t("flex pl-0.5 truncate text-wrap", { "text-error-text": e }, n),
|
|
@@ -1686,8 +1681,8 @@ function Ur({ error: e, className: n, ...r }) {
|
|
|
1686
1681
|
}
|
|
1687
1682
|
//#endregion
|
|
1688
1683
|
//#region lib/components/ui/primitives/label/label.tsx
|
|
1689
|
-
function
|
|
1690
|
-
return /* @__PURE__ */
|
|
1684
|
+
function Ur() {
|
|
1685
|
+
return /* @__PURE__ */ E("svg", {
|
|
1691
1686
|
"data-slot": "label-required-mark",
|
|
1692
1687
|
"aria-hidden": "true",
|
|
1693
1688
|
focusable: "false",
|
|
@@ -1696,26 +1691,26 @@ function Wr() {
|
|
|
1696
1691
|
stroke: "currentColor",
|
|
1697
1692
|
strokeWidth: "1.75",
|
|
1698
1693
|
strokeLinecap: "round",
|
|
1699
|
-
children: /* @__PURE__ */
|
|
1694
|
+
children: /* @__PURE__ */ E("path", { d: "M5 1v8M1.5 3l7 4M8.5 3l-7 4" })
|
|
1700
1695
|
});
|
|
1701
1696
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return /* @__PURE__ */
|
|
1697
|
+
function Wr({ className: e, withAsterisk: n, ...r }) {
|
|
1698
|
+
return /* @__PURE__ */ E(zn, {
|
|
1704
1699
|
"data-slot": "label",
|
|
1705
1700
|
className: t("flex items-center pl-0.5 gap-2 text-sm leading-none font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
1706
1701
|
...r,
|
|
1707
|
-
children: n ? /* @__PURE__ */
|
|
1702
|
+
children: n ? /* @__PURE__ */ D("span", {
|
|
1708
1703
|
"data-slot": "label-text",
|
|
1709
1704
|
"data-required": "",
|
|
1710
1705
|
className: "inline-flex",
|
|
1711
|
-
children: [r.children, /* @__PURE__ */
|
|
1706
|
+
children: [r.children, /* @__PURE__ */ E(Ur, {})]
|
|
1712
1707
|
}) : r.children
|
|
1713
1708
|
});
|
|
1714
1709
|
}
|
|
1715
1710
|
//#endregion
|
|
1716
1711
|
//#region lib/components/ui/overlays/dialog/use-escape-forward.ts
|
|
1717
|
-
function
|
|
1718
|
-
let r =
|
|
1712
|
+
function Gr(e, t) {
|
|
1713
|
+
let r = M(null);
|
|
1719
1714
|
return {
|
|
1720
1715
|
ref: n(r, t),
|
|
1721
1716
|
onEscapeKeyDown(t) {
|
|
@@ -1725,10 +1720,10 @@ function Kr(e, t) {
|
|
|
1725
1720
|
}
|
|
1726
1721
|
//#endregion
|
|
1727
1722
|
//#region lib/components/ui/overlays/dialog/use-overlay-order.ts
|
|
1728
|
-
function
|
|
1729
|
-
let t =
|
|
1723
|
+
function Kr(e) {
|
|
1724
|
+
let t = M(null);
|
|
1730
1725
|
return {
|
|
1731
|
-
overlayRef:
|
|
1726
|
+
overlayRef: j((e) => {
|
|
1732
1727
|
let n = t.current;
|
|
1733
1728
|
!e || !n?.isConnected || n.parentNode === e.parentNode && n.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING && n.before(e);
|
|
1734
1729
|
}, []),
|
|
@@ -1737,20 +1732,20 @@ function qr(e) {
|
|
|
1737
1732
|
}
|
|
1738
1733
|
//#endregion
|
|
1739
1734
|
//#region lib/components/ui/overlays/dialog/use-modal-content.ts
|
|
1740
|
-
function
|
|
1741
|
-
let i =
|
|
1735
|
+
function qr({ ref: e, onEscapeKeyDown: t, ...n }, r) {
|
|
1736
|
+
let i = de(wr) ?? !0, a = Gr(t, Tr(r ?? i, e)), o = Kr(a.ref);
|
|
1742
1737
|
return {
|
|
1743
1738
|
ref: o.contentRef,
|
|
1744
1739
|
overlayRef: o.overlayRef,
|
|
1745
1740
|
onEscapeKeyDown: a.onEscapeKeyDown,
|
|
1746
1741
|
outside: {
|
|
1747
|
-
onPointerDownOutside:
|
|
1748
|
-
onFocusOutside:
|
|
1749
|
-
onInteractOutside:
|
|
1742
|
+
onPointerDownOutside: Jr(n.onPointerDownOutside),
|
|
1743
|
+
onFocusOutside: Jr(n.onFocusOutside),
|
|
1744
|
+
onInteractOutside: Jr(n.onInteractOutside)
|
|
1750
1745
|
}
|
|
1751
1746
|
};
|
|
1752
1747
|
}
|
|
1753
|
-
function
|
|
1748
|
+
function Jr(e) {
|
|
1754
1749
|
return (t) => {
|
|
1755
1750
|
e?.(t);
|
|
1756
1751
|
let n = t.target;
|
|
@@ -1759,19 +1754,19 @@ function Yr(e) {
|
|
|
1759
1754
|
}
|
|
1760
1755
|
//#endregion
|
|
1761
1756
|
//#region lib/components/ui/overlays/dialog/use-return-focus.ts
|
|
1762
|
-
var
|
|
1763
|
-
function
|
|
1764
|
-
([...e.querySelectorAll(
|
|
1757
|
+
var Yr = "button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]";
|
|
1758
|
+
function Xr(e) {
|
|
1759
|
+
([...e.querySelectorAll(Yr)].find((e) => e.tabIndex >= 0 && e.getClientRects().length > 0) ?? e).focus({ preventScroll: !0 });
|
|
1765
1760
|
}
|
|
1766
|
-
function
|
|
1767
|
-
let n =
|
|
1761
|
+
function Zr(e, { focusFallback: t = !1 } = {}) {
|
|
1762
|
+
let n = M(null);
|
|
1768
1763
|
return {
|
|
1769
1764
|
onOpenAutoFocus(r) {
|
|
1770
1765
|
let i = document.activeElement;
|
|
1771
1766
|
n.current = i instanceof HTMLElement && i !== document.body ? i : null, e.onOpenAutoFocus?.(r);
|
|
1772
1767
|
let a = r.target;
|
|
1773
1768
|
!t || r.defaultPrevented || !(a instanceof HTMLElement) || queueMicrotask(() => {
|
|
1774
|
-
a.isConnected && !a.contains(document.activeElement) &&
|
|
1769
|
+
a.isConnected && !a.contains(document.activeElement) && Xr(a);
|
|
1775
1770
|
});
|
|
1776
1771
|
},
|
|
1777
1772
|
onCloseAutoFocus(t) {
|
|
@@ -1785,7 +1780,7 @@ function Qr(e, { focusFallback: t = !1 } = {}) {
|
|
|
1785
1780
|
}
|
|
1786
1781
|
//#endregion
|
|
1787
1782
|
//#region lib/components/ui/primitives/input/input-box.ts
|
|
1788
|
-
var
|
|
1783
|
+
var Qr = [
|
|
1789
1784
|
"inline-flex gap-2 items-center h-11 max-h-full w-full bg-muted/5 disabled:bg-transparent",
|
|
1790
1785
|
"file:text-muted-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input",
|
|
1791
1786
|
"rounded border px-2 py-1 text-base shadow-xs transition-all outline-none file:inline-flex",
|
|
@@ -1793,27 +1788,27 @@ var $r = [
|
|
|
1793
1788
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1794
1789
|
"focus-visible:border-primary focus-visible:ring-primary/30 focus-visible:ring-[2px]",
|
|
1795
1790
|
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error"
|
|
1796
|
-
],
|
|
1797
|
-
function
|
|
1798
|
-
return /* @__PURE__ */
|
|
1791
|
+
], $r = [...Qr, "not-placeholder-shown:bg-primary/10"];
|
|
1792
|
+
function ei({ className: e, type: n = "text", ...r }) {
|
|
1793
|
+
return /* @__PURE__ */ E("input", {
|
|
1799
1794
|
type: n,
|
|
1800
1795
|
"data-slot": "input",
|
|
1801
|
-
className: t(
|
|
1796
|
+
className: t($r, e),
|
|
1802
1797
|
"data-pw": r.name ?? "input",
|
|
1803
1798
|
...r
|
|
1804
1799
|
});
|
|
1805
1800
|
}
|
|
1806
1801
|
//#endregion
|
|
1807
1802
|
//#region lib/components/ui/fields/text-field/text-field.tsx
|
|
1808
|
-
function
|
|
1809
|
-
let c =
|
|
1803
|
+
function ti({ error: e, helperText: n, label: r, className: i, leading: a, trailing: o, ...s }) {
|
|
1804
|
+
let c = Vr(), l = pe(), u = pe(), d = be(s["aria-describedby"], !!n && u), f = /* @__PURE__ */ D("div", {
|
|
1810
1805
|
className: t("relative", {
|
|
1811
1806
|
"*:first:size-8 *:first:absolute *:first:top-[calc(50%-16px)] *:first:left-1.5 [&_input]:pl-10 *:first:bg-muted/80 *:first:text-muted-foreground": !!a,
|
|
1812
1807
|
"*:last:size-8 *:last:absolute *:last:top-[calc(50%-16px)] *:last:right-1.5 [&_input]:pr-.5 *:last:bg-muted/80 *:last:text-muted-foreground": !!o
|
|
1813
1808
|
}),
|
|
1814
1809
|
children: [
|
|
1815
1810
|
a && a,
|
|
1816
|
-
/* @__PURE__ */
|
|
1811
|
+
/* @__PURE__ */ E(ei, {
|
|
1817
1812
|
"aria-invalid": e,
|
|
1818
1813
|
...s,
|
|
1819
1814
|
id: s.id ?? l,
|
|
@@ -1823,17 +1818,17 @@ function ni({ error: e, helperText: n, label: r, className: i, leading: a, trail
|
|
|
1823
1818
|
o && o
|
|
1824
1819
|
]
|
|
1825
1820
|
});
|
|
1826
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ D("div", {
|
|
1827
1822
|
ref: c,
|
|
1828
1823
|
"data-slot": "text-field",
|
|
1829
1824
|
className: t("grid w-full gap-1.5", i),
|
|
1830
|
-
children: [/* @__PURE__ */
|
|
1825
|
+
children: [/* @__PURE__ */ E(Wr, {
|
|
1831
1826
|
withAsterisk: s.required,
|
|
1832
1827
|
htmlFor: s.id ?? l,
|
|
1833
1828
|
children: r
|
|
1834
|
-
}), /* @__PURE__ */
|
|
1829
|
+
}), /* @__PURE__ */ D("div", {
|
|
1835
1830
|
className: "flex flex-col gap-0.5",
|
|
1836
|
-
children: [f, n ? /* @__PURE__ */
|
|
1831
|
+
children: [f, n ? /* @__PURE__ */ E(Hr, {
|
|
1837
1832
|
id: u,
|
|
1838
1833
|
error: e,
|
|
1839
1834
|
children: n
|
|
@@ -1843,50 +1838,50 @@ function ni({ error: e, helperText: n, label: r, className: i, leading: a, trail
|
|
|
1843
1838
|
}
|
|
1844
1839
|
//#endregion
|
|
1845
1840
|
//#region lib/components/ui/overlays/dialog/dialog-outside.ts
|
|
1846
|
-
function
|
|
1841
|
+
function ni(e) {
|
|
1847
1842
|
let t = e.target;
|
|
1848
1843
|
t instanceof Element && t.closest("[data-slot=\"combobox-content\"]") && e.preventDefault();
|
|
1849
1844
|
}
|
|
1850
|
-
function
|
|
1845
|
+
function ri(e) {
|
|
1851
1846
|
return (t) => {
|
|
1852
|
-
|
|
1847
|
+
ni(t), e?.(t);
|
|
1853
1848
|
};
|
|
1854
1849
|
}
|
|
1855
|
-
function
|
|
1850
|
+
function ii(e) {
|
|
1856
1851
|
return {
|
|
1857
1852
|
...e,
|
|
1858
|
-
onPointerDownOutside:
|
|
1859
|
-
onFocusOutside:
|
|
1860
|
-
onInteractOutside:
|
|
1853
|
+
onPointerDownOutside: ri(e.onPointerDownOutside),
|
|
1854
|
+
onFocusOutside: ri(e.onFocusOutside),
|
|
1855
|
+
onInteractOutside: ri(e.onInteractOutside)
|
|
1861
1856
|
};
|
|
1862
1857
|
}
|
|
1863
1858
|
//#endregion
|
|
1864
1859
|
//#region lib/components/ui/overlays/dialog/dialog.tsx
|
|
1865
|
-
function
|
|
1866
|
-
return /* @__PURE__ */
|
|
1860
|
+
function ai({ ...e }) {
|
|
1861
|
+
return /* @__PURE__ */ E(wr, {
|
|
1867
1862
|
value: e.modal ?? !0,
|
|
1868
|
-
children: /* @__PURE__ */
|
|
1863
|
+
children: /* @__PURE__ */ E(hn, {
|
|
1869
1864
|
"data-slot": "dialog",
|
|
1870
1865
|
...e
|
|
1871
1866
|
})
|
|
1872
1867
|
});
|
|
1873
1868
|
}
|
|
1874
|
-
function
|
|
1875
|
-
return /* @__PURE__ */
|
|
1869
|
+
function oi({ asChild: e = !0, ...t }) {
|
|
1870
|
+
return /* @__PURE__ */ E(_n, {
|
|
1876
1871
|
"data-slot": "dialog-trigger",
|
|
1877
1872
|
...t,
|
|
1878
1873
|
asChild: e
|
|
1879
1874
|
});
|
|
1880
1875
|
}
|
|
1881
|
-
function
|
|
1882
|
-
return /* @__PURE__ */
|
|
1876
|
+
function si({ ...e }) {
|
|
1877
|
+
return /* @__PURE__ */ E(xn, {
|
|
1883
1878
|
"data-slot": "dialog-portal",
|
|
1884
1879
|
...e
|
|
1885
1880
|
});
|
|
1886
1881
|
}
|
|
1887
|
-
function
|
|
1888
|
-
let { t: s } =
|
|
1889
|
-
return /* @__PURE__ */
|
|
1882
|
+
function ci({ className: e, color: n, children: r, type: i = "button", variant: a = "ghost", ...o }) {
|
|
1883
|
+
let { t: s } = ne();
|
|
1884
|
+
return /* @__PURE__ */ E(In, {
|
|
1890
1885
|
"aria-label": r ? void 0 : s("material.buttons.close", "Close"),
|
|
1891
1886
|
...o,
|
|
1892
1887
|
type: i,
|
|
@@ -1896,30 +1891,30 @@ function li({ className: e, color: n, children: r, type: i = "button", variant:
|
|
|
1896
1891
|
className: e
|
|
1897
1892
|
})),
|
|
1898
1893
|
"data-slot": "dialog-close",
|
|
1899
|
-
children: r || /* @__PURE__ */
|
|
1894
|
+
children: r || /* @__PURE__ */ E(re, { className: "size-4" })
|
|
1900
1895
|
});
|
|
1901
1896
|
}
|
|
1902
|
-
function
|
|
1903
|
-
return /* @__PURE__ */
|
|
1897
|
+
function li({ className: e, ...n }) {
|
|
1898
|
+
return /* @__PURE__ */ E(Cn, {
|
|
1904
1899
|
"data-slot": "dialog-overlay",
|
|
1905
1900
|
className: t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
1906
1901
|
...n
|
|
1907
1902
|
});
|
|
1908
1903
|
}
|
|
1909
|
-
function
|
|
1910
|
-
let d =
|
|
1904
|
+
function ui({ className: e, children: n, onInteractOutside: r, onPointerDownOutside: i, onFocusOutside: a, onOpenAutoFocus: o, onCloseAutoFocus: s, onEscapeKeyDown: c, ref: l, ...u }) {
|
|
1905
|
+
let d = Zr({
|
|
1911
1906
|
onOpenAutoFocus: o,
|
|
1912
1907
|
onCloseAutoFocus: s
|
|
1913
|
-
}), f =
|
|
1908
|
+
}), f = qr(ii({
|
|
1914
1909
|
ref: l,
|
|
1915
1910
|
onEscapeKeyDown: c,
|
|
1916
1911
|
onInteractOutside: r,
|
|
1917
1912
|
onPointerDownOutside: i,
|
|
1918
1913
|
onFocusOutside: a
|
|
1919
1914
|
}));
|
|
1920
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ D(si, {
|
|
1921
1916
|
"data-slot": "dialog-portal",
|
|
1922
|
-
children: [/* @__PURE__ */
|
|
1917
|
+
children: [/* @__PURE__ */ E(li, { ref: f.overlayRef }), /* @__PURE__ */ E(Dn, {
|
|
1923
1918
|
ref: f.ref,
|
|
1924
1919
|
"data-slot": "dialog-content",
|
|
1925
1920
|
className: t("bg-background rounded-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
@@ -1932,29 +1927,29 @@ function di({ className: e, children: n, onInteractOutside: r, onPointerDownOuts
|
|
|
1932
1927
|
})]
|
|
1933
1928
|
});
|
|
1934
1929
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return /* @__PURE__ */
|
|
1930
|
+
function di({ className: e, ...n }) {
|
|
1931
|
+
return /* @__PURE__ */ E("div", {
|
|
1937
1932
|
"data-slot": "dialog-header",
|
|
1938
1933
|
className: t("flex flex-col gap-2 text-center sm:text-left", e),
|
|
1939
1934
|
...n
|
|
1940
1935
|
});
|
|
1941
1936
|
}
|
|
1942
|
-
function
|
|
1943
|
-
return /* @__PURE__ */
|
|
1937
|
+
function fi({ className: e, ...n }) {
|
|
1938
|
+
return /* @__PURE__ */ E("div", {
|
|
1944
1939
|
"data-slot": "dialog-footer",
|
|
1945
1940
|
className: t("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
1946
1941
|
...n
|
|
1947
1942
|
});
|
|
1948
1943
|
}
|
|
1949
|
-
function
|
|
1950
|
-
return /* @__PURE__ */
|
|
1944
|
+
function pi({ className: e, ...n }) {
|
|
1945
|
+
return /* @__PURE__ */ E(Mn, {
|
|
1951
1946
|
"data-slot": "dialog-title",
|
|
1952
1947
|
className: t("text-xl leading-none font-semibold", e),
|
|
1953
1948
|
...n
|
|
1954
1949
|
});
|
|
1955
1950
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return /* @__PURE__ */
|
|
1951
|
+
function mi({ className: e, ...n }) {
|
|
1952
|
+
return /* @__PURE__ */ E(Pn, {
|
|
1958
1953
|
"data-slot": "dialog-description",
|
|
1959
1954
|
className: t("text-muted-foreground text-sm", e),
|
|
1960
1955
|
...n
|
|
@@ -1962,43 +1957,43 @@ function hi({ className: e, ...n }) {
|
|
|
1962
1957
|
}
|
|
1963
1958
|
//#endregion
|
|
1964
1959
|
//#region lib/components/ui/actions/icon-button/icon-badge.tsx
|
|
1965
|
-
function
|
|
1960
|
+
function hi({ children: e, className: n, ...r }) {
|
|
1966
1961
|
let i = !!(r["aria-label"] || r["aria-labelledby"]);
|
|
1967
|
-
return /* @__PURE__ */
|
|
1962
|
+
return /* @__PURE__ */ E(ee, {
|
|
1968
1963
|
"aria-hidden": i ? void 0 : "true",
|
|
1969
1964
|
role: i ? "img" : void 0,
|
|
1970
1965
|
...r,
|
|
1971
1966
|
asChild: !0,
|
|
1972
1967
|
className: t("cursor-default", n),
|
|
1973
|
-
children: /* @__PURE__ */
|
|
1968
|
+
children: /* @__PURE__ */ E("span", { children: e })
|
|
1974
1969
|
});
|
|
1975
1970
|
}
|
|
1976
1971
|
//#endregion
|
|
1977
1972
|
//#region lib/components/ui/primitives/activity/activity.tsx
|
|
1978
|
-
function
|
|
1979
|
-
return /* @__PURE__ */
|
|
1973
|
+
function gi({ visible: e = !1, ...t }) {
|
|
1974
|
+
return /* @__PURE__ */ E(ae, {
|
|
1980
1975
|
...t,
|
|
1981
1976
|
mode: e ? "visible" : "hidden"
|
|
1982
1977
|
});
|
|
1983
1978
|
}
|
|
1984
1979
|
//#endregion
|
|
1985
1980
|
//#region lib/components/ui/overlays/hover-card/hover-card.tsx
|
|
1986
|
-
function
|
|
1987
|
-
return /* @__PURE__ */
|
|
1981
|
+
function _i({ ...e }) {
|
|
1982
|
+
return /* @__PURE__ */ E(or, {
|
|
1988
1983
|
"data-slot": "hover-card",
|
|
1989
1984
|
...e
|
|
1990
1985
|
});
|
|
1991
1986
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return /* @__PURE__ */
|
|
1987
|
+
function vi({ ...e }) {
|
|
1988
|
+
return /* @__PURE__ */ E(sr, {
|
|
1994
1989
|
"data-slot": "hover-card-trigger",
|
|
1995
1990
|
...e
|
|
1996
1991
|
});
|
|
1997
1992
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return /* @__PURE__ */
|
|
1993
|
+
function yi({ className: e, align: n = "center", sideOffset: r = 4, ...i }) {
|
|
1994
|
+
return /* @__PURE__ */ E(cr, {
|
|
2000
1995
|
"data-slot": "hover-card-portal",
|
|
2001
|
-
children: /* @__PURE__ */
|
|
1996
|
+
children: /* @__PURE__ */ E(lr, {
|
|
2002
1997
|
"data-slot": "hover-card-content",
|
|
2003
1998
|
align: n,
|
|
2004
1999
|
sideOffset: r,
|
|
@@ -2009,21 +2004,21 @@ function bi({ className: e, align: n = "center", sideOffset: r = 4, ...i }) {
|
|
|
2009
2004
|
}
|
|
2010
2005
|
//#endregion
|
|
2011
2006
|
//#region ../../node_modules/react-hook-form/dist/index.esm.mjs
|
|
2012
|
-
var
|
|
2007
|
+
var bi = (e) => e.type === "checkbox", xi = (e) => e.type === "file", R = (e) => e instanceof Date, z = (e) => e == null, Si = (e) => typeof e == "object", B = (e) => !z(e) && !Array.isArray(e) && Si(e) && !R(e), Ci = (e) => B(e) && e.target ? bi(e.target) ? e.target.checked : xi(e.target) ? e.target.files : e.target.value : e, wi = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), Ti = (e) => {
|
|
2013
2008
|
let t = e.constructor && e.constructor.prototype;
|
|
2014
2009
|
return B(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2015
|
-
},
|
|
2010
|
+
}, Ei = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
2016
2011
|
function V(e) {
|
|
2017
2012
|
if (e instanceof Date) return new Date(e);
|
|
2018
2013
|
let t = typeof FileList < "u" && e instanceof FileList;
|
|
2019
|
-
if (
|
|
2014
|
+
if (Ei && (e instanceof Blob || t)) return e;
|
|
2020
2015
|
let n = Array.isArray(e);
|
|
2021
|
-
if (!n && !(B(e) &&
|
|
2016
|
+
if (!n && !(B(e) && Ti(e))) return e;
|
|
2022
2017
|
let r = n ? [] : Object.create(Object.getPrototypeOf(e));
|
|
2023
2018
|
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = V(e[t]));
|
|
2024
2019
|
return r;
|
|
2025
2020
|
}
|
|
2026
|
-
var
|
|
2021
|
+
var Di = {
|
|
2027
2022
|
BLUR: "blur",
|
|
2028
2023
|
FOCUS_OUT: "focusout",
|
|
2029
2024
|
CHANGE: "change",
|
|
@@ -2044,44 +2039,44 @@ var Oi = {
|
|
|
2044
2039
|
pattern: "pattern",
|
|
2045
2040
|
required: "required",
|
|
2046
2041
|
validate: "validate"
|
|
2047
|
-
},
|
|
2042
|
+
}, Oi = "root", ki = [
|
|
2048
2043
|
"__proto__",
|
|
2049
2044
|
"constructor",
|
|
2050
2045
|
"prototype"
|
|
2051
|
-
],
|
|
2046
|
+
], Ai = /^\w*$/, ji = (e) => Ai.test(e), W = (e) => e === void 0, Mi = /[.[\]'"]/, Ni = (e) => e.split(Mi).filter(Boolean), G = (e, t, n) => {
|
|
2052
2047
|
if (!t || !B(e)) return n;
|
|
2053
|
-
let r =
|
|
2054
|
-
if (r.some((e) =>
|
|
2048
|
+
let r = ji(t) ? [t] : Ni(t);
|
|
2049
|
+
if (r.some((e) => ki.includes(e))) return n;
|
|
2055
2050
|
let i = r.reduce((e, t) => z(e) ? void 0 : e[t], e);
|
|
2056
2051
|
return W(i) || i === e ? W(e[t]) ? n : e[t] : i;
|
|
2057
2052
|
}, K = (e) => typeof e == "boolean", q = (e) => typeof e == "function", J = (e, t, n) => {
|
|
2058
|
-
let r = -1, i =
|
|
2053
|
+
let r = -1, i = ji(t) ? [t] : Ni(t), a = i.length, o = a - 1;
|
|
2059
2054
|
for (; ++r < a;) {
|
|
2060
2055
|
let t = i[r], a = n;
|
|
2061
2056
|
if (r !== o) {
|
|
2062
2057
|
let n = e[t];
|
|
2063
2058
|
a = B(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
|
|
2064
2059
|
}
|
|
2065
|
-
if (
|
|
2060
|
+
if (ki.includes(t)) return;
|
|
2066
2061
|
e[t] = a, e = e[t];
|
|
2067
2062
|
}
|
|
2068
|
-
},
|
|
2069
|
-
|
|
2070
|
-
var
|
|
2063
|
+
}, Pi = k.createContext(null);
|
|
2064
|
+
Pi.displayName = "HookFormControlContext";
|
|
2065
|
+
var Fi = () => k.useContext(Pi), Ii = (e, t, n, r = !0) => {
|
|
2071
2066
|
let i = {};
|
|
2072
2067
|
for (let a in e) Object.defineProperty(i, a, { get: () => {
|
|
2073
2068
|
let i = a;
|
|
2074
2069
|
return t._proxyFormState[i] !== H.all && (t._proxyFormState[i] = !r || H.all), n && (n[i] = !0), e[i];
|
|
2075
2070
|
} });
|
|
2076
2071
|
return i;
|
|
2077
|
-
},
|
|
2072
|
+
}, Li = Ei ? k.useLayoutEffect : k.useEffect, Ri = (e) => z(e) || !Si(e), zi = (e, t) => t.length === 0 && !Array.isArray(e) && !Ti(e);
|
|
2078
2073
|
function Y(e, t, n = /* @__PURE__ */ new WeakMap()) {
|
|
2079
2074
|
if (e === t) return !0;
|
|
2080
|
-
if (
|
|
2075
|
+
if (Ri(e) || Ri(t)) return Object.is(e, t);
|
|
2081
2076
|
if (R(e) && R(t)) return Object.is(e.getTime(), t.getTime());
|
|
2082
2077
|
let r = Object.keys(e), i = Object.keys(t);
|
|
2083
2078
|
if (r.length !== i.length) return !1;
|
|
2084
|
-
if (
|
|
2079
|
+
if (zi(e, r) || zi(t, i)) return Object.is(e, t);
|
|
2085
2080
|
if (!r.length && Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
2086
2081
|
let a = n.get(e);
|
|
2087
2082
|
if (a && a.has(t)) return !0;
|
|
@@ -2100,26 +2095,26 @@ function Y(e, t, n = /* @__PURE__ */ new WeakMap()) {
|
|
|
2100
2095
|
}
|
|
2101
2096
|
return !0;
|
|
2102
2097
|
}
|
|
2103
|
-
function
|
|
2104
|
-
let e =
|
|
2098
|
+
function Bi() {
|
|
2099
|
+
let e = k.useRef(!1), t = k.useRef(void 0);
|
|
2105
2100
|
return {
|
|
2106
|
-
resyncIfNeeded:
|
|
2101
|
+
resyncIfNeeded: k.useCallback((n, r, i) => {
|
|
2107
2102
|
if (n && e.current) {
|
|
2108
2103
|
let e = r();
|
|
2109
2104
|
Y(t.current, e) || i(e);
|
|
2110
2105
|
}
|
|
2111
2106
|
e.current = !0;
|
|
2112
2107
|
}, []),
|
|
2113
|
-
snapshot:
|
|
2108
|
+
snapshot: k.useCallback((e, n) => {
|
|
2114
2109
|
e && (t.current = V(n()));
|
|
2115
2110
|
}, [])
|
|
2116
2111
|
};
|
|
2117
2112
|
}
|
|
2118
|
-
function
|
|
2119
|
-
let t =
|
|
2113
|
+
function Vi(e) {
|
|
2114
|
+
let t = Fi(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = k.useState(() => ({
|
|
2120
2115
|
...n._formState,
|
|
2121
2116
|
defaultValues: n._defaultValues
|
|
2122
|
-
})), c =
|
|
2117
|
+
})), c = k.useRef({
|
|
2123
2118
|
isDirty: !1,
|
|
2124
2119
|
isLoading: !1,
|
|
2125
2120
|
dirtyFields: !1,
|
|
@@ -2128,8 +2123,8 @@ function Hi(e) {
|
|
|
2128
2123
|
isValidating: !1,
|
|
2129
2124
|
isValid: !1,
|
|
2130
2125
|
errors: !1
|
|
2131
|
-
}), { resyncIfNeeded: l, snapshot: u } =
|
|
2132
|
-
return
|
|
2126
|
+
}), { resyncIfNeeded: l, snapshot: u } = Bi();
|
|
2127
|
+
return Li(() => {
|
|
2133
2128
|
let e = () => ({
|
|
2134
2129
|
...n._formState,
|
|
2135
2130
|
defaultValues: n._defaultValues
|
|
@@ -2156,27 +2151,27 @@ function Hi(e) {
|
|
|
2156
2151
|
a,
|
|
2157
2152
|
l,
|
|
2158
2153
|
u
|
|
2159
|
-
]),
|
|
2154
|
+
]), k.useEffect(() => {
|
|
2160
2155
|
c.current.isValid && n._setValid(!0);
|
|
2161
|
-
}, [n]),
|
|
2156
|
+
}, [n]), k.useMemo(() => Ii(o, n, c.current, !1), [o, n]);
|
|
2162
2157
|
}
|
|
2163
|
-
var X = (e) => typeof e == "string",
|
|
2164
|
-
function
|
|
2165
|
-
let t =
|
|
2158
|
+
var X = (e) => typeof e == "string", Hi = (e, t, n, r, i) => X(e) ? (r && t.watch.add(e), G(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), G(n, e))) : (r && (t.watchAll = !0), n);
|
|
2159
|
+
function Ui(e) {
|
|
2160
|
+
let t = Fi(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = k.useRef(i), l = k.useRef(s), u = k.useRef(void 0), d = k.useRef(n), f = k.useRef(r);
|
|
2166
2161
|
l.current = s;
|
|
2167
|
-
let [p, m] =
|
|
2162
|
+
let [p, m] = k.useState(() => {
|
|
2168
2163
|
let e = n._getWatch(r, c.current);
|
|
2169
2164
|
return l.current ? l.current(e) : e;
|
|
2170
|
-
}), h =
|
|
2171
|
-
let t =
|
|
2165
|
+
}), h = k.useCallback((e) => {
|
|
2166
|
+
let t = Hi(r, n._names, e || n._formValues, !1, c.current);
|
|
2172
2167
|
return l.current ? l.current(t) : t;
|
|
2173
2168
|
}, [
|
|
2174
2169
|
n._formValues,
|
|
2175
2170
|
n._names,
|
|
2176
2171
|
r
|
|
2177
|
-
]), g =
|
|
2172
|
+
]), g = k.useCallback((e) => {
|
|
2178
2173
|
if (!a) {
|
|
2179
|
-
let t =
|
|
2174
|
+
let t = Hi(r, n._names, e || n._formValues, !1, c.current);
|
|
2180
2175
|
if (l.current) {
|
|
2181
2176
|
let e = l.current(t);
|
|
2182
2177
|
Y(e, u.current) || (m(e), u.current = e);
|
|
@@ -2187,10 +2182,10 @@ function Wi(e) {
|
|
|
2187
2182
|
n._names,
|
|
2188
2183
|
a,
|
|
2189
2184
|
r
|
|
2190
|
-
]), { resyncIfNeeded: _, snapshot: v } =
|
|
2185
|
+
]), { resyncIfNeeded: _, snapshot: v } = Bi(), y = k.useRef(g);
|
|
2191
2186
|
y.current = g;
|
|
2192
|
-
let b =
|
|
2193
|
-
b.current = h,
|
|
2187
|
+
let b = k.useRef(h);
|
|
2188
|
+
b.current = h, Li(() => {
|
|
2194
2189
|
d.current !== n || !Y(f.current, r) ? (d.current = n, f.current = r, y.current()) : _(!a, () => b.current(), (e) => {
|
|
2195
2190
|
m(e), u.current = e;
|
|
2196
2191
|
});
|
|
@@ -2212,8 +2207,8 @@ function Wi(e) {
|
|
|
2212
2207
|
a,
|
|
2213
2208
|
_,
|
|
2214
2209
|
v
|
|
2215
|
-
]),
|
|
2216
|
-
let x = d.current !== n, S = f.current, C =
|
|
2210
|
+
]), k.useEffect(() => n._removeUnmounted());
|
|
2211
|
+
let x = d.current !== n, S = f.current, C = k.useMemo(() => {
|
|
2217
2212
|
if (a) return null;
|
|
2218
2213
|
let e = !x && !Y(S, r);
|
|
2219
2214
|
return x || e ? h() : null;
|
|
@@ -2226,27 +2221,27 @@ function Wi(e) {
|
|
|
2226
2221
|
]);
|
|
2227
2222
|
return C === null ? p : C;
|
|
2228
2223
|
}
|
|
2229
|
-
function
|
|
2230
|
-
let t =
|
|
2224
|
+
function Wi(e) {
|
|
2225
|
+
let t = Fi(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = wi(i._names.array, n), l = Ui({
|
|
2231
2226
|
control: i,
|
|
2232
2227
|
name: n,
|
|
2233
|
-
defaultValue:
|
|
2228
|
+
defaultValue: k.useMemo(() => G(i._formValues, n, G(i._defaultValues, n, o)), [
|
|
2234
2229
|
i,
|
|
2235
2230
|
n,
|
|
2236
2231
|
o
|
|
2237
2232
|
]),
|
|
2238
2233
|
exact: s
|
|
2239
|
-
}), u =
|
|
2234
|
+
}), u = Vi({
|
|
2240
2235
|
control: i,
|
|
2241
2236
|
name: n,
|
|
2242
2237
|
exact: s
|
|
2243
|
-
}), d =
|
|
2238
|
+
}), d = k.useRef(e), f = k.useRef(null), p = k.useRef(i.register(n, {
|
|
2244
2239
|
...e.rules,
|
|
2245
2240
|
value: l,
|
|
2246
2241
|
...K(e.disabled) ? { disabled: e.disabled } : {}
|
|
2247
2242
|
}));
|
|
2248
2243
|
d.current = e;
|
|
2249
|
-
let m =
|
|
2244
|
+
let m = k.useMemo(() => Object.defineProperties({}, {
|
|
2250
2245
|
invalid: {
|
|
2251
2246
|
enumerable: !0,
|
|
2252
2247
|
get: () => !!G(u.errors, n)
|
|
@@ -2267,25 +2262,25 @@ function Gi(e) {
|
|
|
2267
2262
|
enumerable: !0,
|
|
2268
2263
|
get: () => G(u.errors, n)
|
|
2269
2264
|
}
|
|
2270
|
-
}), [u, n]), h =
|
|
2271
|
-
let t =
|
|
2265
|
+
}), [u, n]), h = k.useCallback((e) => {
|
|
2266
|
+
let t = Ci(e);
|
|
2272
2267
|
return G(i._fields, n) || (p.current = i.register(n, {
|
|
2273
2268
|
...d.current.rules,
|
|
2274
2269
|
value: t
|
|
2275
2270
|
})), p.current.onChange({
|
|
2276
2271
|
target: {
|
|
2277
|
-
value:
|
|
2272
|
+
value: Ci(e),
|
|
2278
2273
|
name: n
|
|
2279
2274
|
},
|
|
2280
|
-
type:
|
|
2275
|
+
type: Di.CHANGE
|
|
2281
2276
|
});
|
|
2282
|
-
}, [n, i]), g =
|
|
2277
|
+
}, [n, i]), g = k.useCallback(() => p.current.onBlur({
|
|
2283
2278
|
target: {
|
|
2284
2279
|
value: G(i._formValues, n),
|
|
2285
2280
|
name: n
|
|
2286
2281
|
},
|
|
2287
|
-
type:
|
|
2288
|
-
}), [n, i._formValues]), _ =
|
|
2282
|
+
type: Di.BLUR
|
|
2283
|
+
}), [n, i._formValues]), _ = k.useCallback((e) => {
|
|
2289
2284
|
e && (f.current = {
|
|
2290
2285
|
focus: () => q(e.focus) && e.focus(),
|
|
2291
2286
|
select: () => q(e.select) && e.select(),
|
|
@@ -2294,7 +2289,7 @@ function Gi(e) {
|
|
|
2294
2289
|
});
|
|
2295
2290
|
let t = G(i._fields, n);
|
|
2296
2291
|
t && t._f && e && (t._f.ref = f.current);
|
|
2297
|
-
}, [i._fields, n]), v =
|
|
2292
|
+
}, [i._fields, n]), v = k.useMemo(() => ({
|
|
2298
2293
|
name: n,
|
|
2299
2294
|
value: l,
|
|
2300
2295
|
...K(r) || u.disabled ? { disabled: u.disabled || r } : {},
|
|
@@ -2310,7 +2305,7 @@ function Gi(e) {
|
|
|
2310
2305
|
_,
|
|
2311
2306
|
l
|
|
2312
2307
|
]);
|
|
2313
|
-
return
|
|
2308
|
+
return k.useEffect(() => {
|
|
2314
2309
|
let e = i._options.shouldUnregister || a;
|
|
2315
2310
|
p.current = i.register(n, {
|
|
2316
2311
|
...d.current.rules,
|
|
@@ -2336,7 +2331,7 @@ function Gi(e) {
|
|
|
2336
2331
|
i,
|
|
2337
2332
|
c,
|
|
2338
2333
|
a
|
|
2339
|
-
]),
|
|
2334
|
+
]), k.useEffect(() => {
|
|
2340
2335
|
i._setDisabledField({
|
|
2341
2336
|
disabled: r,
|
|
2342
2337
|
name: n
|
|
@@ -2345,7 +2340,7 @@ function Gi(e) {
|
|
|
2345
2340
|
r,
|
|
2346
2341
|
n,
|
|
2347
2342
|
i
|
|
2348
|
-
]),
|
|
2343
|
+
]), k.useMemo(() => ({
|
|
2349
2344
|
field: v,
|
|
2350
2345
|
formState: u,
|
|
2351
2346
|
fieldState: m
|
|
@@ -2355,25 +2350,25 @@ function Gi(e) {
|
|
|
2355
2350
|
m
|
|
2356
2351
|
]);
|
|
2357
2352
|
}
|
|
2358
|
-
var
|
|
2353
|
+
var Gi = (e) => e.render(Wi(e)), Ki = () => {
|
|
2359
2354
|
if (typeof crypto < "u" && crypto.randomUUID) return crypto.randomUUID();
|
|
2360
2355
|
let e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
|
|
2361
2356
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
2362
2357
|
let n = (Math.random() * 16 + e) % 16 | 0;
|
|
2363
2358
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
2364
2359
|
});
|
|
2365
|
-
},
|
|
2360
|
+
}, qi = (e, t, n = {}) => n.shouldFocus || W(n.shouldFocus) ? n.focusName || `${e}.${W(n.focusIndex) ? t : n.focusIndex}.` : "", Ji = (e) => ({
|
|
2366
2361
|
isOnSubmit: !e || e === H.onSubmit,
|
|
2367
2362
|
isOnBlur: e === H.onBlur,
|
|
2368
2363
|
isOnChange: e === H.onChange,
|
|
2369
2364
|
isOnAll: e === H.all,
|
|
2370
2365
|
isOnTouch: e === H.onTouched
|
|
2371
|
-
}),
|
|
2366
|
+
}), Yi = (e, t, n) => {
|
|
2372
2367
|
if (n) return !1;
|
|
2373
2368
|
if (t.watchAll || t.watch.has(e)) return !0;
|
|
2374
2369
|
for (let n of t.watch) if (e.startsWith(n) && e.charAt(n.length) === ".") return !0;
|
|
2375
2370
|
return !1;
|
|
2376
|
-
},
|
|
2371
|
+
}, Xi = (e, t, n, r) => {
|
|
2377
2372
|
for (let i of n || Object.keys(e)) {
|
|
2378
2373
|
if (i === "_f") continue;
|
|
2379
2374
|
let a = n ? G(e, i) : e[i];
|
|
@@ -2381,30 +2376,30 @@ var Ki = (e) => e.render(Gi(e)), qi = () => {
|
|
|
2381
2376
|
let { _f: e } = a;
|
|
2382
2377
|
if (e) {
|
|
2383
2378
|
if (e.refs && e.refs[0] && t(e.refs[0], i) && !r || e.ref && t(e.ref, e.name) && !r) return !0;
|
|
2384
|
-
if (
|
|
2385
|
-
} else if ((B(a) || Array.isArray(a)) &&
|
|
2379
|
+
if (Xi(a, t)) break;
|
|
2380
|
+
} else if ((B(a) || Array.isArray(a)) && Xi(a, t)) break;
|
|
2386
2381
|
}
|
|
2387
2382
|
}
|
|
2388
|
-
},
|
|
2383
|
+
}, Zi = (e, t, n) => {
|
|
2389
2384
|
let r = G(e, n), i = Array.isArray(r) ? r : [];
|
|
2390
|
-
return J(i,
|
|
2391
|
-
}, Z = (e) => B(e) && !Object.keys(e).length,
|
|
2392
|
-
if (!
|
|
2385
|
+
return J(i, Oi, t[n]), J(e, n, i), e;
|
|
2386
|
+
}, Z = (e) => B(e) && !Object.keys(e).length, Qi = (e) => {
|
|
2387
|
+
if (!Ei) return !1;
|
|
2393
2388
|
let t = e ? e.ownerDocument : 0;
|
|
2394
2389
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
2395
|
-
},
|
|
2390
|
+
}, $i = (e) => e.type === "radio", ea = (e) => e instanceof RegExp, ta = (e, t, n, r, i) => t ? {
|
|
2396
2391
|
...n[e],
|
|
2397
2392
|
types: {
|
|
2398
2393
|
...n[e] && n[e].types ? n[e].types : {},
|
|
2399
2394
|
[r]: i || !0
|
|
2400
2395
|
}
|
|
2401
|
-
} : {},
|
|
2396
|
+
} : {}, na = {
|
|
2402
2397
|
value: !1,
|
|
2403
2398
|
isValid: !1
|
|
2404
|
-
},
|
|
2399
|
+
}, ra = {
|
|
2405
2400
|
value: !0,
|
|
2406
2401
|
isValid: !0
|
|
2407
|
-
},
|
|
2402
|
+
}, ia = (e) => {
|
|
2408
2403
|
if (Array.isArray(e)) {
|
|
2409
2404
|
if (e.length > 1) {
|
|
2410
2405
|
let t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
|
|
@@ -2413,30 +2408,30 @@ var Ki = (e) => e.render(Gi(e)), qi = () => {
|
|
|
2413
2408
|
isValid: !!t.length
|
|
2414
2409
|
};
|
|
2415
2410
|
}
|
|
2416
|
-
return e[0].checked && !e[0].disabled ? e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ?
|
|
2411
|
+
return e[0].checked && !e[0].disabled ? e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ? ra : {
|
|
2417
2412
|
value: e[0].value,
|
|
2418
2413
|
isValid: !0
|
|
2419
|
-
} :
|
|
2414
|
+
} : ra : na;
|
|
2420
2415
|
}
|
|
2421
|
-
return
|
|
2422
|
-
},
|
|
2416
|
+
return na;
|
|
2417
|
+
}, aa = {
|
|
2423
2418
|
isValid: !1,
|
|
2424
2419
|
value: null
|
|
2425
|
-
},
|
|
2420
|
+
}, oa = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
|
|
2426
2421
|
isValid: !0,
|
|
2427
2422
|
value: t.value
|
|
2428
|
-
} : e,
|
|
2429
|
-
function
|
|
2423
|
+
} : e, aa) : aa;
|
|
2424
|
+
function sa(e, t, n = "validate") {
|
|
2430
2425
|
if (X(e) || Array.isArray(e) && e.every(X) || K(e) && !e) return {
|
|
2431
2426
|
type: n,
|
|
2432
2427
|
message: X(e) ? e : "",
|
|
2433
2428
|
ref: t
|
|
2434
2429
|
};
|
|
2435
2430
|
}
|
|
2436
|
-
var
|
|
2431
|
+
var ca = (e) => B(e) && !ea(e) ? e : {
|
|
2437
2432
|
value: e,
|
|
2438
2433
|
message: ""
|
|
2439
|
-
},
|
|
2434
|
+
}, la = async (e, t, n, r, i, a) => {
|
|
2440
2435
|
let { ref: o, refs: s, required: c, maxLength: l, minLength: u, min: d, max: f, pattern: p, validate: m, name: h, valueAsNumber: g, mount: _ } = e._f, v = G(n, h);
|
|
2441
2436
|
if (!_ || t.has(h)) return {};
|
|
2442
2437
|
let y = s ? s[0] : o, b = (e) => {
|
|
@@ -2444,29 +2439,29 @@ var la = (e) => B(e) && !ta(e) ? e : {
|
|
|
2444
2439
|
let t = K(e) ? "" : e || "";
|
|
2445
2440
|
s ? s.forEach((e) => e.setCustomValidity(t)) : y.setCustomValidity(t), y.reportValidity();
|
|
2446
2441
|
}
|
|
2447
|
-
}, x = {}, S =
|
|
2442
|
+
}, x = {}, S = $i(o), C = bi(o), w = S || C, T = (g || xi(o)) && W(o.value) && W(v) || Qi(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length, ee = ta.bind(null, h, r, x), te = (e, t, n, r = U.maxLength, i = U.minLength) => {
|
|
2448
2443
|
let a = e ? t : n;
|
|
2449
2444
|
x[h] = {
|
|
2450
2445
|
type: e ? r : i,
|
|
2451
2446
|
message: a,
|
|
2452
2447
|
ref: o,
|
|
2453
|
-
...
|
|
2448
|
+
...ee(e ? r : i, a)
|
|
2454
2449
|
};
|
|
2455
2450
|
};
|
|
2456
|
-
if (a ? !Array.isArray(v) || !v.length : c && (!
|
|
2451
|
+
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || z(v)) || K(v) && !v || C && !ia(s).isValid || S && !oa(s).isValid)) {
|
|
2457
2452
|
let { value: e, message: t } = X(c) ? {
|
|
2458
2453
|
value: !!c,
|
|
2459
2454
|
message: c
|
|
2460
|
-
} :
|
|
2455
|
+
} : ca(c);
|
|
2461
2456
|
if (e && (x[h] = {
|
|
2462
2457
|
type: U.required,
|
|
2463
2458
|
message: t,
|
|
2464
2459
|
ref: y,
|
|
2465
|
-
...
|
|
2460
|
+
...ee(U.required, t)
|
|
2466
2461
|
}, !r)) return b(t), x;
|
|
2467
2462
|
}
|
|
2468
|
-
if (!
|
|
2469
|
-
let e, t, n =
|
|
2463
|
+
if (!T && (!z(d) || !z(f))) {
|
|
2464
|
+
let e, t, n = ca(f), i = ca(d);
|
|
2470
2465
|
if (!z(v) && !R(v) && !isNaN(v)) {
|
|
2471
2466
|
let r = o.valueAsNumber || v && +v;
|
|
2472
2467
|
z(n.value) || (e = r > n.value), z(i.value) || (t = r < i.value);
|
|
@@ -2474,36 +2469,36 @@ var la = (e) => B(e) && !ta(e) ? e : {
|
|
|
2474
2469
|
let r = o.valueAsDate || new Date(v), a = (e) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + e), s = o.type == "time", c = o.type == "week";
|
|
2475
2470
|
X(n.value) && v && (e = s ? a(v) > a(n.value) : c ? v > n.value : r > new Date(n.value)), X(i.value) && v && (t = s ? a(v) < a(i.value) : c ? v < i.value : r < new Date(i.value));
|
|
2476
2471
|
}
|
|
2477
|
-
if ((e || t) && (
|
|
2472
|
+
if ((e || t) && (te(!!e, n.message, i.message, U.max, U.min), !r)) return b(x[h].message), x;
|
|
2478
2473
|
}
|
|
2479
|
-
if ((l || u) && !
|
|
2480
|
-
let e =
|
|
2481
|
-
if ((n || i) && (
|
|
2474
|
+
if ((l || u) && !T && (X(v) || a && Array.isArray(v))) {
|
|
2475
|
+
let e = ca(l), t = ca(u), n = !z(e.value) && v.length > +e.value, i = !z(t.value) && v.length < +t.value;
|
|
2476
|
+
if ((n || i) && (te(n, e.message, t.message), !r)) return b(x[h].message), x;
|
|
2482
2477
|
}
|
|
2483
|
-
if (p && !
|
|
2484
|
-
let { value: e, message: t } =
|
|
2485
|
-
if (
|
|
2478
|
+
if (p && !T && X(v)) {
|
|
2479
|
+
let { value: e, message: t } = ca(p);
|
|
2480
|
+
if (ea(e) && !v.match(e) && (x[h] = {
|
|
2486
2481
|
type: U.pattern,
|
|
2487
2482
|
message: t,
|
|
2488
2483
|
ref: o,
|
|
2489
|
-
...
|
|
2484
|
+
...ee(U.pattern, t)
|
|
2490
2485
|
}, !r)) return b(t), x;
|
|
2491
2486
|
}
|
|
2492
2487
|
if (m) {
|
|
2493
2488
|
if (q(m)) {
|
|
2494
|
-
let e =
|
|
2489
|
+
let e = sa(await m(v, n), y);
|
|
2495
2490
|
if (e && (x[h] = {
|
|
2496
2491
|
...e,
|
|
2497
|
-
...
|
|
2492
|
+
...ee(U.validate, e.message)
|
|
2498
2493
|
}, !r)) return b(e.message), x;
|
|
2499
2494
|
} else if (B(m)) {
|
|
2500
2495
|
let e = {};
|
|
2501
2496
|
for (let t in m) {
|
|
2502
2497
|
if (!Z(e) && !r) break;
|
|
2503
|
-
let i =
|
|
2498
|
+
let i = sa(await m[t](v, n), y, t);
|
|
2504
2499
|
i && (e = {
|
|
2505
2500
|
...i,
|
|
2506
|
-
...
|
|
2501
|
+
...ee(t, i.message)
|
|
2507
2502
|
}, b(i.message), r && (x[h] = e));
|
|
2508
2503
|
}
|
|
2509
2504
|
if (!Z(e) && (x[h] = {
|
|
@@ -2513,24 +2508,24 @@ var la = (e) => B(e) && !ta(e) ? e : {
|
|
|
2513
2508
|
}
|
|
2514
2509
|
}
|
|
2515
2510
|
return b(!0), x;
|
|
2516
|
-
}, Q = (e) => Array.isArray(e) ? e : [e],
|
|
2517
|
-
function
|
|
2511
|
+
}, Q = (e) => Array.isArray(e) ? e : [e], ua = (e, t) => [...e, ...Q(t)], da = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
|
|
2512
|
+
function fa(e, t, n) {
|
|
2518
2513
|
return [
|
|
2519
2514
|
...e.slice(0, t),
|
|
2520
2515
|
...Q(n),
|
|
2521
2516
|
...e.slice(t)
|
|
2522
2517
|
];
|
|
2523
2518
|
}
|
|
2524
|
-
var
|
|
2525
|
-
function
|
|
2519
|
+
var pa = (e, t, n) => Array.isArray(e) ? (W(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], ma = (e, t) => [...Q(t), ...Q(e)], ha = (e) => Array.isArray(e) ? e.filter(Boolean) : [];
|
|
2520
|
+
function ga(e, t) {
|
|
2526
2521
|
let n = 0, r = [...e];
|
|
2527
2522
|
for (let e of t) r.splice(e - n, 1), n++;
|
|
2528
|
-
return
|
|
2523
|
+
return ha(r).length ? r : [];
|
|
2529
2524
|
}
|
|
2530
|
-
var
|
|
2525
|
+
var _a = (e, t) => W(t) ? [] : ga(e, Q(t).sort((e, t) => e - t)), va = (e, t, n) => {
|
|
2531
2526
|
[e[t], e[n]] = [e[n], e[t]];
|
|
2532
2527
|
};
|
|
2533
|
-
function
|
|
2528
|
+
function ya(e, t) {
|
|
2534
2529
|
let n = t.length - 1, r = 0;
|
|
2535
2530
|
for (; r < n;) {
|
|
2536
2531
|
if (z(e)) {
|
|
@@ -2541,31 +2536,31 @@ function ba(e, t) {
|
|
|
2541
2536
|
}
|
|
2542
2537
|
return e;
|
|
2543
2538
|
}
|
|
2544
|
-
function
|
|
2539
|
+
function ba(e) {
|
|
2545
2540
|
for (let t in e) if (e.hasOwnProperty(t) && !W(e[t])) return !1;
|
|
2546
2541
|
return !0;
|
|
2547
2542
|
}
|
|
2548
2543
|
function $(e, t) {
|
|
2549
2544
|
if (X(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
|
|
2550
|
-
let n = Array.isArray(t) ? t :
|
|
2551
|
-
if (n.some((e) =>
|
|
2552
|
-
let r = n.length === 1 ? e :
|
|
2553
|
-
return r && delete r[a], i !== 0 && (B(r) && Z(r) || Array.isArray(r) &&
|
|
2554
|
-
}
|
|
2555
|
-
var
|
|
2556
|
-
function
|
|
2557
|
-
let t =
|
|
2558
|
-
a || n._names.array.add(r),
|
|
2545
|
+
let n = Array.isArray(t) ? t : ji(t) ? [t] : Ni(t);
|
|
2546
|
+
if (n.some((e) => ki.includes(String(e)))) return e;
|
|
2547
|
+
let r = n.length === 1 ? e : ya(e, n), i = n.length - 1, a = n[i];
|
|
2548
|
+
return r && delete r[a], i !== 0 && (B(r) && Z(r) || Array.isArray(r) && ba(r)) && $(e, n.slice(0, -1)), e;
|
|
2549
|
+
}
|
|
2550
|
+
var xa = (e, t, n) => (e[t] = n, e);
|
|
2551
|
+
function Sa(e) {
|
|
2552
|
+
let t = Fi(), { control: n = t, name: r, keyName: i = "id", disabled: a, shouldUnregister: o, rules: s } = e, [c, l] = k.useState(n._getFieldArray(r)), u = k.useRef(n._getFieldArray(r).map(Ki)), d = k.useRef(!1);
|
|
2553
|
+
a || n._names.array.add(r), k.useMemo(() => !a && s && c.length >= 0 && n.register(r, s), [
|
|
2559
2554
|
n,
|
|
2560
2555
|
r,
|
|
2561
2556
|
c.length,
|
|
2562
2557
|
s,
|
|
2563
2558
|
a
|
|
2564
|
-
]),
|
|
2559
|
+
]), Li(() => {
|
|
2565
2560
|
if (!a) return n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
|
|
2566
2561
|
if (t === r || !t) {
|
|
2567
2562
|
let n = G(e, r);
|
|
2568
|
-
Array.isArray(n) ? (l(n), u.current = n.map(
|
|
2563
|
+
Array.isArray(n) ? (l(n), u.current = n.map(Ki)) : t || (l([]), u.current = []);
|
|
2569
2564
|
}
|
|
2570
2565
|
} }).unsubscribe;
|
|
2571
2566
|
}, [
|
|
@@ -2573,29 +2568,29 @@ function Ca(e) {
|
|
|
2573
2568
|
r,
|
|
2574
2569
|
a
|
|
2575
2570
|
]);
|
|
2576
|
-
let f =
|
|
2571
|
+
let f = k.useCallback((e) => {
|
|
2577
2572
|
d.current = !0, n._setFieldArray(r, e);
|
|
2578
2573
|
}, [n, r]);
|
|
2579
|
-
return
|
|
2574
|
+
return k.useEffect(() => {
|
|
2580
2575
|
if (a) {
|
|
2581
2576
|
n._state.actionArrayLengths.delete(r);
|
|
2582
2577
|
return;
|
|
2583
2578
|
}
|
|
2584
|
-
n._state.action = !1, n._state.actionArrayLengths.delete(r),
|
|
2585
|
-
let e =
|
|
2586
|
-
if (d.current && (!e.isOnSubmit || n._formState.isSubmitted) && !
|
|
2579
|
+
n._state.action = !1, n._state.actionArrayLengths.delete(r), Yi(r, n._names) && n._subjects.state.next({ ...n._formState });
|
|
2580
|
+
let e = Ji(n._options.mode);
|
|
2581
|
+
if (d.current && (!e.isOnSubmit || n._formState.isSubmitted) && !Ji(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
|
|
2587
2582
|
n._updateIsValidating([r]);
|
|
2588
2583
|
let t = G(e.errors, r), i = G(n._formState.errors, r), a = i && (i.type || i.root?.type), o = i && (i.message || i.root?.message);
|
|
2589
|
-
(i ? !t && a || t && (a !== t.type || o !== t.message) : t && t.type) && (t ? B(t) && !Object.keys(t).some((e) => !Number.isNaN(+e)) ?
|
|
2584
|
+
(i ? !t && a || t && (a !== t.type || o !== t.message) : t && t.type) && (t ? B(t) && !Object.keys(t).some((e) => !Number.isNaN(+e)) ? Zi(n._formState.errors, { [r]: t }, r) : J(n._formState.errors, r, t) : $(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
|
|
2590
2585
|
});
|
|
2591
2586
|
else {
|
|
2592
2587
|
let e = G(n._fields, r);
|
|
2593
|
-
e && e._f && !(
|
|
2588
|
+
e && e._f && !(Ji(n._options.reValidateMode).isOnSubmit && Ji(n._options.mode).isOnSubmit) && la(e, n._names.disabled, n._formValues, n._options.criteriaMode === H.all, n._options.shouldUseNativeValidation, !0).then((e) => !Z(e) && n._subjects.state.next({ errors: Zi(n._formState.errors, e, r) }));
|
|
2594
2589
|
}
|
|
2595
2590
|
d.current && n._subjects.state.next({
|
|
2596
2591
|
name: r,
|
|
2597
2592
|
values: V(n._formValues)
|
|
2598
|
-
}), n._names.focus &&
|
|
2593
|
+
}), n._names.focus && Xi(n._fields, (e, t) => {
|
|
2599
2594
|
if (n._names.focus && t.startsWith(n._names.focus) && e.focus) return e.focus(), 1;
|
|
2600
2595
|
}), n._names.focus = "", n._setValid(), d.current = !1;
|
|
2601
2596
|
}, [
|
|
@@ -2603,7 +2598,7 @@ function Ca(e) {
|
|
|
2603
2598
|
r,
|
|
2604
2599
|
n,
|
|
2605
2600
|
a
|
|
2606
|
-
]),
|
|
2601
|
+
]), k.useEffect(() => (a || !G(n._formValues, r) && n._setFieldArray(r), () => {
|
|
2607
2602
|
if (n._state.actionArrayLengths.delete(r), a) return;
|
|
2608
2603
|
let e = !(n._options.shouldUnregister || o);
|
|
2609
2604
|
d.current && e && n._subjects.state.next({
|
|
@@ -2620,10 +2615,10 @@ function Ca(e) {
|
|
|
2620
2615
|
o,
|
|
2621
2616
|
a
|
|
2622
2617
|
]), {
|
|
2623
|
-
swap:
|
|
2618
|
+
swap: k.useCallback((e, t) => {
|
|
2624
2619
|
if (a) return;
|
|
2625
2620
|
let i = n._getFieldArray(r);
|
|
2626
|
-
|
|
2621
|
+
va(i, e, t), va(u.current, e, t), f(i), l(i), n._setFieldArray(r, i, va, {
|
|
2627
2622
|
argA: e,
|
|
2628
2623
|
argB: t
|
|
2629
2624
|
}, !1);
|
|
@@ -2633,10 +2628,10 @@ function Ca(e) {
|
|
|
2633
2628
|
n,
|
|
2634
2629
|
a
|
|
2635
2630
|
]),
|
|
2636
|
-
move:
|
|
2631
|
+
move: k.useCallback((e, t) => {
|
|
2637
2632
|
if (a) return;
|
|
2638
2633
|
let i = n._getFieldArray(r);
|
|
2639
|
-
|
|
2634
|
+
pa(i, e, t), pa(u.current, e, t), f(i), l(i), n._setFieldArray(r, i, pa, {
|
|
2640
2635
|
argA: e,
|
|
2641
2636
|
argB: t
|
|
2642
2637
|
}, !1);
|
|
@@ -2646,42 +2641,42 @@ function Ca(e) {
|
|
|
2646
2641
|
n,
|
|
2647
2642
|
a
|
|
2648
2643
|
]),
|
|
2649
|
-
prepend:
|
|
2644
|
+
prepend: k.useCallback((e, t) => {
|
|
2650
2645
|
if (a) return;
|
|
2651
|
-
let i = Q(V(e)), o =
|
|
2652
|
-
n._names.focus =
|
|
2646
|
+
let i = Q(V(e)), o = ma(n._getFieldArray(r), i);
|
|
2647
|
+
n._names.focus = qi(r, 0, t), u.current = ma(u.current, i.map(Ki)), f(o), l(o), n._setFieldArray(r, o, ma, { argA: da(e) });
|
|
2653
2648
|
}, [
|
|
2654
2649
|
f,
|
|
2655
2650
|
r,
|
|
2656
2651
|
n,
|
|
2657
2652
|
a
|
|
2658
2653
|
]),
|
|
2659
|
-
append:
|
|
2654
|
+
append: k.useCallback((e, t) => {
|
|
2660
2655
|
if (a) return;
|
|
2661
|
-
let i = Q(V(e)), o =
|
|
2662
|
-
n._names.focus =
|
|
2656
|
+
let i = Q(V(e)), o = ua(n._getFieldArray(r), i);
|
|
2657
|
+
n._names.focus = qi(r, o.length - 1, t), u.current = ua(u.current, i.map(Ki)), f(o), l(o), n._setFieldArray(r, o, ua, { argA: da(e) });
|
|
2663
2658
|
}, [
|
|
2664
2659
|
f,
|
|
2665
2660
|
r,
|
|
2666
2661
|
n,
|
|
2667
2662
|
a
|
|
2668
2663
|
]),
|
|
2669
|
-
remove:
|
|
2664
|
+
remove: k.useCallback((e) => {
|
|
2670
2665
|
if (a) return;
|
|
2671
|
-
let t =
|
|
2672
|
-
u.current =
|
|
2666
|
+
let t = _a(n._getFieldArray(r), e);
|
|
2667
|
+
u.current = _a(u.current, e), f(t), l(t), !Array.isArray(G(n._fields, r)) && J(n._fields, r, void 0), n._setFieldArray(r, t, _a, { argA: e });
|
|
2673
2668
|
}, [
|
|
2674
2669
|
f,
|
|
2675
2670
|
r,
|
|
2676
2671
|
n,
|
|
2677
2672
|
a
|
|
2678
2673
|
]),
|
|
2679
|
-
insert:
|
|
2674
|
+
insert: k.useCallback((e, t, i) => {
|
|
2680
2675
|
if (a) return;
|
|
2681
|
-
let o = Q(V(t)), s =
|
|
2682
|
-
n._names.focus =
|
|
2676
|
+
let o = Q(V(t)), s = fa(n._getFieldArray(r), e, o);
|
|
2677
|
+
n._names.focus = qi(r, e, i), u.current = fa(u.current, e, o.map(Ki)), f(s), l(s), n._setFieldArray(r, s, fa, {
|
|
2683
2678
|
argA: e,
|
|
2684
|
-
argB:
|
|
2679
|
+
argB: da(t)
|
|
2685
2680
|
});
|
|
2686
2681
|
}, [
|
|
2687
2682
|
f,
|
|
@@ -2689,10 +2684,10 @@ function Ca(e) {
|
|
|
2689
2684
|
n,
|
|
2690
2685
|
a
|
|
2691
2686
|
]),
|
|
2692
|
-
update:
|
|
2687
|
+
update: k.useCallback((e, t) => {
|
|
2693
2688
|
if (a) return;
|
|
2694
|
-
let i = V(t), o =
|
|
2695
|
-
u.current = [...o].map((t, n) => !t || n === e ?
|
|
2689
|
+
let i = V(t), o = xa(n._getFieldArray(r), e, i);
|
|
2690
|
+
u.current = [...o].map((t, n) => !t || n === e ? Ki() : u.current[n]), f(o), l([...o]), n._setFieldArray(r, o, xa, {
|
|
2696
2691
|
argA: e,
|
|
2697
2692
|
argB: i
|
|
2698
2693
|
}, !0, !1);
|
|
@@ -2702,20 +2697,20 @@ function Ca(e) {
|
|
|
2702
2697
|
n,
|
|
2703
2698
|
a
|
|
2704
2699
|
]),
|
|
2705
|
-
replace:
|
|
2700
|
+
replace: k.useCallback((e) => {
|
|
2706
2701
|
if (a) return;
|
|
2707
2702
|
let t = Q(V(e));
|
|
2708
|
-
u.current = t.map(
|
|
2703
|
+
u.current = t.map(Ki), f([...t]), l([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
|
|
2709
2704
|
}, [
|
|
2710
2705
|
f,
|
|
2711
2706
|
r,
|
|
2712
2707
|
n,
|
|
2713
2708
|
a
|
|
2714
2709
|
]),
|
|
2715
|
-
fields:
|
|
2710
|
+
fields: k.useMemo(() => c.map((e, t) => ({
|
|
2716
2711
|
...e,
|
|
2717
2712
|
...K(a) ? { disabled: a } : {},
|
|
2718
|
-
[i]: u.current[t] ||
|
|
2713
|
+
[i]: u.current[t] || Ki()
|
|
2719
2714
|
})), [
|
|
2720
2715
|
c,
|
|
2721
2716
|
i,
|
|
@@ -2723,16 +2718,16 @@ function Ca(e) {
|
|
|
2723
2718
|
])
|
|
2724
2719
|
};
|
|
2725
2720
|
}
|
|
2726
|
-
var
|
|
2721
|
+
var Ca = (e) => {
|
|
2727
2722
|
let t = {};
|
|
2728
|
-
for (let n of Object.keys(e)) if (
|
|
2729
|
-
let r =
|
|
2723
|
+
for (let n of Object.keys(e)) if (Si(e[n]) && e[n] !== null && !R(e[n])) {
|
|
2724
|
+
let r = Ca(e[n]);
|
|
2730
2725
|
for (let e of Object.keys(r)) t[`${n}.${e}`] = r[e];
|
|
2731
2726
|
} else t[n] = e[n];
|
|
2732
2727
|
return t;
|
|
2733
|
-
},
|
|
2734
|
-
|
|
2735
|
-
var
|
|
2728
|
+
}, wa = k.createContext(null);
|
|
2729
|
+
wa.displayName = "HookFormContext";
|
|
2730
|
+
var Ta = () => {
|
|
2736
2731
|
let e = [];
|
|
2737
2732
|
return {
|
|
2738
2733
|
get observers() {
|
|
@@ -2749,65 +2744,65 @@ var Ea = () => {
|
|
|
2749
2744
|
}
|
|
2750
2745
|
};
|
|
2751
2746
|
};
|
|
2752
|
-
function
|
|
2747
|
+
function Ea(e, t) {
|
|
2753
2748
|
let n = {};
|
|
2754
2749
|
for (let r in e) if (e.hasOwnProperty(r)) {
|
|
2755
2750
|
let i = e[r], a = t[r];
|
|
2756
2751
|
if (i && B(i) && a) {
|
|
2757
|
-
let e =
|
|
2752
|
+
let e = Ea(i, a);
|
|
2758
2753
|
B(e) && (n[r] = e);
|
|
2759
2754
|
} else e[r] && (n[r] = a);
|
|
2760
2755
|
}
|
|
2761
2756
|
return n;
|
|
2762
2757
|
}
|
|
2763
|
-
var
|
|
2764
|
-
function
|
|
2758
|
+
var Da = (e) => e.type === "select-multiple", Oa = (e) => $i(e) || bi(e), ka = (e) => Qi(e) && e.isConnected;
|
|
2759
|
+
function Aa(e) {
|
|
2765
2760
|
return Array.isArray(e) || B(e);
|
|
2766
2761
|
}
|
|
2767
|
-
function
|
|
2762
|
+
function ja(e, t, n = "", r = []) {
|
|
2768
2763
|
for (let i in e) {
|
|
2769
2764
|
let a = n ? `${n}.${i}` : i, o = e[i];
|
|
2770
|
-
|
|
2765
|
+
Aa(o) && Aa(G(t, a)) ? ja(o, t, a, r) : r.push(a);
|
|
2771
2766
|
}
|
|
2772
2767
|
return r;
|
|
2773
2768
|
}
|
|
2774
|
-
var
|
|
2769
|
+
var Ma = (e) => {
|
|
2775
2770
|
for (let t in e) if (q(e[t])) return !0;
|
|
2776
2771
|
return !1;
|
|
2777
2772
|
};
|
|
2778
|
-
function
|
|
2779
|
-
return Array.isArray(e) || B(e) && !
|
|
2773
|
+
function Na(e) {
|
|
2774
|
+
return Array.isArray(e) || B(e) && !Ma(e);
|
|
2780
2775
|
}
|
|
2781
|
-
function
|
|
2776
|
+
function Pa(e) {
|
|
2782
2777
|
return !!(e && "_f" in e);
|
|
2783
2778
|
}
|
|
2784
|
-
function
|
|
2779
|
+
function Fa(e) {
|
|
2785
2780
|
return Array.isArray(e) ? !e.some((e) => !W(e)) : !Object.keys(e).length;
|
|
2786
2781
|
}
|
|
2787
|
-
function
|
|
2782
|
+
function Ia(e, t) {
|
|
2788
2783
|
Array.isArray(e) ? e[t] = void 0 : delete e[t];
|
|
2789
2784
|
}
|
|
2790
|
-
function
|
|
2785
|
+
function La(e, t = {}, n) {
|
|
2791
2786
|
for (let r in e) {
|
|
2792
2787
|
let i = e[r], a = n && n[r];
|
|
2793
|
-
|
|
2788
|
+
Na(i) && (!Array.isArray(i) || !Pa(a)) ? (t[r] = Array.isArray(i) ? [] : {}, La(i, t[r], a), Fa(t[r]) && Ia(t, r)) : W(i) || (t[r] = !0);
|
|
2794
2789
|
}
|
|
2795
2790
|
return t;
|
|
2796
2791
|
}
|
|
2797
|
-
function
|
|
2798
|
-
n ||=
|
|
2792
|
+
function Ra(e, t, n, r) {
|
|
2793
|
+
n ||= La(t, {}, r);
|
|
2799
2794
|
for (let i in e) {
|
|
2800
2795
|
let a = e[i], o = r && r[i];
|
|
2801
|
-
|
|
2796
|
+
Na(a) && (!Array.isArray(a) || !Pa(o)) ? (W(t) || Ri(n[i]) ? n[i] = La(a, Array.isArray(a) ? [] : {}, o) : Ra(a, z(t) ? {} : t[i], n[i], o), Fa(n[i]) && Ia(n, i)) : Y(a, t[i]) ? Ia(n, i) : n[i] = !0;
|
|
2802
2797
|
}
|
|
2803
2798
|
return n;
|
|
2804
2799
|
}
|
|
2805
|
-
var
|
|
2806
|
-
function
|
|
2800
|
+
var za = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r }) => W(e) ? e : t ? e === "" ? NaN : e && +e : n && X(e) ? new Date(e) : r ? r(e) : e;
|
|
2801
|
+
function Ba(e) {
|
|
2807
2802
|
let t = e.ref;
|
|
2808
|
-
return
|
|
2803
|
+
return xi(t) ? t.files : $i(t) ? oa(e.refs).value : Da(t) ? [...t.selectedOptions].map(({ value: e }) => e) : bi(t) ? ia(e.refs).value : za(t.value, e);
|
|
2809
2804
|
}
|
|
2810
|
-
var
|
|
2805
|
+
var Va = (e, t, n, r) => {
|
|
2811
2806
|
let i = {};
|
|
2812
2807
|
for (let n of e) {
|
|
2813
2808
|
let e = G(t, n);
|
|
@@ -2819,17 +2814,17 @@ var Ha = (e, t, n, r) => {
|
|
|
2819
2814
|
fields: i,
|
|
2820
2815
|
shouldUseNativeValidation: r
|
|
2821
2816
|
};
|
|
2822
|
-
},
|
|
2817
|
+
}, Ha = (e) => W(e) ? e : ea(e) ? e.source : B(e) ? ea(e.value) ? e.value.source : e.value : e, Ua = "AsyncFunction", Wa = (e) => {
|
|
2823
2818
|
if (!e || !e.validate) return !1;
|
|
2824
|
-
if (q(e.validate)) return e.validate.constructor.name ===
|
|
2819
|
+
if (q(e.validate)) return e.validate.constructor.name === Ua;
|
|
2825
2820
|
if (B(e.validate)) {
|
|
2826
|
-
for (let t in e.validate) if (e.validate[t].constructor.name ===
|
|
2821
|
+
for (let t in e.validate) if (e.validate[t].constructor.name === Ua) return !0;
|
|
2827
2822
|
}
|
|
2828
2823
|
return !1;
|
|
2829
|
-
},
|
|
2830
|
-
function
|
|
2824
|
+
}, Ga = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
2825
|
+
function Ka(e, t, n) {
|
|
2831
2826
|
let r = G(e, n);
|
|
2832
|
-
if (r ||
|
|
2827
|
+
if (r || ji(n)) return {
|
|
2833
2828
|
error: r,
|
|
2834
2829
|
name: n
|
|
2835
2830
|
};
|
|
@@ -2849,21 +2844,21 @@ function qa(e, t, n) {
|
|
|
2849
2844
|
}
|
|
2850
2845
|
return { name: n };
|
|
2851
2846
|
}
|
|
2852
|
-
var
|
|
2847
|
+
var qa = (e, t, n, r) => {
|
|
2853
2848
|
n(e);
|
|
2854
2849
|
let i = Object.keys(e).filter((e) => e !== "name");
|
|
2855
2850
|
return !i.length || r && i.length >= Object.keys(t).length || i.find((e) => t[e] === (!r || H.all));
|
|
2856
|
-
},
|
|
2851
|
+
}, Ja = (e, t, n) => !e || !t || e === t || Q(e).some((e) => e && (n ? e === t || e.startsWith(t + ".") : e.startsWith(t) || t.startsWith(e))), Ya = (e, t, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : (n ? r.isOnChange : i.isOnChange) ? e : !0, Xa = (e, t) => {
|
|
2857
2852
|
let n = G(e, t);
|
|
2858
|
-
!
|
|
2859
|
-
},
|
|
2853
|
+
!ha(n).length && !n?.root && $(e, t);
|
|
2854
|
+
}, Za = {
|
|
2860
2855
|
mode: H.onSubmit,
|
|
2861
2856
|
reValidateMode: H.onChange,
|
|
2862
2857
|
shouldFocusError: !0
|
|
2863
|
-
},
|
|
2858
|
+
}, Qa = "form", $a = (e, t) => {
|
|
2864
2859
|
for (let n in e) n in t || delete e[n];
|
|
2865
2860
|
Object.assign(e, t);
|
|
2866
|
-
},
|
|
2861
|
+
}, eo = {
|
|
2867
2862
|
submitCount: 0,
|
|
2868
2863
|
isDirty: !1,
|
|
2869
2864
|
isReady: !1,
|
|
@@ -2876,12 +2871,12 @@ var Ja = (e, t, n, r) => {
|
|
|
2876
2871
|
dirtyFields: {},
|
|
2877
2872
|
validatingFields: {}
|
|
2878
2873
|
};
|
|
2879
|
-
function
|
|
2874
|
+
function to(e = {}) {
|
|
2880
2875
|
let t = {
|
|
2881
|
-
...
|
|
2876
|
+
...Za,
|
|
2882
2877
|
...e
|
|
2883
2878
|
}, n = {
|
|
2884
|
-
...V(
|
|
2879
|
+
...V(eo),
|
|
2885
2880
|
isLoading: q(t.defaultValues),
|
|
2886
2881
|
errors: t.errors || {},
|
|
2887
2882
|
disabled: t.disabled || !1
|
|
@@ -2898,7 +2893,7 @@ function no(e = {}) {
|
|
|
2898
2893
|
array: /* @__PURE__ */ new Set(),
|
|
2899
2894
|
watch: /* @__PURE__ */ new Set(),
|
|
2900
2895
|
registerName: /* @__PURE__ */ new Set()
|
|
2901
|
-
}, c = {}, l = {}, u = 0, d =
|
|
2896
|
+
}, c = {}, l = {}, u = 0, d = Ji(t.mode), f = Ji(t.reValidateMode), p = {
|
|
2902
2897
|
isDirty: !1,
|
|
2903
2898
|
dirtyFields: !1,
|
|
2904
2899
|
validatingFields: !1,
|
|
@@ -2907,17 +2902,17 @@ function no(e = {}) {
|
|
|
2907
2902
|
isValid: !1,
|
|
2908
2903
|
errors: !1
|
|
2909
2904
|
}, m = { ...p }, h = { ...m }, g = {
|
|
2910
|
-
array:
|
|
2911
|
-
state:
|
|
2905
|
+
array: Ta(),
|
|
2906
|
+
state: Ta()
|
|
2912
2907
|
}, _ = 0, v = t.criteriaMode === H.all, y = (e, t) => (n) => {
|
|
2913
2908
|
clearTimeout(l[e]), l[e] = setTimeout(t, n);
|
|
2914
2909
|
}, b = async (e) => {
|
|
2915
2910
|
if (!o.keepIsValid && !t.disabled && (m.isValid || h.isValid || e)) {
|
|
2916
2911
|
let e = ++_, i;
|
|
2917
|
-
t.resolver ? (i = Z((await
|
|
2912
|
+
t.resolver ? (i = Z((await E()).errors), e === _ && x()) : i = await k({
|
|
2918
2913
|
fields: r,
|
|
2919
2914
|
onlyCheckValid: !0,
|
|
2920
|
-
eventType:
|
|
2915
|
+
eventType: Di.VALID
|
|
2921
2916
|
}), e === _ && i !== n.isValid && g.state.next({ isValid: i });
|
|
2922
2917
|
}
|
|
2923
2918
|
}, x = (e, r) => {
|
|
@@ -2928,7 +2923,7 @@ function no(e = {}) {
|
|
|
2928
2923
|
isValidating: !Z(n.validatingFields)
|
|
2929
2924
|
}));
|
|
2930
2925
|
}, S = () => {
|
|
2931
|
-
n.dirtyFields =
|
|
2926
|
+
n.dirtyFields = Ra(i, a, void 0, r);
|
|
2932
2927
|
}, C = (e, i = [], s, c, l = !0, u = !0) => {
|
|
2933
2928
|
if (c && s && !t.disabled) {
|
|
2934
2929
|
if (o.action = !0, !o.actionArrayLengths.has(e)) {
|
|
@@ -2941,7 +2936,7 @@ function no(e = {}) {
|
|
|
2941
2936
|
}
|
|
2942
2937
|
if (u && Array.isArray(G(n.errors, e))) {
|
|
2943
2938
|
let t = G(n.errors, e), r = t.root, i = s(t, c.argA, c.argB) || t;
|
|
2944
|
-
r && (i.root = r), l && J(n.errors, e, i),
|
|
2939
|
+
r && (i.root = r), l && J(n.errors, e, i), Xa(n.errors, e);
|
|
2945
2940
|
}
|
|
2946
2941
|
if ((m.touchedFields || h.touchedFields) && u && Array.isArray(G(n.touchedFields, e))) {
|
|
2947
2942
|
let t = s(G(n.touchedFields, e), c.argA, c.argB);
|
|
@@ -2949,29 +2944,29 @@ function no(e = {}) {
|
|
|
2949
2944
|
}
|
|
2950
2945
|
(m.dirtyFields || h.dirtyFields) && S(), g.state.next({
|
|
2951
2946
|
name: e,
|
|
2952
|
-
isDirty:
|
|
2947
|
+
isDirty: A(e, i),
|
|
2953
2948
|
dirtyFields: n.dirtyFields,
|
|
2954
2949
|
errors: n.errors,
|
|
2955
2950
|
isValid: n.isValid
|
|
2956
2951
|
});
|
|
2957
2952
|
} else J(a, e, i);
|
|
2958
|
-
},
|
|
2953
|
+
}, w = (e, t) => {
|
|
2959
2954
|
J(n.errors, e, t), n.errors = { ...n.errors }, g.state.next({ errors: n.errors });
|
|
2960
|
-
},
|
|
2955
|
+
}, T = (e) => {
|
|
2961
2956
|
n.errors = e, g.state.next({
|
|
2962
2957
|
errors: n.errors,
|
|
2963
2958
|
isValid: !1
|
|
2964
2959
|
});
|
|
2965
|
-
},
|
|
2966
|
-
let t =
|
|
2960
|
+
}, ee = (e) => {
|
|
2961
|
+
let t = ji(e) ? [e] : Ni(e), n = a, r = i;
|
|
2967
2962
|
for (let e = 0; e < t.length - 1; e++) {
|
|
2968
2963
|
let i = t[e];
|
|
2969
2964
|
if (n = z(n) ? n : n[i], r = z(r) ? r : r[i], n === null && r !== null) return !0;
|
|
2970
2965
|
}
|
|
2971
2966
|
return !1;
|
|
2972
|
-
},
|
|
2967
|
+
}, te = (e) => {
|
|
2973
2968
|
if (!o.actionArrayLengths.size) return !1;
|
|
2974
|
-
let t =
|
|
2969
|
+
let t = ji(e) ? [e] : Ni(e), n = a, r = "", i = -1, s = 0;
|
|
2975
2970
|
for (let e = 0; e < t.length; e++) {
|
|
2976
2971
|
if (z(n)) return !1;
|
|
2977
2972
|
let a = t[e];
|
|
@@ -2979,19 +2974,19 @@ function no(e = {}) {
|
|
|
2979
2974
|
o.actionArrayLengths.has(r) && (i = e + 1, s = o.actionArrayLengths.get(r)), n = n[a];
|
|
2980
2975
|
}
|
|
2981
2976
|
return !1;
|
|
2982
|
-
},
|
|
2977
|
+
}, ne = (t, c, l, u) => {
|
|
2983
2978
|
let d = G(r, t);
|
|
2984
2979
|
if (d) {
|
|
2985
|
-
if (
|
|
2980
|
+
if (ee(t) || te(t)) return;
|
|
2986
2981
|
let r = W(G(a, t)), f = G(a, t, W(l) ? G(i, t) : l);
|
|
2987
|
-
W(f) || u && u.defaultChecked || c ? J(a, t, c ? f :
|
|
2982
|
+
W(f) || u && u.defaultChecked || c ? J(a, t, c ? f : Ba(d._f)) : ce(t, f), o.mount && !o.action && (b(), r && n.isDirty && (m.isDirty || h.isDirty) && (A() || (n.isDirty = !1, g.state.next({ ...n }))), e.shouldUnregister && r && !W(G(a, t)) && Yi(t, s) && (o.watch = !0));
|
|
2988
2983
|
}
|
|
2989
|
-
},
|
|
2984
|
+
}, re = (e, o, s, c, l) => {
|
|
2990
2985
|
let u = !1, d = !1, f = { name: e };
|
|
2991
2986
|
if (!t.disabled || c === !0) {
|
|
2992
2987
|
if (!s || c) {
|
|
2993
2988
|
let t = Y(G(i, e), o);
|
|
2994
|
-
(m.isDirty || h.isDirty) && (d = n.isDirty, n.isDirty = f.isDirty = !t ||
|
|
2989
|
+
(m.isDirty || h.isDirty) && (d = n.isDirty, n.isDirty = f.isDirty = !t || A(), u = d !== f.isDirty), d = !!G(n.dirtyFields, e), t === n.isDirty ? t ? $(n.dirtyFields, e) : J(n.dirtyFields, e, !0) : $a(n.dirtyFields, Ra(i, a, void 0, r)), f.dirtyFields = n.dirtyFields, u ||= (m.dirtyFields || h.dirtyFields) && d !== !t;
|
|
2995
2990
|
}
|
|
2996
2991
|
if (s) {
|
|
2997
2992
|
let t = G(n.touchedFields, e);
|
|
@@ -3000,9 +2995,9 @@ function no(e = {}) {
|
|
|
3000
2995
|
u && l && g.state.next(f);
|
|
3001
2996
|
}
|
|
3002
2997
|
return u ? f : {};
|
|
3003
|
-
},
|
|
2998
|
+
}, ie = (e, r, i, a) => {
|
|
3004
2999
|
let o = G(n.errors, e), s = (m.isValid || h.isValid) && K(r) && n.isValid !== r;
|
|
3005
|
-
if (t.delayError && i ? (c[e] = y(e, () =>
|
|
3000
|
+
if (t.delayError && i ? (c[e] = y(e, () => w(e, i)), c[e](t.delayError)) : (clearTimeout(l[e]), delete c[e], i ? J(n.errors, e, i) : $(n.errors, e), n.errors = { ...n.errors }), (i ? !Y(o, i) : o) || !Z(a) || s) {
|
|
3006
3001
|
let t = {
|
|
3007
3002
|
...a,
|
|
3008
3003
|
...s && K(r) ? { isValid: r } : {},
|
|
@@ -3014,17 +3009,17 @@ function no(e = {}) {
|
|
|
3014
3009
|
...t
|
|
3015
3010
|
}, g.state.next(t);
|
|
3016
3011
|
}
|
|
3017
|
-
},
|
|
3018
|
-
let { errors: t } = await
|
|
3012
|
+
}, E = async (e) => (x(e, !0), await t.resolver(a, t.context, Va(e || s.mount, r, t.criteriaMode, t.shouldUseNativeValidation))), D = async (e) => {
|
|
3013
|
+
let { errors: t } = await E(e);
|
|
3019
3014
|
if (x(e), e) {
|
|
3020
3015
|
for (let r of e) {
|
|
3021
3016
|
let e = G(t, r);
|
|
3022
|
-
e ? s.array.has(r) && B(e) && !Object.keys(e).some((e) => !Number.isNaN(Number(e))) ?
|
|
3017
|
+
e ? s.array.has(r) && B(e) && !Object.keys(e).some((e) => !Number.isNaN(Number(e))) ? Zi(n.errors, { [r]: e }, r) : J(n.errors, r, e) : $(n.errors, r);
|
|
3023
3018
|
}
|
|
3024
3019
|
n.errors = { ...n.errors };
|
|
3025
3020
|
} else n.errors = t;
|
|
3026
3021
|
return t;
|
|
3027
|
-
},
|
|
3022
|
+
}, O = async ({ name: t, eventType: r }) => {
|
|
3028
3023
|
if (e.validate) {
|
|
3029
3024
|
let i = await e.validate({
|
|
3030
3025
|
formValues: a,
|
|
@@ -3034,23 +3029,23 @@ function no(e = {}) {
|
|
|
3034
3029
|
});
|
|
3035
3030
|
if (B(i)) for (let e in i) {
|
|
3036
3031
|
let t = i[e];
|
|
3037
|
-
t &&
|
|
3032
|
+
t && _e(`${Qa}.${e}`, {
|
|
3038
3033
|
message: X(t.message) ? t.message : "",
|
|
3039
3034
|
type: t.type || U.validate
|
|
3040
3035
|
});
|
|
3041
3036
|
}
|
|
3042
|
-
else X(i) || !i ?
|
|
3037
|
+
else X(i) || !i ? _e(Qa, {
|
|
3043
3038
|
message: i || "",
|
|
3044
3039
|
type: U.validate
|
|
3045
|
-
}) :
|
|
3040
|
+
}) : ge(Qa);
|
|
3046
3041
|
return i;
|
|
3047
3042
|
}
|
|
3048
3043
|
return !0;
|
|
3049
|
-
},
|
|
3044
|
+
}, k = async ({ fields: r, onlyCheckValid: i, name: o, eventType: c, context: l = {
|
|
3050
3045
|
valid: !0,
|
|
3051
3046
|
runRootValidation: !1
|
|
3052
3047
|
} }) => {
|
|
3053
|
-
if (e.validate && (l.runRootValidation = !0, !await
|
|
3048
|
+
if (e.validate && (l.runRootValidation = !0, !await O({
|
|
3054
3049
|
name: o,
|
|
3055
3050
|
eventType: c
|
|
3056
3051
|
}) && (l.valid = !1, i))) return l.valid;
|
|
@@ -3059,12 +3054,12 @@ function no(e = {}) {
|
|
|
3059
3054
|
if (u) {
|
|
3060
3055
|
let { _f: r, ...d } = u;
|
|
3061
3056
|
if (r) {
|
|
3062
|
-
let o = s.array.has(r.name), c = u._f &&
|
|
3057
|
+
let o = s.array.has(r.name), c = u._f && Wa(u._f), d = m.validatingFields || m.isValidating || h.validatingFields || h.isValidating;
|
|
3063
3058
|
c && d && x([r.name], !0);
|
|
3064
|
-
let f = await
|
|
3065
|
-
if (c && d && x([r.name]), f[r.name] && (l.valid = !1, i) || (!i && (G(f, r.name) ? o ?
|
|
3059
|
+
let f = await la(u, s.disabled, a, v, t.shouldUseNativeValidation && !i, o);
|
|
3060
|
+
if (c && d && x([r.name]), f[r.name] && (l.valid = !1, i) || (!i && (G(f, r.name) ? o ? Zi(n.errors, f, r.name) : J(n.errors, r.name, f[r.name]) : $(n.errors, r.name)), e.shouldUseNativeValidation && f[r.name])) break;
|
|
3066
3061
|
}
|
|
3067
|
-
!Z(d) && await
|
|
3062
|
+
!Z(d) && await k({
|
|
3068
3063
|
context: l,
|
|
3069
3064
|
onlyCheckValid: i,
|
|
3070
3065
|
fields: d,
|
|
@@ -3074,25 +3069,25 @@ function no(e = {}) {
|
|
|
3074
3069
|
}
|
|
3075
3070
|
}
|
|
3076
3071
|
return l.valid;
|
|
3077
|
-
},
|
|
3072
|
+
}, ae = () => {
|
|
3078
3073
|
for (let e of s.unMount) {
|
|
3079
3074
|
let t = G(r, e);
|
|
3080
|
-
t && (t._f.refs ? t._f.refs.every((e) => !
|
|
3075
|
+
t && (t._f.refs ? t._f.refs.every((e) => !ka(e)) : !ka(t._f.ref)) && xe(e);
|
|
3081
3076
|
}
|
|
3082
3077
|
s.unMount = /* @__PURE__ */ new Set();
|
|
3083
|
-
},
|
|
3078
|
+
}, A = (e, t) => (e && t && J(a, e, t), !Y(o.mount ? a : i, i)), oe = (e, t, n) => Hi(e, s, { ...o.mount ? a : W(t) || X(e) ? i : t }, n, t), se = (e) => ha(G(o.mount ? a : i, e, t.shouldUnregister ? G(i, e, []) : [])), ce = (e, t, n = {}, i = !1, o = !1, s = !1) => {
|
|
3084
3079
|
let c = G(r, e), l = t;
|
|
3085
3080
|
if (c) {
|
|
3086
3081
|
let n = c._f;
|
|
3087
|
-
n && (!n.disabled && J(a, e,
|
|
3082
|
+
n && (!n.disabled && J(a, e, za(t, n)), l = Qi(n.ref) && z(t) ? "" : t, Da(n.ref) ? [...n.ref.options].forEach((e) => e.selected = l.includes(e.value)) : n.refs ? bi(n.ref) ? n.refs.forEach((e) => {
|
|
3088
3083
|
(!e.defaultChecked || !e.disabled) && (Array.isArray(l) ? e.checked = !!l.find((t) => t === e.value) : e.checked = l === e.value || !!l);
|
|
3089
|
-
}) : n.refs.forEach((e) => e.checked = e.value === l) :
|
|
3084
|
+
}) : n.refs.forEach((e) => e.checked = e.value === l) : xi(n.ref) ? n.ref.value = "" : (n.ref.value = l, !n.ref.type && !o && !s && g.state.next({
|
|
3090
3085
|
name: e,
|
|
3091
3086
|
values: i ? a : V(a)
|
|
3092
3087
|
})));
|
|
3093
3088
|
}
|
|
3094
|
-
(n.shouldDirty || n.shouldTouch) &&
|
|
3095
|
-
},
|
|
3089
|
+
(n.shouldDirty || n.shouldTouch) && re(e, l, n.shouldTouch, n.shouldDirty, !o), n.shouldValidate && me(e, { delayError: n.delayError });
|
|
3090
|
+
}, le = (e, t, n, i = !1, o = !1, c = !1) => {
|
|
3096
3091
|
s.array.has(e) && g.array.next({
|
|
3097
3092
|
name: e,
|
|
3098
3093
|
values: i ? a : V(a)
|
|
@@ -3100,9 +3095,9 @@ function no(e = {}) {
|
|
|
3100
3095
|
for (let a in t) {
|
|
3101
3096
|
if (!t.hasOwnProperty(a)) return;
|
|
3102
3097
|
let l = t[a], u = e + "." + a, d = G(r, u);
|
|
3103
|
-
(s.array.has(e) || B(l) || d && !d._f) && !R(l) ?
|
|
3098
|
+
(s.array.has(e) || B(l) || d && !d._f) && !R(l) ? le(u, l, n, i, o, c) : ce(u, l, n, i, o, c);
|
|
3104
3099
|
}
|
|
3105
|
-
},
|
|
3100
|
+
}, ue = (e, t, i, c, l = !1) => {
|
|
3106
3101
|
let u = G(r, e), d = s.array.has(e), f = c ? t : V(t), p = Y(G(a, e), f);
|
|
3107
3102
|
if (p || J(a, e, f), d) g.array.next({
|
|
3108
3103
|
name: e,
|
|
@@ -3110,29 +3105,29 @@ function no(e = {}) {
|
|
|
3110
3105
|
}), (m.isDirty || m.dirtyFields || h.isDirty || h.dirtyFields) && i.shouldDirty && (S(), l || g.state.next({
|
|
3111
3106
|
name: e,
|
|
3112
3107
|
dirtyFields: n.dirtyFields,
|
|
3113
|
-
isDirty:
|
|
3108
|
+
isDirty: A(e, f)
|
|
3114
3109
|
}));
|
|
3115
3110
|
else {
|
|
3116
3111
|
let t = Array.isArray(f) && !f.length || Z(f), n = !p && !l;
|
|
3117
|
-
!u || u._f || z(f) || t ?
|
|
3112
|
+
!u || u._f || z(f) || t ? ce(e, f, i, c, l, n) : le(e, f, i, c, l, n);
|
|
3118
3113
|
}
|
|
3119
3114
|
if (!p && !l) {
|
|
3120
|
-
let t =
|
|
3115
|
+
let t = Yi(e, s), r = c ? a : V(a);
|
|
3121
3116
|
g.state.next({
|
|
3122
3117
|
...t && n,
|
|
3123
3118
|
name: o.mount || t ? e : void 0,
|
|
3124
3119
|
values: r
|
|
3125
3120
|
});
|
|
3126
3121
|
}
|
|
3127
|
-
},
|
|
3122
|
+
}, j = (e, t, n = {}) => ue(e, t, n, !1), de = (e, t = {}) => {
|
|
3128
3123
|
let r = q(e) ? e(a) : e;
|
|
3129
3124
|
if (!Y(a, r)) {
|
|
3130
3125
|
a = {
|
|
3131
3126
|
...a,
|
|
3132
3127
|
...r
|
|
3133
3128
|
};
|
|
3134
|
-
let e =
|
|
3135
|
-
for (let n of s.mount) n in e &&
|
|
3129
|
+
let e = Ca(r);
|
|
3130
|
+
for (let n of s.mount) n in e && ue(n, e[n], t, !0, !0);
|
|
3136
3131
|
g.state.next({
|
|
3137
3132
|
...n,
|
|
3138
3133
|
name: void 0,
|
|
@@ -3140,85 +3135,85 @@ function no(e = {}) {
|
|
|
3140
3135
|
...u ? { values: a } : {}
|
|
3141
3136
|
}), t.shouldValidate && b();
|
|
3142
3137
|
}
|
|
3143
|
-
},
|
|
3138
|
+
}, fe = async (i) => {
|
|
3144
3139
|
o.mount = !0;
|
|
3145
3140
|
let l = i.target, p = l.name, _ = !0, y = G(r, p), S = (e) => {
|
|
3146
3141
|
_ = Number.isNaN(e) || R(e) && isNaN(e.getTime()) || Y(e, G(a, p, e));
|
|
3147
3142
|
};
|
|
3148
3143
|
if (y) {
|
|
3149
|
-
let o, C,
|
|
3150
|
-
if (J(a, p,
|
|
3144
|
+
let o, C, w = l.type ? Ba(y._f) : Ci(i), T = i.type === Di.BLUR || i.type === Di.FOCUS_OUT, ee = !Ga(y._f) && !e.validate && !t.resolver && !G(n.errors, p) && !y._f.deps, te = ee || Ya(T, G(n.touchedFields, p), n.isSubmitted, f, d), ne = Yi(p, s, T);
|
|
3145
|
+
if (J(a, p, w), T) {
|
|
3151
3146
|
if (!l || !l.readOnly) {
|
|
3152
3147
|
y._f.onBlur && y._f.onBlur(i);
|
|
3153
3148
|
let e = c[p];
|
|
3154
3149
|
e && e(0);
|
|
3155
3150
|
}
|
|
3156
3151
|
} else y._f.onChange && y._f.onChange(i);
|
|
3157
|
-
let
|
|
3158
|
-
if (!
|
|
3152
|
+
let D = re(p, w, T), ae = !Z(D) || ne;
|
|
3153
|
+
if (!T && g.state.next({
|
|
3159
3154
|
name: p,
|
|
3160
3155
|
type: i.type,
|
|
3161
3156
|
...u ? { values: V(a) } : {}
|
|
3162
|
-
}),
|
|
3157
|
+
}), te) return (!ee || !n.isValid) && (m.isValid || h.isValid) && (t.mode === "onBlur" ? T && b() : T || b()), ae && g.state.next({
|
|
3163
3158
|
name: p,
|
|
3164
|
-
...
|
|
3159
|
+
...ne ? {} : D
|
|
3165
3160
|
});
|
|
3166
|
-
if (!t.resolver && e.validate && await
|
|
3161
|
+
if (!t.resolver && e.validate && await O({
|
|
3167
3162
|
name: p,
|
|
3168
3163
|
eventType: i.type
|
|
3169
|
-
}), !
|
|
3170
|
-
let { errors: e } = await
|
|
3171
|
-
if (x([p]), S(
|
|
3172
|
-
!Z(
|
|
3164
|
+
}), !T && ne && g.state.next({ ...n }), t.resolver) {
|
|
3165
|
+
let { errors: e } = await E([p]);
|
|
3166
|
+
if (x([p]), S(w), !_) {
|
|
3167
|
+
!Z(D) && g.state.next(D);
|
|
3173
3168
|
return;
|
|
3174
3169
|
}
|
|
3175
|
-
let t =
|
|
3170
|
+
let t = Ka(n.errors, r, p), i = Ka(e, r, t.name || p);
|
|
3176
3171
|
o = i.error, p = i.name, C = Z(e);
|
|
3177
|
-
} else x([p], !0), o = (await
|
|
3172
|
+
} else x([p], !0), o = (await la(y, s.disabled, a, v, t.shouldUseNativeValidation))[p], x([p]), S(w), _ && (o ? C = !1 : (m.isValid || h.isValid) && (C = await k({
|
|
3178
3173
|
fields: r,
|
|
3179
3174
|
onlyCheckValid: !0,
|
|
3180
3175
|
name: p,
|
|
3181
3176
|
eventType: i.type
|
|
3182
3177
|
})));
|
|
3183
|
-
_ && (y._f.deps && (!Array.isArray(y._f.deps) || y._f.deps.length > 0) &&
|
|
3178
|
+
_ && (y._f.deps && (!Array.isArray(y._f.deps) || y._f.deps.length > 0) && me(y._f.deps), ie(p, C, o, D));
|
|
3184
3179
|
}
|
|
3185
|
-
},
|
|
3180
|
+
}, pe = (e, t) => {
|
|
3186
3181
|
if (G(n.errors, t) && e.focus) return e.focus(), 1;
|
|
3187
|
-
},
|
|
3182
|
+
}, me = async (e, i = {}) => {
|
|
3188
3183
|
let a, o, u = Q(e);
|
|
3189
3184
|
if (t.resolver) {
|
|
3190
|
-
let t = await
|
|
3185
|
+
let t = await D(W(e) ? e : u);
|
|
3191
3186
|
a = Z(t), o = e ? !u.some((e) => G(t, e)) : a;
|
|
3192
3187
|
} else e ? (o = (await Promise.all(u.map(async (e) => {
|
|
3193
3188
|
let t = G(r, e);
|
|
3194
|
-
return await
|
|
3189
|
+
return await k({
|
|
3195
3190
|
fields: t && t._f ? { [e]: t } : t,
|
|
3196
|
-
eventType:
|
|
3191
|
+
eventType: Di.TRIGGER
|
|
3197
3192
|
});
|
|
3198
|
-
}))).every(Boolean), !(!o && !n.isValid) && b()) : o = a = await
|
|
3193
|
+
}))).every(Boolean), !(!o && !n.isValid) && b()) : o = a = await k({
|
|
3199
3194
|
fields: r,
|
|
3200
3195
|
name: e,
|
|
3201
|
-
eventType:
|
|
3196
|
+
eventType: Di.TRIGGER
|
|
3202
3197
|
});
|
|
3203
3198
|
if (i.delayError && t.delayError && X(e)) {
|
|
3204
3199
|
let r = G(n.errors, e);
|
|
3205
|
-
r ? ($(n.errors, e), c[e] = y(e, () =>
|
|
3200
|
+
r ? ($(n.errors, e), c[e] = y(e, () => w(e, r)), c[e](t.delayError)) : (clearTimeout(l[e]), delete c[e]);
|
|
3206
3201
|
}
|
|
3207
3202
|
return g.state.next({
|
|
3208
3203
|
...!X(e) || (m.isValid || h.isValid) && a !== n.isValid ? {} : { name: e },
|
|
3209
3204
|
...t.resolver || !e ? { isValid: a } : {},
|
|
3210
3205
|
errors: n.errors
|
|
3211
|
-
}), i.shouldFocus && !o &&
|
|
3212
|
-
},
|
|
3206
|
+
}), i.shouldFocus && !o && Xi(r, pe, e ? u : s.mount), o;
|
|
3207
|
+
}, he = (e, t) => {
|
|
3213
3208
|
let r = { ...o.mount ? a : i };
|
|
3214
|
-
return t && (r =
|
|
3215
|
-
},
|
|
3209
|
+
return t && (r = Ea(t.dirtyFields ? n.dirtyFields : n.touchedFields, r)), W(e) ? r : X(e) ? G(r, e) : e.map((e) => G(r, e));
|
|
3210
|
+
}, M = (e, t) => ({
|
|
3216
3211
|
invalid: !!G((t || n).errors, e),
|
|
3217
3212
|
isDirty: !!G((t || n).dirtyFields, e),
|
|
3218
3213
|
error: G((t || n).errors, e),
|
|
3219
3214
|
isValidating: !!G(n.validatingFields, e),
|
|
3220
3215
|
isTouched: !!G((t || n).touchedFields, e)
|
|
3221
|
-
}),
|
|
3216
|
+
}), ge = (e) => {
|
|
3222
3217
|
let t = e ? Q(e) : void 0;
|
|
3223
3218
|
t?.forEach((e) => $(n.errors, e)), t ? t.forEach((e) => {
|
|
3224
3219
|
g.state.next({
|
|
@@ -3226,7 +3221,7 @@ function no(e = {}) {
|
|
|
3226
3221
|
errors: n.errors
|
|
3227
3222
|
});
|
|
3228
3223
|
}) : (n.errors = {}, g.state.next({ errors: n.errors }));
|
|
3229
|
-
},
|
|
3224
|
+
}, _e = (e, t, i) => {
|
|
3230
3225
|
let a = (G(r, e, { _f: {} })._f || {}).ref, { ref: o, message: s, type: c, ...l } = G(n.errors, e) || {};
|
|
3231
3226
|
J(n.errors, e, {
|
|
3232
3227
|
...l,
|
|
@@ -3237,20 +3232,20 @@ function no(e = {}) {
|
|
|
3237
3232
|
errors: n.errors,
|
|
3238
3233
|
isValid: !1
|
|
3239
3234
|
}), i && i.shouldFocus && a && a.focus && a.focus();
|
|
3240
|
-
},
|
|
3235
|
+
}, ve = (e, t) => {
|
|
3241
3236
|
if (q(e)) {
|
|
3242
3237
|
u++;
|
|
3243
|
-
let { unsubscribe: n } = g.state.subscribe({ next: (n) => "values" in n && e(n.values ||
|
|
3238
|
+
let { unsubscribe: n } = g.state.subscribe({ next: (n) => "values" in n && e(n.values || oe(void 0, t), n) }), r = !1;
|
|
3244
3239
|
return { unsubscribe: () => {
|
|
3245
3240
|
r || (r = !0, u--, n());
|
|
3246
3241
|
} };
|
|
3247
3242
|
}
|
|
3248
|
-
return
|
|
3249
|
-
},
|
|
3243
|
+
return oe(e, t, !0);
|
|
3244
|
+
}, ye = (e) => {
|
|
3250
3245
|
let t = !!e.formState?.values;
|
|
3251
3246
|
t && u++;
|
|
3252
3247
|
let { unsubscribe: r } = g.state.subscribe({ next: (t) => {
|
|
3253
|
-
if (
|
|
3248
|
+
if (Ja(e.name, t.name, e.exact) && qa(t, e.formState || m, Ae, e.reRenderRoot)) {
|
|
3254
3249
|
let r = { ...a };
|
|
3255
3250
|
e.callback({
|
|
3256
3251
|
values: r,
|
|
@@ -3265,27 +3260,27 @@ function no(e = {}) {
|
|
|
3265
3260
|
return () => {
|
|
3266
3261
|
o || (o = !0, u--, r());
|
|
3267
3262
|
};
|
|
3268
|
-
},
|
|
3263
|
+
}, be = (e) => (o.mount = !0, h = {
|
|
3269
3264
|
...h,
|
|
3270
3265
|
...e.formState
|
|
3271
|
-
},
|
|
3266
|
+
}, ye({
|
|
3272
3267
|
...e,
|
|
3273
3268
|
formState: {
|
|
3274
3269
|
...p,
|
|
3275
3270
|
...e.formState
|
|
3276
3271
|
}
|
|
3277
|
-
})),
|
|
3272
|
+
})), xe = (e, o = {}) => {
|
|
3278
3273
|
for (let c of e ? Q(e) : s.mount) s.mount.delete(c), s.array.delete(c), o.keepValue || ($(r, c), $(a, c)), !o.keepError && $(n.errors, c), !o.keepDirty && $(n.dirtyFields, c), !o.keepTouched && $(n.touchedFields, c), !o.keepIsValidating && $(n.validatingFields, c), !t.shouldUnregister && !o.keepDefaultValue && $(i, c);
|
|
3279
3274
|
g.state.next({ values: V(a) }), g.state.next({
|
|
3280
3275
|
...n,
|
|
3281
|
-
...o.keepDirty ? { isDirty:
|
|
3276
|
+
...o.keepDirty ? { isDirty: A() } : {}
|
|
3282
3277
|
}), !o.keepIsValid && b();
|
|
3283
|
-
},
|
|
3278
|
+
}, Se = ({ disabled: e, name: t }) => {
|
|
3284
3279
|
if (K(e) && o.mount || e || s.disabled.has(t)) {
|
|
3285
3280
|
let n = s.disabled.has(t) !== !!e;
|
|
3286
3281
|
e ? s.disabled.add(t) : s.disabled.delete(t), n && o.mount && !o.action && b();
|
|
3287
3282
|
}
|
|
3288
|
-
},
|
|
3283
|
+
}, Ce = (e, n = {}) => {
|
|
3289
3284
|
let a = G(r, e), c = K(n.disabled) || K(t.disabled), l = !s.registerName.has(e) && a && a._f && !a._f.mount;
|
|
3290
3285
|
return J(r, e, {
|
|
3291
3286
|
...a || {},
|
|
@@ -3295,66 +3290,66 @@ function no(e = {}) {
|
|
|
3295
3290
|
mount: !0,
|
|
3296
3291
|
...n
|
|
3297
3292
|
}
|
|
3298
|
-
}), s.mount.add(e), a && !l ?
|
|
3293
|
+
}), s.mount.add(e), a && !l ? Se({
|
|
3299
3294
|
disabled: K(n.disabled) ? n.disabled : t.disabled,
|
|
3300
3295
|
name: e
|
|
3301
|
-
}) :
|
|
3296
|
+
}) : ne(e, !0, n.value), {
|
|
3302
3297
|
...c ? { disabled: n.disabled || t.disabled } : {},
|
|
3303
3298
|
...t.progressive ? {
|
|
3304
3299
|
required: !!n.required,
|
|
3305
|
-
min:
|
|
3306
|
-
max:
|
|
3307
|
-
minLength:
|
|
3308
|
-
maxLength:
|
|
3309
|
-
pattern:
|
|
3300
|
+
min: Ha(n.min),
|
|
3301
|
+
max: Ha(n.max),
|
|
3302
|
+
minLength: Ha(n.minLength),
|
|
3303
|
+
maxLength: Ha(n.maxLength),
|
|
3304
|
+
pattern: Ha(n.pattern)
|
|
3310
3305
|
} : {},
|
|
3311
3306
|
name: e,
|
|
3312
|
-
onChange:
|
|
3313
|
-
onBlur:
|
|
3307
|
+
onChange: fe,
|
|
3308
|
+
onBlur: fe,
|
|
3314
3309
|
ref: (c) => {
|
|
3315
3310
|
if (c) {
|
|
3316
|
-
s.registerName.add(e),
|
|
3317
|
-
let t = W(c.value) && c.querySelectorAll && c.querySelectorAll("input,select,textarea")[0] || c, o =
|
|
3311
|
+
s.registerName.add(e), Ce(e, n), s.registerName.delete(e), a = G(r, e);
|
|
3312
|
+
let t = W(c.value) && c.querySelectorAll && c.querySelectorAll("input,select,textarea")[0] || c, o = Oa(t), l = a._f.refs || [];
|
|
3318
3313
|
if (o ? l.find((e) => e === t) : t === a._f.ref) return;
|
|
3319
3314
|
let u = { ...a._f };
|
|
3320
3315
|
o ? (u.refs = [
|
|
3321
|
-
...l.filter(
|
|
3316
|
+
...l.filter(ka),
|
|
3322
3317
|
t,
|
|
3323
3318
|
...Array.isArray(G(i, e)) ? [{}] : []
|
|
3324
3319
|
], u.ref = {
|
|
3325
3320
|
type: t.type,
|
|
3326
3321
|
name: e
|
|
3327
|
-
}) : (u.ref = t, delete u.refs), J(r, e, { _f: u }),
|
|
3328
|
-
} else a = G(r, e, {}), a._f && (a._f.mount = !1), (t.shouldUnregister || n.shouldUnregister) && !(
|
|
3322
|
+
}) : (u.ref = t, delete u.refs), J(r, e, { _f: u }), ne(e, !1, void 0, t);
|
|
3323
|
+
} else a = G(r, e, {}), a._f && (a._f.mount = !1), (t.shouldUnregister || n.shouldUnregister) && !(wi(s.array, e) && o.action) && s.unMount.add(e);
|
|
3329
3324
|
}
|
|
3330
3325
|
};
|
|
3331
|
-
},
|
|
3332
|
-
K(e) && (g.state.next({ disabled: e }),
|
|
3326
|
+
}, we = () => t.shouldFocusError && !t.shouldUseNativeValidation && Xi(r, pe, s.mount), N = (e) => {
|
|
3327
|
+
K(e) && (g.state.next({ disabled: e }), Xi(r, (t, n) => {
|
|
3333
3328
|
let i = G(r, n);
|
|
3334
3329
|
i && (t.disabled = i._f.disabled || e, Array.isArray(i._f.refs) && i._f.refs.forEach((t) => {
|
|
3335
3330
|
t.disabled = i._f.disabled || e;
|
|
3336
3331
|
}));
|
|
3337
3332
|
}, 0, !1));
|
|
3338
|
-
},
|
|
3333
|
+
}, Te = (e, i) => async (o) => {
|
|
3339
3334
|
let c, l;
|
|
3340
3335
|
o && (o.preventDefault && o.preventDefault(), o.persist && o.persist());
|
|
3341
3336
|
let u = V(a);
|
|
3342
3337
|
if (g.state.next({ isSubmitting: !0 }), t.resolver) {
|
|
3343
|
-
let { errors: e, values: t } = await
|
|
3338
|
+
let { errors: e, values: t } = await E();
|
|
3344
3339
|
x(), n.errors = e, u = V(t);
|
|
3345
|
-
} else await
|
|
3340
|
+
} else await k({
|
|
3346
3341
|
fields: r,
|
|
3347
|
-
eventType:
|
|
3342
|
+
eventType: Di.SUBMIT
|
|
3348
3343
|
});
|
|
3349
3344
|
if (s.disabled.size) for (let e of s.disabled) $(u, e);
|
|
3350
|
-
if ($(n.errors,
|
|
3345
|
+
if ($(n.errors, Oi), Z(n.errors)) {
|
|
3351
3346
|
g.state.next({ errors: {} });
|
|
3352
3347
|
try {
|
|
3353
3348
|
c = await e(u, o);
|
|
3354
3349
|
} catch (e) {
|
|
3355
3350
|
l = e;
|
|
3356
3351
|
}
|
|
3357
|
-
} else i && await i({ ...n.errors }, o),
|
|
3352
|
+
} else i && await i({ ...n.errors }, o), we(), setTimeout(we);
|
|
3358
3353
|
if (g.state.next({
|
|
3359
3354
|
isSubmitted: !0,
|
|
3360
3355
|
isSubmitting: !1,
|
|
@@ -3363,23 +3358,23 @@ function no(e = {}) {
|
|
|
3363
3358
|
errors: n.errors
|
|
3364
3359
|
}), l) throw l;
|
|
3365
3360
|
return c;
|
|
3366
|
-
},
|
|
3367
|
-
G(r, e) && (W(t.defaultValue) ?
|
|
3368
|
-
},
|
|
3361
|
+
}, Ee = (e, t = {}) => {
|
|
3362
|
+
G(r, e) && (W(t.defaultValue) ? j(e, V(G(i, e))) : (j(e, t.defaultValue), J(i, e, V(t.defaultValue))), t.keepTouched || $(n.touchedFields, e), t.keepDirty || ($(n.dirtyFields, e), n.isDirty = t.defaultValue ? A(e, V(G(i, e))) : A()), t.keepError || ($(n.errors, e), m.isValid && b()), g.state.next({ ...n }));
|
|
3363
|
+
}, De = (e, c = {}) => {
|
|
3369
3364
|
let l = e ? V(e) : i, u = V(l), d = Z(e), f = u, p = r;
|
|
3370
3365
|
if (c.keepDefaultValues || (i = l), !c.keepValues) {
|
|
3371
3366
|
if (c.keepDirtyValues) {
|
|
3372
|
-
let e = /* @__PURE__ */ new Set([...s.mount, ...
|
|
3367
|
+
let e = /* @__PURE__ */ new Set([...s.mount, ...ja(Ra(i, a, void 0, p), n.dirtyFields)]);
|
|
3373
3368
|
for (let t of Array.from(e)) {
|
|
3374
3369
|
let e = G(n.dirtyFields, t), r = G(a, t), i = G(f, t);
|
|
3375
|
-
e && !W(r) ? J(f, t, r) : !e && !W(i) &&
|
|
3370
|
+
e && !W(r) ? J(f, t, r) : !e && !W(i) && j(t, i);
|
|
3376
3371
|
}
|
|
3377
3372
|
} else {
|
|
3378
|
-
if (
|
|
3373
|
+
if (Ei && W(e)) for (let e of s.mount) {
|
|
3379
3374
|
let t = G(r, e);
|
|
3380
3375
|
if (t && t._f) {
|
|
3381
3376
|
let e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref;
|
|
3382
|
-
if (
|
|
3377
|
+
if (Qi(e)) {
|
|
3383
3378
|
let t = e.closest("form");
|
|
3384
3379
|
if (t) {
|
|
3385
3380
|
t.reset();
|
|
@@ -3388,7 +3383,7 @@ function no(e = {}) {
|
|
|
3388
3383
|
}
|
|
3389
3384
|
}
|
|
3390
3385
|
}
|
|
3391
|
-
if (c.keepFieldsRef) for (let e of s.mount)
|
|
3386
|
+
if (c.keepFieldsRef) for (let e of s.mount) j(e, G(f, e));
|
|
3392
3387
|
else r = {};
|
|
3393
3388
|
}
|
|
3394
3389
|
if (t.shouldUnregister) {
|
|
@@ -3411,19 +3406,19 @@ function no(e = {}) {
|
|
|
3411
3406
|
focus: ""
|
|
3412
3407
|
}, o.mount = !m.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !t.shouldUnregister && !Z(f), o.watch = !!t.shouldUnregister, o.keepIsValid = !!c.keepIsValid, o.action = !1, o.actionArrayLengths.clear(), c.keepErrors || (n.errors = {}), g.state.next({
|
|
3413
3408
|
submitCount: c.keepSubmitCount ? n.submitCount : 0,
|
|
3414
|
-
isDirty: d ? !1 : c.keepDirty ? n.isDirty : c.keepValues ?
|
|
3409
|
+
isDirty: d ? !1 : c.keepDirty ? n.isDirty : c.keepValues ? A() : !!(c.keepDefaultValues && !Y(e, i)),
|
|
3415
3410
|
isSubmitted: c.keepIsSubmitted ? n.isSubmitted : !1,
|
|
3416
|
-
dirtyFields: d ? {} : c.keepDirtyValues ? c.keepDefaultValues && a ?
|
|
3411
|
+
dirtyFields: d ? {} : c.keepDirtyValues ? c.keepDefaultValues && a ? Ra(i, a, void 0, p) : n.dirtyFields : c.keepDefaultValues && e ? Ra(i, e, void 0, p) : c.keepDirty ? n.dirtyFields : {},
|
|
3417
3412
|
touchedFields: c.keepTouched ? n.touchedFields : {},
|
|
3418
3413
|
errors: c.keepErrors ? n.errors : {},
|
|
3419
3414
|
isSubmitSuccessful: c.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1,
|
|
3420
3415
|
isSubmitting: !1,
|
|
3421
3416
|
defaultValues: i
|
|
3422
3417
|
});
|
|
3423
|
-
},
|
|
3418
|
+
}, Oe = (e, n) => De(q(e) ? e(a) : e, {
|
|
3424
3419
|
...t.resetOptions,
|
|
3425
3420
|
...n
|
|
3426
|
-
}),
|
|
3421
|
+
}), ke = (e, t = {}) => {
|
|
3427
3422
|
let n = G(r, e), i = n && n._f;
|
|
3428
3423
|
if (i) {
|
|
3429
3424
|
let e = i.refs ? i.refs[0] : i.ref;
|
|
@@ -3431,38 +3426,38 @@ function no(e = {}) {
|
|
|
3431
3426
|
e.focus(), t.shouldSelect && q(e.select) && e.select();
|
|
3432
3427
|
});
|
|
3433
3428
|
}
|
|
3434
|
-
},
|
|
3429
|
+
}, Ae = (e) => {
|
|
3435
3430
|
let { name: t, type: r, values: i, ...a } = e;
|
|
3436
3431
|
n = {
|
|
3437
3432
|
...n,
|
|
3438
3433
|
...a
|
|
3439
3434
|
};
|
|
3440
3435
|
};
|
|
3441
|
-
g.state.subscribe({ next:
|
|
3442
|
-
let
|
|
3436
|
+
g.state.subscribe({ next: Ae });
|
|
3437
|
+
let je = {
|
|
3443
3438
|
control: {
|
|
3444
|
-
register:
|
|
3445
|
-
unregister:
|
|
3446
|
-
getFieldState:
|
|
3447
|
-
handleSubmit:
|
|
3448
|
-
setError:
|
|
3449
|
-
_subscribe:
|
|
3450
|
-
_runSchema:
|
|
3439
|
+
register: Ce,
|
|
3440
|
+
unregister: xe,
|
|
3441
|
+
getFieldState: M,
|
|
3442
|
+
handleSubmit: Te,
|
|
3443
|
+
setError: _e,
|
|
3444
|
+
_subscribe: ye,
|
|
3445
|
+
_runSchema: E,
|
|
3451
3446
|
_updateIsValidating: x,
|
|
3452
|
-
_focusError:
|
|
3453
|
-
_getWatch:
|
|
3454
|
-
_getDirty:
|
|
3447
|
+
_focusError: we,
|
|
3448
|
+
_getWatch: oe,
|
|
3449
|
+
_getDirty: A,
|
|
3455
3450
|
_setValid: b,
|
|
3456
3451
|
_setFieldArray: C,
|
|
3457
|
-
_setDisabledField:
|
|
3458
|
-
_setErrors:
|
|
3459
|
-
_getFieldArray:
|
|
3460
|
-
_reset:
|
|
3452
|
+
_setDisabledField: Se,
|
|
3453
|
+
_setErrors: T,
|
|
3454
|
+
_getFieldArray: se,
|
|
3455
|
+
_reset: De,
|
|
3461
3456
|
_resetDefaultValues: () => q(t.defaultValues) && t.defaultValues().then((e) => {
|
|
3462
|
-
|
|
3457
|
+
Oe(e, t.resetOptions), g.state.next({ isLoading: !1 });
|
|
3463
3458
|
}),
|
|
3464
|
-
_removeUnmounted:
|
|
3465
|
-
_disableForm:
|
|
3459
|
+
_removeUnmounted: ae,
|
|
3460
|
+
_disableForm: N,
|
|
3466
3461
|
_subjects: g,
|
|
3467
3462
|
_proxyFormState: m,
|
|
3468
3463
|
get _fields() {
|
|
@@ -3496,22 +3491,22 @@ function no(e = {}) {
|
|
|
3496
3491
|
t = {
|
|
3497
3492
|
...t,
|
|
3498
3493
|
...e
|
|
3499
|
-
}, d =
|
|
3494
|
+
}, d = Ji(t.mode), f = Ji(t.reValidateMode);
|
|
3500
3495
|
}
|
|
3501
3496
|
},
|
|
3502
|
-
subscribe:
|
|
3503
|
-
trigger:
|
|
3504
|
-
register:
|
|
3505
|
-
handleSubmit:
|
|
3506
|
-
watch:
|
|
3507
|
-
setValue:
|
|
3508
|
-
setValues:
|
|
3509
|
-
getValues:
|
|
3510
|
-
reset:
|
|
3511
|
-
resetField:
|
|
3497
|
+
subscribe: be,
|
|
3498
|
+
trigger: me,
|
|
3499
|
+
register: Ce,
|
|
3500
|
+
handleSubmit: Te,
|
|
3501
|
+
watch: ve,
|
|
3502
|
+
setValue: j,
|
|
3503
|
+
setValues: de,
|
|
3504
|
+
getValues: he,
|
|
3505
|
+
reset: Oe,
|
|
3506
|
+
resetField: Ee,
|
|
3512
3507
|
resetDefaultValues: (e, t = {}) => {
|
|
3513
3508
|
if (i = V(e), !t.keepDirty) {
|
|
3514
|
-
let e =
|
|
3509
|
+
let e = Ra(i, a, void 0, r);
|
|
3515
3510
|
n.dirtyFields = e, n.isDirty = !Z(e);
|
|
3516
3511
|
}
|
|
3517
3512
|
t.keepIsValid || b(), g.state.next({
|
|
@@ -3519,20 +3514,20 @@ function no(e = {}) {
|
|
|
3519
3514
|
defaultValues: i
|
|
3520
3515
|
});
|
|
3521
3516
|
},
|
|
3522
|
-
clearErrors:
|
|
3523
|
-
unregister:
|
|
3524
|
-
setError:
|
|
3525
|
-
setFocus:
|
|
3526
|
-
getFieldState:
|
|
3517
|
+
clearErrors: ge,
|
|
3518
|
+
unregister: xe,
|
|
3519
|
+
setError: _e,
|
|
3520
|
+
setFocus: ke,
|
|
3521
|
+
getFieldState: M
|
|
3527
3522
|
};
|
|
3528
3523
|
return {
|
|
3529
|
-
...
|
|
3530
|
-
formControl:
|
|
3524
|
+
...je,
|
|
3525
|
+
formControl: je
|
|
3531
3526
|
};
|
|
3532
3527
|
}
|
|
3533
|
-
function
|
|
3534
|
-
let t =
|
|
3535
|
-
...V(
|
|
3528
|
+
function no(e = {}) {
|
|
3529
|
+
let t = k.useRef(void 0), n = k.useRef(void 0), r = k.useRef(e.formControl), [i, a] = k.useState(() => ({
|
|
3530
|
+
...V(eo),
|
|
3536
3531
|
isLoading: q(e.defaultValues),
|
|
3537
3532
|
errors: e.errors || {},
|
|
3538
3533
|
disabled: e.disabled || !1,
|
|
@@ -3543,7 +3538,7 @@ function ro(e = {}) {
|
|
|
3543
3538
|
formState: i
|
|
3544
3539
|
}, e.defaultValues && !q(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
3545
3540
|
else {
|
|
3546
|
-
let { formControl: n, ...r } =
|
|
3541
|
+
let { formControl: n, ...r } = to(e);
|
|
3547
3542
|
t.current = {
|
|
3548
3543
|
...r,
|
|
3549
3544
|
formState: i
|
|
@@ -3551,8 +3546,8 @@ function ro(e = {}) {
|
|
|
3551
3546
|
}
|
|
3552
3547
|
let o = t.current.control;
|
|
3553
3548
|
o._options = e;
|
|
3554
|
-
let { resyncIfNeeded: s, snapshot: c } =
|
|
3555
|
-
return
|
|
3549
|
+
let { resyncIfNeeded: s, snapshot: c } = Bi();
|
|
3550
|
+
return Li(() => {
|
|
3556
3551
|
let e = () => ({
|
|
3557
3552
|
...o._formState,
|
|
3558
3553
|
defaultValues: o._defaultValues
|
|
@@ -3576,37 +3571,37 @@ function ro(e = {}) {
|
|
|
3576
3571
|
o,
|
|
3577
3572
|
s,
|
|
3578
3573
|
c
|
|
3579
|
-
]),
|
|
3574
|
+
]), k.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), k.useEffect(() => {
|
|
3580
3575
|
e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
|
|
3581
3576
|
}, [
|
|
3582
3577
|
o,
|
|
3583
3578
|
e.mode,
|
|
3584
3579
|
e.reValidateMode
|
|
3585
|
-
]),
|
|
3580
|
+
]), k.useEffect(() => {
|
|
3586
3581
|
e.errors && (o._setErrors(e.errors), o._focusError());
|
|
3587
|
-
}, [o, e.errors]),
|
|
3582
|
+
}, [o, e.errors]), k.useEffect(() => {
|
|
3588
3583
|
e.shouldUnregister && o._subjects.state.next({ values: o._getWatch() });
|
|
3589
|
-
}, [o, e.shouldUnregister]),
|
|
3584
|
+
}, [o, e.shouldUnregister]), k.useEffect(() => {
|
|
3590
3585
|
if (o._proxyFormState.isDirty) {
|
|
3591
3586
|
let e = o._getDirty();
|
|
3592
3587
|
e !== i.isDirty && o._subjects.state.next({ isDirty: e });
|
|
3593
3588
|
}
|
|
3594
|
-
}, [o, i.isDirty]),
|
|
3589
|
+
}, [o, i.isDirty]), k.useEffect(() => {
|
|
3595
3590
|
e.values && !Y(e.values, n.current) ? (o._reset(e.values, {
|
|
3596
3591
|
keepFieldsRef: !0,
|
|
3597
3592
|
...o._options.resetOptions
|
|
3598
3593
|
}), o._options.resetOptions?.keepIsValid || o._setValid(), n.current = e.values, a((e) => ({ ...e }))) : o._resetDefaultValues();
|
|
3599
|
-
}, [o, e.values]),
|
|
3594
|
+
}, [o, e.values]), k.useEffect(() => {
|
|
3600
3595
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
|
|
3601
|
-
}), t.current.formState =
|
|
3596
|
+
}), t.current.formState = k.useMemo(() => Ii(i, o), [o, i]), t.current;
|
|
3602
3597
|
}
|
|
3603
3598
|
//#endregion
|
|
3604
3599
|
//#region lib/components/ui/forms/use-field-blur.ts
|
|
3605
|
-
var
|
|
3600
|
+
var ro = typeof document > "u" ? null : document, io = {
|
|
3606
3601
|
capture: !0,
|
|
3607
3602
|
passive: !0
|
|
3608
3603
|
};
|
|
3609
|
-
function
|
|
3604
|
+
function ao(e, t) {
|
|
3610
3605
|
for (let t of e.roots) t.isConnected || e.roots.delete(t);
|
|
3611
3606
|
let n = [...e.roots];
|
|
3612
3607
|
if (!n.length) return !1;
|
|
@@ -3618,39 +3613,39 @@ function oo(e, t) {
|
|
|
3618
3613
|
let i = Se(n, e, r);
|
|
3619
3614
|
return i === "theirs" || !i && e.before.has(r) ? !0 : (e.opened.add(r), !1);
|
|
3620
3615
|
}
|
|
3621
|
-
function
|
|
3622
|
-
let n =
|
|
3616
|
+
function oo(e, t) {
|
|
3617
|
+
let n = Ir(t), r = Ir(e), i = M({
|
|
3623
3618
|
roots: /* @__PURE__ */ new Set(),
|
|
3624
3619
|
inside: !1,
|
|
3625
3620
|
before: /* @__PURE__ */ new Set(),
|
|
3626
3621
|
home: /* @__PURE__ */ new Set(),
|
|
3627
3622
|
opened: /* @__PURE__ */ new Set()
|
|
3628
|
-
}).current, a =
|
|
3623
|
+
}).current, a = j((e) => {
|
|
3629
3624
|
if (e) return i.roots.add(e), n.current?.(Ce(i.roots)), () => {
|
|
3630
3625
|
i.roots.delete(e);
|
|
3631
3626
|
};
|
|
3632
|
-
}, [i, n]), o =
|
|
3627
|
+
}, [i, n]), o = j(() => {
|
|
3633
3628
|
i.inside = !1, r.current();
|
|
3634
|
-
}, [i, r]), s =
|
|
3629
|
+
}, [i, r]), s = j((e) => {
|
|
3635
3630
|
let t = e.target;
|
|
3636
|
-
t instanceof Node && (clearTimeout(i.settle),
|
|
3637
|
-
}, [i, o]), c =
|
|
3631
|
+
t instanceof Node && (clearTimeout(i.settle), ao(i, t) && o());
|
|
3632
|
+
}, [i, o]), c = j((e) => {
|
|
3638
3633
|
!i.inside || e.relatedTarget || (clearTimeout(i.settle), i.settle = setTimeout(() => {
|
|
3639
3634
|
i.settle = setTimeout(() => {
|
|
3640
|
-
let e =
|
|
3641
|
-
i.inside && (!e || e ===
|
|
3635
|
+
let e = ro?.activeElement;
|
|
3636
|
+
i.inside && (!e || e === ro?.body) && o();
|
|
3642
3637
|
});
|
|
3643
3638
|
}));
|
|
3644
3639
|
}, [i, o]);
|
|
3645
|
-
return
|
|
3640
|
+
return Fr("focusin", s, ro, io), Fr("focusout", c, ro, io), fe(() => () => clearTimeout(i.settle), [i]), a;
|
|
3646
3641
|
}
|
|
3647
3642
|
//#endregion
|
|
3648
3643
|
//#region lib/components/ui/forms/field-blur.tsx
|
|
3649
|
-
function
|
|
3650
|
-
return /* @__PURE__ */
|
|
3651
|
-
value:
|
|
3644
|
+
function so({ onBlur: e, focusRef: t, children: n }) {
|
|
3645
|
+
return /* @__PURE__ */ E(zr, {
|
|
3646
|
+
value: oo(e, t),
|
|
3652
3647
|
children: n
|
|
3653
3648
|
});
|
|
3654
3649
|
}
|
|
3655
3650
|
//#endregion
|
|
3656
|
-
export {
|
|
3651
|
+
export { In as $, Qr as A, Fr as B, si as C, ti as D, ii as E, Vr as F, wr as G, Or as H, Br as I, Cr as J, Tr as K, Rr as L, qr as M, Wr as N, ei as O, Hr as P, hn as Q, Lr as R, li as S, oi as T, Ar as U, jr as V, kr as W, pr as X, gr as Y, dr as Z, ci as _, J as a, _n as at, fi as b, no as c, $t as ct, _i as d, Dn as et, yi as f, ai as g, hi as h, G as i, Mn as it, Zr as j, $r as k, Vi as l, Ge as lt, gi as m, oo as n, Cn as nt, Wi as o, pn as ot, vi as p, Dr as q, Gi as r, xn as rt, Sa as s, ln as st, so as t, Pn as tt, Ui as u, Oe as ut, ui as v, pi as w, di as x, mi as y, Ir as z };
|