@keycloak/keycloak-account-ui 26.0.7 → 26.0.8
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/lib/keycloak-account-ui.js +419 -419
- package/lib/keycloak-account-ui.js.map +1 -1
- package/package.json +4 -4
|
@@ -42,7 +42,7 @@ function y(...e) {
|
|
|
42
42
|
n.call(i, a) && i[a] && t.push(a);
|
|
43
43
|
}), t.join(" ");
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Xs = {
|
|
46
46
|
content: "pf-v5-c-content",
|
|
47
47
|
modifiers: {
|
|
48
48
|
visited: "pf-m-visited",
|
|
@@ -74,7 +74,7 @@ const Ks = {
|
|
|
74
74
|
name: "--pf-v5-global--breakpoint--xl",
|
|
75
75
|
value: "1200px",
|
|
76
76
|
var: "var(--pf-v5-global--breakpoint--xl)"
|
|
77
|
-
},
|
|
77
|
+
}, Xd = {
|
|
78
78
|
name: "--pf-v5-global--breakpoint--2xl",
|
|
79
79
|
value: "1450px",
|
|
80
80
|
var: "var(--pf-v5-global--breakpoint--2xl)"
|
|
@@ -117,7 +117,7 @@ const Wn = {
|
|
|
117
117
|
md: parseInt(Wd.value),
|
|
118
118
|
lg: parseInt(Gd.value),
|
|
119
119
|
xl: parseInt(To.value),
|
|
120
|
-
"2xl": parseInt(
|
|
120
|
+
"2xl": parseInt(Xd.value)
|
|
121
121
|
}, rr = {
|
|
122
122
|
sm: parseInt(Tm.value),
|
|
123
123
|
md: parseInt(Rm.value),
|
|
@@ -129,7 +129,7 @@ const Wn = {
|
|
|
129
129
|
* tabbable 6.2.0
|
|
130
130
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
131
131
|
*/
|
|
132
|
-
var
|
|
132
|
+
var Kd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ua = /* @__PURE__ */ Kd.join(","), qd = typeof Element > "u", li = qd ? function() {
|
|
133
133
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, pa = !qd && Element.prototype.getRootNode ? function(e) {
|
|
134
134
|
var t;
|
|
135
135
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -255,7 +255,7 @@ var Xd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
255
255
|
} else if (i === "non-zero-area")
|
|
256
256
|
return Vl(t);
|
|
257
257
|
return !1;
|
|
258
|
-
},
|
|
258
|
+
}, Xm = function(t) {
|
|
259
259
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
260
260
|
for (var n = t.parentElement; n; ) {
|
|
261
261
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -274,10 +274,10 @@ var Xd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
274
274
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
275
275
|
// note related to `candidateSelectors`)
|
|
276
276
|
ma(n) || Bm(n) || Gm(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
277
|
-
jm(n) ||
|
|
278
|
-
},
|
|
277
|
+
jm(n) || Xm(n));
|
|
278
|
+
}, Ks = function(t, n) {
|
|
279
279
|
return !(zm(n) || ii(n) < 0 || !ha(t, n));
|
|
280
|
-
},
|
|
280
|
+
}, Km = function(t) {
|
|
281
281
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
282
282
|
return !!(isNaN(n) || n >= 0);
|
|
283
283
|
}, qm = function e(t) {
|
|
@@ -298,11 +298,11 @@ var Xd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
298
298
|
n = n || {};
|
|
299
299
|
var i;
|
|
300
300
|
return n.getShadowRoot ? i = Yd([t], n.includeContainer, {
|
|
301
|
-
filter:
|
|
301
|
+
filter: Ks.bind(null, n),
|
|
302
302
|
flatten: !1,
|
|
303
303
|
getShadowRoot: n.getShadowRoot,
|
|
304
|
-
shadowRootFilter:
|
|
305
|
-
}) : i = Jd(t, n.includeContainer,
|
|
304
|
+
shadowRootFilter: Km
|
|
305
|
+
}) : i = Jd(t, n.includeContainer, Ks.bind(null, n)), qm(i);
|
|
306
306
|
}, Ym = function(t, n) {
|
|
307
307
|
n = n || {};
|
|
308
308
|
var i;
|
|
@@ -314,8 +314,8 @@ var Xd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
314
314
|
}, xi = function(t, n) {
|
|
315
315
|
if (n = n || {}, !t)
|
|
316
316
|
throw new Error("No node provided");
|
|
317
|
-
return li.call(t, ua) === !1 ? !1 :
|
|
318
|
-
}, Zm = /* @__PURE__ */
|
|
317
|
+
return li.call(t, ua) === !1 ? !1 : Ks(n, t);
|
|
318
|
+
}, Zm = /* @__PURE__ */ Kd.concat("iframe").join(","), bs = function(t, n) {
|
|
319
319
|
if (n = n || {}, !t)
|
|
320
320
|
throw new Error("No node provided");
|
|
321
321
|
return li.call(t, Zm) === !1 ? !1 : ha(n, t);
|
|
@@ -525,12 +525,12 @@ var zl = {
|
|
|
525
525
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
526
526
|
*/
|
|
527
527
|
nextTabbableNode: function(F) {
|
|
528
|
-
var
|
|
529
|
-
return V < 0 ?
|
|
528
|
+
var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, V = L.indexOf(F);
|
|
529
|
+
return V < 0 ? X ? j.slice(j.indexOf(F) + 1).find(function(U) {
|
|
530
530
|
return xi(U);
|
|
531
531
|
}) : j.slice(0, j.indexOf(F)).reverse().find(function(U) {
|
|
532
532
|
return xi(U);
|
|
533
|
-
}) : L[V + (
|
|
533
|
+
}) : L[V + (X ? 1 : -1)];
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
}), s.tabbableGroups = s.containerGroups.filter(function(O) {
|
|
@@ -568,17 +568,17 @@ var zl = {
|
|
|
568
568
|
P ? G = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : G = s.tabbableGroups[0].firstTabbableNode;
|
|
569
569
|
else if (P) {
|
|
570
570
|
var b = Gl(s.tabbableGroups, function(W) {
|
|
571
|
-
var
|
|
572
|
-
return L ===
|
|
571
|
+
var K = W.firstTabbableNode;
|
|
572
|
+
return L === K;
|
|
573
573
|
});
|
|
574
574
|
if (b < 0 && (J.container === L || bs(L, a.tabbableOptions) && !xi(L, a.tabbableOptions) && !J.nextTabbableNode(L, !1)) && (b = B), b >= 0) {
|
|
575
|
-
var F = b === 0 ? s.tabbableGroups.length - 1 : b - 1,
|
|
576
|
-
G = ii(L) >= 0 ?
|
|
575
|
+
var F = b === 0 ? s.tabbableGroups.length - 1 : b - 1, X = s.tabbableGroups[F];
|
|
576
|
+
G = ii(L) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
|
|
577
577
|
} else ur(j) || (G = J.nextTabbableNode(L, !1));
|
|
578
578
|
} else {
|
|
579
579
|
var V = Gl(s.tabbableGroups, function(W) {
|
|
580
|
-
var
|
|
581
|
-
return L ===
|
|
580
|
+
var K = W.lastTabbableNode;
|
|
581
|
+
return L === K;
|
|
582
582
|
});
|
|
583
583
|
if (V < 0 && (J.container === L || bs(L, a.tabbableOptions) && !xi(L, a.tabbableOptions) && !J.nextTabbableNode(L)) && (V = B), V >= 0) {
|
|
584
584
|
var U = V === s.tabbableGroups.length - 1 ? 0 : V + 1, q = s.tabbableGroups[U];
|
|
@@ -814,7 +814,7 @@ const ef = (e, t) => Object.entries(e || {}).reduce((n, [i, r]) => i === "defaul
|
|
|
814
814
|
return "";
|
|
815
815
|
}
|
|
816
816
|
return Object.entries(e || {}).map(([a, s]) => `${n}${s}${a !== "default" ? `-on-${a}` : ""}${r && a !== "default" ? "-height" : ""}`).map(pr).map((a) => a.replace(/-?(\dxl)/gi, (s, l) => `_${l}`)).map((a) => t.modifiers[a]).filter(Boolean).join(" ");
|
|
817
|
-
}, tf = (e) => e === null ? null : e >= rr["2xl"] ? "2xl" : e >= rr.xl ? "xl" : e >= rr.lg ? "lg" : e >= rr.md ? "md" : e >= rr.sm ? "sm" : "default", nf = (e) => e === null ? null : e >= _i["2xl"] ? "2xl" : e >= _i.xl ? "xl" : e >= _i.lg ? "lg" : e >= _i.md ? "md" : e >= _i.sm ? "sm" : "default", dh = (e) => e.toUpperCase().replace("-", "").replace("_", ""), pr = (e) => e.replace(/([-_][a-z])/gi, dh), ze = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
817
|
+
}, tf = (e) => e === null ? null : e >= rr["2xl"] ? "2xl" : e >= rr.xl ? "xl" : e >= rr.lg ? "lg" : e >= rr.md ? "md" : e >= rr.sm ? "sm" : "default", nf = (e) => e === null ? null : e >= _i["2xl"] ? "2xl" : e >= _i.xl ? "xl" : e >= _i.lg ? "lg" : e >= _i.md ? "md" : e >= _i.sm ? "sm" : "default", dh = (e) => e.toUpperCase().replace("-", "").replace("_", ""), pr = (e) => e.replace(/([-_][a-z])/gi, dh), ze = !!(typeof window < "u" && window.document && window.document.createElement), Xl = (e, t) => {
|
|
818
818
|
const n = getComputedStyle(t), i = () => {
|
|
819
819
|
let s = "";
|
|
820
820
|
const l = {
|
|
@@ -839,8 +839,8 @@ const ef = (e, t) => Object.entries(e || {}).reduce((n, [i, r]) => i === "defaul
|
|
|
839
839
|
}, uh = (e, t) => {
|
|
840
840
|
const n = fh(e).width;
|
|
841
841
|
let i = t;
|
|
842
|
-
if (
|
|
843
|
-
for (;
|
|
842
|
+
if (Xl(t, e) > n) {
|
|
843
|
+
for (; Xl(`...${i}`, e) > n; )
|
|
844
844
|
i = i.substring(1);
|
|
845
845
|
e.value ? e.value = `...${i}` : e.innerText = `...${i}`;
|
|
846
846
|
} else
|
|
@@ -874,7 +874,7 @@ sn.defaultProps = {
|
|
|
874
874
|
};
|
|
875
875
|
const rf = "*";
|
|
876
876
|
let hh = 0;
|
|
877
|
-
const
|
|
877
|
+
const Kl = "OUIA-Generated-", vs = {};
|
|
878
878
|
function rt(e, t, n = !0) {
|
|
879
879
|
return {
|
|
880
880
|
"data-ouia-component-type": `PF5/${e}`,
|
|
@@ -893,9 +893,9 @@ const Gt = (e, t, n = !0, i) => ({
|
|
|
893
893
|
function Ct(e, t) {
|
|
894
894
|
try {
|
|
895
895
|
let n;
|
|
896
|
-
return typeof window < "u" ? n = `${window.location.href}-${e}-${t || ""}` : n = `${e}-${t || ""}`, vs[n] || (vs[n] = 0), `${
|
|
896
|
+
return typeof window < "u" ? n = `${window.location.href}-${e}-${t || ""}` : n = `${e}-${t || ""}`, vs[n] || (vs[n] = 0), `${Kl}${e}-${t ? `${t}-` : ""}${++vs[n]}`;
|
|
897
897
|
} catch {
|
|
898
|
-
return `${
|
|
898
|
+
return `${Kl}${e}-${t ? `${t}-` : ""}${++hh}`;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
function Or(e) {
|
|
@@ -942,7 +942,7 @@ function bh(e) {
|
|
|
942
942
|
function vh(e) {
|
|
943
943
|
return e === on(e) || !rn(e) ? Po(e) : bh(e);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Xt(e) {
|
|
946
946
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
947
947
|
}
|
|
948
948
|
function kn(e) {
|
|
@@ -961,7 +961,7 @@ function Do(e) {
|
|
|
961
961
|
function yh(e, t, n = !1) {
|
|
962
962
|
const i = kn(t), r = Or(e), a = rn(t);
|
|
963
963
|
let s = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 };
|
|
964
|
-
return (a || !a && !n) && ((
|
|
964
|
+
return (a || !a && !n) && ((Xt(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
965
965
|
Do(i)) && (s = vh(t)), rn(t) ? (l = Or(t), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = Mo(i))), {
|
|
966
966
|
x: r.left + s.scrollLeft - l.x,
|
|
967
967
|
y: r.top + s.scrollTop - l.y,
|
|
@@ -978,7 +978,7 @@ function Fo(e) {
|
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
function Ba(e) {
|
|
981
|
-
return
|
|
981
|
+
return Xt(e) === "html" ? e : (
|
|
982
982
|
// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
983
983
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
984
984
|
e.parentNode || // DOM Element detected
|
|
@@ -989,14 +989,14 @@ function Ba(e) {
|
|
|
989
989
|
);
|
|
990
990
|
}
|
|
991
991
|
function af(e) {
|
|
992
|
-
return ["html", "body", "#document"].indexOf(
|
|
992
|
+
return ["html", "body", "#document"].indexOf(Xt(e)) >= 0 ? e.ownerDocument.body : rn(e) && Do(e) ? e : af(Ba(e));
|
|
993
993
|
}
|
|
994
994
|
function mr(e, t = []) {
|
|
995
|
-
const n = af(e), i =
|
|
995
|
+
const n = af(e), i = Xt(n) === "body", r = on(n), a = i ? [r].concat(r.visualViewport || [], Do(n) ? n : []) : n, s = t.concat(a);
|
|
996
996
|
return i ? s : s.concat(mr(Ba(a)));
|
|
997
997
|
}
|
|
998
998
|
function xh(e) {
|
|
999
|
-
return ["table", "td", "th"].indexOf(
|
|
999
|
+
return ["table", "td", "th"].indexOf(Xt(e)) >= 0;
|
|
1000
1000
|
}
|
|
1001
1001
|
function ql(e) {
|
|
1002
1002
|
if (!rn(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
@@ -1005,14 +1005,14 @@ function ql(e) {
|
|
|
1005
1005
|
const t = e.offsetParent;
|
|
1006
1006
|
if (t) {
|
|
1007
1007
|
const n = kn(t);
|
|
1008
|
-
if (
|
|
1008
|
+
if (Xt(t) === "body" && yn(t).position === "static" && yn(n).position !== "static")
|
|
1009
1009
|
return n;
|
|
1010
1010
|
}
|
|
1011
1011
|
return t;
|
|
1012
1012
|
}
|
|
1013
1013
|
function wh(e) {
|
|
1014
1014
|
let t = Ba(e);
|
|
1015
|
-
for (; rn(t) && ["html", "body"].indexOf(
|
|
1015
|
+
for (; rn(t) && ["html", "body"].indexOf(Xt(t)) < 0; ) {
|
|
1016
1016
|
const n = yn(t);
|
|
1017
1017
|
if (n.transform !== "none" || n.perspective !== "none" || n.willChange && n.willChange !== "auto")
|
|
1018
1018
|
return t;
|
|
@@ -1025,7 +1025,7 @@ function Fr(e) {
|
|
|
1025
1025
|
let n = ql(e);
|
|
1026
1026
|
for (; n && xh(n) && yn(n).position === "static"; )
|
|
1027
1027
|
n = ql(n);
|
|
1028
|
-
return n &&
|
|
1028
|
+
return n && Xt(n) === "body" && yn(n).position === "static" ? t : n || wh(e) || t;
|
|
1029
1029
|
}
|
|
1030
1030
|
const Tt = "top", jt = "bottom", Vt = "right", Rt = "left", $o = "auto", $r = [Tt, jt, Vt, Rt], Di = "start", Bo = "end", Oh = "clippingParents", sf = "viewport", sr = "popper", Ch = "reference", Jl = $r.reduce((e, t) => e.concat([`${t}-${Di}`, `${t}-${Bo}`]), []), of = [...$r, $o].reduce((e, t) => e.concat([t, `${t}-${Di}`, `${t}-${Bo}`]), []), _h = "beforeRead", Eh = "read", Sh = "afterRead", kh = "beforeMain", Lh = "main", Ih = "afterMain", Nh = "beforeWrite", Th = "write", Rh = "afterWrite", Ah = [
|
|
1031
1031
|
_h,
|
|
@@ -1119,7 +1119,7 @@ function Yl(e, t) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
function Vh(e) {
|
|
1121
1121
|
const t = mr(Ba(e)), i = ["absolute", "fixed"].indexOf(yn(e).position) >= 0 && rn(e) ? Fr(e) : e;
|
|
1122
|
-
return Cr(i) ? t.filter((r) => Cr(r) && lf(r, i) &&
|
|
1122
|
+
return Cr(i) ? t.filter((r) => Cr(r) && lf(r, i) && Xt(r) !== "body") : [];
|
|
1123
1123
|
}
|
|
1124
1124
|
function Hh(e, t, n) {
|
|
1125
1125
|
const r = [...t === "clippingParents" ? Vh(e) : [].concat(t), n], a = r[0], s = r.reduce((l, c) => {
|
|
@@ -1331,13 +1331,13 @@ function Gh({ state: e, name: t }) {
|
|
|
1331
1331
|
placement: e.placement
|
|
1332
1332
|
});
|
|
1333
1333
|
}
|
|
1334
|
-
const
|
|
1334
|
+
const Xh = {
|
|
1335
1335
|
name: "popperOffsets",
|
|
1336
1336
|
enabled: !0,
|
|
1337
1337
|
phase: "read",
|
|
1338
1338
|
fn: Gh,
|
|
1339
1339
|
data: {}
|
|
1340
|
-
},
|
|
1340
|
+
}, Kh = {
|
|
1341
1341
|
top: "auto",
|
|
1342
1342
|
right: "auto",
|
|
1343
1343
|
bottom: "auto",
|
|
@@ -1359,7 +1359,7 @@ function ec({ popper: e, popperRect: t, placement: n, offsets: i, position: r, g
|
|
|
1359
1359
|
let v = Fr(e);
|
|
1360
1360
|
v === on(e) && (v = kn(e)), n === Tt && (p = jt, c -= v.clientHeight - t.height, c *= a ? 1 : -1), n === Rt && (u = Vt, l -= v.clientWidth - t.width, l *= a ? 1 : -1);
|
|
1361
1361
|
}
|
|
1362
|
-
const g = Object.assign({ position: r }, s &&
|
|
1362
|
+
const g = Object.assign({ position: r }, s && Kh);
|
|
1363
1363
|
return a ? Object.assign(Object.assign({}, g), {
|
|
1364
1364
|
[p]: f ? "0" : "",
|
|
1365
1365
|
[u]: d ? "0" : "",
|
|
@@ -1388,7 +1388,7 @@ const Yh = {
|
|
|
1388
1388
|
function Zh({ state: e }) {
|
|
1389
1389
|
Object.keys(e.elements).forEach((t) => {
|
|
1390
1390
|
const n = e.styles[t] || {}, i = e.attributes[t] || {}, r = e.elements[t];
|
|
1391
|
-
!rn(r) || !
|
|
1391
|
+
!rn(r) || !Xt(r) || (Object.assign(r.style, n), Object.keys(i).forEach((a) => {
|
|
1392
1392
|
const s = i[a];
|
|
1393
1393
|
s === !1 ? r.removeAttribute(a) : r.setAttribute(a, s === !0 ? "" : s);
|
|
1394
1394
|
}));
|
|
@@ -1410,7 +1410,7 @@ function Qh({ state: e }) {
|
|
|
1410
1410
|
return Object.assign(e.elements.popper.style, t.popper), e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), () => {
|
|
1411
1411
|
Object.keys(e.elements).forEach((n) => {
|
|
1412
1412
|
const i = e.elements[n], r = e.attributes[n] || {}, s = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]).reduce((l, c) => (l[c] = "", l), {});
|
|
1413
|
-
!rn(i) || !
|
|
1413
|
+
!rn(i) || !Xt(i) || (Object.assign(i.style, s), Object.keys(r).forEach((l) => {
|
|
1414
1414
|
i.removeAttribute(l);
|
|
1415
1415
|
}));
|
|
1416
1416
|
});
|
|
@@ -1537,7 +1537,7 @@ function fg({ state: e, options: t, name: n }) {
|
|
|
1537
1537
|
}), p = tn(e.placement), m = _r(e.placement), g = !m, v = jo(p), x = dg(v), w = e.modifiersData.popperOffsets, _ = e.rects.reference, S = e.rects.popper, I = typeof f == "function" ? f(Object.assign(Object.assign({}, e.rects), { placement: e.placement })) : f, E = { x: 0, y: 0 };
|
|
1538
1538
|
if (w) {
|
|
1539
1539
|
if (i) {
|
|
1540
|
-
const R = v === "y" ? Tt : Rt, k = v === "y" ? jt : Vt, N = v === "y" ? "height" : "width", M = w[v], $ = w[v] + u[R], D = w[v] - u[k], O = d ? -S[N] / 2 : 0, L = m === Di ? _[N] : S[N], j = m === Di ? -S[N] : -_[N], C = e.elements.arrow, P = d && C ? Fo(C) : { width: 0, height: 0 }, G = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : df(), B = G[R], J = G[k], b = oa(0, _[N], P[N]), F = g ? _[N] / 2 - O - b - B - I : L - b - B - I,
|
|
1540
|
+
const R = v === "y" ? Tt : Rt, k = v === "y" ? jt : Vt, N = v === "y" ? "height" : "width", M = w[v], $ = w[v] + u[R], D = w[v] - u[k], O = d ? -S[N] / 2 : 0, L = m === Di ? _[N] : S[N], j = m === Di ? -S[N] : -_[N], C = e.elements.arrow, P = d && C ? Fo(C) : { width: 0, height: 0 }, G = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : df(), B = G[R], J = G[k], b = oa(0, _[N], P[N]), F = g ? _[N] / 2 - O - b - B - I : L - b - B - I, X = g ? -_[N] / 2 + O + b + J + I : j + b + J + I, V = e.elements.arrow && Fr(e.elements.arrow), U = V ? v === "y" ? V.clientTop || 0 : V.clientLeft || 0 : 0, q = e.modifiersData.offset ? e.modifiersData.offset[e.placement][v] : 0, W = w[v] + F - q - U, K = w[v] + X - q, te = oa(d ? Math.min($, W) : $, M, d ? Math.max(D, K) : D);
|
|
1541
1541
|
w[v] = te, E[v] = te - M;
|
|
1542
1542
|
}
|
|
1543
1543
|
if (r) {
|
|
@@ -1611,7 +1611,7 @@ const bg = {
|
|
|
1611
1611
|
fn: gg
|
|
1612
1612
|
}, vg = [
|
|
1613
1613
|
Wh,
|
|
1614
|
-
|
|
1614
|
+
Xh,
|
|
1615
1615
|
Yh,
|
|
1616
1616
|
eg,
|
|
1617
1617
|
ig,
|
|
@@ -1698,13 +1698,13 @@ const bg = {
|
|
|
1698
1698
|
}, onShown: J = () => {
|
|
1699
1699
|
}, preventOverflow: b = !1 }) => {
|
|
1700
1700
|
var F;
|
|
1701
|
-
const [
|
|
1701
|
+
const [X, V] = o.useState(null), [U, q] = o.useState(null), [W, K] = o.useState(null), [te, ie] = o.useState(null), [Y, oe] = o.useState(!1), [de, Ce] = o.useState(0), [Oe, Te] = o.useState(f), De = o.useRef(null), Le = o.useRef(null), T = o.useRef(null), A = o.useRef(), H = U || X, ee = f || Oe, ne = (F = $?.current || X) === null || F === void 0 ? void 0 : F.parentElement, Q = jn(ne), le = o.useMemo(() => {
|
|
1702
1702
|
const we = { left: "left", right: "right", center: "center" };
|
|
1703
1703
|
return {
|
|
1704
1704
|
ltr: Object.assign({ start: "left", end: "right" }, we),
|
|
1705
1705
|
rtl: Object.assign({ start: "right", end: "left" }, we)
|
|
1706
1706
|
}[Q][i];
|
|
1707
|
-
}, [i, Q]), ae = o.useCallback((we) => w(we, H, W), [ee,
|
|
1707
|
+
}, [i, Q]), ae = o.useCallback((we) => w(we, H, W), [ee, X, U, W, w]);
|
|
1708
1708
|
o.useEffect(() => {
|
|
1709
1709
|
oe(!0), G();
|
|
1710
1710
|
}, []), o.useEffect(() => () => {
|
|
@@ -1712,7 +1712,7 @@ const bg = {
|
|
|
1712
1712
|
}, []), o.useEffect(() => {
|
|
1713
1713
|
$ && ($.current ? q($.current) : typeof $ == "function" && q($()));
|
|
1714
1714
|
}, [$, e]), o.useEffect(() => {
|
|
1715
|
-
D && (D.current ?
|
|
1715
|
+
D && (D.current ? K(D.current) : typeof D == "function" && K(D()));
|
|
1716
1716
|
}, [ee, D]), o.useEffect(() => {
|
|
1717
1717
|
const we = new MutationObserver(() => {
|
|
1718
1718
|
_t && _t();
|
|
@@ -1729,7 +1729,7 @@ const bg = {
|
|
|
1729
1729
|
o.useEffect(() => (ve(m, H, "mouseenter"), ve(g, H, "mouseleave"), ve(v, H, "focus"), ve(x, H, "blur"), ve(_, H, "click"), ve(S, H, "keydown"), ve(I, W, "click"), ve(E, W, "mouseenter"), ve(R, W, "mouseleave"), w && ve(ae, document, "click", !0), ve(k, document, "keydown", !0), () => {
|
|
1730
1730
|
ye(m, H, "mouseenter"), ye(g, H, "mouseleave"), ye(v, H, "focus"), ye(x, H, "blur"), ye(_, H, "click"), ye(S, H, "keydown"), ye(I, W, "click"), ye(E, W, "mouseenter"), ye(R, W, "mouseleave"), w && ye(ae, document, "click", !0), ye(k, document, "keydown", !0);
|
|
1731
1731
|
}), [
|
|
1732
|
-
|
|
1732
|
+
X,
|
|
1733
1733
|
W,
|
|
1734
1734
|
m,
|
|
1735
1735
|
g,
|
|
@@ -1828,7 +1828,7 @@ const bg = {
|
|
|
1828
1828
|
transition: Eg(O)
|
|
1829
1829
|
}) }, Ue.popper), Bl = () => {
|
|
1830
1830
|
const we = o.cloneElement(t, $l);
|
|
1831
|
-
return D ? we : o.createElement("div", { style: { display: "contents" }, ref: (He) =>
|
|
1831
|
+
return D ? we : o.createElement("div", { style: { display: "contents" }, ref: (He) => K(He?.firstElementChild) }, we);
|
|
1832
1832
|
}, vm = () => {
|
|
1833
1833
|
if (c === "inline")
|
|
1834
1834
|
return Bl();
|
|
@@ -2013,7 +2013,7 @@ var Ys;
|
|
|
2013
2013
|
(function(e) {
|
|
2014
2014
|
e.sm = "sm", e.md = "md", e.lg = "lg", e.xl = "xl";
|
|
2015
2015
|
})(Ys || (Ys = {}));
|
|
2016
|
-
const
|
|
2016
|
+
const Kt = (e) => {
|
|
2017
2017
|
var { className: t = "", size: n = "xl", "aria-valuetext": i = "Loading...", diameter: r, isInline: a = !1, "aria-label": s, "aria-labelledBy": l } = e, c = z(e, ["className", "size", "aria-valuetext", "diameter", "isInline", "aria-label", "aria-labelledBy"]);
|
|
2018
2018
|
return o.createElement(
|
|
2019
2019
|
"svg",
|
|
@@ -2021,7 +2021,7 @@ const Xt = (e) => {
|
|
|
2021
2021
|
o.createElement("circle", { className: ta.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })
|
|
2022
2022
|
);
|
|
2023
2023
|
};
|
|
2024
|
-
|
|
2024
|
+
Kt.displayName = "Spinner";
|
|
2025
2025
|
const ys = {
|
|
2026
2026
|
badge: "pf-v5-c-badge",
|
|
2027
2027
|
modifiers: {
|
|
@@ -2069,7 +2069,7 @@ const Lg = (e) => {
|
|
|
2069
2069
|
c && o.createElement(
|
|
2070
2070
|
"span",
|
|
2071
2071
|
{ className: y(Ge.buttonProgress) },
|
|
2072
|
-
o.createElement(
|
|
2072
|
+
o.createElement(Kt, { size: Ys.md, isInline: v, "aria-valuetext": f, "aria-label": p, "aria-labelledby": u })
|
|
2073
2073
|
),
|
|
2074
2074
|
w === Me.plain && t === null && I ? I : null,
|
|
2075
2075
|
w !== Me.plain && I && (_ === "start" || _ === "left") && o.createElement("span", { className: y(Ge.buttonIcon, Ge.modifiers.start) }, I),
|
|
@@ -2296,10 +2296,10 @@ const ft = (e) => {
|
|
|
2296
2296
|
}, ref: j }, k),
|
|
2297
2297
|
o.createElement(yf, null),
|
|
2298
2298
|
o.createElement(vf, { isLeftAligned: a }, t)
|
|
2299
|
-
),
|
|
2299
|
+
), X = (U, q) => {
|
|
2300
2300
|
O ? B() : U.target === q && G();
|
|
2301
2301
|
}, V = () => v === "describedby" && _ && _.props && !_.props["aria-describedby"] ? o.cloneElement(_, { "aria-describedby": w }) : v === "labelledby" && _.props && !_.props["aria-labelledby"] ? o.cloneElement(_, { "aria-labelledby": w }) : _;
|
|
2302
|
-
return o.createElement(Ln, { trigger: v !== "none" && O ? V() : _, triggerRef: I, popper: F, popperRef: j, minWidth: p !== void 0 ? p : "revert", appendTo: f, isVisible: O, positionModifiers: J, distance: g, placement: n, onMouseEnter: N && G, onMouseLeave: N && B, onPopperMouseEnter: N && G, onPopperMouseLeave: N && B, onFocus: M && G, onBlur: M && B, onDocumentClick: $ &&
|
|
2302
|
+
return o.createElement(Ln, { trigger: v !== "none" && O ? V() : _, triggerRef: I, popper: F, popperRef: j, minWidth: p !== void 0 ? p : "revert", appendTo: f, isVisible: O, positionModifiers: J, distance: g, placement: n, onMouseEnter: N && G, onMouseLeave: N && B, onPopperMouseEnter: N && G, onPopperMouseLeave: N && B, onFocus: M && G, onBlur: M && B, onDocumentClick: $ && X, onDocumentKeyDown: D ? null : C, onTriggerEnter: D ? null : P, enableFlip: s, zIndex: u, flipBehavior: x, animationDuration: S, entryDelay: c, exitDelay: d, onHidden: R });
|
|
2303
2303
|
};
|
|
2304
2304
|
ft.displayName = "Tooltip";
|
|
2305
2305
|
const Pg = {
|
|
@@ -2316,7 +2316,7 @@ const Pg = {
|
|
|
2316
2316
|
svgPath: "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",
|
|
2317
2317
|
yOffset: 0,
|
|
2318
2318
|
xOffset: 0
|
|
2319
|
-
},
|
|
2319
|
+
}, Xi = pe(Mg), Dg = {
|
|
2320
2320
|
name: "ExclamationTriangleIcon",
|
|
2321
2321
|
height: 512,
|
|
2322
2322
|
width: 576,
|
|
@@ -2341,7 +2341,7 @@ const Pg = {
|
|
|
2341
2341
|
var { className: t = "", id: n, title: i, titleIconVariant: r, titleLabel: a = "" } = e, s = z(e, ["className", "id", "title", "titleIconVariant", "titleLabel"]);
|
|
2342
2342
|
const [l, c] = o.useState(!1), d = o.useRef(null), f = a || (la(r) ? `${ga(r)} alert:` : a), u = {
|
|
2343
2343
|
success: o.createElement(Br, null),
|
|
2344
|
-
danger: o.createElement(
|
|
2344
|
+
danger: o.createElement(Xi, null),
|
|
2345
2345
|
warning: o.createElement(jr, null),
|
|
2346
2346
|
info: o.createElement(xf, null),
|
|
2347
2347
|
custom: o.createElement(wf, null)
|
|
@@ -2369,7 +2369,7 @@ const Uo = (e) => {
|
|
|
2369
2369
|
{ help: a },
|
|
2370
2370
|
o.createElement(Of, { title: l, titleIconVariant: c, titleLabel: d, id: M }),
|
|
2371
2371
|
s && o.createElement(bf, { id: $ }, s)
|
|
2372
|
-
), B = x ? o.createElement(Qs, null, x) : w.length > 0 && o.createElement(Qs, null, w), J = m ? "region" : void 0, F = !s && !u ? $ : void 0,
|
|
2372
|
+
), B = x ? o.createElement(Qs, null, x) : w.length > 0 && o.createElement(Qs, null, w), J = m ? "region" : void 0, F = !s && !u ? $ : void 0, X = O ? t : o.createElement(hf, Object.assign({ "aria-label": m, role: g || J }, P, { id: F }), t), V = () => {
|
|
2373
2373
|
if (p === null)
|
|
2374
2374
|
return null;
|
|
2375
2375
|
const q = [];
|
|
@@ -2381,7 +2381,7 @@ const Uo = (e) => {
|
|
|
2381
2381
|
}) }),
|
|
2382
2382
|
v && o.createElement(Ho, { onClose: (q) => _(q), ouiaId: L }),
|
|
2383
2383
|
G,
|
|
2384
|
-
|
|
2384
|
+
X,
|
|
2385
2385
|
B
|
|
2386
2386
|
);
|
|
2387
2387
|
return o.createElement(
|
|
@@ -2523,7 +2523,7 @@ const pt = {
|
|
|
2523
2523
|
themeDark: "pf-v5-theme-dark"
|
|
2524
2524
|
}, jg = {
|
|
2525
2525
|
success: Br,
|
|
2526
|
-
danger:
|
|
2526
|
+
danger: Xi,
|
|
2527
2527
|
warning: jr,
|
|
2528
2528
|
info: xf,
|
|
2529
2529
|
custom: wf
|
|
@@ -2571,7 +2571,7 @@ const Va = (e) => {
|
|
|
2571
2571
|
const de = O.current && O.current.offsetHeight < O.current.scrollHeight;
|
|
2572
2572
|
C !== de && P(de);
|
|
2573
2573
|
}, [O, w, C]);
|
|
2574
|
-
const [G, B] = me(!1), [J, b] = me(!0), [F,
|
|
2574
|
+
const [G, B] = me(!1), [J, b] = me(!0), [F, X] = me(), [V, U] = me(), q = G && J && !F && !V;
|
|
2575
2575
|
o.useEffect(() => {
|
|
2576
2576
|
const de = g === !0 ? 8e3 : Number(g);
|
|
2577
2577
|
if (de > 0) {
|
|
@@ -2591,12 +2591,12 @@ const Va = (e) => {
|
|
|
2591
2591
|
}, [V, F, v]), o.useEffect(() => {
|
|
2592
2592
|
q && x();
|
|
2593
2593
|
}, [q, x]);
|
|
2594
|
-
const [W,
|
|
2595
|
-
|
|
2594
|
+
const [W, K] = me(!1), te = () => {
|
|
2595
|
+
K(!W);
|
|
2596
2596
|
}, ie = (de) => {
|
|
2597
|
-
|
|
2597
|
+
X(!0), b(!1), R(de);
|
|
2598
2598
|
}, Y = (de) => {
|
|
2599
|
-
|
|
2599
|
+
X(!1), k(de);
|
|
2600
2600
|
};
|
|
2601
2601
|
if (q)
|
|
2602
2602
|
return null;
|
|
@@ -2756,7 +2756,7 @@ const Ug = {
|
|
|
2756
2756
|
themeDark: "pf-v5-theme-dark"
|
|
2757
2757
|
}, Wg = {
|
|
2758
2758
|
success: Br,
|
|
2759
|
-
error:
|
|
2759
|
+
error: Xi,
|
|
2760
2760
|
warning: jr
|
|
2761
2761
|
}, no = (e) => {
|
|
2762
2762
|
var { status: t, customIcon: n, className: i } = e, r = z(e, ["status", "customIcon", "className"]);
|
|
@@ -3120,7 +3120,7 @@ const Gg = {
|
|
|
3120
3120
|
name: "--pf-v5-c-menu__content--Height",
|
|
3121
3121
|
value: "auto",
|
|
3122
3122
|
var: "var(--pf-v5-c-menu__content--Height)"
|
|
3123
|
-
},
|
|
3123
|
+
}, Xg = {
|
|
3124
3124
|
name: "--pf-v5-c-menu__content--MaxHeight",
|
|
3125
3125
|
value: "18.75rem",
|
|
3126
3126
|
var: "var(--pf-v5-c-menu__content--MaxHeight)"
|
|
@@ -3138,7 +3138,7 @@ const Gg = {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
return t || l;
|
|
3140
3140
|
};
|
|
3141
|
-
return o.createElement(ci.Consumer, null, ({ menuId: d, onGetMenuHeight: f }) => o.createElement("div", Object.assign({}, s, { className: y(ge.menuContent, e.className), ref: (u) => c(u, d, f), style: Object.assign(Object.assign({}, r && { [Gg.name]: r }), a && { [
|
|
3141
|
+
return o.createElement(ci.Consumer, null, ({ menuId: d, onGetMenuHeight: f }) => o.createElement("div", Object.assign({}, s, { className: y(ge.menuContent, e.className), ref: (u) => c(u, d, f), style: Object.assign(Object.assign({}, r && { [Gg.name]: r }), a && { [Xg.name]: a }) }), i));
|
|
3142
3142
|
});
|
|
3143
3143
|
Hr.displayName = "MenuContent";
|
|
3144
3144
|
const Tf = (e) => {
|
|
@@ -3146,7 +3146,7 @@ const Tf = (e) => {
|
|
|
3146
3146
|
return o.createElement("div", Object.assign({}, i, { className: y(ge.menuFooter, n) }), t);
|
|
3147
3147
|
};
|
|
3148
3148
|
Tf.displayName = "MenuFooter";
|
|
3149
|
-
const
|
|
3149
|
+
const Kg = {
|
|
3150
3150
|
name: "--pf-v5-c-menu--m-flyout__menu--top-offset",
|
|
3151
3151
|
value: "0px",
|
|
3152
3152
|
var: "var(--pf-v5-c-menu--m-flyout__menu--top-offset)"
|
|
@@ -3267,10 +3267,10 @@ const dc = o.createContext({
|
|
|
3267
3267
|
}), nb = (e) => {
|
|
3268
3268
|
var { children: t, className: n, itemId: i = null, to: r, hasCheckbox: a = !1, isActive: s = null, isFavorited: l = null, isLoadButton: c = !1, isLoading: d = !1, flyoutMenu: f, direction: u, description: p = null, onClick: m = () => {
|
|
3269
3269
|
}, component: g = "button", isDisabled: v = !1, isAriaDisabled: x = !1, isExternalLink: w = !1, isSelected: _ = null, isFocused: S, isDanger: I = !1, icon: E, actions: R, onShowFlyout: k, drilldownMenu: N, isOnPath: M, innerRef: $, id: D, "aria-label": O, tooltipProps: L, rel: j, target: C, download: P } = e, G = z(e, ["children", "className", "itemId", "to", "hasCheckbox", "isActive", "isFavorited", "isLoadButton", "isLoading", "flyoutMenu", "direction", "description", "onClick", "component", "isDisabled", "isAriaDisabled", "isExternalLink", "isSelected", "isFocused", "isDanger", "icon", "actions", "onShowFlyout", "drilldownMenu", "isOnPath", "innerRef", "id", "aria-label", "tooltipProps", "rel", "target", "download"]);
|
|
3270
|
-
const { menuId: B, parentMenu: J, onSelect: b, onActionClick: F, activeItemId:
|
|
3270
|
+
const { menuId: B, parentMenu: J, onSelect: b, onActionClick: F, activeItemId: X, selected: V, drilldownItemPath: U, onDrillIn: q, onDrillOut: W, flyoutRef: K, setFlyoutRef: te, disableHover: ie, role: Y } = o.useContext(ci);
|
|
3271
3271
|
let oe = r ? "a" : g;
|
|
3272
3272
|
a && !r && (oe = "label");
|
|
3273
|
-
const [de, Ce] = o.useState(null), Oe = o.useContext(dc), [Te, De] = o.useState(Oe.direction), Le = o.useRef(), T = Le ===
|
|
3273
|
+
const [de, Ce] = o.useState(null), Oe = o.useContext(dc), [Te, De] = o.useState(Oe.direction), Le = o.useRef(), T = Le === K, A = f !== void 0, H = (ue) => {
|
|
3274
3274
|
!T && ue ? te(Le) : T && !ue && te(null), k && ue && k();
|
|
3275
3275
|
};
|
|
3276
3276
|
Sr(() => {
|
|
@@ -3285,7 +3285,7 @@ const dc = o.createContext({
|
|
|
3285
3285
|
let nr = 0;
|
|
3286
3286
|
_t < 0 && ln < 0 && (nr = Nn === "right" ? -ln : -_t), Nn === "left" ? (ue.classList.add(ge.modifiers.left), ue.style.setProperty(qg.name, `-${nr}px`)) : ue.style.setProperty(Jg.name, `-${nr}px`);
|
|
3287
3287
|
const ir = window.innerHeight - Ie.y - Ue.height;
|
|
3288
|
-
window.innerHeight - Ue.height < 0 && ir < 0 || ir < 0 && ue.style.setProperty(
|
|
3288
|
+
window.innerHeight - Ue.height < 0 && ir < 0 || ir < 0 && ue.style.setProperty(Kg.name, `${ir}px`);
|
|
3289
3289
|
}
|
|
3290
3290
|
}
|
|
3291
3291
|
}
|
|
@@ -3320,7 +3320,7 @@ const dc = o.createContext({
|
|
|
3320
3320
|
type: "button",
|
|
3321
3321
|
"aria-disabled": x ? !0 : null
|
|
3322
3322
|
}), M ? ae["aria-expanded"] = !0 : A && (ae["aria-haspopup"] = "menu", ae["aria-expanded"] = T);
|
|
3323
|
-
const ve = () => s !== null ? s ? "page" : null : i !== null &&
|
|
3323
|
+
const ve = () => s !== null ? s ? "page" : null : i !== null && X !== null ? i === X : null, ye = () => _ !== null ? _ : V !== null && i !== null ? Array.isArray(V) && V.includes(i) || i === V : !1, he = () => {
|
|
3324
3324
|
ie || (A ? H(!0) : te(null));
|
|
3325
3325
|
};
|
|
3326
3326
|
o.useEffect(() => {
|
|
@@ -3426,17 +3426,17 @@ const ib = (e) => {
|
|
|
3426
3426
|
di,
|
|
3427
3427
|
Object.assign({ role: g, className: y(n), ref: R, onSelect: (M, $) => {
|
|
3428
3428
|
i && i(M, $), l && k.current.focus();
|
|
3429
|
-
}, isPlain: u, selected: a, isScrollable: _ ?? (x !== void 0 || w !== void 0) }, rt(
|
|
3429
|
+
}, isPlain: u, selected: a, isScrollable: _ ?? (x !== void 0 || w !== void 0) }, rt(Xn.displayName, S.ouiaId !== void 0 ? S.ouiaId : Ct(Xn.displayName), S.ouiaSafe !== void 0 ? S.ouiaSafe : !0), S),
|
|
3430
3430
|
re.createElement(Hr, { menuHeight: x, maxMenuHeight: w }, t)
|
|
3431
3431
|
);
|
|
3432
3432
|
return re.createElement(Ln, Object.assign({ trigger: typeof s == "function" ? s(k) : s.toggleNode, triggerRef: k, popper: N, popperRef: R, isVisible: r, zIndex: m }, v));
|
|
3433
|
-
},
|
|
3434
|
-
|
|
3435
|
-
const
|
|
3433
|
+
}, Xn = re.forwardRef((e, t) => re.createElement(ib, Object.assign({ innerRef: t }, e)));
|
|
3434
|
+
Xn.displayName = "Select";
|
|
3435
|
+
const Ki = (e) => {
|
|
3436
3436
|
var { children: t, className: n, isAriaMultiselectable: i = !1 } = e, r = z(e, ["children", "className", "isAriaMultiselectable"]);
|
|
3437
3437
|
return re.createElement(zr, Object.assign({ isAriaMultiselectable: i, className: y(n) }, r), t);
|
|
3438
3438
|
};
|
|
3439
|
-
|
|
3439
|
+
Ki.displayName = "SelectList";
|
|
3440
3440
|
const rb = (e) => {
|
|
3441
3441
|
var { children: t, className: n, innerRef: i, value: r } = e, a = z(e, ["children", "className", "innerRef", "value"]);
|
|
3442
3442
|
return re.createElement(Ur, Object.assign({ itemId: r, ref: i, className: y(n) }, a), t);
|
|
@@ -3502,7 +3502,7 @@ class Df extends o.Component {
|
|
|
3502
3502
|
N = o.createElement(jr, { "aria-hidden": "true" });
|
|
3503
3503
|
break;
|
|
3504
3504
|
case Vn.danger:
|
|
3505
|
-
N = o.createElement(
|
|
3505
|
+
N = o.createElement(Xi, { "aria-hidden": "true" });
|
|
3506
3506
|
break;
|
|
3507
3507
|
}
|
|
3508
3508
|
const M = o.createElement(
|
|
@@ -3623,10 +3623,10 @@ const Ne = {
|
|
|
3623
3623
|
isSelected: !1,
|
|
3624
3624
|
isClicked: !1,
|
|
3625
3625
|
isDisabled: !1
|
|
3626
|
-
}),
|
|
3626
|
+
}), Xo = (e) => {
|
|
3627
3627
|
var { children: t, id: n = "", className: i, component: r = "div", isCompact: a = !1, isSelectable: s = !1, isClickable: l = !1, isDisabled: c = !1, isSelectableRaised: d = !1, isSelected: f = !1, isClicked: u = !1, isDisabledRaised: p = !1, isFlat: m = !1, isExpanded: g = !1, isRounded: v = !1, isLarge: x = !1, isFullHeight: w = !1, isPlain: _ = !1, ouiaId: S, ouiaSafe: I = !0, hasSelectableInput: E = !1, selectableInputAriaLabel: R, onSelectableInputChange: k = () => {
|
|
3628
3628
|
} } = e, N = z(e, ["children", "id", "className", "component", "isCompact", "isSelectable", "isClickable", "isDisabled", "isSelectableRaised", "isSelected", "isClicked", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe", "hasSelectableInput", "selectableInputAriaLabel", "onSelectableInputChange"]);
|
|
3629
|
-
const M = r, $ = Gt(
|
|
3629
|
+
const M = r, $ = Gt(Xo.displayName, S, I), [D, O] = o.useState(""), [L, j] = o.useState();
|
|
3630
3630
|
a && x && (console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"), x = !1);
|
|
3631
3631
|
const C = () => p ? y(Ne.modifiers.nonSelectableRaised) : d ? y(Ne.modifiers.selectableRaised, f && Ne.modifiers.selectedRaised) : s && l ? y(Ne.modifiers.selectable, Ne.modifiers.clickable, (f || u) && Ne.modifiers.current) : s ? y(Ne.modifiers.selectable, f && Ne.modifiers.selected) : l ? y(Ne.modifiers.clickable, u && Ne.modifiers.current) : "", P = o.useRef(!1), G = (B) => {
|
|
3632
3632
|
O(B), P.current = !!B;
|
|
@@ -3651,7 +3651,7 @@ const Ne = {
|
|
|
3651
3651
|
o.createElement(M, Object.assign({ id: n, className: y(Ne.card, a && Ne.modifiers.compact, g && Ne.modifiers.expanded, m && Ne.modifiers.flat, v && Ne.modifiers.rounded, x && Ne.modifiers.displayLg, w && Ne.modifiers.fullHeight, _ && Ne.modifiers.plain, C(), c && Ne.modifiers.disabled, i), tabIndex: d ? "0" : void 0 }, N, $), t)
|
|
3652
3652
|
);
|
|
3653
3653
|
};
|
|
3654
|
-
|
|
3654
|
+
Xo.displayName = "Card";
|
|
3655
3655
|
const $f = (e) => {
|
|
3656
3656
|
var { children: t, className: n, component: i = "div", isFilled: r = !0 } = e, a = z(e, ["children", "className", "component", "isFilled"]);
|
|
3657
3657
|
const s = i;
|
|
@@ -4138,7 +4138,7 @@ const zf = o.createContext({
|
|
|
4138
4138
|
Wf.displayName = "DataListBase";
|
|
4139
4139
|
const ui = o.forwardRef((e, t) => o.createElement(Wf, Object.assign({ innerRef: t }, e)));
|
|
4140
4140
|
ui.displayName = "DataList";
|
|
4141
|
-
const
|
|
4141
|
+
const Ko = (e) => {
|
|
4142
4142
|
var {
|
|
4143
4143
|
children: t,
|
|
4144
4144
|
className: n,
|
|
@@ -4151,7 +4151,7 @@ const Xo = (e) => {
|
|
|
4151
4151
|
} = e, c = z(e, ["children", "className", "visibility", "id", "aria-label", "aria-labelledby", "isPlainButtonAction"]);
|
|
4152
4152
|
return o.createElement("div", Object.assign({ className: y(Se.dataListItemAction, $e(i, Se), n) }, c), l ? o.createElement("div", { className: y(Se.dataListAction) }, t) : t);
|
|
4153
4153
|
};
|
|
4154
|
-
|
|
4154
|
+
Ko.displayName = "DataListAction";
|
|
4155
4155
|
const qe = (e) => {
|
|
4156
4156
|
var { children: t = null, className: n = "", width: i = 1, isFilled: r = !0, alignRight: a = !1, isIcon: s = !1, wrapModifier: l = null } = e, c = z(e, ["children", "className", "width", "isFilled", "alignRight", "isIcon", "wrapModifier"]);
|
|
4157
4157
|
return o.createElement("div", Object.assign({ className: y(Se.dataListCell, i > 1 && Se.modifiers[`flex_${i}`], !r && Se.modifiers.noFill, a && Se.modifiers.alignRight, s && Se.modifiers.icon, n, l && Se.modifiers[l]) }, c), t);
|
|
@@ -4293,16 +4293,16 @@ const Re = {
|
|
|
4293
4293
|
return o.createElement("div", Object.assign({ className: y(Re.popoverContent, t) }, i), n);
|
|
4294
4294
|
};
|
|
4295
4295
|
Gf.displayName = "PopoverContent";
|
|
4296
|
-
const
|
|
4296
|
+
const Xf = (e) => {
|
|
4297
4297
|
var { children: t, id: n, className: i } = e, r = z(e, ["children", "id", "className"]);
|
|
4298
4298
|
return o.createElement("div", Object.assign({ className: y(Re.popoverBody, i), id: n }, r), t);
|
|
4299
4299
|
};
|
|
4300
|
-
|
|
4301
|
-
const
|
|
4300
|
+
Xf.displayName = "PopoverBody";
|
|
4301
|
+
const Kf = (e) => {
|
|
4302
4302
|
var { children: t, className: n } = e, i = z(e, ["children", "className"]);
|
|
4303
4303
|
return o.createElement("span", Object.assign({ className: y(Re.popoverTitleIcon, n) }, i), t);
|
|
4304
4304
|
};
|
|
4305
|
-
|
|
4305
|
+
Kf.displayName = "PopoverHeaderIcon";
|
|
4306
4306
|
const qf = (e) => {
|
|
4307
4307
|
var { children: t, className: n, headingLevel: i } = e, r = z(e, ["children", "className", "headingLevel"]);
|
|
4308
4308
|
const a = i;
|
|
@@ -4317,7 +4317,7 @@ const Jf = (e) => {
|
|
|
4317
4317
|
o.createElement(
|
|
4318
4318
|
"div",
|
|
4319
4319
|
{ className: y(Re.popoverTitle), id: s },
|
|
4320
|
-
n && o.createElement(
|
|
4320
|
+
n && o.createElement(Kf, null, n),
|
|
4321
4321
|
o.createElement(
|
|
4322
4322
|
qf,
|
|
4323
4323
|
{ headingLevel: r },
|
|
@@ -4385,8 +4385,8 @@ const pb = {
|
|
|
4385
4385
|
"left-end",
|
|
4386
4386
|
"right-start",
|
|
4387
4387
|
"right-end"
|
|
4388
|
-
], animationDuration: C = 300, id: P, withFocusTrap: G, triggerRef: B, hasNoPadding: J = !1, hasAutoWidth: b = !1, elementToFocus: F } = e,
|
|
4389
|
-
const V = P || Mi(), U = a !== null, [q, W] = o.useState(!1), [
|
|
4388
|
+
], animationDuration: C = 300, id: P, withFocusTrap: G, triggerRef: B, hasNoPadding: J = !1, hasAutoWidth: b = !1, elementToFocus: F } = e, X = z(e, ["children", "position", "enableFlip", "className", "isVisible", "shouldClose", "shouldOpen", "aria-label", "bodyContent", "headerContent", "headerComponent", "headerIcon", "alertSeverityVariant", "alertSeverityScreenReaderText", "footerContent", "appendTo", "hideOnOutsideClick", "onHide", "onHidden", "onShow", "onShown", "onMount", "zIndex", "triggerAction", "minWidth", "maxWidth", "closeBtnAriaLabel", "showClose", "distance", "flipBehavior", "animationDuration", "id", "withFocusTrap", "triggerRef", "hasNoPadding", "hasAutoWidth", "elementToFocus"]);
|
|
4389
|
+
const V = P || Mi(), U = a !== null, [q, W] = o.useState(!1), [K, te] = o.useState(!!G), ie = o.useRef(null);
|
|
4390
4390
|
o.useEffect(() => {
|
|
4391
4391
|
R();
|
|
4392
4392
|
}, []), o.useEffect(() => {
|
|
@@ -4421,7 +4421,7 @@ const pb = {
|
|
|
4421
4421
|
}, Le = (ae) => {
|
|
4422
4422
|
U ? q ? s(ae, oe) : l(ae, Y) : q ? oe(ae) : Y(ae, !0);
|
|
4423
4423
|
}, T = () => {
|
|
4424
|
-
|
|
4424
|
+
K && te(!1);
|
|
4425
4425
|
}, A = (ae) => {
|
|
4426
4426
|
U ? l(ae, Y) : Y(ae, !1);
|
|
4427
4427
|
}, H = (ae) => {
|
|
@@ -4434,7 +4434,7 @@ const pb = {
|
|
|
4434
4434
|
ae.stopPropagation(), U ? s(ae, oe) : oe(ae);
|
|
4435
4435
|
}, le = o.createElement(
|
|
4436
4436
|
$a,
|
|
4437
|
-
Object.assign({ ref: ie, active:
|
|
4437
|
+
Object.assign({ ref: ie, active: K, focusTrapOptions: {
|
|
4438
4438
|
returnFocusOnDeactivate: G !== !1,
|
|
4439
4439
|
clickOutsideDeactivates: !0,
|
|
4440
4440
|
// FocusTrap's initialFocus can accept false as a value to prevent initial focus.
|
|
@@ -4453,14 +4453,14 @@ const pb = {
|
|
|
4453
4453
|
}, preventScrollOnDeactivate: !0, className: y(Re.popover, m && pb[m], J && Re.modifiers.noPadding, b && Re.modifiers.widthAuto, r), role: "dialog", "aria-modal": "true", "aria-label": f ? void 0 : c, "aria-labelledby": f ? `popover-${V}-header` : void 0, "aria-describedby": `popover-${V}-body`, onMouseDown: T, style: {
|
|
4454
4454
|
minWidth: Ce ? M : null,
|
|
4455
4455
|
maxWidth: Oe ? $ : null
|
|
4456
|
-
} },
|
|
4456
|
+
} }, X),
|
|
4457
4457
|
o.createElement(Qf, null),
|
|
4458
4458
|
o.createElement(
|
|
4459
4459
|
Gf,
|
|
4460
4460
|
null,
|
|
4461
4461
|
O && N === "click" && o.createElement(Zf, { onClose: Q, "aria-label": D }),
|
|
4462
4462
|
f && o.createElement(Jf, { id: `popover-${V}-header`, icon: p, alertSeverityVariant: m, alertSeverityScreenReaderText: g || `${m} alert:`, titleHeadingLevel: u }, typeof f == "function" ? f(oe) : f),
|
|
4463
|
-
o.createElement(
|
|
4463
|
+
o.createElement(Xf, { id: `popover-${V}-body` }, typeof d == "function" ? d(oe) : d),
|
|
4464
4464
|
v && o.createElement(Yf, { id: `popover-${V}-footer` }, typeof v == "function" ? v(oe) : v)
|
|
4465
4465
|
)
|
|
4466
4466
|
);
|
|
@@ -4517,7 +4517,7 @@ const mb = {
|
|
|
4517
4517
|
(r === "default" || r === "indeterminate") && o.createElement(hb, null),
|
|
4518
4518
|
r === "warning" && o.createElement(jr, null),
|
|
4519
4519
|
r === "success" && o.createElement(Br, null),
|
|
4520
|
-
r === "error" && o.createElement(
|
|
4520
|
+
r === "error" && o.createElement(Xi, null)
|
|
4521
4521
|
),
|
|
4522
4522
|
o.createElement(
|
|
4523
4523
|
"span",
|
|
@@ -4836,7 +4836,7 @@ let Rn = null, or = 0;
|
|
|
4836
4836
|
const ru = (e) => {
|
|
4837
4837
|
var { className: t = "", id: n, children: i, hasNoBorder: r = !1, isResizable: a = !1, onResize: s, minSize: l, defaultSize: c, maxSize: d, increment: f = 5, resizeAriaLabel: u = "Resize", widths: p, colorVariant: m = Un.default, focusTrap: g } = e, v = z(e, ["className", "id", "children", "hasNoBorder", "isResizable", "onResize", "minSize", "defaultSize", "maxSize", "increment", "resizeAriaLabel", "widths", "colorVariant", "focusTrap"]);
|
|
4838
4838
|
const x = o.useRef(), w = o.useRef(), [_, S] = o.useState(0), { position: I, isExpanded: E, isStatic: R, onExpand: k, drawerRef: N, drawerContentRef: M, isInline: $ } = o.useContext(tl), D = R ? !1 : !E, [O, L] = o.useState(!D), [j, C] = o.useState(!1), P = o.useRef(null);
|
|
4839
|
-
let G = 0, B, J, b, F,
|
|
4839
|
+
let G = 0, B, J, b, F, X = !0;
|
|
4840
4840
|
R && g?.enabled && console.warn("DrawerPanelContent: The focusTrap.enabled prop cannot be true if the Drawer's isStatic prop is true. This will cause a permanent focus trap."), o.useEffect(() => {
|
|
4841
4841
|
!R && E && L(E);
|
|
4842
4842
|
}, [R, E]);
|
|
@@ -4849,11 +4849,11 @@ const ru = (e) => {
|
|
|
4849
4849
|
}, U = (A) => {
|
|
4850
4850
|
A.stopPropagation(), document.addEventListener("touchmove", Ce, { passive: !1 }), document.addEventListener("touchend", de), Rn = !0;
|
|
4851
4851
|
}, q = (A) => {
|
|
4852
|
-
A.stopPropagation(), A.preventDefault(), document.addEventListener("mousemove", oe), document.addEventListener("mouseup", Oe), N.current.classList.add(y(Be.modifiers.resizing)), Rn = !0,
|
|
4852
|
+
A.stopPropagation(), A.preventDefault(), document.addEventListener("mousemove", oe), document.addEventListener("mouseup", Oe), N.current.classList.add(y(Be.modifiers.resizing)), Rn = !0, X = !0;
|
|
4853
4853
|
}, W = (A) => {
|
|
4854
4854
|
const H = I === "bottom" ? A.clientY : A.clientX;
|
|
4855
4855
|
te(A, H);
|
|
4856
|
-
},
|
|
4856
|
+
}, K = (A) => {
|
|
4857
4857
|
A.preventDefault(), A.stopImmediatePropagation();
|
|
4858
4858
|
const H = I === "bottom" ? A.touches[0].clientY : A.touches[0].clientX;
|
|
4859
4859
|
te(A, H);
|
|
@@ -4861,15 +4861,15 @@ const ru = (e) => {
|
|
|
4861
4861
|
const ee = jn(x.current) === "rtl";
|
|
4862
4862
|
if (A.stopPropagation(), !Rn)
|
|
4863
4863
|
return;
|
|
4864
|
-
|
|
4864
|
+
X && (B = x.current.getBoundingClientRect(), ee ? (b = B.right, J = B.left) : (J = B.right, b = B.left), F = B.bottom, X = !1);
|
|
4865
4865
|
const ne = H;
|
|
4866
4866
|
let Q = 0;
|
|
4867
4867
|
I === "end" || I === "right" ? Q = ee ? ne - J : J - ne : I === "start" || I === "left" ? Q = ee ? b - ne : ne - b : Q = F - ne, I === "bottom" && (x.current.style.overflowAnchor = "none"), x.current.style.setProperty(Es.name, Q + "px"), G = Q, S(V());
|
|
4868
4868
|
}, ie = (A) => {
|
|
4869
|
-
Rn && (N.current.classList.remove(y(Be.modifiers.resizing)), Rn = !1, s && s(A, G, n),
|
|
4869
|
+
Rn && (N.current.classList.remove(y(Be.modifiers.resizing)), Rn = !1, s && s(A, G, n), X = !0, document.removeEventListener("mousemove", oe), document.removeEventListener("mouseup", Oe));
|
|
4870
4870
|
}, Y = (A) => {
|
|
4871
4871
|
A.stopPropagation(), Rn && (Rn = !1, s && s(A, G, n), document.removeEventListener("touchmove", Ce), document.removeEventListener("touchend", de));
|
|
4872
|
-
}, oe = o.useCallback(W, []), de = o.useCallback(Y, []), Ce = o.useCallback(
|
|
4872
|
+
}, oe = o.useCallback(W, []), de = o.useCallback(Y, []), Ce = o.useCallback(K, []), Oe = o.useCallback(ie, []), Te = (A) => {
|
|
4873
4873
|
const H = jn(x.current) === "rtl", ee = A.key;
|
|
4874
4874
|
if (ee !== "Escape" && ee !== "Enter" && ee !== "ArrowUp" && ee !== "ArrowDown" && ee !== "ArrowLeft" && ee !== "ArrowRight") {
|
|
4875
4875
|
Rn && A.preventDefault();
|
|
@@ -5000,9 +5000,9 @@ const _b = {
|
|
|
5000
5000
|
custom: "pf-m-custom"
|
|
5001
5001
|
},
|
|
5002
5002
|
spinner: "pf-v5-c-spinner"
|
|
5003
|
-
},
|
|
5003
|
+
}, Kn = (e) => {
|
|
5004
5004
|
var { children: t, className: n, progressIcon: i, size: r, iconSize: a, progressIconSize: s, status: l, isInline: c = !1, isInProgress: d = !1, defaultProgressArialabel: f = "Loading...", shouldMirrorRTL: u = !1 } = e, p = z(e, ["children", "className", "progressIcon", "size", "iconSize", "progressIconSize", "status", "isInline", "isInProgress", "defaultProgressArialabel", "shouldMirrorRTL"]);
|
|
5005
|
-
const m = i ?? o.createElement(
|
|
5005
|
+
const m = i ?? o.createElement(Kt, { diameter: "1em", "aria-label": f });
|
|
5006
5006
|
return o.createElement(
|
|
5007
5007
|
"span",
|
|
5008
5008
|
Object.assign({ className: y(dn.icon, c && dn.modifiers.inline, d && dn.modifiers.inProgress, dn.modifiers[r], n) }, p),
|
|
@@ -5010,7 +5010,7 @@ const _b = {
|
|
|
5010
5010
|
d && o.createElement("span", { className: y(dn.iconProgress, dn.modifiers[s], n) }, m)
|
|
5011
5011
|
);
|
|
5012
5012
|
};
|
|
5013
|
-
|
|
5013
|
+
Kn.displayName = "Icon";
|
|
5014
5014
|
const Lb = {
|
|
5015
5015
|
name: "AngleDownIcon",
|
|
5016
5016
|
height: 512,
|
|
@@ -5032,7 +5032,7 @@ const Lb = {
|
|
|
5032
5032
|
svgPath: "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",
|
|
5033
5033
|
yOffset: 0,
|
|
5034
5034
|
xOffset: 0
|
|
5035
|
-
}, Tb = pe(Nb),
|
|
5035
|
+
}, Tb = pe(Nb), Ke = {
|
|
5036
5036
|
dirRtl: "pf-v5-m-dir-rtl",
|
|
5037
5037
|
form: "pf-v5-c-form",
|
|
5038
5038
|
formActions: "pf-v5-c-form__actions",
|
|
@@ -5087,11 +5087,11 @@ const Lb = {
|
|
|
5087
5087
|
themeDark: "pf-v5-theme-dark"
|
|
5088
5088
|
}, il = (e) => {
|
|
5089
5089
|
var { children: t = null, className: n = "" } = e, i = z(e, ["children", "className"]);
|
|
5090
|
-
const r = y(
|
|
5090
|
+
const r = y(Ke.formGroup, Ke.modifiers.action, n), a = o.createElement("div", { className: y(Ke.formActions) }, t);
|
|
5091
5091
|
return o.createElement(
|
|
5092
5092
|
"div",
|
|
5093
5093
|
Object.assign({}, i, { className: r }),
|
|
5094
|
-
o.createElement("div", { className: y(
|
|
5094
|
+
o.createElement("div", { className: y(Ke.formGroupControl) }, a)
|
|
5095
5095
|
);
|
|
5096
5096
|
};
|
|
5097
5097
|
il.displayName = "ActionGroup";
|
|
@@ -5103,7 +5103,7 @@ const Rb = {
|
|
|
5103
5103
|
var { children: t = null, className: n = "", isHorizontal: i = !1, isWidthLimited: r = !1, maxWidth: a = "", innerRef: s } = e, l = z(e, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
5104
5104
|
return o.createElement("form", Object.assign({ noValidate: !0 }, a && {
|
|
5105
5105
|
style: Object.assign({ [Rb.name]: a }, l.style)
|
|
5106
|
-
}, l, { className: y(
|
|
5106
|
+
}, l, { className: y(Ke.form, i && Ke.modifiers.horizontal, (r || a) && Ke.modifiers.limitWidth, n), ref: s }), t);
|
|
5107
5107
|
}, Gr = o.forwardRef((e, t) => o.createElement(Ab, Object.assign({ innerRef: t }, e)));
|
|
5108
5108
|
Gr.displayName = "Form";
|
|
5109
5109
|
const wn = (e) => {
|
|
@@ -5113,11 +5113,11 @@ const wn = (e) => {
|
|
|
5113
5113
|
null,
|
|
5114
5114
|
o.createElement(
|
|
5115
5115
|
g,
|
|
5116
|
-
Object.assign({ className: y(
|
|
5117
|
-
o.createElement("span", { className: y(
|
|
5116
|
+
Object.assign({ className: y(Ke.formLabel) }, !m && { htmlFor: f }),
|
|
5117
|
+
o.createElement("span", { className: y(Ke.formLabelText) }, i),
|
|
5118
5118
|
s && o.createElement(
|
|
5119
5119
|
"span",
|
|
5120
|
-
{ className: y(
|
|
5120
|
+
{ className: y(Ke.formLabelRequired), "aria-hidden": "true" },
|
|
5121
5121
|
" ",
|
|
5122
5122
|
rf
|
|
5123
5123
|
)
|
|
@@ -5127,25 +5127,25 @@ const wn = (e) => {
|
|
|
5127
5127
|
);
|
|
5128
5128
|
return o.createElement(sn, null, (x) => o.createElement(
|
|
5129
5129
|
"div",
|
|
5130
|
-
Object.assign({ className: y(
|
|
5130
|
+
Object.assign({ className: y(Ke.formGroup, n) }, u && { role: u }, m && { "aria-labelledby": `${f || x}-legend` }, p),
|
|
5131
5131
|
i && o.createElement(
|
|
5132
5132
|
"div",
|
|
5133
|
-
Object.assign({ className: y(
|
|
5133
|
+
Object.assign({ className: y(Ke.formGroupLabel, r && Ke.modifiers.info, c && Ke.modifiers.noPaddingTop) }, m && { id: `${f || x}-legend` }),
|
|
5134
5134
|
r && o.createElement(
|
|
5135
5135
|
o.Fragment,
|
|
5136
5136
|
null,
|
|
5137
|
-
o.createElement("div", { className: y(
|
|
5138
|
-
o.createElement("div", { className: y(
|
|
5137
|
+
o.createElement("div", { className: y(Ke.formGroupLabelMain) }, v),
|
|
5138
|
+
o.createElement("div", { className: y(Ke.formGroupLabelInfo) }, r)
|
|
5139
5139
|
),
|
|
5140
5140
|
!r && v
|
|
5141
5141
|
),
|
|
5142
|
-
o.createElement("div", { className: y(
|
|
5142
|
+
o.createElement("div", { className: y(Ke.formGroupControl, l && Ke.modifiers.inline, d && Ke.modifiers.stack) }, t)
|
|
5143
5143
|
));
|
|
5144
5144
|
};
|
|
5145
5145
|
wn.displayName = "FormGroup";
|
|
5146
5146
|
const rl = (e) => {
|
|
5147
5147
|
var { children: t = null, className: n = "" } = e, i = z(e, ["children", "className"]);
|
|
5148
|
-
return o.createElement("div", Object.assign({ className: y(
|
|
5148
|
+
return o.createElement("div", Object.assign({ className: y(Ke.formHelperText, n) }, i), t);
|
|
5149
5149
|
};
|
|
5150
5150
|
rl.displayName = "FormHelperText";
|
|
5151
5151
|
const Li = {
|
|
@@ -5309,7 +5309,7 @@ const Ga = (e) => {
|
|
|
5309
5309
|
Ga.displayName = "TextInputGroupUtilities";
|
|
5310
5310
|
const du = (e) => {
|
|
5311
5311
|
var { className: t, searchInputId: n, value: i = "", attributes: r = [], formAdditionalItems: a, hasWordsAttrLabel: s = "Has words", advancedSearchDelimiter: l, placeholder: c, hint: d, onChange: f, onSearch: u, onClear: p, onToggleAdvancedSearch: m, isAdvancedSearchOpen: g, resultsCount: v, onNextClick: x, onPreviousClick: w, innerRef: _, expandableInput: S, "aria-label": I = "Search input", resetButtonLabel: E = "Reset", openMenuButtonAriaLabel: R = "Open advanced search", previousNavigationButtonAriaLabel: k = "Previous", isPreviousNavigationButtonDisabled: N = !1, isNextNavigationButtonDisabled: M = !1, nextNavigationButtonAriaLabel: $ = "Next", submitSearchButtonLabel: D = "Search", isDisabled: O = !1, appendTo: L, zIndex: j = 9999, name: C, areUtilitiesDisplayed: P } = e, G = z(e, ["className", "searchInputId", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", "expandableInput", "aria-label", "resetButtonLabel", "openMenuButtonAriaLabel", "previousNavigationButtonAriaLabel", "isPreviousNavigationButtonDisabled", "isNextNavigationButtonDisabled", "nextNavigationButtonAriaLabel", "submitSearchButtonLabel", "isDisabled", "appendTo", "zIndex", "name", "areUtilitiesDisplayed"]);
|
|
5312
|
-
const [B, J] = o.useState(!1), [b, F] = o.useState(i),
|
|
5312
|
+
const [B, J] = o.useState(!1), [b, F] = o.useState(i), X = o.useRef(null), V = o.useRef(null), U = _ || V, q = o.useRef(null), W = o.useRef(null), K = o.useRef(null), [te, ie] = o.useState(!1), { isExpanded: Y, onToggleExpand: oe, toggleAriaLabel: de } = S || {};
|
|
5313
5313
|
o.useEffect(() => {
|
|
5314
5314
|
var he, Ee;
|
|
5315
5315
|
if (te)
|
|
@@ -5414,7 +5414,7 @@ const du = (e) => {
|
|
|
5414
5414
|
ce,
|
|
5415
5415
|
{ type: "submit", variant: Me.control, "aria-label": D, onClick: Te, isDisabled: O },
|
|
5416
5416
|
o.createElement(
|
|
5417
|
-
|
|
5417
|
+
Kn,
|
|
5418
5418
|
{ shouldMirrorRTL: !0 },
|
|
5419
5419
|
o.createElement(Tb, null)
|
|
5420
5420
|
)
|
|
@@ -5422,7 +5422,7 @@ const du = (e) => {
|
|
|
5422
5422
|
),
|
|
5423
5423
|
S && o.createElement(xt, null, Q)
|
|
5424
5424
|
);
|
|
5425
|
-
}, ye = Object.assign(Object.assign({}, G), { className: t && y(t), innerRef:
|
|
5425
|
+
}, ye = Object.assign(Object.assign({}, G), { className: t && y(t), innerRef: X });
|
|
5426
5426
|
if (S && !Y)
|
|
5427
5427
|
return o.createElement(
|
|
5428
5428
|
Hn,
|
|
@@ -5433,15 +5433,15 @@ const du = (e) => {
|
|
|
5433
5433
|
if (r.length > 0) {
|
|
5434
5434
|
const he = o.createElement(
|
|
5435
5435
|
"div",
|
|
5436
|
-
{ ref:
|
|
5437
|
-
o.createElement(lu, { value: i, parentRef:
|
|
5436
|
+
{ ref: K },
|
|
5437
|
+
o.createElement(lu, { value: i, parentRef: X, parentInputRef: U, onSearch: u, onClear: p, onChange: f, onToggleAdvancedMenu: Oe, resetButtonLabel: E, submitSearchButtonLabel: D, attributes: r, formAdditionalItems: a, hasWordsAttrLabel: s, advancedSearchDelimiter: l, getAttrValueMap: Le, isSearchMenuOpen: B })
|
|
5438
5438
|
), Ee = o.createElement(
|
|
5439
5439
|
"div",
|
|
5440
|
-
Object.assign({ className: y(t), ref:
|
|
5441
|
-
o.createElement(Ln, { trigger: ve(), triggerRef: W, popper: he, popperRef:
|
|
5440
|
+
Object.assign({ className: y(t), ref: X }, G),
|
|
5441
|
+
o.createElement(Ln, { trigger: ve(), triggerRef: W, popper: he, popperRef: K, isVisible: B, enableFlip: !0, appendTo: () => L || X.current, zIndex: j })
|
|
5442
5442
|
), We = o.createElement(
|
|
5443
5443
|
"div",
|
|
5444
|
-
Object.assign({ className: y(t), ref:
|
|
5444
|
+
Object.assign({ className: y(t), ref: X }, G),
|
|
5445
5445
|
ve(),
|
|
5446
5446
|
he
|
|
5447
5447
|
);
|
|
@@ -5833,8 +5833,8 @@ const mu = (e) => {
|
|
|
5833
5833
|
k.current = !0;
|
|
5834
5834
|
let F;
|
|
5835
5835
|
J || (F = ca(j, []), _(F));
|
|
5836
|
-
const
|
|
5837
|
-
if (
|
|
5836
|
+
const X = J || F[B];
|
|
5837
|
+
if (X) {
|
|
5838
5838
|
const V = $();
|
|
5839
5839
|
if (V instanceof HTMLElement) {
|
|
5840
5840
|
if (Bb(N.current)) {
|
|
@@ -5844,9 +5844,9 @@ const mu = (e) => {
|
|
|
5844
5844
|
U = U.parentElement;
|
|
5845
5845
|
R(!1), U && (d += U.scrollHeight);
|
|
5846
5846
|
}
|
|
5847
|
-
V.scrollTo(0,
|
|
5847
|
+
V.scrollTo(0, X.offsetTop - d);
|
|
5848
5848
|
}
|
|
5849
|
-
|
|
5849
|
+
X.focus(), window.history.pushState("", "", b.currentTarget.href), b.preventDefault(), I(B);
|
|
5850
5850
|
}
|
|
5851
5851
|
P && P(b);
|
|
5852
5852
|
},
|
|
@@ -5976,7 +5976,7 @@ const Ye = {
|
|
|
5976
5976
|
const Y = l ? D : B;
|
|
5977
5977
|
k || F(Y.current && Y.current.offsetWidth < Y.current.scrollWidth);
|
|
5978
5978
|
}, [k]);
|
|
5979
|
-
const
|
|
5979
|
+
const X = o.createElement(
|
|
5980
5980
|
o.Fragment,
|
|
5981
5981
|
null,
|
|
5982
5982
|
u && o.createElement("span", { className: y(Ye.labelIcon) }, u),
|
|
@@ -5997,17 +5997,17 @@ const Ye = {
|
|
|
5997
5997
|
const q = {
|
|
5998
5998
|
type: "button",
|
|
5999
5999
|
onClick: m
|
|
6000
|
-
}, W = U === "button",
|
|
6000
|
+
}, W = U === "button", K = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ className: y(Ye.labelContent) }, b && { tabIndex: 0 }), S && { href: S }), S && s && { onClick: (Y) => Y.preventDefault() }), W && q), l && Object.assign({ ref: D, onClick: (Y) => {
|
|
6001
6001
|
N(!0), Y.stopPropagation();
|
|
6002
6002
|
} }, c)), C && W && { disabled: !0 }), C && S && { tabIndex: -1, "aria-disabled": !0 });
|
|
6003
|
-
let te = o.createElement(U, Object.assign({},
|
|
6003
|
+
let te = o.createElement(U, Object.assign({}, K), X);
|
|
6004
6004
|
E ? te = o.createElement(
|
|
6005
6005
|
o.Fragment,
|
|
6006
6006
|
null,
|
|
6007
6007
|
b && o.createElement(ft, { triggerRef: J, content: t, position: f }),
|
|
6008
6008
|
E({
|
|
6009
6009
|
className: Ye.labelContent,
|
|
6010
|
-
content:
|
|
6010
|
+
content: X,
|
|
6011
6011
|
componentRef: J
|
|
6012
6012
|
})
|
|
6013
6013
|
) : b && (te = o.createElement(ft, { content: t, position: f }, te));
|
|
@@ -6145,7 +6145,7 @@ const Ub = {
|
|
|
6145
6145
|
toolbar: "pf-v5-c-toolbar",
|
|
6146
6146
|
toolbarContentSection: "pf-v5-c-toolbar__content-section",
|
|
6147
6147
|
toolbarExpandableContent: "pf-v5-c-toolbar__expandable-content"
|
|
6148
|
-
},
|
|
6148
|
+
}, Xb = {
|
|
6149
6149
|
isManagedSidebar: !1,
|
|
6150
6150
|
isSidebarOpen: !1,
|
|
6151
6151
|
onSidebarToggle: () => null,
|
|
@@ -6153,7 +6153,7 @@ const Ub = {
|
|
|
6153
6153
|
height: null,
|
|
6154
6154
|
getBreakpoint: nf,
|
|
6155
6155
|
getVerticalBreakpoint: tf
|
|
6156
|
-
}, In = o.createContext(
|
|
6156
|
+
}, In = o.createContext(Xb), Kb = In.Provider, gu = In.Consumer, bu = (e) => {
|
|
6157
6157
|
var { children: t, className: n, backgroundColor: i = "dark", display: r = {
|
|
6158
6158
|
md: "inline"
|
|
6159
6159
|
}, inset: a } = e, s = z(e, ["children", "className", "backgroundColor", "display", "inset"]);
|
|
@@ -6365,19 +6365,19 @@ const xe = {
|
|
|
6365
6365
|
themeDark: "pf-v5-theme-dark"
|
|
6366
6366
|
}, Jb = {
|
|
6367
6367
|
isSidebarOpen: !0
|
|
6368
|
-
},
|
|
6368
|
+
}, Xa = o.createContext(Jb), wu = (e) => {
|
|
6369
6369
|
var { className: t = "", children: n, isSidebarOpen: i = !0, theme: r = "dark", id: a = "page-sidebar" } = e, s = z(e, ["className", "children", "isSidebarOpen", "theme", "id"]);
|
|
6370
6370
|
return o.createElement(gu, null, ({ isManagedSidebar: l, isSidebarOpen: c }) => {
|
|
6371
6371
|
const d = l ? c : i;
|
|
6372
6372
|
return o.createElement(
|
|
6373
6373
|
"div",
|
|
6374
6374
|
Object.assign({ id: a, className: y(xe.pageSidebar, r === "light" && xe.modifiers.light, d && xe.modifiers.expanded, !d && xe.modifiers.collapsed, t), "aria-hidden": !d }, s),
|
|
6375
|
-
o.createElement(
|
|
6375
|
+
o.createElement(Xa.Provider, { value: { isSidebarOpen: d } }, n)
|
|
6376
6376
|
);
|
|
6377
6377
|
});
|
|
6378
6378
|
};
|
|
6379
6379
|
wu.displayName = "PageSidebar";
|
|
6380
|
-
class
|
|
6380
|
+
class Ka extends o.Component {
|
|
6381
6381
|
constructor() {
|
|
6382
6382
|
super(...arguments), this.direction = "ltr", this.state = {
|
|
6383
6383
|
scrollViewAtStart: !1,
|
|
@@ -6423,7 +6423,7 @@ class Xa extends o.Component {
|
|
|
6423
6423
|
}
|
|
6424
6424
|
render() {
|
|
6425
6425
|
const t = this.props, { children: n, className: i, ariaLeftScroll: r, ariaRightScroll: a, backScrollAriaLabel: s, forwardScrollAriaLabel: l } = t, c = z(t, ["children", "className", "ariaLeftScroll", "ariaRightScroll", "backScrollAriaLabel", "forwardScrollAriaLabel"]), { scrollViewAtStart: d, scrollViewAtEnd: f } = this.state;
|
|
6426
|
-
return o.createElement($i.Consumer, null, ({ isHorizontal: u }) => o.createElement(
|
|
6426
|
+
return o.createElement($i.Consumer, null, ({ isHorizontal: u }) => o.createElement(Xa.Consumer, null, ({ isSidebarOpen: p }) => o.createElement(
|
|
6427
6427
|
o.Fragment,
|
|
6428
6428
|
null,
|
|
6429
6429
|
u && o.createElement(
|
|
@@ -6440,9 +6440,9 @@ class Xa extends o.Component {
|
|
|
6440
6440
|
)));
|
|
6441
6441
|
}
|
|
6442
6442
|
}
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6443
|
+
Ka.displayName = "NavList";
|
|
6444
|
+
Ka.contextType = $i;
|
|
6445
|
+
Ka.defaultProps = {
|
|
6446
6446
|
ariaLeftScroll: "Scroll left",
|
|
6447
6447
|
backScrollAriaLabel: "Scroll back",
|
|
6448
6448
|
ariaRightScroll: "Scroll right",
|
|
@@ -6450,7 +6450,7 @@ Xa.defaultProps = {
|
|
|
6450
6450
|
};
|
|
6451
6451
|
const cl = (e) => {
|
|
6452
6452
|
var { children: t, styleChildren: n = !0, className: i, to: r, isActive: a = !1, groupId: s = null, itemId: l = null, preventDefault: c = !1, onClick: d, component: f = "a", flyout: u, onShowFlyout: p, ouiaId: m, ouiaSafe: g, zIndex: v = 9999, hasNavLinkWrapper: x } = e, w = z(e, ["children", "styleChildren", "className", "to", "isActive", "groupId", "itemId", "preventDefault", "onClick", "component", "flyout", "onShowFlyout", "ouiaId", "ouiaSafe", "zIndex", "hasNavLinkWrapper"]);
|
|
6453
|
-
const { flyoutRef: _, setFlyoutRef: S, navRef: I } = o.useContext($i), { isSidebarOpen: E } = o.useContext(
|
|
6453
|
+
const { flyoutRef: _, setFlyoutRef: S, navRef: I } = o.useContext($i), { isSidebarOpen: E } = o.useContext(Xa), [R, k] = o.useState(null), [N, M] = o.useState(!1), $ = o.useRef(), D = $ === _, O = o.useRef(), L = u !== void 0, j = L ? "button" : f;
|
|
6454
6454
|
r && L && console.error('NavItem cannot have both "to" and "flyout" props.');
|
|
6455
6455
|
const C = (ie, Y) => {
|
|
6456
6456
|
(!D || Y) && ie ? S($) : (D || Y) && !ie && S(null), p && ie && p();
|
|
@@ -6480,7 +6480,7 @@ const cl = (e) => {
|
|
|
6480
6480
|
), b = {
|
|
6481
6481
|
"aria-haspopup": "menu",
|
|
6482
6482
|
"aria-expanded": D
|
|
6483
|
-
}, F = E ? null : -1,
|
|
6483
|
+
}, F = E ? null : -1, X = (ie) => {
|
|
6484
6484
|
const Y = c || !r;
|
|
6485
6485
|
return o.createElement(
|
|
6486
6486
|
j,
|
|
@@ -6499,16 +6499,16 @@ const cl = (e) => {
|
|
|
6499
6499
|
M(!0);
|
|
6500
6500
|
}, W = () => {
|
|
6501
6501
|
M(!1);
|
|
6502
|
-
},
|
|
6502
|
+
}, K = o.createElement(Ln, { triggerRef: $, popper: o.createElement("div", { ref: O, onMouseEnter: q, onMouseLeave: W }, u), popperRef: O, placement: "right-start", isVisible: D, onDocumentKeyDown: B, zIndex: v, appendTo: I?.current });
|
|
6503
6503
|
return o.createElement(
|
|
6504
6504
|
o.Fragment,
|
|
6505
6505
|
null,
|
|
6506
6506
|
o.createElement(
|
|
6507
6507
|
"li",
|
|
6508
6508
|
Object.assign({ onMouseOver: P, className: y(ke.navItem, L && ke.modifiers.flyout, i), ref: $ }, U),
|
|
6509
|
-
o.createElement($i.Consumer, null, (ie) => o.isValidElement(t) ? V(ie, t) :
|
|
6509
|
+
o.createElement($i.Consumer, null, (ie) => o.isValidElement(t) ? V(ie, t) : X(ie))
|
|
6510
6510
|
),
|
|
6511
|
-
u &&
|
|
6511
|
+
u && K
|
|
6512
6512
|
);
|
|
6513
6513
|
};
|
|
6514
6514
|
cl.displayName = "NavItem";
|
|
@@ -6555,7 +6555,7 @@ class ji extends o.Component {
|
|
|
6555
6555
|
return o.createElement($i.Consumer, null, (x) => o.createElement(
|
|
6556
6556
|
"li",
|
|
6557
6557
|
Object.assign({ className: y(ke.navItem, ke.modifiers.expandable, g && ke.modifiers.expanded, s && ke.modifiers.current, a) }, rt(ji.displayName, l !== void 0 ? l : v), m),
|
|
6558
|
-
o.createElement(
|
|
6558
|
+
o.createElement(Xa.Consumer, null, ({ isSidebarOpen: w }) => o.createElement(
|
|
6559
6559
|
"button",
|
|
6560
6560
|
Object.assign({ className: y(ke.navLink), id: i ? null : this.id, onClick: (_) => this.onExpand(_, x.onToggle), "aria-expanded": g, tabIndex: w ? null : -1 }, u),
|
|
6561
6561
|
typeof n != "string" ? o.createElement("span", { className: y(`${ke.nav}__link-text`) }, n) : n,
|
|
@@ -6590,7 +6590,7 @@ ji.defaultProps = {
|
|
|
6590
6590
|
};
|
|
6591
6591
|
const qa = (e) => {
|
|
6592
6592
|
var { children: t, className: n = "", isVisited: i = !1 } = e, r = z(e, ["children", "className", "isVisited"]);
|
|
6593
|
-
return o.createElement("div", Object.assign({}, r, { className: y(
|
|
6593
|
+
return o.createElement("div", Object.assign({}, r, { className: y(Xs.content, i && Xs.modifiers.visited, n) }), t);
|
|
6594
6594
|
};
|
|
6595
6595
|
qa.displayName = "TextContent";
|
|
6596
6596
|
var Vi;
|
|
@@ -6600,7 +6600,7 @@ var Vi;
|
|
|
6600
6600
|
const En = (e) => {
|
|
6601
6601
|
var { children: t = null, className: n = "", component: i = Vi.p, isVisitedLink: r = !1, ouiaId: a, ouiaSafe: s = !0 } = e, l = z(e, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
6602
6602
|
const c = i, d = Gt(En.displayName, a, s);
|
|
6603
|
-
return o.createElement(c, Object.assign({}, d, l, { "data-pf-content": !0, className: y(r && i === Vi.a &&
|
|
6603
|
+
return o.createElement(c, Object.assign({}, d, l, { "data-pf-content": !0, className: y(r && i === Vi.a && Xs.modifiers.visited, n) }), t);
|
|
6604
6604
|
};
|
|
6605
6605
|
En.displayName = "Text";
|
|
6606
6606
|
const oi = {
|
|
@@ -6789,7 +6789,7 @@ let Ja = class extends o.Component {
|
|
|
6789
6789
|
additionalGroupedContent: L,
|
|
6790
6790
|
groupProps: j,
|
|
6791
6791
|
breadcrumbProps: C
|
|
6792
|
-
} = t, P = z(t, ["breadcrumb", "isBreadcrumbWidthLimited", "className", "children", "header", "sidebar", "notificationDrawer", "isNotificationDrawerExpanded", "onNotificationDrawerExpand", "drawerDefaultSize", "drawerMinSize", "drawerMaxSize", "isTertiaryNavWidthLimited", "skipToContent", "role", "mainContainerId", "isManagedSidebar", "defaultManagedSidebarIsOpen", "onPageResize", "getBreakpoint", "getVerticalBreakpoint", "mainAriaLabel", "mainTabIndex", "mainComponent", "tertiaryNav", "isTertiaryNavGrouped", "isBreadcrumbGrouped", "additionalGroupedContent", "groupProps", "breadcrumbProps"]), { mobileView: G, mobileIsSidebarOpen: B, desktopIsSidebarOpen: J, width: b, height: F } = this.state,
|
|
6792
|
+
} = t, P = z(t, ["breadcrumb", "isBreadcrumbWidthLimited", "className", "children", "header", "sidebar", "notificationDrawer", "isNotificationDrawerExpanded", "onNotificationDrawerExpand", "drawerDefaultSize", "drawerMinSize", "drawerMaxSize", "isTertiaryNavWidthLimited", "skipToContent", "role", "mainContainerId", "isManagedSidebar", "defaultManagedSidebarIsOpen", "onPageResize", "getBreakpoint", "getVerticalBreakpoint", "mainAriaLabel", "mainTabIndex", "mainComponent", "tertiaryNav", "isTertiaryNavGrouped", "isBreadcrumbGrouped", "additionalGroupedContent", "groupProps", "breadcrumbProps"]), { mobileView: G, mobileIsSidebarOpen: B, desktopIsSidebarOpen: J, width: b, height: F } = this.state, X = {
|
|
6793
6793
|
isManagedSidebar: _,
|
|
6794
6794
|
onSidebarToggle: G ? this.onSidebarToggleMobile : this.onSidebarToggleDesktop,
|
|
6795
6795
|
isSidebarOpen: G ? B : J,
|
|
@@ -6810,8 +6810,8 @@ let Ja = class extends o.Component {
|
|
|
6810
6810
|
D && V,
|
|
6811
6811
|
O && U,
|
|
6812
6812
|
L
|
|
6813
|
-
) : null,
|
|
6814
|
-
|
|
6813
|
+
) : null, K = M, te = o.createElement(
|
|
6814
|
+
K,
|
|
6815
6815
|
{ ref: this.mainRef, role: x, id: w, className: y(xe.pageMain), tabIndex: N, "aria-label": k },
|
|
6816
6816
|
W,
|
|
6817
6817
|
!D && V,
|
|
@@ -6819,8 +6819,8 @@ let Ja = class extends o.Component {
|
|
|
6819
6819
|
a
|
|
6820
6820
|
), ie = o.createElement(ru, { defaultSize: u, minSize: p, maxSize: m }, c);
|
|
6821
6821
|
return o.createElement(
|
|
6822
|
-
|
|
6823
|
-
{ value:
|
|
6822
|
+
Kb,
|
|
6823
|
+
{ value: X },
|
|
6824
6824
|
o.createElement(
|
|
6825
6825
|
"div",
|
|
6826
6826
|
Object.assign({ ref: this.pageRef }, P, { className: y(xe.page, b !== null && F !== null && "pf-m-resize-observer", b !== null && `pf-m-breakpoint-${E(b)}`, F !== null && `pf-m-height-breakpoint-${R(F)}`, r) }),
|
|
@@ -7193,8 +7193,8 @@ const Lu = ({
|
|
|
7193
7193
|
}, G = (B) => {
|
|
7194
7194
|
var J, b, F;
|
|
7195
7195
|
E && (!((J = k.current) === null || J === void 0) && J.contains(B.target)) && setTimeout(() => {
|
|
7196
|
-
var
|
|
7197
|
-
const V = (
|
|
7196
|
+
var X;
|
|
7197
|
+
const V = (X = N?.current) === null || X === void 0 ? void 0 : X.querySelector("li button:not(:disabled)");
|
|
7198
7198
|
V && V.focus();
|
|
7199
7199
|
}, 0), E && !(!((b = k?.current) === null || b === void 0) && b.contains(B.target)) && !(!((F = N.current) === null || F === void 0) && F.contains(B.target)) && R(!1);
|
|
7200
7200
|
};
|
|
@@ -7287,18 +7287,18 @@ const wc = [
|
|
|
7287
7287
|
}, ouiaId: O, ouiaSafe: L = !0, usePageInsets: j, inset: C, menuAppendTo: P } = e, G = z(e, ["children", "className", "variant", "isDisabled", "isCompact", "isSticky", "isStatic", "dropDirection", "toggleTemplate", "perPage", "titles", "firstPage", "page", "offset", "isLastFullPageShown", "itemsStart", "itemsEnd", "itemCount", "perPageOptions", "widgetId", "onSetPage", "onPerPageSelect", "onFirstClick", "onPreviousClick", "onNextClick", "onPageInput", "onLastClick", "ouiaId", "ouiaSafe", "usePageInsets", "inset", "menuAppendTo"]);
|
|
7288
7288
|
const B = o.useRef(null), J = o.useRef(null), b = () => (
|
|
7289
7289
|
// when itemCount is not known let's set lastPage as page+1 as we don't know the total count
|
|
7290
|
-
_ || _ === 0 ? Math.ceil(_ / f) || 0 :
|
|
7290
|
+
_ || _ === 0 ? Math.ceil(_ / f) || 0 : X + 1
|
|
7291
7291
|
);
|
|
7292
7292
|
o.useEffect(() => {
|
|
7293
|
-
const
|
|
7294
|
-
Qb(b(),
|
|
7293
|
+
const K = B.current;
|
|
7294
|
+
Qb(b(), K);
|
|
7295
7295
|
}, [f, _]);
|
|
7296
7296
|
const F = c || (i === "bottom" && !l ? "up" : "down");
|
|
7297
|
-
let
|
|
7298
|
-
g !== null && (x = g + 1,
|
|
7297
|
+
let X = m;
|
|
7298
|
+
g !== null && (x = g + 1, X = Math.max(Math.ceil(x / f), 1), w = g + f);
|
|
7299
7299
|
const V = b();
|
|
7300
|
-
let U = (
|
|
7301
|
-
(_ || _ === 0) && (U = _ <= 0 ? 0 : (
|
|
7300
|
+
let U = (X - 1) * f + 1, q = X * f;
|
|
7301
|
+
(_ || _ === 0) && (U = _ <= 0 ? 0 : (X - 1) * f + 1, X < p && _ > 0 ? X = p : X > V && (X = V), _ >= 0 && (q = X === V || _ === 0 ? _ : X * f));
|
|
7302
7302
|
const W = {
|
|
7303
7303
|
firstIndex: U,
|
|
7304
7304
|
lastIndex: q,
|
|
@@ -7316,8 +7316,8 @@ const wc = [
|
|
|
7316
7316
|
d && typeof d != "string" && d(W),
|
|
7317
7317
|
!d && o.createElement(fl, { firstIndex: U, lastIndex: q, itemCount: _, itemsTitle: u.items, ofWord: u.ofWord })
|
|
7318
7318
|
),
|
|
7319
|
-
S && S.length > 0 && o.createElement(Lu, { itemsPerPageTitle: u.itemsPerPage, perPageSuffix: u.perPageSuffix, itemsTitle: a ? "" : u.items, optionsToggleAriaLabel: u.optionsToggleAriaLabel, perPageOptions: S, firstIndex: x !== null ? x : U, lastIndex: w !== null ? w : q, ofWord: u.ofWord, isLastFullPageShown: v, itemCount: _, page:
|
|
7320
|
-
o.createElement(Ui, { pagesTitle: u.page, pagesTitlePlural: u.pages, toLastPageAriaLabel: u.toLastPageAriaLabel, toPreviousPageAriaLabel: u.toPreviousPageAriaLabel, toNextPageAriaLabel: u.toNextPageAriaLabel, toFirstPageAriaLabel: u.toFirstPageAriaLabel, currPageAriaLabel: u.currPageAriaLabel, paginationAriaLabel: u.paginationAriaLabel, ofWord: u.ofWord, page: _ && _ <= 0 ? 0 :
|
|
7319
|
+
S && S.length > 0 && o.createElement(Lu, { itemsPerPageTitle: u.itemsPerPage, perPageSuffix: u.perPageSuffix, itemsTitle: a ? "" : u.items, optionsToggleAriaLabel: u.optionsToggleAriaLabel, perPageOptions: S, firstIndex: x !== null ? x : U, lastIndex: w !== null ? w : q, ofWord: u.ofWord, isLastFullPageShown: v, itemCount: _, page: X, perPage: f, lastPage: V, onPerPageSelect: R, dropDirection: F, widgetId: `${I}-${i}`, toggleTemplate: d, isDisabled: r, containerRef: J, appendTo: P }),
|
|
7320
|
+
o.createElement(Ui, { pagesTitle: u.page, pagesTitlePlural: u.pages, toLastPageAriaLabel: u.toLastPageAriaLabel, toPreviousPageAriaLabel: u.toPreviousPageAriaLabel, toNextPageAriaLabel: u.toNextPageAriaLabel, toFirstPageAriaLabel: u.toFirstPageAriaLabel, currPageAriaLabel: u.currPageAriaLabel, paginationAriaLabel: u.paginationAriaLabel, ofWord: u.ofWord, page: _ && _ <= 0 ? 0 : X, perPage: f, itemCount: _, firstPage: x !== null ? x : 1, lastPage: V, onSetPage: E, onFirstClick: k, onPreviousClick: N, onNextClick: M, onLastClick: D, onPageInput: $, isDisabled: r, isCompact: a }),
|
|
7321
7321
|
t
|
|
7322
7322
|
);
|
|
7323
7323
|
};
|
|
@@ -7662,9 +7662,9 @@ class zi extends o.Component {
|
|
|
7662
7662
|
};
|
|
7663
7663
|
}
|
|
7664
7664
|
render() {
|
|
7665
|
-
const t = this.props, { className: n, children: i, activeKey: r, defaultActiveKey: a, id: s, isFilled: l, isSecondary: c, isVertical: d, isBox: f, hasNoBorderBottom: u, leftScrollAriaLabel: p, rightScrollAriaLabel: m, backScrollAriaLabel: g, forwardScrollAriaLabel: v, "aria-label": x, component: w, ouiaId: _, ouiaSafe: S, mountOnEnter: I, unmountOnExit: E, usePageInsets: R, inset: k, variant: N, expandable: M, isExpanded: $, defaultIsExpanded: D, toggleText: O, toggleAriaLabel: L, addButtonAriaLabel: j, onToggle: C, onClose: P, onAdd: G, isOverflowHorizontal: B } = t, J = z(t, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "hasNoBorderBottom", "leftScrollAriaLabel", "rightScrollAriaLabel", "backScrollAriaLabel", "forwardScrollAriaLabel", "aria-label", "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "addButtonAriaLabel", "onToggle", "onClose", "onAdd", "isOverflowHorizontal"]), { showScrollButtons: b, renderScrollButtons: F, disableBackScrollButton:
|
|
7665
|
+
const t = this.props, { className: n, children: i, activeKey: r, defaultActiveKey: a, id: s, isFilled: l, isSecondary: c, isVertical: d, isBox: f, hasNoBorderBottom: u, leftScrollAriaLabel: p, rightScrollAriaLabel: m, backScrollAriaLabel: g, forwardScrollAriaLabel: v, "aria-label": x, component: w, ouiaId: _, ouiaSafe: S, mountOnEnter: I, unmountOnExit: E, usePageInsets: R, inset: k, variant: N, expandable: M, isExpanded: $, defaultIsExpanded: D, toggleText: O, toggleAriaLabel: L, addButtonAriaLabel: j, onToggle: C, onClose: P, onAdd: G, isOverflowHorizontal: B } = t, J = z(t, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "hasNoBorderBottom", "leftScrollAriaLabel", "rightScrollAriaLabel", "backScrollAriaLabel", "forwardScrollAriaLabel", "aria-label", "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "addButtonAriaLabel", "onToggle", "onClose", "onAdd", "isOverflowHorizontal"]), { showScrollButtons: b, renderScrollButtons: F, disableBackScrollButton: X, disableForwardScrollButton: V, shownKeys: U, uncontrolledActiveKey: q, uncontrolledIsExpandedLocal: W, overflowingTabCount: K } = this.state, te = o.Children.toArray(i).filter((A) => o.isValidElement(A)).filter(({ props: A }) => !A.isHidden), ie = te.slice(0, te.length - K), oe = te.slice(te.length - K).map((A) => A.props), de = s || Mi(), Ce = w === xa.nav ? "nav" : "div", Oe = a !== void 0 ? q : r, Te = D !== void 0 ? W : $, De = (A, H) => {
|
|
7666
7666
|
$ === void 0 ? this.setState({ uncontrolledIsExpandedLocal: H }) : C(A, H);
|
|
7667
|
-
}, Le = B &&
|
|
7667
|
+
}, Le = B && K > 0, T = typeof B == "object" ? Object.assign({}, B) : {};
|
|
7668
7668
|
return o.createElement(
|
|
7669
7669
|
ev,
|
|
7670
7670
|
{ value: {
|
|
@@ -7699,7 +7699,7 @@ class zi extends o.Component {
|
|
|
7699
7699
|
)),
|
|
7700
7700
|
F && o.createElement(
|
|
7701
7701
|
"button",
|
|
7702
|
-
{ type: "button", className: y(_e.tabsScrollButton, c && Ge.modifiers.secondary), "aria-label": g || p, onClick: this.scrollBack, disabled:
|
|
7702
|
+
{ type: "button", className: y(_e.tabsScrollButton, c && Ge.modifiers.secondary), "aria-label": g || p, onClick: this.scrollBack, disabled: X, "aria-hidden": X, ref: this.leftScrollButtonRef },
|
|
7703
7703
|
o.createElement(Ua, null)
|
|
7704
7704
|
),
|
|
7705
7705
|
o.createElement(
|
|
@@ -7936,7 +7936,7 @@ const be = {
|
|
|
7936
7936
|
md: parseInt(Wd.value),
|
|
7937
7937
|
lg: parseInt(Gd.value),
|
|
7938
7938
|
xl: parseInt(To.value),
|
|
7939
|
-
"2xl": parseInt(
|
|
7939
|
+
"2xl": parseInt(Xd.value)
|
|
7940
7940
|
}, fv = {
|
|
7941
7941
|
name: "--pf-v5-c-toolbar__item--Width",
|
|
7942
7942
|
value: "auto",
|
|
@@ -8520,15 +8520,15 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8520
8520
|
} else
|
|
8521
8521
|
t.pkceMethod = "S256";
|
|
8522
8522
|
typeof b.enableLogging == "boolean" ? t.enableLogging = b.enableLogging : t.enableLogging = !1, b.logoutMethod === "POST" ? t.logoutMethod = "POST" : t.logoutMethod = "GET", typeof b.scope == "string" && (t.scope = b.scope), typeof b.acrValues == "string" && (t.acrValues = b.acrValues), typeof b.messageReceiveTimeout == "number" && b.messageReceiveTimeout > 0 ? t.messageReceiveTimeout = b.messageReceiveTimeout : t.messageReceiveTimeout = 1e4, t.responseMode || (t.responseMode = "fragment"), t.responseType || (t.responseType = "code", t.flow = "standard");
|
|
8523
|
-
var
|
|
8523
|
+
var X = N(), V = N();
|
|
8524
8524
|
V.promise.then(function() {
|
|
8525
|
-
t.onReady && t.onReady(t.authenticated),
|
|
8526
|
-
}).catch(function(
|
|
8527
|
-
|
|
8525
|
+
t.onReady && t.onReady(t.authenticated), X.setSuccess(t.authenticated);
|
|
8526
|
+
}).catch(function(K) {
|
|
8527
|
+
X.setError(K);
|
|
8528
8528
|
});
|
|
8529
8529
|
var U = w();
|
|
8530
8530
|
function q() {
|
|
8531
|
-
var
|
|
8531
|
+
var K = function(Y) {
|
|
8532
8532
|
Y || (ie.prompt = "none"), b.locale && (ie.locale = b.locale), t.login(ie).then(function() {
|
|
8533
8533
|
V.setSuccess();
|
|
8534
8534
|
}).catch(function(oe) {
|
|
@@ -8549,24 +8549,24 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8549
8549
|
case "check-sso":
|
|
8550
8550
|
a.enable ? $().then(function() {
|
|
8551
8551
|
O().then(function(Y) {
|
|
8552
|
-
Y ? V.setSuccess() : t.silentCheckSsoRedirectUri ? te() :
|
|
8552
|
+
Y ? V.setSuccess() : t.silentCheckSsoRedirectUri ? te() : K(!1);
|
|
8553
8553
|
}).catch(function(Y) {
|
|
8554
8554
|
V.setError(Y);
|
|
8555
8555
|
});
|
|
8556
|
-
}) : t.silentCheckSsoRedirectUri ? te() :
|
|
8556
|
+
}) : t.silentCheckSsoRedirectUri ? te() : K(!1);
|
|
8557
8557
|
break;
|
|
8558
8558
|
case "login-required":
|
|
8559
|
-
|
|
8559
|
+
K(!0);
|
|
8560
8560
|
break;
|
|
8561
8561
|
default:
|
|
8562
8562
|
throw "Invalid value for onLoad";
|
|
8563
8563
|
}
|
|
8564
8564
|
}
|
|
8565
8565
|
function W() {
|
|
8566
|
-
var
|
|
8567
|
-
if (
|
|
8566
|
+
var K = E(window.location.href);
|
|
8567
|
+
if (K && window.history.replaceState(window.history.state, null, K.newUrl), K && K.valid)
|
|
8568
8568
|
return $().then(function() {
|
|
8569
|
-
x(
|
|
8569
|
+
x(K, V);
|
|
8570
8570
|
}).catch(function(te) {
|
|
8571
8571
|
V.setError(te);
|
|
8572
8572
|
});
|
|
@@ -8583,12 +8583,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8583
8583
|
})) : b.onLoad ? q() : V.setSuccess();
|
|
8584
8584
|
}
|
|
8585
8585
|
return U.then(function() {
|
|
8586
|
-
L().then(W).catch(function(
|
|
8587
|
-
|
|
8586
|
+
L().then(W).catch(function(K) {
|
|
8587
|
+
X.setError(K);
|
|
8588
8588
|
});
|
|
8589
|
-
}), U.catch(function(
|
|
8590
|
-
|
|
8591
|
-
}),
|
|
8589
|
+
}), U.catch(function(K) {
|
|
8590
|
+
X.setError(K);
|
|
8591
|
+
}), X.promise;
|
|
8592
8592
|
}, t.login = function(b) {
|
|
8593
8593
|
return n.login(b);
|
|
8594
8594
|
};
|
|
@@ -8601,15 +8601,15 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8601
8601
|
return u(b, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
8602
8602
|
}
|
|
8603
8603
|
function u(b, F) {
|
|
8604
|
-
for (var
|
|
8605
|
-
V[U] = F.charCodeAt(
|
|
8604
|
+
for (var X = d(b), V = new Array(b), U = 0; U < b; U++)
|
|
8605
|
+
V[U] = F.charCodeAt(X[U] % F.length);
|
|
8606
8606
|
return String.fromCharCode.apply(null, V);
|
|
8607
8607
|
}
|
|
8608
8608
|
async function p(b, F) {
|
|
8609
8609
|
if (b !== "S256")
|
|
8610
8610
|
throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${b}'.`);
|
|
8611
|
-
const
|
|
8612
|
-
return pv(
|
|
8611
|
+
const X = new Uint8Array(await mv(F));
|
|
8612
|
+
return pv(X).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
8613
8613
|
}
|
|
8614
8614
|
function m(b) {
|
|
8615
8615
|
var F = {
|
|
@@ -8620,9 +8620,9 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8620
8620
|
return JSON.stringify(F);
|
|
8621
8621
|
}
|
|
8622
8622
|
t.createLoginUrl = async function(b) {
|
|
8623
|
-
var F = I(),
|
|
8623
|
+
var F = I(), X = I(), V = n.redirectUri(b), U = {
|
|
8624
8624
|
state: F,
|
|
8625
|
-
nonce:
|
|
8625
|
+
nonce: X,
|
|
8626
8626
|
redirectUri: encodeURIComponent(V),
|
|
8627
8627
|
loginOptions: b
|
|
8628
8628
|
};
|
|
@@ -8631,33 +8631,33 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8631
8631
|
b && b.action == "register" ? q = t.endpoints.register() : q = t.endpoints.authorize();
|
|
8632
8632
|
var W = b && b.scope || t.scope;
|
|
8633
8633
|
W ? W.indexOf("openid") === -1 && (W = "openid " + W) : W = "openid";
|
|
8634
|
-
var
|
|
8635
|
-
if (s && (
|
|
8634
|
+
var K = q + "?client_id=" + encodeURIComponent(t.clientId) + "&redirect_uri=" + encodeURIComponent(V) + "&state=" + encodeURIComponent(F) + "&response_mode=" + encodeURIComponent(t.responseMode) + "&response_type=" + encodeURIComponent(t.responseType) + "&scope=" + encodeURIComponent(W);
|
|
8635
|
+
if (s && (K = K + "&nonce=" + encodeURIComponent(X)), b && b.prompt && (K += "&prompt=" + encodeURIComponent(b.prompt)), b && typeof b.maxAge == "number" && (K += "&max_age=" + encodeURIComponent(b.maxAge)), b && b.loginHint && (K += "&login_hint=" + encodeURIComponent(b.loginHint)), b && b.idpHint && (K += "&kc_idp_hint=" + encodeURIComponent(b.idpHint)), b && b.action && b.action != "register" && (K += "&kc_action=" + encodeURIComponent(b.action)), b && b.locale && (K += "&ui_locales=" + encodeURIComponent(b.locale)), b && b.acr) {
|
|
8636
8636
|
var te = m(b.acr);
|
|
8637
|
-
|
|
8637
|
+
K += "&claims=" + encodeURIComponent(te);
|
|
8638
8638
|
}
|
|
8639
|
-
if ((b && b.acrValues || t.acrValues) && (
|
|
8639
|
+
if ((b && b.acrValues || t.acrValues) && (K += "&acr_values=" + encodeURIComponent(b.acrValues || t.acrValues)), t.pkceMethod)
|
|
8640
8640
|
try {
|
|
8641
8641
|
const ie = f(96), Y = await p(t.pkceMethod, ie);
|
|
8642
|
-
U.pkceCodeVerifier = ie,
|
|
8642
|
+
U.pkceCodeVerifier = ie, K += "&code_challenge=" + Y, K += "&code_challenge_method=" + t.pkceMethod;
|
|
8643
8643
|
} catch (ie) {
|
|
8644
8644
|
throw new Error("Failed to generate PKCE challenge.", { cause: ie });
|
|
8645
8645
|
}
|
|
8646
|
-
return r.add(U),
|
|
8646
|
+
return r.add(U), K;
|
|
8647
8647
|
}, t.logout = function(b) {
|
|
8648
8648
|
return n.logout(b);
|
|
8649
8649
|
}, t.createLogoutUrl = function(b) {
|
|
8650
8650
|
if ((b?.logoutMethod ?? t.logoutMethod) === "POST")
|
|
8651
8651
|
return t.endpoints.logout();
|
|
8652
|
-
var
|
|
8653
|
-
return t.idToken && (
|
|
8652
|
+
var X = t.endpoints.logout() + "?client_id=" + encodeURIComponent(t.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(n.redirectUri(b, !1));
|
|
8653
|
+
return t.idToken && (X += "&id_token_hint=" + encodeURIComponent(t.idToken)), X;
|
|
8654
8654
|
}, t.register = function(b) {
|
|
8655
8655
|
return n.register(b);
|
|
8656
8656
|
}, t.createRegisterUrl = async function(b) {
|
|
8657
8657
|
return b || (b = {}), b.action = "register", await t.createLoginUrl(b);
|
|
8658
8658
|
}, t.createAccountUrl = function(b) {
|
|
8659
|
-
var F = g(),
|
|
8660
|
-
return typeof F < "u" && (
|
|
8659
|
+
var F = g(), X = void 0;
|
|
8660
|
+
return typeof F < "u" && (X = F + "/account?referrer=" + encodeURIComponent(t.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(b))), X;
|
|
8661
8661
|
}, t.accountManagement = function() {
|
|
8662
8662
|
return n.accountManagement();
|
|
8663
8663
|
}, t.hasRealmRole = function(b) {
|
|
@@ -8666,22 +8666,22 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8666
8666
|
}, t.hasResourceRole = function(b, F) {
|
|
8667
8667
|
if (!t.resourceAccess)
|
|
8668
8668
|
return !1;
|
|
8669
|
-
var
|
|
8670
|
-
return !!
|
|
8669
|
+
var X = t.resourceAccess[F || t.clientId];
|
|
8670
|
+
return !!X && X.roles.indexOf(b) >= 0;
|
|
8671
8671
|
}, t.loadUserProfile = function() {
|
|
8672
8672
|
var b = g() + "/account", F = new XMLHttpRequest();
|
|
8673
8673
|
F.open("GET", b, !0), F.setRequestHeader("Accept", "application/json"), F.setRequestHeader("Authorization", "bearer " + t.token);
|
|
8674
|
-
var
|
|
8674
|
+
var X = N();
|
|
8675
8675
|
return F.onreadystatechange = function() {
|
|
8676
|
-
F.readyState == 4 && (F.status == 200 ? (t.profile = JSON.parse(F.responseText),
|
|
8677
|
-
}, F.send(),
|
|
8676
|
+
F.readyState == 4 && (F.status == 200 ? (t.profile = JSON.parse(F.responseText), X.setSuccess(t.profile)) : X.setError());
|
|
8677
|
+
}, F.send(), X.promise;
|
|
8678
8678
|
}, t.loadUserInfo = function() {
|
|
8679
8679
|
var b = t.endpoints.userinfo(), F = new XMLHttpRequest();
|
|
8680
8680
|
F.open("GET", b, !0), F.setRequestHeader("Accept", "application/json"), F.setRequestHeader("Authorization", "bearer " + t.token);
|
|
8681
|
-
var
|
|
8681
|
+
var X = N();
|
|
8682
8682
|
return F.onreadystatechange = function() {
|
|
8683
|
-
F.readyState == 4 && (F.status == 200 ? (t.userInfo = JSON.parse(F.responseText),
|
|
8684
|
-
}, F.send(),
|
|
8683
|
+
F.readyState == 4 && (F.status == 200 ? (t.userInfo = JSON.parse(F.responseText), X.setSuccess(t.userInfo)) : X.setError());
|
|
8684
|
+
}, F.send(), X.promise;
|
|
8685
8685
|
}, t.isTokenExpired = function(b) {
|
|
8686
8686
|
if (!t.tokenParsed || !t.refreshToken && t.flow != "implicit")
|
|
8687
8687
|
throw "Not authenticated";
|
|
@@ -8699,42 +8699,42 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8699
8699
|
if (!t.refreshToken)
|
|
8700
8700
|
return F.setError(), F.promise;
|
|
8701
8701
|
b = b || 5;
|
|
8702
|
-
var
|
|
8702
|
+
var X = function() {
|
|
8703
8703
|
var U = !1;
|
|
8704
8704
|
if (b == -1 ? (U = !0, l("[KEYCLOAK] Refreshing token: forced refresh")) : (!t.tokenParsed || t.isTokenExpired(b)) && (U = !0, l("[KEYCLOAK] Refreshing token: token expired")), !U)
|
|
8705
8705
|
F.setSuccess(!1);
|
|
8706
8706
|
else {
|
|
8707
8707
|
var q = "grant_type=refresh_token&refresh_token=" + t.refreshToken, W = t.endpoints.token();
|
|
8708
8708
|
if (i.push(F), i.length == 1) {
|
|
8709
|
-
var
|
|
8710
|
-
|
|
8709
|
+
var K = new XMLHttpRequest();
|
|
8710
|
+
K.open("POST", W, !0), K.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), K.withCredentials = !0, q += "&client_id=" + encodeURIComponent(t.clientId);
|
|
8711
8711
|
var te = (/* @__PURE__ */ new Date()).getTime();
|
|
8712
|
-
|
|
8713
|
-
if (
|
|
8714
|
-
if (
|
|
8712
|
+
K.onreadystatechange = function() {
|
|
8713
|
+
if (K.readyState == 4)
|
|
8714
|
+
if (K.status == 200) {
|
|
8715
8715
|
l("[KEYCLOAK] Token refreshed"), te = (te + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
8716
|
-
var ie = JSON.parse(
|
|
8716
|
+
var ie = JSON.parse(K.responseText);
|
|
8717
8717
|
S(ie.access_token, ie.refresh_token, ie.id_token, te), t.onAuthRefreshSuccess && t.onAuthRefreshSuccess();
|
|
8718
8718
|
for (var Y = i.pop(); Y != null; Y = i.pop())
|
|
8719
8719
|
Y.setSuccess(!0);
|
|
8720
8720
|
} else {
|
|
8721
|
-
c("[KEYCLOAK] Failed to refresh token"),
|
|
8721
|
+
c("[KEYCLOAK] Failed to refresh token"), K.status == 400 && t.clearToken(), t.onAuthRefreshError && t.onAuthRefreshError();
|
|
8722
8722
|
for (var Y = i.pop(); Y != null; Y = i.pop())
|
|
8723
8723
|
Y.setError(!0);
|
|
8724
8724
|
}
|
|
8725
|
-
},
|
|
8725
|
+
}, K.send(q);
|
|
8726
8726
|
}
|
|
8727
8727
|
}
|
|
8728
8728
|
};
|
|
8729
8729
|
if (a.enable) {
|
|
8730
8730
|
var V = O();
|
|
8731
8731
|
V.then(function() {
|
|
8732
|
-
|
|
8732
|
+
X();
|
|
8733
8733
|
}).catch(function(U) {
|
|
8734
8734
|
F.setError(U);
|
|
8735
8735
|
});
|
|
8736
8736
|
} else
|
|
8737
|
-
|
|
8737
|
+
X();
|
|
8738
8738
|
return F.promise;
|
|
8739
8739
|
}, t.clearToken = function() {
|
|
8740
8740
|
t.token && (S(null, null, null), t.onAuthLogout && t.onAuthLogout(), t.loginRequired && t.login());
|
|
@@ -8747,7 +8747,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8747
8747
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
8748
8748
|
}
|
|
8749
8749
|
function x(b, F) {
|
|
8750
|
-
var
|
|
8750
|
+
var X = b.code, V = b.error, U = b.prompt, q = (/* @__PURE__ */ new Date()).getTime();
|
|
8751
8751
|
if (b.kc_action_status && t.onActionUpdate && t.onActionUpdate(b.kc_action_status, b.kc_action), V) {
|
|
8752
8752
|
if (U != "none")
|
|
8753
8753
|
if (b.error_description && b.error_description === "authentication_expired")
|
|
@@ -8760,16 +8760,16 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8760
8760
|
F && F.setSuccess();
|
|
8761
8761
|
return;
|
|
8762
8762
|
} else t.flow != "standard" && (b.access_token || b.id_token) && Y(b.access_token, null, b.id_token, !0);
|
|
8763
|
-
if (t.flow != "implicit" &&
|
|
8764
|
-
var
|
|
8765
|
-
ie.open("POST", te, !0), ie.setRequestHeader("Content-type", "application/x-www-form-urlencoded"),
|
|
8763
|
+
if (t.flow != "implicit" && X) {
|
|
8764
|
+
var K = "code=" + X + "&grant_type=authorization_code", te = t.endpoints.token(), ie = new XMLHttpRequest();
|
|
8765
|
+
ie.open("POST", te, !0), ie.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), K += "&client_id=" + encodeURIComponent(t.clientId), K += "&redirect_uri=" + b.redirectUri, b.pkceCodeVerifier && (K += "&code_verifier=" + b.pkceCodeVerifier), ie.withCredentials = !0, ie.onreadystatechange = function() {
|
|
8766
8766
|
if (ie.readyState == 4)
|
|
8767
8767
|
if (ie.status == 200) {
|
|
8768
8768
|
var oe = JSON.parse(ie.responseText);
|
|
8769
8769
|
Y(oe.access_token, oe.refresh_token, oe.id_token, t.flow === "standard"), D();
|
|
8770
8770
|
} else
|
|
8771
8771
|
t.onAuthError && t.onAuthError(), F && F.setError();
|
|
8772
|
-
}, ie.send(
|
|
8772
|
+
}, ie.send(K);
|
|
8773
8773
|
}
|
|
8774
8774
|
function Y(oe, de, Ce, Oe) {
|
|
8775
8775
|
q = (q + (/* @__PURE__ */ new Date()).getTime()) / 2, S(oe, de, Ce, q), s && t.idTokenParsed && t.idTokenParsed.nonce != b.storedNonce ? (l("[KEYCLOAK] Invalid nonce, clearing token"), t.clearToken(), F && F.setError()) : Oe && (t.onAuthSuccess && t.onAuthSuccess(), F && F.setSuccess());
|
|
@@ -8778,7 +8778,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8778
8778
|
function w() {
|
|
8779
8779
|
var b = N(), F;
|
|
8780
8780
|
typeof e == "string" && (F = e);
|
|
8781
|
-
function
|
|
8781
|
+
function X(W) {
|
|
8782
8782
|
W ? t.endpoints = {
|
|
8783
8783
|
authorize: function() {
|
|
8784
8784
|
return W.authorization_endpoint;
|
|
@@ -8834,7 +8834,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8834
8834
|
if (V.readyState == 4)
|
|
8835
8835
|
if (V.status == 200 || _(V)) {
|
|
8836
8836
|
var W = JSON.parse(V.responseText);
|
|
8837
|
-
t.authServerUrl = W["auth-server-url"], t.realm = W.realm, t.clientId = W.resource,
|
|
8837
|
+
t.authServerUrl = W["auth-server-url"], t.realm = W.realm, t.clientId = W.resource, X(null), b.setSuccess();
|
|
8838
8838
|
} else
|
|
8839
8839
|
b.setError();
|
|
8840
8840
|
}, V.send();
|
|
@@ -8842,7 +8842,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8842
8842
|
t.clientId = e.clientId;
|
|
8843
8843
|
var U = e.oidcProvider;
|
|
8844
8844
|
if (!U)
|
|
8845
|
-
t.authServerUrl = e.url, t.realm = e.realm,
|
|
8845
|
+
t.authServerUrl = e.url, t.realm = e.realm, X(null), b.setSuccess();
|
|
8846
8846
|
else if (typeof U == "string") {
|
|
8847
8847
|
var q;
|
|
8848
8848
|
U.charAt(U.length - 1) == "/" ? q = U + ".well-known/openid-configuration" : q = U + "/.well-known/openid-configuration";
|
|
@@ -8850,21 +8850,21 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8850
8850
|
V.open("GET", q, !0), V.setRequestHeader("Accept", "application/json"), V.onreadystatechange = function() {
|
|
8851
8851
|
if (V.readyState == 4)
|
|
8852
8852
|
if (V.status == 200 || _(V)) {
|
|
8853
|
-
var
|
|
8854
|
-
K
|
|
8853
|
+
var K = JSON.parse(V.responseText);
|
|
8854
|
+
X(K), b.setSuccess();
|
|
8855
8855
|
} else
|
|
8856
8856
|
b.setError();
|
|
8857
8857
|
}, V.send();
|
|
8858
8858
|
} else
|
|
8859
|
-
|
|
8859
|
+
X(U), b.setSuccess();
|
|
8860
8860
|
}
|
|
8861
8861
|
return b.promise;
|
|
8862
8862
|
}
|
|
8863
8863
|
function _(b) {
|
|
8864
8864
|
return b.status == 0 && b.responseText && b.responseURL.startsWith("file:");
|
|
8865
8865
|
}
|
|
8866
|
-
function S(b, F,
|
|
8867
|
-
if (t.tokenTimeoutHandle && (clearTimeout(t.tokenTimeoutHandle), t.tokenTimeoutHandle = null), F ? (t.refreshToken = F, t.refreshTokenParsed = Ss(F)) : (delete t.refreshToken, delete t.refreshTokenParsed),
|
|
8866
|
+
function S(b, F, X, V) {
|
|
8867
|
+
if (t.tokenTimeoutHandle && (clearTimeout(t.tokenTimeoutHandle), t.tokenTimeoutHandle = null), F ? (t.refreshToken = F, t.refreshTokenParsed = Ss(F)) : (delete t.refreshToken, delete t.refreshTokenParsed), X ? (t.idToken = X, t.idTokenParsed = Ss(X)) : (delete t.idToken, delete t.idTokenParsed), b) {
|
|
8868
8868
|
if (t.token = b, t.tokenParsed = Ss(b), t.sessionId = t.tokenParsed.sid, t.authenticated = !0, t.subject = t.tokenParsed.sub, t.realmAccess = t.tokenParsed.realm_access, t.resourceAccess = t.tokenParsed.resource_access, V && (t.timeSkew = Math.floor(V / 1e3) - t.tokenParsed.iat), t.timeSkew != null && (l("[KEYCLOAK] Estimated time difference between browser and server is " + t.timeSkew + " seconds"), t.onTokenExpired)) {
|
|
8869
8869
|
var U = (t.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + t.timeSkew) * 1e3;
|
|
8870
8870
|
l("[KEYCLOAK] Token expires in " + Math.round(U / 1e3) + " s"), U <= 0 ? t.onTokenExpired() : t.tokenTimeoutHandle = setTimeout(t.onTokenExpired, U);
|
|
@@ -8880,8 +8880,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8880
8880
|
function E(b) {
|
|
8881
8881
|
var F = R(b);
|
|
8882
8882
|
if (F) {
|
|
8883
|
-
var
|
|
8884
|
-
return
|
|
8883
|
+
var X = r.get(F.state);
|
|
8884
|
+
return X && (F.valid = !0, F.redirectUri = X.redirectUri, F.storedNonce = X.nonce, F.prompt = X.prompt, F.pkceCodeVerifier = X.pkceCodeVerifier, F.loginOptions = X.loginOptions), F;
|
|
8885
8885
|
}
|
|
8886
8886
|
}
|
|
8887
8887
|
function R(b) {
|
|
@@ -8898,8 +8898,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8898
8898
|
break;
|
|
8899
8899
|
}
|
|
8900
8900
|
F.push("error"), F.push("error_description"), F.push("error_uri");
|
|
8901
|
-
var
|
|
8902
|
-
if (t.responseMode === "query" &&
|
|
8901
|
+
var X = b.indexOf("?"), V = b.indexOf("#"), U, q;
|
|
8902
|
+
if (t.responseMode === "query" && X !== -1 ? (U = b.substring(0, X), q = k(b.substring(X + 1, V !== -1 ? V : b.length), F), q.paramsString !== "" && (U += "?" + q.paramsString), V !== -1 && (U += b.substring(V))) : t.responseMode === "fragment" && V !== -1 && (U = b.substring(0, V), q = k(b.substring(V + 1), F), q.paramsString !== "" && (U += "#" + q.paramsString)), q && q.oauthParams) {
|
|
8903
8903
|
if (t.flow === "standard" || t.flow === "hybrid") {
|
|
8904
8904
|
if ((q.oauthParams.code || q.oauthParams.error) && q.oauthParams.state)
|
|
8905
8905
|
return q.oauthParams.newUrl = U, q.oauthParams;
|
|
@@ -8908,12 +8908,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
8910
|
function k(b, F) {
|
|
8911
|
-
for (var
|
|
8911
|
+
for (var X = b.split("&"), V = {
|
|
8912
8912
|
paramsString: "",
|
|
8913
8913
|
oauthParams: {}
|
|
8914
|
-
}, U = 0; U <
|
|
8915
|
-
var q =
|
|
8916
|
-
F.indexOf(W) !== -1 ? V.oauthParams[W] =
|
|
8914
|
+
}, U = 0; U < X.length; U++) {
|
|
8915
|
+
var q = X[U].indexOf("="), W = X[U].slice(0, q);
|
|
8916
|
+
F.indexOf(W) !== -1 ? V.oauthParams[W] = X[U].slice(q + 1) : (V.paramsString !== "" && (V.paramsString += "&"), V.paramsString += X[U]);
|
|
8917
8917
|
}
|
|
8918
8918
|
return V;
|
|
8919
8919
|
}
|
|
@@ -8926,14 +8926,14 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8926
8926
|
b.reject(F);
|
|
8927
8927
|
}
|
|
8928
8928
|
};
|
|
8929
|
-
return b.promise = new Promise(function(F,
|
|
8930
|
-
b.resolve = F, b.reject =
|
|
8929
|
+
return b.promise = new Promise(function(F, X) {
|
|
8930
|
+
b.resolve = F, b.reject = X;
|
|
8931
8931
|
}), b;
|
|
8932
8932
|
}
|
|
8933
|
-
function M(b, F,
|
|
8933
|
+
function M(b, F, X) {
|
|
8934
8934
|
var V = null, U = new Promise(function(q, W) {
|
|
8935
8935
|
V = setTimeout(function() {
|
|
8936
|
-
W({ error:
|
|
8936
|
+
W({ error: X });
|
|
8937
8937
|
}, F);
|
|
8938
8938
|
});
|
|
8939
8939
|
return Promise.race([b, U]).finally(function() {
|
|
@@ -8949,14 +8949,14 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8949
8949
|
var U = t.endpoints.authorize();
|
|
8950
8950
|
U.charAt(0) === "/" ? a.iframeOrigin = v() : a.iframeOrigin = U.substring(0, U.indexOf("/", 8)), b.setSuccess();
|
|
8951
8951
|
};
|
|
8952
|
-
var
|
|
8953
|
-
F.setAttribute("src",
|
|
8952
|
+
var X = t.endpoints.checkSessionIframe();
|
|
8953
|
+
F.setAttribute("src", X), F.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin"), F.setAttribute("title", "keycloak-session-iframe"), F.style.display = "none", document.body.appendChild(F);
|
|
8954
8954
|
var V = function(U) {
|
|
8955
8955
|
if (!(U.origin !== a.iframeOrigin || a.iframe.contentWindow !== U.source) && (U.data == "unchanged" || U.data == "changed" || U.data == "error")) {
|
|
8956
8956
|
U.data != "unchanged" && t.clearToken();
|
|
8957
8957
|
for (var q = a.callbackList.splice(0, a.callbackList.length), W = q.length - 1; W >= 0; --W) {
|
|
8958
|
-
var
|
|
8959
|
-
U.data == "error" ?
|
|
8958
|
+
var K = q[W];
|
|
8959
|
+
U.data == "error" ? K.setError() : K.setSuccess(U.data == "unchanged");
|
|
8960
8960
|
}
|
|
8961
8961
|
}
|
|
8962
8962
|
};
|
|
@@ -8974,8 +8974,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8974
8974
|
if (a.iframe && a.iframeOrigin) {
|
|
8975
8975
|
var F = t.clientId + " " + (t.sessionId ? t.sessionId : "");
|
|
8976
8976
|
a.callbackList.push(b);
|
|
8977
|
-
var
|
|
8978
|
-
a.callbackList.length == 1 && a.iframe.contentWindow.postMessage(F,
|
|
8977
|
+
var X = a.iframeOrigin;
|
|
8978
|
+
a.callbackList.length == 1 && a.iframe.contentWindow.postMessage(F, X);
|
|
8979
8979
|
} else
|
|
8980
8980
|
b.setSuccess();
|
|
8981
8981
|
return b.promise;
|
|
@@ -8985,7 +8985,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8985
8985
|
if ((a.enable || t.silentCheckSsoRedirectUri) && typeof t.endpoints.thirdPartyCookiesIframe == "function") {
|
|
8986
8986
|
var F = document.createElement("iframe");
|
|
8987
8987
|
F.setAttribute("src", t.endpoints.thirdPartyCookiesIframe()), F.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin"), F.setAttribute("title", "keycloak-3p-check-iframe"), F.style.display = "none", document.body.appendChild(F);
|
|
8988
|
-
var
|
|
8988
|
+
var X = function(V) {
|
|
8989
8989
|
F.contentWindow === V.source && (V.data !== "supported" && V.data !== "unsupported" || (V.data === "unsupported" && (c(
|
|
8990
8990
|
`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
8991
8991
|
|
|
@@ -8993,9 +8993,9 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
8993
8993
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
8994
8994
|
|
|
8995
8995
|
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
|
|
8996
|
-
), a.enable = !1, t.silentCheckSsoFallback && (t.silentCheckSsoRedirectUri = !1)), document.body.removeChild(F), window.removeEventListener("message",
|
|
8996
|
+
), a.enable = !1, t.silentCheckSsoFallback && (t.silentCheckSsoRedirectUri = !1)), document.body.removeChild(F), window.removeEventListener("message", X), b.setSuccess()));
|
|
8997
8997
|
};
|
|
8998
|
-
window.addEventListener("message",
|
|
8998
|
+
window.addEventListener("message", X, !1);
|
|
8999
8999
|
} else
|
|
9000
9000
|
b.setSuccess();
|
|
9001
9001
|
return M(b.promise, t.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
|
|
@@ -9035,77 +9035,77 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9035
9035
|
throw "Not supported by the OIDC server";
|
|
9036
9036
|
return N().promise;
|
|
9037
9037
|
},
|
|
9038
|
-
redirectUri: function(W,
|
|
9038
|
+
redirectUri: function(W, K) {
|
|
9039
9039
|
return W && W.redirectUri ? W.redirectUri : t.redirectUri ? t.redirectUri : location.href;
|
|
9040
9040
|
}
|
|
9041
9041
|
};
|
|
9042
9042
|
if (b == "cordova") {
|
|
9043
9043
|
a.enable = !1;
|
|
9044
|
-
var F = function(W,
|
|
9045
|
-
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(W,
|
|
9046
|
-
},
|
|
9047
|
-
return W && W.cordovaOptions ? Object.keys(W.cordovaOptions).reduce(function(
|
|
9048
|
-
return
|
|
9044
|
+
var F = function(W, K, te) {
|
|
9045
|
+
return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(W, K, te) : window.open(W, K, te);
|
|
9046
|
+
}, X = function(W) {
|
|
9047
|
+
return W && W.cordovaOptions ? Object.keys(W.cordovaOptions).reduce(function(K, te) {
|
|
9048
|
+
return K[te] = W.cordovaOptions[te], K;
|
|
9049
9049
|
}, {}) : {};
|
|
9050
9050
|
}, V = function(W) {
|
|
9051
|
-
return Object.keys(W).reduce(function(
|
|
9052
|
-
return
|
|
9051
|
+
return Object.keys(W).reduce(function(K, te) {
|
|
9052
|
+
return K.push(te + "=" + W[te]), K;
|
|
9053
9053
|
}, []).join(",");
|
|
9054
9054
|
}, U = function(W) {
|
|
9055
|
-
var
|
|
9056
|
-
return
|
|
9055
|
+
var K = X(W);
|
|
9056
|
+
return K.location = "no", W && W.prompt == "none" && (K.hidden = "yes"), V(K);
|
|
9057
9057
|
}, q = function() {
|
|
9058
9058
|
return t.redirectUri || "http://localhost";
|
|
9059
9059
|
};
|
|
9060
9060
|
return {
|
|
9061
9061
|
login: async function(W) {
|
|
9062
|
-
var
|
|
9062
|
+
var K = N(), te = U(W), ie = await t.createLoginUrl(W), Y = F(ie, "_blank", te), oe = !1, de = !1, Ce = function() {
|
|
9063
9063
|
de = !0, Y.close();
|
|
9064
9064
|
};
|
|
9065
9065
|
return Y.addEventListener("loadstart", function(Oe) {
|
|
9066
9066
|
if (Oe.url.indexOf(q()) == 0) {
|
|
9067
9067
|
var Te = E(Oe.url);
|
|
9068
|
-
x(Te,
|
|
9068
|
+
x(Te, K), Ce(), oe = !0;
|
|
9069
9069
|
}
|
|
9070
9070
|
}), Y.addEventListener("loaderror", function(Oe) {
|
|
9071
9071
|
if (!oe)
|
|
9072
9072
|
if (Oe.url.indexOf(q()) == 0) {
|
|
9073
9073
|
var Te = E(Oe.url);
|
|
9074
|
-
x(Te,
|
|
9074
|
+
x(Te, K), Ce(), oe = !0;
|
|
9075
9075
|
} else
|
|
9076
|
-
|
|
9076
|
+
K.setError(), Ce();
|
|
9077
9077
|
}), Y.addEventListener("exit", function(Oe) {
|
|
9078
|
-
de ||
|
|
9078
|
+
de || K.setError({
|
|
9079
9079
|
reason: "closed_by_user"
|
|
9080
9080
|
});
|
|
9081
|
-
}),
|
|
9081
|
+
}), K.promise;
|
|
9082
9082
|
},
|
|
9083
9083
|
logout: function(W) {
|
|
9084
|
-
var
|
|
9084
|
+
var K = N(), te = t.createLogoutUrl(W), ie = F(te, "_blank", "location=no,hidden=yes,clearcache=yes"), Y;
|
|
9085
9085
|
return ie.addEventListener("loadstart", function(oe) {
|
|
9086
9086
|
oe.url.indexOf(q()) == 0 && ie.close();
|
|
9087
9087
|
}), ie.addEventListener("loaderror", function(oe) {
|
|
9088
9088
|
oe.url.indexOf(q()) == 0 || (Y = !0), ie.close();
|
|
9089
9089
|
}), ie.addEventListener("exit", function(oe) {
|
|
9090
|
-
Y ?
|
|
9091
|
-
}),
|
|
9090
|
+
Y ? K.setError() : (t.clearToken(), K.setSuccess());
|
|
9091
|
+
}), K.promise;
|
|
9092
9092
|
},
|
|
9093
9093
|
register: async function(W) {
|
|
9094
|
-
var
|
|
9094
|
+
var K = N(), te = await t.createRegisterUrl(), ie = U(W), Y = F(te, "_blank", ie);
|
|
9095
9095
|
return Y.addEventListener("loadstart", function(oe) {
|
|
9096
9096
|
if (oe.url.indexOf(q()) == 0) {
|
|
9097
9097
|
Y.close();
|
|
9098
9098
|
var de = E(oe.url);
|
|
9099
|
-
x(de,
|
|
9099
|
+
x(de, K);
|
|
9100
9100
|
}
|
|
9101
|
-
}),
|
|
9101
|
+
}), K.promise;
|
|
9102
9102
|
},
|
|
9103
9103
|
accountManagement: function() {
|
|
9104
9104
|
var W = t.createAccountUrl();
|
|
9105
9105
|
if (typeof W < "u") {
|
|
9106
|
-
var
|
|
9107
|
-
|
|
9108
|
-
te.url.indexOf(q()) == 0 &&
|
|
9106
|
+
var K = F(W, "_blank", "location=no");
|
|
9107
|
+
K.addEventListener("loadstart", function(te) {
|
|
9108
|
+
te.url.indexOf(q()) == 0 && K.close();
|
|
9109
9109
|
});
|
|
9110
9110
|
} else
|
|
9111
9111
|
throw "Not supported by the OIDC server";
|
|
@@ -9118,26 +9118,26 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9118
9118
|
if (b == "cordova-native")
|
|
9119
9119
|
return a.enable = !1, {
|
|
9120
9120
|
login: async function(W) {
|
|
9121
|
-
var
|
|
9121
|
+
var K = N(), te = await t.createLoginUrl(W);
|
|
9122
9122
|
return universalLinks.subscribe("keycloak", function(ie) {
|
|
9123
9123
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
9124
9124
|
var Y = E(ie.url);
|
|
9125
|
-
x(Y,
|
|
9126
|
-
}), window.cordova.plugins.browsertab.openUrl(te),
|
|
9125
|
+
x(Y, K);
|
|
9126
|
+
}), window.cordova.plugins.browsertab.openUrl(te), K.promise;
|
|
9127
9127
|
},
|
|
9128
9128
|
logout: function(W) {
|
|
9129
|
-
var
|
|
9129
|
+
var K = N(), te = t.createLogoutUrl(W);
|
|
9130
9130
|
return universalLinks.subscribe("keycloak", function(ie) {
|
|
9131
|
-
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), t.clearToken(),
|
|
9132
|
-
}), window.cordova.plugins.browsertab.openUrl(te),
|
|
9131
|
+
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), t.clearToken(), K.setSuccess();
|
|
9132
|
+
}), window.cordova.plugins.browsertab.openUrl(te), K.promise;
|
|
9133
9133
|
},
|
|
9134
9134
|
register: async function(W) {
|
|
9135
|
-
var
|
|
9135
|
+
var K = N(), te = await t.createRegisterUrl(W);
|
|
9136
9136
|
return universalLinks.subscribe("keycloak", function(ie) {
|
|
9137
9137
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
9138
9138
|
var Y = E(ie.url);
|
|
9139
|
-
x(Y,
|
|
9140
|
-
}), window.cordova.plugins.browsertab.openUrl(te),
|
|
9139
|
+
x(Y, K);
|
|
9140
|
+
}), window.cordova.plugins.browsertab.openUrl(te), K.promise;
|
|
9141
9141
|
},
|
|
9142
9142
|
accountManagement: function() {
|
|
9143
9143
|
var W = t.createAccountUrl();
|
|
@@ -9160,12 +9160,12 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9160
9160
|
var b = this;
|
|
9161
9161
|
function F() {
|
|
9162
9162
|
const q = Date.now();
|
|
9163
|
-
for (const [W,
|
|
9164
|
-
const te = U(
|
|
9163
|
+
for (const [W, K] of V()) {
|
|
9164
|
+
const te = U(K);
|
|
9165
9165
|
(te === null || te < q) && localStorage.removeItem(W);
|
|
9166
9166
|
}
|
|
9167
9167
|
}
|
|
9168
|
-
function
|
|
9168
|
+
function X() {
|
|
9169
9169
|
for (const [q] of V())
|
|
9170
9170
|
localStorage.removeItem(q);
|
|
9171
9171
|
}
|
|
@@ -9183,20 +9183,20 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9183
9183
|
}
|
|
9184
9184
|
b.get = function(q) {
|
|
9185
9185
|
if (q) {
|
|
9186
|
-
var W = C + q,
|
|
9187
|
-
return
|
|
9186
|
+
var W = C + q, K = localStorage.getItem(W);
|
|
9187
|
+
return K && (localStorage.removeItem(W), K = JSON.parse(K)), F(), K;
|
|
9188
9188
|
}
|
|
9189
9189
|
}, b.add = function(q) {
|
|
9190
9190
|
F();
|
|
9191
|
-
const W = C + q.state,
|
|
9191
|
+
const W = C + q.state, K = JSON.stringify({
|
|
9192
9192
|
...q,
|
|
9193
9193
|
// Set the expiry time to 1 hour from now.
|
|
9194
9194
|
expires: Date.now() + 60 * 60 * 1e3
|
|
9195
9195
|
});
|
|
9196
9196
|
try {
|
|
9197
|
-
localStorage.setItem(W,
|
|
9197
|
+
localStorage.setItem(W, K);
|
|
9198
9198
|
} catch {
|
|
9199
|
-
|
|
9199
|
+
X(), localStorage.setItem(W, K);
|
|
9200
9200
|
}
|
|
9201
9201
|
};
|
|
9202
9202
|
}, G = function() {
|
|
@@ -9205,7 +9205,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9205
9205
|
var b = this;
|
|
9206
9206
|
b.get = function(U) {
|
|
9207
9207
|
if (U) {
|
|
9208
|
-
var q =
|
|
9208
|
+
var q = X(C + U);
|
|
9209
9209
|
if (V(C + U, "", F(-100)), q)
|
|
9210
9210
|
return JSON.parse(q);
|
|
9211
9211
|
}
|
|
@@ -9217,17 +9217,17 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
9217
9217
|
var F = function(U) {
|
|
9218
9218
|
var q = /* @__PURE__ */ new Date();
|
|
9219
9219
|
return q.setTime(q.getTime() + U * 60 * 1e3), q;
|
|
9220
|
-
},
|
|
9221
|
-
for (var q = U + "=", W = document.cookie.split(";"),
|
|
9222
|
-
for (var te = W[
|
|
9220
|
+
}, X = function(U) {
|
|
9221
|
+
for (var q = U + "=", W = document.cookie.split(";"), K = 0; K < W.length; K++) {
|
|
9222
|
+
for (var te = W[K]; te.charAt(0) == " "; )
|
|
9223
9223
|
te = te.substring(1);
|
|
9224
9224
|
if (te.indexOf(q) == 0)
|
|
9225
9225
|
return te.substring(q.length, te.length);
|
|
9226
9226
|
}
|
|
9227
9227
|
return "";
|
|
9228
9228
|
}, V = function(U, q, W) {
|
|
9229
|
-
var
|
|
9230
|
-
document.cookie =
|
|
9229
|
+
var K = U + "=" + q + "; expires=" + W.toUTCString() + "; ";
|
|
9230
|
+
document.cookie = K;
|
|
9231
9231
|
};
|
|
9232
9232
|
};
|
|
9233
9233
|
function B() {
|
|
@@ -9417,14 +9417,14 @@ const bv = {
|
|
|
9417
9417
|
svgPath: "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z",
|
|
9418
9418
|
yOffset: 0,
|
|
9419
9419
|
xOffset: 0
|
|
9420
|
-
}, Gv = pe(Wv),
|
|
9420
|
+
}, Gv = pe(Wv), Xv = {
|
|
9421
9421
|
name: "LinkedinIcon",
|
|
9422
9422
|
height: 512,
|
|
9423
9423
|
width: 448,
|
|
9424
9424
|
svgPath: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z",
|
|
9425
9425
|
yOffset: 0,
|
|
9426
9426
|
xOffset: 0
|
|
9427
|
-
},
|
|
9427
|
+
}, Kv = pe(Xv), qv = {
|
|
9428
9428
|
name: "LongArrowAltDownIcon",
|
|
9429
9429
|
height: 512,
|
|
9430
9430
|
width: 256,
|
|
@@ -9530,9 +9530,9 @@ const bv = {
|
|
|
9530
9530
|
yOffset: 0,
|
|
9531
9531
|
xOffset: 0
|
|
9532
9532
|
}, O1 = pe(w1);
|
|
9533
|
-
var
|
|
9533
|
+
var Xr = (e) => e.type === "checkbox", Ii = (e) => e instanceof Date, dt = (e) => e == null;
|
|
9534
9534
|
const Du = (e) => typeof e == "object";
|
|
9535
|
-
var Je = (e) => !dt(e) && !Array.isArray(e) && Du(e) && !Ii(e), Fu = (e) => Je(e) && e.target ?
|
|
9535
|
+
var Je = (e) => !dt(e) && !Array.isArray(e) && Du(e) && !Ii(e), Fu = (e) => Je(e) && e.target ? Xr(e.target) ? e.target.checked : e.target.value : e, C1 = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, $u = (e, t) => e.has(C1(t)), _1 = (e) => {
|
|
9536
9536
|
const t = e.constructor && e.constructor.prototype;
|
|
9537
9537
|
return Je(t) && t.hasOwnProperty("isPrototypeOf");
|
|
9538
9538
|
}, hl = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -9553,12 +9553,12 @@ function Ze(e) {
|
|
|
9553
9553
|
return e;
|
|
9554
9554
|
return t;
|
|
9555
9555
|
}
|
|
9556
|
-
var
|
|
9556
|
+
var Kr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Pe = (e) => e === void 0, se = (e, t, n) => {
|
|
9557
9557
|
if (!t || !Je(e))
|
|
9558
9558
|
return n;
|
|
9559
|
-
const i =
|
|
9559
|
+
const i = Kr(t.split(/[,[\].]+?/)).reduce((r, a) => dt(r) ? r : r[a], e);
|
|
9560
9560
|
return Pe(i) || i === e ? Pe(e[t]) ? n : e[t] : i;
|
|
9561
|
-
}, Lt = (e) => typeof e == "boolean", gl = (e) => /^\w*$/.test(e), Bu = (e) =>
|
|
9561
|
+
}, Lt = (e) => typeof e == "boolean", gl = (e) => /^\w*$/.test(e), Bu = (e) => Kr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), Ae = (e, t, n) => {
|
|
9562
9562
|
let i = -1;
|
|
9563
9563
|
const r = gl(t) ? [t] : Bu(t), a = r.length, s = a - 1;
|
|
9564
9564
|
for (; ++i < a; ) {
|
|
@@ -9797,7 +9797,7 @@ const Nc = {
|
|
|
9797
9797
|
value: !1,
|
|
9798
9798
|
isValid: !1
|
|
9799
9799
|
}, Tc = { value: !0, isValid: !0 };
|
|
9800
|
-
var
|
|
9800
|
+
var Xu = (e) => {
|
|
9801
9801
|
if (Array.isArray(e)) {
|
|
9802
9802
|
if (e.length > 1) {
|
|
9803
9803
|
const t = e.filter((n) => n && n.checked && !n.disabled).map((n) => n.value);
|
|
@@ -9814,7 +9814,7 @@ const Rc = {
|
|
|
9814
9814
|
isValid: !1,
|
|
9815
9815
|
value: null
|
|
9816
9816
|
};
|
|
9817
|
-
var
|
|
9817
|
+
var Ku = (e) => Array.isArray(e) ? e.reduce((t, n) => n && n.checked && !n.disabled ? {
|
|
9818
9818
|
isValid: !0,
|
|
9819
9819
|
value: n.value
|
|
9820
9820
|
} : t, Rc) : Rc;
|
|
@@ -9835,7 +9835,7 @@ var wi = (e) => Je(e) && !Sa(e) ? e : {
|
|
|
9835
9835
|
return {};
|
|
9836
9836
|
const S = s ? s[0] : a, I = (O) => {
|
|
9837
9837
|
i && S.reportValidity && (S.setCustomValidity(Lt(O) ? "" : O || ""), S.reportValidity());
|
|
9838
|
-
}, E = {}, R = xl(a), k =
|
|
9838
|
+
}, E = {}, R = xl(a), k = Xr(a), N = R || k, M = (v || yl(a)) && Pe(a.value) && Pe(_) || Ea(a) && a.value === "" || _ === "" || Array.isArray(_) && !_.length, $ = S1.bind(null, g, n, E), D = (O, L, j, C = fn.maxLength, P = fn.minLength) => {
|
|
9839
9839
|
const G = O ? L : j;
|
|
9840
9840
|
E[g] = {
|
|
9841
9841
|
type: O ? C : P,
|
|
@@ -9844,7 +9844,7 @@ var wi = (e) => Je(e) && !Sa(e) ? e : {
|
|
|
9844
9844
|
...$(O ? C : P, G)
|
|
9845
9845
|
};
|
|
9846
9846
|
};
|
|
9847
|
-
if (r ? !Array.isArray(_) || !_.length : l && (!N && (M || dt(_)) || Lt(_) && !_ || k && !
|
|
9847
|
+
if (r ? !Array.isArray(_) || !_.length : l && (!N && (M || dt(_)) || Lt(_) && !_ || k && !Xu(s).isValid || R && !Ku(s).isValid)) {
|
|
9848
9848
|
const { value: O, message: L } = fa(l) ? { value: !!l, message: l } : wi(l);
|
|
9849
9849
|
if (O && (E[g] = {
|
|
9850
9850
|
type: fn.required,
|
|
@@ -9930,7 +9930,7 @@ function k1(e, t) {
|
|
|
9930
9930
|
const i = [...e];
|
|
9931
9931
|
for (const r of t)
|
|
9932
9932
|
i.splice(r - n, 1), n++;
|
|
9933
|
-
return
|
|
9933
|
+
return Kr(i).length ? i : [];
|
|
9934
9934
|
}
|
|
9935
9935
|
var Ps = (e, t) => Pe(t) ? [] : k1(e, vt(t).sort((n, i) => n - i)), Ms = (e, t, n) => {
|
|
9936
9936
|
[e[t], e[n]] = [e[n], e[t]];
|
|
@@ -9948,9 +9948,9 @@ function I1(e) {
|
|
|
9948
9948
|
return !1;
|
|
9949
9949
|
return !0;
|
|
9950
9950
|
}
|
|
9951
|
-
function
|
|
9951
|
+
function Xe(e, t) {
|
|
9952
9952
|
const n = Array.isArray(t) ? t : gl(t) ? [t] : Bu(t), i = n.length === 1 ? e : L1(e, n), r = n.length - 1, a = n[r];
|
|
9953
|
-
return i && delete i[a], r !== 0 && (Je(i) && ct(i) || Array.isArray(i) && I1(i)) &&
|
|
9953
|
+
return i && delete i[a], r !== 0 && (Je(i) && ct(i) || Array.isArray(i) && I1(i)) && Xe(e, n.slice(0, -1)), e;
|
|
9954
9954
|
}
|
|
9955
9955
|
var Pc = (e, t, n) => (e[t] = n, e);
|
|
9956
9956
|
function qu(e) {
|
|
@@ -10016,7 +10016,7 @@ function qu(e) {
|
|
|
10016
10016
|
if (n._options.resolver)
|
|
10017
10017
|
n._executeSchema([i]).then((E) => {
|
|
10018
10018
|
const R = se(E.errors, i), k = se(n._formState.errors, i);
|
|
10019
|
-
(k ? !R && k.type || R && (k.type !== R.type || k.message !== R.message) : R && R.type) && (R ? Ae(n._formState.errors, i, R) :
|
|
10019
|
+
(k ? !R && k.type || R && (k.type !== R.type || k.message !== R.message) : R && R.type) && (R ? Ae(n._formState.errors, i, R) : Xe(n._formState.errors, i), n._subjects.state.next({
|
|
10020
10020
|
errors: n._formState.errors
|
|
10021
10021
|
}));
|
|
10022
10022
|
});
|
|
@@ -10090,7 +10090,7 @@ function Mn(e, t) {
|
|
|
10090
10090
|
}
|
|
10091
10091
|
return !0;
|
|
10092
10092
|
}
|
|
10093
|
-
var Ju = (e) => e.type === "select-multiple", N1 = (e) => xl(e) ||
|
|
10093
|
+
var Ju = (e) => e.type === "select-multiple", N1 = (e) => xl(e) || Xr(e), Fs = (e) => Ea(e) && e.isConnected, Yu = (e) => {
|
|
10094
10094
|
for (const t in e)
|
|
10095
10095
|
if (vn(e[t]))
|
|
10096
10096
|
return !0;
|
|
@@ -10114,7 +10114,7 @@ var na = (e, t) => Zu(e, t, La(t)), Qu = (e, { valueAsNumber: t, valueAsDate: n,
|
|
|
10114
10114
|
function $s(e) {
|
|
10115
10115
|
const t = e.ref;
|
|
10116
10116
|
if (!(e.refs ? e.refs.every((n) => n.disabled) : t.disabled))
|
|
10117
|
-
return yl(t) ? t.files : xl(t) ?
|
|
10117
|
+
return yl(t) ? t.files : xl(t) ? Ku(e.refs).value : Ju(t) ? [...t.selectedOptions].map(({ value: n }) => n) : Xr(t) ? Xu(e.refs).value : Qu(Pe(t.value) ? e.ref.value : t.value, e);
|
|
10118
10118
|
}
|
|
10119
10119
|
var T1 = (e, t, n, i) => {
|
|
10120
10120
|
const r = {};
|
|
@@ -10154,7 +10154,7 @@ function Dc(e, t, n) {
|
|
|
10154
10154
|
name: n
|
|
10155
10155
|
};
|
|
10156
10156
|
}
|
|
10157
|
-
var P1 = (e, t, n, i, r) => r.isOnAll ? !1 : !n && r.isOnTouch ? !(t || e) : (n ? i.isOnBlur : r.isOnBlur) ? !e : (n ? i.isOnChange : r.isOnChange) ? e : !0, M1 = (e, t) => !
|
|
10157
|
+
var P1 = (e, t, n, i, r) => r.isOnAll ? !1 : !n && r.isOnTouch ? !(t || e) : (n ? i.isOnBlur : r.isOnBlur) ? !e : (n ? i.isOnChange : r.isOnChange) ? e : !0, M1 = (e, t) => !Kr(se(e, t)).length && Xe(e, t);
|
|
10158
10158
|
const D1 = {
|
|
10159
10159
|
mode: It.onSubmit,
|
|
10160
10160
|
reValidateMode: It.onChange,
|
|
@@ -10211,7 +10211,7 @@ function F1(e = {}) {
|
|
|
10211
10211
|
}
|
|
10212
10212
|
}, w = (T, A) => {
|
|
10213
10213
|
(f.isValidating || f.validatingFields) && ((T || Array.from(l.mount)).forEach((H) => {
|
|
10214
|
-
H && (A ? Ae(n.validatingFields, H, A) :
|
|
10214
|
+
H && (A ? Ae(n.validatingFields, H, A) : Xe(n.validatingFields, H));
|
|
10215
10215
|
}), u.state.next({
|
|
10216
10216
|
validatingFields: n.validatingFields,
|
|
10217
10217
|
isValidating: !ct(n.validatingFields)
|
|
@@ -10262,7 +10262,7 @@ function F1(e = {}) {
|
|
|
10262
10262
|
if (!H || ee) {
|
|
10263
10263
|
f.isDirty && (le = n.isDirty, n.isDirty = ae.isDirty = O(), Q = le !== ae.isDirty);
|
|
10264
10264
|
const ye = ve || Mn(se(r, T), A);
|
|
10265
|
-
le = !!(!ve && se(n.dirtyFields, T)), ye || ve ?
|
|
10265
|
+
le = !!(!ve && se(n.dirtyFields, T)), ye || ve ? Xe(n.dirtyFields, T) : Ae(n.dirtyFields, T, !0), ae.dirtyFields = n.dirtyFields, Q = Q || f.dirtyFields && le !== !ye;
|
|
10266
10266
|
}
|
|
10267
10267
|
if (H) {
|
|
10268
10268
|
const ye = se(n.touchedFields, T);
|
|
@@ -10271,7 +10271,7 @@ function F1(e = {}) {
|
|
|
10271
10271
|
return Q && ne && u.state.next(ae), Q ? ae : {};
|
|
10272
10272
|
}, k = (T, A, H, ee) => {
|
|
10273
10273
|
const ne = se(n.errors, T), Q = f.isValid && Lt(A) && n.isValid !== A;
|
|
10274
|
-
if (e.delayError && H ? (c = v(() => S(T, H)), c(e.delayError)) : (clearTimeout(d), c = null, H ? Ae(n.errors, T, H) :
|
|
10274
|
+
if (e.delayError && H ? (c = v(() => S(T, H)), c(e.delayError)) : (clearTimeout(d), c = null, H ? Ae(n.errors, T, H) : Xe(n.errors, T)), (H ? !Mn(ne, H) : ne) || !ct(ee) || Q) {
|
|
10275
10275
|
const le = {
|
|
10276
10276
|
...ee,
|
|
10277
10277
|
...Q && Lt(A) ? { isValid: A } : {},
|
|
@@ -10292,7 +10292,7 @@ function F1(e = {}) {
|
|
|
10292
10292
|
if (T)
|
|
10293
10293
|
for (const H of T) {
|
|
10294
10294
|
const ee = se(A, H);
|
|
10295
|
-
ee ? Ae(n.errors, H, ee) :
|
|
10295
|
+
ee ? Ae(n.errors, H, ee) : Xe(n.errors, H);
|
|
10296
10296
|
}
|
|
10297
10297
|
else
|
|
10298
10298
|
n.errors = A;
|
|
@@ -10310,7 +10310,7 @@ function F1(e = {}) {
|
|
|
10310
10310
|
const ye = await ho(ne, a, g, t.shouldUseNativeValidation && !A, ae);
|
|
10311
10311
|
if (ve && f.validatingFields && w([ee]), ye[Q.name] && (H.valid = !1, A))
|
|
10312
10312
|
break;
|
|
10313
|
-
!A && (se(ye, Q.name) ? ae ? Gu(n.errors, ye, Q.name) : Ae(n.errors, Q.name, ye[Q.name]) :
|
|
10313
|
+
!A && (se(ye, Q.name) ? ae ? Gu(n.errors, ye, Q.name) : Ae(n.errors, Q.name, ye[Q.name]) : Xe(n.errors, Q.name));
|
|
10314
10314
|
}
|
|
10315
10315
|
!ct(le) && await $(le, A, H);
|
|
10316
10316
|
}
|
|
@@ -10324,12 +10324,12 @@ function F1(e = {}) {
|
|
|
10324
10324
|
l.unMount = /* @__PURE__ */ new Set();
|
|
10325
10325
|
}, O = (T, A) => (T && A && Ae(a, T, A), !Mn(F(), r)), L = (T, A, H) => zu(T, l, {
|
|
10326
10326
|
...s.mount ? a : Pe(A) ? r : Zt(T) ? { [T]: A } : A
|
|
10327
|
-
}, H, A), j = (T) =>
|
|
10327
|
+
}, H, A), j = (T) => Kr(se(s.mount ? a : r, T, e.shouldUnregister ? se(r, T, []) : [])), C = (T, A, H = {}) => {
|
|
10328
10328
|
const ee = se(i, T);
|
|
10329
10329
|
let ne = A;
|
|
10330
10330
|
if (ee) {
|
|
10331
10331
|
const Q = ee._f;
|
|
10332
|
-
Q && (!Q.disabled && Ae(a, T, Qu(A, Q)), ne = Ea(Q.ref) && dt(A) ? "" : A, Ju(Q.ref) ? [...Q.ref.options].forEach((le) => le.selected = ne.includes(le.value)) : Q.refs ?
|
|
10332
|
+
Q && (!Q.disabled && Ae(a, T, Qu(A, Q)), ne = Ea(Q.ref) && dt(A) ? "" : A, Ju(Q.ref) ? [...Q.ref.options].forEach((le) => le.selected = ne.includes(le.value)) : Q.refs ? Xr(Q.ref) ? Q.refs.length > 1 ? Q.refs.forEach((le) => (!le.defaultChecked || !le.disabled) && (le.checked = Array.isArray(ne) ? !!ne.find((ae) => ae === le.value) : ne === le.value)) : Q.refs[0] && (Q.refs[0].checked = !!ne) : Q.refs.forEach((le) => le.checked = le.value === ne) : yl(Q.ref) ? Q.ref.value = "" : (Q.ref.value = ne, Q.ref.type || u.values.next({
|
|
10333
10333
|
name: T,
|
|
10334
10334
|
values: { ...a }
|
|
10335
10335
|
})));
|
|
@@ -10404,14 +10404,14 @@ function F1(e = {}) {
|
|
|
10404
10404
|
...s.mount ? a : r
|
|
10405
10405
|
};
|
|
10406
10406
|
return Pe(T) ? A : Zt(T) ? se(A, T) : T.map((H) => se(A, H));
|
|
10407
|
-
},
|
|
10407
|
+
}, X = (T, A) => ({
|
|
10408
10408
|
invalid: !!se((A || n).errors, T),
|
|
10409
10409
|
isDirty: !!se((A || n).dirtyFields, T),
|
|
10410
10410
|
error: se((A || n).errors, T),
|
|
10411
10411
|
isValidating: !!se(n.validatingFields, T),
|
|
10412
10412
|
isTouched: !!se((A || n).touchedFields, T)
|
|
10413
10413
|
}), V = (T) => {
|
|
10414
|
-
T && vt(T).forEach((A) =>
|
|
10414
|
+
T && vt(T).forEach((A) => Xe(n.errors, A)), u.state.next({
|
|
10415
10415
|
errors: T ? n.errors : {}
|
|
10416
10416
|
});
|
|
10417
10417
|
}, U = (T, A, H) => {
|
|
@@ -10429,14 +10429,14 @@ function F1(e = {}) {
|
|
|
10429
10429
|
next: (H) => T(L(void 0, A), H)
|
|
10430
10430
|
}) : L(T, A, !0), W = (T, A = {}) => {
|
|
10431
10431
|
for (const H of T ? vt(T) : l.mount)
|
|
10432
|
-
l.mount.delete(H), l.array.delete(H), A.keepValue || (
|
|
10432
|
+
l.mount.delete(H), l.array.delete(H), A.keepValue || (Xe(i, H), Xe(a, H)), !A.keepError && Xe(n.errors, H), !A.keepDirty && Xe(n.dirtyFields, H), !A.keepTouched && Xe(n.touchedFields, H), !A.keepIsValidating && Xe(n.validatingFields, H), !t.shouldUnregister && !A.keepDefaultValue && Xe(r, H);
|
|
10433
10433
|
u.values.next({
|
|
10434
10434
|
values: { ...a }
|
|
10435
10435
|
}), u.state.next({
|
|
10436
10436
|
...n,
|
|
10437
10437
|
...A.keepDirty ? { isDirty: O() } : {}
|
|
10438
10438
|
}), !A.keepIsValid && x();
|
|
10439
|
-
},
|
|
10439
|
+
}, K = ({ disabled: T, name: A, field: H, fields: ee, value: ne }) => {
|
|
10440
10440
|
if (Lt(T) && s.mount || T) {
|
|
10441
10441
|
const Q = T ? void 0 : Pe(ne) ? $s(H ? H._f : se(ee, A)._f) : ne;
|
|
10442
10442
|
Ae(a, A, Q), R(A, Q, !1, !1, !0);
|
|
@@ -10452,7 +10452,7 @@ function F1(e = {}) {
|
|
|
10452
10452
|
mount: !0,
|
|
10453
10453
|
...A
|
|
10454
10454
|
}
|
|
10455
|
-
}), l.mount.add(T), H ?
|
|
10455
|
+
}), l.mount.add(T), H ? K({
|
|
10456
10456
|
field: H,
|
|
10457
10457
|
disabled: Lt(A.disabled) ? A.disabled : e.disabled,
|
|
10458
10458
|
name: T,
|
|
@@ -10511,7 +10511,7 @@ function F1(e = {}) {
|
|
|
10511
10511
|
n.errors = Q, ne = le;
|
|
10512
10512
|
} else
|
|
10513
10513
|
await $(i);
|
|
10514
|
-
if (
|
|
10514
|
+
if (Xe(n.errors, "root"), ct(n.errors)) {
|
|
10515
10515
|
u.state.next({
|
|
10516
10516
|
errors: {}
|
|
10517
10517
|
});
|
|
@@ -10531,7 +10531,7 @@ function F1(e = {}) {
|
|
|
10531
10531
|
}), ee)
|
|
10532
10532
|
throw ee;
|
|
10533
10533
|
}, de = (T, A = {}) => {
|
|
10534
|
-
se(i, T) && (Pe(A.defaultValue) ? G(T, Ze(se(r, T))) : (G(T, A.defaultValue), Ae(r, T, Ze(A.defaultValue))), A.keepTouched ||
|
|
10534
|
+
se(i, T) && (Pe(A.defaultValue) ? G(T, Ze(se(r, T))) : (G(T, A.defaultValue), Ae(r, T, Ze(A.defaultValue))), A.keepTouched || Xe(n.touchedFields, T), A.keepDirty || (Xe(n.dirtyFields, T), n.isDirty = A.defaultValue ? O(T, Ze(se(r, T))) : O()), A.keepError || (Xe(n.errors, T), f.isValid && x()), u.state.next({ ...n }));
|
|
10535
10535
|
}, Ce = (T, A = {}) => {
|
|
10536
10536
|
const H = T ? Ze(T) : r, ee = Ze(H), ne = ct(T), Q = ne ? r : ee;
|
|
10537
10537
|
if (A.keepDefaultValues || (r = H), !A.keepValues) {
|
|
@@ -10583,7 +10583,7 @@ function F1(e = {}) {
|
|
|
10583
10583
|
control: {
|
|
10584
10584
|
register: te,
|
|
10585
10585
|
unregister: W,
|
|
10586
|
-
getFieldState:
|
|
10586
|
+
getFieldState: X,
|
|
10587
10587
|
handleSubmit: oe,
|
|
10588
10588
|
setError: U,
|
|
10589
10589
|
_executeSchema: N,
|
|
@@ -10592,7 +10592,7 @@ function F1(e = {}) {
|
|
|
10592
10592
|
_updateValid: x,
|
|
10593
10593
|
_removeUnmounted: D,
|
|
10594
10594
|
_updateFieldArray: _,
|
|
10595
|
-
_updateDisabledField:
|
|
10595
|
+
_updateDisabledField: K,
|
|
10596
10596
|
_getFieldArray: j,
|
|
10597
10597
|
_reset: Ce,
|
|
10598
10598
|
_resetDefaultValues: () => vn(t.defaultValues) && t.defaultValues().then((T) => {
|
|
@@ -10665,7 +10665,7 @@ function F1(e = {}) {
|
|
|
10665
10665
|
ne.focus && (ne.focus(), A.shouldSelect && ne.select());
|
|
10666
10666
|
}
|
|
10667
10667
|
},
|
|
10668
|
-
getFieldState:
|
|
10668
|
+
getFieldState: X
|
|
10669
10669
|
};
|
|
10670
10670
|
}
|
|
10671
10671
|
function wl(e = {}) {
|
|
@@ -10729,16 +10729,16 @@ var U1 = Object.prototype, z1 = U1.toString;
|
|
|
10729
10729
|
function W1(e) {
|
|
10730
10730
|
return z1.call(e);
|
|
10731
10731
|
}
|
|
10732
|
-
var G1 = "[object Null]",
|
|
10732
|
+
var G1 = "[object Null]", X1 = "[object Undefined]", Fc = Wi ? Wi.toStringTag : void 0;
|
|
10733
10733
|
function tp(e) {
|
|
10734
|
-
return e == null ? e === void 0 ?
|
|
10734
|
+
return e == null ? e === void 0 ? X1 : G1 : Fc && Fc in Object(e) ? H1(e) : W1(e);
|
|
10735
10735
|
}
|
|
10736
|
-
function
|
|
10736
|
+
function K1(e) {
|
|
10737
10737
|
return e != null && typeof e == "object";
|
|
10738
10738
|
}
|
|
10739
10739
|
var q1 = "[object Symbol]";
|
|
10740
10740
|
function Cl(e) {
|
|
10741
|
-
return typeof e == "symbol" ||
|
|
10741
|
+
return typeof e == "symbol" || K1(e) && tp(e) == q1;
|
|
10742
10742
|
}
|
|
10743
10743
|
function J1(e, t) {
|
|
10744
10744
|
for (var n = -1, i = e == null ? 0 : e.length, r = Array(i); ++n < i; )
|
|
@@ -10950,15 +10950,15 @@ function El(e, t) {
|
|
|
10950
10950
|
}
|
|
10951
10951
|
El.Cache = vi;
|
|
10952
10952
|
var Gy = 500;
|
|
10953
|
-
function
|
|
10953
|
+
function Xy(e) {
|
|
10954
10954
|
var t = El(e, function(i) {
|
|
10955
10955
|
return n.size === Gy && n.clear(), i;
|
|
10956
10956
|
}), n = t.cache;
|
|
10957
10957
|
return t;
|
|
10958
10958
|
}
|
|
10959
|
-
var
|
|
10959
|
+
var Ky = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, qy = /\\(\\)?/g, Jy = Xy(function(e) {
|
|
10960
10960
|
var t = [];
|
|
10961
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
10961
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ky, function(n, i, r, a) {
|
|
10962
10962
|
t.push(r ? a.replace(qy, "$1") : i || n);
|
|
10963
10963
|
}), t;
|
|
10964
10964
|
});
|
|
@@ -11726,10 +11726,10 @@ function W2(e) {
|
|
|
11726
11726
|
return this.size = t.size, n;
|
|
11727
11727
|
}
|
|
11728
11728
|
var G2 = W2;
|
|
11729
|
-
function
|
|
11729
|
+
function X2(e) {
|
|
11730
11730
|
return this.__data__.get(e);
|
|
11731
11731
|
}
|
|
11732
|
-
var
|
|
11732
|
+
var K2 = X2;
|
|
11733
11733
|
function q2(e) {
|
|
11734
11734
|
return this.__data__.has(e);
|
|
11735
11735
|
}
|
|
@@ -11748,9 +11748,9 @@ var s0 = a0, o0 = Object.prototype, l0 = o0.toString;
|
|
|
11748
11748
|
function c0(e) {
|
|
11749
11749
|
return l0.call(e);
|
|
11750
11750
|
}
|
|
11751
|
-
var d0 = c0,
|
|
11751
|
+
var d0 = c0, Xc = xp, f0 = s0, u0 = d0, p0 = "[object Null]", m0 = "[object Undefined]", Kc = Xc ? Xc.toStringTag : void 0;
|
|
11752
11752
|
function h0(e) {
|
|
11753
|
-
return e == null ? e === void 0 ? m0 : p0 :
|
|
11753
|
+
return e == null ? e === void 0 ? m0 : p0 : Kc && Kc in Object(e) ? f0(e) : u0(e);
|
|
11754
11754
|
}
|
|
11755
11755
|
var ls = h0;
|
|
11756
11756
|
function g0(e) {
|
|
@@ -11798,10 +11798,10 @@ var W0 = z0;
|
|
|
11798
11798
|
function G0(e, t) {
|
|
11799
11799
|
return e?.[t];
|
|
11800
11800
|
}
|
|
11801
|
-
var
|
|
11801
|
+
var X0 = G0, K0 = W0, q0 = X0;
|
|
11802
11802
|
function J0(e, t) {
|
|
11803
11803
|
var n = q0(e, t);
|
|
11804
|
-
return
|
|
11804
|
+
return K0(n) ? n : void 0;
|
|
11805
11805
|
}
|
|
11806
11806
|
var Nl = J0, Y0 = Nl, Z0 = Zi, Q0 = Y0(Z0, "Map"), Op = Q0, ex = Nl, tx = ex(Object, "create"), cs = tx, Jc = cs;
|
|
11807
11807
|
function nx() {
|
|
@@ -11880,7 +11880,7 @@ function Wx(e, t) {
|
|
|
11880
11880
|
var n = zx(this, e), i = n.size;
|
|
11881
11881
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
11882
11882
|
}
|
|
11883
|
-
var Gx = Wx,
|
|
11883
|
+
var Gx = Wx, Xx = Nx, Kx = Fx, qx = jx, Jx = Ux, Yx = Gx;
|
|
11884
11884
|
function er(e) {
|
|
11885
11885
|
var t = -1, n = e == null ? 0 : e.length;
|
|
11886
11886
|
for (this.clear(); ++t < n; ) {
|
|
@@ -11888,8 +11888,8 @@ function er(e) {
|
|
|
11888
11888
|
this.set(i[0], i[1]);
|
|
11889
11889
|
}
|
|
11890
11890
|
}
|
|
11891
|
-
er.prototype.clear =
|
|
11892
|
-
er.prototype.delete =
|
|
11891
|
+
er.prototype.clear = Xx;
|
|
11892
|
+
er.prototype.delete = Kx;
|
|
11893
11893
|
er.prototype.get = qx;
|
|
11894
11894
|
er.prototype.has = Jx;
|
|
11895
11895
|
er.prototype.set = Yx;
|
|
@@ -11904,7 +11904,7 @@ function iw(e, t) {
|
|
|
11904
11904
|
}
|
|
11905
11905
|
return n.set(e, t), this.size = n.size, this;
|
|
11906
11906
|
}
|
|
11907
|
-
var rw = iw, aw = os, sw = z2, ow = G2, lw =
|
|
11907
|
+
var rw = iw, aw = os, sw = z2, ow = G2, lw = K2, cw = J2, dw = rw;
|
|
11908
11908
|
function tr(e) {
|
|
11909
11909
|
var t = this.__data__ = new aw(e);
|
|
11910
11910
|
this.size = t.size;
|
|
@@ -12000,11 +12000,11 @@ var Sp = Hw, Uw = Dw, zw = Ep, Ww = Sp;
|
|
|
12000
12000
|
function Gw(e) {
|
|
12001
12001
|
return typeof e.constructor == "function" && !Ww(e) ? Uw(zw(e)) : {};
|
|
12002
12002
|
}
|
|
12003
|
-
var
|
|
12004
|
-
function
|
|
12003
|
+
var Xw = Gw;
|
|
12004
|
+
function Kw(e) {
|
|
12005
12005
|
return e != null && typeof e == "object";
|
|
12006
12006
|
}
|
|
12007
|
-
var qr =
|
|
12007
|
+
var qr = Kw, qw = ls, Jw = qr, Yw = "[object Arguments]";
|
|
12008
12008
|
function Zw(e) {
|
|
12009
12009
|
return Jw(e) && qw(e) == Yw;
|
|
12010
12010
|
}
|
|
@@ -12044,8 +12044,8 @@ function _O(e) {
|
|
|
12044
12044
|
var n = OO.call(t, "constructor") && t.constructor;
|
|
12045
12045
|
return typeof n == "function" && n instanceof n && Rp.call(n) == CO;
|
|
12046
12046
|
}
|
|
12047
|
-
var EO = _O, SO = ls, kO = Np, LO = qr, IO = "[object Arguments]", NO = "[object Array]", TO = "[object Boolean]", RO = "[object Date]", AO = "[object Error]", PO = "[object Function]", MO = "[object Map]", DO = "[object Number]", FO = "[object Object]", $O = "[object RegExp]", BO = "[object Set]", jO = "[object String]", VO = "[object WeakMap]", HO = "[object ArrayBuffer]", UO = "[object DataView]", zO = "[object Float32Array]", WO = "[object Float64Array]", GO = "[object Int8Array]",
|
|
12048
|
-
Fe[zO] = Fe[WO] = Fe[GO] = Fe[
|
|
12047
|
+
var EO = _O, SO = ls, kO = Np, LO = qr, IO = "[object Arguments]", NO = "[object Array]", TO = "[object Boolean]", RO = "[object Date]", AO = "[object Error]", PO = "[object Function]", MO = "[object Map]", DO = "[object Number]", FO = "[object Object]", $O = "[object RegExp]", BO = "[object Set]", jO = "[object String]", VO = "[object WeakMap]", HO = "[object ArrayBuffer]", UO = "[object DataView]", zO = "[object Float32Array]", WO = "[object Float64Array]", GO = "[object Int8Array]", XO = "[object Int16Array]", KO = "[object Int32Array]", qO = "[object Uint8Array]", JO = "[object Uint8ClampedArray]", YO = "[object Uint16Array]", ZO = "[object Uint32Array]", Fe = {};
|
|
12048
|
+
Fe[zO] = Fe[WO] = Fe[GO] = Fe[XO] = Fe[KO] = Fe[qO] = Fe[JO] = Fe[YO] = Fe[ZO] = !0;
|
|
12049
12049
|
Fe[IO] = Fe[NO] = Fe[HO] = Fe[TO] = Fe[UO] = Fe[RO] = Fe[AO] = Fe[PO] = Fe[MO] = Fe[DO] = Fe[FO] = Fe[$O] = Fe[BO] = Fe[jO] = Fe[VO] = !1;
|
|
12050
12050
|
function QO(e) {
|
|
12051
12051
|
return LO(e) && kO(e.length) && !!Fe[SO(e)];
|
|
@@ -12131,11 +12131,11 @@ var VC = jC, HC = RC, UC = VC, zC = Rl;
|
|
|
12131
12131
|
function WC(e) {
|
|
12132
12132
|
return zC(e) ? HC(e, !0) : UC(e);
|
|
12133
12133
|
}
|
|
12134
|
-
var Dp = WC, GC = bC,
|
|
12135
|
-
function
|
|
12136
|
-
return GC(e,
|
|
12134
|
+
var Dp = WC, GC = bC, XC = Dp;
|
|
12135
|
+
function KC(e) {
|
|
12136
|
+
return GC(e, XC(e));
|
|
12137
12137
|
}
|
|
12138
|
-
var qC =
|
|
12138
|
+
var qC = KC, rd = _p, JC = Cw, YC = Tw, ZC = Aw, QC = Xw, ad = Lp, sd = Ip, e5 = pO, t5 = Tp, n5 = Il, i5 = yi, r5 = EO, a5 = Ap, od = Pp, s5 = qC;
|
|
12139
12139
|
function o5(e, t, n, i, r, a, s) {
|
|
12140
12140
|
var l = od(e, n), c = od(t, n), d = s.get(c);
|
|
12141
12141
|
if (d) {
|
|
@@ -12220,13 +12220,13 @@ function V5(e, t) {
|
|
|
12220
12220
|
return j5(B5(e, t, $5), e + "");
|
|
12221
12221
|
}
|
|
12222
12222
|
var H5 = V5, U5 = as, z5 = Rl, W5 = Mp, G5 = yi;
|
|
12223
|
-
function
|
|
12223
|
+
function X5(e, t, n) {
|
|
12224
12224
|
if (!G5(n))
|
|
12225
12225
|
return !1;
|
|
12226
12226
|
var i = typeof t;
|
|
12227
12227
|
return (i == "number" ? z5(n) && W5(t, n.length) : i == "string" && t in n) ? U5(n[t], e) : !1;
|
|
12228
12228
|
}
|
|
12229
|
-
var
|
|
12229
|
+
var K5 = X5, q5 = H5, J5 = K5;
|
|
12230
12230
|
function Y5(e) {
|
|
12231
12231
|
return q5(function(t, n) {
|
|
12232
12232
|
var i = -1, r = n.length, a = r > 1 ? n[r - 1] : void 0, s = r > 2 ? n[2] : void 0;
|
|
@@ -12313,16 +12313,16 @@ const jp = {
|
|
|
12313
12313
|
collapseAllAriaLabel: ""
|
|
12314
12314
|
}
|
|
12315
12315
|
}
|
|
12316
|
-
}) : null, F = g ? pp(g)() : null,
|
|
12316
|
+
}) : null, F = g ? pp(g)() : null, X = v ? gp(...v.map((Oe) => hp[Oe]))() : null;
|
|
12317
12317
|
let V = B?.children || J?.children || b?.children || t, U = null;
|
|
12318
12318
|
w && (U = f2(w)(V), V = U.children);
|
|
12319
|
-
const q = Bp(B, J, b, F,
|
|
12319
|
+
const q = Bp(B, J, b, F, X, U), {
|
|
12320
12320
|
// ignore the merged children since we transform them ourselves so we can wrap it with info
|
|
12321
12321
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12322
12322
|
children: W = null,
|
|
12323
12323
|
// selectable adds this but we don't want it
|
|
12324
12324
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12325
|
-
isVisible:
|
|
12325
|
+
isVisible: K = null,
|
|
12326
12326
|
className: te = "",
|
|
12327
12327
|
component: ie = i
|
|
12328
12328
|
} = q, Y = z(q, ["children", "isVisible", "className", "component"]);
|
|
@@ -12379,7 +12379,7 @@ const r3 = (e, { rowData: t }) => {
|
|
|
12379
12379
|
rowData: {
|
|
12380
12380
|
id: _.id
|
|
12381
12381
|
}
|
|
12382
|
-
}) : null, F = d ? s2(d.items, null, null) : null,
|
|
12382
|
+
}) : null, F = d ? s2(d.items, null, null) : null, X = F ? F(null, {
|
|
12383
12383
|
rowIndex: d?.rowIndex,
|
|
12384
12384
|
rowData: {
|
|
12385
12385
|
disableActions: d?.isDisabled
|
|
@@ -12418,14 +12418,14 @@ const r3 = (e, { rowData: t }) => {
|
|
|
12418
12418
|
expandId: p?.expandId
|
|
12419
12419
|
}
|
|
12420
12420
|
}
|
|
12421
|
-
}) : null, q = g ? pp(g)() : null, W = v ? gp(...v.map((Le) => hp[Le]))() : null,
|
|
12421
|
+
}) : null, q = g ? pp(g)() : null, W = v ? gp(...v.map((Le) => hp[Le]))() : null, K = u !== null ? p2(u.onCollapse, u.onCheckChange, u.onToggleRowDetails)({
|
|
12422
12422
|
title: t
|
|
12423
12423
|
}, {
|
|
12424
12424
|
rowIndex: u.rowIndex,
|
|
12425
12425
|
rowData: {
|
|
12426
12426
|
props: u.props
|
|
12427
12427
|
}
|
|
12428
|
-
}) : null, te = Bp(B,
|
|
12428
|
+
}) : null, te = Bp(B, X, V, U, q, W, J, K, b), {
|
|
12429
12429
|
// selectable adds this but we don't want it
|
|
12430
12430
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12431
12431
|
isVisible: ie = null,
|
|
@@ -12622,15 +12622,15 @@ function y3(e, t, n) {
|
|
|
12622
12622
|
);
|
|
12623
12623
|
return [s, l];
|
|
12624
12624
|
}
|
|
12625
|
-
const
|
|
12625
|
+
const Xp = Al(
|
|
12626
12626
|
"HelpContext",
|
|
12627
12627
|
void 0
|
|
12628
|
-
), x3 = () => Wp(
|
|
12628
|
+
), x3 = () => Wp(Xp), w3 = ({ children: e }) => {
|
|
12629
12629
|
const [t, n] = y3(localStorage, "helpEnabled", !0);
|
|
12630
12630
|
function i() {
|
|
12631
12631
|
n(!t);
|
|
12632
12632
|
}
|
|
12633
|
-
return /* @__PURE__ */ h(
|
|
12633
|
+
return /* @__PURE__ */ h(Xp.Provider, { value: { enabled: t, toggleHelp: i }, children: e });
|
|
12634
12634
|
}, O3 = () => Bd(void 0);
|
|
12635
12635
|
let yo;
|
|
12636
12636
|
const at = () => {
|
|
@@ -12659,7 +12659,7 @@ const at = () => {
|
|
|
12659
12659
|
pkceMethod: "S256",
|
|
12660
12660
|
responseMode: "query"
|
|
12661
12661
|
}).then(() => r(!0)).catch((c) => s(c)), n.current = !0);
|
|
12662
|
-
}, [l]), a ? /* @__PURE__ */ h(g3, { error: a }) : i ? /* @__PURE__ */ h(yo.Provider, { value: { environment: e, keycloak: l }, children: /* @__PURE__ */ h(h3, { children: /* @__PURE__ */ h(w3, { children: t }) }) }) : /* @__PURE__ */ h(
|
|
12662
|
+
}, [l]), a ? /* @__PURE__ */ h(g3, { error: a }) : i ? /* @__PURE__ */ h(yo.Provider, { value: { environment: e, keycloak: l }, children: /* @__PURE__ */ h(h3, { children: /* @__PURE__ */ h(w3, { children: t }) }) }) : /* @__PURE__ */ h(Kt, {});
|
|
12663
12663
|
};
|
|
12664
12664
|
function C3() {
|
|
12665
12665
|
const e = document.getElementById("environment")?.textContent;
|
|
@@ -12732,7 +12732,7 @@ const Pr = ({
|
|
|
12732
12732
|
}
|
|
12733
12733
|
)
|
|
12734
12734
|
] });
|
|
12735
|
-
}, Pl = ({ message: e, ...t }) => /* @__PURE__ */ h(rl, { ...t, children: /* @__PURE__ */ h(Yo, { children: /* @__PURE__ */ h(Zo, { icon: /* @__PURE__ */ h(
|
|
12735
|
+
}, Pl = ({ message: e, ...t }) => /* @__PURE__ */ h(rl, { ...t, children: /* @__PURE__ */ h(Yo, { children: /* @__PURE__ */ h(Zo, { icon: /* @__PURE__ */ h(Xi, {}), variant: "error", children: e }) }) }), Kp = ({
|
|
12736
12736
|
helpText: e,
|
|
12737
12737
|
fieldLabelId: t,
|
|
12738
12738
|
noVerticalAlign: n = !0,
|
|
@@ -12747,10 +12747,10 @@ const Pr = ({
|
|
|
12747
12747
|
"aria-label": t,
|
|
12748
12748
|
onClick: (a) => a.preventDefault(),
|
|
12749
12749
|
className: "pf-v5-c-form__group-label-help",
|
|
12750
|
-
children: /* @__PURE__ */ h(
|
|
12750
|
+
children: /* @__PURE__ */ h(Kn, { isInline: n, children: /* @__PURE__ */ h(Ca, {}) })
|
|
12751
12751
|
}
|
|
12752
12752
|
),
|
|
12753
|
-
i && /* @__PURE__ */ h(
|
|
12753
|
+
i && /* @__PURE__ */ h(Kn, { isInline: n, children: /* @__PURE__ */ h(Ca, {}) })
|
|
12754
12754
|
] }) }) : null;
|
|
12755
12755
|
};
|
|
12756
12756
|
function qp(e) {
|
|
@@ -12769,7 +12769,7 @@ const Ml = ({
|
|
|
12769
12769
|
{
|
|
12770
12770
|
label: t || e,
|
|
12771
12771
|
fieldId: e,
|
|
12772
|
-
labelIcon: n ? /* @__PURE__ */ h(
|
|
12772
|
+
labelIcon: n ? /* @__PURE__ */ h(Kp, { helpText: n, fieldLabelId: e }) : void 0,
|
|
12773
12773
|
...a,
|
|
12774
12774
|
children: [
|
|
12775
12775
|
r,
|
|
@@ -12833,7 +12833,7 @@ const S3 = ({
|
|
|
12833
12833
|
name: t,
|
|
12834
12834
|
control: l,
|
|
12835
12835
|
render: ({ field: { onChange: p, value: m } }) => /* @__PURE__ */ h(
|
|
12836
|
-
|
|
12836
|
+
Xn,
|
|
12837
12837
|
{
|
|
12838
12838
|
...s,
|
|
12839
12839
|
onClick: () => f(!d),
|
|
@@ -12861,7 +12861,7 @@ const S3 = ({
|
|
|
12861
12861
|
p(Array.isArray(m) ? [x] : x), f(!1);
|
|
12862
12862
|
},
|
|
12863
12863
|
isOpen: d,
|
|
12864
|
-
children: /* @__PURE__ */ h(
|
|
12864
|
+
children: /* @__PURE__ */ h(Ki, { children: i.map((g) => /* @__PURE__ */ h(Wr, { value: ri(g), children: Dl(g) ? g : g.value }, ri(g))) })
|
|
12865
12865
|
}
|
|
12866
12866
|
)
|
|
12867
12867
|
}
|
|
@@ -12938,7 +12938,7 @@ const S3 = ({
|
|
|
12938
12938
|
name: t,
|
|
12939
12939
|
control: f,
|
|
12940
12940
|
render: ({ field: k }) => /* @__PURE__ */ h(
|
|
12941
|
-
|
|
12941
|
+
Xn,
|
|
12942
12942
|
{
|
|
12943
12943
|
...d,
|
|
12944
12944
|
onClick: () => m(!p),
|
|
@@ -13014,7 +13014,7 @@ const S3 = ({
|
|
|
13014
13014
|
) : k.onChange([...k.value, $]) : (k.onChange(Array.isArray(k.value) ? [$] : $), m(!1));
|
|
13015
13015
|
},
|
|
13016
13016
|
isOpen: p,
|
|
13017
|
-
children: /* @__PURE__ */ h(
|
|
13017
|
+
children: /* @__PURE__ */ h(Ki, { children: E })
|
|
13018
13018
|
}
|
|
13019
13019
|
)
|
|
13020
13020
|
}
|
|
@@ -13058,7 +13058,7 @@ const yr = (e) => typeof e[0] != "string", Dl = (e) => typeof e == "string", ri
|
|
|
13058
13058
|
);
|
|
13059
13059
|
}, I3 = uu, N3 = ({ icon: e }) => {
|
|
13060
13060
|
const t = T3(e);
|
|
13061
|
-
return /* @__PURE__ */ h(
|
|
13061
|
+
return /* @__PURE__ */ h(Kn, { size: "lg", children: /* @__PURE__ */ h(t, { alt: e }) });
|
|
13062
13062
|
};
|
|
13063
13063
|
function T3(e) {
|
|
13064
13064
|
switch (e) {
|
|
@@ -13072,7 +13072,7 @@ function T3(e) {
|
|
|
13072
13072
|
return Bv;
|
|
13073
13073
|
case "linkedin":
|
|
13074
13074
|
case "linkedin-openid-connect":
|
|
13075
|
-
return
|
|
13075
|
+
return Kv;
|
|
13076
13076
|
case "openshift-v3":
|
|
13077
13077
|
case "openshift-v4":
|
|
13078
13078
|
return s1;
|
|
@@ -13118,7 +13118,7 @@ const R3 = "_title_180i0_2", A3 = {
|
|
|
13118
13118
|
className: i
|
|
13119
13119
|
}) => {
|
|
13120
13120
|
const r = xm();
|
|
13121
|
-
return /* @__PURE__ */ Z(
|
|
13121
|
+
return /* @__PURE__ */ Z(Xo, { id: r, className: i, isFlat: !0, children: [
|
|
13122
13122
|
/* @__PURE__ */ h(Uf, { className: "kc-form-panel__header", children: /* @__PURE__ */ h(Bf, { tabIndex: 0, children: /* @__PURE__ */ h(Jp, { id: n, title: e }) }) }),
|
|
13123
13123
|
/* @__PURE__ */ h($f, { className: "kc-form-panel__body", children: t })
|
|
13124
13124
|
] });
|
|
@@ -13262,7 +13262,7 @@ const Jr = ({
|
|
|
13262
13262
|
label: Oo(e, n) || "",
|
|
13263
13263
|
fieldId: n.name,
|
|
13264
13264
|
isRequired: fs(n),
|
|
13265
|
-
labelIcon: a ? /* @__PURE__ */ h(
|
|
13265
|
+
labelIcon: a ? /* @__PURE__ */ h(Kp, { helpText: a, fieldLabelId: n.name }) : void 0,
|
|
13266
13266
|
children: [
|
|
13267
13267
|
l ? /* @__PURE__ */ Z(Hn, { children: [
|
|
13268
13268
|
r,
|
|
@@ -13279,14 +13279,14 @@ const Jr = ({
|
|
|
13279
13279
|
},
|
|
13280
13280
|
n.name
|
|
13281
13281
|
);
|
|
13282
|
-
},
|
|
13282
|
+
}, X3 = ({
|
|
13283
13283
|
t: e,
|
|
13284
13284
|
form: t,
|
|
13285
13285
|
attribute: n,
|
|
13286
13286
|
renderer: i,
|
|
13287
13287
|
...r
|
|
13288
13288
|
}) => /* @__PURE__ */ h(Jr, { t: e, form: t, attribute: n, renderer: i, children: /* @__PURE__ */ h(
|
|
13289
|
-
|
|
13289
|
+
K3,
|
|
13290
13290
|
{
|
|
13291
13291
|
t: e,
|
|
13292
13292
|
form: t,
|
|
@@ -13297,7 +13297,7 @@ const Jr = ({
|
|
|
13297
13297
|
}),
|
|
13298
13298
|
...r
|
|
13299
13299
|
}
|
|
13300
|
-
) }),
|
|
13300
|
+
) }), K3 = ({
|
|
13301
13301
|
t: e,
|
|
13302
13302
|
name: t,
|
|
13303
13303
|
inputType: n,
|
|
@@ -13420,7 +13420,7 @@ const Jr = ({
|
|
|
13420
13420
|
p
|
|
13421
13421
|
);
|
|
13422
13422
|
return /* @__PURE__ */ h(
|
|
13423
|
-
|
|
13423
|
+
Xn,
|
|
13424
13424
|
{
|
|
13425
13425
|
ref: x,
|
|
13426
13426
|
maxMenuHeight: Ra(c),
|
|
@@ -13455,7 +13455,7 @@ const Jr = ({
|
|
|
13455
13455
|
}
|
|
13456
13456
|
),
|
|
13457
13457
|
isOpen: r,
|
|
13458
|
-
children: /* @__PURE__ */ h(
|
|
13458
|
+
children: /* @__PURE__ */ h(Ki, { children: p })
|
|
13459
13459
|
}
|
|
13460
13460
|
);
|
|
13461
13461
|
}, J3 = ({
|
|
@@ -13508,7 +13508,7 @@ const Jr = ({
|
|
|
13508
13508
|
}
|
|
13509
13509
|
};
|
|
13510
13510
|
return /* @__PURE__ */ Z(
|
|
13511
|
-
|
|
13511
|
+
Xn,
|
|
13512
13512
|
{
|
|
13513
13513
|
..._,
|
|
13514
13514
|
onClick: M,
|
|
@@ -13572,7 +13572,7 @@ const Jr = ({
|
|
|
13572
13572
|
}
|
|
13573
13573
|
),
|
|
13574
13574
|
children: [
|
|
13575
|
-
/* @__PURE__ */ h(
|
|
13575
|
+
/* @__PURE__ */ h(Ki, { children: w }),
|
|
13576
13576
|
v && /* @__PURE__ */ h(Tf, { children: v })
|
|
13577
13577
|
]
|
|
13578
13578
|
}
|
|
@@ -13672,7 +13672,7 @@ const Ra = (e) => typeof e == "number" ? e + "px" : e, Y3 = ({
|
|
|
13672
13672
|
"html5-date": qt,
|
|
13673
13673
|
"html5-month": qt,
|
|
13674
13674
|
"html5-time": qt,
|
|
13675
|
-
"multi-input":
|
|
13675
|
+
"multi-input": X3
|
|
13676
13676
|
}, Q3 = ({
|
|
13677
13677
|
t: e,
|
|
13678
13678
|
form: t,
|
|
@@ -15681,11 +15681,11 @@ function Eo(e) {
|
|
|
15681
15681
|
function im() {
|
|
15682
15682
|
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Eo(XMLHttpRequest)) === "object";
|
|
15683
15683
|
}
|
|
15684
|
-
function
|
|
15684
|
+
function X_(e) {
|
|
15685
15685
|
return !!e && typeof e.then == "function";
|
|
15686
15686
|
}
|
|
15687
|
-
function
|
|
15688
|
-
return
|
|
15687
|
+
function K_(e) {
|
|
15688
|
+
return X_(e) ? e : Promise.resolve(e);
|
|
15689
15689
|
}
|
|
15690
15690
|
function q_(e) {
|
|
15691
15691
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -15983,14 +15983,14 @@ function J_() {
|
|
|
15983
15983
|
B(new s.DOMException("Aborted", "AbortError"));
|
|
15984
15984
|
}, 0);
|
|
15985
15985
|
};
|
|
15986
|
-
function
|
|
15986
|
+
function X(V) {
|
|
15987
15987
|
try {
|
|
15988
15988
|
return V === "" && l.location.href ? l.location.href : V;
|
|
15989
15989
|
} catch {
|
|
15990
15990
|
return V;
|
|
15991
15991
|
}
|
|
15992
15992
|
}
|
|
15993
|
-
b.open(J.method,
|
|
15993
|
+
b.open(J.method, X(J.url), !0), J.credentials === "include" ? b.withCredentials = !0 : J.credentials === "omit" && (b.withCredentials = !1), "responseType" in b && (c.blob ? b.responseType = "blob" : c.arrayBuffer && J.headers.get("Content-Type") && J.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (b.responseType = "arraybuffer")), P && typeof P.headers == "object" && !(P.headers instanceof v) ? Object.getOwnPropertyNames(P.headers).forEach(function(V) {
|
|
15994
15994
|
b.setRequestHeader(V, m(P.headers[V]));
|
|
15995
15995
|
}) : J.headers.forEach(function(V, U) {
|
|
15996
15996
|
b.setRequestHeader(U, V);
|
|
@@ -16263,7 +16263,7 @@ var o4 = function() {
|
|
|
16263
16263
|
key: "_readAny",
|
|
16264
16264
|
value: function(n, i, r, a, s) {
|
|
16265
16265
|
var l = this, c = this.options.loadPath;
|
|
16266
|
-
typeof this.options.loadPath == "function" && (c = this.options.loadPath(n, r)), c =
|
|
16266
|
+
typeof this.options.loadPath == "function" && (c = this.options.loadPath(n, r)), c = K_(c), c.then(function(d) {
|
|
16267
16267
|
if (!d) return s(null, {});
|
|
16268
16268
|
var f = l.services.interpolator.interpolate(d, {
|
|
16269
16269
|
lng: n.join("+"),
|
|
@@ -16429,7 +16429,7 @@ const D4 = () => {
|
|
|
16429
16429
|
}
|
|
16430
16430
|
};
|
|
16431
16431
|
if (!n)
|
|
16432
|
-
return /* @__PURE__ */ h(
|
|
16432
|
+
return /* @__PURE__ */ h(Kt, {});
|
|
16433
16433
|
const m = () => n?.attributes?.map((_) => _.readOnly).reduce((_, S) => _ && S, !0), {
|
|
16434
16434
|
updateEmailFeatureEnabled: g,
|
|
16435
16435
|
updateEmailActionEnabled: v,
|
|
@@ -16580,7 +16580,7 @@ async function cm(e) {
|
|
|
16580
16580
|
}
|
|
16581
16581
|
const B4 = () => {
|
|
16582
16582
|
const [e, t] = me(), n = at();
|
|
16583
|
-
return Wt((i) => cm({ signal: i, context: n }), t), /* @__PURE__ */ h(wu, { children: /* @__PURE__ */ h(Su, { children: /* @__PURE__ */ h(Bi, { children: /* @__PURE__ */ h(
|
|
16583
|
+
return Wt((i) => cm({ signal: i, context: n }), t), /* @__PURE__ */ h(wu, { children: /* @__PURE__ */ h(Su, { children: /* @__PURE__ */ h(Bi, { children: /* @__PURE__ */ h(Ka, { children: /* @__PURE__ */ h(Hd, { fallback: /* @__PURE__ */ h(Kt, {}), children: e?.filter(
|
|
16584
16584
|
(i) => i.isVisible ? n.environment.features[i.isVisible] : !0
|
|
16585
16585
|
).map((i) => /* @__PURE__ */ h(
|
|
16586
16586
|
dm,
|
|
@@ -16790,7 +16790,7 @@ const j4 = () => {
|
|
|
16790
16790
|
)
|
|
16791
16791
|
]
|
|
16792
16792
|
}
|
|
16793
|
-
) : /* @__PURE__ */ h(
|
|
16793
|
+
) : /* @__PURE__ */ h(Kt, {});
|
|
16794
16794
|
}, Lo = ({ message: e, ...t }) => /* @__PURE__ */ h(Bt, { className: "pf-v5-u-align-items-center pf-p-b-0", children: /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(
|
|
16795
16795
|
xn,
|
|
16796
16796
|
{
|
|
@@ -16841,7 +16841,7 @@ const j4 = () => {
|
|
|
16841
16841
|
}
|
|
16842
16842
|
),
|
|
16843
16843
|
/* @__PURE__ */ Z(
|
|
16844
|
-
|
|
16844
|
+
Ko,
|
|
16845
16845
|
{
|
|
16846
16846
|
"aria-labelledby": i("link"),
|
|
16847
16847
|
"aria-label": i("unLink"),
|
|
@@ -16854,7 +16854,7 @@ const j4 = () => {
|
|
|
16854
16854
|
variant: "link",
|
|
16855
16855
|
onClick: () => l(e),
|
|
16856
16856
|
children: [
|
|
16857
|
-
/* @__PURE__ */ h(
|
|
16857
|
+
/* @__PURE__ */ h(Kn, { size: "sm", children: /* @__PURE__ */ h(x1, {}) }),
|
|
16858
16858
|
" ",
|
|
16859
16859
|
i("unLink")
|
|
16860
16860
|
]
|
|
@@ -16867,7 +16867,7 @@ const j4 = () => {
|
|
|
16867
16867
|
variant: "link",
|
|
16868
16868
|
onClick: () => c(e),
|
|
16869
16869
|
children: [
|
|
16870
|
-
/* @__PURE__ */ h(
|
|
16870
|
+
/* @__PURE__ */ h(Kn, { size: "sm", children: /* @__PURE__ */ h(Gv, {}) }),
|
|
16871
16871
|
" ",
|
|
16872
16872
|
i("link")
|
|
16873
16873
|
]
|
|
@@ -17125,7 +17125,7 @@ const j4 = () => {
|
|
|
17125
17125
|
), f;
|
|
17126
17126
|
};
|
|
17127
17127
|
if (!i)
|
|
17128
|
-
return /* @__PURE__ */ h(
|
|
17128
|
+
return /* @__PURE__ */ h(Kt, {});
|
|
17129
17129
|
const s = [
|
|
17130
17130
|
...new Set(i.map((l) => l.category))
|
|
17131
17131
|
];
|
|
@@ -17191,7 +17191,7 @@ const j4 = () => {
|
|
|
17191
17191
|
dataListCells: [
|
|
17192
17192
|
...a(d),
|
|
17193
17193
|
/* @__PURE__ */ h(
|
|
17194
|
-
|
|
17194
|
+
Ko,
|
|
17195
17195
|
{
|
|
17196
17196
|
id: `action-${d.credential.id}`,
|
|
17197
17197
|
"aria-label": e("updateCredAriaLabel"),
|
|
@@ -17439,7 +17439,7 @@ const j4 = () => {
|
|
|
17439
17439
|
},
|
|
17440
17440
|
u.clientId
|
|
17441
17441
|
))
|
|
17442
|
-
] }) }) : /* @__PURE__ */ h(
|
|
17442
|
+
] }) }) : /* @__PURE__ */ h(Kt, {});
|
|
17443
17443
|
};
|
|
17444
17444
|
function pm(e, t) {
|
|
17445
17445
|
for (const n of e) {
|
|
@@ -17461,7 +17461,7 @@ const z4 = () => {
|
|
|
17461
17461
|
const { environment: t } = at(), n = wm(
|
|
17462
17462
|
() => import(Sn(t.resourceUrl, e))
|
|
17463
17463
|
);
|
|
17464
|
-
return /* @__PURE__ */ h(Hd, { fallback: /* @__PURE__ */ h(
|
|
17464
|
+
return /* @__PURE__ */ h(Hd, { fallback: /* @__PURE__ */ h(Kt, {}), children: /* @__PURE__ */ h(n, {}) });
|
|
17465
17465
|
}, W4 = () => {
|
|
17466
17466
|
const { t: e } = je(), t = at(), [n, i] = me([]), [r, a] = me(!1);
|
|
17467
17467
|
Wt(
|
|
@@ -17747,7 +17747,7 @@ const E4 = ({
|
|
|
17747
17747
|
};
|
|
17748
17748
|
return /* @__PURE__ */ Z(wt, { children: [
|
|
17749
17749
|
/* @__PURE__ */ Z(ce, { variant: "link", onClick: c, children: [
|
|
17750
|
-
/* @__PURE__ */ h(
|
|
17750
|
+
/* @__PURE__ */ h(Kn, { size: "lg", children: /* @__PURE__ */ h(O1, {}) }),
|
|
17751
17751
|
/* @__PURE__ */ h(ja, { children: e.shareRequests?.length })
|
|
17752
17752
|
] }),
|
|
17753
17753
|
/* @__PURE__ */ h(
|
|
@@ -18030,7 +18030,7 @@ const E4 = ({
|
|
|
18030
18030
|
},
|
|
18031
18031
|
[a, m]
|
|
18032
18032
|
), !d)
|
|
18033
|
-
return /* @__PURE__ */ h(
|
|
18033
|
+
return /* @__PURE__ */ h(Kt, {});
|
|
18034
18034
|
const x = async (S) => {
|
|
18035
18035
|
let I = u[S]?.permissions || [];
|
|
18036
18036
|
return u[S] || (I = await mm({ context: n }, S)), I;
|
|
@@ -18325,7 +18325,7 @@ const E4 = ({
|
|
|
18325
18325
|
]
|
|
18326
18326
|
}
|
|
18327
18327
|
) });
|
|
18328
|
-
},
|
|
18328
|
+
}, X4 = () => {
|
|
18329
18329
|
const e = at(), { t } = je(), n = t("verifiableCredentialsSelectionDefault"), [i, r] = me(n), [a, s] = me(""), [l, c] = me(!1), [d, f] = me(!1), [u, p] = me();
|
|
18330
18330
|
Wt(() => C4(e), p);
|
|
18331
18331
|
const m = lt(() => typeof u < "u" ? u.credential_configurations_supported : {}, [u]), g = lt(() => typeof m < "u" ? Array.from(Object.keys(m)) : [], [m]);
|
|
@@ -18359,7 +18359,7 @@ const E4 = ({
|
|
|
18359
18359
|
description: t("verifiableCredentialsDescription"),
|
|
18360
18360
|
children: /* @__PURE__ */ h(Hi, { isFilled: !0, variant: ai.light, children: /* @__PURE__ */ Z(hu, { isPlain: !0, children: [
|
|
18361
18361
|
/* @__PURE__ */ h(oo, { children: /* @__PURE__ */ h(
|
|
18362
|
-
|
|
18362
|
+
Xn,
|
|
18363
18363
|
{
|
|
18364
18364
|
"data-testid": "credential-select",
|
|
18365
18365
|
onOpenChange: (w) => c(w),
|
|
@@ -18368,7 +18368,7 @@ const E4 = ({
|
|
|
18368
18368
|
selected: i,
|
|
18369
18369
|
toggle: x,
|
|
18370
18370
|
shouldFocusToggleOnSelect: !0,
|
|
18371
|
-
children: /* @__PURE__ */ h(
|
|
18371
|
+
children: /* @__PURE__ */ h(Ki, { children: g.map((w) => /* @__PURE__ */ h(
|
|
18372
18372
|
Wr,
|
|
18373
18373
|
{
|
|
18374
18374
|
value: w,
|
|
@@ -18403,7 +18403,7 @@ export {
|
|
|
18403
18403
|
$4 as Header,
|
|
18404
18404
|
M4 as KeycloakProvider,
|
|
18405
18405
|
V4 as LinkedAccounts,
|
|
18406
|
-
|
|
18406
|
+
X4 as Oid4Vci,
|
|
18407
18407
|
Zn as Page,
|
|
18408
18408
|
B4 as PageNav,
|
|
18409
18409
|
S4 as PermissionRequest,
|