@devtron-labs/devtron-fe-common-lib 1.23.3-beta-10 → 1.23.3-beta-11
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/dist/{@code-editor-6Qtf8qSe.js → @code-editor-C4T-aScY.js} +18572 -18377
- package/dist/{@common-rjsf-DwlGe7K6.js → @common-rjsf-BMMkmK0F.js} +899 -899
- package/dist/{@framer-motion-CBTfUjw8.js → @framer-motion-WQ30nz8j.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-D-z_GHfU.js → @react-virtualized-sticky-tree-BM5JKBXJ.js} +11 -11
- package/dist/{@src-assets-images-DE-XscKM.js → @src-assets-images-BQxCeCxP.js} +1 -1
- package/dist/{@vendor-oWdVqSC3.js → @vendor-DZKa6Hi6.js} +1641 -1641
- package/dist/MMQ4R4NB-CFq2Eo5Y.js +3 -0
- package/dist/Shared/Analytics/analytics.d.ts +2 -3
- package/dist/Shared/Analytics/types.d.ts +4 -0
- package/dist/V4HPSUGU-FEAgyDRU.js +3 -0
- package/dist/index.js +1311 -1312
- package/dist/javascript-W4V65GQp.js +2 -0
- package/dist/vitesse-dark-BeH4ywRI.js +2 -0
- package/dist/vitesse-light-DdeKPBrl.js +2 -0
- package/package.json +2 -3
- package/dist/MMQ4R4NB-XebeQPpu.js +0 -3
- package/dist/V4HPSUGU-U6pmQY85.js +0 -3
- package/dist/javascript-DadaRKjT.js +0 -2
- package/dist/vitesse-dark-BaFSn7za.js +0 -2
- package/dist/vitesse-light-NbmxBY4N.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-BETGA6I9.js";
|
|
2
|
-
import { $c as a, $s as o, Aa as s, Ac as c, Al as l, Bc as u, Bi as d,
|
|
2
|
+
import { $c as a, $s as o, Aa as s, Ac as c, Al as l, Bc as u, Bi as d, Bl as f, Bs as p, Cc as m, Cl as h, Ct as g, Dc as _, Dl as v, Dt as y, Ec as b, Ed as x, El as S, Fc as C, Fl as w, Gc as T, Gl as E, Gs as D, Hc as O, Hi as k, Hl as A, Hs as j, Ht as M, Ic as N, Il as P, Jc as F, Ji as I, Jl as L, Jn as R, Js as ee, Jt as te, Kc as ne, Kl as re, Ks as ie, Lc as ae, Ll as z, Ma as oe, Mc as se, Ml as ce, Mu as le, Nc as ue, Nl as de, Oc as fe, Ol as pe, Pc as me, Pl as he, Qc as ge, Qn as _e, Qs as ve, Qt as ye, Rc as be, Rl as xe, Sc as Se, Sl as Ce, Tc as we, Tl as Te, Uc as Ee, Ui as B, Ul as De, Ur as Oe, Us as ke, Vc as Ae, Vi as je, Vs as Me, Wc as Ne, Wi as Pe, Wl as Fe, Ws as Ie, Xc as Le, Xl as Re, Xn as ze, Xs as Be, Yc as Ve, Yi as He, Yl as Ue, Yn as We, Ys as Ge, Zc as Ke, Zn as qe, Zs as Je, Zt as Ye, _c as Xe, _l as Ze, ac as Qe, al as $e, bc as et, bl as tt, cc as nt, ci as rt, cl as it, dc as at, dl as ot, ec as st, el as ct, fc as lt, fl as ut, fu as dt, gc as ft, gl as pt, hc as mt, hi as ht, hl as gt, ic as _t, il as vt, io as V, jc as yt, jl as bt, jt as xt, kc as St, kl as Ct, ku as wt, lc as Tt, ll as Et, ln as Dt, ma as Ot, mc as kt, ml as At, nc as jt, nl as Mt, oa as Nt, oc as Pt, ol as Ft, pc as It, pl as H, pt as Lt, pu as Rt, qc as zt, qs as Bt, rc as Vt, rl as Ht, sc as Ut, sd as Wt, sl as Gt, tc as Kt, tl as qt, ua as Jt, uc as Yt, ul as Xt, vc as Zt, vd as Qt, vl as $t, vt as en, wc as tn, wl as nn, xc as rn, xd as an, xl as on, yc as sn, yl as cn, zc as ln, zl as un } from "./@code-editor-C4T-aScY.js";
|
|
3
3
|
import * as U from "react";
|
|
4
4
|
import dn, { Children as fn, Component as pn, Fragment as mn, createContext as hn, createElement as gn, createRef as _n, forwardRef as vn, useCallback as W, useContext as yn, useEffect as bn, useLayoutEffect as xn, useMemo as Sn, useRef as Cn, useState as wn } from "react";
|
|
5
5
|
import { createPortal as Tn } from "react-dom";
|
|
@@ -7,7 +7,7 @@ import { components as En } from "react-select";
|
|
|
7
7
|
import { Link as Dn } from "react-router-dom";
|
|
8
8
|
import { parse as On } from "yaml";
|
|
9
9
|
import './assets/@common-rjsf.css';//#region src/Shared/Providers/MainContextProvider/MainContextProvider.tsx
|
|
10
|
-
var G =
|
|
10
|
+
var G = x(), kn = hn(null), An = () => {
|
|
11
11
|
let e = yn(kn);
|
|
12
12
|
if (!e) throw Error("Please wrap with MainContextProvider");
|
|
13
13
|
return e;
|
|
@@ -64,21 +64,21 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
64
64
|
})]
|
|
65
65
|
}), In = (e) => {
|
|
66
66
|
switch (e) {
|
|
67
|
-
case
|
|
67
|
+
case V.xxs: return 14;
|
|
68
68
|
default: return 16;
|
|
69
69
|
}
|
|
70
70
|
}, Ln = (e) => {
|
|
71
71
|
let t = "py-2";
|
|
72
72
|
switch (e) {
|
|
73
|
-
case
|
|
73
|
+
case V.xxs: return `px-4 ${t}`;
|
|
74
74
|
default: return `px-6 ${t}`;
|
|
75
75
|
}
|
|
76
76
|
}, Rn = (e) => {
|
|
77
77
|
switch (e) {
|
|
78
|
-
case
|
|
78
|
+
case V.xxs: return "fs-12 lh-16";
|
|
79
79
|
default: return "fs-12 lh-20";
|
|
80
80
|
}
|
|
81
|
-
}, zn = (e) => e !==
|
|
81
|
+
}, zn = (e) => e !== V.xs && e !== V.xxs ? V.xs : e, Bn = ({ children: e, type: t, style: n, onClick: r, href: i, size: a }) => {
|
|
82
82
|
let o = `flexbox chip dc__w-fit-content br-4 ${n === "error" ? "chip--error" : "border__primary"} bg__primary dc__transition--background dc__user-select-none dc__overflow-hidden dc__mxw-250 ${`chip--${a}`}`;
|
|
83
83
|
if (t === "button") {
|
|
84
84
|
let t = fn.toArray(e), n = t[0];
|
|
@@ -100,8 +100,8 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
100
100
|
className: o,
|
|
101
101
|
children: e
|
|
102
102
|
});
|
|
103
|
-
}, Vn = ({ label: e, startIconProps: t, startIcon: n, size: r =
|
|
104
|
-
let d = zn(r), f = In(d), p = Ln(d), m = Rn(d), h = () => t ? /* @__PURE__ */ (0, G.jsx)(
|
|
103
|
+
}, Vn = ({ label: e, startIconProps: t, startIcon: n, size: r = V.xs, value: i, onRemove: a, style: o = "neutral", type: s = "non-interactive", onClick: c, capitalizeLabel: l = !1, href: u }) => {
|
|
104
|
+
let d = zn(r), f = In(d), p = Ln(d), m = Rn(d), h = () => t ? /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
105
105
|
...t,
|
|
106
106
|
size: f
|
|
107
107
|
}) : n ?? null;
|
|
@@ -115,7 +115,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
115
115
|
/* @__PURE__ */ (0, G.jsxs)(G.Fragment, { children: [((t = !0) => /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
116
116
|
className: `flex dc__gap-4 ${p} dc__no-shrink dc__mxw-120`,
|
|
117
117
|
children: [
|
|
118
|
-
o === "error" && t && /* @__PURE__ */ (0, G.jsx)(
|
|
118
|
+
o === "error" && t && /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
119
119
|
name: "ic-error",
|
|
120
120
|
color: "R500",
|
|
121
121
|
size: f
|
|
@@ -131,7 +131,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
131
131
|
]
|
|
132
132
|
}))(!i), i && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
133
133
|
className: `flex border__secondary--left dc__gap-4 ${p}`,
|
|
134
|
-
children: [o === "error" && /* @__PURE__ */ (0, G.jsx)(
|
|
134
|
+
children: [o === "error" && /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
135
135
|
name: "ic-error",
|
|
136
136
|
color: "R500",
|
|
137
137
|
size: f
|
|
@@ -143,13 +143,13 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
143
143
|
})
|
|
144
144
|
})]
|
|
145
145
|
})] }),
|
|
146
|
-
a && /* @__PURE__ */ (0, G.jsx)(
|
|
147
|
-
variant:
|
|
148
|
-
style:
|
|
146
|
+
a && /* @__PURE__ */ (0, G.jsx)(R, {
|
|
147
|
+
variant: qe.borderLess,
|
|
148
|
+
style: ze.negativeGrey,
|
|
149
149
|
dataTestId: "chip__remove-btn",
|
|
150
150
|
showAriaLabelInTippy: !1,
|
|
151
151
|
ariaLabel: "Remove filter",
|
|
152
|
-
icon: /* @__PURE__ */ (0, G.jsx)(
|
|
152
|
+
icon: /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
153
153
|
name: "ic-close-small",
|
|
154
154
|
color: null
|
|
155
155
|
}),
|
|
@@ -161,15 +161,15 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
161
161
|
e.preventDefault(), e.stopPropagation();
|
|
162
162
|
} }
|
|
163
163
|
}),
|
|
164
|
-
s === "link" && /* @__PURE__ */ (0, G.jsx)(
|
|
165
|
-
component:
|
|
164
|
+
s === "link" && /* @__PURE__ */ (0, G.jsx)(R, {
|
|
165
|
+
component: We.link,
|
|
166
166
|
linkProps: { to: u },
|
|
167
|
-
variant:
|
|
168
|
-
style:
|
|
167
|
+
variant: qe.borderLess,
|
|
168
|
+
style: ze.neutral,
|
|
169
169
|
dataTestId: "chip__visit-link",
|
|
170
170
|
showAriaLabelInTippy: !1,
|
|
171
171
|
ariaLabel: "Visit link",
|
|
172
|
-
icon: /* @__PURE__ */ (0, G.jsx)(
|
|
172
|
+
icon: /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
173
173
|
name: "ic-arrow-square-out",
|
|
174
174
|
color: null
|
|
175
175
|
}),
|
|
@@ -178,54 +178,54 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
178
178
|
]
|
|
179
179
|
});
|
|
180
180
|
}, Hn = {
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
181
|
+
[V.small]: "12px",
|
|
182
|
+
[V.medium]: "13px",
|
|
183
|
+
[V.large]: "13px",
|
|
184
|
+
[V.xl]: "16px"
|
|
185
185
|
}, Un = {
|
|
186
|
-
[
|
|
186
|
+
[V.small]: {
|
|
187
187
|
width: "12px",
|
|
188
188
|
height: "12px"
|
|
189
189
|
},
|
|
190
|
-
[
|
|
190
|
+
[V.medium]: {
|
|
191
191
|
width: "16px",
|
|
192
192
|
height: "16px"
|
|
193
193
|
},
|
|
194
|
-
[
|
|
194
|
+
[V.large]: {
|
|
195
195
|
width: "16px",
|
|
196
196
|
height: "16px"
|
|
197
197
|
},
|
|
198
|
-
[
|
|
198
|
+
[V.xl]: {
|
|
199
199
|
width: "16px",
|
|
200
200
|
height: "16px"
|
|
201
201
|
}
|
|
202
202
|
}, Wn = {
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
206
|
-
[
|
|
203
|
+
[V.small]: "auto",
|
|
204
|
+
[V.medium]: "auto",
|
|
205
|
+
[V.large]: "36px",
|
|
206
|
+
[V.xl]: "36px"
|
|
207
207
|
}, Gn = {
|
|
208
|
-
[
|
|
209
|
-
[
|
|
210
|
-
[
|
|
211
|
-
[
|
|
208
|
+
[V.small]: "16px",
|
|
209
|
+
[V.medium]: "16px",
|
|
210
|
+
[V.large]: "20px",
|
|
211
|
+
[V.xl]: "20px"
|
|
212
212
|
}, Kn = /* @__PURE__ */ function(e) {
|
|
213
213
|
return e.DEFAULT = "default", e.BORDER_LESS = "border-less", e.COMPACT = "compact", e;
|
|
214
214
|
}({}), qn = (e) => {
|
|
215
215
|
switch (e) {
|
|
216
|
-
case
|
|
216
|
+
case V.medium: return {
|
|
217
217
|
width: "125%",
|
|
218
218
|
minWidth: "250px"
|
|
219
219
|
};
|
|
220
|
-
case
|
|
220
|
+
case V.large: return {
|
|
221
221
|
width: "150%",
|
|
222
222
|
minWidth: "300px"
|
|
223
223
|
};
|
|
224
|
-
case
|
|
224
|
+
case V.xs: return {
|
|
225
225
|
width: "100%",
|
|
226
226
|
minWidth: "100%"
|
|
227
227
|
};
|
|
228
|
-
case
|
|
228
|
+
case V.small:
|
|
229
229
|
default: return {
|
|
230
230
|
width: "100%",
|
|
231
231
|
minWidth: "200px"
|
|
@@ -259,8 +259,8 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
259
259
|
}
|
|
260
260
|
}, Yn = (e) => e.isSelected && !e.selectProps.isMulti ? "var(--B100)" : e.isFocused ? "var(--bg-hover)" : "var(--transparent)", Xn = ({ error: e, size: t, menuSize: n, variant: r, getIsOptionValid: i, isGroupHeadingSelectable: a, shouldMenuAlignRight: o }) => {
|
|
261
261
|
let { control: s, singleValue: c } = Jn(r) ?? {
|
|
262
|
-
control:
|
|
263
|
-
singleValue:
|
|
262
|
+
control: Ye,
|
|
263
|
+
singleValue: Ye
|
|
264
264
|
};
|
|
265
265
|
return {
|
|
266
266
|
container: (e, t) => ({
|
|
@@ -474,7 +474,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
474
474
|
};
|
|
475
475
|
}, Zn = (e, t, n) => {
|
|
476
476
|
let r = t.reduce((e, t) => (e[n(t)] = !0, e), {}), i = e.map((e) => n(e));
|
|
477
|
-
return i.every((e) => r[e]) ?
|
|
477
|
+
return i.every((e) => r[e]) ? Wt.CHECKED : i.some((e) => r[e]) ? Wt.INTERMEDIATE : null;
|
|
478
478
|
}, Qn = (e, t, n = {
|
|
479
479
|
label: "",
|
|
480
480
|
value: ""
|
|
@@ -489,11 +489,11 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
489
489
|
let { isDisabled: t, selectProps: { isLoading: n, keyboardShortcut: r } } = e;
|
|
490
490
|
return r ? null : /* @__PURE__ */ (0, G.jsx)(En.DropdownIndicator, {
|
|
491
491
|
...e,
|
|
492
|
-
children: n ? /* @__PURE__ */ (0, G.jsx)(oe, { fillColor: "var(--N500)" }) : /* @__PURE__ */ (0, G.jsx)(
|
|
492
|
+
children: n ? /* @__PURE__ */ (0, G.jsx)(oe, { fillColor: "var(--N500)" }) : /* @__PURE__ */ (0, G.jsx)(He, { className: t ? "scn-3" : "scn-6" })
|
|
493
493
|
});
|
|
494
494
|
}, nr = (e) => /* @__PURE__ */ (0, G.jsx)(En.ClearIndicator, {
|
|
495
495
|
...e,
|
|
496
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
496
|
+
children: /* @__PURE__ */ (0, G.jsx)(I, { className: "icon-use-fill-n6" })
|
|
497
497
|
}), rr = (e) => {
|
|
498
498
|
let { children: t, getValue: n, selectProps: { icon: r, showSelectedOptionIcon: i, keyboardShortcut: a } } = e, { startIcon: o, endIcon: s } = n()?.[0] ?? {}, c = r;
|
|
499
499
|
return i && (o || s) && (c = o || s), /* @__PURE__ */ (0, G.jsxs)(En.Control, {
|
|
@@ -545,7 +545,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
545
545
|
e.preventDefault(), e.stopPropagation(), s(i);
|
|
546
546
|
}, _ = "dc__no-shrink icon-dim-16 flex dc__fill-available-space", v = t && !l && typeof r == "string", y = () => v && r.startsWith("API-TOKEN:") ? r.split(":")?.[1] || "-" : r, b = () => v ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
547
547
|
className: "flex dc__no-shrink dc__visible-hover--hide-child icon-dim-20",
|
|
548
|
-
children: r.startsWith("API-TOKEN:") ? /* @__PURE__ */ (0, G.jsx)(
|
|
548
|
+
children: r.startsWith("API-TOKEN:") ? /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
549
549
|
name: "ic-key",
|
|
550
550
|
color: "N700",
|
|
551
551
|
size: 20
|
|
@@ -561,10 +561,10 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
561
561
|
children: [
|
|
562
562
|
v && b(),
|
|
563
563
|
a && o && !h && /* @__PURE__ */ (0, G.jsx)(Pn, {
|
|
564
|
-
onChange:
|
|
564
|
+
onChange: Ye,
|
|
565
565
|
onClick: g,
|
|
566
566
|
isChecked: l || !1,
|
|
567
|
-
value:
|
|
567
|
+
value: Wt.CHECKED,
|
|
568
568
|
rootClassName: `mb-0 w-20 p-2 dc__align-self-start dc__no-shrink ${v ? "dc__visible-hover--child" : ""}`,
|
|
569
569
|
disabled: c
|
|
570
570
|
}),
|
|
@@ -612,7 +612,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
612
612
|
let { value: t } = e;
|
|
613
613
|
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
614
614
|
className: "flexbox dc__gap-6 p-8",
|
|
615
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
615
|
+
children: [/* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
616
616
|
name: "ic-info-outline",
|
|
617
617
|
color: "N700",
|
|
618
618
|
size: 16
|
|
@@ -625,10 +625,10 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
625
625
|
if (t === "button") {
|
|
626
626
|
let { buttonProps: t } = e, { variant: n } = t;
|
|
627
627
|
return /* @__PURE__ */ (0, G.jsx)("div", {
|
|
628
|
-
className: `select-picker__menu-list-footer-button--${n} ${n ===
|
|
629
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
628
|
+
className: `select-picker__menu-list-footer-button--${n} ${n === qe.borderLess ? "py-4" : "p-8"}`,
|
|
629
|
+
children: /* @__PURE__ */ (0, G.jsx)(R, {
|
|
630
630
|
...t,
|
|
631
|
-
size:
|
|
631
|
+
size: V.medium,
|
|
632
632
|
fullWidth: !0
|
|
633
633
|
})
|
|
634
634
|
});
|
|
@@ -655,7 +655,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
655
655
|
return /* @__PURE__ */ (0, G.jsx)(Vn, {
|
|
656
656
|
label: String(n.label),
|
|
657
657
|
style: a ? "neutral" : "error",
|
|
658
|
-
size:
|
|
658
|
+
size: V.xs,
|
|
659
659
|
startIcon: c && /* @__PURE__ */ (0, G.jsx)("div", {
|
|
660
660
|
className: `dc__no-shrink ${r ? "icon-dim-16" : "icon-dim-20"} flex dc__fill-available-space`,
|
|
661
661
|
children: c
|
|
@@ -670,13 +670,13 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
670
670
|
let e = a.reduce((e, t) => (e[r.getOptionValue(t)] = !0, e), {}), t = i.filter((t) => !e[r.getOptionValue(t)]);
|
|
671
671
|
if (o) {
|
|
672
672
|
r?.onChange?.(t, {
|
|
673
|
-
action:
|
|
673
|
+
action: le.deselectOption,
|
|
674
674
|
option: null
|
|
675
675
|
});
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
r?.onChange?.([...t, ...a], {
|
|
679
|
-
action:
|
|
679
|
+
action: le.selectOption,
|
|
680
680
|
option: null
|
|
681
681
|
});
|
|
682
682
|
}, c = (e) => {
|
|
@@ -688,7 +688,7 @@ var G = we(), kn = hn(null), An = () => {
|
|
|
688
688
|
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
689
689
|
className: "flexbox dc__align-items-center dc__gap-8",
|
|
690
690
|
children: [e && /* @__PURE__ */ (0, G.jsx)(Pn, {
|
|
691
|
-
onChange:
|
|
691
|
+
onChange: Ye,
|
|
692
692
|
onClick: c,
|
|
693
693
|
isChecked: !!o,
|
|
694
694
|
value: o,
|
|
@@ -1458,45 +1458,45 @@ var Gi = [function(e, t, n, r) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, F = !1;
|
|
1460
1460
|
function I(e) {
|
|
1461
|
-
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1461
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(e) || x(e) === l;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function L(e) {
|
|
1464
1464
|
return x(e) === u;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function R(e) {
|
|
1467
1467
|
return x(e) === c;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function ee(e) {
|
|
1470
1470
|
return x(e) === s;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function te(e) {
|
|
1473
1473
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function ne(e) {
|
|
1476
1476
|
return x(e) === d;
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function re(e) {
|
|
1479
1479
|
return x(e) === i;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function ie(e) {
|
|
1482
1482
|
return x(e) === h;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function ae(e) {
|
|
1485
1485
|
return x(e) === m;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function z(e) {
|
|
1488
1488
|
return x(e) === r;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function oe(e) {
|
|
1491
1491
|
return x(e) === o;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function se(e) {
|
|
1494
1494
|
return x(e) === a;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function ce(e) {
|
|
1497
1497
|
return x(e) === f;
|
|
1498
1498
|
}
|
|
1499
|
-
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode =
|
|
1499
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = R, e.isContextProvider = ee, e.isElement = te, e.isForwardRef = ne, e.isFragment = re, e.isLazy = ie, e.isMemo = ae, e.isPortal = z, e.isProfiler = oe, e.isStrictMode = se, e.isSuspense = ce, e.isValidElementType = b, e.typeOf = x;
|
|
1500
1500
|
})();
|
|
1501
1501
|
})), Yi = /* @__PURE__ */ i(((e, t) => {
|
|
1502
1502
|
process.env.NODE_ENV === "production" ? t.exports = qi() : t.exports = Ji();
|
|
@@ -1843,7 +1843,7 @@ function Ma(e, t) {
|
|
|
1843
1843
|
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
1844
1844
|
function Na(e, t) {
|
|
1845
1845
|
if (e == null) return {};
|
|
1846
|
-
var n, r, i =
|
|
1846
|
+
var n, r, i = k(e, t);
|
|
1847
1847
|
if (Object.getOwnPropertySymbols) {
|
|
1848
1848
|
var a = Object.getOwnPropertySymbols(e);
|
|
1849
1849
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
@@ -2297,7 +2297,7 @@ var qo = function(e) {
|
|
|
2297
2297
|
});
|
|
2298
2298
|
}, Zo = function(e) {
|
|
2299
2299
|
var t = e.children, n = e.innerRef, r = e.innerProps;
|
|
2300
|
-
return Y("div",
|
|
2300
|
+
return Y("div", B({}, X(e, "menu", { menu: !0 }), { ref: n }, r), t);
|
|
2301
2301
|
}, Qo = function(e, t) {
|
|
2302
2302
|
var n = e.maxHeight, r = e.theme.spacing.baseUnit;
|
|
2303
2303
|
return K({
|
|
@@ -2311,7 +2311,7 @@ var qo = function(e) {
|
|
|
2311
2311
|
});
|
|
2312
2312
|
}, $o = function(e) {
|
|
2313
2313
|
var t = e.children, n = e.innerProps, r = e.innerRef, i = e.isMulti;
|
|
2314
|
-
return Y("div",
|
|
2314
|
+
return Y("div", B({}, X(e, "menuList", {
|
|
2315
2315
|
"menu-list": !0,
|
|
2316
2316
|
"menu-list--is-multi": i
|
|
2317
2317
|
}), { ref: r }, n), t);
|
|
@@ -2323,7 +2323,7 @@ var qo = function(e) {
|
|
|
2323
2323
|
});
|
|
2324
2324
|
}, ts = es, ns = es, rs = function(e) {
|
|
2325
2325
|
var t = e.children, n = t === void 0 ? "No options" : t, r = e.innerProps;
|
|
2326
|
-
return Y("div",
|
|
2326
|
+
return Y("div", B({}, X(K(K({}, Na(e, Uo)), {}, {
|
|
2327
2327
|
children: n,
|
|
2328
2328
|
innerProps: r
|
|
2329
2329
|
}), "noOptionsMessage", {
|
|
@@ -2332,7 +2332,7 @@ var qo = function(e) {
|
|
|
2332
2332
|
}), r), n);
|
|
2333
2333
|
}, is = function(e) {
|
|
2334
2334
|
var t = e.children, n = t === void 0 ? "Loading..." : t, r = e.innerProps;
|
|
2335
|
-
return Y("div",
|
|
2335
|
+
return Y("div", B({}, X(K(K({}, Na(e, Wo)), {}, {
|
|
2336
2336
|
children: n,
|
|
2337
2337
|
innerProps: r
|
|
2338
2338
|
}), "loadingMessage", {
|
|
@@ -2380,7 +2380,7 @@ var qo = function(e) {
|
|
|
2380
2380
|
s.current = e, _();
|
|
2381
2381
|
}, [_]);
|
|
2382
2382
|
if (!t && o !== "fixed" || !m) return null;
|
|
2383
|
-
var y = Y("div",
|
|
2383
|
+
var y = Y("div", B({ ref: v }, X(K(K({}, e), {}, {
|
|
2384
2384
|
offset: m.offset,
|
|
2385
2385
|
position: o,
|
|
2386
2386
|
rect: m.rect
|
|
@@ -2396,7 +2396,7 @@ var qo = function(e) {
|
|
|
2396
2396
|
};
|
|
2397
2397
|
}, cs = function(e) {
|
|
2398
2398
|
var t = e.children, n = e.innerProps, r = e.isDisabled, i = e.isRtl;
|
|
2399
|
-
return Y("div",
|
|
2399
|
+
return Y("div", B({}, X(e, "container", {
|
|
2400
2400
|
"--is-disabled": r,
|
|
2401
2401
|
"--is-rtl": i
|
|
2402
2402
|
}), n), t);
|
|
@@ -2413,7 +2413,7 @@ var qo = function(e) {
|
|
|
2413
2413
|
}, t ? {} : { padding: `${n.baseUnit / 2}px ${n.baseUnit * 2}px` });
|
|
2414
2414
|
}, us = function(e) {
|
|
2415
2415
|
var t = e.children, n = e.innerProps, r = e.isMulti, i = e.hasValue;
|
|
2416
|
-
return Y("div",
|
|
2416
|
+
return Y("div", B({}, X(e, "valueContainer", {
|
|
2417
2417
|
"value-container": !0,
|
|
2418
2418
|
"value-container--is-multi": r,
|
|
2419
2419
|
"value-container--has-value": i
|
|
@@ -2427,7 +2427,7 @@ var qo = function(e) {
|
|
|
2427
2427
|
};
|
|
2428
2428
|
}, fs = function(e) {
|
|
2429
2429
|
var t = e.children, n = e.innerProps;
|
|
2430
|
-
return Y("div",
|
|
2430
|
+
return Y("div", B({}, X(e, "indicatorsContainer", { indicators: !0 }), n), t);
|
|
2431
2431
|
}, ps, ms = ["size"], hs = [
|
|
2432
2432
|
"innerProps",
|
|
2433
2433
|
"isRtl",
|
|
@@ -2446,7 +2446,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2446
2446
|
toString: gs
|
|
2447
2447
|
}, vs = function(e) {
|
|
2448
2448
|
var t = e.size, n = Na(e, ms);
|
|
2449
|
-
return Y("svg",
|
|
2449
|
+
return Y("svg", B({
|
|
2450
2450
|
height: t,
|
|
2451
2451
|
width: t,
|
|
2452
2452
|
viewBox: "0 0 20 20",
|
|
@@ -2455,9 +2455,9 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2455
2455
|
css: _s
|
|
2456
2456
|
}, n));
|
|
2457
2457
|
}, ys = function(e) {
|
|
2458
|
-
return Y(vs,
|
|
2458
|
+
return Y(vs, B({ size: 20 }, e), Y("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" }));
|
|
2459
2459
|
}, bs = function(e) {
|
|
2460
|
-
return Y(vs,
|
|
2460
|
+
return Y(vs, B({ size: 20 }, e), Y("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }));
|
|
2461
2461
|
}, xs = function(e, t) {
|
|
2462
2462
|
var n = e.isFocused, r = e.theme, i = r.spacing.baseUnit, a = r.colors;
|
|
2463
2463
|
return K({
|
|
@@ -2471,13 +2471,13 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
}, Ss = xs, Cs = function(e) {
|
|
2473
2473
|
var t = e.children, n = e.innerProps;
|
|
2474
|
-
return Y("div",
|
|
2474
|
+
return Y("div", B({}, X(e, "dropdownIndicator", {
|
|
2475
2475
|
indicator: !0,
|
|
2476
2476
|
"dropdown-indicator": !0
|
|
2477
2477
|
}), n), t || Y(bs, null));
|
|
2478
2478
|
}, ws = xs, Ts = function(e) {
|
|
2479
2479
|
var t = e.children, n = e.innerProps;
|
|
2480
|
-
return Y("div",
|
|
2480
|
+
return Y("div", B({}, X(e, "clearIndicator", {
|
|
2481
2481
|
indicator: !0,
|
|
2482
2482
|
"clear-indicator": !0
|
|
2483
2483
|
}), n), t || Y(ys, null));
|
|
@@ -2494,7 +2494,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2494
2494
|
});
|
|
2495
2495
|
}, Ds = function(e) {
|
|
2496
2496
|
var t = e.innerProps;
|
|
2497
|
-
return Y("span",
|
|
2497
|
+
return Y("span", B({}, t, X(e, "indicatorSeparator", { "indicator-separator": !0 })));
|
|
2498
2498
|
}, Os = Oa(ps ||= Pa(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])), ks = function(e, t) {
|
|
2499
2499
|
var n = e.isFocused, r = e.size, i = e.theme, a = i.colors, o = i.spacing.baseUnit;
|
|
2500
2500
|
return K({
|
|
@@ -2525,7 +2525,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2525
2525
|
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */") });
|
|
2526
2526
|
}, js = function(e) {
|
|
2527
2527
|
var t = e.innerProps, n = e.isRtl, r = e.size, i = r === void 0 ? 4 : r;
|
|
2528
|
-
return Y("div",
|
|
2528
|
+
return Y("div", B({}, X(K(K({}, Na(e, hs)), {}, {
|
|
2529
2529
|
innerProps: t,
|
|
2530
2530
|
isRtl: n,
|
|
2531
2531
|
size: i
|
|
@@ -2566,7 +2566,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2566
2566
|
});
|
|
2567
2567
|
}, Ns = function(e) {
|
|
2568
2568
|
var t = e.children, n = e.isDisabled, r = e.isFocused, i = e.innerRef, a = e.innerProps, o = e.menuIsOpen;
|
|
2569
|
-
return Y("div",
|
|
2569
|
+
return Y("div", B({ ref: i }, X(e, "control", {
|
|
2570
2570
|
control: !0,
|
|
2571
2571
|
"control--is-disabled": n,
|
|
2572
2572
|
"control--is-focused": r,
|
|
@@ -2580,7 +2580,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2580
2580
|
};
|
|
2581
2581
|
}, Is = function(e) {
|
|
2582
2582
|
var t = e.children, n = e.cx, r = e.getStyles, i = e.getClassNames, a = e.Heading, o = e.headingProps, s = e.innerProps, c = e.label, l = e.theme, u = e.selectProps;
|
|
2583
|
-
return Y("div",
|
|
2583
|
+
return Y("div", B({}, X(e, "group", { group: !0 }), s), Y(a, B({}, o, {
|
|
2584
2584
|
selectProps: u,
|
|
2585
2585
|
theme: l,
|
|
2586
2586
|
getStyles: r,
|
|
@@ -2606,7 +2606,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2606
2606
|
var t = xo(e);
|
|
2607
2607
|
t.data;
|
|
2608
2608
|
var n = Na(t, Ps);
|
|
2609
|
-
return Y("div",
|
|
2609
|
+
return Y("div", B({}, X(e, "groupHeading", { "group-heading": !0 }), n));
|
|
2610
2610
|
}, zs = Is, Bs = [
|
|
2611
2611
|
"innerRef",
|
|
2612
2612
|
"isDisabled",
|
|
@@ -2652,12 +2652,12 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2652
2652
|
}, Hs);
|
|
2653
2653
|
}, Gs = function(e) {
|
|
2654
2654
|
var t = e.cx, n = e.value, r = xo(e), i = r.innerRef, a = r.isDisabled, o = r.isHidden, s = r.isTextArea, c = r.inputClassName, l = Na(r, Bs);
|
|
2655
|
-
return Y("div",
|
|
2655
|
+
return Y("div", B({}, X(e, "input", { "input-container": !0 }), { "data-value": n || "" }), s ? Y("textarea", B({
|
|
2656
2656
|
className: t({ input: !0 }, c),
|
|
2657
2657
|
ref: i,
|
|
2658
2658
|
style: K(K({}, Ws(o)), {}, { resize: "none" }),
|
|
2659
2659
|
disabled: a
|
|
2660
|
-
}, l, { rows: 1 })) : Y("input",
|
|
2660
|
+
}, l, { rows: 1 })) : Y("input", B({
|
|
2661
2661
|
className: t({ input: !0 }, c),
|
|
2662
2662
|
ref: i,
|
|
2663
2663
|
style: Ws(o),
|
|
@@ -2708,7 +2708,7 @@ var _s = process.env.NODE_ENV === "production" ? {
|
|
|
2708
2708
|
}, Xs = Ys, Zs = Ys;
|
|
2709
2709
|
function Qs(e) {
|
|
2710
2710
|
var t = e.children, n = e.innerProps;
|
|
2711
|
-
return Y("div",
|
|
2711
|
+
return Y("div", B({ role: "button" }, n), t || Y(ys, { size: 14 }));
|
|
2712
2712
|
}
|
|
2713
2713
|
var $s = function(e) {
|
|
2714
2714
|
var t = e.children, n = e.components, r = e.data, i = e.innerProps, a = e.isDisabled, o = e.removeProps, s = e.selectProps, c = n.Container, l = n.Label, u = n.Remove;
|
|
@@ -2746,7 +2746,7 @@ var $s = function(e) {
|
|
|
2746
2746
|
});
|
|
2747
2747
|
}, tc = function(e) {
|
|
2748
2748
|
var t = e.children, n = e.isDisabled, r = e.isFocused, i = e.isSelected, a = e.innerRef, o = e.innerProps;
|
|
2749
|
-
return Y("div",
|
|
2749
|
+
return Y("div", B({}, X(e, "option", {
|
|
2750
2750
|
option: !0,
|
|
2751
2751
|
"option--is-disabled": n,
|
|
2752
2752
|
"option--is-focused": r,
|
|
@@ -2767,7 +2767,7 @@ var $s = function(e) {
|
|
|
2767
2767
|
});
|
|
2768
2768
|
}, rc = function(e) {
|
|
2769
2769
|
var t = e.children, n = e.innerProps;
|
|
2770
|
-
return Y("div",
|
|
2770
|
+
return Y("div", B({}, X(e, "placeholder", { placeholder: !0 }), n), t);
|
|
2771
2771
|
}, ic = function(e, t) {
|
|
2772
2772
|
var n = e.isDisabled, r = e.theme, i = r.spacing, a = r.colors;
|
|
2773
2773
|
return K({
|
|
@@ -2808,7 +2808,7 @@ var $s = function(e) {
|
|
|
2808
2808
|
SelectContainer: cs,
|
|
2809
2809
|
SingleValue: function(e) {
|
|
2810
2810
|
var t = e.children, n = e.isDisabled, r = e.innerProps;
|
|
2811
|
-
return Y("div",
|
|
2811
|
+
return Y("div", B({}, X(e, "singleValue", {
|
|
2812
2812
|
"single-value": !0,
|
|
2813
2813
|
"single-value--is-disabled": n
|
|
2814
2814
|
}), r), t);
|
|
@@ -2858,7 +2858,7 @@ for (var fc = process.env.NODE_ENV === "production" ? {
|
|
|
2858
2858
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
2859
2859
|
toString: dc
|
|
2860
2860
|
}, pc = function(e) {
|
|
2861
|
-
return Y("span",
|
|
2861
|
+
return Y("span", B({ css: fc }, e));
|
|
2862
2862
|
}, mc = {
|
|
2863
2863
|
guidance: function(e) {
|
|
2864
2864
|
var t = e.isSearchable, n = e.isMulti, r = e.tabSelectsValue, i = e.context, a = e.isInitialFocus;
|
|
@@ -3353,7 +3353,7 @@ var Sc = function(e) {
|
|
|
3353
3353
|
}, Dc = ["innerRef"];
|
|
3354
3354
|
function Oc(e) {
|
|
3355
3355
|
var t = e.innerRef, n = Ho(Na(e, Dc), "onExited", "in", "enter", "exit", "appear");
|
|
3356
|
-
return Y("input",
|
|
3356
|
+
return Y("input", B({ ref: t }, n, { css: /* @__PURE__ */ Da({
|
|
3357
3357
|
label: "dummyInput",
|
|
3358
3358
|
background: 0,
|
|
3359
3359
|
border: 0,
|
|
@@ -4267,7 +4267,7 @@ var wl = function(e) {
|
|
|
4267
4267
|
role: "combobox",
|
|
4268
4268
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
4269
4269
|
}, s && { "aria-controls": this.getElementId("listbox") }), !n && { "aria-readonly": !0 }), this.hasValue() ? f?.action === "initial-input-focus" && { "aria-describedby": this.getElementId("live-region") } : { "aria-describedby": this.getElementId("placeholder") });
|
|
4270
|
-
return n ? /* @__PURE__ */ U.createElement(l,
|
|
4270
|
+
return n ? /* @__PURE__ */ U.createElement(l, B({}, p, {
|
|
4271
4271
|
autoCapitalize: "none",
|
|
4272
4272
|
autoComplete: "off",
|
|
4273
4273
|
autoCorrect: "off",
|
|
@@ -4283,7 +4283,7 @@ var wl = function(e) {
|
|
|
4283
4283
|
form: o,
|
|
4284
4284
|
type: "text",
|
|
4285
4285
|
value: i
|
|
4286
|
-
}, h)) : /* @__PURE__ */ U.createElement(Oc,
|
|
4286
|
+
}, h)) : /* @__PURE__ */ U.createElement(Oc, B({
|
|
4287
4287
|
id: m,
|
|
4288
4288
|
innerRef: this.getInputRef,
|
|
4289
4289
|
onBlur: this.onInputBlur,
|
|
@@ -4301,7 +4301,7 @@ var wl = function(e) {
|
|
|
4301
4301
|
key: "renderPlaceholderOrValue",
|
|
4302
4302
|
value: function() {
|
|
4303
4303
|
var e = this, t = this.getComponents(), n = t.MultiValue, r = t.MultiValueContainer, i = t.MultiValueLabel, a = t.MultiValueRemove, o = t.SingleValue, s = t.Placeholder, c = this.commonProps, l = this.props, u = l.controlShouldRenderValue, d = l.isDisabled, f = l.isMulti, p = l.inputValue, m = l.placeholder, h = this.state, g = h.selectValue, _ = h.focusedValue, v = h.isFocused;
|
|
4304
|
-
if (!this.hasValue() || !u) return p ? null : /* @__PURE__ */ U.createElement(s,
|
|
4304
|
+
if (!this.hasValue() || !u) return p ? null : /* @__PURE__ */ U.createElement(s, B({}, c, {
|
|
4305
4305
|
key: "placeholder",
|
|
4306
4306
|
isDisabled: d,
|
|
4307
4307
|
isFocused: v,
|
|
@@ -4309,7 +4309,7 @@ var wl = function(e) {
|
|
|
4309
4309
|
}), m);
|
|
4310
4310
|
if (f) return g.map(function(t, o) {
|
|
4311
4311
|
var s = t === _, l = `${e.getOptionLabel(t)}-${e.getOptionValue(t)}`;
|
|
4312
|
-
return /* @__PURE__ */ U.createElement(n,
|
|
4312
|
+
return /* @__PURE__ */ U.createElement(n, B({}, c, {
|
|
4313
4313
|
components: {
|
|
4314
4314
|
Container: r,
|
|
4315
4315
|
Label: i,
|
|
@@ -4335,7 +4335,7 @@ var wl = function(e) {
|
|
|
4335
4335
|
});
|
|
4336
4336
|
if (p) return null;
|
|
4337
4337
|
var y = g[0];
|
|
4338
|
-
return /* @__PURE__ */ U.createElement(o,
|
|
4338
|
+
return /* @__PURE__ */ U.createElement(o, B({}, c, {
|
|
4339
4339
|
data: y,
|
|
4340
4340
|
isDisabled: d
|
|
4341
4341
|
}), this.formatOptionLabel(y, "value"));
|
|
@@ -4351,7 +4351,7 @@ var wl = function(e) {
|
|
|
4351
4351
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
4352
4352
|
"aria-hidden": "true"
|
|
4353
4353
|
};
|
|
4354
|
-
return /* @__PURE__ */ U.createElement(e,
|
|
4354
|
+
return /* @__PURE__ */ U.createElement(e, B({}, t, {
|
|
4355
4355
|
innerProps: o,
|
|
4356
4356
|
isFocused: a
|
|
4357
4357
|
}));
|
|
@@ -4361,7 +4361,7 @@ var wl = function(e) {
|
|
|
4361
4361
|
key: "renderLoadingIndicator",
|
|
4362
4362
|
value: function() {
|
|
4363
4363
|
var e = this.getComponents().LoadingIndicator, t = this.commonProps, n = this.props, r = n.isDisabled, i = n.isLoading, a = this.state.isFocused;
|
|
4364
|
-
return !e || !i ? null : /* @__PURE__ */ U.createElement(e,
|
|
4364
|
+
return !e || !i ? null : /* @__PURE__ */ U.createElement(e, B({}, t, {
|
|
4365
4365
|
innerProps: { "aria-hidden": "true" },
|
|
4366
4366
|
isDisabled: r,
|
|
4367
4367
|
isFocused: a
|
|
@@ -4374,7 +4374,7 @@ var wl = function(e) {
|
|
|
4374
4374
|
var e = this.getComponents(), t = e.DropdownIndicator, n = e.IndicatorSeparator;
|
|
4375
4375
|
if (!t || !n) return null;
|
|
4376
4376
|
var r = this.commonProps, i = this.props.isDisabled, a = this.state.isFocused;
|
|
4377
|
-
return /* @__PURE__ */ U.createElement(n,
|
|
4377
|
+
return /* @__PURE__ */ U.createElement(n, B({}, r, {
|
|
4378
4378
|
isDisabled: i,
|
|
4379
4379
|
isFocused: a
|
|
4380
4380
|
}));
|
|
@@ -4390,7 +4390,7 @@ var wl = function(e) {
|
|
|
4390
4390
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
4391
4391
|
"aria-hidden": "true"
|
|
4392
4392
|
};
|
|
4393
|
-
return /* @__PURE__ */ U.createElement(e,
|
|
4393
|
+
return /* @__PURE__ */ U.createElement(e, B({}, t, {
|
|
4394
4394
|
innerProps: i,
|
|
4395
4395
|
isDisabled: n,
|
|
4396
4396
|
isFocused: r
|
|
@@ -4416,7 +4416,7 @@ var wl = function(e) {
|
|
|
4416
4416
|
role: "option",
|
|
4417
4417
|
"aria-selected": e.isAppleDevice ? void 0 : o
|
|
4418
4418
|
};
|
|
4419
|
-
return /* @__PURE__ */ U.createElement(l,
|
|
4419
|
+
return /* @__PURE__ */ U.createElement(l, B({}, u, {
|
|
4420
4420
|
innerProps: g,
|
|
4421
4421
|
data: i,
|
|
4422
4422
|
isDisabled: a,
|
|
@@ -4432,7 +4432,7 @@ var wl = function(e) {
|
|
|
4432
4432
|
if (this.hasOptions()) k = this.getCategorizedOptions().map(function(t) {
|
|
4433
4433
|
if (t.type === "group") {
|
|
4434
4434
|
var i = t.data, a = t.options, o = t.index, s = `${e.getElementId("group")}-${o}`, c = `${s}-heading`;
|
|
4435
|
-
return /* @__PURE__ */ U.createElement(n,
|
|
4435
|
+
return /* @__PURE__ */ U.createElement(n, B({}, u, {
|
|
4436
4436
|
key: s,
|
|
4437
4437
|
data: i,
|
|
4438
4438
|
options: a,
|
|
@@ -4462,9 +4462,9 @@ var wl = function(e) {
|
|
|
4462
4462
|
menuPlacement: b,
|
|
4463
4463
|
menuPosition: x,
|
|
4464
4464
|
menuShouldScrollIntoView: w
|
|
4465
|
-
}, N = /* @__PURE__ */ U.createElement(Xo,
|
|
4465
|
+
}, N = /* @__PURE__ */ U.createElement(Xo, B({}, u, M), function(t) {
|
|
4466
4466
|
var n = t.ref, r = t.placerProps, o = r.placement, s = r.maxHeight;
|
|
4467
|
-
return /* @__PURE__ */ U.createElement(i,
|
|
4467
|
+
return /* @__PURE__ */ U.createElement(i, B({}, u, M, {
|
|
4468
4468
|
innerRef: n,
|
|
4469
4469
|
innerProps: {
|
|
4470
4470
|
onMouseDown: e.onMenuMouseDown,
|
|
@@ -4478,7 +4478,7 @@ var wl = function(e) {
|
|
|
4478
4478
|
onBottomArrive: D,
|
|
4479
4479
|
lockEnabled: C
|
|
4480
4480
|
}, function(t) {
|
|
4481
|
-
return /* @__PURE__ */ U.createElement(a,
|
|
4481
|
+
return /* @__PURE__ */ U.createElement(a, B({}, u, {
|
|
4482
4482
|
innerRef: function(n) {
|
|
4483
4483
|
e.getMenuListRef(n), t(n);
|
|
4484
4484
|
},
|
|
@@ -4493,7 +4493,7 @@ var wl = function(e) {
|
|
|
4493
4493
|
}), k);
|
|
4494
4494
|
}));
|
|
4495
4495
|
});
|
|
4496
|
-
return S || x === "fixed" ? /* @__PURE__ */ U.createElement(o,
|
|
4496
|
+
return S || x === "fixed" ? /* @__PURE__ */ U.createElement(o, B({}, u, {
|
|
4497
4497
|
appendTo: S,
|
|
4498
4498
|
controlElement: this.controlRef,
|
|
4499
4499
|
menuPlacement: b,
|
|
@@ -4547,7 +4547,7 @@ var wl = function(e) {
|
|
|
4547
4547
|
key: "renderLiveRegion",
|
|
4548
4548
|
value: function() {
|
|
4549
4549
|
var e = this.commonProps, t = this.state, n = t.ariaSelection, r = t.focusedOption, i = t.focusedValue, a = t.isFocused, o = t.selectValue, s = this.getFocusableOptions();
|
|
4550
|
-
return /* @__PURE__ */ U.createElement(hc,
|
|
4550
|
+
return /* @__PURE__ */ U.createElement(hc, B({}, e, {
|
|
4551
4551
|
id: this.getElementId("live-region"),
|
|
4552
4552
|
ariaSelection: n,
|
|
4553
4553
|
focusedOption: r,
|
|
@@ -4563,7 +4563,7 @@ var wl = function(e) {
|
|
|
4563
4563
|
key: "render",
|
|
4564
4564
|
value: function() {
|
|
4565
4565
|
var e = this.getComponents(), t = e.Control, n = e.IndicatorsContainer, r = e.SelectContainer, i = e.ValueContainer, a = this.props, o = a.className, s = a.id, c = a.isDisabled, l = a.menuIsOpen, u = this.state.isFocused, d = this.commonProps = this.getCommonProps();
|
|
4566
|
-
return /* @__PURE__ */ U.createElement(r,
|
|
4566
|
+
return /* @__PURE__ */ U.createElement(r, B({}, d, {
|
|
4567
4567
|
className: o,
|
|
4568
4568
|
innerProps: {
|
|
4569
4569
|
id: s,
|
|
@@ -4571,7 +4571,7 @@ var wl = function(e) {
|
|
|
4571
4571
|
},
|
|
4572
4572
|
isDisabled: c,
|
|
4573
4573
|
isFocused: u
|
|
4574
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ U.createElement(t,
|
|
4574
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ U.createElement(t, B({}, d, {
|
|
4575
4575
|
innerRef: this.getControlRef,
|
|
4576
4576
|
innerProps: {
|
|
4577
4577
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -4580,7 +4580,7 @@ var wl = function(e) {
|
|
|
4580
4580
|
isDisabled: c,
|
|
4581
4581
|
isFocused: u,
|
|
4582
4582
|
menuIsOpen: l
|
|
4583
|
-
}), /* @__PURE__ */ U.createElement(i,
|
|
4583
|
+
}), /* @__PURE__ */ U.createElement(i, B({}, d, { isDisabled: c }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ U.createElement(n, B({}, d, { isDisabled: c }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
4586
|
], [{
|
|
@@ -4741,7 +4741,7 @@ function Ml(e) {
|
|
|
4741
4741
|
//#region node_modules/react-select/creatable/dist/react-select-creatable.esm.js
|
|
4742
4742
|
var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
4743
4743
|
var n = Ml(Ol(e));
|
|
4744
|
-
return /* @__PURE__ */ U.createElement(El,
|
|
4744
|
+
return /* @__PURE__ */ U.createElement(El, B({ ref: t }, n));
|
|
4745
4745
|
}), Pl = (e) => `${e}-error-msg`, Fl = (e) => `${e}-label`, Il = (e) => `${e}-helper-text`, Ll = ({ inputId: e, label: t, ariaLabel: n, required: r, error: i, helperText: a }) => ({
|
|
4746
4746
|
"aria-required": r,
|
|
4747
4747
|
...a ? { "aria-describedby": Il(e) } : {},
|
|
@@ -4753,7 +4753,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
4753
4753
|
}), Rl = ({ id: e, text: t, icon: n, textClass: r }) => /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4754
4754
|
className: "flexbox dc__gap-4 fs-11 lh-16 fw-4",
|
|
4755
4755
|
id: e,
|
|
4756
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4756
|
+
children: [/* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
4757
4757
|
name: n,
|
|
4758
4758
|
size: 16,
|
|
4759
4759
|
color: null
|
|
@@ -4790,7 +4790,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
4790
4790
|
className: "flex left dc__gap-4",
|
|
4791
4791
|
children: [/* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4792
4792
|
className: `flex left ${n ? "dc__required-field" : ""}`,
|
|
4793
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4793
|
+
children: [/* @__PURE__ */ (0, G.jsx)(Lt, {
|
|
4794
4794
|
condition: c,
|
|
4795
4795
|
wrap: (e) => /* @__PURE__ */ (0, G.jsx)(_e, {
|
|
4796
4796
|
placement: "bottom",
|
|
@@ -4848,10 +4848,10 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
4848
4848
|
})]
|
|
4849
4849
|
});
|
|
4850
4850
|
}, Hl = ({ reload: e, buttonProps: t, customIcon: n, withBorder: r = !1, title: i = "Failed to load", subTitle: a = "We could not load the information on this page.", description: o = "Please reload or try again later", buttonText: s = "Reload", rootClassName: c, useInfoIcon: l = !1, progressingProps: u }) => {
|
|
4851
|
-
let d = () => n || (u ? /* @__PURE__ */ (0, G.jsx)(
|
|
4851
|
+
let d = () => n || (u ? /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
4852
4852
|
name: "ic-circle-loader",
|
|
4853
4853
|
...u
|
|
4854
|
-
}) : l ? /* @__PURE__ */ (0, G.jsx)(Fn, { className: "icon-dim-24" }) : /* @__PURE__ */ (0, G.jsx)(
|
|
4854
|
+
}) : l ? /* @__PURE__ */ (0, G.jsx)(Fn, { className: "icon-dim-24" }) : /* @__PURE__ */ (0, G.jsx)(je, { className: "icon-dim-24 alert-icon-r5-imp" })), f = (e) => e ? typeof e == "string" ? /* @__PURE__ */ (0, G.jsx)("p", {
|
|
4855
4855
|
className: "m-0 dc__truncate--clamp-6",
|
|
4856
4856
|
children: e
|
|
4857
4857
|
}) : e : null;
|
|
@@ -4869,53 +4869,53 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
4869
4869
|
children: [f(a), f(o)]
|
|
4870
4870
|
})]
|
|
4871
4871
|
}),
|
|
4872
|
-
e && /* @__PURE__ */ (0, G.jsx)(
|
|
4872
|
+
e && /* @__PURE__ */ (0, G.jsx)(R, {
|
|
4873
4873
|
text: s,
|
|
4874
4874
|
onClick: e,
|
|
4875
|
-
variant:
|
|
4876
|
-
size:
|
|
4875
|
+
variant: qe.text,
|
|
4876
|
+
size: V.small,
|
|
4877
4877
|
dataTestId: "generic-section-reload-button"
|
|
4878
4878
|
}),
|
|
4879
|
-
t && /* @__PURE__ */ (0, G.jsx)(
|
|
4879
|
+
t && /* @__PURE__ */ (0, G.jsx)(R, { ...t })
|
|
4880
4880
|
]
|
|
4881
4881
|
});
|
|
4882
|
-
}, Ul = ({ error: e, icon: t, keyboardShortcut: n, helperText: r, placeholder: i = "Select an option", label: a, showSelectedOptionIcon: o = !0, size: s =
|
|
4883
|
-
let
|
|
4882
|
+
}, Ul = ({ error: e, icon: t, keyboardShortcut: n, helperText: r, placeholder: i = "Select an option", label: a, showSelectedOptionIcon: o = !0, size: s = V.medium, disabledTippyContent: c, showSelectedOptionsCount: l = !1, menuSize: u, optionListError: d, reloadOptionList: f, menuPosition: p = "fixed", variant: m = Kn.DEFAULT, disableDescriptionEllipsis: h = !1, isUserIdentifier: g = !1, multiSelectProps: _ = {}, isMulti: v, name: y, classNamePrefix: b, shouldRenderCustomOptions: x = !1, isSearchable: S, selectRef: C, shouldMenuAlignRight: w = !1, fullWidth: T = !1, customSelectedOptionsCount: E = null, menuListFooterConfig: D, isCreatable: O = !1, onCreateOption: k, closeMenuOnSelect: A, shouldShowNoOptionsMessage: j = !0, shouldRenderTextArea: M = !1, onKeyDown: N, shouldHideMenu: P = !1, warningText: F, layout: I, ariaLabel: L, borderConfig: R, borderRadiusConfig: ee, labelTippyCustomizedConfig: te, labelTooltipConfig: ne, hideFormFieldInfo: re, autoFocus: ie, showCheckboxForMultiSelect: ae = !0, ...z }) => {
|
|
4883
|
+
let oe = Cn(null), se = C ?? oe, [ce, le] = wn(!1), [ue, de] = wn(""), { inputId: fe, required: pe, isDisabled: me, controlShouldRenderValue: he = !0, value: ge, options: _e, getOptionValue: ve, noOptionsMessage: ye } = z, { isGroupHeadingSelectable: be = !1, getIsOptionValid: xe = () => !0, customDisplayText: Se = null } = _, Ce = he && !Se, we = !v && o, Te = !x && S, Ee = A ?? !v, B = Sn(() => Xn({
|
|
4884
4884
|
error: e,
|
|
4885
4885
|
size: s,
|
|
4886
4886
|
menuSize: u,
|
|
4887
4887
|
variant: m,
|
|
4888
|
-
getIsOptionValid:
|
|
4889
|
-
isGroupHeadingSelectable:
|
|
4888
|
+
getIsOptionValid: xe,
|
|
4889
|
+
isGroupHeadingSelectable: be,
|
|
4890
4890
|
shouldMenuAlignRight: w
|
|
4891
4891
|
}), [
|
|
4892
4892
|
e,
|
|
4893
4893
|
s,
|
|
4894
4894
|
u,
|
|
4895
4895
|
m,
|
|
4896
|
-
|
|
4896
|
+
be,
|
|
4897
4897
|
w
|
|
4898
|
-
]),
|
|
4898
|
+
]), De = (e) => {
|
|
4899
4899
|
let t = e?.trim();
|
|
4900
|
-
return O && !!t && !Qn(
|
|
4901
|
-
},
|
|
4900
|
+
return O && !!t && !Qn(ge, t, null, ve) && !Qn(_e, t, null, ve);
|
|
4901
|
+
}, ke = W((e) => /* @__PURE__ */ (0, G.jsx)(ar, {
|
|
4902
4902
|
...e,
|
|
4903
4903
|
showSelectedOptionsCount: l,
|
|
4904
4904
|
customSelectedOptionsCount: E
|
|
4905
|
-
}), [l, E]),
|
|
4905
|
+
}), [l, E]), Ae = W((e) => /* @__PURE__ */ (0, G.jsx)(or, {
|
|
4906
4906
|
...e,
|
|
4907
4907
|
isUserIdentifier: g,
|
|
4908
4908
|
disableDescriptionEllipsis: h
|
|
4909
|
-
}), [h, g]),
|
|
4909
|
+
}), [h, g]), je = (e) => /* @__PURE__ */ (0, G.jsx)(lr, {
|
|
4910
4910
|
...e,
|
|
4911
|
-
getIsOptionValid:
|
|
4911
|
+
getIsOptionValid: xe
|
|
4912
4912
|
}), Me = W((e) => /* @__PURE__ */ (0, G.jsx)(ur, {
|
|
4913
4913
|
...e,
|
|
4914
|
-
isGroupHeadingSelectable:
|
|
4915
|
-
}), [
|
|
4914
|
+
isGroupHeadingSelectable: be
|
|
4915
|
+
}), [be]), Ne = () => d ? /* @__PURE__ */ (0, G.jsx)(Hl, { reload: f }) : j ? /* @__PURE__ */ (0, G.jsx)("p", {
|
|
4916
4916
|
className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8",
|
|
4917
|
-
children:
|
|
4918
|
-
}) : null, Pe = (e) => /* @__PURE__ */ (0, G.jsx)(
|
|
4917
|
+
children: ye?.({ inputValue: ue }) || "No options"
|
|
4918
|
+
}) : null, Pe = (e) => /* @__PURE__ */ (0, G.jsx)(an, {
|
|
4919
4919
|
content: c,
|
|
4920
4920
|
placement: "top",
|
|
4921
4921
|
className: "default-tt",
|
|
@@ -4925,88 +4925,88 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
4925
4925
|
let t = e?.trim();
|
|
4926
4926
|
t && k?.(t);
|
|
4927
4927
|
}, Ie = (e, t) => {
|
|
4928
|
-
if (
|
|
4929
|
-
|
|
4928
|
+
if (z.onInputChange) {
|
|
4929
|
+
z.onInputChange(e, t);
|
|
4930
4930
|
return;
|
|
4931
4931
|
}
|
|
4932
|
-
|
|
4932
|
+
de(e);
|
|
4933
4933
|
}, Le = (e) => {
|
|
4934
|
-
(e.metaKey || e.ctrlKey) && e.key === "Enter" && e.preventDefault(), e.key === "Escape" && (e.stopPropagation(),
|
|
4934
|
+
(e.metaKey || e.ctrlKey) && e.key === "Enter" && e.preventDefault(), e.key === "Escape" && (e.stopPropagation(), se.current.props.menuIsOpen || se.current.blur()), N?.(e);
|
|
4935
4935
|
}, Re = (e) => {
|
|
4936
|
-
M ||
|
|
4936
|
+
M || le(!0), z.onFocus?.(e);
|
|
4937
4937
|
}, ze = (e) => {
|
|
4938
|
-
|
|
4938
|
+
le(!1), z.onBlur?.(e);
|
|
4939
4939
|
}, Be = (...e) => {
|
|
4940
|
-
v && ht(
|
|
4940
|
+
v && ht(z.inputValue) && de(ue), z.onChange?.(...e);
|
|
4941
4941
|
};
|
|
4942
4942
|
return bn(() => {
|
|
4943
|
-
|
|
4944
|
-
|
|
4943
|
+
ie && setTimeout(() => {
|
|
4944
|
+
se.current?.focus();
|
|
4945
4945
|
}, 100);
|
|
4946
|
-
}, [
|
|
4947
|
-
inputId:
|
|
4946
|
+
}, [ie]), /* @__PURE__ */ (0, G.jsx)(Vl, {
|
|
4947
|
+
inputId: fe,
|
|
4948
4948
|
layout: I,
|
|
4949
4949
|
label: a,
|
|
4950
4950
|
error: e,
|
|
4951
4951
|
helperText: r,
|
|
4952
4952
|
warningText: F,
|
|
4953
|
-
required:
|
|
4953
|
+
required: pe,
|
|
4954
4954
|
fullWidth: T,
|
|
4955
|
-
ariaLabel:
|
|
4956
|
-
borderConfig:
|
|
4957
|
-
borderRadiusConfig:
|
|
4958
|
-
labelTippyCustomizedConfig:
|
|
4959
|
-
labelTooltipConfig:
|
|
4960
|
-
hideFormFieldInfo:
|
|
4961
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
4962
|
-
condition:
|
|
4955
|
+
ariaLabel: L,
|
|
4956
|
+
borderConfig: R,
|
|
4957
|
+
borderRadiusConfig: ee,
|
|
4958
|
+
labelTippyCustomizedConfig: te,
|
|
4959
|
+
labelTooltipConfig: ne,
|
|
4960
|
+
hideFormFieldInfo: re,
|
|
4961
|
+
children: /* @__PURE__ */ (0, G.jsx)(Lt, {
|
|
4962
|
+
condition: me && !!c,
|
|
4963
4963
|
wrap: Pe,
|
|
4964
4964
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4965
4965
|
className: "w-100",
|
|
4966
4966
|
children: /* @__PURE__ */ (0, G.jsx)(Nl, {
|
|
4967
|
-
...
|
|
4967
|
+
...z,
|
|
4968
4968
|
...Ll({
|
|
4969
|
-
inputId:
|
|
4970
|
-
required:
|
|
4969
|
+
inputId: fe,
|
|
4970
|
+
required: pe,
|
|
4971
4971
|
label: a,
|
|
4972
|
-
ariaLabel:
|
|
4972
|
+
ariaLabel: L,
|
|
4973
4973
|
error: e,
|
|
4974
4974
|
helperText: r
|
|
4975
4975
|
}),
|
|
4976
4976
|
classNames: {
|
|
4977
|
-
control: () =>
|
|
4978
|
-
borderConfig:
|
|
4979
|
-
borderRadiusConfig:
|
|
4977
|
+
control: () => Oe({
|
|
4978
|
+
borderConfig: R,
|
|
4979
|
+
borderRadiusConfig: ee
|
|
4980
4980
|
}),
|
|
4981
4981
|
...v ? {
|
|
4982
4982
|
option: () => "checkbox__parent-container",
|
|
4983
|
-
...
|
|
4983
|
+
...be ? { groupHeading: () => "checkbox__parent-container" } : {}
|
|
4984
4984
|
} : {},
|
|
4985
4985
|
group: () => "select-picker__group"
|
|
4986
4986
|
},
|
|
4987
|
-
name: y ||
|
|
4988
|
-
classNamePrefix: b ||
|
|
4989
|
-
isSearchable:
|
|
4987
|
+
name: y || fe,
|
|
4988
|
+
classNamePrefix: b || fe,
|
|
4989
|
+
isSearchable: Te,
|
|
4990
4990
|
placeholder: i,
|
|
4991
|
-
styles:
|
|
4991
|
+
styles: B,
|
|
4992
4992
|
menuPlacement: "auto",
|
|
4993
4993
|
menuPosition: p,
|
|
4994
4994
|
menuShouldScrollIntoView: !0,
|
|
4995
|
-
backspaceRemovesValue: v &&
|
|
4995
|
+
backspaceRemovesValue: v && Ce,
|
|
4996
4996
|
hideSelectedOptions: !1,
|
|
4997
4997
|
shouldRenderCustomOptions: x || !1,
|
|
4998
4998
|
isMulti: v,
|
|
4999
|
-
ref:
|
|
4999
|
+
ref: se,
|
|
5000
5000
|
components: {
|
|
5001
5001
|
IndicatorSeparator: null,
|
|
5002
5002
|
LoadingIndicator: null,
|
|
5003
5003
|
DropdownIndicator: tr,
|
|
5004
5004
|
Control: rr,
|
|
5005
|
-
Option:
|
|
5005
|
+
Option: Ae,
|
|
5006
5006
|
MenuList: cr,
|
|
5007
5007
|
ClearIndicator: nr,
|
|
5008
|
-
ValueContainer:
|
|
5009
|
-
MultiValue:
|
|
5008
|
+
ValueContainer: ke,
|
|
5009
|
+
MultiValue: je,
|
|
5010
5010
|
GroupHeading: Me,
|
|
5011
5011
|
NoOptionsMessage: Ne,
|
|
5012
5012
|
LoadingMessage: dr,
|
|
@@ -5018,24 +5018,24 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5018
5018
|
},
|
|
5019
5019
|
closeMenuOnSelect: Ee,
|
|
5020
5020
|
allowCreateWhileLoading: !1,
|
|
5021
|
-
isValidNewOption:
|
|
5021
|
+
isValidNewOption: De,
|
|
5022
5022
|
createOptionPosition: "first",
|
|
5023
5023
|
onCreateOption: Fe,
|
|
5024
5024
|
menuListFooterConfig: d ? null : D,
|
|
5025
|
-
inputValue:
|
|
5025
|
+
inputValue: z.inputValue ?? ue,
|
|
5026
5026
|
onInputChange: Ie,
|
|
5027
5027
|
icon: t,
|
|
5028
5028
|
keyboardShortcut: n,
|
|
5029
|
-
showCheckboxForMultiSelect:
|
|
5030
|
-
showSelectedOptionIcon:
|
|
5029
|
+
showCheckboxForMultiSelect: ae,
|
|
5030
|
+
showSelectedOptionIcon: we,
|
|
5031
5031
|
onKeyDown: Le,
|
|
5032
5032
|
shouldRenderTextArea: M,
|
|
5033
|
-
customDisplayText:
|
|
5033
|
+
customDisplayText: Se,
|
|
5034
5034
|
onFocus: Re,
|
|
5035
5035
|
onBlur: ze,
|
|
5036
5036
|
onChange: Be,
|
|
5037
|
-
controlShouldRenderValue:
|
|
5038
|
-
isFocussed:
|
|
5037
|
+
controlShouldRenderValue: Ce,
|
|
5038
|
+
isFocussed: ce,
|
|
5039
5039
|
tabSelectsValue: !1
|
|
5040
5040
|
})
|
|
5041
5041
|
})
|
|
@@ -5070,7 +5070,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5070
5070
|
DEPLOYMENT: "usage/applications/creating-application/deployment-template/deployment",
|
|
5071
5071
|
DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template",
|
|
5072
5072
|
DEVTRON_UPGRADE: "getting-started/upgrade",
|
|
5073
|
-
DOC_HOME_PAGE:
|
|
5073
|
+
DOC_HOME_PAGE: dt,
|
|
5074
5074
|
ENTERPRISE_LICENSE: "enterprise-license",
|
|
5075
5075
|
EXECUTE_CUSTOM_SCRIPT: "usage/applications/creating-application/workflow/ci-pipeline/ci-build-pre-post-plugins#execute-custom-script",
|
|
5076
5076
|
EXTERNAL_LINKS: "getting-started/global-configurations/external-links",
|
|
@@ -5153,16 +5153,16 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5153
5153
|
let i = Wl[e];
|
|
5154
5154
|
if (i?.startsWith("http")) return i;
|
|
5155
5155
|
let a = r ? "" : Gl({ isEnterprise: t });
|
|
5156
|
-
return `${
|
|
5156
|
+
return `${dt}${Rt}/${i || ""}${a}`;
|
|
5157
5157
|
}, ql = {
|
|
5158
|
-
[
|
|
5159
|
-
[
|
|
5158
|
+
[V.medium]: "w-32",
|
|
5159
|
+
[V.small]: "w-24"
|
|
5160
5160
|
}, Jl = {
|
|
5161
|
-
[
|
|
5162
|
-
[
|
|
5161
|
+
[V.medium]: "w-28",
|
|
5162
|
+
[V.small]: "w-24"
|
|
5163
5163
|
}, Yl = {
|
|
5164
|
-
[
|
|
5165
|
-
[
|
|
5164
|
+
[V.medium]: "h-24",
|
|
5165
|
+
[V.small]: "h-20"
|
|
5166
5166
|
}, Xl = {
|
|
5167
5167
|
theme: "B500",
|
|
5168
5168
|
positive: "G500"
|
|
@@ -5179,18 +5179,18 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5179
5179
|
theme: "var(--B400)",
|
|
5180
5180
|
positive: "var(--G400)"
|
|
5181
5181
|
}, tu = {
|
|
5182
|
-
[
|
|
5183
|
-
[
|
|
5182
|
+
[V.medium]: "icon-dim-16",
|
|
5183
|
+
[V.small]: "icon-dim-12"
|
|
5184
5184
|
}, nu = {
|
|
5185
|
-
[
|
|
5186
|
-
[
|
|
5185
|
+
[V.medium]: "w-12",
|
|
5186
|
+
[V.small]: "w-10"
|
|
5187
5187
|
}, ru = {
|
|
5188
|
-
[
|
|
5189
|
-
[
|
|
5188
|
+
[V.medium]: "p-3",
|
|
5189
|
+
[V.small]: "p-1"
|
|
5190
5190
|
}, iu = {
|
|
5191
5191
|
rounded: "p-2",
|
|
5192
5192
|
square: "p-1"
|
|
5193
|
-
}, au = ({ shape: e, size: t }) => `${Yl[t]} ${e === "rounded" ? ql[t] : Jl[t]}`, ou = ({ shape: e, variant: t, isChecked: n, isLoading: r }) => r ? "dc__transparent--unstyled" : n ? e === "rounded" ? Zl[t] : $l[t] : "bcn-2", su = ({ shape: e, variant: t, isChecked: n, isLoading: r }) => r ? "transparent" : n ? e === "rounded" ? Ql[t] : eu[t] : "var(--N300)", cu = ({ shape: e, size: t, showIndeterminateIcon: n }) => n ? `${nu[t]} h-2 br-4 dc__no-shrink bg__white` : `flex ${ru[t]} ${e === "rounded" ? `dc__border-radius-50-per ${tu[t]}` : "br-3"} bg__white`, lu = ({ iconColor: e, isChecked: t, variant: n }) => t ? e || (n === "theme" ? "B500" : "G500") : "N500", uu = ({ isChecked: e, size: t, shape: n, indeterminate: r, isLoading: i }) => i ? t ===
|
|
5193
|
+
}, au = ({ shape: e, size: t }) => `${Yl[t]} ${e === "rounded" ? ql[t] : Jl[t]}`, ou = ({ shape: e, variant: t, isChecked: n, isLoading: r }) => r ? "dc__transparent--unstyled" : n ? e === "rounded" ? Zl[t] : $l[t] : "bcn-2", su = ({ shape: e, variant: t, isChecked: n, isLoading: r }) => r ? "transparent" : n ? e === "rounded" ? Ql[t] : eu[t] : "var(--N300)", cu = ({ shape: e, size: t, showIndeterminateIcon: n }) => n ? `${nu[t]} h-2 br-4 dc__no-shrink bg__white` : `flex ${ru[t]} ${e === "rounded" ? `dc__border-radius-50-per ${tu[t]}` : "br-3"} bg__white`, lu = ({ iconColor: e, isChecked: t, variant: n }) => t ? e || (n === "theme" ? "B500" : "G500") : "N500", uu = ({ isChecked: e, size: t, shape: n, indeterminate: r, isLoading: i }) => i ? t === V.medium && n === "rounded" ? 6 : 4 : e ? r ? t === V.medium ? 8 : 5 : t === V.medium && n === "rounded" ? 12 : 8 : 0, du = ({ shape: e, isLoading: t }) => t ? "" : iu[e], fu = ({ ariaLabel: e, isDisabled: t, isLoading: n, isChecked: r, tooltipContent: i, shape: a = "rounded", variant: o = "positive", iconColor: s, iconName: c, indeterminate: l = !1, size: u = V.medium, name: d, dataTestId: f = d, onChange: p, autoFocus: m = !1 }) => {
|
|
5194
5194
|
let h = Cn(rt()), g = r ? l ? "mixed" : !0 : !1, _ = g === "mixed", v = uu({
|
|
5195
5195
|
isChecked: r,
|
|
5196
5196
|
shape: a,
|
|
@@ -5209,7 +5209,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5209
5209
|
},
|
|
5210
5210
|
animate: { x: v },
|
|
5211
5211
|
className: "flexbox dc__fill-available-space",
|
|
5212
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
5212
|
+
children: /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
5213
5213
|
name: "ic-circle-loader",
|
|
5214
5214
|
color: Xl[o],
|
|
5215
5215
|
size: null
|
|
@@ -5227,7 +5227,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5227
5227
|
}),
|
|
5228
5228
|
children: c && !_ && /* @__PURE__ */ (0, G.jsx)("span", {
|
|
5229
5229
|
className: "icon-dim-12 flex dc__fill-available-space dc__no-shrink",
|
|
5230
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
5230
|
+
children: /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
5231
5231
|
name: c,
|
|
5232
5232
|
color: lu({
|
|
5233
5233
|
isChecked: r,
|
|
@@ -5304,7 +5304,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5304
5304
|
d: "M9 1.333c3.682 0 6.667 2.985 6.667 6.667S12.682 14.667 9 14.667 2.333 11.682 2.333 8 5.318 1.333 9 1.333zm0 1.334C6.054 2.667 3.667 5.054 3.667 8S6.054 13.333 9 13.333 14.333 10.946 14.333 8 11.946 2.667 9 2.667zm-.137 7.245c.41 0 .747.337.747.747s-.337.747-.747.747-.747-.336-.747-.747c0-.41.338-.747.747-.747zm.046-5.245c1.166 0 2.313.537 2.313 1.82 0 1.185-1.357 1.64-1.648 2.068-.22.319-.146.766-.747.766-.392 0-.583-.319-.583-.61 0-1.085 1.593-1.33 1.593-2.223 0-.492-.327-.783-.873-.783-1.166 0-.711 1.202-1.594 1.202-.319 0-.592-.191-.592-.556 0-.893 1.02-1.684 2.13-1.684z"
|
|
5305
5305
|
})
|
|
5306
5306
|
}), hu = (e) => {
|
|
5307
|
-
let t = Cn(null), [n, r] = wn(!1), i = e.theme ===
|
|
5307
|
+
let t = Cn(null), [n, r] = wn(!1), i = e.theme === Qt.white, a = (e) => {
|
|
5308
5308
|
e.keyCode === 27 && s(e);
|
|
5309
5309
|
}, o = (e) => {
|
|
5310
5310
|
t.current = e, document.addEventListener("keydown", a);
|
|
@@ -5338,7 +5338,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5338
5338
|
}),
|
|
5339
5339
|
h && /* @__PURE__ */ (0, G.jsx)("div", {
|
|
5340
5340
|
className: "icon-dim-16 ml-auto",
|
|
5341
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
5341
|
+
children: /* @__PURE__ */ (0, G.jsx)(Jt, {
|
|
5342
5342
|
className: `icon-dim-16 cursor ${i ? "fcn-9" : "icon-fill__white"}`,
|
|
5343
5343
|
onClick: s
|
|
5344
5344
|
})
|
|
@@ -5378,7 +5378,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5378
5378
|
})
|
|
5379
5379
|
] });
|
|
5380
5380
|
}, { className: u, placement: d, arrow: f, interactive: p, showOnCreate: m, trigger: h, animation: g, duration: _, children: v } = e;
|
|
5381
|
-
return /* @__PURE__ */ (0, G.jsx)(
|
|
5381
|
+
return /* @__PURE__ */ (0, G.jsx)(an, {
|
|
5382
5382
|
className: `${i ? "tippy-white-container default-white" : "tippy-black-container default-black"} no-content-padding tippy-shadow ${u}`,
|
|
5383
5383
|
arrow: f || !1,
|
|
5384
5384
|
interactive: p || !1,
|
|
@@ -5395,7 +5395,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
5395
5395
|
children: v
|
|
5396
5396
|
});
|
|
5397
5397
|
}, gu = ({ heading: e, infoText: t, iconClass: n = "fcv-5", documentationLink: r, documentationLinkText: i, additionalContent: a, iconClassName: o = "icon-dim-16 dc__no-shrink", placement: s = "bottom", dataTestid: c = "info-tippy-button", children: l, headingInfo: u, buttonPadding: d = "p-0", isExternalLink: f, openInNewTab: p }) => /* @__PURE__ */ (0, G.jsx)(hu, {
|
|
5398
|
-
theme:
|
|
5398
|
+
theme: Qt.white,
|
|
5399
5399
|
headingInfo: u,
|
|
5400
5400
|
className: "w-300 h-100 dc__no-text-transform",
|
|
5401
5401
|
placement: s,
|
|
@@ -6132,7 +6132,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
6132
6132
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
6133
6133
|
}
|
|
6134
6134
|
function j(e) {
|
|
6135
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
6135
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${L(e)}`;
|
|
6136
6136
|
}
|
|
6137
6137
|
e.not = j;
|
|
6138
6138
|
var M = I(e.operators.AND);
|
|
@@ -6146,9 +6146,9 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
6146
6146
|
}
|
|
6147
6147
|
e.or = F;
|
|
6148
6148
|
function I(e) {
|
|
6149
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${
|
|
6149
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${L(n)} ${e} ${L(r)}`;
|
|
6150
6150
|
}
|
|
6151
|
-
function
|
|
6151
|
+
function L(e) {
|
|
6152
6152
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
6153
6153
|
}
|
|
6154
6154
|
})), Q = /* @__PURE__ */ i(((e) => {
|
|
@@ -7100,7 +7100,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7100
7100
|
function N(e, t, n, a) {
|
|
7101
7101
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
7102
7102
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
7103
|
-
o.block(() =>
|
|
7103
|
+
o.block(() => ae(e, "$ref", h.all.$ref.definition));
|
|
7104
7104
|
return;
|
|
7105
7105
|
}
|
|
7106
7106
|
p.jtd || F(e, t), o.block(() => {
|
|
@@ -7114,11 +7114,11 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7114
7114
|
function P(e, t) {
|
|
7115
7115
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
7116
7116
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
7117
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
7117
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && ae(e, n.keyword, n.definition, t.type);
|
|
7118
7118
|
});
|
|
7119
7119
|
}
|
|
7120
7120
|
function F(e, t) {
|
|
7121
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (I(e, t), e.opts.allowUnionTypes ||
|
|
7121
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (I(e, t), e.opts.allowUnionTypes || L(e, t), R(e, e.dataTypes));
|
|
7122
7122
|
}
|
|
7123
7123
|
function I(e, t) {
|
|
7124
7124
|
if (t.length) {
|
|
@@ -7127,41 +7127,41 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7127
7127
|
return;
|
|
7128
7128
|
}
|
|
7129
7129
|
t.forEach((t) => {
|
|
7130
|
-
|
|
7131
|
-
}),
|
|
7130
|
+
te(e.dataTypes, t) || re(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
7131
|
+
}), ne(e, t);
|
|
7132
7132
|
}
|
|
7133
7133
|
}
|
|
7134
|
-
function
|
|
7135
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
7134
|
+
function L(e, t) {
|
|
7135
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && re(e, "use allowUnionTypes to allow union type keyword");
|
|
7136
7136
|
}
|
|
7137
|
-
function
|
|
7137
|
+
function R(e, t) {
|
|
7138
7138
|
let n = e.self.RULES.all;
|
|
7139
7139
|
for (let i in n) {
|
|
7140
7140
|
let a = n[i];
|
|
7141
7141
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
7142
7142
|
let { type: n } = a.definition;
|
|
7143
|
-
n.length && !n.some((e) =>
|
|
7143
|
+
n.length && !n.some((e) => ee(t, e)) && re(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
7144
7144
|
}
|
|
7145
7145
|
}
|
|
7146
7146
|
}
|
|
7147
|
-
function
|
|
7147
|
+
function ee(e, t) {
|
|
7148
7148
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
7149
7149
|
}
|
|
7150
|
-
function
|
|
7150
|
+
function te(e, t) {
|
|
7151
7151
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
7152
7152
|
}
|
|
7153
|
-
function
|
|
7153
|
+
function ne(e, t) {
|
|
7154
7154
|
let n = [];
|
|
7155
|
-
for (let r of e.dataTypes)
|
|
7155
|
+
for (let r of e.dataTypes) te(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
7156
7156
|
e.dataTypes = n;
|
|
7157
7157
|
}
|
|
7158
|
-
function
|
|
7158
|
+
function re(e, t) {
|
|
7159
7159
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
7160
7160
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
7161
7161
|
}
|
|
7162
|
-
var
|
|
7162
|
+
var ie = class {
|
|
7163
7163
|
constructor(e, t, n) {
|
|
7164
|
-
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema",
|
|
7164
|
+
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", se(this.$data, e));
|
|
7165
7165
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
7166
7166
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
7167
7167
|
}
|
|
@@ -7259,20 +7259,20 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7259
7259
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
7260
7260
|
}
|
|
7261
7261
|
};
|
|
7262
|
-
e.KeywordCxt =
|
|
7263
|
-
function
|
|
7264
|
-
let i = new
|
|
7262
|
+
e.KeywordCxt = ie;
|
|
7263
|
+
function ae(e, t, n, r) {
|
|
7264
|
+
let i = new ie(e, n, t);
|
|
7265
7265
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
7266
7266
|
}
|
|
7267
|
-
var
|
|
7268
|
-
function
|
|
7267
|
+
var z = /^\/(?:[^~]|~0|~1)*$/, oe = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
7268
|
+
function se(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
7269
7269
|
let i, a;
|
|
7270
7270
|
if (e === "") return l.default.rootData;
|
|
7271
7271
|
if (e[0] === "/") {
|
|
7272
|
-
if (!
|
|
7272
|
+
if (!z.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
7273
7273
|
i = e, a = l.default.rootData;
|
|
7274
7274
|
} else {
|
|
7275
|
-
let o =
|
|
7275
|
+
let o = oe.exec(e);
|
|
7276
7276
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
7277
7277
|
let s = +o[1];
|
|
7278
7278
|
if (i = o[2], i === "#") {
|
|
@@ -7289,7 +7289,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7289
7289
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
7290
7290
|
}
|
|
7291
7291
|
}
|
|
7292
|
-
e.getData =
|
|
7292
|
+
e.getData = se;
|
|
7293
7293
|
})), Mu = /* @__PURE__ */ i(((e) => {
|
|
7294
7294
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
7295
7295
|
constructor(e) {
|
|
@@ -7487,7 +7487,7 @@ var Nl = /* @__PURE__ */ vn(function(e, t) {
|
|
|
7487
7487
|
};
|
|
7488
7488
|
})), Uu = /* @__PURE__ */ i(((e) => {
|
|
7489
7489
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
7490
|
-
var t =
|
|
7490
|
+
var t = Ke();
|
|
7491
7491
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
7492
7492
|
})), Wu = /* @__PURE__ */ i(((t) => {
|
|
7493
7493
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
|
|
@@ -9470,7 +9470,7 @@ function Jd(e, t, n = {}, r, i = Ud.default, a) {
|
|
|
9470
9470
|
...Gd,
|
|
9471
9471
|
...n
|
|
9472
9472
|
});
|
|
9473
|
-
return r ? (0, Wd.default)(o, r) : r !== !1 && (0, Wd.default)(o), o.addFormat("data-url", qd), o.addFormat("color", Kd), o.addKeyword(
|
|
9473
|
+
return r ? (0, Wd.default)(o, r) : r !== !1 && (0, Wd.default)(o), o.addFormat("data-url", qd), o.addFormat("color", Kd), o.addKeyword(v), o.addKeyword(xe), Array.isArray(e) && o.addMetaSchema(e), Ce(t) && Object.keys(t).forEach((e) => {
|
|
9474
9474
|
o.addFormat(e, t[e]);
|
|
9475
9475
|
}), a && (o = a(o)), o;
|
|
9476
9476
|
}
|
|
@@ -9484,11 +9484,11 @@ function Yd(e = [], t) {
|
|
|
9484
9484
|
i.property
|
|
9485
9485
|
].filter((e) => e);
|
|
9486
9486
|
if (f.length > 0) f.forEach((e) => {
|
|
9487
|
-
let n =
|
|
9488
|
-
if (n === void 0 && (n =
|
|
9487
|
+
let n = S(H(t, `${(l ? `${l}.${e}` : e).replace(/^\./, "")}`)).title;
|
|
9488
|
+
if (n === void 0 && (n = S(H(t, a.replace(/\/properties\//g, "/").split("/").slice(1, -1).concat([e]))).title), n) c = c.replace(`'${e}'`, `'${n}'`), d = n;
|
|
9489
9489
|
else {
|
|
9490
|
-
let t =
|
|
9491
|
-
|
|
9490
|
+
let t = H(o, [
|
|
9491
|
+
w,
|
|
9492
9492
|
e,
|
|
9493
9493
|
"title"
|
|
9494
9494
|
]);
|
|
@@ -9496,7 +9496,7 @@ function Yd(e = [], t) {
|
|
|
9496
9496
|
}
|
|
9497
9497
|
}), u = c;
|
|
9498
9498
|
else {
|
|
9499
|
-
let e =
|
|
9499
|
+
let e = S(H(t, `${l.replace(/^\./, "")}`)).title;
|
|
9500
9500
|
if (e) u = `'${e}' ${c}`.trim(), d = e;
|
|
9501
9501
|
else {
|
|
9502
9502
|
let e = o?.title;
|
|
@@ -9513,14 +9513,14 @@ function Yd(e = [], t) {
|
|
|
9513
9513
|
title: d
|
|
9514
9514
|
};
|
|
9515
9515
|
}).reduce((e, t) => {
|
|
9516
|
-
let { message: n, schemaPath: r } = t, i = r?.indexOf(`/${
|
|
9516
|
+
let { message: n, schemaPath: r } = t, i = r?.indexOf(`/${pe}/`), a = r?.indexOf(`/${he}/`), o;
|
|
9517
9517
|
return i && i >= 0 ? o = r?.substring(0, i) : a && a >= 0 && (o = r?.substring(0, a)), o && e.find((e) => e.message === n && e.schemaPath?.startsWith(o)) || e.push(t), e;
|
|
9518
9518
|
}, []);
|
|
9519
9519
|
}
|
|
9520
9520
|
function Xd(e, t, n, r, i, a, o) {
|
|
9521
9521
|
let { validationError: s } = t, c = Yd(t.errors, o);
|
|
9522
9522
|
s && (c = [...c, { stack: s.message }]), typeof a == "function" && (c = a(c, o));
|
|
9523
|
-
let l =
|
|
9523
|
+
let l = ve(c);
|
|
9524
9524
|
if (s && (l = {
|
|
9525
9525
|
...l,
|
|
9526
9526
|
$schema: { __errors: [s.message] }
|
|
@@ -9528,8 +9528,8 @@ function Xd(e, t, n, r, i, a, o) {
|
|
|
9528
9528
|
errors: c,
|
|
9529
9529
|
errorSchema: l
|
|
9530
9530
|
};
|
|
9531
|
-
let u =
|
|
9532
|
-
return
|
|
9531
|
+
let u = Ee(e, r, n, r, !0), d = Be(i(u, h(u), o, l));
|
|
9532
|
+
return Ie({
|
|
9533
9533
|
errors: c,
|
|
9534
9534
|
errorSchema: l
|
|
9535
9535
|
}, d);
|
|
@@ -9570,13 +9570,13 @@ var Zd = class {
|
|
|
9570
9570
|
return Xd(this, a, e, t, n, r, i);
|
|
9571
9571
|
}
|
|
9572
9572
|
handleSchemaUpdate(e) {
|
|
9573
|
-
let t = e.$id ??
|
|
9574
|
-
this.ajv.getSchema(t) === void 0 ? this.ajv.addSchema(e, t) :
|
|
9573
|
+
let t = e.$id ?? un;
|
|
9574
|
+
this.ajv.getSchema(t) === void 0 ? this.ajv.addSchema(e, t) : gt(e, this.ajv.getSchema(t)?.schema) || (this.ajv.removeSchema(t), this.ajv.addSchema(e, t));
|
|
9575
9575
|
}
|
|
9576
9576
|
isValid(e, t, n) {
|
|
9577
9577
|
try {
|
|
9578
9578
|
this.handleSchemaUpdate(n);
|
|
9579
|
-
let r =
|
|
9579
|
+
let r = ke(e), i = r.$id ?? rn(r), a;
|
|
9580
9580
|
return a = this.ajv.getSchema(i), a === void 0 && (a = this.ajv.addSchema(r, i).getSchema(i) || this.ajv.compile(r)), a(t);
|
|
9581
9581
|
} catch (e) {
|
|
9582
9582
|
return console.warn("Error encountered compiling schema:", e), !1;
|
|
@@ -9609,7 +9609,7 @@ var $d = s(), $ = {
|
|
|
9609
9609
|
MIN_LIMIT: 3
|
|
9610
9610
|
}, nf = (e) => {
|
|
9611
9611
|
let t = [];
|
|
9612
|
-
return e.length > 63 && t.push("Can be max 63 characters"),
|
|
9612
|
+
return e.length > 63 && t.push("Can be max 63 characters"), wt.START_END_ALPHANUMERIC.test(e) || t.push("Must start and end with an alphanumeric character"), wt.ALPHANUMERIC_WITH_SPECIAL_CHAR.test(e) || t.push("Can only contain alphanumeric chars and (-), (_), (.)"), t;
|
|
9613
9613
|
}, rf = (e, t = !0) => {
|
|
9614
9614
|
let n = [], r = t && e.startsWith("devtron.ai/");
|
|
9615
9615
|
if (!e) n.push("Key is required");
|
|
@@ -9618,7 +9618,7 @@ var $d = s(), $ = {
|
|
|
9618
9618
|
if (t > 1) n.push("Key: Max 1 ( / ) allowed");
|
|
9619
9619
|
else if (t === 1) {
|
|
9620
9620
|
let [t, r] = e.split("/");
|
|
9621
|
-
n.push(...nf(r).map((e) => `Name: ${e}`)), t.length > 253 && n.push("Prefix: Can be max 253 characters"),
|
|
9621
|
+
n.push(...nf(r).map((e) => `Name: ${e}`)), t.length > 253 && n.push("Prefix: Can be max 253 characters"), wt.KUBERNETES_KEY_PREFIX.test(t) || n.push("Prefix: Must be a DNS subdomain (a series of DNS labels separated by dots (.)");
|
|
9622
9622
|
} else n.push(...nf(e).map((e) => `Name: ${e}`));
|
|
9623
9623
|
}
|
|
9624
9624
|
return {
|
|
@@ -9763,7 +9763,7 @@ var bf = (e, t = !1) => {
|
|
|
9763
9763
|
};
|
|
9764
9764
|
return { isValid: !0 };
|
|
9765
9765
|
}, Sf = (e) => {
|
|
9766
|
-
let t =
|
|
9766
|
+
let t = M(e), n = document.createElement("div");
|
|
9767
9767
|
n.innerHTML = t;
|
|
9768
9768
|
let r = n.querySelector("iframe");
|
|
9769
9769
|
if (!r || n.children.length !== 1) return {
|
|
@@ -9778,7 +9778,7 @@ var bf = (e, t = !1) => {
|
|
|
9778
9778
|
let a = ff(i);
|
|
9779
9779
|
return a.isValid ? { isValid: !0 } : a;
|
|
9780
9780
|
}, Cf = (e) => {
|
|
9781
|
-
let t =
|
|
9781
|
+
let t = wt.ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH;
|
|
9782
9782
|
return new RegExp(t).test(e) ? {
|
|
9783
9783
|
isValid: !0,
|
|
9784
9784
|
message: ""
|
|
@@ -9798,7 +9798,7 @@ var bf = (e, t = !1) => {
|
|
|
9798
9798
|
message: e.message
|
|
9799
9799
|
};
|
|
9800
9800
|
}
|
|
9801
|
-
}, Tf = (e) => e ?
|
|
9801
|
+
}, Tf = (e) => e ? wt.EMAIL.test(String(e).toLowerCase()) ? { isValid: !0 } : {
|
|
9802
9802
|
isValid: !1,
|
|
9803
9803
|
message: "Please provide a valid email address"
|
|
9804
9804
|
} : {
|
|
@@ -9823,7 +9823,7 @@ var bf = (e, t = !1) => {
|
|
|
9823
9823
|
};
|
|
9824
9824
|
}
|
|
9825
9825
|
}, Of = (e) => {
|
|
9826
|
-
let t =
|
|
9826
|
+
let t = wt.APP_NAME, n = new RegExp(t).test(e);
|
|
9827
9827
|
return e.length === 0 ? {
|
|
9828
9828
|
isValid: !1,
|
|
9829
9829
|
message: "Please provide app name"
|
|
@@ -9845,15 +9845,15 @@ var bf = (e, t = !1) => {
|
|
|
9845
9845
|
return bn(() => {
|
|
9846
9846
|
t(window.location.protocol === "https:");
|
|
9847
9847
|
}, []), e;
|
|
9848
|
-
}, Af = ({ docLinkKey: e, text: t = "Learn more", dataTestId: n, startIcon: r, showExternalIcon: i, onClick: a, fontWeight: o, size: s =
|
|
9848
|
+
}, Af = ({ docLinkKey: e, text: t = "Learn more", dataTestId: n, startIcon: r, showExternalIcon: i, onClick: a, fontWeight: o, size: s = V.medium, variant: c = qe.text, isExternalLink: l, openInNewTab: u = !1, fullWidth: d = !1 }) => {
|
|
9849
9849
|
let { isEnterprise: f, setSidePanelConfig: p, isLicenseDashboard: m } = An(), h = kf(), g = Kl({
|
|
9850
9850
|
docLinkKey: e,
|
|
9851
9851
|
isEnterprise: f,
|
|
9852
9852
|
isExternalLink: l,
|
|
9853
9853
|
isLicenseDashboard: m
|
|
9854
9854
|
});
|
|
9855
|
-
return /* @__PURE__ */ (0, G.jsx)(
|
|
9856
|
-
component:
|
|
9855
|
+
return /* @__PURE__ */ (0, G.jsx)(R, {
|
|
9856
|
+
component: We.anchor,
|
|
9857
9857
|
anchorProps: { href: g },
|
|
9858
9858
|
onClick: (e) => {
|
|
9859
9859
|
h && !l && !u && !e.metaKey && !m && g.startsWith("https://docs.devtron.ai") && (e.preventDefault(), p((e) => ({
|
|
@@ -9868,7 +9868,7 @@ var bf = (e, t = !1) => {
|
|
|
9868
9868
|
variant: c,
|
|
9869
9869
|
size: s,
|
|
9870
9870
|
startIcon: r,
|
|
9871
|
-
endIcon: i && /* @__PURE__ */ (0, G.jsx)(
|
|
9871
|
+
endIcon: i && /* @__PURE__ */ (0, G.jsx)(Pe, {
|
|
9872
9872
|
name: "ic-open-in-new",
|
|
9873
9873
|
color: null
|
|
9874
9874
|
}),
|
|
@@ -9895,12 +9895,12 @@ var bf = (e, t = !1) => {
|
|
|
9895
9895
|
//#endregion
|
|
9896
9896
|
//#region node_modules/lodash-es/unset.js
|
|
9897
9897
|
function Ff(e, t) {
|
|
9898
|
-
return e == null ? !0 :
|
|
9898
|
+
return e == null ? !0 : ct(e, t);
|
|
9899
9899
|
}
|
|
9900
9900
|
//#endregion
|
|
9901
9901
|
//#region node_modules/@rjsf/core/lib/components/fields/ArrayField.js
|
|
9902
9902
|
function If() {
|
|
9903
|
-
return
|
|
9903
|
+
return we("rjsf-array-item-");
|
|
9904
9904
|
}
|
|
9905
9905
|
function Lf(e) {
|
|
9906
9906
|
return Array.isArray(e) ? e.map((e) => ({
|
|
@@ -9915,7 +9915,7 @@ function zf(e) {
|
|
|
9915
9915
|
return Array.isArray(e.type) ? !e.type.includes("null") : e.type !== "null";
|
|
9916
9916
|
}
|
|
9917
9917
|
function Bf(e, t, n, r) {
|
|
9918
|
-
let { addable: i } =
|
|
9918
|
+
let { addable: i } = S(r, e.globalUiOptions);
|
|
9919
9919
|
return i !== !1 && (i = t.maxItems === void 0 ? !0 : n.length < t.maxItems), i;
|
|
9920
9920
|
}
|
|
9921
9921
|
function Vf(e, t, n, r) {
|
|
@@ -9929,20 +9929,20 @@ function Vf(e, t, n, r) {
|
|
|
9929
9929
|
}
|
|
9930
9930
|
function Hf(e, t) {
|
|
9931
9931
|
let { schemaUtils: n, globalFormOptions: r } = e, i = t.items;
|
|
9932
|
-
return r.useFallbackUiForUnsupportedType && !i ? i = {} :
|
|
9932
|
+
return r.useFallbackUiForUnsupportedType && !i ? i = {} : ne(t) && E(t) && (i = t.additionalItems), n.getDefaultFormState(i);
|
|
9933
9933
|
}
|
|
9934
9934
|
function Uf(e) {
|
|
9935
|
-
let { schema: t, fieldPathId: n, uiSchema: r, formData: i = [], disabled: a = !1, readonly: o = !1, autofocus: s = !1, required: c = !1, placeholder: l, onBlur: u, onFocus: d, registry: f, rawErrors: p, name:
|
|
9936
|
-
return (0, G.jsx)(
|
|
9937
|
-
id:
|
|
9938
|
-
name:
|
|
9935
|
+
let { schema: t, fieldPathId: n, uiSchema: r, formData: i = [], disabled: a = !1, readonly: o = !1, autofocus: s = !1, required: c = !1, placeholder: l, onBlur: u, onFocus: d, registry: f, rawErrors: p, name: h, onSelectChange: g } = e, { widgets: _, schemaUtils: v, globalFormOptions: y, globalUiOptions: b } = f, x = Ne(v.retrieveSchema(t.items, i), r?.items ?? {}), { widget: C = "select", title: w, ...T } = S(r, b), E = m(t, C, _), D = w ?? t.title ?? h, O = v.getDisplayLabel(t, r, b), k = Bt(Je("", y, n, !0));
|
|
9936
|
+
return (0, G.jsx)(E, {
|
|
9937
|
+
id: k.$id,
|
|
9938
|
+
name: h,
|
|
9939
9939
|
multiple: !0,
|
|
9940
|
-
onChange:
|
|
9940
|
+
onChange: g,
|
|
9941
9941
|
onBlur: u,
|
|
9942
9942
|
onFocus: d,
|
|
9943
9943
|
options: {
|
|
9944
|
-
...
|
|
9945
|
-
enumOptions:
|
|
9944
|
+
...T,
|
|
9945
|
+
enumOptions: x
|
|
9946
9946
|
},
|
|
9947
9947
|
schema: t,
|
|
9948
9948
|
uiSchema: r,
|
|
@@ -9951,24 +9951,24 @@ function Uf(e) {
|
|
|
9951
9951
|
disabled: a,
|
|
9952
9952
|
readonly: o,
|
|
9953
9953
|
required: c,
|
|
9954
|
-
label:
|
|
9955
|
-
hideLabel: !
|
|
9954
|
+
label: D,
|
|
9955
|
+
hideLabel: !O,
|
|
9956
9956
|
placeholder: l,
|
|
9957
9957
|
autofocus: s,
|
|
9958
9958
|
rawErrors: p,
|
|
9959
|
-
htmlName:
|
|
9959
|
+
htmlName: k.name
|
|
9960
9960
|
});
|
|
9961
9961
|
}
|
|
9962
9962
|
function Wf(e) {
|
|
9963
|
-
let { schema: t, fieldPathId: n, uiSchema: r, disabled: i = !1, readonly: a = !1, autofocus: o = !1, required: s = !1, hideError: c, placeholder: l, onBlur: u, onFocus: d, formData: f = [], registry: p, rawErrors:
|
|
9964
|
-
return (0, G.jsx)(
|
|
9965
|
-
id:
|
|
9966
|
-
name:
|
|
9963
|
+
let { schema: t, fieldPathId: n, uiSchema: r, disabled: i = !1, readonly: a = !1, autofocus: o = !1, required: s = !1, hideError: c, placeholder: l, onBlur: u, onFocus: d, formData: f = [], registry: p, rawErrors: h, name: g, onSelectChange: _ } = e, { widgets: v, schemaUtils: y, globalFormOptions: b, globalUiOptions: x } = p, { widget: C, title: w, ...T } = S(r, x), E = m(t, C, v), D = w ?? t.title ?? g, O = y.getDisplayLabel(t, r, x), k = Bt(Je("", b, n, !0));
|
|
9964
|
+
return (0, G.jsx)(E, {
|
|
9965
|
+
id: k.$id,
|
|
9966
|
+
name: g,
|
|
9967
9967
|
multiple: !0,
|
|
9968
|
-
onChange:
|
|
9968
|
+
onChange: _,
|
|
9969
9969
|
onBlur: u,
|
|
9970
9970
|
onFocus: d,
|
|
9971
|
-
options:
|
|
9971
|
+
options: T,
|
|
9972
9972
|
schema: t,
|
|
9973
9973
|
uiSchema: r,
|
|
9974
9974
|
registry: p,
|
|
@@ -9977,22 +9977,22 @@ function Wf(e) {
|
|
|
9977
9977
|
readonly: a,
|
|
9978
9978
|
hideError: c,
|
|
9979
9979
|
required: s,
|
|
9980
|
-
label:
|
|
9981
|
-
hideLabel: !
|
|
9980
|
+
label: D,
|
|
9981
|
+
hideLabel: !O,
|
|
9982
9982
|
placeholder: l,
|
|
9983
9983
|
autofocus: o,
|
|
9984
|
-
rawErrors:
|
|
9985
|
-
htmlName:
|
|
9984
|
+
rawErrors: h,
|
|
9985
|
+
htmlName: k.name
|
|
9986
9986
|
});
|
|
9987
9987
|
}
|
|
9988
9988
|
function Gf(e) {
|
|
9989
|
-
let { schema: t, uiSchema: n, fieldPathId: r, name: i, disabled: a = !1, readonly: o = !1, autofocus: s = !1, required: c = !1, onBlur: l, onFocus: u, registry: d, formData: f = [], rawErrors: p, onSelectChange:
|
|
9990
|
-
return (0, G.jsx)(
|
|
9991
|
-
options:
|
|
9992
|
-
id:
|
|
9989
|
+
let { schema: t, uiSchema: n, fieldPathId: r, name: i, disabled: a = !1, readonly: o = !1, autofocus: s = !1, required: c = !1, onBlur: l, onFocus: u, registry: d, formData: f = [], rawErrors: p, onSelectChange: h } = e, { widgets: g, schemaUtils: _, globalFormOptions: v, globalUiOptions: y } = d, { widget: b = "files", title: x, ...C } = S(n, y), w = m(t, b, g), T = x ?? t.title ?? i, E = _.getDisplayLabel(t, n, y), D = Bt(Je("", v, r, !0));
|
|
9990
|
+
return (0, G.jsx)(w, {
|
|
9991
|
+
options: C,
|
|
9992
|
+
id: D.$id,
|
|
9993
9993
|
name: i,
|
|
9994
9994
|
multiple: !0,
|
|
9995
|
-
onChange:
|
|
9995
|
+
onChange: h,
|
|
9996
9996
|
onBlur: l,
|
|
9997
9997
|
onFocus: u,
|
|
9998
9998
|
schema: t,
|
|
@@ -10004,68 +10004,68 @@ function Gf(e) {
|
|
|
10004
10004
|
registry: d,
|
|
10005
10005
|
autofocus: s,
|
|
10006
10006
|
rawErrors: p,
|
|
10007
|
-
label:
|
|
10008
|
-
hideLabel: !
|
|
10009
|
-
htmlName:
|
|
10007
|
+
label: T,
|
|
10008
|
+
hideLabel: !E,
|
|
10009
|
+
htmlName: D.name
|
|
10010
10010
|
});
|
|
10011
10011
|
}
|
|
10012
10012
|
function Kf(e) {
|
|
10013
|
-
let { itemKey: t, index: n, name: r, disabled: i, hideError: a, readonly: o, registry: s, uiOptions: c, parentUiSchema: l, canAdd: u, canRemove: d = !0, canMoveUp: f, canMoveDown: p, itemSchema: m, itemData: h, itemUiSchema: g, itemFieldPathId: _, itemErrorSchema: v, autofocus: y, onBlur:
|
|
10014
|
-
moveUp:
|
|
10015
|
-
moveDown:
|
|
10016
|
-
copy:
|
|
10017
|
-
remove:
|
|
10013
|
+
let { itemKey: t, index: n, name: r, disabled: i, hideError: a, readonly: o, registry: s, uiOptions: c, parentUiSchema: l, canAdd: u, canRemove: d = !0, canMoveUp: f, canMoveDown: p, itemSchema: m, itemData: h, itemUiSchema: g, itemFieldPathId: _, itemErrorSchema: v, autofocus: y, onBlur: x, onFocus: C, onChange: w, rawErrors: T, totalItems: E, title: D, handleAddItem: O, handleCopyItem: k, handleRemoveItem: A, handleReorderItems: j } = e, { schemaUtils: M, fields: { ArraySchemaField: N, SchemaField: P }, globalUiOptions: F } = s, I = Bt(_), L = N || P, R = b("ArrayFieldItemTemplate", s, c), ee = M.getDisplayLabel(m, g, F), { description: te } = S(g), ne = !!te || !!m.description, { orderable: re = !0, removable: ie = !0, copyable: ae = !1 } = c, z = {
|
|
10014
|
+
moveUp: re && f,
|
|
10015
|
+
moveDown: re && p,
|
|
10016
|
+
copy: ae && u,
|
|
10017
|
+
remove: ie && d,
|
|
10018
10018
|
toolbar: !1
|
|
10019
10019
|
};
|
|
10020
|
-
|
|
10021
|
-
let
|
|
10022
|
-
|
|
10023
|
-
}, [
|
|
10024
|
-
|
|
10025
|
-
}, [
|
|
10026
|
-
|
|
10027
|
-
}, [
|
|
10028
|
-
|
|
10029
|
-
}, [
|
|
10030
|
-
|
|
10031
|
-
}, [
|
|
10032
|
-
return (0, G.jsx)(
|
|
10033
|
-
children: (0, G.jsx)(
|
|
10020
|
+
z.toolbar = Object.keys(z).some((e) => z[e]);
|
|
10021
|
+
let oe = W((e) => {
|
|
10022
|
+
O(e, n + 1);
|
|
10023
|
+
}, [O, n]), se = W((e) => {
|
|
10024
|
+
k(e, n);
|
|
10025
|
+
}, [k, n]), ce = W((e) => {
|
|
10026
|
+
A(e, n);
|
|
10027
|
+
}, [A, n]), le = W((e) => {
|
|
10028
|
+
j(e, n, n - 1);
|
|
10029
|
+
}, [j, n]), ue = W((e) => {
|
|
10030
|
+
j(e, n, n + 1);
|
|
10031
|
+
}, [j, n]);
|
|
10032
|
+
return (0, G.jsx)(R, {
|
|
10033
|
+
children: (0, G.jsx)(L, {
|
|
10034
10034
|
name: r,
|
|
10035
|
-
title:
|
|
10035
|
+
title: D,
|
|
10036
10036
|
index: n,
|
|
10037
10037
|
schema: m,
|
|
10038
10038
|
uiSchema: g,
|
|
10039
10039
|
formData: h,
|
|
10040
10040
|
errorSchema: v,
|
|
10041
|
-
fieldPathId:
|
|
10041
|
+
fieldPathId: I,
|
|
10042
10042
|
required: zf(m),
|
|
10043
|
-
onChange:
|
|
10044
|
-
onBlur:
|
|
10045
|
-
onFocus:
|
|
10043
|
+
onChange: w,
|
|
10044
|
+
onBlur: x,
|
|
10045
|
+
onFocus: C,
|
|
10046
10046
|
registry: s,
|
|
10047
10047
|
disabled: i,
|
|
10048
10048
|
readonly: o,
|
|
10049
10049
|
hideError: a,
|
|
10050
10050
|
autofocus: y,
|
|
10051
|
-
rawErrors:
|
|
10051
|
+
rawErrors: T
|
|
10052
10052
|
}),
|
|
10053
10053
|
buttonsProps: {
|
|
10054
|
-
fieldPathId:
|
|
10054
|
+
fieldPathId: I,
|
|
10055
10055
|
disabled: i,
|
|
10056
10056
|
readonly: o,
|
|
10057
10057
|
canAdd: u,
|
|
10058
|
-
hasCopy:
|
|
10059
|
-
hasMoveUp:
|
|
10060
|
-
hasMoveDown:
|
|
10061
|
-
hasRemove:
|
|
10058
|
+
hasCopy: z.copy,
|
|
10059
|
+
hasMoveUp: z.moveUp,
|
|
10060
|
+
hasMoveDown: z.moveDown,
|
|
10061
|
+
hasRemove: z.remove,
|
|
10062
10062
|
index: n,
|
|
10063
|
-
totalItems:
|
|
10064
|
-
onAddItem:
|
|
10065
|
-
onCopyItem:
|
|
10066
|
-
onRemoveItem:
|
|
10067
|
-
onMoveUpItem:
|
|
10068
|
-
onMoveDownItem:
|
|
10063
|
+
totalItems: E,
|
|
10064
|
+
onAddItem: oe,
|
|
10065
|
+
onCopyItem: se,
|
|
10066
|
+
onRemoveItem: ce,
|
|
10067
|
+
onMoveUpItem: le,
|
|
10068
|
+
onMoveDownItem: ue,
|
|
10069
10069
|
registry: s,
|
|
10070
10070
|
schema: m,
|
|
10071
10071
|
uiSchema: g
|
|
@@ -10073,9 +10073,9 @@ function Kf(e) {
|
|
|
10073
10073
|
itemKey: t,
|
|
10074
10074
|
className: "rjsf-array-item",
|
|
10075
10075
|
disabled: i,
|
|
10076
|
-
hasToolbar:
|
|
10076
|
+
hasToolbar: z.toolbar,
|
|
10077
10077
|
index: n,
|
|
10078
|
-
totalItems:
|
|
10078
|
+
totalItems: E,
|
|
10079
10079
|
readonly: o,
|
|
10080
10080
|
registry: s,
|
|
10081
10081
|
schema: m,
|
|
@@ -10086,45 +10086,45 @@ function Kf(e) {
|
|
|
10086
10086
|
});
|
|
10087
10087
|
}
|
|
10088
10088
|
function qf(e) {
|
|
10089
|
-
let { schema: t, uiSchema: n = {}, errorSchema: r, fieldPathId: i, formData: a, name: o, title: s, disabled: c = !1, readonly: l = !1, autofocus: u = !1, required: d = !1, hideError: f = !1, registry: p, onBlur: m, onFocus: h, rawErrors: g, onChange: _, keyedFormData: v, handleAddItem: y, handleCopyItem:
|
|
10089
|
+
let { schema: t, uiSchema: n = {}, errorSchema: r, fieldPathId: i, formData: a, name: o, title: s, disabled: c = !1, readonly: l = !1, autofocus: u = !1, required: d = !1, hideError: f = !1, registry: p, onBlur: m, onFocus: h, rawErrors: g, onChange: _, keyedFormData: v, handleAddItem: y, handleCopyItem: x, handleRemoveItem: C, handleReorderItems: w } = e, T = t.title || s || o, { schemaUtils: E, fields: D, formContext: O, globalFormOptions: k, globalUiOptions: A } = p, { OptionalDataControlsField: j } = D, M = S(n, A), N = Ce(t.items) ? t.items : {}, P = E.retrieveSchema(N), F = Rf(v), I = Kt(p, t, d, n), L = Yt(a), R = Bf(p, t, F, n) && (!I || L), ee = L ? v : [], te = I ? " rjsf-optional-array-field" : "", ne = e.childFieldPathId ?? i, re = I ? (0, G.jsx)(j, {
|
|
10090
10090
|
...e,
|
|
10091
10091
|
fieldPathId: ne
|
|
10092
10092
|
}) : void 0, ie = {
|
|
10093
|
-
canAdd:
|
|
10093
|
+
canAdd: R,
|
|
10094
10094
|
items: ee.map((e, t) => {
|
|
10095
|
-
let { key: i, item: a } = e, s = a,
|
|
10095
|
+
let { key: i, item: a } = e, s = a, b = E.retrieveSchema(N, s), S = r ? r[t] : void 0, D = Je(t, k, ne), A = Vf(n, a, t, O);
|
|
10096
10096
|
return (0, G.jsx)(Kf, {
|
|
10097
10097
|
itemKey: i,
|
|
10098
10098
|
index: t,
|
|
10099
10099
|
name: o && `${o}-${t}`,
|
|
10100
10100
|
registry: p,
|
|
10101
|
-
uiOptions:
|
|
10101
|
+
uiOptions: M,
|
|
10102
10102
|
hideError: f,
|
|
10103
10103
|
readonly: l,
|
|
10104
10104
|
disabled: c,
|
|
10105
10105
|
required: d,
|
|
10106
|
-
title:
|
|
10107
|
-
canAdd:
|
|
10106
|
+
title: T ? `${T}-${t + 1}` : void 0,
|
|
10107
|
+
canAdd: R,
|
|
10108
10108
|
canMoveUp: t > 0,
|
|
10109
|
-
canMoveDown: t <
|
|
10110
|
-
itemSchema:
|
|
10111
|
-
itemFieldPathId:
|
|
10112
|
-
itemErrorSchema:
|
|
10109
|
+
canMoveDown: t < F.length - 1,
|
|
10110
|
+
itemSchema: b,
|
|
10111
|
+
itemFieldPathId: D,
|
|
10112
|
+
itemErrorSchema: S,
|
|
10113
10113
|
itemData: s,
|
|
10114
|
-
itemUiSchema:
|
|
10114
|
+
itemUiSchema: A,
|
|
10115
10115
|
autofocus: u && t === 0,
|
|
10116
10116
|
onBlur: m,
|
|
10117
10117
|
onFocus: h,
|
|
10118
10118
|
rawErrors: g,
|
|
10119
10119
|
totalItems: v.length,
|
|
10120
10120
|
handleAddItem: y,
|
|
10121
|
-
handleCopyItem:
|
|
10122
|
-
handleRemoveItem:
|
|
10123
|
-
handleReorderItems:
|
|
10121
|
+
handleCopyItem: x,
|
|
10122
|
+
handleRemoveItem: C,
|
|
10123
|
+
handleReorderItems: w,
|
|
10124
10124
|
onChange: _
|
|
10125
10125
|
}, i);
|
|
10126
10126
|
}),
|
|
10127
|
-
className: `rjsf-field rjsf-field-array rjsf-field-array-of-${
|
|
10127
|
+
className: `rjsf-field rjsf-field-array rjsf-field-array-of-${P.type}${te}`,
|
|
10128
10128
|
disabled: c,
|
|
10129
10129
|
fieldPathId: i,
|
|
10130
10130
|
uiSchema: n,
|
|
@@ -10132,50 +10132,50 @@ function qf(e) {
|
|
|
10132
10132
|
readonly: l,
|
|
10133
10133
|
required: d,
|
|
10134
10134
|
schema: t,
|
|
10135
|
-
title:
|
|
10136
|
-
formData:
|
|
10135
|
+
title: T,
|
|
10136
|
+
formData: F,
|
|
10137
10137
|
rawErrors: g,
|
|
10138
10138
|
registry: p,
|
|
10139
10139
|
optionalDataControl: re
|
|
10140
10140
|
};
|
|
10141
|
-
return (0, G.jsx)(
|
|
10141
|
+
return (0, G.jsx)(b("ArrayFieldTemplate", p, M), { ...ie });
|
|
10142
10142
|
}
|
|
10143
10143
|
function Jf(e) {
|
|
10144
|
-
let { schema: t, uiSchema: n = {}, formData: r, errorSchema: i, fieldPathId: a, name: o, title: s, disabled: c = !1, readonly: l = !1, autofocus: u = !1, required: d = !1, hideError: f = !1, registry: p, onBlur: m, onFocus: h, rawErrors: g, keyedFormData: _, onChange: v, handleAddItem: y, handleCopyItem:
|
|
10145
|
-
|
|
10146
|
-
let ee =
|
|
10144
|
+
let { schema: t, uiSchema: n = {}, formData: r, errorSchema: i, fieldPathId: a, name: o, title: s, disabled: c = !1, readonly: l = !1, autofocus: u = !1, required: d = !1, hideError: f = !1, registry: p, onBlur: m, onFocus: h, rawErrors: g, keyedFormData: _, onChange: v, handleAddItem: y, handleCopyItem: x, handleRemoveItem: C, handleReorderItems: w } = e, { formData: T = [] } = e, E = t.title || s || o, { schemaUtils: D, fields: O, formContext: k, globalFormOptions: A, globalUiOptions: j } = p, M = S(n, j), { OptionalDataControlsField: N } = O, P = Kt(p, t, d, n), F = Yt(r), I = (Ce(t.items) ? t.items : []).map((e, t) => D.retrieveSchema(e, T[t])), L = Ce(t.additionalItems) ? D.retrieveSchema(t.additionalItems, r) : null, R = e.childFieldPathId ?? a;
|
|
10145
|
+
T.length < I.length && (T = T.concat(Array(I.length - T.length)));
|
|
10146
|
+
let ee = F ? _ : [], te = P ? " rjsf-optional-array-field" : "", ne = P ? (0, G.jsx)(N, {
|
|
10147
10147
|
...e,
|
|
10148
|
-
fieldPathId:
|
|
10149
|
-
}) : void 0, re = Bf(p, t,
|
|
10148
|
+
fieldPathId: R
|
|
10149
|
+
}) : void 0, re = Bf(p, t, T, n) && !!L && (!P || F), ie = {
|
|
10150
10150
|
canAdd: re,
|
|
10151
10151
|
className: `rjsf-field rjsf-field-array rjsf-field-array-fixed-items${te}`,
|
|
10152
10152
|
disabled: c,
|
|
10153
10153
|
fieldPathId: a,
|
|
10154
10154
|
formData: r,
|
|
10155
10155
|
items: ee.map((e, r) => {
|
|
10156
|
-
let { key: a, item: s } = e,
|
|
10157
|
-
N =
|
|
10158
|
-
let
|
|
10156
|
+
let { key: a, item: s } = e, b = s, S = r >= I.length, O = (S && Ce(t.additionalItems) ? D.retrieveSchema(t.additionalItems, b) : I[r]) || {}, j = Je(r, A, R), N;
|
|
10157
|
+
N = S ? n.additionalItems : Array.isArray(n.items) ? n.items[r] : Vf(n, s, r, k);
|
|
10158
|
+
let P = i ? i[r] : void 0;
|
|
10159
10159
|
return (0, G.jsx)(Kf, {
|
|
10160
10160
|
index: r,
|
|
10161
10161
|
itemKey: a,
|
|
10162
10162
|
name: o && `${o}-${r}`,
|
|
10163
10163
|
registry: p,
|
|
10164
|
-
uiOptions:
|
|
10164
|
+
uiOptions: M,
|
|
10165
10165
|
hideError: f,
|
|
10166
10166
|
readonly: l,
|
|
10167
10167
|
disabled: c,
|
|
10168
10168
|
required: d,
|
|
10169
|
-
title:
|
|
10169
|
+
title: E ? `${E}-${r + 1}` : void 0,
|
|
10170
10170
|
canAdd: re,
|
|
10171
|
-
canRemove:
|
|
10172
|
-
canMoveUp: r >=
|
|
10173
|
-
canMoveDown:
|
|
10174
|
-
itemSchema:
|
|
10175
|
-
itemData:
|
|
10171
|
+
canRemove: S,
|
|
10172
|
+
canMoveUp: r >= I.length + 1,
|
|
10173
|
+
canMoveDown: S && r < T.length - 1,
|
|
10174
|
+
itemSchema: O,
|
|
10175
|
+
itemData: b,
|
|
10176
10176
|
itemUiSchema: N,
|
|
10177
|
-
itemFieldPathId:
|
|
10178
|
-
itemErrorSchema:
|
|
10177
|
+
itemFieldPathId: j,
|
|
10178
|
+
itemErrorSchema: P,
|
|
10179
10179
|
autofocus: u && r === 0,
|
|
10180
10180
|
onBlur: m,
|
|
10181
10181
|
onFocus: h,
|
|
@@ -10183,9 +10183,9 @@ function Jf(e) {
|
|
|
10183
10183
|
totalItems: _.length,
|
|
10184
10184
|
onChange: v,
|
|
10185
10185
|
handleAddItem: y,
|
|
10186
|
-
handleCopyItem:
|
|
10187
|
-
handleRemoveItem:
|
|
10188
|
-
handleReorderItems:
|
|
10186
|
+
handleCopyItem: x,
|
|
10187
|
+
handleRemoveItem: C,
|
|
10188
|
+
handleReorderItems: w
|
|
10189
10189
|
}, a);
|
|
10190
10190
|
}),
|
|
10191
10191
|
onAddClick: y,
|
|
@@ -10194,15 +10194,15 @@ function Jf(e) {
|
|
|
10194
10194
|
registry: p,
|
|
10195
10195
|
schema: t,
|
|
10196
10196
|
uiSchema: n,
|
|
10197
|
-
title:
|
|
10197
|
+
title: E,
|
|
10198
10198
|
errorSchema: i,
|
|
10199
10199
|
rawErrors: g,
|
|
10200
10200
|
optionalDataControl: ne
|
|
10201
10201
|
};
|
|
10202
|
-
return (0, G.jsx)(
|
|
10202
|
+
return (0, G.jsx)(b("ArrayFieldTemplate", p, M), { ...ie });
|
|
10203
10203
|
}
|
|
10204
10204
|
function Yf(e = []) {
|
|
10205
|
-
let t = Sn(() =>
|
|
10205
|
+
let t = Sn(() => Se(e), [e]), [n, r] = wn(() => ({
|
|
10206
10206
|
formDataHash: t,
|
|
10207
10207
|
keyedFormData: Lf(e)
|
|
10208
10208
|
})), { keyedFormData: i, formDataHash: a } = n;
|
|
@@ -10219,7 +10219,7 @@ function Yf(e = []) {
|
|
|
10219
10219
|
let o = W((e) => {
|
|
10220
10220
|
let t = Rf(e);
|
|
10221
10221
|
return r({
|
|
10222
|
-
formDataHash:
|
|
10222
|
+
formDataHash: Se(t),
|
|
10223
10223
|
keyedFormData: e
|
|
10224
10224
|
}), t;
|
|
10225
10225
|
}, []);
|
|
@@ -10229,156 +10229,156 @@ function Yf(e = []) {
|
|
|
10229
10229
|
};
|
|
10230
10230
|
}
|
|
10231
10231
|
function Xf(e) {
|
|
10232
|
-
let { schema: t, uiSchema: n, errorSchema: r, fieldPathId: i, registry: a, formData: o, onChange: s } = e, { globalFormOptions:
|
|
10232
|
+
let { schema: t, uiSchema: n, errorSchema: r, fieldPathId: i, registry: a, formData: o, onChange: s } = e, { globalFormOptions: c, schemaUtils: l, translateString: u } = a, { keyedFormData: d, updateKeyedFormData: f } = Yf(o), p = e.childFieldPathId ?? i, m = W((e, n) => {
|
|
10233
10233
|
e && e.preventDefault();
|
|
10234
10234
|
let i;
|
|
10235
10235
|
if (r) {
|
|
10236
10236
|
i = {};
|
|
10237
10237
|
for (let e in r) {
|
|
10238
10238
|
let t = parseInt(e);
|
|
10239
|
-
n === void 0 || t < n ?
|
|
10239
|
+
n === void 0 || t < n ? Xt(i, [t], r[e]) : t >= n && Xt(i, [t + 1], r[e]);
|
|
10240
10240
|
}
|
|
10241
10241
|
}
|
|
10242
10242
|
let o = {
|
|
10243
10243
|
key: If(),
|
|
10244
10244
|
item: Hf(a, t)
|
|
10245
|
-
}, c = [...
|
|
10246
|
-
n === void 0 ? c.push(o) : c.splice(n, 0, o), s(
|
|
10245
|
+
}, c = [...d];
|
|
10246
|
+
n === void 0 ? c.push(o) : c.splice(n, 0, o), s(f(c), p.path, i);
|
|
10247
10247
|
}, [
|
|
10248
|
-
|
|
10248
|
+
d,
|
|
10249
10249
|
a,
|
|
10250
10250
|
t,
|
|
10251
10251
|
s,
|
|
10252
|
-
|
|
10252
|
+
f,
|
|
10253
10253
|
r,
|
|
10254
|
-
|
|
10255
|
-
]),
|
|
10254
|
+
p
|
|
10255
|
+
]), h = W((e, t) => {
|
|
10256
10256
|
e && e.preventDefault();
|
|
10257
10257
|
let n;
|
|
10258
10258
|
if (r) {
|
|
10259
10259
|
n = {};
|
|
10260
10260
|
for (let e in r) {
|
|
10261
10261
|
let i = parseInt(e);
|
|
10262
|
-
i <= t ?
|
|
10262
|
+
i <= t ? Xt(n, [i], r[e]) : i > t && Xt(n, [i + 1], r[e]);
|
|
10263
10263
|
}
|
|
10264
10264
|
}
|
|
10265
10265
|
let i = {
|
|
10266
10266
|
key: If(),
|
|
10267
|
-
item:
|
|
10268
|
-
}, a = [...
|
|
10269
|
-
t === void 0 ? a.push(i) : a.splice(t + 1, 0, i), s(
|
|
10267
|
+
item: yt(d[t].item)
|
|
10268
|
+
}, a = [...d];
|
|
10269
|
+
t === void 0 ? a.push(i) : a.splice(t + 1, 0, i), s(f(a), p.path, n);
|
|
10270
10270
|
}, [
|
|
10271
|
-
|
|
10271
|
+
d,
|
|
10272
10272
|
s,
|
|
10273
|
-
|
|
10273
|
+
f,
|
|
10274
10274
|
r,
|
|
10275
|
-
|
|
10276
|
-
]),
|
|
10275
|
+
p
|
|
10276
|
+
]), g = W((e, t) => {
|
|
10277
10277
|
e && e.preventDefault();
|
|
10278
10278
|
let n;
|
|
10279
10279
|
if (r) {
|
|
10280
10280
|
n = {};
|
|
10281
10281
|
for (let e in r) {
|
|
10282
10282
|
let i = parseInt(e);
|
|
10283
|
-
i < t ?
|
|
10283
|
+
i < t ? Xt(n, [i], r[e]) : i > t && Xt(n, [i - 1], r[e]);
|
|
10284
10284
|
}
|
|
10285
10285
|
}
|
|
10286
|
-
s(
|
|
10286
|
+
s(f(d.filter((e, n) => n !== t)), p.path, n);
|
|
10287
10287
|
}, [
|
|
10288
|
-
|
|
10288
|
+
d,
|
|
10289
10289
|
s,
|
|
10290
|
-
|
|
10290
|
+
f,
|
|
10291
10291
|
r,
|
|
10292
|
-
|
|
10293
|
-
]),
|
|
10292
|
+
p
|
|
10293
|
+
]), _ = W((e, t, n) => {
|
|
10294
10294
|
e && (e.preventDefault(), e.currentTarget.blur());
|
|
10295
10295
|
let i;
|
|
10296
10296
|
if (r) {
|
|
10297
10297
|
i = {};
|
|
10298
10298
|
for (let e in r) {
|
|
10299
10299
|
let a = parseInt(e);
|
|
10300
|
-
a == t ?
|
|
10300
|
+
a == t ? Xt(i, [n], r[t]) : a == n ? Xt(i, [t], r[n]) : Xt(i, [e], r[a]);
|
|
10301
10301
|
}
|
|
10302
10302
|
}
|
|
10303
10303
|
function a() {
|
|
10304
|
-
let e =
|
|
10305
|
-
return e.splice(t, 1), e.splice(n, 0,
|
|
10304
|
+
let e = d.slice();
|
|
10305
|
+
return e.splice(t, 1), e.splice(n, 0, d[t]), e;
|
|
10306
10306
|
}
|
|
10307
|
-
s(
|
|
10307
|
+
s(f(a()), p.path, i);
|
|
10308
10308
|
}, [
|
|
10309
|
-
|
|
10309
|
+
d,
|
|
10310
10310
|
s,
|
|
10311
|
-
|
|
10311
|
+
f,
|
|
10312
10312
|
r,
|
|
10313
|
-
|
|
10314
|
-
]),
|
|
10313
|
+
p
|
|
10314
|
+
]), v = W((e, t, n, r) => {
|
|
10315
10315
|
s(e === void 0 ? null : e, t, n, r);
|
|
10316
|
-
}, [s]),
|
|
10317
|
-
s(e,
|
|
10318
|
-
}, [s,
|
|
10316
|
+
}, [s]), y = W((e) => {
|
|
10317
|
+
s(e, p.path, void 0, p?.$id);
|
|
10318
|
+
}, [s, p]), x = {
|
|
10319
10319
|
...e,
|
|
10320
10320
|
formData: o,
|
|
10321
|
-
fieldPathId:
|
|
10322
|
-
onSelectChange:
|
|
10323
|
-
},
|
|
10321
|
+
fieldPathId: p,
|
|
10322
|
+
onSelectChange: y
|
|
10323
|
+
}, C = {
|
|
10324
10324
|
...e,
|
|
10325
|
-
handleAddItem:
|
|
10326
|
-
handleCopyItem:
|
|
10327
|
-
handleRemoveItem:
|
|
10328
|
-
handleReorderItems:
|
|
10329
|
-
keyedFormData:
|
|
10330
|
-
onChange:
|
|
10325
|
+
handleAddItem: m,
|
|
10326
|
+
handleCopyItem: h,
|
|
10327
|
+
handleRemoveItem: g,
|
|
10328
|
+
handleReorderItems: _,
|
|
10329
|
+
keyedFormData: d,
|
|
10330
|
+
onChange: v
|
|
10331
10331
|
};
|
|
10332
10332
|
if (!("items" in t)) {
|
|
10333
|
-
if (!
|
|
10333
|
+
if (!c.useFallbackUiForUnsupportedType) return (0, G.jsx)(b("UnsupportedFieldTemplate", a, S(n)), {
|
|
10334
10334
|
schema: t,
|
|
10335
10335
|
fieldPathId: i,
|
|
10336
|
-
reason:
|
|
10336
|
+
reason: u(j.MissingItems),
|
|
10337
10337
|
registry: a
|
|
10338
10338
|
});
|
|
10339
10339
|
let e = {
|
|
10340
10340
|
...t,
|
|
10341
|
-
[
|
|
10341
|
+
[de]: { type: void 0 }
|
|
10342
10342
|
};
|
|
10343
|
-
x.schema = e,
|
|
10343
|
+
x.schema = e, C.schema = e;
|
|
10344
10344
|
}
|
|
10345
|
-
return
|
|
10345
|
+
return l.isMultiSelect(x.schema) ? (0, G.jsx)(Uf, { ...x }) : O(n) ? (0, G.jsx)(Wf, { ...x }) : ne(x.schema) ? (0, G.jsx)(Jf, { ...C }) : l.isFilesArray(x.schema, n) ? (0, G.jsx)(Gf, { ...x }) : (0, G.jsx)(qf, { ...C });
|
|
10346
10346
|
}
|
|
10347
10347
|
//#endregion
|
|
10348
10348
|
//#region node_modules/@rjsf/core/lib/components/fields/BooleanField.js
|
|
10349
10349
|
function Zf(e) {
|
|
10350
|
-
let { schema: t, name: n, uiSchema: r, fieldPathId: i, formData: a, registry: o, required: s, disabled: c, readonly: l, hideError: u, autofocus: d, title: f, onChange: p, onFocus:
|
|
10351
|
-
if (Array.isArray(t.oneOf))
|
|
10352
|
-
if (
|
|
10350
|
+
let { schema: t, name: n, uiSchema: r, fieldPathId: i, formData: a, registry: o, required: s, disabled: c, readonly: l, hideError: u, autofocus: d, title: f, onChange: p, onFocus: h, onBlur: g, rawErrors: _ } = e, { title: v } = t, { widgets: y, translateString: b, globalUiOptions: x } = o, { widget: C = "checkbox", title: w, label: T = !0, enumNames: E, ...D } = S(r, x), O = m(t, C, y), k = b(j.YesLabel), A = b(j.NoLabel), M, N = w ?? v ?? f ?? n;
|
|
10351
|
+
if (Array.isArray(t.oneOf)) M = Ne({ oneOf: t.oneOf.map((e) => {
|
|
10352
|
+
if (Ce(e)) return {
|
|
10353
10353
|
...e,
|
|
10354
|
-
title: e.title || (e.const === !0 ?
|
|
10354
|
+
title: e.title || (e.const === !0 ? k : A)
|
|
10355
10355
|
};
|
|
10356
10356
|
}).filter((e) => e) }, r);
|
|
10357
10357
|
else {
|
|
10358
10358
|
let e = t.enum ?? [!0, !1];
|
|
10359
|
-
|
|
10359
|
+
M = !E && e.length === 2 && e.every((e) => typeof e == "boolean") ? [{
|
|
10360
10360
|
value: e[0],
|
|
10361
|
-
label: e[0] ?
|
|
10361
|
+
label: e[0] ? k : A
|
|
10362
10362
|
}, {
|
|
10363
10363
|
value: e[1],
|
|
10364
|
-
label: e[1] ?
|
|
10365
|
-
}] :
|
|
10364
|
+
label: e[1] ? k : A
|
|
10365
|
+
}] : Ne({ enum: e }, r);
|
|
10366
10366
|
}
|
|
10367
|
-
let
|
|
10368
|
-
return (0, G.jsx)(
|
|
10367
|
+
let P = W((e, t, n) => p(e, i.path, t, n), [p, i]);
|
|
10368
|
+
return (0, G.jsx)(O, {
|
|
10369
10369
|
options: {
|
|
10370
|
-
...
|
|
10371
|
-
enumOptions:
|
|
10370
|
+
...D,
|
|
10371
|
+
enumOptions: M
|
|
10372
10372
|
},
|
|
10373
10373
|
schema: t,
|
|
10374
10374
|
uiSchema: r,
|
|
10375
10375
|
id: i.$id,
|
|
10376
10376
|
name: n,
|
|
10377
|
-
onChange:
|
|
10378
|
-
onFocus:
|
|
10379
|
-
onBlur:
|
|
10380
|
-
label:
|
|
10381
|
-
hideLabel: !
|
|
10377
|
+
onChange: P,
|
|
10378
|
+
onFocus: h,
|
|
10379
|
+
onBlur: g,
|
|
10380
|
+
label: N,
|
|
10381
|
+
hideLabel: !T,
|
|
10382
10382
|
value: a,
|
|
10383
10383
|
required: s,
|
|
10384
10384
|
disabled: c,
|
|
@@ -10386,7 +10386,7 @@ function Zf(e) {
|
|
|
10386
10386
|
hideError: u,
|
|
10387
10387
|
registry: o,
|
|
10388
10388
|
autofocus: d,
|
|
10389
|
-
rawErrors:
|
|
10389
|
+
rawErrors: _,
|
|
10390
10390
|
htmlName: i.name
|
|
10391
10391
|
});
|
|
10392
10392
|
}
|
|
@@ -10422,28 +10422,28 @@ function ep(e, t) {
|
|
|
10422
10422
|
}
|
|
10423
10423
|
}
|
|
10424
10424
|
function tp(e) {
|
|
10425
|
-
let { id: t, formData: n, displayLabel: r = !0, schema: i, name: a, uiSchema: o, required: s, disabled: c = !1, readonly: l = !1, onBlur: u, onFocus: d, registry: f, fieldPathId: p, onChange: m, errorSchema: h } = e, { translateString: g, fields: _, globalFormOptions: v } = f, [y,
|
|
10426
|
-
e != null && (
|
|
10425
|
+
let { id: t, formData: n, displayLabel: r = !0, schema: i, name: a, uiSchema: o, required: s, disabled: c = !1, readonly: l = !1, onBlur: u, onFocus: d, registry: f, fieldPathId: p, onChange: m, errorSchema: h } = e, { translateString: g, fields: _, globalFormOptions: v } = f, [y, x] = wn($f(n)), C = S(o), w = Bt(Je("__internal_type_selector", v, p)), T = g(j.Type), E = Sn(() => Qf(T), [T]), D = (e) => {
|
|
10426
|
+
e != null && (x(e), m(ep(n, e), p.path, h, t));
|
|
10427
10427
|
};
|
|
10428
10428
|
if (!v.useFallbackUiForUnsupportedType) {
|
|
10429
|
-
let { reason: t = g(
|
|
10430
|
-
return (0, G.jsx)(
|
|
10429
|
+
let { reason: t = g(j.UnknownFieldType, [String(i.type)]) } = e;
|
|
10430
|
+
return (0, G.jsx)(b("UnsupportedFieldTemplate", f, C), {
|
|
10431
10431
|
schema: i,
|
|
10432
10432
|
fieldPathId: p,
|
|
10433
10433
|
reason: t,
|
|
10434
10434
|
registry: f
|
|
10435
10435
|
});
|
|
10436
10436
|
}
|
|
10437
|
-
let
|
|
10438
|
-
return (0, G.jsx)(
|
|
10437
|
+
let O = b("FallbackFieldTemplate", f, C), { SchemaField: k } = _;
|
|
10438
|
+
return (0, G.jsx)(O, {
|
|
10439
10439
|
schema: i,
|
|
10440
10440
|
registry: f,
|
|
10441
|
-
typeSelector: (0, G.jsx)(
|
|
10442
|
-
fieldPathId:
|
|
10441
|
+
typeSelector: (0, G.jsx)(k, {
|
|
10442
|
+
fieldPathId: w,
|
|
10443
10443
|
name: `${a}__fallback_type`,
|
|
10444
|
-
schema:
|
|
10444
|
+
schema: E,
|
|
10445
10445
|
formData: y,
|
|
10446
|
-
onChange:
|
|
10446
|
+
onChange: D,
|
|
10447
10447
|
onBlur: u,
|
|
10448
10448
|
onFocus: d,
|
|
10449
10449
|
registry: f,
|
|
@@ -10451,12 +10451,12 @@ function tp(e) {
|
|
|
10451
10451
|
disabled: c,
|
|
10452
10452
|
readonly: l,
|
|
10453
10453
|
required: s
|
|
10454
|
-
}, n ?
|
|
10455
|
-
schemaField: (0, G.jsx)(
|
|
10454
|
+
}, n ? Se(n) : "__empty__"),
|
|
10455
|
+
schemaField: (0, G.jsx)(k, {
|
|
10456
10456
|
...e,
|
|
10457
10457
|
schema: {
|
|
10458
10458
|
type: y,
|
|
10459
|
-
title: g(
|
|
10459
|
+
title: g(j.Value),
|
|
10460
10460
|
...y === "object" && { additionalProperties: !0 }
|
|
10461
10461
|
}
|
|
10462
10462
|
})
|
|
@@ -10465,39 +10465,39 @@ function tp(e) {
|
|
|
10465
10465
|
//#endregion
|
|
10466
10466
|
//#region node_modules/lodash-es/_baseValues.js
|
|
10467
10467
|
function np(e, t) {
|
|
10468
|
-
return
|
|
10468
|
+
return At(t, function(t) {
|
|
10469
10469
|
return e[t];
|
|
10470
10470
|
});
|
|
10471
10471
|
}
|
|
10472
10472
|
//#endregion
|
|
10473
10473
|
//#region node_modules/lodash-es/values.js
|
|
10474
10474
|
function rp(e) {
|
|
10475
|
-
return e == null ? [] : np(e,
|
|
10475
|
+
return e == null ? [] : np(e, pt(e));
|
|
10476
10476
|
}
|
|
10477
10477
|
//#endregion
|
|
10478
10478
|
//#region node_modules/lodash-es/includes.js
|
|
10479
10479
|
var ip = Math.max;
|
|
10480
10480
|
function ap(e, t, n, r) {
|
|
10481
|
-
e =
|
|
10481
|
+
e = Ze(e) ? e : rp(e), n = n && !r ? Et(n) : 0;
|
|
10482
10482
|
var i = e.length;
|
|
10483
|
-
return n < 0 && (n = ip(i + n, 0)),
|
|
10483
|
+
return n < 0 && (n = ip(i + n, 0)), Le(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && Ft(e, t, n) > -1;
|
|
10484
10484
|
}
|
|
10485
10485
|
//#endregion
|
|
10486
10486
|
//#region node_modules/lodash-es/_baseIntersection.js
|
|
10487
10487
|
var op = Math.min;
|
|
10488
10488
|
function sp(e, t, n) {
|
|
10489
|
-
for (var r = n ?
|
|
10489
|
+
for (var r = n ? vt : $e, i = e[0].length, a = e.length, o = a, s = Array(a), c = Infinity, l = []; o--;) {
|
|
10490
10490
|
var u = e[o];
|
|
10491
|
-
o && t && (u =
|
|
10491
|
+
o && t && (u = At(u, $t(t))), c = op(u.length, c), s[o] = !n && (t || i >= 120 && u.length >= 120) ? new tt(o && u) : void 0;
|
|
10492
10492
|
}
|
|
10493
10493
|
u = e[0];
|
|
10494
10494
|
var d = -1, f = s[0];
|
|
10495
10495
|
outer: for (; ++d < i && l.length < c;) {
|
|
10496
10496
|
var p = u[d], m = t ? t(p) : p;
|
|
10497
|
-
if (p = n || p !== 0 ? p : 0, !(f ?
|
|
10497
|
+
if (p = n || p !== 0 ? p : 0, !(f ? cn(f, m) : r(l, m, n))) {
|
|
10498
10498
|
for (o = a; --o;) {
|
|
10499
10499
|
var h = s[o];
|
|
10500
|
-
if (!(h ?
|
|
10500
|
+
if (!(h ? cn(h, m) : r(e[o], m, n))) continue outer;
|
|
10501
10501
|
}
|
|
10502
10502
|
f && f.push(m), l.push(p);
|
|
10503
10503
|
}
|
|
@@ -10507,12 +10507,12 @@ function sp(e, t, n) {
|
|
|
10507
10507
|
//#endregion
|
|
10508
10508
|
//#region node_modules/lodash-es/_castArrayLikeObject.js
|
|
10509
10509
|
function cp(e) {
|
|
10510
|
-
return
|
|
10510
|
+
return it(e) ? e : [];
|
|
10511
10511
|
}
|
|
10512
10512
|
//#endregion
|
|
10513
10513
|
//#region node_modules/lodash-es/intersection.js
|
|
10514
|
-
var lp =
|
|
10515
|
-
var t =
|
|
10514
|
+
var lp = Gt(function(e) {
|
|
10515
|
+
var t = At(e, cp);
|
|
10516
10516
|
return t.length && t[0] === e[0] ? sp(t) : [];
|
|
10517
10517
|
});
|
|
10518
10518
|
//#endregion
|
|
@@ -10538,24 +10538,24 @@ function hp(e, t) {
|
|
|
10538
10538
|
function gp(e) {
|
|
10539
10539
|
return /^\d+?$/.test(e);
|
|
10540
10540
|
}
|
|
10541
|
-
var _p =
|
|
10541
|
+
var _p = tn();
|
|
10542
10542
|
function vp(e, t, n, r, i) {
|
|
10543
|
-
let a =
|
|
10544
|
-
...
|
|
10543
|
+
let a = H(n, [A], {}), o = H(n, e), s = {
|
|
10544
|
+
...H(o, [De], {}),
|
|
10545
10545
|
...t,
|
|
10546
10546
|
...a
|
|
10547
10547
|
}, c = { ...o };
|
|
10548
|
-
|
|
10549
|
-
let { readonly: l } =
|
|
10550
|
-
return (i === !0 || up(l) && r === !0) && (l = !0,
|
|
10548
|
+
Mt(s) || Xt(c, [De], s), Mt(a) || Xt(c, [A], a);
|
|
10549
|
+
let { readonly: l } = S(c);
|
|
10550
|
+
return (i === !0 || up(l) && r === !0) && (l = !0, ut(s, "readonly") ? Xt(c, [De, P], !0) : Xt(c, `ui:${P}`, !0)), {
|
|
10551
10551
|
fieldUiSchema: c,
|
|
10552
10552
|
uiReadonly: l
|
|
10553
10553
|
};
|
|
10554
10554
|
}
|
|
10555
10555
|
function yp(e, t, n = "$0m3tH1nG Un3xP3cT3d") {
|
|
10556
|
-
let r =
|
|
10556
|
+
let r = a([t]).sort(), i = a([n]).sort();
|
|
10557
10557
|
switch (e) {
|
|
10558
|
-
case fp.ALL: return
|
|
10558
|
+
case fp.ALL: return ot(r, i);
|
|
10559
10559
|
case fp.SOME: return lp(r, i).length > 0;
|
|
10560
10560
|
case fp.NONE: return lp(r, i).length === 0;
|
|
10561
10561
|
default: return !1;
|
|
@@ -10563,10 +10563,10 @@ function yp(e, t, n = "$0m3tH1nG Un3xP3cT3d") {
|
|
|
10563
10563
|
}
|
|
10564
10564
|
function bp(e, t, n) {
|
|
10565
10565
|
let r = {}, i = e[t];
|
|
10566
|
-
if (
|
|
10566
|
+
if (nn(i)) {
|
|
10567
10567
|
let { children: e, className: t, ...a } = i;
|
|
10568
10568
|
if (i = e, t) {
|
|
10569
|
-
let e = t.split(" ").map((e) =>
|
|
10569
|
+
let e = t.split(" ").map((e) => Ut(n, e, e)).join(" ");
|
|
10570
10570
|
r = {
|
|
10571
10571
|
...a,
|
|
10572
10572
|
className: e
|
|
@@ -10581,9 +10581,9 @@ function bp(e, t, n) {
|
|
|
10581
10581
|
}
|
|
10582
10582
|
function xp(e, t, n) {
|
|
10583
10583
|
let r;
|
|
10584
|
-
if (gp(n) && e && e?.type === "array" &&
|
|
10585
|
-
let i = Number(n), a = e[
|
|
10586
|
-
r = Array.isArray(a) ? i > a.length ?
|
|
10584
|
+
if (gp(n) && e && e?.type === "array" && ut(e, "items")) {
|
|
10585
|
+
let i = Number(n), a = e[de];
|
|
10586
|
+
r = Array.isArray(a) ? i > a.length ? qt(a) : a[i] : a, t = {
|
|
10587
10587
|
$id: t.$id,
|
|
10588
10588
|
path: [...t.path.slice(0, t.path.length - 1), i]
|
|
10589
10589
|
};
|
|
@@ -10596,26 +10596,26 @@ function xp(e, t, n) {
|
|
|
10596
10596
|
function Sp(e, t, n, r, i) {
|
|
10597
10597
|
let { schemaUtils: a, globalFormOptions: o } = e, s = n, c = i, l = t.split("."), u = l.pop(), d = a.retrieveSchema(s, r), f = r, p = d.readOnly;
|
|
10598
10598
|
l.forEach((e) => {
|
|
10599
|
-
if (c =
|
|
10600
|
-
else if (d && (
|
|
10601
|
-
let t =
|
|
10602
|
-
s =
|
|
10599
|
+
if (c = Je(e, o, c), ut(d, "properties")) s = H(d, [w, e], {});
|
|
10600
|
+
else if (d && (ut(d, "oneOf") || ut(d, "anyOf"))) {
|
|
10601
|
+
let t = ut(d, "oneOf") ? he : pe;
|
|
10602
|
+
s = H(a.findSelectedOptionInXxxOf(d, e, t, f), [w, e], {});
|
|
10603
10603
|
} else {
|
|
10604
10604
|
let t = xp(d, c, e);
|
|
10605
10605
|
s = t.rawSchema ?? {}, c = t.fieldPathId;
|
|
10606
10606
|
}
|
|
10607
|
-
f =
|
|
10607
|
+
f = H(f, e, {}), d = a.retrieveSchema(s, f), p = hp(d.readOnly, p);
|
|
10608
10608
|
});
|
|
10609
10609
|
let m, h = !1;
|
|
10610
|
-
if (
|
|
10611
|
-
if (d && (
|
|
10612
|
-
let e =
|
|
10610
|
+
if (Mt(d) && (d = void 0), d && u) {
|
|
10611
|
+
if (d && (ut(d, "oneOf") || ut(d, "anyOf"))) {
|
|
10612
|
+
let e = ut(d, "oneOf") ? he : pe;
|
|
10613
10613
|
d = a.findSelectedOptionInXxxOf(d, u, e, f);
|
|
10614
10614
|
}
|
|
10615
|
-
c =
|
|
10615
|
+
c = Je(u, o, c), h = d !== void 0 && Array.isArray(d.required) && ap(d.required, u);
|
|
10616
10616
|
let e = xp(d, c, u);
|
|
10617
|
-
if (e.rawSchema ? (d = e.rawSchema, c = e.fieldPathId) : (d =
|
|
10618
|
-
let e =
|
|
10617
|
+
if (e.rawSchema ? (d = e.rawSchema, c = e.fieldPathId) : (d = H(d, [w, u]), d &&= a.retrieveSchema(d)), p = hp(d?.readOnly, p), d && (ut(d, "oneOf") || ut(d, "anyOf"))) {
|
|
10618
|
+
let e = ut(d, "oneOf") ? he : pe, t = Ve(d);
|
|
10619
10619
|
m = {
|
|
10620
10620
|
options: d[e],
|
|
10621
10621
|
hasDiscriminator: !!t
|
|
@@ -10632,19 +10632,19 @@ function Sp(e, t, n, r, i) {
|
|
|
10632
10632
|
}
|
|
10633
10633
|
function Cp(e, t) {
|
|
10634
10634
|
let n = e;
|
|
10635
|
-
return
|
|
10635
|
+
return Le(n) && (n = Ut(t, n)), on(n) ? n : null;
|
|
10636
10636
|
}
|
|
10637
10637
|
function wp(e, t) {
|
|
10638
10638
|
let n, r = null, i = {}, a;
|
|
10639
|
-
if (
|
|
10639
|
+
if (Le(t) || up(t)) n = t ?? "";
|
|
10640
10640
|
else {
|
|
10641
10641
|
let { name: o = "", render: s, ...c } = t;
|
|
10642
|
-
n = o, i = c,
|
|
10643
|
-
if (
|
|
10642
|
+
n = o, i = c, Mt(i) || Me(i, (t, n) => {
|
|
10643
|
+
if (Le(t)) {
|
|
10644
10644
|
let r = pp.exec(t);
|
|
10645
10645
|
if (Array.isArray(r) && r.length > 1) {
|
|
10646
10646
|
let t = r[1];
|
|
10647
|
-
i[n] =
|
|
10647
|
+
i[n] = Ut(e, t, t);
|
|
10648
10648
|
}
|
|
10649
10649
|
}
|
|
10650
10650
|
}), r = Cp(s, e), !o && r && (a = (0, G.jsx)(r, {
|
|
@@ -10663,21 +10663,21 @@ function Tp(e) {
|
|
|
10663
10663
|
let { childrenLayoutGridSchemaId: t, ...n } = e, { registry: r, schema: i, formData: a } = n, { schemaUtils: o } = r, s = o.retrieveSchema(i, a);
|
|
10664
10664
|
return t.map((e) => gn(jp, {
|
|
10665
10665
|
...n,
|
|
10666
|
-
key: `layoutGrid-${
|
|
10666
|
+
key: `layoutGrid-${Se(e)}`,
|
|
10667
10667
|
schema: s,
|
|
10668
10668
|
layoutGridSchema: e
|
|
10669
10669
|
}));
|
|
10670
10670
|
}
|
|
10671
10671
|
function Ep(e) {
|
|
10672
10672
|
let { layoutGridSchema: t, ...n } = e, { formData: r, registry: i } = n, { children: a, gridProps: o } = bp(t, dp.CONDITION, i), { operator: s, field: c = "", value: l } = o;
|
|
10673
|
-
return yp(s,
|
|
10673
|
+
return yp(s, H(r, c, null), l) ? (0, G.jsx)(Tp, {
|
|
10674
10674
|
...n,
|
|
10675
10675
|
childrenLayoutGridSchemaId: a
|
|
10676
10676
|
}) : null;
|
|
10677
10677
|
}
|
|
10678
10678
|
function Dp(e) {
|
|
10679
10679
|
let { layoutGridSchema: t, ...n } = e, { registry: r, uiSchema: i } = n, { children: a, gridProps: o } = bp(t, dp.COLUMN, r);
|
|
10680
|
-
return (0, G.jsx)(
|
|
10680
|
+
return (0, G.jsx)(b("GridTemplate", r, S(i)), {
|
|
10681
10681
|
column: !0,
|
|
10682
10682
|
"data-testid": _p.col,
|
|
10683
10683
|
...o,
|
|
@@ -10688,7 +10688,7 @@ function Dp(e) {
|
|
|
10688
10688
|
});
|
|
10689
10689
|
}
|
|
10690
10690
|
function Op(e) {
|
|
10691
|
-
let { layoutGridSchema: t, ...n } = e, { registry: r, uiSchema: i } = n, { children: a, gridProps: o } = bp(t, dp.COLUMNS, r), s =
|
|
10691
|
+
let { layoutGridSchema: t, ...n } = e, { registry: r, uiSchema: i } = n, { children: a, gridProps: o } = bp(t, dp.COLUMNS, r), s = b("GridTemplate", r, S(i));
|
|
10692
10692
|
return a.map((e) => (0, G.jsx)(s, {
|
|
10693
10693
|
column: !0,
|
|
10694
10694
|
"data-testid": _p.col,
|
|
@@ -10697,11 +10697,11 @@ function Op(e) {
|
|
|
10697
10697
|
...n,
|
|
10698
10698
|
childrenLayoutGridSchemaId: [e]
|
|
10699
10699
|
})
|
|
10700
|
-
}, `column-${
|
|
10700
|
+
}, `column-${Se(e)}`));
|
|
10701
10701
|
}
|
|
10702
10702
|
function kp(e) {
|
|
10703
10703
|
let { layoutGridSchema: t, ...n } = e, { registry: r, uiSchema: i } = n, { children: a, gridProps: o } = bp(t, dp.ROW, r);
|
|
10704
|
-
return (0, G.jsx)(
|
|
10704
|
+
return (0, G.jsx)(b("GridTemplate", r, S(i)), {
|
|
10705
10705
|
...o,
|
|
10706
10706
|
"data-testid": _p.row,
|
|
10707
10707
|
children: (0, G.jsx)(Tp, {
|
|
@@ -10711,7 +10711,7 @@ function kp(e) {
|
|
|
10711
10711
|
});
|
|
10712
10712
|
}
|
|
10713
10713
|
function Ap(e) {
|
|
10714
|
-
let { gridSchema: t, schema: n, uiSchema: r, errorSchema: i, fieldPathId: a, onBlur: o, onFocus: s, formData: c, readonly: l, registry: u, layoutGridSchema: d, ...f } = e, { onChange: p } = f, { fields: m } = u, { SchemaField: h, LayoutMultiSchemaField: g } = m, _ = wp(u, t), { name: v, UIComponent: y, uiProps: b } = _, { schema: x, isRequired: S, isReadonly: C, optionsInfo: w, fieldPathId: T } = Sp(u, v, n, c, a), E =
|
|
10714
|
+
let { gridSchema: t, schema: n, uiSchema: r, errorSchema: i, fieldPathId: a, onBlur: o, onFocus: s, formData: c, readonly: l, registry: u, layoutGridSchema: d, ...f } = e, { onChange: p } = f, { fields: m } = u, { SchemaField: h, LayoutMultiSchemaField: g } = m, _ = wp(u, t), { name: v, UIComponent: y, uiProps: b } = _, { schema: x, isRequired: S, isReadonly: C, optionsInfo: w, fieldPathId: T } = Sp(u, v, n, c, a), E = Bt(T);
|
|
10715
10715
|
if (_.rendered) return _.rendered;
|
|
10716
10716
|
if (x) {
|
|
10717
10717
|
let e = w?.hasDiscriminator ? g : h, { fieldUiSchema: t, uiReadonly: n } = vp(v, b, r, C, l);
|
|
@@ -10723,9 +10723,9 @@ function Ap(e) {
|
|
|
10723
10723
|
readonly: n,
|
|
10724
10724
|
schema: x,
|
|
10725
10725
|
uiSchema: t,
|
|
10726
|
-
errorSchema:
|
|
10726
|
+
errorSchema: H(i, v),
|
|
10727
10727
|
fieldPathId: E,
|
|
10728
|
-
formData:
|
|
10728
|
+
formData: H(c, v),
|
|
10729
10729
|
onChange: p,
|
|
10730
10730
|
onBlur: o,
|
|
10731
10731
|
onFocus: s,
|
|
@@ -10751,8 +10751,8 @@ function Ap(e) {
|
|
|
10751
10751
|
}) : null;
|
|
10752
10752
|
}
|
|
10753
10753
|
function jp(e) {
|
|
10754
|
-
let { uiSchema: t } = e, { layoutGridSchema: n } = e, r =
|
|
10755
|
-
if (!n && "layoutGrid" in r &&
|
|
10754
|
+
let { uiSchema: t } = e, { layoutGridSchema: n } = e, r = S(t);
|
|
10755
|
+
if (!n && "layoutGrid" in r && Ce(r.layoutGrid) && (n = r[mp]), Ce(n)) {
|
|
10756
10756
|
if (dp.ROW in n) return (0, G.jsx)(kp, {
|
|
10757
10757
|
...e,
|
|
10758
10758
|
layoutGridSchema: n
|
|
@@ -10779,9 +10779,9 @@ jp.TEST_IDS = _p;
|
|
|
10779
10779
|
//#endregion
|
|
10780
10780
|
//#region node_modules/@rjsf/core/lib/components/fields/LayoutHeaderField.js
|
|
10781
10781
|
function Mp(e) {
|
|
10782
|
-
let { fieldPathId: t, title: n, schema: r, uiSchema: i, required: a, registry: o, name: s } = e, c =
|
|
10783
|
-
return d ? (0, G.jsx)(
|
|
10784
|
-
id:
|
|
10782
|
+
let { fieldPathId: t, title: n, schema: r, uiSchema: i, required: a, registry: o, name: s } = e, c = S(i, o.globalUiOptions), { title: l } = c, { title: u } = r, d = l || n || u || s;
|
|
10783
|
+
return d ? (0, G.jsx)(b("TitleFieldTemplate", o, c), {
|
|
10784
|
+
id: sn(t),
|
|
10785
10785
|
title: d,
|
|
10786
10786
|
required: a,
|
|
10787
10787
|
schema: r,
|
|
@@ -10793,90 +10793,90 @@ function Mp(e) {
|
|
|
10793
10793
|
//#region node_modules/@rjsf/core/lib/components/fields/LayoutMultiSchemaField.js
|
|
10794
10794
|
function Np(e, t, n) {
|
|
10795
10795
|
return e.map(({ schema: e }) => e).find((e) => {
|
|
10796
|
-
let r =
|
|
10797
|
-
return
|
|
10796
|
+
let r = H(e, [w, t]);
|
|
10797
|
+
return H(r, bt, H(r, Ct, "!@#!@$@#$!@$#")) === n;
|
|
10798
10798
|
});
|
|
10799
10799
|
}
|
|
10800
10800
|
function Pp(e, t, n, r, i) {
|
|
10801
10801
|
let a = t.map((e) => n.retrieveSchema(e, i)), o = e;
|
|
10802
|
-
|
|
10802
|
+
ut(e, "oneOf") ? o = {
|
|
10803
10803
|
...e,
|
|
10804
|
-
[
|
|
10805
|
-
} :
|
|
10804
|
+
[he]: a
|
|
10805
|
+
} : ut(e, "anyOf") && (o = {
|
|
10806
10806
|
...e,
|
|
10807
|
-
[
|
|
10807
|
+
[pe]: a
|
|
10808
10808
|
});
|
|
10809
|
-
let s =
|
|
10809
|
+
let s = Ne(o, r);
|
|
10810
10810
|
if (!s) throw Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);
|
|
10811
10811
|
return s;
|
|
10812
10812
|
}
|
|
10813
10813
|
function Fp(e) {
|
|
10814
|
-
let { name: t, baseType: n, disabled: r = !1, formData: i, fieldPathId: a, onBlur: o, onChange: s, options: c, onFocus: l, registry: u, uiSchema: d, schema: f, autofocus: p, readonly:
|
|
10814
|
+
let { name: t, baseType: n, disabled: r = !1, formData: i, fieldPathId: a, onBlur: o, onChange: s, options: c, onFocus: l, registry: u, uiSchema: d, schema: f, autofocus: p, readonly: h, required: g, errorSchema: _, hideError: v = !1 } = e, { widgets: y, schemaUtils: x, globalUiOptions: C } = u, [T, E] = wn(Pp(f, c, x, d, i)), D = H(a, "$id"), O = Ve(f), k = b("FieldErrorTemplate", u, c), A = b("FieldTemplate", u, c);
|
|
10815
10815
|
bn(() => {
|
|
10816
|
-
|
|
10816
|
+
E(Pp(f, c, x, d, i));
|
|
10817
10817
|
}, [
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
d ?
|
|
10822
|
-
i ?
|
|
10818
|
+
Se(f),
|
|
10819
|
+
Se(c),
|
|
10820
|
+
x,
|
|
10821
|
+
d ? Se(d) : "",
|
|
10822
|
+
i ? Se(i) : ""
|
|
10823
10823
|
]);
|
|
10824
|
-
let { widget:
|
|
10825
|
-
if (!
|
|
10826
|
-
let
|
|
10827
|
-
|
|
10828
|
-
...
|
|
10829
|
-
type:
|
|
10830
|
-
};
|
|
10831
|
-
let
|
|
10832
|
-
let t = Np(
|
|
10833
|
-
r && t && (r =
|
|
10824
|
+
let { widget: j = O ? "radio" : "select", title: M = "", placeholder: N = "", optionsSchemaSelector: P = O, hideError: F, ...I } = S(d);
|
|
10825
|
+
if (!P) throw Error("No selector field provided for the LayoutMultiSchemaField");
|
|
10826
|
+
let L = H(i, P), R = H(T[0]?.schema, [w, P], {}), ee = Np(T, P, L);
|
|
10827
|
+
R = R?.type ? R : {
|
|
10828
|
+
...R,
|
|
10829
|
+
type: ee?.type || n
|
|
10830
|
+
};
|
|
10831
|
+
let te = m(R, j, y), ne = F === void 0 ? v : !!F, re = H(_, [ce], []), ie = ge(_, [ce]), ae = x.getDisplayLabel(f, d, C), z = (e) => {
|
|
10832
|
+
let t = Np(T, P, e), n = Np(T, P, L), r = x.sanitizeDataForNewSchema(t, n, i);
|
|
10833
|
+
r && t && (r = x.getDefaultFormState(t, r, "excludeObjectChildren")), r && Xt(r, P, e), s(r, a.path, void 0, D);
|
|
10834
10834
|
}, oe = {
|
|
10835
|
-
enumOptions:
|
|
10836
|
-
...
|
|
10837
|
-
}, se = !
|
|
10835
|
+
enumOptions: T,
|
|
10836
|
+
...I
|
|
10837
|
+
}, se = !ne && re.length > 0 ? (0, G.jsx)(k, {
|
|
10838
10838
|
fieldPathId: a,
|
|
10839
10839
|
schema: f,
|
|
10840
|
-
errors:
|
|
10840
|
+
errors: re,
|
|
10841
10841
|
registry: u
|
|
10842
10842
|
}) : void 0;
|
|
10843
|
-
return (0, G.jsx)(
|
|
10843
|
+
return (0, G.jsx)(A, {
|
|
10844
10844
|
fieldPathId: a,
|
|
10845
|
-
id:
|
|
10845
|
+
id: D,
|
|
10846
10846
|
schema: f,
|
|
10847
|
-
label: (
|
|
10848
|
-
disabled: r || Array.isArray(
|
|
10847
|
+
label: (M || f.title) ?? "",
|
|
10848
|
+
disabled: r || Array.isArray(T) && Mt(T),
|
|
10849
10849
|
uiSchema: d,
|
|
10850
|
-
required:
|
|
10851
|
-
readonly: !!
|
|
10850
|
+
required: g,
|
|
10851
|
+
readonly: !!h,
|
|
10852
10852
|
registry: u,
|
|
10853
|
-
displayLabel:
|
|
10853
|
+
displayLabel: ae,
|
|
10854
10854
|
errors: se,
|
|
10855
10855
|
onChange: s,
|
|
10856
|
-
onKeyRename:
|
|
10857
|
-
onKeyRenameBlur:
|
|
10858
|
-
onRemoveProperty:
|
|
10859
|
-
children: (0, G.jsx)(
|
|
10860
|
-
id:
|
|
10856
|
+
onKeyRename: Ht,
|
|
10857
|
+
onKeyRenameBlur: Ht,
|
|
10858
|
+
onRemoveProperty: Ht,
|
|
10859
|
+
children: (0, G.jsx)(te, {
|
|
10860
|
+
id: D,
|
|
10861
10861
|
name: t,
|
|
10862
10862
|
schema: f,
|
|
10863
|
-
label: (
|
|
10864
|
-
disabled: r || Array.isArray(
|
|
10863
|
+
label: (M || f.title) ?? "",
|
|
10864
|
+
disabled: r || Array.isArray(T) && Mt(T),
|
|
10865
10865
|
uiSchema: d,
|
|
10866
10866
|
autofocus: p,
|
|
10867
|
-
readonly:
|
|
10868
|
-
required:
|
|
10867
|
+
readonly: h,
|
|
10868
|
+
required: g,
|
|
10869
10869
|
registry: u,
|
|
10870
10870
|
multiple: !1,
|
|
10871
|
-
rawErrors:
|
|
10872
|
-
hideError:
|
|
10873
|
-
hideLabel: !
|
|
10874
|
-
errorSchema:
|
|
10875
|
-
placeholder:
|
|
10876
|
-
onChange:
|
|
10871
|
+
rawErrors: re,
|
|
10872
|
+
hideError: ne,
|
|
10873
|
+
hideLabel: !ae,
|
|
10874
|
+
errorSchema: ie,
|
|
10875
|
+
placeholder: N,
|
|
10876
|
+
onChange: z,
|
|
10877
10877
|
onBlur: o,
|
|
10878
10878
|
onFocus: l,
|
|
10879
|
-
value:
|
|
10879
|
+
value: L,
|
|
10880
10880
|
options: oe,
|
|
10881
10881
|
htmlName: a.name
|
|
10882
10882
|
})
|
|
@@ -10886,7 +10886,7 @@ function Fp(e) {
|
|
|
10886
10886
|
//#region node_modules/@rjsf/core/lib/components/fields/MultiSchemaField.js
|
|
10887
10887
|
var Ip = class extends pn {
|
|
10888
10888
|
constructor(e) {
|
|
10889
|
-
super(e),
|
|
10889
|
+
super(e), p(this, "onOptionChange", (e) => {
|
|
10890
10890
|
let { selectedOption: t, retrievedOptions: n } = this.state, { formData: r, onChange: i, registry: a, fieldPathId: o } = this.props, { schemaUtils: s } = a, c = e === void 0 ? -1 : parseInt(e, 10);
|
|
10891
10891
|
if (c === t) return;
|
|
10892
10892
|
let l = c >= 0 ? n[c] : void 0, u = t >= 0 ? n[t] : void 0, d = s.sanitizeDataForNewSchema(l, u, r);
|
|
@@ -10902,14 +10902,14 @@ var Ip = class extends pn {
|
|
|
10902
10902
|
}
|
|
10903
10903
|
componentDidUpdate(e, t) {
|
|
10904
10904
|
let { formData: n, options: r, fieldPathId: i } = this.props, { selectedOption: a } = this.state, o = this.state;
|
|
10905
|
-
if (!
|
|
10905
|
+
if (!gt(e.options, r)) {
|
|
10906
10906
|
let { registry: { schemaUtils: e } } = this.props;
|
|
10907
10907
|
o = {
|
|
10908
10908
|
selectedOption: a,
|
|
10909
10909
|
retrievedOptions: r.map((t) => e.retrieveSchema(t, n))
|
|
10910
10910
|
};
|
|
10911
10911
|
}
|
|
10912
|
-
if (!
|
|
10912
|
+
if (!gt(n, e.formData) && i.$id === e.fieldPathId.$id) {
|
|
10913
10913
|
let { retrievedOptions: e } = o, r = this.getMatchingOption(a, n, e);
|
|
10914
10914
|
t && r !== a && (o = {
|
|
10915
10915
|
selectedOption: r,
|
|
@@ -10919,7 +10919,7 @@ var Ip = class extends pn {
|
|
|
10919
10919
|
o !== this.state && this.setState(o);
|
|
10920
10920
|
}
|
|
10921
10921
|
getMatchingOption(e, t, n) {
|
|
10922
|
-
let { schema: r, registry: { schemaUtils: i } } = this.props, a =
|
|
10922
|
+
let { schema: r, registry: { schemaUtils: i } } = this.props, a = Ve(r);
|
|
10923
10923
|
return i.getClosestMatchingOption(t, n, e, a);
|
|
10924
10924
|
}
|
|
10925
10925
|
getFieldId() {
|
|
@@ -10927,19 +10927,19 @@ var Ip = class extends pn {
|
|
|
10927
10927
|
return `${e.$id}${t.oneOf ? "__oneof_select" : "__anyof_select"}`;
|
|
10928
10928
|
}
|
|
10929
10929
|
render() {
|
|
10930
|
-
let { name: e, disabled: t = !1, errorSchema: n = {}, formData: r, onBlur: i, onFocus: a, readonly: o, required: s = !1, registry: c, schema: l, uiSchema: u } = this.props, { widgets: d, fields: f, translateString: p, globalUiOptions:
|
|
10931
|
-
if (
|
|
10930
|
+
let { name: e, disabled: t = !1, errorSchema: n = {}, formData: r, onBlur: i, onFocus: a, readonly: o, required: s = !1, registry: c, schema: l, uiSchema: u } = this.props, { widgets: d, fields: f, translateString: p, globalUiOptions: h, schemaUtils: g } = c, { SchemaField: _ } = f, v = b("MultiSchemaFieldTemplate", c, h), y = Kt(c, l, s, u), x = Yt(r), { selectedOption: C, retrievedOptions: w } = this.state, { widget: T = "select", placeholder: E, autofocus: D, autocomplete: O, title: k = l.title, ...A } = S(u, h), M = m({ type: "number" }, T, d), N = H(n, ce, []), P = ge(n, [ce]), F = g.getDisplayLabel(l, u, h), I = C >= 0 && w[C] || null, L;
|
|
10931
|
+
if (I) {
|
|
10932
10932
|
let { required: e } = l;
|
|
10933
|
-
|
|
10934
|
-
}
|
|
10935
|
-
let
|
|
10936
|
-
"oneOf" in l && u && "oneOf" in u ? Array.isArray(u.oneOf) ?
|
|
10937
|
-
let
|
|
10938
|
-
|
|
10939
|
-
let
|
|
10940
|
-
let { title: n = e.title } = R
|
|
10933
|
+
L = e ? zt({ required: e }, I) : I;
|
|
10934
|
+
}
|
|
10935
|
+
let R = [];
|
|
10936
|
+
"oneOf" in l && u && "oneOf" in u ? Array.isArray(u.oneOf) ? R = u[he] : console.warn(`uiSchema.oneOf is not an array for "${k || e}"`) : "anyOf" in l && u && "anyOf" in u && (Array.isArray(u.anyOf) ? R = u[pe] : console.warn(`uiSchema.anyOf is not an array for "${k || e}"`));
|
|
10937
|
+
let ee = u;
|
|
10938
|
+
C >= 0 && R.length > C && (ee = R[C]);
|
|
10939
|
+
let te = k ? j.TitleOptionPrefix : j.OptionPrefix, ne = k ? [k] : [], re = w.map((e, t) => {
|
|
10940
|
+
let { title: n = e.title } = S(R[t]);
|
|
10941
10941
|
return {
|
|
10942
|
-
label: n || p(
|
|
10942
|
+
label: n || p(te, ne.concat(String(t + 1))),
|
|
10943
10943
|
value: t
|
|
10944
10944
|
};
|
|
10945
10945
|
});
|
|
@@ -10947,7 +10947,7 @@ var Ip = class extends pn {
|
|
|
10947
10947
|
schema: l,
|
|
10948
10948
|
registry: c,
|
|
10949
10949
|
uiSchema: u,
|
|
10950
|
-
selector: !y ||
|
|
10950
|
+
selector: !y || x ? (0, G.jsx)(M, {
|
|
10951
10951
|
id: this.getFieldId(),
|
|
10952
10952
|
name: `${e}${l.oneOf ? "__oneof_select" : "__anyof_select"}`,
|
|
10953
10953
|
schema: {
|
|
@@ -10957,34 +10957,34 @@ var Ip = class extends pn {
|
|
|
10957
10957
|
onChange: this.onOptionChange,
|
|
10958
10958
|
onBlur: i,
|
|
10959
10959
|
onFocus: a,
|
|
10960
|
-
disabled: t ||
|
|
10960
|
+
disabled: t || Mt(re),
|
|
10961
10961
|
multiple: !1,
|
|
10962
|
-
rawErrors:
|
|
10963
|
-
errorSchema:
|
|
10964
|
-
value:
|
|
10962
|
+
rawErrors: N,
|
|
10963
|
+
errorSchema: P,
|
|
10964
|
+
value: C >= 0 ? C : void 0,
|
|
10965
10965
|
options: {
|
|
10966
10966
|
enumOptions: re,
|
|
10967
|
-
...
|
|
10967
|
+
...A
|
|
10968
10968
|
},
|
|
10969
10969
|
registry: c,
|
|
10970
|
-
placeholder:
|
|
10971
|
-
autocomplete:
|
|
10972
|
-
autofocus:
|
|
10973
|
-
label:
|
|
10974
|
-
hideLabel: !
|
|
10970
|
+
placeholder: E,
|
|
10971
|
+
autocomplete: O,
|
|
10972
|
+
autofocus: D,
|
|
10973
|
+
label: k ?? e,
|
|
10974
|
+
hideLabel: !F,
|
|
10975
10975
|
readonly: o
|
|
10976
10976
|
}) : void 0,
|
|
10977
|
-
optionSchemaField:
|
|
10977
|
+
optionSchemaField: L && L.type !== "null" && (0, G.jsx)(_, {
|
|
10978
10978
|
...this.props,
|
|
10979
|
-
schema:
|
|
10980
|
-
uiSchema:
|
|
10979
|
+
schema: L,
|
|
10980
|
+
uiSchema: ee
|
|
10981
10981
|
}) || null
|
|
10982
10982
|
});
|
|
10983
10983
|
}
|
|
10984
10984
|
}, Lp = /\.([0-9]*0)*$/, Rp = /[0.]0*$/;
|
|
10985
10985
|
function zp(e) {
|
|
10986
10986
|
let { registry: t, onChange: n, formData: r, value: i } = e, [a, o] = wn(i), { StringField: s } = t.fields, c = r, l = W((e, t, r, i) => {
|
|
10987
|
-
o(e), `${e}`.charAt(0) === "." && (e = `0${e}`), n(typeof e == "string" && e.match(Lp) ?
|
|
10987
|
+
o(e), `${e}`.charAt(0) === "." && (e = `0${e}`), n(typeof e == "string" && e.match(Lp) ? Fe(e.replace(Rp, "")) : Fe(e), t, r, i);
|
|
10988
10988
|
}, [n]);
|
|
10989
10989
|
if (typeof a == "string" && typeof c == "number") {
|
|
10990
10990
|
let e = RegExp(`^(${String(c).replace(".", "\\.")})?\\.?0*$`);
|
|
@@ -11889,11 +11889,11 @@ function zh(e, t) {
|
|
|
11889
11889
|
case "null": return null;
|
|
11890
11890
|
case "number": return 0;
|
|
11891
11891
|
case "object": return {};
|
|
11892
|
-
default: return e(
|
|
11892
|
+
default: return e(j.NewStringDefault);
|
|
11893
11893
|
}
|
|
11894
11894
|
}
|
|
11895
11895
|
function Bh(e) {
|
|
11896
|
-
let { fieldPathId: t, schema: n, registry: r, uiSchema: i, errorSchema: a, formData: o, onChange: s, onBlur: c, onFocus: l, disabled: u, readonly: d, required: f, hideError: p, propertyName: m, handleKeyRename: h, handleRemoveProperty: g, addedByAdditionalProperties: _ } = e, [v, y] = wn(!1), { globalFormOptions: b, fields: x } = r, { SchemaField: S } = x, C =
|
|
11896
|
+
let { fieldPathId: t, schema: n, registry: r, uiSchema: i, errorSchema: a, formData: o, onChange: s, onBlur: c, onFocus: l, disabled: u, readonly: d, required: f, hideError: p, propertyName: m, handleKeyRename: h, handleRemoveProperty: g, addedByAdditionalProperties: _ } = e, [v, y] = wn(!1), { globalFormOptions: b, fields: x } = r, { SchemaField: S } = x, C = Bt(Je(m, b, t.path)), w = W((e, t, n, r) => {
|
|
11897
11897
|
e === void 0 && _ && (e = ""), s(e, t, n, r);
|
|
11898
11898
|
}, [s, _]), T = W((e) => {
|
|
11899
11899
|
m !== e && y(!0), h(m, e);
|
|
@@ -11925,85 +11925,85 @@ function Bh(e) {
|
|
|
11925
11925
|
});
|
|
11926
11926
|
}
|
|
11927
11927
|
function Vh(e) {
|
|
11928
|
-
let { schema: t, uiSchema: n = {}, formData: r, errorSchema: i, fieldPathId: a, name: o, required: s = !1, disabled: c, readonly: l, hideError: u, onBlur: d, onFocus: f, onChange: p, registry: m, title: h } = e, { fields: g, schemaUtils: _, translateString:
|
|
11929
|
-
let { duplicateKeySuffixSeparator: r = "-" } =
|
|
11930
|
-
for (;
|
|
11928
|
+
let { schema: t, uiSchema: n = {}, formData: r, errorSchema: i, fieldPathId: a, name: o, required: s = !1, disabled: c, readonly: l, hideError: u, onBlur: d, onFocus: f, onChange: p, registry: m, title: h } = e, { fields: g, schemaUtils: _, translateString: y, globalUiOptions: x } = m, { OptionalDataControlsField: C } = g, T = _.retrieveSchema(t, r, !0), E = S(n, x), { properties: D = {} } = T, O = e.childFieldPathId ?? a, k = E.title ?? T.title ?? h ?? o, A = E.description ?? T.description, M = Kt(m, T, s, n), N = Yt(r), P = [], F = W((e, t) => {
|
|
11929
|
+
let { duplicateKeySuffixSeparator: r = "-" } = S(n, x), i = 0, a = e;
|
|
11930
|
+
for (; ut(t, a);) a = `${e}${r}${++i}`;
|
|
11931
11931
|
return a;
|
|
11932
|
-
}, [n,
|
|
11933
|
-
if (!(
|
|
11934
|
-
let { translateString: e } = m, t = { ...r }, n =
|
|
11935
|
-
if (
|
|
11932
|
+
}, [n, x]), I = W(() => {
|
|
11933
|
+
if (!(T.additionalProperties || T.patternProperties)) return;
|
|
11934
|
+
let { translateString: e } = m, t = { ...r }, n = F("newKey", t);
|
|
11935
|
+
if (T.patternProperties) Xt(t, n, null);
|
|
11936
11936
|
else {
|
|
11937
11937
|
let i, a, o;
|
|
11938
|
-
if (
|
|
11939
|
-
i =
|
|
11940
|
-
let e =
|
|
11938
|
+
if (Ce(T.additionalProperties)) {
|
|
11939
|
+
i = T.additionalProperties.type, a = T.additionalProperties.const, o = T.additionalProperties.default;
|
|
11940
|
+
let e = T.additionalProperties;
|
|
11941
11941
|
if ("$ref" in e) {
|
|
11942
11942
|
let { schemaUtils: t } = m;
|
|
11943
|
-
e = t.retrieveSchema({ [
|
|
11943
|
+
e = t.retrieveSchema({ [z]: e[z] }, r), i = e.type, a = e.const, o = e.default;
|
|
11944
11944
|
}
|
|
11945
11945
|
!i && ("anyOf" in e || "oneOf" in e) && (i = "object");
|
|
11946
11946
|
}
|
|
11947
|
-
|
|
11947
|
+
Xt(t, n, a ?? o ?? zh(e, i));
|
|
11948
11948
|
}
|
|
11949
|
-
p(t,
|
|
11949
|
+
p(t, O.path);
|
|
11950
11950
|
}, [
|
|
11951
11951
|
r,
|
|
11952
11952
|
p,
|
|
11953
11953
|
m,
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
]),
|
|
11954
|
+
O,
|
|
11955
|
+
F,
|
|
11956
|
+
T
|
|
11957
|
+
]), L = W((e, t) => {
|
|
11958
11958
|
if (e !== t) {
|
|
11959
|
-
let n =
|
|
11960
|
-
p(Object.assign({}, ...o),
|
|
11959
|
+
let n = F(t, r), i = { ...r }, a = { [e]: n }, o = Object.keys(i).map((e) => ({ [a[e] || e]: i[e] }));
|
|
11960
|
+
p(Object.assign({}, ...o), O.path);
|
|
11961
11961
|
}
|
|
11962
11962
|
}, [
|
|
11963
11963
|
r,
|
|
11964
11964
|
p,
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
]),
|
|
11968
|
-
p(Ih, [...
|
|
11969
|
-
}, [p,
|
|
11970
|
-
if (!
|
|
11971
|
-
|
|
11965
|
+
O,
|
|
11966
|
+
F
|
|
11967
|
+
]), R = W((e) => {
|
|
11968
|
+
p(Ih, [...O.path, e]);
|
|
11969
|
+
}, [p, O]);
|
|
11970
|
+
if (!M || N) try {
|
|
11971
|
+
P = Pt(Object.keys(D), E.order);
|
|
11972
11972
|
} catch (e) {
|
|
11973
11973
|
return (0, G.jsxs)("div", { children: [(0, G.jsx)("p", {
|
|
11974
11974
|
className: "rjsf-config-error",
|
|
11975
11975
|
style: { color: "red" },
|
|
11976
11976
|
children: (0, G.jsx)(Fh, {
|
|
11977
11977
|
options: { disableParsingRawHTML: !0 },
|
|
11978
|
-
children:
|
|
11978
|
+
children: y(j.InvalidObjectField, [o || "root", e.message])
|
|
11979
11979
|
})
|
|
11980
|
-
}), (0, G.jsx)("pre", { children: JSON.stringify(
|
|
11980
|
+
}), (0, G.jsx)("pre", { children: JSON.stringify(T) })] });
|
|
11981
11981
|
}
|
|
11982
|
-
let
|
|
11982
|
+
let ee = b("ObjectFieldTemplate", m, E), te = M ? (0, G.jsx)(C, {
|
|
11983
11983
|
...e,
|
|
11984
|
-
fieldPathId:
|
|
11985
|
-
schema:
|
|
11984
|
+
fieldPathId: O,
|
|
11985
|
+
schema: T
|
|
11986
11986
|
}) : void 0;
|
|
11987
|
-
return (0, G.jsx)(
|
|
11988
|
-
title:
|
|
11989
|
-
description:
|
|
11990
|
-
properties:
|
|
11991
|
-
let t =
|
|
11992
|
-
|
|
11987
|
+
return (0, G.jsx)(ee, {
|
|
11988
|
+
title: E.label === !1 ? "" : k,
|
|
11989
|
+
description: E.label === !1 ? void 0 : A,
|
|
11990
|
+
properties: P.map((e) => {
|
|
11991
|
+
let t = ut(T, [
|
|
11992
|
+
w,
|
|
11993
11993
|
e,
|
|
11994
|
-
|
|
11995
|
-
]), a = t ? n.additionalProperties : n[e], o =
|
|
11994
|
+
v
|
|
11995
|
+
]), a = t ? n.additionalProperties : n[e], o = S(a).widget === "hidden";
|
|
11996
11996
|
return {
|
|
11997
11997
|
content: (0, G.jsx)(Bh, {
|
|
11998
11998
|
propertyName: e,
|
|
11999
|
-
required: Rh(
|
|
12000
|
-
schema:
|
|
11999
|
+
required: Rh(T, e),
|
|
12000
|
+
schema: H(T, [w, e], {}),
|
|
12001
12001
|
uiSchema: a,
|
|
12002
|
-
errorSchema:
|
|
12003
|
-
fieldPathId:
|
|
12004
|
-
formData:
|
|
12005
|
-
handleKeyRename:
|
|
12006
|
-
handleRemoveProperty:
|
|
12002
|
+
errorSchema: H(i, [e]),
|
|
12003
|
+
fieldPathId: O,
|
|
12004
|
+
formData: H(r, [e]),
|
|
12005
|
+
handleKeyRename: L,
|
|
12006
|
+
handleRemoveProperty: R,
|
|
12007
12007
|
addedByAdditionalProperties: t,
|
|
12008
12008
|
onChange: p,
|
|
12009
12009
|
onBlur: d,
|
|
@@ -12026,21 +12026,21 @@ function Vh(e) {
|
|
|
12026
12026
|
fieldPathId: a,
|
|
12027
12027
|
uiSchema: n,
|
|
12028
12028
|
errorSchema: i,
|
|
12029
|
-
schema:
|
|
12029
|
+
schema: T,
|
|
12030
12030
|
formData: r,
|
|
12031
12031
|
registry: m,
|
|
12032
|
-
optionalDataControl:
|
|
12033
|
-
className:
|
|
12034
|
-
onAddProperty:
|
|
12032
|
+
optionalDataControl: te,
|
|
12033
|
+
className: M ? "rjsf-optional-object-field" : void 0,
|
|
12034
|
+
onAddProperty: I
|
|
12035
12035
|
});
|
|
12036
12036
|
}
|
|
12037
12037
|
//#endregion
|
|
12038
12038
|
//#region node_modules/@rjsf/core/lib/components/fields/OptionalDataControlsField.js
|
|
12039
12039
|
function Hh(e) {
|
|
12040
|
-
let { schema: t, uiSchema: n = {}, formData: r, disabled: i = !1, readonly: a = !1, onChange: o, errorSchema: s, fieldPathId: c, registry: l } = e, { globalUiOptions: u = {}, schemaUtils: d, translateString: f } = l, p =
|
|
12041
|
-
return i || a ? (h =
|
|
12040
|
+
let { schema: t, uiSchema: n = {}, formData: r, disabled: i = !1, readonly: a = !1, onChange: o, errorSchema: s, fieldPathId: c, registry: l } = e, { globalUiOptions: u = {}, schemaUtils: d, translateString: f } = l, p = b("OptionalDataControlsTemplate", l, S(n, u)), m = Yt(r), h, g, _, v;
|
|
12041
|
+
return i || a ? (h = Zt(c, "Msg"), g = m ? void 0 : f(j.OptionalObjectEmptyMsg)) : (g = f(m ? j.OptionalObjectRemove : j.OptionalObjectAdd), m ? (h = Zt(c, "Remove"), v = () => o(void 0, c.path, s)) : (h = Zt(c, "Add"), _ = () => {
|
|
12042
12042
|
let e = d.getDefaultFormState(t, r, "excludeObjectChildren");
|
|
12043
|
-
e === void 0 && (e =
|
|
12043
|
+
e === void 0 && (e = F(t) === "array" ? [] : {}), o(e, c.path, s);
|
|
12044
12044
|
})), g && (0, G.jsx)(p, {
|
|
12045
12045
|
id: h,
|
|
12046
12046
|
registry: l,
|
|
@@ -12066,75 +12066,75 @@ function Wh(e, t, n) {
|
|
|
12066
12066
|
let r = t.field, { fields: i } = n;
|
|
12067
12067
|
if (typeof r == "function") return r;
|
|
12068
12068
|
if (typeof r == "string" && r in i) return i[r];
|
|
12069
|
-
let a =
|
|
12069
|
+
let a = F(e), o = Array.isArray(a) ? a[0] : a || "", s = e.$id, c = Uh[o];
|
|
12070
12070
|
return s && s in i && (c = s), !c && (e.anyOf || e.oneOf) ? () => null : c in i ? i[c] : i.FallbackField;
|
|
12071
12071
|
}
|
|
12072
12072
|
function Gh(e) {
|
|
12073
|
-
let { schema: t, fieldPathId: n, uiSchema: r, formData: i, errorSchema: a, name: o, onChange: s, onKeyRename: c, onKeyRenameBlur: l, onRemoveProperty: u, required: d = !1, registry: f, wasPropertyKeyModified: p = !1 } = e, { schemaUtils: m, globalFormOptions: h, globalUiOptions: g, fields:
|
|
12074
|
-
if (Object.keys(
|
|
12075
|
-
let
|
|
12076
|
-
if (("anyOf" in
|
|
12077
|
-
|
|
12078
|
-
let e =
|
|
12079
|
-
|
|
12073
|
+
let { schema: t, fieldPathId: n, uiSchema: r, formData: i, errorSchema: a, name: o, onChange: s, onKeyRename: c, onKeyRenameBlur: l, onRemoveProperty: u, required: d = !1, registry: f, wasPropertyKeyModified: p = !1 } = e, { schemaUtils: m, globalFormOptions: h, globalUiOptions: g, fields: _ } = f, { AnyOfField: v, OneOfField: y } = _, x = Qe(t, r, f), C = S(x, g), w = b("FieldTemplate", f, C), T = b("DescriptionFieldTemplate", f, C), E = b("FieldHelpTemplate", f, C), D = b("FieldErrorTemplate", f, C), O = m.retrieveSchema(t, i), k = n.$id, A = W((e, t, n, r) => s(e, t, n, r || k), [k, s]), j = Wh(O, C, f), M = !!(C.disabled ?? e.disabled), N = !!(C.readonly ?? (e.readonly || e.schema.readOnly || O.readOnly)), P = C.hideError, I = P === void 0 ? e.hideError : !!P, L = !!(C.autofocus ?? e.autofocus);
|
|
12074
|
+
if (Object.keys(O).length === 0) return null;
|
|
12075
|
+
let R = m.getDisplayLabel(O, x, g), ee = C.field && C.fieldReplacesAnyOrOneOf === !0, te, ne, re = { fieldPathId: n };
|
|
12076
|
+
if (("anyOf" in O || "oneOf" in O) && !ee && !m.isSelect(O)) {
|
|
12077
|
+
O.anyOf ? (te = v, ne = O[pe].map((e) => m.retrieveSchema(Ce(e) ? e : {}, i))) : O.oneOf && (te = y, ne = O[he].map((e) => m.retrieveSchema(Ce(e) ? e : {}, i)));
|
|
12078
|
+
let e = Kt(f, O, d, x), t = Yt(i);
|
|
12079
|
+
R &&= !e || t, re = {
|
|
12080
12080
|
childFieldPathId: n,
|
|
12081
|
-
fieldPathId:
|
|
12081
|
+
fieldPathId: Je("XxxOf", h, n)
|
|
12082
12082
|
};
|
|
12083
12083
|
}
|
|
12084
|
-
let { __errors:
|
|
12084
|
+
let { __errors: ie, ...ae } = a || {}, z = ge(x, [
|
|
12085
12085
|
"ui:classNames",
|
|
12086
12086
|
"classNames",
|
|
12087
12087
|
"ui:style"
|
|
12088
12088
|
]);
|
|
12089
|
-
"ui:options" in
|
|
12090
|
-
let
|
|
12089
|
+
"ui:options" in z && (z[De] = ge(z[De], ["classNames", "style"]));
|
|
12090
|
+
let oe = (0, G.jsx)(j, {
|
|
12091
12091
|
...e,
|
|
12092
12092
|
onChange: A,
|
|
12093
|
-
...
|
|
12094
|
-
schema:
|
|
12095
|
-
uiSchema:
|
|
12093
|
+
...re,
|
|
12094
|
+
schema: O,
|
|
12095
|
+
uiSchema: z,
|
|
12096
12096
|
disabled: M,
|
|
12097
12097
|
readonly: N,
|
|
12098
|
-
hideError:
|
|
12099
|
-
autofocus:
|
|
12100
|
-
errorSchema:
|
|
12101
|
-
rawErrors:
|
|
12102
|
-
}),
|
|
12103
|
-
|
|
12104
|
-
let
|
|
12105
|
-
!
|
|
12106
|
-
let
|
|
12107
|
-
help:
|
|
12098
|
+
hideError: I,
|
|
12099
|
+
autofocus: L,
|
|
12100
|
+
errorSchema: ae,
|
|
12101
|
+
rawErrors: ie
|
|
12102
|
+
}), se = n.$id, ce;
|
|
12103
|
+
ce = p || "__additional_property" in O ? o : C.title || e.schema.title || O.title || e.title || o;
|
|
12104
|
+
let le = C.description || e.schema.description || O.description || "", ue = C.help, de = C.widget === "hidden", fe = ["rjsf-field", `rjsf-field-${F(O)}`];
|
|
12105
|
+
!I && ie && ie.length > 0 && fe.push("rjsf-field-error"), C.classNames && fe.push(C.classNames);
|
|
12106
|
+
let me = (0, G.jsx)(E, {
|
|
12107
|
+
help: ue,
|
|
12108
12108
|
fieldPathId: n,
|
|
12109
|
-
schema:
|
|
12109
|
+
schema: O,
|
|
12110
12110
|
uiSchema: x,
|
|
12111
|
-
hasErrors: !
|
|
12111
|
+
hasErrors: !I && ie && ie.length > 0,
|
|
12112
12112
|
registry: f
|
|
12113
|
-
}), _e =
|
|
12114
|
-
errors:
|
|
12113
|
+
}), _e = I || te && !m.isSelect(O) ? void 0 : (0, G.jsx)(D, {
|
|
12114
|
+
errors: ie,
|
|
12115
12115
|
errorSchema: a,
|
|
12116
12116
|
fieldPathId: n,
|
|
12117
|
-
schema:
|
|
12117
|
+
schema: O,
|
|
12118
12118
|
uiSchema: x,
|
|
12119
12119
|
registry: f
|
|
12120
12120
|
});
|
|
12121
|
-
return (0, G.jsx)(
|
|
12122
|
-
description: (0, G.jsx)(
|
|
12123
|
-
id:
|
|
12124
|
-
description:
|
|
12125
|
-
schema:
|
|
12121
|
+
return (0, G.jsx)(w, {
|
|
12122
|
+
description: (0, G.jsx)(T, {
|
|
12123
|
+
id: It(se),
|
|
12124
|
+
description: le,
|
|
12125
|
+
schema: O,
|
|
12126
12126
|
uiSchema: x,
|
|
12127
12127
|
registry: f
|
|
12128
12128
|
}),
|
|
12129
|
-
rawDescription:
|
|
12130
|
-
help:
|
|
12131
|
-
rawHelp: typeof
|
|
12129
|
+
rawDescription: le,
|
|
12130
|
+
help: me,
|
|
12131
|
+
rawHelp: typeof ue == "string" ? ue : void 0,
|
|
12132
12132
|
errors: _e,
|
|
12133
|
-
rawErrors:
|
|
12133
|
+
rawErrors: I ? void 0 : ie,
|
|
12134
12134
|
fieldPathId: n,
|
|
12135
|
-
id:
|
|
12136
|
-
label:
|
|
12137
|
-
hidden:
|
|
12135
|
+
id: se,
|
|
12136
|
+
label: ce,
|
|
12137
|
+
hidden: de,
|
|
12138
12138
|
onChange: s,
|
|
12139
12139
|
onKeyRename: c,
|
|
12140
12140
|
onKeyRenameBlur: l,
|
|
@@ -12142,29 +12142,29 @@ function Gh(e) {
|
|
|
12142
12142
|
required: d,
|
|
12143
12143
|
disabled: M,
|
|
12144
12144
|
readonly: N,
|
|
12145
|
-
hideError:
|
|
12146
|
-
displayLabel:
|
|
12147
|
-
classNames:
|
|
12148
|
-
style:
|
|
12145
|
+
hideError: I,
|
|
12146
|
+
displayLabel: R,
|
|
12147
|
+
classNames: fe.join(" ").trim(),
|
|
12148
|
+
style: C.style,
|
|
12149
12149
|
formData: i,
|
|
12150
|
-
schema:
|
|
12150
|
+
schema: O,
|
|
12151
12151
|
uiSchema: x,
|
|
12152
12152
|
registry: f,
|
|
12153
|
-
children: (0, G.jsxs)(G.Fragment, { children: [
|
|
12153
|
+
children: (0, G.jsxs)(G.Fragment, { children: [oe, te && (0, G.jsx)(te, {
|
|
12154
12154
|
name: o,
|
|
12155
12155
|
disabled: M,
|
|
12156
12156
|
readonly: N,
|
|
12157
|
-
hideError:
|
|
12157
|
+
hideError: I,
|
|
12158
12158
|
errorSchema: a,
|
|
12159
12159
|
formData: i,
|
|
12160
12160
|
fieldPathId: n,
|
|
12161
12161
|
onBlur: e.onBlur,
|
|
12162
12162
|
onChange: e.onChange,
|
|
12163
12163
|
onFocus: e.onFocus,
|
|
12164
|
-
options:
|
|
12164
|
+
options: ne,
|
|
12165
12165
|
registry: f,
|
|
12166
12166
|
required: d,
|
|
12167
|
-
schema:
|
|
12167
|
+
schema: O,
|
|
12168
12168
|
uiSchema: x
|
|
12169
12169
|
})] })
|
|
12170
12170
|
});
|
|
@@ -12172,7 +12172,7 @@ function Gh(e) {
|
|
|
12172
12172
|
var Kh = class extends pn {
|
|
12173
12173
|
shouldComponentUpdate(e) {
|
|
12174
12174
|
let { registry: { globalFormOptions: t } } = this.props, { experimental_componentUpdateStrategy: n = "customDeep" } = t;
|
|
12175
|
-
return
|
|
12175
|
+
return jt(this, e, this.state, n);
|
|
12176
12176
|
}
|
|
12177
12177
|
render() {
|
|
12178
12178
|
return (0, G.jsx)(Gh, { ...this.props });
|
|
@@ -12181,23 +12181,23 @@ var Kh = class extends pn {
|
|
|
12181
12181
|
//#endregion
|
|
12182
12182
|
//#region node_modules/@rjsf/core/lib/components/fields/StringField.js
|
|
12183
12183
|
function qh(e) {
|
|
12184
|
-
let { schema: t, name: n, uiSchema: r, fieldPathId: i, formData: a, required: o, disabled: s = !1, readonly: c = !1, autofocus: l = !1, onChange: u, onBlur: d, onFocus: f, registry: p, rawErrors:
|
|
12185
|
-
|
|
12186
|
-
let { widget:
|
|
12187
|
-
return (0, G.jsx)(
|
|
12184
|
+
let { schema: t, name: n, uiSchema: r, fieldPathId: i, formData: a, required: o, disabled: s = !1, readonly: c = !1, autofocus: l = !1, onChange: u, onBlur: d, onFocus: f, registry: p, rawErrors: h, hideError: g, title: _ } = e, { title: v, format: y } = t, { widgets: b, schemaUtils: x, globalUiOptions: C } = p, w = x.isSelect(t) ? Ne(t, r) : void 0, T = w ? "select" : "text";
|
|
12185
|
+
y && et(t, y, b) && (T = y);
|
|
12186
|
+
let { widget: E = T, placeholder: D = "", title: O, ...k } = S(r), A = x.getDisplayLabel(t, r, C), j = O ?? _ ?? v ?? n, M = m(t, E, b), N = W((e, t, n) => u(e, i.path, t, n), [u, i]);
|
|
12187
|
+
return (0, G.jsx)(M, {
|
|
12188
12188
|
options: {
|
|
12189
|
-
...
|
|
12190
|
-
enumOptions:
|
|
12189
|
+
...k,
|
|
12190
|
+
enumOptions: w
|
|
12191
12191
|
},
|
|
12192
12192
|
schema: t,
|
|
12193
12193
|
uiSchema: r,
|
|
12194
12194
|
id: i.$id,
|
|
12195
12195
|
name: n,
|
|
12196
|
-
label:
|
|
12197
|
-
hideLabel: !
|
|
12198
|
-
hideError:
|
|
12196
|
+
label: j,
|
|
12197
|
+
hideLabel: !A,
|
|
12198
|
+
hideError: g,
|
|
12199
12199
|
value: a,
|
|
12200
|
-
onChange:
|
|
12200
|
+
onChange: N,
|
|
12201
12201
|
onBlur: d,
|
|
12202
12202
|
onFocus: f,
|
|
12203
12203
|
required: o,
|
|
@@ -12205,8 +12205,8 @@ function qh(e) {
|
|
|
12205
12205
|
readonly: c,
|
|
12206
12206
|
autofocus: l,
|
|
12207
12207
|
registry: p,
|
|
12208
|
-
placeholder:
|
|
12209
|
-
rawErrors:
|
|
12208
|
+
placeholder: D,
|
|
12209
|
+
rawErrors: h,
|
|
12210
12210
|
htmlName: i.name
|
|
12211
12211
|
});
|
|
12212
12212
|
}
|
|
@@ -12245,9 +12245,9 @@ function Yh() {
|
|
|
12245
12245
|
//#endregion
|
|
12246
12246
|
//#region node_modules/@rjsf/core/lib/components/templates/ArrayFieldDescriptionTemplate.js
|
|
12247
12247
|
function Xh(e) {
|
|
12248
|
-
let { fieldPathId: t, description: n, registry: r, schema: i, uiSchema: a } = e, o =
|
|
12249
|
-
return !n || !s ? null : (0, G.jsx)(
|
|
12250
|
-
id:
|
|
12248
|
+
let { fieldPathId: t, description: n, registry: r, schema: i, uiSchema: a } = e, o = S(a, r.globalUiOptions), { label: s = !0 } = o;
|
|
12249
|
+
return !n || !s ? null : (0, G.jsx)(b("DescriptionFieldTemplate", r, o), {
|
|
12250
|
+
id: It(t),
|
|
12251
12251
|
description: n,
|
|
12252
12252
|
schema: i,
|
|
12253
12253
|
uiSchema: a,
|
|
@@ -12257,7 +12257,7 @@ function Xh(e) {
|
|
|
12257
12257
|
//#endregion
|
|
12258
12258
|
//#region node_modules/@rjsf/core/lib/components/templates/ArrayFieldItemTemplate.js
|
|
12259
12259
|
function Zh(e) {
|
|
12260
|
-
let { children: t, className: n, buttonsProps: r, displayLabel: i, hasDescription: a, hasToolbar: o, registry: s, uiSchema: c } = e, l =
|
|
12260
|
+
let { children: t, className: n, buttonsProps: r, displayLabel: i, hasDescription: a, hasToolbar: o, registry: s, uiSchema: c } = e, l = b("ArrayFieldItemButtonsTemplate", s, S(c)), u = {
|
|
12261
12261
|
flex: 1,
|
|
12262
12262
|
paddingLeft: 6,
|
|
12263
12263
|
paddingRight: 6,
|
|
@@ -12295,7 +12295,7 @@ function Qh(e) {
|
|
|
12295
12295
|
let { disabled: t, hasCopy: n, hasMoveDown: r, hasMoveUp: i, hasRemove: a, fieldPathId: o, onCopyItem: s, onRemoveItem: c, onMoveDownItem: l, onMoveUpItem: u, readonly: d, registry: f, uiSchema: p } = e, { CopyButton: m, MoveDownButton: h, MoveUpButton: g, RemoveButton: _ } = f.templates.ButtonTemplates;
|
|
12296
12296
|
return (0, G.jsxs)(G.Fragment, { children: [
|
|
12297
12297
|
(i || r) && (0, G.jsx)(g, {
|
|
12298
|
-
id:
|
|
12298
|
+
id: lt(o, "moveUp"),
|
|
12299
12299
|
className: "rjsf-array-item-move-up",
|
|
12300
12300
|
disabled: t || d || !i,
|
|
12301
12301
|
onClick: u,
|
|
@@ -12303,7 +12303,7 @@ function Qh(e) {
|
|
|
12303
12303
|
registry: f
|
|
12304
12304
|
}),
|
|
12305
12305
|
(i || r) && (0, G.jsx)(h, {
|
|
12306
|
-
id:
|
|
12306
|
+
id: lt(o, "moveDown"),
|
|
12307
12307
|
className: "rjsf-array-item-move-down",
|
|
12308
12308
|
disabled: t || d || !r,
|
|
12309
12309
|
onClick: l,
|
|
@@ -12311,7 +12311,7 @@ function Qh(e) {
|
|
|
12311
12311
|
registry: f
|
|
12312
12312
|
}),
|
|
12313
12313
|
n && (0, G.jsx)(m, {
|
|
12314
|
-
id:
|
|
12314
|
+
id: lt(o, "copy"),
|
|
12315
12315
|
className: "rjsf-array-item-copy",
|
|
12316
12316
|
disabled: t || d,
|
|
12317
12317
|
onClick: s,
|
|
@@ -12319,7 +12319,7 @@ function Qh(e) {
|
|
|
12319
12319
|
registry: f
|
|
12320
12320
|
}),
|
|
12321
12321
|
a && (0, G.jsx)(_, {
|
|
12322
|
-
id:
|
|
12322
|
+
id: lt(o, "remove"),
|
|
12323
12323
|
className: "rjsf-array-item-remove",
|
|
12324
12324
|
disabled: t || d,
|
|
12325
12325
|
onClick: c,
|
|
@@ -12331,7 +12331,7 @@ function Qh(e) {
|
|
|
12331
12331
|
//#endregion
|
|
12332
12332
|
//#region node_modules/@rjsf/core/lib/components/templates/ArrayFieldTemplate.js
|
|
12333
12333
|
function $h(e) {
|
|
12334
|
-
let { canAdd: t, className: n, disabled: r, fieldPathId: i, uiSchema: a, items: o, optionalDataControl: s, onAddClick: c, readonly: l, registry: u, required: d, schema: f, title: p } = e, m =
|
|
12334
|
+
let { canAdd: t, className: n, disabled: r, fieldPathId: i, uiSchema: a, items: o, optionalDataControl: s, onAddClick: c, readonly: l, registry: u, required: d, schema: f, title: p } = e, m = S(a), h = b("ArrayFieldDescriptionTemplate", u, m), g = b("ArrayFieldTitleTemplate", u, m), _ = !l && !r, { ButtonTemplates: { AddButton: v } } = u.templates;
|
|
12335
12335
|
return (0, G.jsxs)("fieldset", {
|
|
12336
12336
|
className: n,
|
|
12337
12337
|
id: i.$id,
|
|
@@ -12358,7 +12358,7 @@ function $h(e) {
|
|
|
12358
12358
|
children: o
|
|
12359
12359
|
}),
|
|
12360
12360
|
t && (0, G.jsx)(v, {
|
|
12361
|
-
id:
|
|
12361
|
+
id: lt(i, "add"),
|
|
12362
12362
|
className: "rjsf-array-item-add",
|
|
12363
12363
|
onClick: c,
|
|
12364
12364
|
disabled: r || l,
|
|
@@ -12371,9 +12371,9 @@ function $h(e) {
|
|
|
12371
12371
|
//#endregion
|
|
12372
12372
|
//#region node_modules/@rjsf/core/lib/components/templates/ArrayFieldTitleTemplate.js
|
|
12373
12373
|
function eg(e) {
|
|
12374
|
-
let { fieldPathId: t, title: n, schema: r, uiSchema: i, required: a, registry: o, optionalDataControl: s } = e, c =
|
|
12375
|
-
return !n || !l ? null : (0, G.jsx)(
|
|
12376
|
-
id:
|
|
12374
|
+
let { fieldPathId: t, title: n, schema: r, uiSchema: i, required: a, registry: o, optionalDataControl: s } = e, c = S(i, o.globalUiOptions), { label: l = !0 } = c;
|
|
12375
|
+
return !n || !l ? null : (0, G.jsx)(b("TitleFieldTemplate", o, c), {
|
|
12376
|
+
id: sn(t),
|
|
12377
12377
|
title: n,
|
|
12378
12378
|
required: a,
|
|
12379
12379
|
schema: r,
|
|
@@ -12387,21 +12387,21 @@ function eg(e) {
|
|
|
12387
12387
|
function tg(e) {
|
|
12388
12388
|
let { id: t, schema: n } = e, { examples: r, default: i } = n;
|
|
12389
12389
|
return Array.isArray(r) ? (0, G.jsx)("datalist", {
|
|
12390
|
-
id:
|
|
12390
|
+
id: mt(t),
|
|
12391
12391
|
children: r.concat(i !== void 0 && !r.map(String).includes(String(i)) ? [i] : []).map((e) => (0, G.jsx)("option", { value: e }, String(e)))
|
|
12392
12392
|
}, `datalist_${t}`) : null;
|
|
12393
12393
|
}
|
|
12394
12394
|
//#endregion
|
|
12395
12395
|
//#region node_modules/@rjsf/core/lib/components/templates/BaseInputTemplate.js
|
|
12396
12396
|
function ng(e) {
|
|
12397
|
-
let { id: t, name: n, htmlName: r, value: i, readonly: a, disabled: o, autofocus: s, onBlur: c, onFocus: l, onChange: u, onChangeOverride: d, options: f, schema: p, uiSchema: m, registry: h, rawErrors:
|
|
12397
|
+
let { id: t, name: n, htmlName: r, value: i, readonly: a, disabled: o, autofocus: s, onBlur: c, onFocus: l, onChange: u, onChangeOverride: d, options: f, schema: p, uiSchema: m, registry: h, rawErrors: g, type: _, hideLabel: v, hideError: y, ...b } = e, { ClearButton: x } = h.templates.ButtonTemplates;
|
|
12398
12398
|
if (!t) throw console.log("No id for", e), Error(`no id for props ${JSON.stringify(e)}`);
|
|
12399
|
-
let
|
|
12400
|
-
...
|
|
12401
|
-
...
|
|
12402
|
-
},
|
|
12403
|
-
|
|
12404
|
-
let
|
|
12399
|
+
let S = {
|
|
12400
|
+
...b,
|
|
12401
|
+
...fe(p, _, f)
|
|
12402
|
+
}, C;
|
|
12403
|
+
C = S.type === "number" || S.type === "integer" ? i || i === 0 ? i : "" : i ?? "";
|
|
12404
|
+
let w = W(({ target: { value: e } }) => u(e === "" ? f.emptyValue : e), [u, f]), T = W(({ target: e }) => c(t, e && e.value), [c, t]), E = W(({ target: e }) => l(t, e && e.value), [l, t]), D = W((e) => {
|
|
12405
12405
|
e.preventDefault(), e.stopPropagation(), u(f.emptyValue ?? "");
|
|
12406
12406
|
}, [u, f.emptyValue]);
|
|
12407
12407
|
return (0, G.jsxs)(G.Fragment, { children: [
|
|
@@ -12412,17 +12412,17 @@ function ng(e) {
|
|
|
12412
12412
|
readOnly: a,
|
|
12413
12413
|
disabled: o,
|
|
12414
12414
|
autoFocus: s,
|
|
12415
|
-
value:
|
|
12416
|
-
...
|
|
12417
|
-
list: p.examples ?
|
|
12418
|
-
onChange: d ||
|
|
12419
|
-
onBlur:
|
|
12420
|
-
onFocus:
|
|
12421
|
-
"aria-describedby":
|
|
12415
|
+
value: C,
|
|
12416
|
+
...S,
|
|
12417
|
+
list: p.examples ? mt(t) : void 0,
|
|
12418
|
+
onChange: d || w,
|
|
12419
|
+
onBlur: T,
|
|
12420
|
+
onFocus: E,
|
|
12421
|
+
"aria-describedby": at(t, !!p.examples)
|
|
12422
12422
|
}),
|
|
12423
|
-
f.allowClearTextInputs && !a && !o &&
|
|
12423
|
+
f.allowClearTextInputs && !a && !o && C && (0, G.jsx)(x, {
|
|
12424
12424
|
registry: h,
|
|
12425
|
-
onClick:
|
|
12425
|
+
onClick: D
|
|
12426
12426
|
}),
|
|
12427
12427
|
(0, G.jsx)(tg, {
|
|
12428
12428
|
id: t,
|
|
@@ -12433,7 +12433,7 @@ function ng(e) {
|
|
|
12433
12433
|
//#endregion
|
|
12434
12434
|
//#region node_modules/@rjsf/core/lib/components/templates/ButtonTemplates/SubmitButton.js
|
|
12435
12435
|
function rg({ uiSchema: e }) {
|
|
12436
|
-
let { submitText: t, norender: n, props: r = {} } =
|
|
12436
|
+
let { submitText: t, norender: n, props: r = {} } = _(e);
|
|
12437
12437
|
return n ? null : (0, G.jsx)("div", { children: (0, G.jsx)("button", {
|
|
12438
12438
|
type: "submit",
|
|
12439
12439
|
...r,
|
|
@@ -12455,7 +12455,7 @@ function ig(e) {
|
|
|
12455
12455
|
function ag(e) {
|
|
12456
12456
|
let { registry: { translateString: t } } = e;
|
|
12457
12457
|
return (0, G.jsx)(ig, {
|
|
12458
|
-
title: t(
|
|
12458
|
+
title: t(j.CopyButton),
|
|
12459
12459
|
...e,
|
|
12460
12460
|
icon: "copy"
|
|
12461
12461
|
});
|
|
@@ -12463,7 +12463,7 @@ function ag(e) {
|
|
|
12463
12463
|
function og(e) {
|
|
12464
12464
|
let { registry: { translateString: t } } = e;
|
|
12465
12465
|
return (0, G.jsx)(ig, {
|
|
12466
|
-
title: t(
|
|
12466
|
+
title: t(j.MoveDownButton),
|
|
12467
12467
|
...e,
|
|
12468
12468
|
icon: "arrow-down"
|
|
12469
12469
|
});
|
|
@@ -12471,7 +12471,7 @@ function og(e) {
|
|
|
12471
12471
|
function sg(e) {
|
|
12472
12472
|
let { registry: { translateString: t } } = e;
|
|
12473
12473
|
return (0, G.jsx)(ig, {
|
|
12474
|
-
title: t(
|
|
12474
|
+
title: t(j.MoveUpButton),
|
|
12475
12475
|
...e,
|
|
12476
12476
|
icon: "arrow-up"
|
|
12477
12477
|
});
|
|
@@ -12479,7 +12479,7 @@ function sg(e) {
|
|
|
12479
12479
|
function cg(e) {
|
|
12480
12480
|
let { registry: { translateString: t } } = e;
|
|
12481
12481
|
return (0, G.jsx)(ig, {
|
|
12482
|
-
title: t(
|
|
12482
|
+
title: t(j.RemoveButton),
|
|
12483
12483
|
...e,
|
|
12484
12484
|
iconType: "danger",
|
|
12485
12485
|
icon: "remove"
|
|
@@ -12492,7 +12492,7 @@ function lg({ id: e, className: t, onClick: n, disabled: r, registry: i, ...a })
|
|
|
12492
12492
|
iconType: "default",
|
|
12493
12493
|
icon: "remove",
|
|
12494
12494
|
className: "btn-clear col-xs-12",
|
|
12495
|
-
title: o(
|
|
12495
|
+
title: o(j.ClearButton),
|
|
12496
12496
|
onClick: n,
|
|
12497
12497
|
disabled: r,
|
|
12498
12498
|
registry: i,
|
|
@@ -12512,7 +12512,7 @@ function ug({ id: e, className: t, onClick: n, disabled: r, registry: i }) {
|
|
|
12512
12512
|
iconType: "info",
|
|
12513
12513
|
icon: "plus",
|
|
12514
12514
|
className: "btn-add col-xs-12",
|
|
12515
|
-
title: a(
|
|
12515
|
+
title: a(j.AddButton),
|
|
12516
12516
|
onClick: n,
|
|
12517
12517
|
disabled: r,
|
|
12518
12518
|
registry: i
|
|
@@ -12535,10 +12535,10 @@ function dg() {
|
|
|
12535
12535
|
}
|
|
12536
12536
|
//#endregion
|
|
12537
12537
|
//#region node_modules/@rjsf/core/lib/components/RichDescription.js
|
|
12538
|
-
var fg =
|
|
12538
|
+
var fg = tn();
|
|
12539
12539
|
function pg({ description: e, registry: t, uiSchema: n = {} }) {
|
|
12540
12540
|
let { globalUiOptions: r } = t;
|
|
12541
|
-
return
|
|
12541
|
+
return S(n, r).enableMarkdownInDescription && typeof e == "string" ? (0, G.jsx)(Fh, {
|
|
12542
12542
|
options: { disableParsingRawHTML: !0 },
|
|
12543
12543
|
"data-testid": fg.markdown,
|
|
12544
12544
|
children: e
|
|
@@ -12569,7 +12569,7 @@ function hg({ errors: e, registry: t }) {
|
|
|
12569
12569
|
className: "panel-heading",
|
|
12570
12570
|
children: (0, G.jsx)("h3", {
|
|
12571
12571
|
className: "panel-title",
|
|
12572
|
-
children: n(
|
|
12572
|
+
children: n(j.ErrorsLabel)
|
|
12573
12573
|
})
|
|
12574
12574
|
}), (0, G.jsx)("ul", {
|
|
12575
12575
|
className: "list-group",
|
|
@@ -12584,7 +12584,7 @@ function hg({ errors: e, registry: t }) {
|
|
|
12584
12584
|
//#region node_modules/@rjsf/core/lib/components/templates/FallbackFieldTemplate.js
|
|
12585
12585
|
function gg(e) {
|
|
12586
12586
|
let { schema: t, registry: n, typeSelector: r, schemaField: i } = e;
|
|
12587
|
-
return (0, G.jsx)(
|
|
12587
|
+
return (0, G.jsx)(b("MultiSchemaFieldTemplate", n), {
|
|
12588
12588
|
selector: r,
|
|
12589
12589
|
optionSchemaField: i,
|
|
12590
12590
|
schema: t,
|
|
@@ -12608,7 +12608,7 @@ function vg(e) {
|
|
|
12608
12608
|
//#endregion
|
|
12609
12609
|
//#region node_modules/@rjsf/core/lib/components/templates/FieldTemplate/FieldTemplate.js
|
|
12610
12610
|
function yg(e) {
|
|
12611
|
-
let { id: t, label: n, children: r, errors: i, help: a, description: o, hidden: s, required: c, displayLabel: l, registry: u, uiSchema: d } = e, f =
|
|
12611
|
+
let { id: t, label: n, children: r, errors: i, help: a, description: o, hidden: s, required: c, displayLabel: l, registry: u, uiSchema: d } = e, f = S(d), p = b("WrapIfAdditionalTemplate", u, f);
|
|
12612
12612
|
if (s) return (0, G.jsx)("div", {
|
|
12613
12613
|
className: "hidden",
|
|
12614
12614
|
children: r
|
|
@@ -12637,7 +12637,7 @@ var bg = yg;
|
|
|
12637
12637
|
function xg(e) {
|
|
12638
12638
|
let { errors: t = [], fieldPathId: n } = e;
|
|
12639
12639
|
return t.length === 0 ? null : (0, G.jsx)("div", { children: (0, G.jsx)("ul", {
|
|
12640
|
-
id:
|
|
12640
|
+
id: kt(n),
|
|
12641
12641
|
className: "error-detail bs-callout bs-callout-info",
|
|
12642
12642
|
children: t.filter((e) => !!e).map((e, t) => (0, G.jsx)("li", {
|
|
12643
12643
|
className: "text-danger",
|
|
@@ -12647,10 +12647,10 @@ function xg(e) {
|
|
|
12647
12647
|
}
|
|
12648
12648
|
//#endregion
|
|
12649
12649
|
//#region node_modules/@rjsf/core/lib/components/RichHelp.js
|
|
12650
|
-
var Sg =
|
|
12650
|
+
var Sg = tn();
|
|
12651
12651
|
function Cg({ help: e, registry: t, uiSchema: n = {} }) {
|
|
12652
12652
|
let { globalUiOptions: r } = t;
|
|
12653
|
-
return
|
|
12653
|
+
return S(n, r).enableMarkdownInHelp && typeof e == "string" ? (0, G.jsx)(Fh, {
|
|
12654
12654
|
options: { disableParsingRawHTML: !0 },
|
|
12655
12655
|
"data-testid": Sg.markdown,
|
|
12656
12656
|
children: e
|
|
@@ -12662,7 +12662,7 @@ Cg.TEST_IDS = Sg;
|
|
|
12662
12662
|
function wg(e) {
|
|
12663
12663
|
let { fieldPathId: t, help: n, uiSchema: r, registry: i } = e;
|
|
12664
12664
|
return n ? (0, G.jsx)("div", {
|
|
12665
|
-
id:
|
|
12665
|
+
id: ft(t),
|
|
12666
12666
|
className: "help-block",
|
|
12667
12667
|
children: (0, G.jsx)(Cg, {
|
|
12668
12668
|
help: n,
|
|
@@ -12696,7 +12696,7 @@ function Eg(e) {
|
|
|
12696
12696
|
//#endregion
|
|
12697
12697
|
//#region node_modules/@rjsf/core/lib/components/templates/ObjectFieldTemplate.js
|
|
12698
12698
|
function Dg(e) {
|
|
12699
|
-
let { className: t, description: n, disabled: r, formData: i, fieldPathId: a, onAddProperty: o, optionalDataControl: s, properties: c, readonly: l, registry: u, required: d, schema: f, title: p, uiSchema: m } = e, h =
|
|
12699
|
+
let { className: t, description: n, disabled: r, formData: i, fieldPathId: a, onAddProperty: o, optionalDataControl: s, properties: c, readonly: l, registry: u, required: d, schema: f, title: p, uiSchema: m } = e, h = S(m), g = b("TitleFieldTemplate", u, h), _ = b("DescriptionFieldTemplate", u, h);
|
|
12700
12700
|
if ((f.oneOf || f.anyOf) && !f.properties && c.length === 0) return null;
|
|
12701
12701
|
let v = !l && !r, { ButtonTemplates: { AddButton: y } } = u.templates;
|
|
12702
12702
|
return (0, G.jsxs)("fieldset", {
|
|
@@ -12704,7 +12704,7 @@ function Dg(e) {
|
|
|
12704
12704
|
id: a.$id,
|
|
12705
12705
|
children: [
|
|
12706
12706
|
p && (0, G.jsx)(g, {
|
|
12707
|
-
id:
|
|
12707
|
+
id: sn(a),
|
|
12708
12708
|
title: p,
|
|
12709
12709
|
required: d,
|
|
12710
12710
|
schema: f,
|
|
@@ -12713,7 +12713,7 @@ function Dg(e) {
|
|
|
12713
12713
|
optionalDataControl: v ? s : void 0
|
|
12714
12714
|
}),
|
|
12715
12715
|
n && (0, G.jsx)(_, {
|
|
12716
|
-
id:
|
|
12716
|
+
id: It(a),
|
|
12717
12717
|
description: n,
|
|
12718
12718
|
schema: f,
|
|
12719
12719
|
uiSchema: m,
|
|
@@ -12721,8 +12721,8 @@ function Dg(e) {
|
|
|
12721
12721
|
}),
|
|
12722
12722
|
v ? void 0 : s,
|
|
12723
12723
|
c.map((e) => e.content),
|
|
12724
|
-
|
|
12725
|
-
id:
|
|
12724
|
+
Te(f, m, i) && (0, G.jsx)(y, {
|
|
12725
|
+
id: lt(a, "add"),
|
|
12726
12726
|
className: "rjsf-object-property-expand",
|
|
12727
12727
|
onClick: o,
|
|
12728
12728
|
disabled: r || l,
|
|
@@ -12779,8 +12779,8 @@ function Ag(e) {
|
|
|
12779
12779
|
//#endregion
|
|
12780
12780
|
//#region node_modules/@rjsf/core/lib/components/templates/UnsupportedField.js
|
|
12781
12781
|
function jg(e) {
|
|
12782
|
-
let { schema: t, fieldPathId: n, reason: r, registry: i } = e, { translateString: a } = i, o =
|
|
12783
|
-
return n && n.$id && (o =
|
|
12782
|
+
let { schema: t, fieldPathId: n, reason: r, registry: i } = e, { translateString: a } = i, o = j.UnsupportedField, s = [];
|
|
12783
|
+
return n && n.$id && (o = j.UnsupportedFieldWithId, s.push(n.$id)), r && (o = o === j.UnsupportedField ? j.UnsupportedFieldWithReason : j.UnsupportedFieldWithIdAndReason, s.push(r)), (0, G.jsxs)("div", {
|
|
12784
12784
|
className: "unsupported-field",
|
|
12785
12785
|
children: [(0, G.jsx)("p", { children: (0, G.jsx)(Fh, {
|
|
12786
12786
|
options: { disableParsingRawHTML: !0 },
|
|
@@ -12791,7 +12791,7 @@ function jg(e) {
|
|
|
12791
12791
|
//#endregion
|
|
12792
12792
|
//#region node_modules/@rjsf/core/lib/components/templates/WrapIfAdditionalTemplate.js
|
|
12793
12793
|
function Mg(e) {
|
|
12794
|
-
let { id: t, classNames: n, style: r, disabled: i, displayLabel: a, label: o, onKeyRenameBlur: s, onRemoveProperty: c, rawDescription: l, readonly: u, required: d, schema: f, hideError: p, rawErrors: m, children: h, uiSchema: g, registry: _ } = e, { templates:
|
|
12794
|
+
let { id: t, classNames: n, style: r, disabled: i, displayLabel: a, label: o, onKeyRenameBlur: s, onRemoveProperty: c, rawDescription: l, readonly: u, required: d, schema: f, hideError: p, rawErrors: m, children: h, uiSchema: g, registry: _ } = e, { templates: y, translateString: b } = _, { RemoveButton: x } = y.ButtonTemplates, S = b(j.KeyLabel, [o]), C = v in f, w = !!l, T = ["form-group", n];
|
|
12795
12795
|
!p && m && m.length > 0 && T.push("has-error has-danger");
|
|
12796
12796
|
let E = T.join(" ").trim();
|
|
12797
12797
|
if (!C) return (0, G.jsx)("div", {
|
|
@@ -12835,7 +12835,7 @@ function Mg(e) {
|
|
|
12835
12835
|
className: "col-xs-2",
|
|
12836
12836
|
style: { marginTop: a ? `${D}px` : void 0 },
|
|
12837
12837
|
children: (0, G.jsx)(x, {
|
|
12838
|
-
id:
|
|
12838
|
+
id: lt(t, "remove"),
|
|
12839
12839
|
className: "rjsf-object-property-remove btn-block",
|
|
12840
12840
|
style: { border: "0" },
|
|
12841
12841
|
disabled: i || u,
|
|
@@ -12877,13 +12877,13 @@ function Ng() {
|
|
|
12877
12877
|
//#endregion
|
|
12878
12878
|
//#region node_modules/@rjsf/core/lib/components/widgets/AltDateWidget.js
|
|
12879
12879
|
function Pg(e) {
|
|
12880
|
-
let { disabled: t = !1, readonly: n = !1, autofocus: r = !1, options: i, id: a, name: o, registry: s, onBlur: c, onFocus: l } = e, { translateString: u } = s, { elements: d, handleChange: f, handleClear: p, handleSetNow: m } =
|
|
12880
|
+
let { disabled: t = !1, readonly: n = !1, autofocus: r = !1, options: i, id: a, name: o, registry: s, onBlur: c, onFocus: l } = e, { translateString: u } = s, { elements: d, handleChange: f, handleClear: p, handleSetNow: m } = Ge(e);
|
|
12881
12881
|
return (0, G.jsxs)("ul", {
|
|
12882
12882
|
className: "list-inline",
|
|
12883
12883
|
children: [
|
|
12884
12884
|
d.map((e, i) => (0, G.jsx)("li", {
|
|
12885
12885
|
className: "list-inline-item",
|
|
12886
|
-
children: (0, G.jsx)(
|
|
12886
|
+
children: (0, G.jsx)(ee, {
|
|
12887
12887
|
rootId: a,
|
|
12888
12888
|
name: o,
|
|
12889
12889
|
select: f,
|
|
@@ -12902,7 +12902,7 @@ function Pg(e) {
|
|
|
12902
12902
|
href: "#",
|
|
12903
12903
|
className: "btn btn-info btn-now",
|
|
12904
12904
|
onClick: m,
|
|
12905
|
-
children: u(
|
|
12905
|
+
children: u(j.NowLabel)
|
|
12906
12906
|
})
|
|
12907
12907
|
}),
|
|
12908
12908
|
(i.hideClearButton === "undefined" ? !0 : !i.hideClearButton) && (0, G.jsx)("li", {
|
|
@@ -12911,7 +12911,7 @@ function Pg(e) {
|
|
|
12911
12911
|
href: "#",
|
|
12912
12912
|
className: "btn btn-warning btn-clear",
|
|
12913
12913
|
onClick: p,
|
|
12914
|
-
children: u(
|
|
12914
|
+
children: u(j.ClearLabel)
|
|
12915
12915
|
})
|
|
12916
12916
|
})
|
|
12917
12917
|
]
|
|
@@ -12929,12 +12929,12 @@ function Fg({ time: e = !0, ...t }) {
|
|
|
12929
12929
|
//#endregion
|
|
12930
12930
|
//#region node_modules/@rjsf/core/lib/components/widgets/CheckboxWidget.js
|
|
12931
12931
|
function Ig({ schema: e, uiSchema: t, options: n, id: r, value: i, disabled: a, readonly: o, label: s, hideLabel: c, autofocus: l = !1, onBlur: u, onFocus: d, onChange: f, registry: p, htmlName: m }) {
|
|
12932
|
-
let h =
|
|
12932
|
+
let h = b("DescriptionFieldTemplate", p, n), g = Vt(e), _ = W((e) => f(e.target.checked), [f]), v = W((e) => u(r, e.target.checked), [u, r]), y = W((e) => d(r, e.target.checked), [d, r]), x = S(t).widget === "checkbox" ? void 0 : n.description ?? e.description;
|
|
12933
12933
|
return (0, G.jsxs)("div", {
|
|
12934
12934
|
className: `checkbox ${a || o ? "disabled" : ""}`,
|
|
12935
|
-
children: [!c &&
|
|
12936
|
-
id:
|
|
12937
|
-
description:
|
|
12935
|
+
children: [!c && x && (0, G.jsx)(h, {
|
|
12936
|
+
id: It(r),
|
|
12937
|
+
description: x,
|
|
12938
12938
|
schema: e,
|
|
12939
12939
|
uiSchema: t,
|
|
12940
12940
|
registry: p
|
|
@@ -12949,19 +12949,19 @@ function Ig({ schema: e, uiSchema: t, options: n, id: r, value: i, disabled: a,
|
|
|
12949
12949
|
onChange: _,
|
|
12950
12950
|
onBlur: v,
|
|
12951
12951
|
onFocus: y,
|
|
12952
|
-
"aria-describedby":
|
|
12953
|
-
}),
|
|
12952
|
+
"aria-describedby": at(r)
|
|
12953
|
+
}), Tt((0, G.jsx)("span", { children: s }), c)] })]
|
|
12954
12954
|
});
|
|
12955
12955
|
}
|
|
12956
12956
|
//#endregion
|
|
12957
12957
|
//#region node_modules/@rjsf/core/lib/components/widgets/CheckboxesWidget.js
|
|
12958
12958
|
function Lg({ id: e, disabled: t, options: { inline: n = !1, enumOptions: r, enumDisabled: i, emptyValue: a }, value: o, autofocus: s = !1, readonly: c, onChange: l, onBlur: u, onFocus: d, htmlName: f }) {
|
|
12959
|
-
let p = Array.isArray(o) ? o : [o], m = W(({ target: t }) => u(e,
|
|
12959
|
+
let p = Array.isArray(o) ? o : [o], m = W(({ target: t }) => u(e, N(t && t.value, r, a)), [
|
|
12960
12960
|
u,
|
|
12961
12961
|
e,
|
|
12962
12962
|
r,
|
|
12963
12963
|
a
|
|
12964
|
-
]), h = W(({ target: t }) => d(e,
|
|
12964
|
+
]), h = W(({ target: t }) => d(e, N(t && t.value, r, a)), [
|
|
12965
12965
|
d,
|
|
12966
12966
|
e,
|
|
12967
12967
|
r,
|
|
@@ -12971,20 +12971,20 @@ function Lg({ id: e, disabled: t, options: { inline: n = !1, enumOptions: r, enu
|
|
|
12971
12971
|
className: "checkboxes",
|
|
12972
12972
|
id: e,
|
|
12973
12973
|
children: Array.isArray(r) && r.map((a, o) => {
|
|
12974
|
-
let u =
|
|
12974
|
+
let u = me(a.value, p), d = Array.isArray(i) && i.indexOf(a.value) !== -1, g = t || d || c ? "disabled" : "", _ = (0, G.jsxs)("span", { children: [(0, G.jsx)("input", {
|
|
12975
12975
|
type: "checkbox",
|
|
12976
|
-
id:
|
|
12976
|
+
id: Xe(e, o),
|
|
12977
12977
|
name: f || e,
|
|
12978
12978
|
checked: u,
|
|
12979
12979
|
value: String(o),
|
|
12980
12980
|
disabled: t || d || c,
|
|
12981
12981
|
autoFocus: s && o === 0,
|
|
12982
12982
|
onChange: (e) => {
|
|
12983
|
-
e.target.checked ? l(
|
|
12983
|
+
e.target.checked ? l(se(o, p, r)) : l(C(o, p, r));
|
|
12984
12984
|
},
|
|
12985
12985
|
onBlur: m,
|
|
12986
12986
|
onFocus: h,
|
|
12987
|
-
"aria-describedby":
|
|
12987
|
+
"aria-describedby": at(e)
|
|
12988
12988
|
}), (0, G.jsx)("span", { children: a.label })] });
|
|
12989
12989
|
return n ? (0, G.jsx)("label", {
|
|
12990
12990
|
className: `checkbox-inline ${g}`,
|
|
@@ -13000,7 +13000,7 @@ function Lg({ id: e, disabled: t, options: { inline: n = !1, enumOptions: r, enu
|
|
|
13000
13000
|
//#region node_modules/@rjsf/core/lib/components/widgets/ColorWidget.js
|
|
13001
13001
|
function Rg(e) {
|
|
13002
13002
|
let { disabled: t, readonly: n, options: r, registry: i } = e;
|
|
13003
|
-
return (0, G.jsx)(
|
|
13003
|
+
return (0, G.jsx)(b("BaseInputTemplate", i, r), {
|
|
13004
13004
|
type: "color",
|
|
13005
13005
|
...e,
|
|
13006
13006
|
disabled: t || n
|
|
@@ -13009,7 +13009,7 @@ function Rg(e) {
|
|
|
13009
13009
|
//#endregion
|
|
13010
13010
|
//#region node_modules/@rjsf/core/lib/components/widgets/DateWidget.js
|
|
13011
13011
|
function zg(e) {
|
|
13012
|
-
let { onChange: t, options: n, registry: r } = e, i =
|
|
13012
|
+
let { onChange: t, options: n, registry: r } = e, i = b("BaseInputTemplate", r, n), a = W((e) => t(e || void 0), [t]);
|
|
13013
13013
|
return (0, G.jsx)(i, {
|
|
13014
13014
|
type: "date",
|
|
13015
13015
|
...e,
|
|
@@ -13020,18 +13020,18 @@ function zg(e) {
|
|
|
13020
13020
|
//#region node_modules/@rjsf/core/lib/components/widgets/DateTimeWidget.js
|
|
13021
13021
|
function Bg(e) {
|
|
13022
13022
|
let { onChange: t, value: n, options: r, registry: i } = e;
|
|
13023
|
-
return (0, G.jsx)(
|
|
13023
|
+
return (0, G.jsx)(b("BaseInputTemplate", i, r), {
|
|
13024
13024
|
type: "datetime-local",
|
|
13025
13025
|
...e,
|
|
13026
|
-
value:
|
|
13027
|
-
onChange: (e) => t(
|
|
13026
|
+
value: D(n),
|
|
13027
|
+
onChange: (e) => t(nt(e))
|
|
13028
13028
|
});
|
|
13029
13029
|
}
|
|
13030
13030
|
//#endregion
|
|
13031
13031
|
//#region node_modules/@rjsf/core/lib/components/widgets/EmailWidget.js
|
|
13032
13032
|
function Vg(e) {
|
|
13033
13033
|
let { options: t, registry: n } = e;
|
|
13034
|
-
return (0, G.jsx)(
|
|
13034
|
+
return (0, G.jsx)(b("BaseInputTemplate", n, t), {
|
|
13035
13035
|
type: "email",
|
|
13036
13036
|
...e
|
|
13037
13037
|
});
|
|
@@ -13048,18 +13048,18 @@ function Hg({ fileInfo: e, registry: t }) {
|
|
|
13048
13048
|
download: `preview-${a}`,
|
|
13049
13049
|
href: r,
|
|
13050
13050
|
className: "file-download",
|
|
13051
|
-
children: n(
|
|
13051
|
+
children: n(j.PreviewLabel)
|
|
13052
13052
|
})] }) : null;
|
|
13053
13053
|
}
|
|
13054
13054
|
function Ug({ filesInfo: e, registry: t, preview: n, onRemove: r, options: i }) {
|
|
13055
13055
|
if (e.length === 0) return null;
|
|
13056
|
-
let { translateString: a } = t, { RemoveButton: o } =
|
|
13056
|
+
let { translateString: a } = t, { RemoveButton: o } = b("ButtonTemplates", t, i);
|
|
13057
13057
|
return (0, G.jsx)("ul", {
|
|
13058
13058
|
className: "file-info",
|
|
13059
13059
|
children: e.map((e, i) => {
|
|
13060
13060
|
let { name: s, size: c, type: l } = e;
|
|
13061
13061
|
return (0, G.jsxs)("li", { children: [
|
|
13062
|
-
(0, G.jsx)(Fh, { children: a(
|
|
13062
|
+
(0, G.jsx)(Fh, { children: a(j.FilesInfo, [
|
|
13063
13063
|
s,
|
|
13064
13064
|
l,
|
|
13065
13065
|
String(c)
|
|
@@ -13077,7 +13077,7 @@ function Ug({ filesInfo: e, registry: t, preview: n, onRemove: r, options: i })
|
|
|
13077
13077
|
});
|
|
13078
13078
|
}
|
|
13079
13079
|
function Wg(e) {
|
|
13080
|
-
let { disabled: t, readonly: n, required: r, multiple: i, onChange: a, value: o, options: s, registry: c } = e, { filesInfo: l, handleChange: u, handleRemove: d } =
|
|
13080
|
+
let { disabled: t, readonly: n, required: r, multiple: i, onChange: a, value: o, options: s, registry: c } = e, { filesInfo: l, handleChange: u, handleRemove: d } = ie(o, a, i), f = b("BaseInputTemplate", c, s), p = (e) => {
|
|
13081
13081
|
e.target.files && u(e.target.files);
|
|
13082
13082
|
};
|
|
13083
13083
|
return (0, G.jsxs)("div", { children: [(0, G.jsx)(f, {
|
|
@@ -13110,7 +13110,7 @@ function Gg({ id: e, value: t, htmlName: n }) {
|
|
|
13110
13110
|
//#region node_modules/@rjsf/core/lib/components/widgets/PasswordWidget.js
|
|
13111
13111
|
function Kg(e) {
|
|
13112
13112
|
let { options: t, registry: n } = e;
|
|
13113
|
-
return (0, G.jsx)(
|
|
13113
|
+
return (0, G.jsx)(b("BaseInputTemplate", n, t), {
|
|
13114
13114
|
type: "password",
|
|
13115
13115
|
...e
|
|
13116
13116
|
});
|
|
@@ -13118,12 +13118,12 @@ function Kg(e) {
|
|
|
13118
13118
|
//#endregion
|
|
13119
13119
|
//#region node_modules/@rjsf/core/lib/components/widgets/RadioWidget.js
|
|
13120
13120
|
function qg({ options: e, value: t, required: n, disabled: r, readonly: i, autofocus: a = !1, onBlur: o, onFocus: s, onChange: c, id: l, htmlName: u }) {
|
|
13121
|
-
let { enumOptions: d, enumDisabled: f, inline: p, emptyValue: m } = e, h = W(({ target: e }) => o(l,
|
|
13121
|
+
let { enumOptions: d, enumDisabled: f, inline: p, emptyValue: m } = e, h = W(({ target: e }) => o(l, N(e && e.value, d, m)), [
|
|
13122
13122
|
o,
|
|
13123
13123
|
d,
|
|
13124
13124
|
m,
|
|
13125
13125
|
l
|
|
13126
|
-
]), g = W(({ target: e }) => s(l,
|
|
13126
|
+
]), g = W(({ target: e }) => s(l, N(e && e.value, d, m)), [
|
|
13127
13127
|
s,
|
|
13128
13128
|
d,
|
|
13129
13129
|
m,
|
|
@@ -13134,9 +13134,9 @@ function qg({ options: e, value: t, required: n, disabled: r, readonly: i, autof
|
|
|
13134
13134
|
id: l,
|
|
13135
13135
|
role: "radiogroup",
|
|
13136
13136
|
children: Array.isArray(d) && d.map((e, o) => {
|
|
13137
|
-
let s =
|
|
13137
|
+
let s = me(e.value, t), d = Array.isArray(f) && f.indexOf(e.value) !== -1, m = r || d || i ? "disabled" : "", _ = (0, G.jsxs)("span", { children: [(0, G.jsx)("input", {
|
|
13138
13138
|
type: "radio",
|
|
13139
|
-
id:
|
|
13139
|
+
id: Xe(l, o),
|
|
13140
13140
|
checked: s,
|
|
13141
13141
|
name: u || l,
|
|
13142
13142
|
required: n,
|
|
@@ -13146,7 +13146,7 @@ function qg({ options: e, value: t, required: n, disabled: r, readonly: i, autof
|
|
|
13146
13146
|
onChange: () => c(e.value),
|
|
13147
13147
|
onBlur: h,
|
|
13148
13148
|
onFocus: g,
|
|
13149
|
-
"aria-describedby":
|
|
13149
|
+
"aria-describedby": at(l)
|
|
13150
13150
|
}), (0, G.jsx)("span", { children: e.label })] });
|
|
13151
13151
|
return p ? (0, G.jsx)("label", {
|
|
13152
13152
|
className: `radio-inline ${m}`,
|
|
@@ -13230,39 +13230,39 @@ function Xg(e, t) {
|
|
|
13230
13230
|
return t ? Array.from(e.target.options).slice().filter((e) => e.selected).map((e) => e.value) : e.target.value;
|
|
13231
13231
|
}
|
|
13232
13232
|
function Zg({ schema: e, id: t, options: n, value: r, required: i, disabled: a, readonly: o, multiple: s = !1, autofocus: c = !1, onChange: l, onBlur: u, onFocus: d, placeholder: f, htmlName: p }) {
|
|
13233
|
-
let { enumOptions: m, enumDisabled: h, emptyValue: g } = n, _ = s ? [] : "", v = W((e) => d(t,
|
|
13233
|
+
let { enumOptions: m, enumDisabled: h, emptyValue: g } = n, _ = s ? [] : "", v = W((e) => d(t, N(Xg(e, s), m, g)), [
|
|
13234
13234
|
d,
|
|
13235
13235
|
t,
|
|
13236
13236
|
s,
|
|
13237
13237
|
m,
|
|
13238
13238
|
g
|
|
13239
|
-
]), y = W((e) => u(t,
|
|
13239
|
+
]), y = W((e) => u(t, N(Xg(e, s), m, g)), [
|
|
13240
13240
|
u,
|
|
13241
13241
|
t,
|
|
13242
13242
|
s,
|
|
13243
13243
|
m,
|
|
13244
13244
|
g
|
|
13245
|
-
]), b = W((e) => l(
|
|
13245
|
+
]), b = W((e) => l(N(Xg(e, s), m, g)), [
|
|
13246
13246
|
l,
|
|
13247
13247
|
s,
|
|
13248
13248
|
m,
|
|
13249
13249
|
g
|
|
13250
|
-
]),
|
|
13250
|
+
]), x = ue(r, m, s), S = !s && e.default === void 0;
|
|
13251
13251
|
return (0, G.jsxs)("select", {
|
|
13252
13252
|
id: t,
|
|
13253
13253
|
name: p || t,
|
|
13254
13254
|
multiple: s,
|
|
13255
13255
|
role: "combobox",
|
|
13256
13256
|
className: "form-control",
|
|
13257
|
-
value:
|
|
13257
|
+
value: x === void 0 ? _ : x,
|
|
13258
13258
|
required: i,
|
|
13259
13259
|
disabled: a || o,
|
|
13260
13260
|
autoFocus: c,
|
|
13261
13261
|
onBlur: y,
|
|
13262
13262
|
onFocus: v,
|
|
13263
13263
|
onChange: b,
|
|
13264
|
-
"aria-describedby":
|
|
13265
|
-
children: [
|
|
13264
|
+
"aria-describedby": at(t),
|
|
13265
|
+
children: [S && (0, G.jsx)("option", {
|
|
13266
13266
|
value: "",
|
|
13267
13267
|
children: f
|
|
13268
13268
|
}), Array.isArray(m) && m.map(({ value: e, label: t }, n) => {
|
|
@@ -13293,19 +13293,19 @@ function Qg({ id: e, options: t = {}, placeholder: n, value: r, required: i, dis
|
|
|
13293
13293
|
onBlur: p,
|
|
13294
13294
|
onFocus: m,
|
|
13295
13295
|
onChange: f,
|
|
13296
|
-
"aria-describedby":
|
|
13296
|
+
"aria-describedby": at(e)
|
|
13297
13297
|
});
|
|
13298
13298
|
}
|
|
13299
13299
|
//#endregion
|
|
13300
13300
|
//#region node_modules/@rjsf/core/lib/components/widgets/TextWidget.js
|
|
13301
13301
|
function $g(e) {
|
|
13302
13302
|
let { options: t, registry: n } = e;
|
|
13303
|
-
return (0, G.jsx)(
|
|
13303
|
+
return (0, G.jsx)(b("BaseInputTemplate", n, t), { ...e });
|
|
13304
13304
|
}
|
|
13305
13305
|
//#endregion
|
|
13306
13306
|
//#region node_modules/@rjsf/core/lib/components/widgets/TimeWidget.js
|
|
13307
13307
|
function e_(e) {
|
|
13308
|
-
let { onChange: t, options: n, registry: r } = e, i =
|
|
13308
|
+
let { onChange: t, options: n, registry: r } = e, i = b("BaseInputTemplate", r, n), a = W((e) => t(e ? `${e}:00` : void 0), [t]);
|
|
13309
13309
|
return (0, G.jsx)(i, {
|
|
13310
13310
|
type: "time",
|
|
13311
13311
|
...e,
|
|
@@ -13316,7 +13316,7 @@ function e_(e) {
|
|
|
13316
13316
|
//#region node_modules/@rjsf/core/lib/components/widgets/URLWidget.js
|
|
13317
13317
|
function t_(e) {
|
|
13318
13318
|
let { options: t, registry: n } = e;
|
|
13319
|
-
return (0, G.jsx)(
|
|
13319
|
+
return (0, G.jsx)(b("BaseInputTemplate", n, t), {
|
|
13320
13320
|
type: "url",
|
|
13321
13321
|
...e
|
|
13322
13322
|
});
|
|
@@ -13325,7 +13325,7 @@ function t_(e) {
|
|
|
13325
13325
|
//#region node_modules/@rjsf/core/lib/components/widgets/UpDownWidget.js
|
|
13326
13326
|
function n_(e) {
|
|
13327
13327
|
let { options: t, registry: n } = e;
|
|
13328
|
-
return (0, G.jsx)(
|
|
13328
|
+
return (0, G.jsx)(b("BaseInputTemplate", n, t), {
|
|
13329
13329
|
type: "number",
|
|
13330
13330
|
...e
|
|
13331
13331
|
});
|
|
@@ -13365,9 +13365,9 @@ function i_() {
|
|
|
13365
13365
|
widgets: r_(),
|
|
13366
13366
|
rootSchema: {},
|
|
13367
13367
|
formContext: {},
|
|
13368
|
-
translateString:
|
|
13368
|
+
translateString: ae,
|
|
13369
13369
|
globalFormOptions: {
|
|
13370
|
-
idPrefix:
|
|
13370
|
+
idPrefix: l,
|
|
13371
13371
|
idSeparator: "_",
|
|
13372
13372
|
useFallbackUiForUnsupportedType: !1
|
|
13373
13373
|
}
|
|
@@ -13377,7 +13377,7 @@ function i_() {
|
|
|
13377
13377
|
//#region node_modules/@rjsf/core/lib/components/Form.js
|
|
13378
13378
|
function a_(e, t) {
|
|
13379
13379
|
return {
|
|
13380
|
-
...
|
|
13380
|
+
...Ae(e, [
|
|
13381
13381
|
"schema",
|
|
13382
13382
|
"uiSchema",
|
|
13383
13383
|
"fieldPathId",
|
|
@@ -13399,7 +13399,7 @@ var o_ = class extends pn {
|
|
|
13399
13399
|
errors: t.schemaValidationErrors || [],
|
|
13400
13400
|
errorSchema: t.schemaValidationErrorSchema || {}
|
|
13401
13401
|
}, { errors: r, errorSchema: i } = n;
|
|
13402
|
-
return e.extraErrors && ({errors: r, errorSchema: i} =
|
|
13402
|
+
return e.extraErrors && ({errors: r, errorSchema: i} = Ie(n, e.extraErrors)), t.customErrors && ({errors: r, errorSchema: i} = Ie({
|
|
13403
13403
|
errors: r,
|
|
13404
13404
|
errorSchema: i
|
|
13405
13405
|
}, t.customErrors.ErrorSchema, !0)), {
|
|
@@ -13411,20 +13411,20 @@ var o_ = class extends pn {
|
|
|
13411
13411
|
return null;
|
|
13412
13412
|
}
|
|
13413
13413
|
constructor(e) {
|
|
13414
|
-
if (super(e),
|
|
13414
|
+
if (super(e), p(this, "formElement", void 0), p(this, "pendingChanges", []), p(this, "_isProcessingUserChange", !1), p(this, "getUsedFormData", (e, t) => u(e, t)), p(this, "getFieldNames", (e, t) => ln(e, t)), p(this, "omitExtraData", (e) => {
|
|
13415
13415
|
let { schema: t, schemaUtils: n } = this.state;
|
|
13416
13416
|
return n.omitExtraData(t, e);
|
|
13417
|
-
}),
|
|
13418
|
-
let { registry: n } = this.state, r = Array.isArray(e) ? e : e.split("."), i =
|
|
13417
|
+
}), p(this, "setFieldValue", (e, t) => {
|
|
13418
|
+
let { registry: n } = this.state, r = Array.isArray(e) ? e : e.split("."), i = Je("", n.globalFormOptions, r);
|
|
13419
13419
|
this.onChange(t, r, void 0, i.$id);
|
|
13420
|
-
}),
|
|
13420
|
+
}), p(this, "onChange", (e, t, n, r) => {
|
|
13421
13421
|
this.pendingChanges.push({
|
|
13422
13422
|
newValue: e,
|
|
13423
13423
|
path: t,
|
|
13424
13424
|
newErrorSchema: n,
|
|
13425
13425
|
id: r
|
|
13426
13426
|
}), this.pendingChanges.length === 1 && this.processPendingChange();
|
|
13427
|
-
}),
|
|
13427
|
+
}), p(this, "reset", () => {
|
|
13428
13428
|
let { formData: e, initialFormData: t = Lh, onChange: n } = this.props, r = {
|
|
13429
13429
|
formData: this.getStateFromProps(this.props, e ?? t, void 0, void 0, void 0, !0).formData,
|
|
13430
13430
|
errorSchema: {},
|
|
@@ -13438,7 +13438,7 @@ var o_ = class extends pn {
|
|
|
13438
13438
|
...this.state,
|
|
13439
13439
|
...r
|
|
13440
13440
|
})));
|
|
13441
|
-
}),
|
|
13441
|
+
}), p(this, "onBlur", (e, t) => {
|
|
13442
13442
|
let { onBlur: n, omitExtraData: r, liveOmit: i, liveValidate: a } = this.props;
|
|
13443
13443
|
if (n && n(e, t), r === !0 && i === "onBlur" || a === "onBlur") {
|
|
13444
13444
|
let { onChange: t, extraErrors: n } = this.props, { formData: o } = this.state, s = o, c = { formData: s };
|
|
@@ -13450,7 +13450,7 @@ var o_ = class extends pn {
|
|
|
13450
13450
|
customErrors: i
|
|
13451
13451
|
};
|
|
13452
13452
|
}
|
|
13453
|
-
let l = Object.keys(c).filter((e) => !e.startsWith("schemaValidation")).some((e) => !
|
|
13453
|
+
let l = Object.keys(c).filter((e) => !e.startsWith("schemaValidation")).some((e) => !gt(H(this.state, e), H(c, e)));
|
|
13454
13454
|
this.setState(c, () => {
|
|
13455
13455
|
t && l && t(a_({
|
|
13456
13456
|
...this.state,
|
|
@@ -13458,15 +13458,15 @@ var o_ = class extends pn {
|
|
|
13458
13458
|
}), e);
|
|
13459
13459
|
});
|
|
13460
13460
|
}
|
|
13461
|
-
}),
|
|
13461
|
+
}), p(this, "onFocus", (e, t) => {
|
|
13462
13462
|
let { onFocus: n } = this.props;
|
|
13463
13463
|
n && n(e, t);
|
|
13464
|
-
}),
|
|
13464
|
+
}), p(this, "onSubmit", (e) => {
|
|
13465
13465
|
if (e.preventDefault(), e.target !== e.currentTarget) return;
|
|
13466
13466
|
e.persist();
|
|
13467
13467
|
let { omitExtraData: t, extraErrors: n, noValidate: r, onSubmit: i } = this.props, { formData: a } = this.state;
|
|
13468
13468
|
if (t === !0 && (a = this.omitExtraData(a)), r || this.validateFormWithFormData(a)) {
|
|
13469
|
-
let t = n || {}, r = n ?
|
|
13469
|
+
let t = n || {}, r = n ? st(n) : [];
|
|
13470
13470
|
this.setState({
|
|
13471
13471
|
formData: a,
|
|
13472
13472
|
errors: r,
|
|
@@ -13480,12 +13480,12 @@ var o_ = class extends pn {
|
|
|
13480
13480
|
}, "submitted"), e);
|
|
13481
13481
|
});
|
|
13482
13482
|
}
|
|
13483
|
-
}),
|
|
13483
|
+
}), p(this, "submit", () => {
|
|
13484
13484
|
if (this.formElement.current) {
|
|
13485
13485
|
let e = new CustomEvent("submit", { cancelable: !0 });
|
|
13486
13486
|
e.preventDefault(), this.formElement.current.dispatchEvent(e), this.formElement.current.requestSubmit();
|
|
13487
13487
|
}
|
|
13488
|
-
}),
|
|
13488
|
+
}), p(this, "validateFormWithFormData", (e) => {
|
|
13489
13489
|
let { extraErrors: t, extraErrorsBlockSubmit: n, focusOnFirstError: r, onError: i } = this.props, { errors: a } = this.state, o = this.validate(e), { errors: s, errorSchema: c } = t ? this.mergeErrors(o, t) : o, l = o.errors.length > 0 || t && n;
|
|
13490
13490
|
return l ? (r && (typeof r == "function" ? r(s[0]) : this.focusOnError(s[0])), this.setState({
|
|
13491
13491
|
errors: s,
|
|
@@ -13510,28 +13510,28 @@ var o_ = class extends pn {
|
|
|
13510
13510
|
this.state = {
|
|
13511
13511
|
...this.getStateFromProps(e, i, void 0, void 0, void 0, !0),
|
|
13512
13512
|
_prevExtraErrors: e.extraErrors
|
|
13513
|
-
}, r && !
|
|
13513
|
+
}, r && !gt(this.state.formData, i) && r(a_(this.state)), this.formElement = _n();
|
|
13514
13514
|
}
|
|
13515
13515
|
getSnapshotBeforeUpdate(e, t) {
|
|
13516
|
-
if (!
|
|
13517
|
-
let n =
|
|
13516
|
+
if (!gt(this.props, e)) {
|
|
13517
|
+
let n = St(this.props.formData, e.formData), r = St(this.props.formData, this.state.formData), i = !gt(e.schema, this.props.schema), a = n.length > 0 || !gt(e.formData, this.props.formData), o = r.length > 0 || !gt(this.state.formData, this.props.formData), s = this.getStateFromProps(this.props, this.props.formData, i || a ? void 0 : this.state.retrievedSchema, i, n, !o);
|
|
13518
13518
|
return {
|
|
13519
13519
|
nextState: s,
|
|
13520
|
-
shouldUpdate: !
|
|
13520
|
+
shouldUpdate: !gt(s, t)
|
|
13521
13521
|
};
|
|
13522
13522
|
}
|
|
13523
13523
|
return { shouldUpdate: !1 };
|
|
13524
13524
|
}
|
|
13525
13525
|
componentDidUpdate(e, t, n) {
|
|
13526
13526
|
if (n.shouldUpdate) {
|
|
13527
|
-
let { nextState: e } = n, r = !
|
|
13527
|
+
let { nextState: e } = n, r = !gt(e.formData, this.props.formData), i = this._isProcessingUserChange;
|
|
13528
13528
|
if (this._isProcessingUserChange = !1, i && r) return;
|
|
13529
|
-
r && !
|
|
13529
|
+
r && !gt(e.formData, t.formData) && this.props.onChange && this.props.onChange(a_(e)), this.setState(e);
|
|
13530
13530
|
}
|
|
13531
13531
|
}
|
|
13532
13532
|
getStateFromProps(e, t, n, r = !1, i = [], a = !1) {
|
|
13533
13533
|
let o = this.state || {}, s = "schema" in e ? e.schema : this.props.schema, c = "validator" in e ? e.validator : this.props.validator, l = ("uiSchema" in e ? e.uiSchema : this.props.uiSchema) || {}, u = e.formData === void 0 && this.props.formData === void 0, d = t !== void 0, f = "liveValidate" in e ? e.liveValidate : this.props.liveValidate, p = d && !e.noValidate && f, m = "experimental_defaultFormStateBehavior" in e ? e.experimental_defaultFormStateBehavior : this.props.experimental_defaultFormStateBehavior, h = "experimental_customMergeAllOf" in e ? e.experimental_customMergeAllOf : this.props.experimental_customMergeAllOf, g = o.schemaUtils;
|
|
13534
|
-
(!g || g.doesSchemaUtilsDiffer(c, s, m, h)) && (g =
|
|
13534
|
+
(!g || g.doesSchemaUtilsDiffer(c, s, m, h)) && (g = be(c, s, m, h));
|
|
13535
13535
|
let _ = g.getRootSchema(), v = t;
|
|
13536
13536
|
t === Lh ? v = void 0 : t === void 0 && u && (v = o.formData);
|
|
13537
13537
|
let y = g.getDefaultFormState(_, v, !1, o.initialDefaultsGenerated), b = this.updateRetrievedSchema(n ?? g.retrieveSchema(_, y)), x = () => e.noValidate || r ? {
|
|
@@ -13543,15 +13543,15 @@ var o_ = class extends pn {
|
|
|
13543
13543
|
} : {
|
|
13544
13544
|
errors: o.schemaValidationErrors || [],
|
|
13545
13545
|
errorSchema: o.schemaValidationErrorSchema || {}
|
|
13546
|
-
}, S, C, w = o.schemaValidationErrors,
|
|
13546
|
+
}, S, C, w = o.schemaValidationErrors, E = o.schemaValidationErrorSchema;
|
|
13547
13547
|
if (p && !a) {
|
|
13548
13548
|
let e = this.liveValidate(_, g, o.errorSchema, y, void 0, o.customErrors, n, n !== void 0);
|
|
13549
|
-
S = e.errors, C = e.errorSchema, w = e.schemaValidationErrors,
|
|
13549
|
+
S = e.errors, C = e.errorSchema, w = e.schemaValidationErrors, E = e.schemaValidationErrorSchema;
|
|
13550
13550
|
} else {
|
|
13551
13551
|
let t = x();
|
|
13552
13552
|
if (S = t.errors, C = t.errorSchema, i.length > 0 && !p) {
|
|
13553
13553
|
let e = i.reduce((e, t) => (e[t] = void 0, e), {});
|
|
13554
|
-
C =
|
|
13554
|
+
C = E = T(t.errorSchema, e, "preventDuplicates");
|
|
13555
13555
|
}
|
|
13556
13556
|
let n = this.mergeErrors({
|
|
13557
13557
|
errorSchema: C,
|
|
@@ -13559,33 +13559,33 @@ var o_ = class extends pn {
|
|
|
13559
13559
|
}, e.extraErrors, o.customErrors);
|
|
13560
13560
|
S = n.errors, C = n.errorSchema;
|
|
13561
13561
|
}
|
|
13562
|
-
let
|
|
13562
|
+
let D = this.getRegistry(e, _, g), O = gt(o.registry, D) ? o.registry : D, k = O.uiSchemaDefinitions ? _t(_, l, O) : l, A = o.fieldPathId && o.fieldPathId?.$id === O.globalFormOptions.idPrefix ? o.fieldPathId : Je("", O.globalFormOptions);
|
|
13563
13563
|
return {
|
|
13564
13564
|
schemaUtils: g,
|
|
13565
13565
|
schema: _,
|
|
13566
|
-
uiSchema:
|
|
13567
|
-
fieldPathId:
|
|
13566
|
+
uiSchema: k,
|
|
13567
|
+
fieldPathId: A,
|
|
13568
13568
|
formData: y,
|
|
13569
13569
|
edit: d,
|
|
13570
13570
|
errors: S,
|
|
13571
13571
|
errorSchema: C,
|
|
13572
13572
|
schemaValidationErrors: w,
|
|
13573
|
-
schemaValidationErrorSchema:
|
|
13573
|
+
schemaValidationErrorSchema: E,
|
|
13574
13574
|
retrievedSchema: b,
|
|
13575
13575
|
initialDefaultsGenerated: !0,
|
|
13576
|
-
registry:
|
|
13576
|
+
registry: O
|
|
13577
13577
|
};
|
|
13578
13578
|
}
|
|
13579
13579
|
shouldComponentUpdate(e, t) {
|
|
13580
13580
|
let { experimental_componentUpdateStrategy: n = "customDeep" } = this.props;
|
|
13581
|
-
return
|
|
13581
|
+
return jt(this, e, t, n);
|
|
13582
13582
|
}
|
|
13583
13583
|
validate(e, t = this.state.schema, n, r) {
|
|
13584
13584
|
let i = n || this.state.schemaUtils, { customValidate: a, transformErrors: o, uiSchema: s } = this.props, c = r ?? i.retrieveSchema(t, e);
|
|
13585
13585
|
return i.getValidator().validateFormData(e, c, a, o, s);
|
|
13586
13586
|
}
|
|
13587
13587
|
renderErrors(e) {
|
|
13588
|
-
let { errors: t, errorSchema: n, schema: r, uiSchema: i } = this.state, a =
|
|
13588
|
+
let { errors: t, errorSchema: n, schema: r, uiSchema: i } = this.state, a = b("ErrorListTemplate", e, S(i));
|
|
13589
13589
|
return t && t.length ? (0, G.jsx)(a, {
|
|
13590
13590
|
errors: t,
|
|
13591
13591
|
errorSchema: n || {},
|
|
@@ -13597,11 +13597,11 @@ var o_ = class extends pn {
|
|
|
13597
13597
|
mergeErrors(e, t, n) {
|
|
13598
13598
|
let r = e.errorSchema, i = e.errors;
|
|
13599
13599
|
if (t) {
|
|
13600
|
-
let n =
|
|
13600
|
+
let n = Ie(e, t);
|
|
13601
13601
|
r = n.errorSchema, i = n.errors;
|
|
13602
13602
|
}
|
|
13603
13603
|
if (n) {
|
|
13604
|
-
let t =
|
|
13604
|
+
let t = Ie(e, n.ErrorSchema, !0);
|
|
13605
13605
|
r = t.errorSchema, i = t.errors;
|
|
13606
13606
|
}
|
|
13607
13607
|
return {
|
|
@@ -13611,7 +13611,7 @@ var o_ = class extends pn {
|
|
|
13611
13611
|
}
|
|
13612
13612
|
liveValidate(e, t, n, r, i, a, o, s = !1) {
|
|
13613
13613
|
let c = this.validate(r, e, t, o), l = c.errors, u = c.errorSchema;
|
|
13614
|
-
s && (u =
|
|
13614
|
+
s && (u = T(n, c.errorSchema, "preventDuplicates"));
|
|
13615
13615
|
let d = l, f = u;
|
|
13616
13616
|
return {
|
|
13617
13617
|
...this.mergeErrors({
|
|
@@ -13625,26 +13625,26 @@ var o_ = class extends pn {
|
|
|
13625
13625
|
processPendingChange() {
|
|
13626
13626
|
if (this.pendingChanges.length === 0) return;
|
|
13627
13627
|
this._isProcessingUserChange = !0;
|
|
13628
|
-
let { newValue: e, path: t, id: n } = this.pendingChanges[0], { newErrorSchema: r } = this.pendingChanges[0], { extraErrors: i, omitExtraData: a, liveOmit: o, noValidate: s, liveValidate: l, onChange: u } = this.props, { formData: d, schemaUtils: f, schema: p, fieldPathId: m, schemaValidationErrorSchema: h, errors: g } = this.state, { customErrors: _, errorSchema: v } = this.state, y = m.path[0] || "", b = !t || t.length === 0 || t.length === 1 && t[0] === y, x = this.state.retrievedSchema, S = b ? e :
|
|
13629
|
-
if (
|
|
13630
|
-
e === Ih ? Ff(S, t) : b ||
|
|
13628
|
+
let { newValue: e, path: t, id: n } = this.pendingChanges[0], { newErrorSchema: r } = this.pendingChanges[0], { extraErrors: i, omitExtraData: a, liveOmit: o, noValidate: s, liveValidate: l, onChange: u } = this.props, { formData: d, schemaUtils: f, schema: p, fieldPathId: m, schemaValidationErrorSchema: h, errors: g } = this.state, { customErrors: _, errorSchema: v } = this.state, y = m.path[0] || "", b = !t || t.length === 0 || t.length === 1 && t[0] === y, x = this.state.retrievedSchema, S = b ? e : yt(d), C = re(S) && Object.keys(S).length > 0 && Object.values(S).every((e) => e === void 0) && d == null ? void 0 : S;
|
|
13629
|
+
if (re(S) || Array.isArray(S)) {
|
|
13630
|
+
e === Ih ? Ff(S, t) : b || Xt(S, t, e);
|
|
13631
13631
|
let n = this.getStateFromProps(this.props, C, void 0, void 0, void 0, !0);
|
|
13632
13632
|
S = n.formData, x = n.retrievedSchema;
|
|
13633
13633
|
}
|
|
13634
|
-
let
|
|
13634
|
+
let w = !s && (l === !0 || l === "onChange"), T = {
|
|
13635
13635
|
formData: S,
|
|
13636
13636
|
schema: p
|
|
13637
|
-
},
|
|
13638
|
-
if (a === !0 && (o === !0 || o === "onChange") && (
|
|
13639
|
-
else if (_ ||= new
|
|
13640
|
-
let e =
|
|
13637
|
+
}, E = S;
|
|
13638
|
+
if (a === !0 && (o === !0 || o === "onChange") && (E = this.omitExtraData(S), T = { formData: E }), r) if (!Mt(b ? h : H(h, t))) b ? v = r : Xt(v, t, r);
|
|
13639
|
+
else if (_ ||= new c(), b) {
|
|
13640
|
+
let e = H(r, ce);
|
|
13641
13641
|
e && _.setErrors(e);
|
|
13642
|
-
} else
|
|
13643
|
-
else _ &&
|
|
13644
|
-
if (
|
|
13645
|
-
let e = this.liveValidate(p, f, v,
|
|
13646
|
-
|
|
13647
|
-
formData:
|
|
13642
|
+
} else Xt(_.ErrorSchema, t, r);
|
|
13643
|
+
else _ && H(_.ErrorSchema, [...t, "__errors"]) && _.clearErrors(t);
|
|
13644
|
+
if (w && this.pendingChanges.length === 1) {
|
|
13645
|
+
let e = this.liveValidate(p, f, v, E, i, _, x);
|
|
13646
|
+
T = {
|
|
13647
|
+
formData: E,
|
|
13648
13648
|
...e,
|
|
13649
13649
|
customErrors: _
|
|
13650
13650
|
};
|
|
@@ -13653,24 +13653,24 @@ var o_ = class extends pn {
|
|
|
13653
13653
|
errorSchema: v,
|
|
13654
13654
|
errors: g
|
|
13655
13655
|
}, i, _);
|
|
13656
|
-
|
|
13657
|
-
formData:
|
|
13656
|
+
T = {
|
|
13657
|
+
formData: E,
|
|
13658
13658
|
...e,
|
|
13659
13659
|
customErrors: _
|
|
13660
13660
|
};
|
|
13661
13661
|
}
|
|
13662
|
-
this.setState(
|
|
13662
|
+
this.setState(T, () => {
|
|
13663
13663
|
u && u(a_({
|
|
13664
13664
|
...this.state,
|
|
13665
|
-
...
|
|
13665
|
+
...T
|
|
13666
13666
|
}), n), this.pendingChanges.shift(), this.processPendingChange();
|
|
13667
13667
|
});
|
|
13668
13668
|
}
|
|
13669
13669
|
updateRetrievedSchema(e) {
|
|
13670
|
-
return
|
|
13670
|
+
return gt(e, this.state?.retrievedSchema) ? this.state.retrievedSchema : e;
|
|
13671
13671
|
}
|
|
13672
13672
|
getGlobalFormOptions(e) {
|
|
13673
|
-
let { uiSchema: t = {}, experimental_componentUpdateStrategy: n, idSeparator: r = "_", idPrefix: i =
|
|
13673
|
+
let { uiSchema: t = {}, experimental_componentUpdateStrategy: n, idSeparator: r = "_", idPrefix: i = l, nameGenerator: a, useFallbackUiForUnsupportedType: o = !1 } = e;
|
|
13674
13674
|
return {
|
|
13675
13675
|
idPrefix: t["ui:rootFieldId"] || i,
|
|
13676
13676
|
idSeparator: r,
|
|
@@ -13702,32 +13702,32 @@ var o_ = class extends pn {
|
|
|
13702
13702
|
formContext: e.formContext || c,
|
|
13703
13703
|
schemaUtils: n,
|
|
13704
13704
|
translateString: r || l,
|
|
13705
|
-
globalUiOptions: i[
|
|
13705
|
+
globalUiOptions: i[A],
|
|
13706
13706
|
globalFormOptions: this.getGlobalFormOptions(e),
|
|
13707
13707
|
uiSchemaDefinitions: i["ui:definitions"] ?? {}
|
|
13708
13708
|
};
|
|
13709
13709
|
}
|
|
13710
13710
|
focusOnError(e) {
|
|
13711
|
-
let { idPrefix: t = "root", idSeparator: n = "_" } = this.props, { property: r } = e, i =
|
|
13711
|
+
let { idPrefix: t = "root", idSeparator: n = "_" } = this.props, { property: r } = e, i = o(r);
|
|
13712
13712
|
i[0] === "" ? i[0] = t : i.unshift(t);
|
|
13713
|
-
let a = i.join(n),
|
|
13714
|
-
|
|
13713
|
+
let a = i.join(n), s = this.formElement.current.elements[a];
|
|
13714
|
+
s ||= this.formElement.current.querySelector(`input[id^="${a}"`), s && s.length && (s = s[0]), s && s.focus();
|
|
13715
13715
|
}
|
|
13716
13716
|
validateForm() {
|
|
13717
13717
|
let { omitExtraData: e } = this.props, { formData: t } = this.state;
|
|
13718
13718
|
return e === !0 && (t = this.omitExtraData(t)), this.validateFormWithFormData(t);
|
|
13719
13719
|
}
|
|
13720
13720
|
render() {
|
|
13721
|
-
let { children: e, id: t, className: n = "", tagName: r, name: i, method: a, target: o, action: s, autoComplete: c, enctype: l, acceptCharset: u, noHtml5Validate: d = !1, disabled:
|
|
13722
|
-
|
|
13723
|
-
...
|
|
13721
|
+
let { children: e, id: t, className: n = "", tagName: r, name: i, method: a, target: o, action: s, autoComplete: c, enctype: l, acceptCharset: u, noHtml5Validate: d = !1, disabled: p, readonly: m, showErrorList: h = "top", _internalFormWrapper: g } = this.props, { schema: _, uiSchema: v, formData: y, errorSchema: b, fieldPathId: x, registry: C } = this.state, { SchemaField: w } = C.fields, { SubmitButton: T } = C.templates.ButtonTemplates, E = g ? r : void 0, D = g || r || "form", { [f]: O = {} } = S(v);
|
|
13722
|
+
p && (O = {
|
|
13723
|
+
...O,
|
|
13724
13724
|
props: {
|
|
13725
|
-
...
|
|
13725
|
+
...O.props,
|
|
13726
13726
|
disabled: !0
|
|
13727
13727
|
}
|
|
13728
13728
|
});
|
|
13729
|
-
let
|
|
13730
|
-
return (0, G.jsxs)(
|
|
13729
|
+
let k = { [De]: { [f]: O } };
|
|
13730
|
+
return (0, G.jsxs)(D, {
|
|
13731
13731
|
className: n || "rjsf",
|
|
13732
13732
|
id: t,
|
|
13733
13733
|
name: i,
|
|
@@ -13739,29 +13739,29 @@ var o_ = class extends pn {
|
|
|
13739
13739
|
acceptCharset: u,
|
|
13740
13740
|
noValidate: d,
|
|
13741
13741
|
onSubmit: this.onSubmit,
|
|
13742
|
-
as:
|
|
13742
|
+
as: E,
|
|
13743
13743
|
ref: this.formElement,
|
|
13744
13744
|
children: [
|
|
13745
|
-
|
|
13746
|
-
(0, G.jsx)(
|
|
13745
|
+
h === "top" && this.renderErrors(C),
|
|
13746
|
+
(0, G.jsx)(w, {
|
|
13747
13747
|
name: "",
|
|
13748
|
-
schema:
|
|
13749
|
-
uiSchema:
|
|
13750
|
-
errorSchema:
|
|
13751
|
-
fieldPathId:
|
|
13752
|
-
formData:
|
|
13748
|
+
schema: _,
|
|
13749
|
+
uiSchema: v,
|
|
13750
|
+
errorSchema: b,
|
|
13751
|
+
fieldPathId: x,
|
|
13752
|
+
formData: y,
|
|
13753
13753
|
onChange: this.onChange,
|
|
13754
13754
|
onBlur: this.onBlur,
|
|
13755
13755
|
onFocus: this.onFocus,
|
|
13756
|
-
registry:
|
|
13757
|
-
disabled:
|
|
13758
|
-
readonly:
|
|
13756
|
+
registry: C,
|
|
13757
|
+
disabled: p,
|
|
13758
|
+
readonly: m
|
|
13759
13759
|
}),
|
|
13760
|
-
e || (0, G.jsx)(
|
|
13761
|
-
uiSchema:
|
|
13762
|
-
registry:
|
|
13760
|
+
e || (0, G.jsx)(T, {
|
|
13761
|
+
uiSchema: k,
|
|
13762
|
+
registry: C
|
|
13763
13763
|
}),
|
|
13764
|
-
|
|
13764
|
+
h === "bottom" && this.renderErrors(C)
|
|
13765
13765
|
]
|
|
13766
13766
|
});
|
|
13767
13767
|
}
|
|
@@ -13810,7 +13810,7 @@ var o_ = class extends pn {
|
|
|
13810
13810
|
registry: o
|
|
13811
13811
|
});
|
|
13812
13812
|
}, u_ = ({ canAdd: e, className: t, disabled: n, fieldPathId: r, uiSchema: i, items: a, onAddClick: o, readonly: s, registry: c, required: l, title: u }) => {
|
|
13813
|
-
let d =
|
|
13813
|
+
let d = S(i).title || u;
|
|
13814
13814
|
return /* @__PURE__ */ (0, G.jsx)("fieldset", {
|
|
13815
13815
|
className: t,
|
|
13816
13816
|
id: r.$id,
|
|
@@ -13869,9 +13869,9 @@ var o_ = class extends pn {
|
|
|
13869
13869
|
type: "button",
|
|
13870
13870
|
className: "dc__outline-none-imp p-0 dc__transparent flex cursor",
|
|
13871
13871
|
title: "Remove",
|
|
13872
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
13872
|
+
children: /* @__PURE__ */ (0, G.jsx)(Jt, { className: "icon-dim-16 fcn-6" })
|
|
13873
13873
|
}), h_ = ({ uiSchema: e }) => {
|
|
13874
|
-
let { submitText: t, norender: n, props: r = {} } =
|
|
13874
|
+
let { submitText: t, norender: n, props: r = {} } = _(e);
|
|
13875
13875
|
return n ? null : /* @__PURE__ */ (0, G.jsx)("div", {
|
|
13876
13876
|
className: "flexbox flex-justify-end",
|
|
13877
13877
|
children: /* @__PURE__ */ (0, G.jsx)("button", {
|
|
@@ -13896,7 +13896,7 @@ var o_ = class extends pn {
|
|
|
13896
13896
|
children: "\xA0*"
|
|
13897
13897
|
})]
|
|
13898
13898
|
}), __ = (e) => {
|
|
13899
|
-
let { id: t, label: n, children: r, errors: i, hidden: a, required: o, displayLabel: s, registry: c, uiSchema: l, classNames: u, schema: d, rawDescription: f } = e, p =
|
|
13899
|
+
let { id: t, label: n, children: r, errors: i, hidden: a, required: o, displayLabel: s, registry: c, uiSchema: l, classNames: u, schema: d, rawDescription: f } = e, p = b("WrapIfAdditionalTemplate", c, S(l)), m = v in d, h = (s || d.type === "boolean") && !m, g = d.type === "array";
|
|
13900
13900
|
return a ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
13901
13901
|
className: "hidden",
|
|
13902
13902
|
children: r
|
|
@@ -13927,7 +13927,7 @@ var o_ = class extends pn {
|
|
|
13927
13927
|
]
|
|
13928
13928
|
});
|
|
13929
13929
|
}, v_ = ({ errors: e = [], fieldPathId: t }) => {
|
|
13930
|
-
let n =
|
|
13930
|
+
let n = kt(t);
|
|
13931
13931
|
return e.length > 0 && /* @__PURE__ */ (0, G.jsx)("span", {
|
|
13932
13932
|
className: "display-grid rjsf-form-template__field--error dc__gap-12",
|
|
13933
13933
|
id: n,
|
|
@@ -13938,8 +13938,8 @@ var o_ = class extends pn {
|
|
|
13938
13938
|
});
|
|
13939
13939
|
}, y_ = (e, t) => {
|
|
13940
13940
|
switch (e) {
|
|
13941
|
-
case
|
|
13942
|
-
default: return
|
|
13941
|
+
case j.NewStringDefault: return "";
|
|
13942
|
+
default: return ae(e, t);
|
|
13943
13943
|
}
|
|
13944
13944
|
}, b_ = (e) => {
|
|
13945
13945
|
try {
|
|
@@ -14013,32 +14013,32 @@ var o_ = class extends pn {
|
|
|
14013
14013
|
let r = structuredClone(e);
|
|
14014
14014
|
return r && (Object.entries(n).forEach(([n, i]) => {
|
|
14015
14015
|
if (n === i || !i) return;
|
|
14016
|
-
let a =
|
|
14016
|
+
let a = Re({
|
|
14017
14017
|
json: t,
|
|
14018
|
-
path:
|
|
14018
|
+
path: g(n),
|
|
14019
14019
|
resultType: "value",
|
|
14020
14020
|
wrap: !1
|
|
14021
14021
|
});
|
|
14022
14022
|
r = a === void 0 ? O_(r, n) : te([en(n, a), r]);
|
|
14023
|
-
let o =
|
|
14023
|
+
let o = Re({
|
|
14024
14024
|
json: e,
|
|
14025
|
-
path:
|
|
14025
|
+
path: g(n),
|
|
14026
14026
|
resultType: "value",
|
|
14027
14027
|
wrap: !1
|
|
14028
14028
|
});
|
|
14029
14029
|
o !== void 0 && (r = te([en(i, o), r]));
|
|
14030
|
-
}), t && r ?
|
|
14030
|
+
}), t && r ? Ue(t, L(t, r), !1, !1).newDocument : r);
|
|
14031
14031
|
}, A_ = ({ formData: e, schemaPathToUpdatePathMap: t }) => te([...Object.entries(t).map(([t, n]) => {
|
|
14032
14032
|
if (t === n || !n) return {};
|
|
14033
|
-
let r =
|
|
14033
|
+
let r = Re({
|
|
14034
14034
|
json: e,
|
|
14035
|
-
path:
|
|
14035
|
+
path: g(n),
|
|
14036
14036
|
resultType: "value",
|
|
14037
14037
|
wrap: !1
|
|
14038
14038
|
});
|
|
14039
14039
|
return r === void 0 ? {} : en(t, r);
|
|
14040
14040
|
}), structuredClone(e)]), j_ = ({ disabled: e, formData: t, fieldPathId: n, onAddProperty: r, properties: i, readonly: a, registry: o, required: s, schema: c, title: l, uiSchema: u }) => {
|
|
14041
|
-
let d = !!c.additionalProperties, f =
|
|
14041
|
+
let d = !!c.additionalProperties, f = Te(c, u, t) && /* @__PURE__ */ (0, G.jsx)(p_, {
|
|
14042
14042
|
label: l,
|
|
14043
14043
|
className: "object-property-expand",
|
|
14044
14044
|
onClick: r,
|
|
@@ -14051,13 +14051,13 @@ var o_ = class extends pn {
|
|
|
14051
14051
|
try {
|
|
14052
14052
|
let e = w_(t);
|
|
14053
14053
|
if (!e.path) throw Error("Empty path property of hidden descriptor field");
|
|
14054
|
-
let n =
|
|
14055
|
-
path:
|
|
14054
|
+
let n = Re({
|
|
14055
|
+
path: g(e.path),
|
|
14056
14056
|
json: o.formContext,
|
|
14057
14057
|
resultType: "value",
|
|
14058
14058
|
wrap: !1
|
|
14059
14059
|
});
|
|
14060
|
-
return !(n === void 0 ||
|
|
14060
|
+
return !(n === void 0 || gt(e.value, n));
|
|
14061
14061
|
} catch {
|
|
14062
14062
|
return !0;
|
|
14063
14063
|
}
|
|
@@ -14081,7 +14081,7 @@ var o_ = class extends pn {
|
|
|
14081
14081
|
return /* @__PURE__ */ (0, G.jsxs)("fieldset", {
|
|
14082
14082
|
id: t.$id,
|
|
14083
14083
|
children: [l && /* @__PURE__ */ (0, G.jsx)(g_, {
|
|
14084
|
-
id:
|
|
14084
|
+
id: sn(t),
|
|
14085
14085
|
title: a,
|
|
14086
14086
|
required: r,
|
|
14087
14087
|
schema: i,
|
|
@@ -14152,7 +14152,7 @@ var o_ = class extends pn {
|
|
|
14152
14152
|
inputId: `devtron-rjsf-select__${t}`,
|
|
14153
14153
|
name: t,
|
|
14154
14154
|
isMulti: n,
|
|
14155
|
-
value: i === void 0 ? m : ((e) => n ? p.filter((t) => e.some((e) =>
|
|
14155
|
+
value: i === void 0 ? m : ((e) => n ? p.filter((t) => e.some((e) => y(e, t.value))) : p.find((t) => y(e, t.value)))(i),
|
|
14156
14156
|
autoFocus: s,
|
|
14157
14157
|
onChange: h,
|
|
14158
14158
|
options: p,
|