@pantheon-systems/pds-toolkit-react 1.0.0-dev.238 → 1.0.0-dev.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/components/Icon/Icon.d.ts +13 -1
- package/_dist/css/component-css/pds-button-link.css +1 -1
- package/_dist/css/component-css/pds-flow-steps.css +1 -1
- package/_dist/css/component-css/pds-index.css +4 -4
- package/_dist/css/component-css/pds-tab-menu.css +2 -2
- package/_dist/css/pds-components.css +4 -4
- package/_dist/index.css +1 -1
- package/_dist/index.js +932 -919
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -2,38 +2,38 @@ import './index.css';var R1 = Object.defineProperty, F1 = Object.definePropertie
|
|
|
2
2
|
var P1 = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Et = Object.getOwnPropertySymbols;
|
|
4
4
|
var a1 = Object.prototype.hasOwnProperty, l1 = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
a1.call(
|
|
5
|
+
var n1 = (t, s, n) => s in t ? R1(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n, M = (t, s) => {
|
|
6
|
+
for (var n in s || (s = {}))
|
|
7
|
+
a1.call(s, n) && n1(t, n, s[n]);
|
|
8
8
|
if (Et)
|
|
9
|
-
for (var
|
|
10
|
-
l1.call(
|
|
9
|
+
for (var n of Et(s))
|
|
10
|
+
l1.call(s, n) && n1(t, n, s[n]);
|
|
11
11
|
return t;
|
|
12
|
-
}, me = (t,
|
|
13
|
-
var A = (t,
|
|
14
|
-
var
|
|
12
|
+
}, me = (t, s) => F1(t, P1(s));
|
|
13
|
+
var A = (t, s) => {
|
|
14
|
+
var n = {};
|
|
15
15
|
for (var l in t)
|
|
16
|
-
a1.call(t, l) &&
|
|
16
|
+
a1.call(t, l) && s.indexOf(l) < 0 && (n[l] = t[l]);
|
|
17
17
|
if (t != null && Et)
|
|
18
18
|
for (var l of Et(t))
|
|
19
|
-
|
|
20
|
-
return
|
|
19
|
+
s.indexOf(l) < 0 && l1.call(t, l) && (n[l] = t[l]);
|
|
20
|
+
return n;
|
|
21
21
|
};
|
|
22
|
-
var Vt = (t,
|
|
22
|
+
var Vt = (t, s, n) => new Promise((l, r) => {
|
|
23
23
|
var d = (o) => {
|
|
24
24
|
try {
|
|
25
|
-
c(
|
|
25
|
+
c(n.next(o));
|
|
26
26
|
} catch (m) {
|
|
27
27
|
r(m);
|
|
28
28
|
}
|
|
29
29
|
}, a = (o) => {
|
|
30
30
|
try {
|
|
31
|
-
c(
|
|
31
|
+
c(n.throw(o));
|
|
32
32
|
} catch (m) {
|
|
33
33
|
r(m);
|
|
34
34
|
}
|
|
35
35
|
}, c = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(d, a);
|
|
36
|
-
c((
|
|
36
|
+
c((n = n.apply(t, s)).next());
|
|
37
37
|
});
|
|
38
38
|
import e, { Children as f1, isValidElement as we, useState as U, cloneElement as Ie, createElement as B1, forwardRef as Ze, useEffect as oe, useRef as de, createContext as g1, useContext as ve, useLayoutEffect as W1, useCallback as Zt, useMemo as _1, createRef as G1, Fragment as U1 } from "react";
|
|
39
39
|
import E1 from "hash-sum";
|
|
@@ -41,37 +41,37 @@ import { useFloating as Ve, offset as kt, flip as Ht, shift as zt, autoUpdate as
|
|
|
41
41
|
import { useHotkeys as X1 } from "react-hotkeys-hook";
|
|
42
42
|
import { useFloating as Y1, flip as Q1 } from "@floating-ui/react-dom";
|
|
43
43
|
import { CodeBlock as mt } from "react-code-block";
|
|
44
|
-
import { useMultipleSelection as ut, useCombobox as
|
|
44
|
+
import { useMultipleSelection as ut, useCombobox as nt } from "downshift";
|
|
45
45
|
import { isSafari as vt } from "react-device-detect";
|
|
46
46
|
import { useMeasure as Nt } from "@reactuses/core";
|
|
47
47
|
import J1 from "focus-trap-react";
|
|
48
|
-
import { ToastContainer as e2, Slide as t2, cssTransition as
|
|
49
|
-
const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t,
|
|
48
|
+
import { ToastContainer as e2, Slide as t2, cssTransition as s2, toast as c1 } from "react-toastify";
|
|
49
|
+
const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, s) => {
|
|
50
50
|
if (!(t != null && t.childNodes))
|
|
51
51
|
return;
|
|
52
|
-
let
|
|
53
|
-
for (
|
|
54
|
-
|
|
55
|
-
return
|
|
52
|
+
let n;
|
|
53
|
+
for (s = s || [], n = 0; n < t.childNodes.length; n++)
|
|
54
|
+
s.push(t.childNodes[n]), w1(t.childNodes[n], s);
|
|
55
|
+
return s;
|
|
56
56
|
}, Fe = (t) => {
|
|
57
|
-
const
|
|
58
|
-
return f1.forEach(t, (
|
|
59
|
-
if (we(
|
|
60
|
-
const l =
|
|
61
|
-
l && (
|
|
57
|
+
const s = {};
|
|
58
|
+
return f1.forEach(t, (n) => {
|
|
59
|
+
if (we(n)) {
|
|
60
|
+
const l = n.props.slot;
|
|
61
|
+
l && (s[l] ? s[l].push(n) : s[l] = [n]);
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
64
|
-
}, x = (t) => t.join(" ").trim().replace(/\s+/g, " "),
|
|
63
|
+
}), s;
|
|
64
|
+
}, x = (t) => t.join(" ").trim().replace(/\s+/g, " "), n2 = (t) => t ? t.startsWith("data:") ? /^data:image\/(png|jpeg|jpg|gif|bmp|webp);base64,[A-Za-z0-9+/]+=*$/.test(t) : !0 : !1, P = (r) => {
|
|
65
65
|
var d = r, {
|
|
66
66
|
iconName: t,
|
|
67
|
-
iconSize:
|
|
68
|
-
className:
|
|
67
|
+
iconSize: s = "md",
|
|
68
|
+
className: n
|
|
69
69
|
} = d, l = A(d, [
|
|
70
70
|
"iconName",
|
|
71
71
|
"iconSize",
|
|
72
72
|
"className"
|
|
73
73
|
]);
|
|
74
|
-
const a = `pds-icon pds-icon--${
|
|
74
|
+
const a = `pds-icon pds-icon--${s} pds-icon--${t}`, c = `0 0 ${qt[t].width} 512`, o = {
|
|
75
75
|
sm: "0.8rem",
|
|
76
76
|
md: "1rem",
|
|
77
77
|
lg: "1.2rem",
|
|
@@ -86,12 +86,13 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
86
86
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87
87
|
role: "img",
|
|
88
88
|
viewBox: c,
|
|
89
|
-
height: o[
|
|
89
|
+
height: o[s],
|
|
90
90
|
fill: "none",
|
|
91
91
|
"aria-hidden": "true",
|
|
92
92
|
preserveAspectRatio: "xMidYMid meet",
|
|
93
93
|
focusable: "false",
|
|
94
|
-
className: [a,
|
|
94
|
+
className: [a, n != null ? n : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
95
|
+
style: { flexShrink: 0 }
|
|
95
96
|
}, l),
|
|
96
97
|
/* @__PURE__ */ e.createElement("path", { d: qt[t].path, fill: "currentColor" })
|
|
97
98
|
);
|
|
@@ -324,6 +325,10 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
324
325
|
path: "M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z",
|
|
325
326
|
width: "480"
|
|
326
327
|
},
|
|
328
|
+
desktop: {
|
|
329
|
+
path: "M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z",
|
|
330
|
+
width: "576"
|
|
331
|
+
},
|
|
327
332
|
diamondExclamation: {
|
|
328
333
|
path: "M227.7 11.7c15.6-15.6 40.9-15.6 56.6 0l216 216c15.6 15.6 15.6 40.9 0 56.6l-216 216c-15.6 15.6-40.9 15.6-56.6 0l-216-216c-15.6-15.6-15.6-40.9 0-56.6l216-216zM256 128c-13.3 0-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z",
|
|
329
334
|
width: "512"
|
|
@@ -484,6 +489,10 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
484
489
|
path: "M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224c79.5 0 144-64.5 144-144S383.5 0 304 0S160 64.5 160 144c0 28.2 8.1 54.5 22.1 76.7L9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L141.3 352l86.1-86.1c22.2 14 48.5 22.1 76.7 22.1z",
|
|
485
490
|
width: "480"
|
|
486
491
|
},
|
|
492
|
+
laptop: {
|
|
493
|
+
path: "M128 32C92.7 32 64 60.7 64 96l0 256 64 0 0-256 384 0 0 256 64 0 0-256c0-35.3-28.7-64-64-64L128 32zM19.2 384C8.6 384 0 392.6 0 403.2C0 445.6 34.4 480 76.8 480l486.4 0c42.4 0 76.8-34.4 76.8-76.8c0-10.6-8.6-19.2-19.2-19.2L19.2 384z",
|
|
494
|
+
width: "640"
|
|
495
|
+
},
|
|
487
496
|
laptopCode: {
|
|
488
497
|
path: "M64 96c0-35.3 28.7-64 64-64H512c35.3 0 64 28.7 64 64V352H512V96H128V352H64V96zM0 403.2C0 392.6 8.6 384 19.2 384H620.8c10.6 0 19.2 8.6 19.2 19.2c0 42.4-34.4 76.8-76.8 76.8H76.8C34.4 480 0 445.6 0 403.2zM281 209l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-48-48c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM393 175l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z",
|
|
489
498
|
width: "640"
|
|
@@ -508,6 +517,10 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
508
517
|
path: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L532.4 392c45.4-28.2 75.6-78.6 75.6-136c0-88.4-71.6-160-160-160H384c-17.7 0-32 14.3-32 32s14.3 32 32 32h64c53 0 96 43 96 96c0 43.3-28.6 79.8-67.9 91.8L399.7 288H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H318.1l-81.7-64H256c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-11.3 0-22.3 1.2-32.9 3.4L38.8 5.1zM121 191.4L70.7 151.7C46.6 179.7 32 216.1 32 256c0 88.4 71.6 160 160 160h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-53 0-96-43-96-96c0-24.9 9.5-47.6 25-64.6z",
|
|
509
518
|
width: "640"
|
|
510
519
|
},
|
|
520
|
+
listCheck: {
|
|
521
|
+
path: "M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z",
|
|
522
|
+
width: "512"
|
|
523
|
+
},
|
|
511
524
|
lock: {
|
|
512
525
|
path: "M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z",
|
|
513
526
|
width: "448"
|
|
@@ -756,7 +769,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
756
769
|
path: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z",
|
|
757
770
|
width: "576"
|
|
758
771
|
}
|
|
759
|
-
},
|
|
772
|
+
}, ds = Object.keys(qt), r1 = [
|
|
760
773
|
"dawn",
|
|
761
774
|
"dragonfruit",
|
|
762
775
|
"dusk",
|
|
@@ -774,13 +787,13 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
774
787
|
"twilight",
|
|
775
788
|
"winter"
|
|
776
789
|
], a2 = (t) => {
|
|
777
|
-
const
|
|
778
|
-
return r1[
|
|
790
|
+
const s = parseInt(E1(t), 16);
|
|
791
|
+
return r1[s % r1.length];
|
|
779
792
|
}, jt = (o) => {
|
|
780
793
|
var m = o, {
|
|
781
794
|
ariaLabel: t,
|
|
782
|
-
hasUserFallback:
|
|
783
|
-
imageSrc:
|
|
795
|
+
hasUserFallback: s = !1,
|
|
796
|
+
imageSrc: n,
|
|
784
797
|
linkContent: l,
|
|
785
798
|
size: r = "md",
|
|
786
799
|
uniqueId: d,
|
|
@@ -794,7 +807,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
794
807
|
"uniqueId",
|
|
795
808
|
"className"
|
|
796
809
|
]);
|
|
797
|
-
const f = "pds-avatar", p = `${f}--${r}`, u =
|
|
810
|
+
const f = "pds-avatar", p = `${f}--${r}`, u = n ? `${f}--image` : null, [b, E] = U(void 0), v = {
|
|
798
811
|
backgroundImage: d ? `var(--pds-color-gradient-avatar-${a2(d)})` : null,
|
|
799
812
|
borderRadius: "100%",
|
|
800
813
|
height: "100%",
|
|
@@ -802,16 +815,16 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
802
815
|
display: "flex",
|
|
803
816
|
alignItems: "center",
|
|
804
817
|
justifyContent: "center"
|
|
805
|
-
}, C =
|
|
818
|
+
}, C = n2(n) && !b ? /* @__PURE__ */ e.createElement(
|
|
806
819
|
"img",
|
|
807
820
|
{
|
|
808
|
-
src: `${
|
|
821
|
+
src: `${n}`,
|
|
809
822
|
className: `${f}__image`,
|
|
810
823
|
alt: "",
|
|
811
824
|
onLoad: () => E(!1),
|
|
812
825
|
onError: () => E(!0)
|
|
813
826
|
}
|
|
814
|
-
) : /* @__PURE__ */ e.createElement("span", { style: v },
|
|
827
|
+
) : /* @__PURE__ */ e.createElement("span", { style: v }, s && /* @__PURE__ */ e.createElement(P, { iconName: "user", className: `${f}__user-icon` })), h = /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, C), i = we(l) ? Ie(
|
|
815
828
|
l,
|
|
816
829
|
me(M({}, l.props), {
|
|
817
830
|
className: `${f}__content ${f}__content--link`,
|
|
@@ -829,8 +842,8 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
829
842
|
}, ft = (d) => {
|
|
830
843
|
var a = d, {
|
|
831
844
|
label: t,
|
|
832
|
-
size:
|
|
833
|
-
color:
|
|
845
|
+
size: s = "md",
|
|
846
|
+
color: n = "neutral",
|
|
834
847
|
className: l
|
|
835
848
|
} = a, r = A(a, [
|
|
836
849
|
"label",
|
|
@@ -838,7 +851,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
838
851
|
"color",
|
|
839
852
|
"className"
|
|
840
853
|
]);
|
|
841
|
-
const c = "pds-indicator-badge", o = `${c}--${
|
|
854
|
+
const c = "pds-indicator-badge", o = `${c}--${n}`, m = `${c}--${s}`;
|
|
842
855
|
return /* @__PURE__ */ e.createElement(
|
|
843
856
|
"span",
|
|
844
857
|
M({
|
|
@@ -849,8 +862,8 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
849
862
|
}, Xt = (c) => {
|
|
850
863
|
var o = c, {
|
|
851
864
|
color: t = "transparent",
|
|
852
|
-
hasStatusIndicator:
|
|
853
|
-
label:
|
|
865
|
+
hasStatusIndicator: s = !1,
|
|
866
|
+
label: n,
|
|
854
867
|
statusIndicatorText: l = "Status indicator: ",
|
|
855
868
|
statusType: r,
|
|
856
869
|
className: d
|
|
@@ -868,14 +881,14 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
868
881
|
M({
|
|
869
882
|
className: [m, f, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
870
883
|
}, a),
|
|
871
|
-
|
|
872
|
-
/* @__PURE__ */ e.createElement("span", { className: `${m}__label` },
|
|
884
|
+
s === !0 && /* @__PURE__ */ e.createElement("span", { className: [p, u].join(" ").trim() }, r && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, l, " ", r)),
|
|
885
|
+
/* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, n)
|
|
873
886
|
);
|
|
874
887
|
}, $t = (d) => {
|
|
875
888
|
var a = d, {
|
|
876
889
|
label: t,
|
|
877
|
-
type:
|
|
878
|
-
typeLabels:
|
|
890
|
+
type: s = "neutral",
|
|
891
|
+
typeLabels: n = {
|
|
879
892
|
info: "Information",
|
|
880
893
|
success: "Success",
|
|
881
894
|
warning: "Warning",
|
|
@@ -889,7 +902,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
889
902
|
"typeLabels",
|
|
890
903
|
"className"
|
|
891
904
|
]);
|
|
892
|
-
const c = "pds-tally", o = `${c}--${
|
|
905
|
+
const c = "pds-tally", o = `${c}--${s}`, m = `${n[s]}: `;
|
|
893
906
|
return /* @__PURE__ */ e.createElement(
|
|
894
907
|
"div",
|
|
895
908
|
M({
|
|
@@ -902,8 +915,8 @@ $t.displayName = "Tally";
|
|
|
902
915
|
const St = 300, l2 = 400, xe = (p) => {
|
|
903
916
|
var u = p, {
|
|
904
917
|
content: t,
|
|
905
|
-
customTrigger:
|
|
906
|
-
offsetValue:
|
|
918
|
+
customTrigger: s = null,
|
|
919
|
+
offsetValue: n = 8,
|
|
907
920
|
preferredPlacement: l = "top",
|
|
908
921
|
triggerAccessibleText: r = "Show more information",
|
|
909
922
|
triggerIcon: d = "circleInfo",
|
|
@@ -923,7 +936,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
923
936
|
"zIndex",
|
|
924
937
|
"className"
|
|
925
938
|
]);
|
|
926
|
-
const [b, E] = U(!1), L = typeof
|
|
939
|
+
const [b, E] = U(!1), L = typeof s, v = "pds-tooltip", C = x([
|
|
927
940
|
`${v}__trigger-custom`,
|
|
928
941
|
L === "string" ? `${v}__trigger-text` : null
|
|
929
942
|
]), h = x([
|
|
@@ -933,7 +946,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
933
946
|
placement: l,
|
|
934
947
|
open: b,
|
|
935
948
|
onOpenChange: E,
|
|
936
|
-
middleware: [kt(
|
|
949
|
+
middleware: [kt(n), Ht(), zt()],
|
|
937
950
|
whileElementsMounted: Re
|
|
938
951
|
}), $ = Ct(_, {
|
|
939
952
|
restMs: 300,
|
|
@@ -945,13 +958,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
945
958
|
z,
|
|
946
959
|
w
|
|
947
960
|
]);
|
|
948
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([v, m != null ? m : ""]) }, f),
|
|
961
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([v, m != null ? m : ""]) }, f), s ? /* @__PURE__ */ e.createElement(
|
|
949
962
|
"span",
|
|
950
963
|
M({
|
|
951
964
|
className: C,
|
|
952
965
|
ref: i.setReference
|
|
953
966
|
}, y()),
|
|
954
|
-
|
|
967
|
+
s
|
|
955
968
|
) : /* @__PURE__ */ e.createElement(
|
|
956
969
|
"button",
|
|
957
970
|
M({
|
|
@@ -977,11 +990,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
977
990
|
}, H()),
|
|
978
991
|
t
|
|
979
992
|
)));
|
|
980
|
-
},
|
|
993
|
+
}, ms = (c) => {
|
|
981
994
|
var o = c, {
|
|
982
995
|
numberAhead: t,
|
|
983
|
-
numberAheadDescription:
|
|
984
|
-
numberBehind:
|
|
996
|
+
numberAheadDescription: s = "commits ahead of main",
|
|
997
|
+
numberBehind: n,
|
|
985
998
|
numberBehindDescription: l = "commits behind main",
|
|
986
999
|
componentWidth: r,
|
|
987
1000
|
className: d
|
|
@@ -993,8 +1006,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
993
1006
|
"componentWidth",
|
|
994
1007
|
"className"
|
|
995
1008
|
]);
|
|
996
|
-
const m = "pds-branch-diff", f = Math.max(t,
|
|
997
|
-
let p = f > 0 ?
|
|
1009
|
+
const m = "pds-branch-diff", f = Math.max(t, n);
|
|
1010
|
+
let p = f > 0 ? n / f * 100 : 0, u = f > 0 ? t / f * 100 : 0;
|
|
998
1011
|
const b = 10;
|
|
999
1012
|
p < b ? (p = b, u = 100 - b) : u < b && (u = b, p = 100 - b);
|
|
1000
1013
|
const E = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
@@ -1007,10 +1020,10 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1007
1020
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__behind` }, /* @__PURE__ */ e.createElement(
|
|
1008
1021
|
xe,
|
|
1009
1022
|
{
|
|
1010
|
-
content: `${
|
|
1023
|
+
content: `${n} ${l}`,
|
|
1011
1024
|
preferredPlacement: "top",
|
|
1012
1025
|
className: `${m}__tooltip`,
|
|
1013
|
-
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${m}__behind-number` },
|
|
1026
|
+
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${m}__behind-number` }, n), /* @__PURE__ */ e.createElement(
|
|
1014
1027
|
"div",
|
|
1015
1028
|
{
|
|
1016
1029
|
className: `${m}__behind-line`,
|
|
@@ -1022,7 +1035,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1022
1035
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__ahead` }, /* @__PURE__ */ e.createElement(
|
|
1023
1036
|
xe,
|
|
1024
1037
|
{
|
|
1025
|
-
content: `${t} ${
|
|
1038
|
+
content: `${t} ${s}`,
|
|
1026
1039
|
preferredPlacement: "top",
|
|
1027
1040
|
className: `${m}__tooltip`,
|
|
1028
1041
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${m}__ahead-number` }, t), /* @__PURE__ */ e.createElement(
|
|
@@ -1038,8 +1051,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1038
1051
|
}, _t = (a) => {
|
|
1039
1052
|
var c = a, {
|
|
1040
1053
|
baseClass: t,
|
|
1041
|
-
children:
|
|
1042
|
-
id:
|
|
1054
|
+
children: s,
|
|
1055
|
+
id: n,
|
|
1043
1056
|
level: l,
|
|
1044
1057
|
className: r
|
|
1045
1058
|
} = c, d = A(c, [
|
|
@@ -1052,8 +1065,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1052
1065
|
const o = t ? `${t}__heading` : null;
|
|
1053
1066
|
return B1(
|
|
1054
1067
|
l,
|
|
1055
|
-
M({ className: x([o, r]), id:
|
|
1056
|
-
|
|
1068
|
+
M({ className: x([o, r]), id: n }, d),
|
|
1069
|
+
s
|
|
1057
1070
|
);
|
|
1058
1071
|
}, Yt = (t) => typeof t == "string" || typeof t == "number" ? String(t) : e.isValidElement(t) ? e.Children.toArray(t.props.children).map(Yt).join("") : "", ee = {
|
|
1059
1072
|
base: "pds-input",
|
|
@@ -1071,8 +1084,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1071
1084
|
}
|
|
1072
1085
|
), Pe = ({
|
|
1073
1086
|
id: t,
|
|
1074
|
-
label:
|
|
1075
|
-
showLabel:
|
|
1087
|
+
label: s,
|
|
1088
|
+
showLabel: n = !0,
|
|
1076
1089
|
required: l,
|
|
1077
1090
|
disabled: r,
|
|
1078
1091
|
isLegend: d,
|
|
@@ -1082,19 +1095,19 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1082
1095
|
}) => {
|
|
1083
1096
|
const m = x([
|
|
1084
1097
|
"pds-input-label",
|
|
1085
|
-
|
|
1098
|
+
n ? null : "visually-hidden",
|
|
1086
1099
|
o != null ? o : ""
|
|
1087
|
-
]), f = /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
1100
|
+
]), f = /* @__PURE__ */ e.createElement(e.Fragment, null, s, l && !r && /* @__PURE__ */ e.createElement(y1, null), c && /* @__PURE__ */ e.createElement(xe, { content: c }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(P, { iconName: "circleInfo", iconSize: "sm" }))));
|
|
1088
1101
|
return d ? /* @__PURE__ */ e.createElement("legend", { className: m, id: `${t}-legend` }, f) : a ? /* @__PURE__ */ e.createElement("span", { className: m, id: `${t}-field-label` }, f) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: m, id: `${t}-label` }, f);
|
|
1089
1102
|
}, De = ({
|
|
1090
1103
|
id: t,
|
|
1091
|
-
message:
|
|
1092
|
-
hasValidationMessage:
|
|
1104
|
+
message: s,
|
|
1105
|
+
hasValidationMessage: n,
|
|
1093
1106
|
validationMessageHasDecorators: l,
|
|
1094
1107
|
validationStatus: r,
|
|
1095
1108
|
className: d
|
|
1096
1109
|
}) => {
|
|
1097
|
-
const a = "pds-input-message", c = r &&
|
|
1110
|
+
const a = "pds-input-message", c = r && n ? `${a}--${r}` : null;
|
|
1098
1111
|
return /* @__PURE__ */ e.createElement(
|
|
1099
1112
|
"div",
|
|
1100
1113
|
{
|
|
@@ -1103,7 +1116,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1103
1116
|
role: r === "error" ? "alert" : null
|
|
1104
1117
|
},
|
|
1105
1118
|
l && r && /* @__PURE__ */ e.createElement(dt, { variant: r }),
|
|
1106
|
-
/* @__PURE__ */ e.createElement("div", { className: `${a}__text` },
|
|
1119
|
+
/* @__PURE__ */ e.createElement("div", { className: `${a}__text` }, s)
|
|
1107
1120
|
);
|
|
1108
1121
|
}, c2 = {
|
|
1109
1122
|
search: "magnifyingGlass",
|
|
@@ -1111,68 +1124,68 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1111
1124
|
success: "check",
|
|
1112
1125
|
filter: "barsFilter"
|
|
1113
1126
|
}, dt = ({ variant: t }) => {
|
|
1114
|
-
const
|
|
1115
|
-
return /* @__PURE__ */ e.createElement("div", { className: x([
|
|
1127
|
+
const s = "pds-input-decorator";
|
|
1128
|
+
return /* @__PURE__ */ e.createElement("div", { className: x([s, `${s}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
1116
1129
|
P,
|
|
1117
1130
|
{
|
|
1118
1131
|
iconName: c2[t],
|
|
1119
1132
|
iconSize: "md",
|
|
1120
|
-
className: `${
|
|
1133
|
+
className: `${s}__icon`
|
|
1121
1134
|
}
|
|
1122
1135
|
));
|
|
1123
1136
|
}, L1 = ({
|
|
1124
1137
|
inputId: t,
|
|
1125
|
-
shortcutLabel:
|
|
1138
|
+
shortcutLabel: s
|
|
1126
1139
|
}) => (X1("/", (l) => {
|
|
1127
1140
|
const r = document.getElementById(t);
|
|
1128
1141
|
r && r.focus(), l.preventDefault();
|
|
1129
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
1142
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(P, { iconName: "slashForward", iconSize: "md" }))), Qt = ({
|
|
1130
1143
|
id: t,
|
|
1131
|
-
clearLabel:
|
|
1132
|
-
handleClearInput:
|
|
1144
|
+
clearLabel: s,
|
|
1145
|
+
handleClearInput: n
|
|
1133
1146
|
}) => /* @__PURE__ */ e.createElement(
|
|
1134
1147
|
"button",
|
|
1135
1148
|
{
|
|
1136
1149
|
type: "button",
|
|
1137
1150
|
className: "pds-input-clear-button",
|
|
1138
|
-
title:
|
|
1151
|
+
title: s,
|
|
1139
1152
|
"aria-controls": t,
|
|
1140
|
-
onClick:
|
|
1153
|
+
onClick: n
|
|
1141
1154
|
},
|
|
1142
1155
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "md" })
|
|
1143
1156
|
), M1 = ({
|
|
1144
1157
|
id: t,
|
|
1145
|
-
currentLength:
|
|
1146
|
-
maxLength:
|
|
1158
|
+
currentLength: s,
|
|
1159
|
+
maxLength: n,
|
|
1147
1160
|
overLimitMessage: l = "Character limit exceeded by"
|
|
1148
1161
|
}) => {
|
|
1149
|
-
const r =
|
|
1162
|
+
const r = s > n, d = s - n, a = "pds-input-character-counter", c = r ? `${a}--overLimit` : null;
|
|
1150
1163
|
return /* @__PURE__ */ e.createElement(
|
|
1151
1164
|
"div",
|
|
1152
1165
|
{
|
|
1153
1166
|
id: `${t}__counter`,
|
|
1154
1167
|
className: x([a, c])
|
|
1155
1168
|
},
|
|
1156
|
-
n,
|
|
1157
|
-
"/",
|
|
1158
1169
|
s,
|
|
1170
|
+
"/",
|
|
1171
|
+
n,
|
|
1159
1172
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden", "aria-live": "polite" }, r && `${l} ${d}`)
|
|
1160
1173
|
);
|
|
1161
|
-
}, Jt = (
|
|
1162
|
-
var l =
|
|
1163
|
-
return /* @__PURE__ */ e.createElement("span", M({ className: "visually-hidden" },
|
|
1174
|
+
}, Jt = (n) => {
|
|
1175
|
+
var l = n, { label: t } = l, s = A(l, ["label"]);
|
|
1176
|
+
return /* @__PURE__ */ e.createElement("span", M({ className: "visually-hidden" }, s), t);
|
|
1164
1177
|
}, o1 = (t) => "options" in t, wt = Ze(
|
|
1165
1178
|
(d, r) => {
|
|
1166
|
-
var a = d, { children: t, isActive:
|
|
1167
|
-
const c = Z1(), o = "pds-input__select-option", m =
|
|
1179
|
+
var a = d, { children: t, isActive: s, className: n } = a, l = A(a, ["children", "isActive", "className"]);
|
|
1180
|
+
const c = Z1(), o = "pds-input__select-option", m = s ? `${o}--active` : null;
|
|
1168
1181
|
return /* @__PURE__ */ e.createElement(
|
|
1169
1182
|
"li",
|
|
1170
1183
|
M({
|
|
1171
1184
|
ref: r,
|
|
1172
1185
|
role: "option",
|
|
1173
1186
|
id: c,
|
|
1174
|
-
"aria-selected":
|
|
1175
|
-
className: x([o, m,
|
|
1187
|
+
"aria-selected": s,
|
|
1188
|
+
className: x([o, m, n != null ? n : ""])
|
|
1176
1189
|
}, l),
|
|
1177
1190
|
t
|
|
1178
1191
|
);
|
|
@@ -1180,8 +1193,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1180
1193
|
), xt = (c) => {
|
|
1181
1194
|
var o = c, {
|
|
1182
1195
|
colorType: t = "full-color",
|
|
1183
|
-
isInline:
|
|
1184
|
-
label:
|
|
1196
|
+
isInline: s = !1,
|
|
1197
|
+
label: n = "Loading",
|
|
1185
1198
|
showLabel: l = !1,
|
|
1186
1199
|
size: r = "md",
|
|
1187
1200
|
className: d = ""
|
|
@@ -1193,7 +1206,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1193
1206
|
"size",
|
|
1194
1207
|
"className"
|
|
1195
1208
|
]);
|
|
1196
|
-
const m = "pds-spinner", f = t !== "full-color" ? `${m}--${t}` : null, p = `${m}--${r}`, u =
|
|
1209
|
+
const m = "pds-spinner", f = t !== "full-color" ? `${m}--${t}` : null, p = `${m}--${r}`, u = s ? `${m}--inline` : null;
|
|
1197
1210
|
return /* @__PURE__ */ e.createElement(
|
|
1198
1211
|
"span",
|
|
1199
1212
|
M({
|
|
@@ -1202,14 +1215,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1202
1215
|
"aria-hidden": "true"
|
|
1203
1216
|
}, a),
|
|
1204
1217
|
/* @__PURE__ */ e.createElement("span", { className: `${m}__icon` }),
|
|
1205
|
-
l && !
|
|
1218
|
+
l && !s ? /* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, n) : /* @__PURE__ */ e.createElement(Jt, { label: n })
|
|
1206
1219
|
);
|
|
1207
1220
|
}, gt = Ze(
|
|
1208
1221
|
(L, E) => {
|
|
1209
1222
|
var v = L, {
|
|
1210
1223
|
ariaLabel: t,
|
|
1211
|
-
buttonType:
|
|
1212
|
-
disabled:
|
|
1224
|
+
buttonType: s = "button",
|
|
1225
|
+
disabled: n = !1,
|
|
1213
1226
|
displayType: l = "label-only",
|
|
1214
1227
|
iconName: r,
|
|
1215
1228
|
isFullWidth: d = !1,
|
|
@@ -1260,7 +1273,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1260
1273
|
return l == "icon-start" && r && k.unshift($), l == "icon-end" && r && k.push($), c && (k = [$], t = Yt(o)), /* @__PURE__ */ e.createElement(
|
|
1261
1274
|
"button",
|
|
1262
1275
|
M({
|
|
1263
|
-
type:
|
|
1276
|
+
type: s,
|
|
1264
1277
|
className: x([
|
|
1265
1278
|
C,
|
|
1266
1279
|
h,
|
|
@@ -1268,7 +1281,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1268
1281
|
g,
|
|
1269
1282
|
u
|
|
1270
1283
|
]),
|
|
1271
|
-
disabled:
|
|
1284
|
+
disabled: n || a,
|
|
1272
1285
|
"aria-label": t,
|
|
1273
1286
|
onClick: m,
|
|
1274
1287
|
ref: E
|
|
@@ -1280,8 +1293,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1280
1293
|
), yt = (o) => {
|
|
1281
1294
|
var m = o, {
|
|
1282
1295
|
disabled: t = !1,
|
|
1283
|
-
displayType:
|
|
1284
|
-
iconName:
|
|
1296
|
+
displayType: s = "label-only",
|
|
1297
|
+
iconName: n,
|
|
1285
1298
|
linkContent: l,
|
|
1286
1299
|
size: r = "md",
|
|
1287
1300
|
variant: d = "primary",
|
|
@@ -1302,14 +1315,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1302
1315
|
]), L = we(l) ? l.props.children : null, v = /* @__PURE__ */ e.createElement(
|
|
1303
1316
|
P,
|
|
1304
1317
|
{
|
|
1305
|
-
iconName:
|
|
1318
|
+
iconName: n,
|
|
1306
1319
|
iconSize: r,
|
|
1307
1320
|
className: `${f}__icon`,
|
|
1308
|
-
key:
|
|
1321
|
+
key: n
|
|
1309
1322
|
}
|
|
1310
1323
|
);
|
|
1311
1324
|
let C = [L];
|
|
1312
|
-
|
|
1325
|
+
s === "icon-start" && n ? C = [v, L] : s === "icon-end" && n && (C = [L, v]);
|
|
1313
1326
|
const h = we(l) ? Ie(l, {
|
|
1314
1327
|
className: E,
|
|
1315
1328
|
children: C
|
|
@@ -1324,16 +1337,16 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1324
1337
|
variant: d
|
|
1325
1338
|
}
|
|
1326
1339
|
) : /* @__PURE__ */ e.createElement("span", M({ className: x([f, a != null ? a : ""]) }, c), h);
|
|
1327
|
-
}, r2 = (t,
|
|
1328
|
-
const [
|
|
1340
|
+
}, r2 = (t, s) => {
|
|
1341
|
+
const [n, l] = U(!1), r = s == null ? void 0 : s.duration;
|
|
1329
1342
|
return oe(() => {
|
|
1330
1343
|
let a;
|
|
1331
|
-
return
|
|
1344
|
+
return n && r && (a = setTimeout(() => {
|
|
1332
1345
|
l(!1);
|
|
1333
1346
|
}, r)), () => {
|
|
1334
1347
|
a && clearTimeout(a);
|
|
1335
1348
|
};
|
|
1336
|
-
}, [
|
|
1349
|
+
}, [n, r]), [n, () => Vt(void 0, null, function* () {
|
|
1337
1350
|
if (navigator.clipboard)
|
|
1338
1351
|
try {
|
|
1339
1352
|
yield navigator.clipboard.writeText(t), l(!0);
|
|
@@ -1344,8 +1357,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1344
1357
|
(u, p) => {
|
|
1345
1358
|
var b = u, {
|
|
1346
1359
|
ariaLabel: t,
|
|
1347
|
-
buttonType:
|
|
1348
|
-
disabled:
|
|
1360
|
+
buttonType: s = "button",
|
|
1361
|
+
disabled: n = !1,
|
|
1349
1362
|
hasTooltip: l = !0,
|
|
1350
1363
|
iconName: r,
|
|
1351
1364
|
icon2Name: d = null,
|
|
@@ -1429,13 +1442,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1429
1442
|
v,
|
|
1430
1443
|
m
|
|
1431
1444
|
]),
|
|
1432
|
-
disabled:
|
|
1445
|
+
disabled: n,
|
|
1433
1446
|
onClick: z,
|
|
1434
|
-
type:
|
|
1435
|
-
title: l && !
|
|
1447
|
+
type: s,
|
|
1448
|
+
title: l && !n ? null : t,
|
|
1436
1449
|
ref: p
|
|
1437
1450
|
}, f),
|
|
1438
|
-
l && !
|
|
1451
|
+
l && !n ? /* @__PURE__ */ e.createElement(
|
|
1439
1452
|
xe,
|
|
1440
1453
|
{
|
|
1441
1454
|
content: t,
|
|
@@ -1449,8 +1462,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1449
1462
|
), o2 = (a) => {
|
|
1450
1463
|
var c = a, {
|
|
1451
1464
|
ariaLabel: t = "Copy to clipboard",
|
|
1452
|
-
clipboardText:
|
|
1453
|
-
disabled:
|
|
1465
|
+
clipboardText: s = "",
|
|
1466
|
+
disabled: n,
|
|
1454
1467
|
variant: l = "standard",
|
|
1455
1468
|
className: r
|
|
1456
1469
|
} = c, d = A(c, [
|
|
@@ -1460,14 +1473,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1460
1473
|
"variant",
|
|
1461
1474
|
"className"
|
|
1462
1475
|
]);
|
|
1463
|
-
const o = "pds-clipboard-button", [m, f] = r2(
|
|
1476
|
+
const o = "pds-clipboard-button", [m, f] = r2(s);
|
|
1464
1477
|
return /* @__PURE__ */ e.createElement(
|
|
1465
1478
|
Lt,
|
|
1466
1479
|
M({
|
|
1467
1480
|
className: x([o, r != null ? r : ""]),
|
|
1468
1481
|
ariaLabel: t,
|
|
1469
1482
|
buttonType: "button",
|
|
1470
|
-
disabled:
|
|
1483
|
+
disabled: n,
|
|
1471
1484
|
iconName: "copy",
|
|
1472
1485
|
icon2Name: "check",
|
|
1473
1486
|
onClick: f,
|
|
@@ -1478,8 +1491,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1478
1491
|
}, k1 = (d) => {
|
|
1479
1492
|
var a = d, {
|
|
1480
1493
|
ariaLabel: t = "Close",
|
|
1481
|
-
iconSize:
|
|
1482
|
-
onClick:
|
|
1494
|
+
iconSize: s = "xl",
|
|
1495
|
+
onClick: n,
|
|
1483
1496
|
className: l
|
|
1484
1497
|
} = a, r = A(a, [
|
|
1485
1498
|
"ariaLabel",
|
|
@@ -1491,34 +1504,34 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1491
1504
|
"button",
|
|
1492
1505
|
M({
|
|
1493
1506
|
"aria-label": t,
|
|
1494
|
-
onClick:
|
|
1507
|
+
onClick: n,
|
|
1495
1508
|
type: "button",
|
|
1496
1509
|
className: x(["pds-close-button", l != null ? l : ""])
|
|
1497
1510
|
}, r),
|
|
1498
|
-
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize:
|
|
1511
|
+
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: s })
|
|
1499
1512
|
);
|
|
1500
1513
|
}, H1 = () => {
|
|
1501
|
-
const t = typeof window != "undefined", [
|
|
1514
|
+
const t = typeof window != "undefined", [s, n] = U(
|
|
1502
1515
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1503
1516
|
);
|
|
1504
1517
|
return oe(() => {
|
|
1505
1518
|
if (!t) return;
|
|
1506
|
-
|
|
1519
|
+
n(window.innerWidth);
|
|
1507
1520
|
const l = () => {
|
|
1508
|
-
|
|
1521
|
+
n(window.innerWidth);
|
|
1509
1522
|
};
|
|
1510
1523
|
return window.addEventListener("resize", l), () => {
|
|
1511
1524
|
window.removeEventListener("resize", l);
|
|
1512
1525
|
};
|
|
1513
|
-
}, []),
|
|
1526
|
+
}, []), s;
|
|
1514
1527
|
}, ye = g1(null), i2 = ({
|
|
1515
1528
|
children: t,
|
|
1516
|
-
mobileMenuMaxWidth:
|
|
1529
|
+
mobileMenuMaxWidth: s = 640
|
|
1517
1530
|
}) => {
|
|
1518
|
-
const
|
|
1531
|
+
const n = H1(), l = n <= s, r = {
|
|
1519
1532
|
isMobile: l,
|
|
1520
|
-
mobileMenuMaxWidth:
|
|
1521
|
-
windowWidth:
|
|
1533
|
+
mobileMenuMaxWidth: s,
|
|
1534
|
+
windowWidth: n
|
|
1522
1535
|
};
|
|
1523
1536
|
return oe(() => {
|
|
1524
1537
|
l ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
@@ -1526,8 +1539,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1526
1539
|
}, Tt = (t) => t.isSeparator, At = (t) => t.isHeading, Dt = (t) => t.isLink, d2 = (t) => t.isNode, m2 = (v) => {
|
|
1527
1540
|
var C = v, {
|
|
1528
1541
|
disabled: t,
|
|
1529
|
-
displayType:
|
|
1530
|
-
iconName:
|
|
1542
|
+
displayType: s = "icon-end",
|
|
1543
|
+
iconName: n = "ellipsisVertical",
|
|
1531
1544
|
id: l,
|
|
1532
1545
|
isSplitButton: r = !1,
|
|
1533
1546
|
label: d,
|
|
@@ -1573,7 +1586,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1573
1586
|
let y = !1;
|
|
1574
1587
|
const H = ve(ye);
|
|
1575
1588
|
H && (y = H.isMobile);
|
|
1576
|
-
const N = u === "navbar" && y, V = "pds-menu-button", I = N ? `${V}--isMobile` : null, D = b ? `${V}--navbar` : null, S = l, [T] = U(`menu-button-${l}`), W = w.floating, Z = de(null), [K,
|
|
1589
|
+
const N = u === "navbar" && y, V = "pds-menu-button", I = N ? `${V}--isMobile` : null, D = b ? `${V}--navbar` : null, S = l, [T] = U(`menu-button-${l}`), W = w.floating, Z = de(null), [K, se] = U(!1), [Y, j] = U(!1), [q, O] = U(""), [Q, X] = U(0), F = de([]), B = de([]), J = de([]);
|
|
1577
1590
|
W1(() => {
|
|
1578
1591
|
window.addEventListener("mousedown", ze, !0), k();
|
|
1579
1592
|
const R = W.current;
|
|
@@ -1583,21 +1596,21 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1583
1596
|
window.removeEventListener("mousedown", ze, !0);
|
|
1584
1597
|
};
|
|
1585
1598
|
}, [K, z]);
|
|
1586
|
-
const te = (R,
|
|
1587
|
-
O(R), X(
|
|
1599
|
+
const te = (R, ne) => {
|
|
1600
|
+
O(R), X(ne);
|
|
1588
1601
|
}, fe = () => {
|
|
1589
|
-
|
|
1602
|
+
se(!0), j(!0);
|
|
1590
1603
|
}, ie = () => {
|
|
1591
|
-
|
|
1604
|
+
se(!1), te(void 0, -1), Z.current.querySelector(`#${S}`).focus();
|
|
1592
1605
|
}, be = (R) => {
|
|
1593
1606
|
R = R.toLowerCase();
|
|
1594
|
-
let
|
|
1607
|
+
let ne = !1;
|
|
1595
1608
|
for (let G = Q + 1; G < J.current.length; G++)
|
|
1596
1609
|
if (J.current[G].label.toLowerCase().startsWith(R)) {
|
|
1597
|
-
te(B.current[G], G),
|
|
1610
|
+
te(B.current[G], G), ne = !0;
|
|
1598
1611
|
break;
|
|
1599
1612
|
}
|
|
1600
|
-
if (
|
|
1613
|
+
if (ne === !1) {
|
|
1601
1614
|
for (let G = 0; G < Q; G++)
|
|
1602
1615
|
if (J.current[G].label.toLowerCase().startsWith(R)) {
|
|
1603
1616
|
te(B.current[G], G);
|
|
@@ -1605,7 +1618,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1605
1618
|
}
|
|
1606
1619
|
}
|
|
1607
1620
|
}, $e = (R) => {
|
|
1608
|
-
const
|
|
1621
|
+
const ne = B.current.indexOf(R), G = J.current[ne];
|
|
1609
1622
|
if (G.callback && !G.disabled && G.callback(G), G.linkContent && !G.disabled) {
|
|
1610
1623
|
const ae = Z.current.querySelector(`#${R} a`);
|
|
1611
1624
|
ae && ae.click();
|
|
@@ -1614,13 +1627,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1614
1627
|
const R = B.current[Q];
|
|
1615
1628
|
$e(R);
|
|
1616
1629
|
}, le = (R) => {
|
|
1617
|
-
K ? ie() : fe(), o && o(), j((
|
|
1630
|
+
K ? ie() : fe(), o && o(), j((ne) => !ne), R.stopPropagation(), R.preventDefault();
|
|
1618
1631
|
}, ge = (R) => {
|
|
1619
1632
|
$e(R.currentTarget.id), N || ie();
|
|
1620
1633
|
}, Oe = (R) => {
|
|
1621
|
-
const
|
|
1634
|
+
const ne = R.key;
|
|
1622
1635
|
let G = !1;
|
|
1623
|
-
switch (
|
|
1636
|
+
switch (ne) {
|
|
1624
1637
|
case " ":
|
|
1625
1638
|
case "Enter":
|
|
1626
1639
|
case "ArrowDown":
|
|
@@ -1640,16 +1653,16 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1640
1653
|
}
|
|
1641
1654
|
G && (R.stopPropagation(), R.preventDefault());
|
|
1642
1655
|
}, qe = (R) => {
|
|
1643
|
-
const
|
|
1656
|
+
const ne = R.key;
|
|
1644
1657
|
let G = !1, ae = "", re = 0;
|
|
1645
1658
|
function ue(pe) {
|
|
1646
1659
|
return pe.length === 1 && pe.match(/\S/);
|
|
1647
1660
|
}
|
|
1648
1661
|
if (!(R.ctrlKey || R.altKey || R.metaKey)) {
|
|
1649
1662
|
if (R.shiftKey)
|
|
1650
|
-
ue(
|
|
1663
|
+
ue(ne) && (be(ne), G = !0), R.key === "Tab" && (ie(), G = !0);
|
|
1651
1664
|
else
|
|
1652
|
-
switch (
|
|
1665
|
+
switch (ne) {
|
|
1653
1666
|
case " ":
|
|
1654
1667
|
case "Enter":
|
|
1655
1668
|
ie(), ce(), G = !0;
|
|
@@ -1680,15 +1693,15 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1680
1693
|
ie();
|
|
1681
1694
|
break;
|
|
1682
1695
|
default:
|
|
1683
|
-
ue(
|
|
1696
|
+
ue(ne) && (be(ne), G = !0);
|
|
1684
1697
|
break;
|
|
1685
1698
|
}
|
|
1686
1699
|
G && (R.stopPropagation(), R.preventDefault());
|
|
1687
1700
|
}
|
|
1688
1701
|
}, ze = (R) => {
|
|
1689
1702
|
Z.current && !Z.current.contains(R.target) && K && ie();
|
|
1690
|
-
}, Ne = (R,
|
|
1691
|
-
const ue = G ? `-group-${G}` : "", pe = S + ue + "-item-" + (
|
|
1703
|
+
}, Ne = (R, ne, G = "", ae = "", ...re) => {
|
|
1704
|
+
const ue = G ? `-group-${G}` : "", pe = S + ue + "-item-" + (ne + 1), he = R.id ? R.id : pe;
|
|
1692
1705
|
if (Tt(R))
|
|
1693
1706
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: he });
|
|
1694
1707
|
if (At(R))
|
|
@@ -1706,8 +1719,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1706
1719
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: he }, R.nodeContent);
|
|
1707
1720
|
if (Dt(R) || R.label) {
|
|
1708
1721
|
B.current.push(he), J.current.push(R);
|
|
1709
|
-
let
|
|
1710
|
-
q !== "" && !R.disabled && (
|
|
1722
|
+
let st = !1;
|
|
1723
|
+
q !== "" && !R.disabled && (st = q === he);
|
|
1711
1724
|
let ke;
|
|
1712
1725
|
if (R.label && (ke = [R.label]), Dt(R) && (ke = [R.linkContent.props.children]), R.iconName) {
|
|
1713
1726
|
const Ge = /* @__PURE__ */ e.createElement(
|
|
@@ -1734,7 +1747,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1734
1747
|
id: he,
|
|
1735
1748
|
key: he,
|
|
1736
1749
|
"data-testid": R.testId,
|
|
1737
|
-
className:
|
|
1750
|
+
className: st ? `${V}__item-focused` : null,
|
|
1738
1751
|
role: "menuitem",
|
|
1739
1752
|
tabIndex: -1,
|
|
1740
1753
|
onClick: ge,
|
|
@@ -1743,19 +1756,19 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1743
1756
|
We
|
|
1744
1757
|
);
|
|
1745
1758
|
}
|
|
1746
|
-
}, et = (R,
|
|
1759
|
+
}, et = (R, ne) => {
|
|
1747
1760
|
const G = [];
|
|
1748
|
-
let ae =
|
|
1761
|
+
let ae = ne.shift(), re = [];
|
|
1749
1762
|
return R.map((ue, pe) => {
|
|
1750
|
-
ue !== ae ? (re.push(ue), pe + 1 === R.length && G.push(re)) : (G.push(re), re = [], re.push(ue), ae =
|
|
1763
|
+
ue !== ae ? (re.push(ue), pe + 1 === R.length && G.push(re)) : (G.push(re), re = [], re.push(ue), ae = ne.shift());
|
|
1751
1764
|
}), G.filter((ue) => ue.length > 0);
|
|
1752
1765
|
}, tt = (R) => {
|
|
1753
1766
|
B.current = [], J.current = [];
|
|
1754
|
-
const
|
|
1767
|
+
const ne = R, G = R.filter(
|
|
1755
1768
|
At || Tt
|
|
1756
1769
|
), ae = G.length > 0;
|
|
1757
1770
|
let re = [`${V}__listbox`];
|
|
1758
|
-
if (b && re.push(`${V}__listbox--navbar`), c === "end" && re.push(`${V}__listbox--end`),
|
|
1771
|
+
if (b && re.push(`${V}__listbox--navbar`), c === "end" && re.push(`${V}__listbox--end`), s === "icon-only" && re.push(`${V}__listbox--icon-only`), re = x(re), ae) {
|
|
1759
1772
|
const ue = et(R, G);
|
|
1760
1773
|
ue.forEach(() => {
|
|
1761
1774
|
F.current.push(lt());
|
|
@@ -1763,7 +1776,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1763
1776
|
let pe = F.current[0];
|
|
1764
1777
|
const he = ue[0].findIndex(
|
|
1765
1778
|
(ke) => !Tt(ke) && !At(ke)
|
|
1766
|
-
),
|
|
1779
|
+
), st = `${S}-group-${pe}-item-${he + 1}`;
|
|
1767
1780
|
return /* @__PURE__ */ e.createElement(
|
|
1768
1781
|
"div",
|
|
1769
1782
|
{
|
|
@@ -1772,7 +1785,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1772
1785
|
role: "menu",
|
|
1773
1786
|
tabIndex: -1,
|
|
1774
1787
|
"aria-labelledby": S,
|
|
1775
|
-
"aria-activedescendant": q !== "" ? q :
|
|
1788
|
+
"aria-activedescendant": q !== "" ? q : st,
|
|
1776
1789
|
style: {
|
|
1777
1790
|
visibility: K ? "visible" : "hidden",
|
|
1778
1791
|
opacity: K ? "1" : "0",
|
|
@@ -1825,12 +1838,12 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1825
1838
|
onKeyDown: qe,
|
|
1826
1839
|
ref: _
|
|
1827
1840
|
},
|
|
1828
|
-
|
|
1841
|
+
ne.map((pe, he) => Ne(pe, he))
|
|
1829
1842
|
));
|
|
1830
1843
|
}
|
|
1831
1844
|
};
|
|
1832
1845
|
let Be;
|
|
1833
|
-
if (
|
|
1846
|
+
if (s === "icon-end" && (Be = /* @__PURE__ */ e.createElement(
|
|
1834
1847
|
gt,
|
|
1835
1848
|
{
|
|
1836
1849
|
id: S,
|
|
@@ -1838,7 +1851,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1838
1851
|
label: d,
|
|
1839
1852
|
size: m,
|
|
1840
1853
|
variant: u,
|
|
1841
|
-
displayType:
|
|
1854
|
+
displayType: s,
|
|
1842
1855
|
iconName: "angleDown",
|
|
1843
1856
|
type: "button",
|
|
1844
1857
|
disabled: t,
|
|
@@ -1850,7 +1863,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1850
1863
|
onKeyDown: Oe,
|
|
1851
1864
|
ref: g
|
|
1852
1865
|
}
|
|
1853
|
-
)),
|
|
1866
|
+
)), s === "icon-only") {
|
|
1854
1867
|
const R = Yt(d);
|
|
1855
1868
|
Be = /* @__PURE__ */ e.createElement(
|
|
1856
1869
|
Lt,
|
|
@@ -1859,7 +1872,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1859
1872
|
ariaLabel: R,
|
|
1860
1873
|
size: m,
|
|
1861
1874
|
variant: "standard",
|
|
1862
|
-
iconName:
|
|
1875
|
+
iconName: n,
|
|
1863
1876
|
type: "button",
|
|
1864
1877
|
disabled: t,
|
|
1865
1878
|
className: `${V}__trigger ${V}__trigger--icon-only`,
|
|
@@ -1874,14 +1887,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1874
1887
|
);
|
|
1875
1888
|
}
|
|
1876
1889
|
const ct = (R) => {
|
|
1877
|
-
const
|
|
1878
|
-
|
|
1890
|
+
const ne = R.target;
|
|
1891
|
+
ne.classList.toggle(`${V}__toggle--expanded`), ne.setAttribute(
|
|
1879
1892
|
"aria-expanded",
|
|
1880
|
-
|
|
1881
|
-
),
|
|
1882
|
-
}, rt = () => /* @__PURE__ */ e.createElement("ul", { className: `${V}__mobile-menu`, role: "menu" }, a.map((R,
|
|
1893
|
+
ne.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1894
|
+
), ne.nextElementSibling.classList.toggle(`${V}__mobile-menu--expanded`);
|
|
1895
|
+
}, rt = () => /* @__PURE__ */ e.createElement("ul", { className: `${V}__mobile-menu`, role: "menu" }, a.map((R, ne) => Ne(R, ne)));
|
|
1883
1896
|
let Ce;
|
|
1884
|
-
const Le =
|
|
1897
|
+
const Le = s === "icon-end" ? "pds-button pds-button--navbar" : null, _e = x([
|
|
1885
1898
|
`${V}__toggle`,
|
|
1886
1899
|
Le
|
|
1887
1900
|
]);
|
|
@@ -1895,13 +1908,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1895
1908
|
"aria-expanded": !1,
|
|
1896
1909
|
onClick: ct
|
|
1897
1910
|
},
|
|
1898
|
-
|
|
1911
|
+
s === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(P, { iconName: n }), " ", d) : d,
|
|
1899
1912
|
/* @__PURE__ */ e.createElement(
|
|
1900
1913
|
P,
|
|
1901
1914
|
{
|
|
1902
1915
|
iconName: "angleDown",
|
|
1903
1916
|
iconSize: "md",
|
|
1904
|
-
className: `${V}__toggle-icon ${V}__toggle-icon--${
|
|
1917
|
+
className: `${V}__toggle-icon ${V}__toggle-icon--${s}`
|
|
1905
1918
|
}
|
|
1906
1919
|
)
|
|
1907
1920
|
));
|
|
@@ -1921,11 +1934,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1921
1934
|
}, L),
|
|
1922
1935
|
N ? /* @__PURE__ */ e.createElement(e.Fragment, null, He, /* @__PURE__ */ e.createElement(rt, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Be, tt(a))
|
|
1923
1936
|
);
|
|
1924
|
-
},
|
|
1937
|
+
}, us = (f) => {
|
|
1925
1938
|
var p = f, {
|
|
1926
1939
|
disabled: t = !1,
|
|
1927
|
-
id:
|
|
1928
|
-
defaultValue:
|
|
1940
|
+
id: s,
|
|
1941
|
+
defaultValue: n,
|
|
1929
1942
|
label: l,
|
|
1930
1943
|
onChange: r,
|
|
1931
1944
|
options: d,
|
|
@@ -1943,8 +1956,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1943
1956
|
"value",
|
|
1944
1957
|
"className"
|
|
1945
1958
|
]);
|
|
1946
|
-
const u = "pds-segmented-button", b = t ? "pds-is-disabled" : null, E = a !== "md" ? `${u}--${a}` : null, L = typeof c != "undefined", v = typeof
|
|
1947
|
-
v ?
|
|
1959
|
+
const u = "pds-segmented-button", b = t ? "pds-is-disabled" : null, E = a !== "md" ? `${u}--${a}` : null, L = typeof c != "undefined", v = typeof n != "undefined", [C, h] = U(
|
|
1960
|
+
v ? n : ""
|
|
1948
1961
|
), i = (g) => {
|
|
1949
1962
|
h(g.target.value), r && r(g.target.value);
|
|
1950
1963
|
};
|
|
@@ -1966,22 +1979,22 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1966
1979
|
"div",
|
|
1967
1980
|
{
|
|
1968
1981
|
className: x([k, z]),
|
|
1969
|
-
key: `${
|
|
1982
|
+
key: `${s}-option-${_}`
|
|
1970
1983
|
},
|
|
1971
1984
|
/* @__PURE__ */ e.createElement(
|
|
1972
1985
|
"input",
|
|
1973
1986
|
{
|
|
1974
1987
|
className: "visually-hidden",
|
|
1975
1988
|
type: "radio",
|
|
1976
|
-
id: g.id ? g.id : `${
|
|
1977
|
-
name:
|
|
1989
|
+
id: g.id ? g.id : `${s}-option-${_}`,
|
|
1990
|
+
name: s,
|
|
1978
1991
|
value: g.value,
|
|
1979
1992
|
disabled: t || g.disabled,
|
|
1980
1993
|
onChange: i,
|
|
1981
1994
|
checked: $
|
|
1982
1995
|
}
|
|
1983
1996
|
),
|
|
1984
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: g.id ? g.id : `${
|
|
1997
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: g.id ? g.id : `${s}-option-${_}` }, g.tally ? /* @__PURE__ */ e.createElement(
|
|
1985
1998
|
$t,
|
|
1986
1999
|
{
|
|
1987
2000
|
label: g.tally.label,
|
|
@@ -2002,8 +2015,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2002
2015
|
}, u2 = (c) => {
|
|
2003
2016
|
var o = c, {
|
|
2004
2017
|
actionItems: t,
|
|
2005
|
-
disabled:
|
|
2006
|
-
moreActionsLabel:
|
|
2018
|
+
disabled: s,
|
|
2019
|
+
moreActionsLabel: n = "More actions",
|
|
2007
2020
|
size: l = "md",
|
|
2008
2021
|
variant: r = "primary",
|
|
2009
2022
|
className: d
|
|
@@ -2024,7 +2037,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2024
2037
|
size: l,
|
|
2025
2038
|
variant: r,
|
|
2026
2039
|
displayType: "label-only",
|
|
2027
|
-
disabled:
|
|
2040
|
+
disabled: s,
|
|
2028
2041
|
linkContent: p.linkContent
|
|
2029
2042
|
}
|
|
2030
2043
|
) : "label" in p && (b = /* @__PURE__ */ e.createElement(
|
|
@@ -2034,7 +2047,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2034
2047
|
label: p.label,
|
|
2035
2048
|
size: l,
|
|
2036
2049
|
variant: r,
|
|
2037
|
-
disabled:
|
|
2050
|
+
disabled: s,
|
|
2038
2051
|
onClick: () => p.callback()
|
|
2039
2052
|
}
|
|
2040
2053
|
)), /* @__PURE__ */ e.createElement(
|
|
@@ -2047,24 +2060,24 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2047
2060
|
m2,
|
|
2048
2061
|
{
|
|
2049
2062
|
className: `${m}__menu-button`,
|
|
2050
|
-
label:
|
|
2063
|
+
label: n,
|
|
2051
2064
|
size: l,
|
|
2052
2065
|
variant: r,
|
|
2053
2066
|
menuItems: u,
|
|
2054
2067
|
displayType: "icon-end",
|
|
2055
2068
|
isSplitButton: !0,
|
|
2056
|
-
disabled:
|
|
2069
|
+
disabled: s,
|
|
2057
2070
|
id: null,
|
|
2058
2071
|
testId: null,
|
|
2059
2072
|
withinNavbar: !1
|
|
2060
2073
|
}
|
|
2061
2074
|
)
|
|
2062
2075
|
);
|
|
2063
|
-
},
|
|
2076
|
+
}, ps = (f) => {
|
|
2064
2077
|
var p = f, {
|
|
2065
2078
|
buttonProps: t,
|
|
2066
|
-
disabled:
|
|
2067
|
-
iconName:
|
|
2079
|
+
disabled: s = !1,
|
|
2080
|
+
iconName: n,
|
|
2068
2081
|
isCritical: l = !1,
|
|
2069
2082
|
isMonospace: r = !1,
|
|
2070
2083
|
label: d,
|
|
@@ -2082,15 +2095,15 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2082
2095
|
"tooltipText",
|
|
2083
2096
|
"className"
|
|
2084
2097
|
]);
|
|
2085
|
-
const u = "pds-utility-button", b = l ? `${u}--critical` : null, E =
|
|
2098
|
+
const u = "pds-utility-button", b = l ? `${u}--critical` : null, E = s ? `${u}--disabled` : null, L = r ? `${u}--monospace` : null, v = /* @__PURE__ */ e.createElement(
|
|
2086
2099
|
"button",
|
|
2087
2100
|
M({
|
|
2088
2101
|
className: `${u}__button`,
|
|
2089
|
-
"aria-disabled":
|
|
2090
|
-
onClick:
|
|
2102
|
+
"aria-disabled": s ? "true" : void 0,
|
|
2103
|
+
onClick: s ? void 0 : a,
|
|
2091
2104
|
type: "button"
|
|
2092
2105
|
}, t),
|
|
2093
|
-
|
|
2106
|
+
n && /* @__PURE__ */ e.createElement(P, { iconName: n }),
|
|
2094
2107
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__label` }, d)
|
|
2095
2108
|
);
|
|
2096
2109
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2114,11 +2127,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2114
2127
|
discovery: "squareQuestion",
|
|
2115
2128
|
code: "squareTerminal",
|
|
2116
2129
|
earlyAccess: "leaf"
|
|
2117
|
-
},
|
|
2130
|
+
}, hs = (a) => {
|
|
2118
2131
|
var c = a, {
|
|
2119
2132
|
children: t,
|
|
2120
|
-
title:
|
|
2121
|
-
type:
|
|
2133
|
+
title: s,
|
|
2134
|
+
type: n = "info",
|
|
2122
2135
|
typeLabels: l = {
|
|
2123
2136
|
info: "Information",
|
|
2124
2137
|
success: "Success",
|
|
@@ -2136,25 +2149,25 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2136
2149
|
"typeLabels",
|
|
2137
2150
|
"className"
|
|
2138
2151
|
]);
|
|
2139
|
-
const o = "pds-callout", m = `${o}--${
|
|
2152
|
+
const o = "pds-callout", m = `${o}--${n}`, f = `${l[n]}: `;
|
|
2140
2153
|
return /* @__PURE__ */ e.createElement(
|
|
2141
2154
|
"div",
|
|
2142
2155
|
M({
|
|
2143
2156
|
className: [o, m, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
2144
2157
|
}, d),
|
|
2145
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--${
|
|
2158
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--${n}` }, /* @__PURE__ */ e.createElement(
|
|
2146
2159
|
P,
|
|
2147
2160
|
{
|
|
2148
|
-
iconName: `${
|
|
2161
|
+
iconName: `${n}` in Ot ? Ot[n] : Ot.info,
|
|
2149
2162
|
iconSize: "xl"
|
|
2150
2163
|
}
|
|
2151
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f),
|
|
2164
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f), s && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, s), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__main-content` }, t)))
|
|
2152
2165
|
);
|
|
2153
2166
|
}, e1 = (d) => {
|
|
2154
2167
|
var a = d, {
|
|
2155
2168
|
background: t = "default",
|
|
2156
|
-
children:
|
|
2157
|
-
padding:
|
|
2169
|
+
children: s,
|
|
2170
|
+
padding: n = "standard",
|
|
2158
2171
|
className: l
|
|
2159
2172
|
} = a, r = A(a, [
|
|
2160
2173
|
"background",
|
|
@@ -2162,7 +2175,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2162
2175
|
"padding",
|
|
2163
2176
|
"className"
|
|
2164
2177
|
]);
|
|
2165
|
-
const c = "pds-card", o = t !== "default" ? `${c}--${t}` : null, m =
|
|
2178
|
+
const c = "pds-card", o = t !== "default" ? `${c}--${t}` : null, m = n !== "standard" ? `${c}--pad-${n}` : null, f = Fe(s), p = f.image, u = f.main;
|
|
2166
2179
|
return /* @__PURE__ */ e.createElement(
|
|
2167
2180
|
"div",
|
|
2168
2181
|
M({
|
|
@@ -2179,8 +2192,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2179
2192
|
}, z1 = (a) => {
|
|
2180
2193
|
var c = a, {
|
|
2181
2194
|
fontSize: t = "XL",
|
|
2182
|
-
fontWeight:
|
|
2183
|
-
level:
|
|
2195
|
+
fontWeight: s = "bold",
|
|
2196
|
+
level: n = "h2",
|
|
2184
2197
|
text: l,
|
|
2185
2198
|
className: r
|
|
2186
2199
|
} = c, d = A(c, [
|
|
@@ -2190,7 +2203,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2190
2203
|
"text",
|
|
2191
2204
|
"className"
|
|
2192
2205
|
]);
|
|
2193
|
-
const o = "pds-card-heading", m = t === "XL" ? "pds-ts-xl" : "pds-ts-l", f =
|
|
2206
|
+
const o = "pds-card-heading", m = t === "XL" ? "pds-ts-xl" : "pds-ts-l", f = s === "bold" ? "pds-fw-bold" : "pds-fw-semibold";
|
|
2194
2207
|
return /* @__PURE__ */ e.createElement(
|
|
2195
2208
|
_t,
|
|
2196
2209
|
M({
|
|
@@ -2200,15 +2213,15 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2200
2213
|
f,
|
|
2201
2214
|
r != null ? r : ""
|
|
2202
2215
|
]),
|
|
2203
|
-
level:
|
|
2216
|
+
level: n
|
|
2204
2217
|
}, d),
|
|
2205
2218
|
l
|
|
2206
2219
|
);
|
|
2207
|
-
},
|
|
2220
|
+
}, fs = (m) => {
|
|
2208
2221
|
var f = m, {
|
|
2209
2222
|
id: t,
|
|
2210
|
-
defaultValue:
|
|
2211
|
-
label:
|
|
2223
|
+
defaultValue: s,
|
|
2224
|
+
label: n,
|
|
2212
2225
|
labelDisplay: l = "left",
|
|
2213
2226
|
layout: r = "auto",
|
|
2214
2227
|
onChange: d,
|
|
@@ -2227,7 +2240,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2227
2240
|
const p = "pds-card-select-group";
|
|
2228
2241
|
let u = `${p}__legend`;
|
|
2229
2242
|
l === "center" && (u = `${p}__legend ${p}__legend--center`), l === "hidden" && (u = `${p}__legend visually-hidden`);
|
|
2230
|
-
const [b, E] = U(
|
|
2243
|
+
const [b, E] = U(s), L = (_) => {
|
|
2231
2244
|
E(_.currentTarget.value), d && d(_.currentTarget.value);
|
|
2232
2245
|
}, v = a.length, C = "pds-grid-item", h = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", i = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2233
2246
|
let g = "";
|
|
@@ -2237,7 +2250,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2237
2250
|
className: [p, c].join(" ").trim().replace(/\s+/g, " "),
|
|
2238
2251
|
id: t
|
|
2239
2252
|
}, o),
|
|
2240
|
-
/* @__PURE__ */ e.createElement("legend", { className: u },
|
|
2253
|
+
/* @__PURE__ */ e.createElement("legend", { className: u }, n),
|
|
2241
2254
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__options pds-grid pds-grid--narrow` }, a.map((_, $) => /* @__PURE__ */ e.createElement(
|
|
2242
2255
|
"div",
|
|
2243
2256
|
{
|
|
@@ -2273,11 +2286,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2273
2286
|
)
|
|
2274
2287
|
)))
|
|
2275
2288
|
);
|
|
2276
|
-
},
|
|
2289
|
+
}, gs = (d) => {
|
|
2277
2290
|
var a = d, {
|
|
2278
2291
|
linkItems: t,
|
|
2279
|
-
headingLevel:
|
|
2280
|
-
headingText:
|
|
2292
|
+
headingLevel: s = "h3",
|
|
2293
|
+
headingText: n,
|
|
2281
2294
|
className: l
|
|
2282
2295
|
} = a, r = A(a, [
|
|
2283
2296
|
"linkItems",
|
|
@@ -2285,22 +2298,22 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2285
2298
|
"headingText",
|
|
2286
2299
|
"className"
|
|
2287
2300
|
]);
|
|
2288
|
-
const c = "pds-links-card", o = /* @__PURE__ */ e.createElement(e1, null, /* @__PURE__ */ e.createElement("div", { slot: "main" },
|
|
2301
|
+
const c = "pds-links-card", o = /* @__PURE__ */ e.createElement(e1, null, /* @__PURE__ */ e.createElement("div", { slot: "main" }, n && /* @__PURE__ */ e.createElement(
|
|
2289
2302
|
z1,
|
|
2290
2303
|
{
|
|
2291
2304
|
className: `${c}__heading`,
|
|
2292
2305
|
fontSize: "XL",
|
|
2293
2306
|
fontWeight: "bold",
|
|
2294
|
-
level:
|
|
2295
|
-
text:
|
|
2307
|
+
level: s,
|
|
2308
|
+
text: n
|
|
2296
2309
|
}
|
|
2297
2310
|
), t && /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" }, t.map((m, f) => /* @__PURE__ */ e.createElement("li", { key: f, className: "pds-cta-links-card__item" }, m)))));
|
|
2298
2311
|
return /* @__PURE__ */ e.createElement("div", M({ className: x([c, l != null ? l : ""]) }, r), o);
|
|
2299
2312
|
}, p2 = (l) => {
|
|
2300
2313
|
var r = l, {
|
|
2301
2314
|
platformType: t,
|
|
2302
|
-
className:
|
|
2303
|
-
} = r,
|
|
2315
|
+
className: s
|
|
2316
|
+
} = r, n = A(r, [
|
|
2304
2317
|
"platformType",
|
|
2305
2318
|
"className"
|
|
2306
2319
|
]);
|
|
@@ -2328,8 +2341,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2328
2341
|
return /* @__PURE__ */ e.createElement(
|
|
2329
2342
|
"div",
|
|
2330
2343
|
M({
|
|
2331
|
-
className: x([d, a,
|
|
2332
|
-
},
|
|
2344
|
+
className: x([d, a, s])
|
|
2345
|
+
}, n),
|
|
2333
2346
|
c
|
|
2334
2347
|
);
|
|
2335
2348
|
}, Rt = {
|
|
@@ -2578,11 +2591,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2578
2591
|
)
|
|
2579
2592
|
}, i1 = {
|
|
2580
2593
|
"early-access": { label: "Early Access", color: "success" }
|
|
2581
|
-
},
|
|
2594
|
+
}, _s = (f) => {
|
|
2582
2595
|
var p = f, {
|
|
2583
2596
|
badge: t,
|
|
2584
|
-
icon:
|
|
2585
|
-
newWindowString:
|
|
2597
|
+
icon: s,
|
|
2598
|
+
newWindowString: n = "Opens new window",
|
|
2586
2599
|
title: l,
|
|
2587
2600
|
subtitle: r,
|
|
2588
2601
|
summary: d,
|
|
@@ -2606,7 +2619,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2606
2619
|
"aria-label": a.props.children,
|
|
2607
2620
|
className: `${u}__selection-link`
|
|
2608
2621
|
}, a.props),
|
|
2609
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` },
|
|
2622
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, s && /* @__PURE__ */ e.createElement("div", { className: `${u}__icon` }, /* @__PURE__ */ e.createElement(p2, { platformType: s })), /* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, l, r && /* @__PURE__ */ e.createElement("div", { className: `${u}__subtitle` }, r))),
|
|
2610
2623
|
t && /* @__PURE__ */ e.createElement(
|
|
2611
2624
|
ft,
|
|
2612
2625
|
{
|
|
@@ -2633,7 +2646,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2633
2646
|
iconSize: "sm",
|
|
2634
2647
|
className: `${u}__link-icon`
|
|
2635
2648
|
}
|
|
2636
|
-
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
2649
|
+
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n))
|
|
2637
2650
|
);
|
|
2638
2651
|
}))));
|
|
2639
2652
|
return /* @__PURE__ */ e.createElement("div", M({ className: x([u, o != null ? o : ""]) }, m), E);
|
|
@@ -2644,8 +2657,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2644
2657
|
}, d1 = (c) => {
|
|
2645
2658
|
var o = c, {
|
|
2646
2659
|
listItems: t,
|
|
2647
|
-
listLabel:
|
|
2648
|
-
moreLink:
|
|
2660
|
+
listLabel: s,
|
|
2661
|
+
moreLink: n,
|
|
2649
2662
|
renderTypeLabels: l = !0,
|
|
2650
2663
|
typeLabels: r = {
|
|
2651
2664
|
included: "Included",
|
|
@@ -2662,7 +2675,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2662
2675
|
"className"
|
|
2663
2676
|
]);
|
|
2664
2677
|
const m = "pds-comparison-list";
|
|
2665
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([m, d != null ? d : ""]) }, a),
|
|
2678
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([m, d != null ? d : ""]) }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${m}__intro` }, s), t && /* @__PURE__ */ e.createElement("ul", { className: `${m}__list` }, t.map((f, p) => /* @__PURE__ */ e.createElement(
|
|
2666
2679
|
"li",
|
|
2667
2680
|
{
|
|
2668
2681
|
key: p,
|
|
@@ -2678,18 +2691,18 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2678
2691
|
)),
|
|
2679
2692
|
l && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[f.type], ":", " "),
|
|
2680
2693
|
f.text
|
|
2681
|
-
))),
|
|
2694
|
+
))), n && /* @__PURE__ */ e.createElement("div", { className: `${m}__more-link` }, n));
|
|
2682
2695
|
}, f2 = ({
|
|
2683
2696
|
label: t,
|
|
2684
|
-
children:
|
|
2697
|
+
children: s
|
|
2685
2698
|
}) => {
|
|
2686
|
-
const
|
|
2687
|
-
return /* @__PURE__ */ e.createElement("li", { role: "presentation", className: `${
|
|
2699
|
+
const n = "pds-select";
|
|
2700
|
+
return /* @__PURE__ */ e.createElement("li", { role: "presentation", className: `${n}__group` }, /* @__PURE__ */ e.createElement("span", { className: `${n}__group-label` }, t), /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${n}__group-options` }, s));
|
|
2688
2701
|
}, g2 = (i) => {
|
|
2689
2702
|
var g = i, {
|
|
2690
2703
|
defaultValue: t,
|
|
2691
|
-
disabled:
|
|
2692
|
-
id:
|
|
2704
|
+
disabled: s,
|
|
2705
|
+
id: n,
|
|
2693
2706
|
inputWidth: l,
|
|
2694
2707
|
label: r,
|
|
2695
2708
|
labelStrings: d = {
|
|
@@ -2729,17 +2742,17 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2729
2742
|
"className"
|
|
2730
2743
|
]);
|
|
2731
2744
|
var ct, rt;
|
|
2732
|
-
const _ = Je(l), $ = "pds-select", k =
|
|
2745
|
+
const _ = Je(l), $ = "pds-select", k = s ? ee.disabled : null, z = p && !s ? ee.required : null, w = L === "error" ? ee.error : null, y = L === "success" ? ee.success : null;
|
|
2733
2746
|
let H = null;
|
|
2734
2747
|
L === "error" && (H = "error"), L === "success" && (H = "success");
|
|
2735
|
-
const N = E || a, V = typeof v != "undefined", I = typeof t != "undefined", S = ((Ce) => Ce.reduce((Le, _e) => o1(_e) ? [...Le, ..._e.options] : [...Le, _e], []))(f), T = (Ce) => S.findIndex((Le) => Le.value === Ce), W = V && T(v) >= 0 ? T(v) : null, Z = I ? T(t) : null, K = W || Z, [
|
|
2748
|
+
const N = E || a, V = typeof v != "undefined", I = typeof t != "undefined", S = ((Ce) => Ce.reduce((Le, _e) => o1(_e) ? [...Le, ..._e.options] : [...Le, _e], []))(f), T = (Ce) => S.findIndex((Le) => Le.value === Ce), W = V && T(v) >= 0 ? T(v) : null, Z = I ? T(t) : null, K = W || Z, [se, Y] = U(!1), [j, q] = U(null), [O, Q] = U(
|
|
2736
2749
|
K != null ? K : null
|
|
2737
2750
|
), X = O !== null ? (ct = S[O]) == null ? void 0 : ct.label : void 0, F = O !== null ? (rt = S[O]) == null ? void 0 : rt.value : void 0, B = de([]), { context: J, refs: te } = Ve({
|
|
2738
|
-
open:
|
|
2751
|
+
open: se,
|
|
2739
2752
|
onOpenChange: Y,
|
|
2740
2753
|
whileElementsMounted: Re
|
|
2741
2754
|
}), fe = Ye(J, {
|
|
2742
|
-
enabled: !
|
|
2755
|
+
enabled: !s,
|
|
2743
2756
|
event: "mousedown"
|
|
2744
2757
|
}), ie = Se(J), be = Te(J, { role: "listbox" }), $e = it(J, {
|
|
2745
2758
|
listRef: B,
|
|
@@ -2784,27 +2797,27 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2784
2797
|
return Ce.map((_e) => {
|
|
2785
2798
|
if (o1(_e)) {
|
|
2786
2799
|
const Me = _e.options.map((R) => {
|
|
2787
|
-
const
|
|
2800
|
+
const ne = Le++;
|
|
2788
2801
|
return /* @__PURE__ */ e.createElement(
|
|
2789
2802
|
wt,
|
|
2790
2803
|
M({
|
|
2791
|
-
key:
|
|
2804
|
+
key: ne,
|
|
2792
2805
|
ref: (G) => {
|
|
2793
|
-
B.current[
|
|
2806
|
+
B.current[ne] = G;
|
|
2794
2807
|
},
|
|
2795
|
-
tabIndex:
|
|
2796
|
-
"aria-selected":
|
|
2808
|
+
tabIndex: ne === j ? 0 : -1,
|
|
2809
|
+
"aria-selected": ne === O && ne === j,
|
|
2797
2810
|
"aria-disabled": R == null ? void 0 : R.disabled
|
|
2798
2811
|
}, !(R != null && R.disabled) && ge({
|
|
2799
2812
|
onClick() {
|
|
2800
|
-
ze(
|
|
2813
|
+
ze(ne);
|
|
2801
2814
|
},
|
|
2802
2815
|
onKeyDown(G) {
|
|
2803
|
-
G.key === "Enter" && (G.preventDefault(), ze(
|
|
2816
|
+
G.key === "Enter" && (G.preventDefault(), ze(ne), te.reference.current.focus()), G.key === "Escape" && (G.preventDefault(), te.reference.current.focus());
|
|
2804
2817
|
}
|
|
2805
2818
|
})),
|
|
2806
2819
|
R.label,
|
|
2807
|
-
O ===
|
|
2820
|
+
O === ne && /* @__PURE__ */ e.createElement(
|
|
2808
2821
|
P,
|
|
2809
2822
|
{
|
|
2810
2823
|
iconName: "check",
|
|
@@ -2856,22 +2869,22 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2856
2869
|
/* @__PURE__ */ e.createElement(
|
|
2857
2870
|
Pe,
|
|
2858
2871
|
{
|
|
2859
|
-
id:
|
|
2872
|
+
id: n,
|
|
2860
2873
|
label: r,
|
|
2861
2874
|
showLabel: u,
|
|
2862
2875
|
tooltipText: b,
|
|
2863
2876
|
required: p,
|
|
2864
|
-
disabled:
|
|
2877
|
+
disabled: s
|
|
2865
2878
|
}
|
|
2866
2879
|
),
|
|
2867
2880
|
/* @__PURE__ */ e.createElement(
|
|
2868
2881
|
"span",
|
|
2869
2882
|
M({
|
|
2870
2883
|
className: `${$}__input-wrapper`,
|
|
2871
|
-
id:
|
|
2884
|
+
id: n,
|
|
2872
2885
|
tabIndex: 0,
|
|
2873
2886
|
ref: te.setReference,
|
|
2874
|
-
"aria-labelledby": `${
|
|
2887
|
+
"aria-labelledby": `${n}-label`,
|
|
2875
2888
|
"aria-autocomplete": "none"
|
|
2876
2889
|
}, ce({
|
|
2877
2890
|
onClick: tt,
|
|
@@ -2896,7 +2909,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2896
2909
|
N && /* @__PURE__ */ e.createElement(
|
|
2897
2910
|
De,
|
|
2898
2911
|
{
|
|
2899
|
-
id:
|
|
2912
|
+
id: n,
|
|
2900
2913
|
message: N,
|
|
2901
2914
|
hasValidationMessage: !!E,
|
|
2902
2915
|
validationMessageHasDecorators: !1,
|
|
@@ -2904,11 +2917,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2904
2917
|
}
|
|
2905
2918
|
)
|
|
2906
2919
|
);
|
|
2907
|
-
},
|
|
2920
|
+
}, Es = (u) => {
|
|
2908
2921
|
var b = u, {
|
|
2909
2922
|
actionPrimary: t,
|
|
2910
|
-
actionSecondary:
|
|
2911
|
-
hasComparisonList:
|
|
2923
|
+
actionSecondary: s,
|
|
2924
|
+
hasComparisonList: n = !0,
|
|
2912
2925
|
onTierChange: l,
|
|
2913
2926
|
planDescription: r,
|
|
2914
2927
|
planName: d,
|
|
@@ -2933,7 +2946,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2933
2946
|
"statusBadgeType",
|
|
2934
2947
|
"className"
|
|
2935
2948
|
]);
|
|
2936
|
-
const E = "pds-pricing-card", L = `${E}-container`, v =
|
|
2949
|
+
const E = "pds-pricing-card", L = `${E}-container`, v = n ? `${L}--with-list` : null, C = m ? `${E}--${m}` : null, h = (I) => I.toLowerCase().replace(/\s/g, "-"), i = a && a.length > 1, [g, _] = U(
|
|
2937
2950
|
h(a[0].label)
|
|
2938
2951
|
), [$, k] = U(
|
|
2939
2952
|
t.label
|
|
@@ -3033,24 +3046,24 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3033
3046
|
}
|
|
3034
3047
|
)));
|
|
3035
3048
|
let V = null;
|
|
3036
|
-
return
|
|
3049
|
+
return s && (s.type === "button" && (V = /* @__PURE__ */ e.createElement(
|
|
3037
3050
|
gt,
|
|
3038
3051
|
{
|
|
3039
3052
|
variant: "secondary",
|
|
3040
|
-
label:
|
|
3041
|
-
onClick:
|
|
3053
|
+
label: s.label,
|
|
3054
|
+
onClick: s.buttonAction
|
|
3042
3055
|
}
|
|
3043
|
-
)),
|
|
3056
|
+
)), s.type === "link" && (V = /* @__PURE__ */ e.createElement(
|
|
3044
3057
|
yt,
|
|
3045
3058
|
{
|
|
3046
3059
|
variant: "secondary",
|
|
3047
3060
|
linkContent: /* @__PURE__ */ e.createElement(
|
|
3048
3061
|
"a",
|
|
3049
3062
|
{
|
|
3050
|
-
href:
|
|
3051
|
-
target:
|
|
3063
|
+
href: s.linkUrl,
|
|
3064
|
+
target: s.linkTarget
|
|
3052
3065
|
},
|
|
3053
|
-
|
|
3066
|
+
s.label
|
|
3054
3067
|
)
|
|
3055
3068
|
}
|
|
3056
3069
|
))), /* @__PURE__ */ e.createElement(
|
|
@@ -3065,14 +3078,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3065
3078
|
label: c[m],
|
|
3066
3079
|
color: m === "mostPopular" ? "reverse" : "neutral"
|
|
3067
3080
|
}
|
|
3068
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${E}__main-content` }, d && /* @__PURE__ */ e.createElement("div", { className: `${E}__plan pds-overline-text` }, d), z, r && /* @__PURE__ */ e.createElement("div", { className: `${E}__description` }, r), H), /* @__PURE__ */ e.createElement("div", { className: `${E}__actions` }, t && N, t &&
|
|
3069
|
-
|
|
3081
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${E}__main-content` }, d && /* @__PURE__ */ e.createElement("div", { className: `${E}__plan pds-overline-text` }, d), z, r && /* @__PURE__ */ e.createElement("div", { className: `${E}__description` }, r), H), /* @__PURE__ */ e.createElement("div", { className: `${E}__actions` }, t && N, t && s && V)),
|
|
3082
|
+
n && w
|
|
3070
3083
|
);
|
|
3071
|
-
},
|
|
3084
|
+
}, vs = (m) => {
|
|
3072
3085
|
var f = m, {
|
|
3073
3086
|
gotoText: t = "Go to",
|
|
3074
|
-
headingLevel:
|
|
3075
|
-
siteImage:
|
|
3087
|
+
headingLevel: s = "h3",
|
|
3088
|
+
siteImage: n,
|
|
3076
3089
|
siteLink: l,
|
|
3077
3090
|
siteName: r,
|
|
3078
3091
|
sitePlan: d,
|
|
@@ -3098,12 +3111,12 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3098
3111
|
statusType: b,
|
|
3099
3112
|
hasStatusIndicator: !0
|
|
3100
3113
|
}
|
|
3101
|
-
), L = /* @__PURE__ */ e.createElement(e1, null, /* @__PURE__ */ e.createElement("img", { slot: "image", src:
|
|
3114
|
+
), L = /* @__PURE__ */ e.createElement(e1, null, /* @__PURE__ */ e.createElement("img", { slot: "image", src: n, alt: "" }), /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${p}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${p}__header` }, /* @__PURE__ */ e.createElement(
|
|
3102
3115
|
z1,
|
|
3103
3116
|
{
|
|
3104
3117
|
fontSize: "L",
|
|
3105
3118
|
fontWeight: "semibold",
|
|
3106
|
-
level:
|
|
3119
|
+
level: s,
|
|
3107
3120
|
text: r
|
|
3108
3121
|
}
|
|
3109
3122
|
), E), /* @__PURE__ */ e.createElement("div", { className: `${p}__plan` }, d))), v = we(l) ? Ie(l, me(M({}, l.props), {
|
|
@@ -3119,7 +3132,7 @@ function _2(t) {
|
|
|
3119
3132
|
}
|
|
3120
3133
|
var N1 = { exports: {} };
|
|
3121
3134
|
(function(t) {
|
|
3122
|
-
var
|
|
3135
|
+
var s = typeof window != "undefined" ? window : typeof WorkerGlobalScope != "undefined" && self instanceof WorkerGlobalScope ? self : {};
|
|
3123
3136
|
/**
|
|
3124
3137
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3125
3138
|
*
|
|
@@ -3128,7 +3141,7 @@ var N1 = { exports: {} };
|
|
|
3128
3141
|
* @namespace
|
|
3129
3142
|
* @public
|
|
3130
3143
|
*/
|
|
3131
|
-
var
|
|
3144
|
+
var n = function(l) {
|
|
3132
3145
|
var r = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, d = 0, a = {}, c = {
|
|
3133
3146
|
/**
|
|
3134
3147
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
@@ -3751,7 +3764,7 @@ var N1 = { exports: {} };
|
|
|
3751
3764
|
if (i.length > h.length)
|
|
3752
3765
|
return;
|
|
3753
3766
|
if (!(K instanceof o)) {
|
|
3754
|
-
var
|
|
3767
|
+
var se = 1, Y;
|
|
3755
3768
|
if (I) {
|
|
3756
3769
|
if (Y = m(T, Z, h, V), !Y || Y.index >= h.length)
|
|
3757
3770
|
break;
|
|
@@ -3761,16 +3774,16 @@ var N1 = { exports: {} };
|
|
|
3761
3774
|
if (q -= W.value.length, Z = q, W.value instanceof o)
|
|
3762
3775
|
continue;
|
|
3763
3776
|
for (var O = W; O !== i.tail && (q < j || typeof O.value == "string"); O = O.next)
|
|
3764
|
-
|
|
3765
|
-
|
|
3777
|
+
se++, q += O.value.length;
|
|
3778
|
+
se--, K = h.slice(Z, q), Y.index -= Z;
|
|
3766
3779
|
} else if (Y = m(T, 0, K, V), !Y)
|
|
3767
3780
|
continue;
|
|
3768
3781
|
var Q = Y.index, X = Y[0], F = K.slice(0, Q), B = K.slice(Q + X.length), J = Z + K.length;
|
|
3769
3782
|
k && J > k.reach && (k.reach = J);
|
|
3770
3783
|
var te = W.prev;
|
|
3771
|
-
F && (te = u(i, te, F), Z += F.length), b(i, te,
|
|
3784
|
+
F && (te = u(i, te, F), Z += F.length), b(i, te, se);
|
|
3772
3785
|
var fe = new o(z, N ? c.tokenize(X, N) : X, D, X);
|
|
3773
|
-
if (W = u(i, te, fe), B && u(i, W, B),
|
|
3786
|
+
if (W = u(i, te, fe), B && u(i, W, B), se > 1) {
|
|
3774
3787
|
var ie = {
|
|
3775
3788
|
cause: z + "," + y,
|
|
3776
3789
|
reach: J
|
|
@@ -3815,8 +3828,8 @@ var N1 = { exports: {} };
|
|
|
3815
3828
|
C === "loading" || C === "interactive" && L && L.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16);
|
|
3816
3829
|
}
|
|
3817
3830
|
return c;
|
|
3818
|
-
}(
|
|
3819
|
-
t.exports && (t.exports =
|
|
3831
|
+
}(s);
|
|
3832
|
+
t.exports && (t.exports = n), typeof m1 != "undefined" && (m1.Prism = n);
|
|
3820
3833
|
})(N1);
|
|
3821
3834
|
var E2 = N1.exports;
|
|
3822
3835
|
const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
@@ -3986,7 +3999,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
3986
3999
|
]
|
|
3987
4000
|
};
|
|
3988
4001
|
(function(t) {
|
|
3989
|
-
var
|
|
4002
|
+
var s = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
|
|
3990
4003
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
3991
4004
|
lookbehind: !0,
|
|
3992
4005
|
alias: "punctuation",
|
|
@@ -3994,9 +4007,9 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
3994
4007
|
inside: null
|
|
3995
4008
|
// see below
|
|
3996
4009
|
}, l = {
|
|
3997
|
-
bash:
|
|
4010
|
+
bash: n,
|
|
3998
4011
|
environment: {
|
|
3999
|
-
pattern: RegExp("\\$" +
|
|
4012
|
+
pattern: RegExp("\\$" + s),
|
|
4000
4013
|
alias: "constant"
|
|
4001
4014
|
},
|
|
4002
4015
|
variable: [
|
|
@@ -4036,7 +4049,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4036
4049
|
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
4037
4050
|
punctuation: /[\[\]]/,
|
|
4038
4051
|
environment: {
|
|
4039
|
-
pattern: RegExp("(\\{)" +
|
|
4052
|
+
pattern: RegExp("(\\{)" + s),
|
|
4040
4053
|
lookbehind: !0,
|
|
4041
4054
|
alias: "constant"
|
|
4042
4055
|
}
|
|
@@ -4085,7 +4098,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4085
4098
|
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
4086
4099
|
inside: {
|
|
4087
4100
|
environment: {
|
|
4088
|
-
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" +
|
|
4101
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + s),
|
|
4089
4102
|
lookbehind: !0,
|
|
4090
4103
|
alias: "constant"
|
|
4091
4104
|
}
|
|
@@ -4114,7 +4127,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4114
4127
|
lookbehind: !0,
|
|
4115
4128
|
greedy: !0,
|
|
4116
4129
|
inside: {
|
|
4117
|
-
bash:
|
|
4130
|
+
bash: n
|
|
4118
4131
|
}
|
|
4119
4132
|
},
|
|
4120
4133
|
// “Normal” string
|
|
@@ -4141,7 +4154,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4141
4154
|
}
|
|
4142
4155
|
],
|
|
4143
4156
|
environment: {
|
|
4144
|
-
pattern: RegExp("\\$?" +
|
|
4157
|
+
pattern: RegExp("\\$?" + s),
|
|
4145
4158
|
alias: "constant"
|
|
4146
4159
|
},
|
|
4147
4160
|
variable: l.variable,
|
|
@@ -4183,7 +4196,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4183
4196
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
4184
4197
|
lookbehind: !0
|
|
4185
4198
|
}
|
|
4186
|
-
},
|
|
4199
|
+
}, n.inside = t.languages.bash;
|
|
4187
4200
|
for (var r = [
|
|
4188
4201
|
"comment",
|
|
4189
4202
|
"function-name",
|
|
@@ -4216,7 +4229,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4216
4229
|
]
|
|
4217
4230
|
// deleted, inserted, unchanged, diff
|
|
4218
4231
|
};
|
|
4219
|
-
var
|
|
4232
|
+
var s = {
|
|
4220
4233
|
"deleted-sign": "-",
|
|
4221
4234
|
"deleted-arrow": "<",
|
|
4222
4235
|
"inserted-sign": "+",
|
|
@@ -4224,9 +4237,9 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4224
4237
|
unchanged: " ",
|
|
4225
4238
|
diff: "!"
|
|
4226
4239
|
};
|
|
4227
|
-
Object.keys(
|
|
4228
|
-
var l = n
|
|
4229
|
-
/^\w+$/.test(
|
|
4240
|
+
Object.keys(s).forEach(function(n) {
|
|
4241
|
+
var l = s[n], r = [];
|
|
4242
|
+
/^\w+$/.test(n) || r.push(/\w+/.exec(n)[0]), n === "diff" && r.push("bold"), t.languages.diff[n] = {
|
|
4230
4243
|
pattern: RegExp("^(?:[" + l + `].*(?:\r
|
|
4231
4244
|
?|
|
|
4232
4245
|
|(?![\\s\\S])))+`, "m"),
|
|
@@ -4238,19 +4251,19 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4238
4251
|
},
|
|
4239
4252
|
prefix: {
|
|
4240
4253
|
pattern: /[\s\S]/,
|
|
4241
|
-
alias: /\w+/.exec(
|
|
4254
|
+
alias: /\w+/.exec(n)[0]
|
|
4242
4255
|
}
|
|
4243
4256
|
}
|
|
4244
4257
|
};
|
|
4245
4258
|
}), Object.defineProperty(t.languages.diff, "PREFIXES", {
|
|
4246
|
-
value:
|
|
4259
|
+
value: s
|
|
4247
4260
|
});
|
|
4248
4261
|
})(Prism);
|
|
4249
|
-
const
|
|
4262
|
+
const bs = (u) => {
|
|
4250
4263
|
var b = u, {
|
|
4251
4264
|
code: t,
|
|
4252
|
-
colorType:
|
|
4253
|
-
copyButtonLabel:
|
|
4265
|
+
colorType: s = "dark",
|
|
4266
|
+
copyButtonLabel: n = "Copy to clipboard",
|
|
4254
4267
|
hasCopyButton: l,
|
|
4255
4268
|
hasLineNumbers: r,
|
|
4256
4269
|
hasPrompt: d,
|
|
@@ -4272,7 +4285,7 @@ const Cn = (u) => {
|
|
|
4272
4285
|
"shouldWrap",
|
|
4273
4286
|
"className"
|
|
4274
4287
|
]);
|
|
4275
|
-
const E = "pds-code-block", L = `${E}--${
|
|
4288
|
+
const E = "pds-code-block", L = `${E}--${s}`, v = m ? `${E}__line-wrapped` : "", C = c ? { maxHeight: `${c}rem` } : {}, h = s === "dark" ? "reverse" : "standard", i = s === "dark" ? b2 : C2, g = ["bash", "diff", "twig"], _ = /* @__PURE__ */ e.createElement(mt.LineContent, null, /* @__PURE__ */ e.createElement(mt.Token, null)), $ = /* @__PURE__ */ e.createElement("div", { className: `${E}__line ${v}` }, /* @__PURE__ */ e.createElement(mt.LineNumber, { className: `${E}__number` }), _), k = /* @__PURE__ */ e.createElement("div", { className: `${E}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__prompt` }, o), _);
|
|
4276
4289
|
return /* @__PURE__ */ e.createElement(
|
|
4277
4290
|
"div",
|
|
4278
4291
|
M({
|
|
@@ -4292,7 +4305,7 @@ const Cn = (u) => {
|
|
|
4292
4305
|
l && /* @__PURE__ */ e.createElement("div", { className: `${E}__copy` }, /* @__PURE__ */ e.createElement(
|
|
4293
4306
|
o2,
|
|
4294
4307
|
{
|
|
4295
|
-
ariaLabel:
|
|
4308
|
+
ariaLabel: n,
|
|
4296
4309
|
clipboardText: t,
|
|
4297
4310
|
variant: h
|
|
4298
4311
|
}
|
|
@@ -4301,34 +4314,34 @@ const Cn = (u) => {
|
|
|
4301
4314
|
}, $2 = (r) => {
|
|
4302
4315
|
var d = r, {
|
|
4303
4316
|
linkContent: t,
|
|
4304
|
-
size:
|
|
4305
|
-
className:
|
|
4317
|
+
size: s = "md",
|
|
4318
|
+
className: n
|
|
4306
4319
|
} = d, l = A(d, [
|
|
4307
4320
|
"linkContent",
|
|
4308
4321
|
"size",
|
|
4309
4322
|
"className"
|
|
4310
4323
|
]);
|
|
4311
|
-
const a = "pds-cta-link", c =
|
|
4324
|
+
const a = "pds-cta-link", c = s != "md" ? `${a}--${s}` : null;
|
|
4312
4325
|
return /* @__PURE__ */ e.createElement(
|
|
4313
4326
|
"div",
|
|
4314
4327
|
M({
|
|
4315
|
-
className: [a, c,
|
|
4328
|
+
className: [a, c, n != null ? n : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
4316
4329
|
}, l),
|
|
4317
4330
|
t,
|
|
4318
4331
|
/* @__PURE__ */ e.createElement(
|
|
4319
4332
|
P,
|
|
4320
4333
|
{
|
|
4321
4334
|
iconName: "arrowRight",
|
|
4322
|
-
iconSize:
|
|
4335
|
+
iconSize: s === "sm" ? "md" : "lg",
|
|
4323
4336
|
className: `${a}__icon`
|
|
4324
4337
|
}
|
|
4325
4338
|
)
|
|
4326
4339
|
);
|
|
4327
|
-
},
|
|
4340
|
+
}, Cs = (m) => {
|
|
4328
4341
|
var f = m, {
|
|
4329
4342
|
backgroundColor: t = "default",
|
|
4330
|
-
containerWidth:
|
|
4331
|
-
headingLevel:
|
|
4343
|
+
containerWidth: s = "standard",
|
|
4344
|
+
headingLevel: n = "h2",
|
|
4332
4345
|
headingText: l,
|
|
4333
4346
|
leadText: r,
|
|
4334
4347
|
primaryLinkContent: d,
|
|
@@ -4344,13 +4357,13 @@ const Cn = (u) => {
|
|
|
4344
4357
|
"secondaryLinkContent",
|
|
4345
4358
|
"className"
|
|
4346
4359
|
]);
|
|
4347
|
-
const p = "pds-cta-slice", u = t && t !== "default" ? `${p}--${t}` : null, b =
|
|
4360
|
+
const p = "pds-cta-slice", u = t && t !== "default" ? `${p}--${t}` : null, b = s && s !== "standard" ? `pds-container pds-container--${s}` : "pds-container";
|
|
4348
4361
|
return /* @__PURE__ */ e.createElement(
|
|
4349
4362
|
"div",
|
|
4350
4363
|
M({
|
|
4351
4364
|
className: x([p, u, c])
|
|
4352
4365
|
}, o),
|
|
4353
|
-
/* @__PURE__ */ e.createElement("div", { className: b }, l && /* @__PURE__ */ e.createElement(_t, { baseClass: p, className: "pds-ts-4xl", level:
|
|
4366
|
+
/* @__PURE__ */ e.createElement("div", { className: b }, l && /* @__PURE__ */ e.createElement(_t, { baseClass: p, className: "pds-ts-4xl", level: n }, l), r && /* @__PURE__ */ e.createElement(
|
|
4354
4367
|
"div",
|
|
4355
4368
|
{
|
|
4356
4369
|
className: `${p}__lead-text pds-lead-text pds-lead-text--sm`
|
|
@@ -4365,11 +4378,11 @@ const Cn = (u) => {
|
|
|
4365
4378
|
a
|
|
4366
4379
|
))
|
|
4367
4380
|
);
|
|
4368
|
-
},
|
|
4381
|
+
}, $s = (d) => {
|
|
4369
4382
|
var a = d, {
|
|
4370
4383
|
title: t,
|
|
4371
|
-
status:
|
|
4372
|
-
stat:
|
|
4384
|
+
status: s,
|
|
4385
|
+
stat: n,
|
|
4373
4386
|
className: l
|
|
4374
4387
|
} = a, r = A(a, [
|
|
4375
4388
|
"title",
|
|
@@ -4385,18 +4398,18 @@ const Cn = (u) => {
|
|
|
4385
4398
|
ready: "thumbsUp",
|
|
4386
4399
|
notReady: "thumbsDown"
|
|
4387
4400
|
};
|
|
4388
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${c}__stat-wrapper` },
|
|
4401
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${c}__stat-wrapper` }, s && /* @__PURE__ */ e.createElement(
|
|
4389
4402
|
P,
|
|
4390
4403
|
{
|
|
4391
|
-
iconName: o[
|
|
4392
|
-
className: `${c}__stat-status ${c}__stat-status--${
|
|
4404
|
+
iconName: o[s],
|
|
4405
|
+
className: `${c}__stat-status ${c}__stat-status--${s}`
|
|
4393
4406
|
}
|
|
4394
|
-
),
|
|
4395
|
-
},
|
|
4407
|
+
), n && /* @__PURE__ */ e.createElement("div", { className: `${c}__stat-value` }, n)));
|
|
4408
|
+
}, ws = (a) => {
|
|
4396
4409
|
var c = a, {
|
|
4397
4410
|
additions: t = 4,
|
|
4398
|
-
deletions:
|
|
4399
|
-
labelStrings:
|
|
4411
|
+
deletions: s = 2,
|
|
4412
|
+
labelStrings: n = {
|
|
4400
4413
|
linesChanged: "lines changed",
|
|
4401
4414
|
additions: "additions",
|
|
4402
4415
|
deletions: "deletions"
|
|
@@ -4410,7 +4423,7 @@ const Cn = (u) => {
|
|
|
4410
4423
|
"className",
|
|
4411
4424
|
"componentWidth"
|
|
4412
4425
|
]);
|
|
4413
|
-
const o = "pds-file-diff", m = t +
|
|
4426
|
+
const o = "pds-file-diff", m = t + s, f = m > 0 ? s / m * 100 : 0, p = m > 0 ? t / m * 100 : 0, u = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
4414
4427
|
return /* @__PURE__ */ e.createElement(
|
|
4415
4428
|
"div",
|
|
4416
4429
|
M({
|
|
@@ -4420,10 +4433,10 @@ const Cn = (u) => {
|
|
|
4420
4433
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__total-changes` }, /* @__PURE__ */ e.createElement(
|
|
4421
4434
|
xe,
|
|
4422
4435
|
{
|
|
4423
|
-
content: `${m} ${
|
|
4436
|
+
content: `${m} ${n.linesChanged}`,
|
|
4424
4437
|
preferredPlacement: "top",
|
|
4425
4438
|
className: `${o}__tooltip`,
|
|
4426
|
-
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${o}__total-changes-number` }, m, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, ` ${
|
|
4439
|
+
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${o}__total-changes-number` }, m, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, ` ${n.linesChanged}`))
|
|
4427
4440
|
}
|
|
4428
4441
|
)),
|
|
4429
4442
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__bars` }, /* @__PURE__ */ e.createElement(
|
|
@@ -4435,7 +4448,7 @@ const Cn = (u) => {
|
|
|
4435
4448
|
/* @__PURE__ */ e.createElement(
|
|
4436
4449
|
xe,
|
|
4437
4450
|
{
|
|
4438
|
-
content: `${
|
|
4451
|
+
content: `${s} ${n.deletions}`,
|
|
4439
4452
|
preferredPlacement: "top",
|
|
4440
4453
|
className: `${o}__tooltip`,
|
|
4441
4454
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${o}__behind-bar` }))
|
|
@@ -4450,7 +4463,7 @@ const Cn = (u) => {
|
|
|
4450
4463
|
/* @__PURE__ */ e.createElement(
|
|
4451
4464
|
xe,
|
|
4452
4465
|
{
|
|
4453
|
-
content: `${t} ${
|
|
4466
|
+
content: `${t} ${n.additions}`,
|
|
4454
4467
|
preferredPlacement: "top",
|
|
4455
4468
|
className: `${o}__tooltip`,
|
|
4456
4469
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${o}__ahead-bar` }))
|
|
@@ -4458,17 +4471,17 @@ const Cn = (u) => {
|
|
|
4458
4471
|
)
|
|
4459
4472
|
))
|
|
4460
4473
|
);
|
|
4461
|
-
},
|
|
4474
|
+
}, ys = (r) => {
|
|
4462
4475
|
var d = r, {
|
|
4463
4476
|
contentAlignment: t = "indented",
|
|
4464
|
-
steps:
|
|
4465
|
-
className:
|
|
4477
|
+
steps: s,
|
|
4478
|
+
className: n
|
|
4466
4479
|
} = d, l = A(d, [
|
|
4467
4480
|
"contentAlignment",
|
|
4468
4481
|
"steps",
|
|
4469
4482
|
"className"
|
|
4470
4483
|
]);
|
|
4471
|
-
const a = "pds-flow-steps", c = `${a}--${t}`, o =
|
|
4484
|
+
const a = "pds-flow-steps", c = `${a}--${t}`, o = s.map(({ header: m, content: f }, p) => {
|
|
4472
4485
|
const u = /* @__PURE__ */ e.createElement("div", { className: `${a}__number` }, /* @__PURE__ */ e.createElement("span", null, p + 1)), b = /* @__PURE__ */ e.createElement("div", { className: `${a}__header` }, m), E = f ? /* @__PURE__ */ e.createElement("div", { className: `${a}__content` }, f) : null;
|
|
4473
4486
|
return /* @__PURE__ */ e.createElement("li", { key: p, className: `${a}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, u, /* @__PURE__ */ e.createElement("div", { className: `${a}__content-group` }, b, E)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${a}__header-group` }, u, b), E));
|
|
4474
4487
|
});
|
|
@@ -4478,7 +4491,7 @@ const Cn = (u) => {
|
|
|
4478
4491
|
className: x([
|
|
4479
4492
|
a,
|
|
4480
4493
|
c,
|
|
4481
|
-
|
|
4494
|
+
n != null ? n : ""
|
|
4482
4495
|
])
|
|
4483
4496
|
}, l),
|
|
4484
4497
|
o
|
|
@@ -4486,8 +4499,8 @@ const Cn = (u) => {
|
|
|
4486
4499
|
}, w2 = (r) => {
|
|
4487
4500
|
var d = r, {
|
|
4488
4501
|
headingLevel: t = "h3",
|
|
4489
|
-
headingText:
|
|
4490
|
-
className:
|
|
4502
|
+
headingText: s,
|
|
4503
|
+
className: n
|
|
4491
4504
|
} = d, l = A(d, [
|
|
4492
4505
|
"headingLevel",
|
|
4493
4506
|
"headingText",
|
|
@@ -4497,15 +4510,15 @@ const Cn = (u) => {
|
|
|
4497
4510
|
return /* @__PURE__ */ e.createElement(
|
|
4498
4511
|
a,
|
|
4499
4512
|
M({
|
|
4500
|
-
className: x(["pds-footer-heading", "pds-ts-m",
|
|
4513
|
+
className: x(["pds-footer-heading", "pds-ts-m", n])
|
|
4501
4514
|
}, l),
|
|
4502
|
-
|
|
4515
|
+
s
|
|
4503
4516
|
);
|
|
4504
|
-
},
|
|
4517
|
+
}, Ls = (d) => {
|
|
4505
4518
|
var a = d, {
|
|
4506
4519
|
headingLevel: t,
|
|
4507
|
-
headingText:
|
|
4508
|
-
linkItems:
|
|
4520
|
+
headingText: s,
|
|
4521
|
+
linkItems: n,
|
|
4509
4522
|
className: l
|
|
4510
4523
|
} = a, r = A(a, [
|
|
4511
4524
|
"headingLevel",
|
|
@@ -4514,19 +4527,19 @@ const Cn = (u) => {
|
|
|
4514
4527
|
"className"
|
|
4515
4528
|
]);
|
|
4516
4529
|
const c = "pds-footer-links";
|
|
4517
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([c, l]) }, r),
|
|
4530
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([c, l]) }, r), s && /* @__PURE__ */ e.createElement(
|
|
4518
4531
|
w2,
|
|
4519
4532
|
{
|
|
4520
4533
|
headingLevel: t,
|
|
4521
4534
|
className: `${c}__heading`,
|
|
4522
|
-
headingText:
|
|
4535
|
+
headingText: s
|
|
4523
4536
|
}
|
|
4524
|
-
), /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" },
|
|
4525
|
-
},
|
|
4537
|
+
), /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" }, n.map((o, m) => /* @__PURE__ */ e.createElement("li", { key: m, className: `${c}__item` }, o))));
|
|
4538
|
+
}, Ms = (d) => {
|
|
4526
4539
|
var a = d, {
|
|
4527
4540
|
containerWidth: t = "standard",
|
|
4528
|
-
children:
|
|
4529
|
-
legalLinks:
|
|
4541
|
+
children: s,
|
|
4542
|
+
legalLinks: n = [
|
|
4530
4543
|
"privacy",
|
|
4531
4544
|
"dataSubjectRequest",
|
|
4532
4545
|
"cookiePolicy",
|
|
@@ -4541,14 +4554,14 @@ const Cn = (u) => {
|
|
|
4541
4554
|
"legalLinks",
|
|
4542
4555
|
"className"
|
|
4543
4556
|
]);
|
|
4544
|
-
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", m = (/* @__PURE__ */ new Date()).getFullYear(), f =
|
|
4545
|
-
return /* @__PURE__ */ e.createElement("footer", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o },
|
|
4557
|
+
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", m = (/* @__PURE__ */ new Date()).getFullYear(), f = n.includes("privacy"), p = n.includes("dataSubjectRequest"), u = n.includes("cookiePolicy"), b = n.includes("termsOfUse"), E = n.includes("acceptableUse"), L = n.includes("accessibilityStatement");
|
|
4558
|
+
return /* @__PURE__ */ e.createElement("footer", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, s && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", m, " Pantheon Systems, Inc."), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), u && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), b && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), L && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4546
4559
|
}, y2 = Ze(
|
|
4547
4560
|
(k, $) => {
|
|
4548
4561
|
var z = k, {
|
|
4549
4562
|
checked: t,
|
|
4550
|
-
defaultChecked:
|
|
4551
|
-
disabled:
|
|
4563
|
+
defaultChecked: s,
|
|
4564
|
+
disabled: n,
|
|
4552
4565
|
id: l,
|
|
4553
4566
|
indeterminate: r,
|
|
4554
4567
|
inputProps: d,
|
|
@@ -4590,10 +4603,10 @@ const Cn = (u) => {
|
|
|
4590
4603
|
"value",
|
|
4591
4604
|
"className"
|
|
4592
4605
|
]);
|
|
4593
|
-
const w = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox", H =
|
|
4594
|
-
Z ?
|
|
4606
|
+
const w = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox", H = n ? ee.disabled : null, N = h === "error" ? ee.error : null, V = f > 0 ? `${y}--indent-${f}` : null, I = E && !n ? ee.required : null, D = v === "S" ? `${y}--sm` : null, S = h === "success" ? ee.success : null, T = C || o, W = typeof t != "undefined", Z = typeof s != "undefined", [K, se] = U(
|
|
4607
|
+
Z ? s : !1
|
|
4595
4608
|
), Y = t || K, j = (F) => {
|
|
4596
|
-
W ||
|
|
4609
|
+
W || se(F.target.checked), u && u(F);
|
|
4597
4610
|
}, q = `${y}__box`, O = r ? null : Y ? `${q}--checked` : null, Q = r ? `${q}--indeterminate` : null, X = Zt(() => {
|
|
4598
4611
|
if (r)
|
|
4599
4612
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4639,7 +4652,7 @@ const Cn = (u) => {
|
|
|
4639
4652
|
checked: W ? t : K,
|
|
4640
4653
|
"aria-checked": r ? "mixed" : Y ? "true" : "false"
|
|
4641
4654
|
}, i ? { value: i } : {}), {
|
|
4642
|
-
disabled:
|
|
4655
|
+
disabled: n,
|
|
4643
4656
|
required: E,
|
|
4644
4657
|
onBlur: p,
|
|
4645
4658
|
onChange: j,
|
|
@@ -4667,7 +4680,7 @@ const Cn = (u) => {
|
|
|
4667
4680
|
},
|
|
4668
4681
|
c,
|
|
4669
4682
|
" ",
|
|
4670
|
-
E && !
|
|
4683
|
+
E && !n && /* @__PURE__ */ e.createElement(y1, null)
|
|
4671
4684
|
))),
|
|
4672
4685
|
T && /* @__PURE__ */ e.createElement(
|
|
4673
4686
|
De,
|
|
@@ -4681,11 +4694,11 @@ const Cn = (u) => {
|
|
|
4681
4694
|
)
|
|
4682
4695
|
);
|
|
4683
4696
|
}
|
|
4684
|
-
),
|
|
4697
|
+
), ks = (E) => {
|
|
4685
4698
|
var L = E, {
|
|
4686
4699
|
children: t,
|
|
4687
|
-
disabled:
|
|
4688
|
-
fieldsetProps:
|
|
4700
|
+
disabled: s = !1,
|
|
4701
|
+
fieldsetProps: n,
|
|
4689
4702
|
id: l,
|
|
4690
4703
|
inputWidth: r,
|
|
4691
4704
|
label: d,
|
|
@@ -4711,7 +4724,7 @@ const Cn = (u) => {
|
|
|
4711
4724
|
"validationStatus",
|
|
4712
4725
|
"className"
|
|
4713
4726
|
]);
|
|
4714
|
-
const v = r ? { width: `${r / 16}rem` } : null, C = "pds-checkbox-group", h =
|
|
4727
|
+
const v = r ? { width: `${r / 16}rem` } : null, C = "pds-checkbox-group", h = s ? ee.disabled : null, i = c && !s ? ee.required : null, g = p === "error" ? ee.error : null, _ = p === "success" ? ee.success : null, $ = f || a;
|
|
4715
4728
|
return /* @__PURE__ */ e.createElement(
|
|
4716
4729
|
"div",
|
|
4717
4730
|
M({
|
|
@@ -4725,10 +4738,10 @@ const Cn = (u) => {
|
|
|
4725
4738
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4726
4739
|
style: r ? v : null
|
|
4727
4740
|
}, b),
|
|
4728
|
-
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${C}__fieldset`, id: l },
|
|
4741
|
+
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${C}__fieldset`, id: l }, n), /* @__PURE__ */ e.createElement(
|
|
4729
4742
|
Pe,
|
|
4730
4743
|
{
|
|
4731
|
-
disabled:
|
|
4744
|
+
disabled: s,
|
|
4732
4745
|
label: d,
|
|
4733
4746
|
id: l,
|
|
4734
4747
|
isLegend: !0,
|
|
@@ -4748,11 +4761,11 @@ const Cn = (u) => {
|
|
|
4748
4761
|
}
|
|
4749
4762
|
)
|
|
4750
4763
|
);
|
|
4751
|
-
},
|
|
4764
|
+
}, Hs = (v) => {
|
|
4752
4765
|
var C = v, {
|
|
4753
4766
|
disabled: t = !1,
|
|
4754
|
-
fieldsetProps:
|
|
4755
|
-
id:
|
|
4767
|
+
fieldsetProps: s,
|
|
4768
|
+
id: n,
|
|
4756
4769
|
inputWidth: l,
|
|
4757
4770
|
label: r,
|
|
4758
4771
|
message: d,
|
|
@@ -4815,12 +4828,12 @@ const Cn = (u) => {
|
|
|
4815
4828
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4816
4829
|
style: l ? h : null
|
|
4817
4830
|
}, L),
|
|
4818
|
-
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${i}__fieldset`, id:
|
|
4831
|
+
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${i}__fieldset`, id: n }, s), /* @__PURE__ */ e.createElement(
|
|
4819
4832
|
Pe,
|
|
4820
4833
|
{
|
|
4821
4834
|
disabled: t,
|
|
4822
4835
|
label: r,
|
|
4823
|
-
id:
|
|
4836
|
+
id: n,
|
|
4824
4837
|
isLegend: !0,
|
|
4825
4838
|
required: m,
|
|
4826
4839
|
showLabel: f,
|
|
@@ -4844,7 +4857,7 @@ const Cn = (u) => {
|
|
|
4844
4857
|
z && /* @__PURE__ */ e.createElement(
|
|
4845
4858
|
De,
|
|
4846
4859
|
{
|
|
4847
|
-
id:
|
|
4860
|
+
id: n,
|
|
4848
4861
|
message: z,
|
|
4849
4862
|
hasValidationMessage: !!u,
|
|
4850
4863
|
validationMessageHasDecorators: !0,
|
|
@@ -4856,8 +4869,8 @@ const Cn = (u) => {
|
|
|
4856
4869
|
(I, V) => {
|
|
4857
4870
|
var D = I, {
|
|
4858
4871
|
defaultValue: t,
|
|
4859
|
-
disabled:
|
|
4860
|
-
hasClearButton:
|
|
4872
|
+
disabled: s = !1,
|
|
4873
|
+
hasClearButton: n = !0,
|
|
4861
4874
|
hasDropdownTrigger: l = !1,
|
|
4862
4875
|
hasSearchIcon: r = !0,
|
|
4863
4876
|
hasSearchShortcut: d = !1,
|
|
@@ -4918,7 +4931,7 @@ const Cn = (u) => {
|
|
|
4918
4931
|
"validationStatus",
|
|
4919
4932
|
"className"
|
|
4920
4933
|
]);
|
|
4921
|
-
const S = Je(c), T = "pds-combobox", W =
|
|
4934
|
+
const S = Je(c), T = "pds-combobox", W = s ? ee.disabled : null, Z = _ && !s ? ee.required : null, K = y === "error" ? ee.error : null, se = y === "success" ? ee.success : null;
|
|
4922
4935
|
let Y = null;
|
|
4923
4936
|
r && (Y = "search"), y === "error" && (Y = "error"), y === "success" && (Y = "success");
|
|
4924
4937
|
const j = w || u, q = typeof z != "undefined", O = typeof t != "undefined", Q = (G) => {
|
|
@@ -4967,8 +4980,8 @@ const Cn = (u) => {
|
|
|
4967
4980
|
const ae = ie[G];
|
|
4968
4981
|
!q && fe(ae.label), J(null), F(!1), h && h(ae);
|
|
4969
4982
|
}, R = (G) => G.map((re) => {
|
|
4970
|
-
const Ge = re, { label: ue, optionDisplay: pe, value: he, searchIndex:
|
|
4971
|
-
return
|
|
4983
|
+
const Ge = re, { label: ue, optionDisplay: pe, value: he, searchIndex: st } = Ge, ke = A(Ge, ["label", "optionDisplay", "value", "searchIndex"]), je = he || ue, We = [ue, he];
|
|
4984
|
+
return st && We.push(...st), M({
|
|
4972
4985
|
label: ue,
|
|
4973
4986
|
value: je,
|
|
4974
4987
|
searchIndex: We,
|
|
@@ -4987,7 +5000,7 @@ const Cn = (u) => {
|
|
|
4987
5000
|
);
|
|
4988
5001
|
be(G);
|
|
4989
5002
|
}, [$e, o, i]);
|
|
4990
|
-
const
|
|
5003
|
+
const ne = ie.map((G, ae) => {
|
|
4991
5004
|
const { label: re, value: ue, optionDisplay: pe } = G;
|
|
4992
5005
|
return /* @__PURE__ */ e.createElement(
|
|
4993
5006
|
wt,
|
|
@@ -5018,7 +5031,7 @@ const Cn = (u) => {
|
|
|
5018
5031
|
W,
|
|
5019
5032
|
Z,
|
|
5020
5033
|
K,
|
|
5021
|
-
|
|
5034
|
+
se,
|
|
5022
5035
|
H != null ? H : ""
|
|
5023
5036
|
]),
|
|
5024
5037
|
style: c ? S : null
|
|
@@ -5031,7 +5044,7 @@ const Cn = (u) => {
|
|
|
5031
5044
|
showLabel: $,
|
|
5032
5045
|
tooltipText: k,
|
|
5033
5046
|
required: _,
|
|
5034
|
-
disabled:
|
|
5047
|
+
disabled: s
|
|
5035
5048
|
}
|
|
5036
5049
|
),
|
|
5037
5050
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5040,7 +5053,7 @@ const Cn = (u) => {
|
|
|
5040
5053
|
className: `${T}__input-wrapper`,
|
|
5041
5054
|
ref: V,
|
|
5042
5055
|
id: a,
|
|
5043
|
-
"aria-disabled":
|
|
5056
|
+
"aria-disabled": s ? !0 : null,
|
|
5044
5057
|
"aria-required": _ ? !0 : null,
|
|
5045
5058
|
"aria-invalid": y === "error" ? !0 : null,
|
|
5046
5059
|
"aria-describedby": j ? `${a}__message` : null
|
|
@@ -5056,7 +5069,7 @@ const Cn = (u) => {
|
|
|
5056
5069
|
}, Ne({
|
|
5057
5070
|
"aria-autocomplete": "list",
|
|
5058
5071
|
"aria-label": f.inputInstructions,
|
|
5059
|
-
disabled:
|
|
5072
|
+
disabled: s,
|
|
5060
5073
|
placeholder: g,
|
|
5061
5074
|
value: $e,
|
|
5062
5075
|
onBlur: _e,
|
|
@@ -5067,7 +5080,7 @@ const Cn = (u) => {
|
|
|
5067
5080
|
}
|
|
5068
5081
|
}))
|
|
5069
5082
|
),
|
|
5070
|
-
$e &&
|
|
5083
|
+
$e && n && /* @__PURE__ */ e.createElement(
|
|
5071
5084
|
Qt,
|
|
5072
5085
|
{
|
|
5073
5086
|
id: `input-${a}`,
|
|
@@ -5088,7 +5101,7 @@ const Cn = (u) => {
|
|
|
5088
5101
|
ref: ge.setReference
|
|
5089
5102
|
}, Ne({
|
|
5090
5103
|
onClick: rt,
|
|
5091
|
-
disabled:
|
|
5104
|
+
disabled: s,
|
|
5092
5105
|
type: "button",
|
|
5093
5106
|
"aria-expanded": X,
|
|
5094
5107
|
"aria-label": f.triggerButton
|
|
@@ -5114,7 +5127,7 @@ const Cn = (u) => {
|
|
|
5114
5127
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5115
5128
|
}
|
|
5116
5129
|
})),
|
|
5117
|
-
/* @__PURE__ */ e.createElement("div", { style: M({}, ct) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${T}__options` },
|
|
5130
|
+
/* @__PURE__ */ e.createElement("div", { style: M({}, ct) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${T}__options` }, ne) : /* @__PURE__ */ e.createElement("div", { className: `${T}__no-results` }, b))
|
|
5118
5131
|
),
|
|
5119
5132
|
j && /* @__PURE__ */ e.createElement(
|
|
5120
5133
|
De,
|
|
@@ -5128,20 +5141,20 @@ const Cn = (u) => {
|
|
|
5128
5141
|
)
|
|
5129
5142
|
);
|
|
5130
5143
|
}
|
|
5131
|
-
), M2 = (t,
|
|
5132
|
-
const l =
|
|
5144
|
+
), M2 = (t, s, n) => {
|
|
5145
|
+
const l = n.toLowerCase();
|
|
5133
5146
|
return t.filter(
|
|
5134
5147
|
(r) => r.label.toLowerCase().includes(l)
|
|
5135
5148
|
).map((r) => me(M({}, r), {
|
|
5136
|
-
isAlreadySelected:
|
|
5149
|
+
isAlreadySelected: s.some(
|
|
5137
5150
|
(d) => d.id === r.id
|
|
5138
5151
|
)
|
|
5139
5152
|
}));
|
|
5140
|
-
},
|
|
5153
|
+
}, zs = (v) => {
|
|
5141
5154
|
var C = v, {
|
|
5142
5155
|
disabled: t = !1,
|
|
5143
|
-
id:
|
|
5144
|
-
initialSelectedItems:
|
|
5156
|
+
id: s,
|
|
5157
|
+
initialSelectedItems: n = [],
|
|
5145
5158
|
inputWidth: l,
|
|
5146
5159
|
isLoading: r = !1,
|
|
5147
5160
|
label: d = "Lorem ipsum dolor sit:",
|
|
@@ -5174,7 +5187,7 @@ const Cn = (u) => {
|
|
|
5174
5187
|
"showLabel",
|
|
5175
5188
|
"className"
|
|
5176
5189
|
]);
|
|
5177
|
-
const h = Je(l), i = "pds-combobox-multi", g = t ? ee.disabled : null, _ = u && !t ? ee.required : null, [$, k] = U(""), [z, w] = U(
|
|
5190
|
+
const h = Je(l), i = "pds-combobox-multi", g = t ? ee.disabled : null, _ = u && !t ? ee.required : null, [$, k] = U(""), [z, w] = U(n), [y, H] = U(
|
|
5178
5191
|
null
|
|
5179
5192
|
), N = _1(
|
|
5180
5193
|
() => M2(f, z, $),
|
|
@@ -5199,10 +5212,10 @@ const Cn = (u) => {
|
|
|
5199
5212
|
highlightedIndex: W,
|
|
5200
5213
|
selectedItem: Z,
|
|
5201
5214
|
getToggleButtonProps: K,
|
|
5202
|
-
getMenuProps:
|
|
5215
|
+
getMenuProps: se,
|
|
5203
5216
|
getInputProps: Y,
|
|
5204
5217
|
getItemProps: j
|
|
5205
|
-
} =
|
|
5218
|
+
} = nt({
|
|
5206
5219
|
items: N,
|
|
5207
5220
|
itemToString: (F) => F ? F.label : "",
|
|
5208
5221
|
selectedItem: null,
|
|
@@ -5211,8 +5224,8 @@ const Cn = (u) => {
|
|
|
5211
5224
|
stateReducer: (F, { changes: B, type: J }) => {
|
|
5212
5225
|
if (t) return F;
|
|
5213
5226
|
switch (J) {
|
|
5214
|
-
case
|
|
5215
|
-
case
|
|
5227
|
+
case nt.stateChangeTypes.InputKeyDownEnter:
|
|
5228
|
+
case nt.stateChangeTypes.ItemClick:
|
|
5216
5229
|
return me(M({}, B), {
|
|
5217
5230
|
isOpen: !0
|
|
5218
5231
|
});
|
|
@@ -5227,14 +5240,14 @@ const Cn = (u) => {
|
|
|
5227
5240
|
}) => {
|
|
5228
5241
|
if (!t)
|
|
5229
5242
|
switch (B) {
|
|
5230
|
-
case
|
|
5231
|
-
case
|
|
5232
|
-
case
|
|
5243
|
+
case nt.stateChangeTypes.InputKeyDownEnter:
|
|
5244
|
+
case nt.stateChangeTypes.ItemClick:
|
|
5245
|
+
case nt.stateChangeTypes.InputBlur:
|
|
5233
5246
|
J && (J.isAlreadySelected ? V(
|
|
5234
5247
|
z.filter((te) => te.id !== J.id)
|
|
5235
5248
|
) : V([...z, J]), k(""), H(null));
|
|
5236
5249
|
break;
|
|
5237
|
-
case
|
|
5250
|
+
case nt.stateChangeTypes.InputChange:
|
|
5238
5251
|
k(F || ""), H(null);
|
|
5239
5252
|
break;
|
|
5240
5253
|
}
|
|
@@ -5274,7 +5287,7 @@ const Cn = (u) => {
|
|
|
5274
5287
|
/* @__PURE__ */ e.createElement(
|
|
5275
5288
|
Pe,
|
|
5276
5289
|
{
|
|
5277
|
-
id:
|
|
5290
|
+
id: s,
|
|
5278
5291
|
label: d,
|
|
5279
5292
|
showLabel: b,
|
|
5280
5293
|
required: u,
|
|
@@ -5344,7 +5357,7 @@ const Cn = (u) => {
|
|
|
5344
5357
|
}
|
|
5345
5358
|
})
|
|
5346
5359
|
)),
|
|
5347
|
-
r ? /* @__PURE__ */ e.createElement("div", { className: `${i}__loading` }, c) : N.length > 0 ? /* @__PURE__ */ e.createElement("ul", M({ className: `${i}__dropdown-list` },
|
|
5360
|
+
r ? /* @__PURE__ */ e.createElement("div", { className: `${i}__loading` }, c) : N.length > 0 ? /* @__PURE__ */ e.createElement("ul", M({ className: `${i}__dropdown-list` }, se()), N.map((F, B) => /* @__PURE__ */ e.createElement(
|
|
5348
5361
|
wt,
|
|
5349
5362
|
M({
|
|
5350
5363
|
className: `${i}__dropdown-item
|
|
@@ -5363,12 +5376,12 @@ const Cn = (u) => {
|
|
|
5363
5376
|
))) : /* @__PURE__ */ e.createElement("div", { className: `${i}__no-results` }, o)
|
|
5364
5377
|
)
|
|
5365
5378
|
);
|
|
5366
|
-
},
|
|
5379
|
+
}, Ns = Ze(
|
|
5367
5380
|
(_, g) => {
|
|
5368
5381
|
var $ = _, {
|
|
5369
5382
|
accept: t,
|
|
5370
|
-
defaultValue:
|
|
5371
|
-
disabled:
|
|
5383
|
+
defaultValue: s,
|
|
5384
|
+
disabled: n = !1,
|
|
5372
5385
|
fieldLabel: l,
|
|
5373
5386
|
id: r,
|
|
5374
5387
|
inputProps: d,
|
|
@@ -5410,11 +5423,11 @@ const Cn = (u) => {
|
|
|
5410
5423
|
"className"
|
|
5411
5424
|
]);
|
|
5412
5425
|
const [k, z] = U(!1), [w, y] = U(
|
|
5413
|
-
!!(vt &&
|
|
5414
|
-
), H = Je(a), N = "pds-file-upload", V =
|
|
5426
|
+
!!(vt && s)
|
|
5427
|
+
), H = Je(a), N = "pds-file-upload", V = n ? ee.disabled : null, I = u && !n ? ee.required : null, D = C === "error" ? ee.error : null, S = C === "success" ? ee.success : null, T = w ? `${N}--safari-default` : null;
|
|
5415
5428
|
let W = null;
|
|
5416
5429
|
C === "error" && (W = "error"), C === "success" && (W = "success");
|
|
5417
|
-
const Z = v || o, K =
|
|
5430
|
+
const Z = v || o, K = s ? [s] : null, se = s ? s.split("/").pop() : null, Y = b ? s : se, j = s ? new File(K, Y) : null;
|
|
5418
5431
|
oe(() => {
|
|
5419
5432
|
const X = new DataTransfer();
|
|
5420
5433
|
if (j && X.items.add(j), X.files.length > 0) {
|
|
@@ -5423,20 +5436,20 @@ const Cn = (u) => {
|
|
|
5423
5436
|
);
|
|
5424
5437
|
F.files = X.files, vt && (F.dataset.file = `${Y}`), z(!0);
|
|
5425
5438
|
}
|
|
5426
|
-
}, [
|
|
5439
|
+
}, [s, b]);
|
|
5427
5440
|
const q = () => {
|
|
5428
5441
|
const X = document.getElementById(
|
|
5429
5442
|
`${r}--input`
|
|
5430
5443
|
);
|
|
5431
|
-
if (!X || !
|
|
5444
|
+
if (!X || !s) return;
|
|
5432
5445
|
const F = new DataTransfer();
|
|
5433
5446
|
F.items.add(j), X.files = F.files, z(!0);
|
|
5434
5447
|
}, O = (X) => {
|
|
5435
5448
|
if (X.target.files.length === 0) {
|
|
5436
|
-
|
|
5449
|
+
s ? q() : z(!1);
|
|
5437
5450
|
return;
|
|
5438
5451
|
}
|
|
5439
|
-
vt &&
|
|
5452
|
+
vt && s && (s === X.target.value ? y(!0) : y(!1)), p && p(X.target.files), z(!0);
|
|
5440
5453
|
}, Q = () => {
|
|
5441
5454
|
const X = document.getElementById(
|
|
5442
5455
|
`${r}--input`
|
|
@@ -5467,7 +5480,7 @@ const Cn = (u) => {
|
|
|
5467
5480
|
showLabel: E,
|
|
5468
5481
|
tooltipText: L,
|
|
5469
5482
|
required: u,
|
|
5470
|
-
disabled:
|
|
5483
|
+
disabled: n
|
|
5471
5484
|
}
|
|
5472
5485
|
),
|
|
5473
5486
|
/* @__PURE__ */ e.createElement("span", { className: `${N}__input-wrapper`, id: r }, W && /* @__PURE__ */ e.createElement(dt, { variant: W }), /* @__PURE__ */ e.createElement(
|
|
@@ -5486,7 +5499,7 @@ const Cn = (u) => {
|
|
|
5486
5499
|
type: "file",
|
|
5487
5500
|
id: `${r}--input`,
|
|
5488
5501
|
accept: t || null,
|
|
5489
|
-
disabled:
|
|
5502
|
+
disabled: n,
|
|
5490
5503
|
multiple: m,
|
|
5491
5504
|
required: u,
|
|
5492
5505
|
onChange: O,
|
|
@@ -5513,11 +5526,11 @@ const Cn = (u) => {
|
|
|
5513
5526
|
)
|
|
5514
5527
|
);
|
|
5515
5528
|
}
|
|
5516
|
-
),
|
|
5529
|
+
), xs = (l) => {
|
|
5517
5530
|
var r = l, {
|
|
5518
5531
|
children: t,
|
|
5519
|
-
className:
|
|
5520
|
-
} = r,
|
|
5532
|
+
className: s
|
|
5533
|
+
} = r, n = A(r, [
|
|
5521
5534
|
"children",
|
|
5522
5535
|
"className"
|
|
5523
5536
|
]);
|
|
@@ -5526,8 +5539,8 @@ const Cn = (u) => {
|
|
|
5526
5539
|
return /* @__PURE__ */ e.createElement(
|
|
5527
5540
|
"div",
|
|
5528
5541
|
M({
|
|
5529
|
-
className: x([d, u,
|
|
5530
|
-
},
|
|
5542
|
+
className: x([d, u, s != null ? s : ""])
|
|
5543
|
+
}, n),
|
|
5531
5544
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__inner` }, a),
|
|
5532
5545
|
p && /* @__PURE__ */ e.createElement(
|
|
5533
5546
|
De,
|
|
@@ -5540,11 +5553,11 @@ const Cn = (u) => {
|
|
|
5540
5553
|
}
|
|
5541
5554
|
)
|
|
5542
5555
|
);
|
|
5543
|
-
},
|
|
5556
|
+
}, Is = (i) => {
|
|
5544
5557
|
var g = i, {
|
|
5545
5558
|
defaultValue: t,
|
|
5546
|
-
disabled:
|
|
5547
|
-
fieldsetProps:
|
|
5559
|
+
disabled: s = !1,
|
|
5560
|
+
fieldsetProps: n,
|
|
5548
5561
|
id: l,
|
|
5549
5562
|
inputWidth: r,
|
|
5550
5563
|
label: d,
|
|
@@ -5580,7 +5593,7 @@ const Cn = (u) => {
|
|
|
5580
5593
|
"value",
|
|
5581
5594
|
"className"
|
|
5582
5595
|
]);
|
|
5583
|
-
const _ = "pds-radio-group", $ =
|
|
5596
|
+
const _ = "pds-radio-group", $ = s ? ee.disabled : null, k = p && !s ? ee.required : null, z = L === "error" ? ee.error : null, w = L === "success" ? ee.success : null, y = typeof v != "undefined", H = typeof t != "undefined", [N, V] = U(
|
|
5584
5597
|
H ? t : ""
|
|
5585
5598
|
), I = E || a, D = (T) => {
|
|
5586
5599
|
y || V(T.target.value), o && o(T), m && m(T.target.value);
|
|
@@ -5600,10 +5613,10 @@ const Cn = (u) => {
|
|
|
5600
5613
|
]),
|
|
5601
5614
|
style: Je(r)
|
|
5602
5615
|
}, h),
|
|
5603
|
-
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${_}__fieldset`, id: l },
|
|
5616
|
+
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${_}__fieldset`, id: l }, n), /* @__PURE__ */ e.createElement(
|
|
5604
5617
|
Pe,
|
|
5605
5618
|
{
|
|
5606
|
-
disabled:
|
|
5619
|
+
disabled: s,
|
|
5607
5620
|
label: d,
|
|
5608
5621
|
id: l,
|
|
5609
5622
|
isLegend: !0,
|
|
@@ -5625,7 +5638,7 @@ const Cn = (u) => {
|
|
|
5625
5638
|
name: l,
|
|
5626
5639
|
value: T.value,
|
|
5627
5640
|
required: p,
|
|
5628
|
-
disabled:
|
|
5641
|
+
disabled: s || T.disabled,
|
|
5629
5642
|
onBlur: S,
|
|
5630
5643
|
onChange: D,
|
|
5631
5644
|
checked: y ? v === T.value : N === T.value
|
|
@@ -5644,10 +5657,10 @@ const Cn = (u) => {
|
|
|
5644
5657
|
}
|
|
5645
5658
|
)
|
|
5646
5659
|
);
|
|
5647
|
-
}, k2 = ({ toggleStatusLabel: t, id:
|
|
5660
|
+
}, k2 = ({ toggleStatusLabel: t, id: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Jt, { label: t }), /* @__PURE__ */ e.createElement(
|
|
5648
5661
|
"label",
|
|
5649
5662
|
{
|
|
5650
|
-
htmlFor:
|
|
5663
|
+
htmlFor: s,
|
|
5651
5664
|
className: "pds-switch__toggle-label",
|
|
5652
5665
|
"aria-hidden": "true"
|
|
5653
5666
|
},
|
|
@@ -5668,12 +5681,12 @@ const Cn = (u) => {
|
|
|
5668
5681
|
"aria-hidden": "true"
|
|
5669
5682
|
},
|
|
5670
5683
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "sm" })
|
|
5671
|
-
)),
|
|
5684
|
+
)), Vs = Ze(
|
|
5672
5685
|
(h, C) => {
|
|
5673
5686
|
var i = h, {
|
|
5674
5687
|
checked: t,
|
|
5675
|
-
defaultChecked:
|
|
5676
|
-
disabled:
|
|
5688
|
+
defaultChecked: s,
|
|
5689
|
+
disabled: n = !1,
|
|
5677
5690
|
id: l,
|
|
5678
5691
|
inputProps: r,
|
|
5679
5692
|
inputWidth: d,
|
|
@@ -5705,8 +5718,8 @@ const Cn = (u) => {
|
|
|
5705
5718
|
"showStatusLabel",
|
|
5706
5719
|
"className"
|
|
5707
5720
|
]);
|
|
5708
|
-
const g = Je(d), _ = "pds-switch", $ =
|
|
5709
|
-
z || V(
|
|
5721
|
+
const g = Je(d), _ = "pds-switch", $ = n ? ee.disabled : null, k = u && !n ? ee.required : null, z = typeof t != "undefined", w = c == "below", y = c == "right", H = !z && s ? s : !1, [N, V] = U(H), I = t || N ? p : m, D = (se) => {
|
|
5722
|
+
z || V(se.target.checked), f && f(se);
|
|
5710
5723
|
}, S = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
5711
5724
|
"input",
|
|
5712
5725
|
M({
|
|
@@ -5717,7 +5730,7 @@ const Cn = (u) => {
|
|
|
5717
5730
|
role: "switch",
|
|
5718
5731
|
className: "visually-hidden",
|
|
5719
5732
|
onChange: D,
|
|
5720
|
-
disabled:
|
|
5733
|
+
disabled: n,
|
|
5721
5734
|
required: u,
|
|
5722
5735
|
checked: t !== void 0 ? t : N,
|
|
5723
5736
|
"aria-describedby": o ? `${l}__message` : null
|
|
@@ -5729,7 +5742,7 @@ const Cn = (u) => {
|
|
|
5729
5742
|
label: a,
|
|
5730
5743
|
showLabel: b,
|
|
5731
5744
|
required: u,
|
|
5732
|
-
disabled:
|
|
5745
|
+
disabled: n,
|
|
5733
5746
|
className: x([
|
|
5734
5747
|
"pds-input-label--disable-click",
|
|
5735
5748
|
o ? "" : "pds-input-label--switch-top-message"
|
|
@@ -5772,12 +5785,12 @@ const Cn = (u) => {
|
|
|
5772
5785
|
Z
|
|
5773
5786
|
);
|
|
5774
5787
|
}
|
|
5775
|
-
),
|
|
5788
|
+
), Ss = Ze(
|
|
5776
5789
|
(w, z) => {
|
|
5777
5790
|
var y = w, {
|
|
5778
5791
|
counterMaxLength: t,
|
|
5779
|
-
defaultValue:
|
|
5780
|
-
disabled:
|
|
5792
|
+
defaultValue: s,
|
|
5793
|
+
disabled: n = !1,
|
|
5781
5794
|
id: l,
|
|
5782
5795
|
inputWidth: r,
|
|
5783
5796
|
isResizable: d = !0,
|
|
@@ -5830,8 +5843,8 @@ const Cn = (u) => {
|
|
|
5830
5843
|
"value",
|
|
5831
5844
|
"className"
|
|
5832
5845
|
]);
|
|
5833
|
-
const H = Je(r), N = "pds-textarea", V = d ? "pds-is-resizable" : null, I =
|
|
5834
|
-
|
|
5846
|
+
const H = Je(r), N = "pds-textarea", V = d ? "pds-is-resizable" : null, I = n ? ee.disabled : null, D = b && !n ? ee.required : null, S = g === "error" ? ee.error : null, T = g === "success" ? ee.success : null, W = u ? ee.readonly : null, Z = i || c, K = _ != null && m !== void 0, se = typeof s != "undefined", [Y, j] = U(
|
|
5847
|
+
se ? s : ""
|
|
5835
5848
|
), q = _ || Y, O = (X) => {
|
|
5836
5849
|
K || j(X.target.value), m && m(X);
|
|
5837
5850
|
}, Q = (X) => {
|
|
@@ -5860,7 +5873,7 @@ const Cn = (u) => {
|
|
|
5860
5873
|
showLabel: L,
|
|
5861
5874
|
tooltipText: C,
|
|
5862
5875
|
required: b,
|
|
5863
|
-
disabled:
|
|
5876
|
+
disabled: n,
|
|
5864
5877
|
className: `${N}__inputlabel`
|
|
5865
5878
|
}
|
|
5866
5879
|
), t && /* @__PURE__ */ e.createElement(
|
|
@@ -5882,7 +5895,7 @@ const Cn = (u) => {
|
|
|
5882
5895
|
placeholder: p,
|
|
5883
5896
|
required: b,
|
|
5884
5897
|
readOnly: u,
|
|
5885
|
-
disabled:
|
|
5898
|
+
disabled: n,
|
|
5886
5899
|
value: K ? _ : Y,
|
|
5887
5900
|
rows: E,
|
|
5888
5901
|
onChange: O,
|
|
@@ -5908,8 +5921,8 @@ const Cn = (u) => {
|
|
|
5908
5921
|
(I, V) => {
|
|
5909
5922
|
var D = I, {
|
|
5910
5923
|
autoComplete: t,
|
|
5911
|
-
counterMaxLength:
|
|
5912
|
-
defaultValue:
|
|
5924
|
+
counterMaxLength: s,
|
|
5925
|
+
defaultValue: n,
|
|
5913
5926
|
disabled: l = !1,
|
|
5914
5927
|
hasClearButton: r = !1,
|
|
5915
5928
|
hasSearchShortcut: d = !1,
|
|
@@ -5972,11 +5985,11 @@ const Cn = (u) => {
|
|
|
5972
5985
|
"value",
|
|
5973
5986
|
"className"
|
|
5974
5987
|
]);
|
|
5975
|
-
const S = Je(o), T = "pds-text-input", W = l ? ee.disabled : null, Z = C && !l ? ee.required : null, K = w === "error" ? ee.error : null,
|
|
5988
|
+
const S = Je(o), T = "pds-text-input", W = l ? ee.disabled : null, Z = C && !l ? ee.required : null, K = w === "error" ? ee.error : null, se = w === "success" ? ee.success : null, Y = v ? ee.readonly : null;
|
|
5976
5989
|
let j = null;
|
|
5977
5990
|
k === "search" && (j = "search"), k === "search" && h === "filter" && (j = "filter"), w === "error" && (j = "error"), w === "success" && (j = "success");
|
|
5978
|
-
const q = z || f, O = typeof y != "undefined", Q = typeof
|
|
5979
|
-
Q ?
|
|
5991
|
+
const q = z || f, O = typeof y != "undefined", Q = typeof n != "undefined", [X, F] = U(
|
|
5992
|
+
Q ? n : ""
|
|
5980
5993
|
), B = y || X, J = (le) => {
|
|
5981
5994
|
g && ie && be(!1), p && p(le);
|
|
5982
5995
|
}, te = (le) => {
|
|
@@ -6000,7 +6013,7 @@ const Cn = (u) => {
|
|
|
6000
6013
|
W,
|
|
6001
6014
|
Z,
|
|
6002
6015
|
K,
|
|
6003
|
-
|
|
6016
|
+
se,
|
|
6004
6017
|
Y,
|
|
6005
6018
|
H != null ? H : ""
|
|
6006
6019
|
]),
|
|
@@ -6062,12 +6075,12 @@ const Cn = (u) => {
|
|
|
6062
6075
|
inputId: a,
|
|
6063
6076
|
shortcutLabel: $.searchShortcut
|
|
6064
6077
|
}
|
|
6065
|
-
),
|
|
6078
|
+
), s && k !== "password" && /* @__PURE__ */ e.createElement(
|
|
6066
6079
|
M1,
|
|
6067
6080
|
{
|
|
6068
6081
|
id: a,
|
|
6069
6082
|
currentLength: B.length,
|
|
6070
|
-
maxLength:
|
|
6083
|
+
maxLength: s,
|
|
6071
6084
|
overLimitMessage: $.counterOverLimit
|
|
6072
6085
|
}
|
|
6073
6086
|
)),
|
|
@@ -6083,11 +6096,11 @@ const Cn = (u) => {
|
|
|
6083
6096
|
)
|
|
6084
6097
|
);
|
|
6085
6098
|
}
|
|
6086
|
-
),
|
|
6099
|
+
), Ts = (a) => {
|
|
6087
6100
|
var c = a, {
|
|
6088
6101
|
children: t,
|
|
6089
|
-
fontSize:
|
|
6090
|
-
newWindowText:
|
|
6102
|
+
fontSize: s,
|
|
6103
|
+
newWindowText: n = "opens in a new window",
|
|
6091
6104
|
url: l,
|
|
6092
6105
|
className: r
|
|
6093
6106
|
} = c, d = A(c, [
|
|
@@ -6097,7 +6110,7 @@ const Cn = (u) => {
|
|
|
6097
6110
|
"url",
|
|
6098
6111
|
"className"
|
|
6099
6112
|
]);
|
|
6100
|
-
const o = "pds-link-new-window", m =
|
|
6113
|
+
const o = "pds-link-new-window", m = s ? `${o}--${s}` : null;
|
|
6101
6114
|
return /* @__PURE__ */ e.createElement(
|
|
6102
6115
|
"a",
|
|
6103
6116
|
M({
|
|
@@ -6107,14 +6120,14 @@ const Cn = (u) => {
|
|
|
6107
6120
|
className: x([o, m, r != null ? r : ""])
|
|
6108
6121
|
}, d),
|
|
6109
6122
|
t,
|
|
6110
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${
|
|
6123
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${n})`),
|
|
6111
6124
|
/* @__PURE__ */ e.createElement(P, { iconName: "externalLink", className: `${o}__icon` })
|
|
6112
6125
|
);
|
|
6113
|
-
},
|
|
6126
|
+
}, As = (f) => {
|
|
6114
6127
|
var p = f, {
|
|
6115
6128
|
ariaLabel: t,
|
|
6116
|
-
children:
|
|
6117
|
-
closeButtonLabel:
|
|
6129
|
+
children: s,
|
|
6130
|
+
closeButtonLabel: n = "Close modal",
|
|
6118
6131
|
hasCloseButton: l = !0,
|
|
6119
6132
|
modalIsOpen: r = !1,
|
|
6120
6133
|
setModalIsOpen: d = () => {
|
|
@@ -6188,26 +6201,26 @@ const Cn = (u) => {
|
|
|
6188
6201
|
l && /* @__PURE__ */ e.createElement("div", { className: `${u}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6189
6202
|
k1,
|
|
6190
6203
|
{
|
|
6191
|
-
ariaLabel:
|
|
6204
|
+
ariaLabel: n,
|
|
6192
6205
|
onClick: () => L(!1),
|
|
6193
6206
|
iconSize: "xl"
|
|
6194
6207
|
}
|
|
6195
6208
|
)),
|
|
6196
6209
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, c),
|
|
6197
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` },
|
|
6210
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, s)
|
|
6198
6211
|
))
|
|
6199
6212
|
));
|
|
6200
|
-
},
|
|
6213
|
+
}, Ds = (r) => {
|
|
6201
6214
|
var d = r, {
|
|
6202
6215
|
ariaLabel: t = "Breadcrumb",
|
|
6203
|
-
crumbs:
|
|
6204
|
-
className:
|
|
6216
|
+
crumbs: s,
|
|
6217
|
+
className: n
|
|
6205
6218
|
} = d, l = A(d, [
|
|
6206
6219
|
"ariaLabel",
|
|
6207
6220
|
"crumbs",
|
|
6208
6221
|
"className"
|
|
6209
6222
|
]);
|
|
6210
|
-
const a = "pds-breadcrumb", c =
|
|
6223
|
+
const a = "pds-breadcrumb", c = s.length, o = s.map((m, f) => {
|
|
6211
6224
|
if (f < c - 1)
|
|
6212
6225
|
return /* @__PURE__ */ e.createElement("li", { key: f, className: `${a}__crumb` }, m);
|
|
6213
6226
|
{
|
|
@@ -6228,7 +6241,7 @@ const Cn = (u) => {
|
|
|
6228
6241
|
"nav",
|
|
6229
6242
|
M({
|
|
6230
6243
|
"aria-label": t,
|
|
6231
|
-
className: x([a,
|
|
6244
|
+
className: x([a, n != null ? n : ""])
|
|
6232
6245
|
}, l),
|
|
6233
6246
|
/* @__PURE__ */ e.createElement("ol", { className: `${a}__crumbs` }, o)
|
|
6234
6247
|
);
|
|
@@ -6236,40 +6249,40 @@ const Cn = (u) => {
|
|
|
6236
6249
|
if (I1(t))
|
|
6237
6250
|
return !0;
|
|
6238
6251
|
if (t.links) {
|
|
6239
|
-
for (let
|
|
6240
|
-
if (Ee(t.links[
|
|
6252
|
+
for (let s = 0; s < t.links.length; s++)
|
|
6253
|
+
if (Ee(t.links[s]))
|
|
6241
6254
|
return !0;
|
|
6242
6255
|
}
|
|
6243
6256
|
return !1;
|
|
6244
6257
|
}, t1 = (t) => {
|
|
6245
6258
|
if (!t)
|
|
6246
6259
|
return null;
|
|
6247
|
-
for (let
|
|
6248
|
-
if (I1(t[
|
|
6249
|
-
return typeof t[
|
|
6250
|
-
if (t[
|
|
6251
|
-
const
|
|
6252
|
-
if (
|
|
6253
|
-
return
|
|
6260
|
+
for (let s = 0; s < t.length; s++) {
|
|
6261
|
+
if (I1(t[s]))
|
|
6262
|
+
return typeof t[s].linkContent == "string" ? null : t[s].linkContent;
|
|
6263
|
+
if (t[s].links) {
|
|
6264
|
+
const n = t1(t[s].links);
|
|
6265
|
+
if (n)
|
|
6266
|
+
return n;
|
|
6254
6267
|
}
|
|
6255
6268
|
}
|
|
6256
6269
|
return null;
|
|
6257
6270
|
}, Ue = (t) => {
|
|
6258
|
-
let
|
|
6259
|
-
return typeof t == "object" && (
|
|
6260
|
-
}, Mt = (t,
|
|
6261
|
-
let
|
|
6262
|
-
if (typeof t == "string" &&
|
|
6263
|
-
const l =
|
|
6264
|
-
e.isValidElement(l) && (
|
|
6271
|
+
let s = t;
|
|
6272
|
+
return typeof t == "object" && (s = t.props.children), s;
|
|
6273
|
+
}, Mt = (t, s) => {
|
|
6274
|
+
let n = null;
|
|
6275
|
+
if (typeof t == "string" && s) {
|
|
6276
|
+
const l = s ? s[0].linkContent : null;
|
|
6277
|
+
e.isValidElement(l) && (n = e.cloneElement(l, M({}, typeof t == "string" ? { children: t } : {})));
|
|
6265
6278
|
} else
|
|
6266
|
-
|
|
6267
|
-
return
|
|
6268
|
-
},
|
|
6279
|
+
n = t;
|
|
6280
|
+
return n;
|
|
6281
|
+
}, Os = (d) => {
|
|
6269
6282
|
var a = d, {
|
|
6270
6283
|
ariaLabel: t,
|
|
6271
|
-
menuItems:
|
|
6272
|
-
size:
|
|
6284
|
+
menuItems: s,
|
|
6285
|
+
size: n = "md",
|
|
6273
6286
|
className: l
|
|
6274
6287
|
} = a, r = A(a, [
|
|
6275
6288
|
"ariaLabel",
|
|
@@ -6280,7 +6293,7 @@ const Cn = (u) => {
|
|
|
6280
6293
|
let c = !1;
|
|
6281
6294
|
const o = ve(ye);
|
|
6282
6295
|
o && (c = o.isMobile);
|
|
6283
|
-
const m = "pds-button-nav", f = c ? `${m}--isMobile` : null, p =
|
|
6296
|
+
const m = "pds-button-nav", f = c ? `${m}--isMobile` : null, p = n !== "md" ? `${m}--${n}` : null, u = ({ isActive: v, linkContent: C }) => {
|
|
6284
6297
|
const h = `${m}__item`;
|
|
6285
6298
|
return /* @__PURE__ */ e.createElement(
|
|
6286
6299
|
"li",
|
|
@@ -6292,7 +6305,7 @@ const Cn = (u) => {
|
|
|
6292
6305
|
},
|
|
6293
6306
|
C
|
|
6294
6307
|
);
|
|
6295
|
-
}, b =
|
|
6308
|
+
}, b = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu` }, s.map((v, C) => /* @__PURE__ */ e.createElement(
|
|
6296
6309
|
u,
|
|
6297
6310
|
{
|
|
6298
6311
|
key: C,
|
|
@@ -6300,7 +6313,7 @@ const Cn = (u) => {
|
|
|
6300
6313
|
isActive: Ee(v)
|
|
6301
6314
|
}
|
|
6302
6315
|
))) : null, E = [];
|
|
6303
|
-
|
|
6316
|
+
s.map((v) => {
|
|
6304
6317
|
v.linkContent && (Ee(v) ? E.unshift({
|
|
6305
6318
|
linkContent: v.linkContent,
|
|
6306
6319
|
isLink: !0
|
|
@@ -6314,7 +6327,7 @@ const Cn = (u) => {
|
|
|
6314
6327
|
{
|
|
6315
6328
|
actionItems: E,
|
|
6316
6329
|
variant: "secondary",
|
|
6317
|
-
size:
|
|
6330
|
+
size: n
|
|
6318
6331
|
}
|
|
6319
6332
|
) : null;
|
|
6320
6333
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -6330,30 +6343,30 @@ const Cn = (u) => {
|
|
|
6330
6343
|
}, r),
|
|
6331
6344
|
c ? L : b
|
|
6332
6345
|
);
|
|
6333
|
-
}, Kt = (t,
|
|
6346
|
+
}, Kt = (t, s, n, l) => {
|
|
6334
6347
|
let r = null;
|
|
6335
|
-
if (typeof
|
|
6348
|
+
if (typeof s == "string") {
|
|
6336
6349
|
const d = l ? [
|
|
6337
|
-
/* @__PURE__ */ e.createElement("span", { key:
|
|
6350
|
+
/* @__PURE__ */ e.createElement("span", { key: s, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: l, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s))
|
|
6338
6351
|
] : [
|
|
6339
|
-
/* @__PURE__ */ e.createElement("span", { key:
|
|
6352
|
+
/* @__PURE__ */ e.createElement("span", { key: s, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s))
|
|
6340
6353
|
];
|
|
6341
|
-
if (
|
|
6342
|
-
const a =
|
|
6343
|
-
we(a) && (r = Ie(a, M({}, typeof
|
|
6354
|
+
if (n) {
|
|
6355
|
+
const a = n[0].linkContent;
|
|
6356
|
+
we(a) && (r = Ie(a, M({}, typeof s == "string" ? { children: d } : {})));
|
|
6344
6357
|
} else
|
|
6345
6358
|
r = null;
|
|
6346
6359
|
}
|
|
6347
|
-
return typeof
|
|
6360
|
+
return typeof s == "object" && (l ? r = Ie(s, me(M({}, s.props), {
|
|
6348
6361
|
children: [
|
|
6349
|
-
/* @__PURE__ */ e.createElement("span", { key: l, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: l, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` },
|
|
6362
|
+
/* @__PURE__ */ e.createElement("span", { key: l, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: l, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s.props.children))
|
|
6350
6363
|
]
|
|
6351
|
-
})) : r =
|
|
6364
|
+
})) : r = s), r;
|
|
6352
6365
|
}, z2 = (r) => {
|
|
6353
6366
|
var d = r, {
|
|
6354
6367
|
destination: t = "main",
|
|
6355
|
-
text:
|
|
6356
|
-
className:
|
|
6368
|
+
text: s = "Skip to main content",
|
|
6369
|
+
className: n
|
|
6357
6370
|
} = d, l = A(d, [
|
|
6358
6371
|
"destination",
|
|
6359
6372
|
"text",
|
|
@@ -6363,15 +6376,15 @@ const Cn = (u) => {
|
|
|
6363
6376
|
"a",
|
|
6364
6377
|
M({
|
|
6365
6378
|
href: `#${t}`,
|
|
6366
|
-
className: ["pds-skiplink",
|
|
6379
|
+
className: ["pds-skiplink", n].join(" ").trim().replace(/\s+/g, " ")
|
|
6367
6380
|
}, l),
|
|
6368
|
-
|
|
6381
|
+
s
|
|
6369
6382
|
);
|
|
6370
|
-
}, It = g1(null),
|
|
6383
|
+
}, It = g1(null), Rs = (u) => {
|
|
6371
6384
|
var b = u, {
|
|
6372
6385
|
children: t,
|
|
6373
|
-
hasSidebarToggle:
|
|
6374
|
-
isAdmin:
|
|
6386
|
+
hasSidebarToggle: s = !0,
|
|
6387
|
+
isAdmin: n,
|
|
6375
6388
|
logoLinkContent: l,
|
|
6376
6389
|
sidebarCollapsedWidth: r = 2.125,
|
|
6377
6390
|
sidebarExpandedWidth: d = 12,
|
|
@@ -6404,8 +6417,8 @@ const Cn = (u) => {
|
|
|
6404
6417
|
isSidebarExpanded: E ? !0 : v,
|
|
6405
6418
|
logoLinkContent: l,
|
|
6406
6419
|
navbarWidth: g,
|
|
6407
|
-
isAdmin:
|
|
6408
|
-
}, $ = "pds-dashboard-global", k =
|
|
6420
|
+
isAdmin: n
|
|
6421
|
+
}, $ = "pds-dashboard-global", k = n ? `${$}--isAdmin` : null, z = E ? `${$}--isMobile` : `${$}--notMobile`, w = E ? null : v ? `${$}--sidebarExpanded` : `${$}--sidebarCollapsed`, y = v ? `${d}rem` : `${r}rem`, H = {
|
|
6409
6422
|
width: y,
|
|
6410
6423
|
transition: "width 200ms ease-in-out"
|
|
6411
6424
|
}, N = E ? {} : {
|
|
@@ -6413,7 +6426,7 @@ const Cn = (u) => {
|
|
|
6413
6426
|
transition: "width 200ms ease-in-out"
|
|
6414
6427
|
}, V = () => {
|
|
6415
6428
|
C(!v);
|
|
6416
|
-
}, I = Fe(t), D = I.header, S = I.sidebar, T = I.main, W = I.footer, Z = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar` }, S), K = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar`, style: H },
|
|
6429
|
+
}, I = Fe(t), D = I.header, S = I.sidebar, T = I.main, W = I.footer, Z = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar` }, S), K = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar`, style: H }, s && /* @__PURE__ */ e.createElement(
|
|
6417
6430
|
"button",
|
|
6418
6431
|
{
|
|
6419
6432
|
className: `${$}__sidebar-toggle-button`,
|
|
@@ -6450,8 +6463,8 @@ const Cn = (u) => {
|
|
|
6450
6463
|
));
|
|
6451
6464
|
}, Ke = 300, Xe = "ease-out", Ft = 0.512, N2 = 3.815, x2 = 4.678, I2 = 5.96, ot = 0.8, V2 = ({
|
|
6452
6465
|
icon: t,
|
|
6453
|
-
isActive:
|
|
6454
|
-
isSidebarExpanded:
|
|
6466
|
+
isActive: s,
|
|
6467
|
+
isSidebarExpanded: n,
|
|
6455
6468
|
labels: l,
|
|
6456
6469
|
linkContent: r,
|
|
6457
6470
|
links: d
|
|
@@ -6462,7 +6475,7 @@ const Cn = (u) => {
|
|
|
6462
6475
|
className: x([
|
|
6463
6476
|
o,
|
|
6464
6477
|
`${o}--${y}`,
|
|
6465
|
-
|
|
6478
|
+
s ? `${o}--expanded` : null
|
|
6466
6479
|
])
|
|
6467
6480
|
},
|
|
6468
6481
|
w.map((H, N) => /* @__PURE__ */ e.createElement(
|
|
@@ -6554,30 +6567,30 @@ const Cn = (u) => {
|
|
|
6554
6567
|
c,
|
|
6555
6568
|
`${c}--top-level`,
|
|
6556
6569
|
d ? `${c}--has-children` : null,
|
|
6557
|
-
|
|
6558
|
-
|
|
6570
|
+
n ? null : `${c}--collapsed`,
|
|
6571
|
+
s ? `${c}--active` : null
|
|
6559
6572
|
]),
|
|
6560
|
-
ref:
|
|
6573
|
+
ref: n ? null : b.setReference
|
|
6561
6574
|
}, g()),
|
|
6562
6575
|
d ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Kt(
|
|
6563
6576
|
a,
|
|
6564
6577
|
r,
|
|
6565
6578
|
d,
|
|
6566
6579
|
t
|
|
6567
|
-
),
|
|
6580
|
+
), n && /* @__PURE__ */ e.createElement(
|
|
6568
6581
|
"button",
|
|
6569
6582
|
{
|
|
6570
|
-
"aria-expanded":
|
|
6583
|
+
"aria-expanded": s,
|
|
6571
6584
|
className: x([
|
|
6572
6585
|
`${a}__toggle`,
|
|
6573
|
-
|
|
6586
|
+
s ? `${a}__toggle--expanded` : null
|
|
6574
6587
|
]),
|
|
6575
6588
|
onClick: $,
|
|
6576
6589
|
type: "button"
|
|
6577
6590
|
},
|
|
6578
6591
|
/* @__PURE__ */ e.createElement(P, { iconName: "angleDown", iconSize: "md" }),
|
|
6579
6592
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ue(r)} ${l.submenu}`)
|
|
6580
|
-
)),
|
|
6593
|
+
)), n && f(d, "second-level"), !n && p && /* @__PURE__ */ e.createElement(
|
|
6581
6594
|
"div",
|
|
6582
6595
|
M({
|
|
6583
6596
|
className: `${a}__flyout`,
|
|
@@ -6586,7 +6599,7 @@ const Cn = (u) => {
|
|
|
6586
6599
|
}, _()),
|
|
6587
6600
|
/* @__PURE__ */ e.createElement("div", { className: `${a}__flyout-heading` }, Ue(r)),
|
|
6588
6601
|
f(d, "second-level-flyout")
|
|
6589
|
-
)) : /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
6602
|
+
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, n ? m : /* @__PURE__ */ e.createElement(
|
|
6590
6603
|
xe,
|
|
6591
6604
|
{
|
|
6592
6605
|
content: Ue(r),
|
|
@@ -6599,11 +6612,11 @@ const Cn = (u) => {
|
|
|
6599
6612
|
}
|
|
6600
6613
|
))
|
|
6601
6614
|
);
|
|
6602
|
-
},
|
|
6615
|
+
}, s1 = (d) => {
|
|
6603
6616
|
var a = d, {
|
|
6604
6617
|
headingText: t,
|
|
6605
|
-
menuItems:
|
|
6606
|
-
selectTextFallback:
|
|
6618
|
+
menuItems: s,
|
|
6619
|
+
selectTextFallback: n = "Navigate to...",
|
|
6607
6620
|
className: l
|
|
6608
6621
|
} = a, r = A(a, [
|
|
6609
6622
|
"headingText",
|
|
@@ -6611,7 +6624,7 @@ const Cn = (u) => {
|
|
|
6611
6624
|
"selectTextFallback",
|
|
6612
6625
|
"className"
|
|
6613
6626
|
]);
|
|
6614
|
-
const c = "pds-dropdown-menu", [o, m] = U(!1), [f, p] = U(null), u = t1(
|
|
6627
|
+
const c = "pds-dropdown-menu", [o, m] = U(!1), [f, p] = U(null), u = t1(s), b = u ? u.props.children : n, E = /* @__PURE__ */ e.createElement(
|
|
6615
6628
|
P,
|
|
6616
6629
|
{
|
|
6617
6630
|
iconName: "check",
|
|
@@ -6714,7 +6727,7 @@ const Cn = (u) => {
|
|
|
6714
6727
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6715
6728
|
})
|
|
6716
6729
|
}, H()),
|
|
6717
|
-
h(
|
|
6730
|
+
h(s).map((D, S) => /* @__PURE__ */ e.createElement(
|
|
6718
6731
|
"li",
|
|
6719
6732
|
M({
|
|
6720
6733
|
key: S,
|
|
@@ -7020,8 +7033,8 @@ const Cn = (u) => {
|
|
|
7020
7033
|
), V1 = (a) => {
|
|
7021
7034
|
var c = a, {
|
|
7022
7035
|
colorType: t = "default",
|
|
7023
|
-
displayType:
|
|
7024
|
-
linkContent:
|
|
7036
|
+
displayType: s = "full",
|
|
7037
|
+
linkContent: n,
|
|
7025
7038
|
subBrand: l,
|
|
7026
7039
|
className: r
|
|
7027
7040
|
} = c, d = A(c, [
|
|
@@ -7031,9 +7044,9 @@ const Cn = (u) => {
|
|
|
7031
7044
|
"subBrand",
|
|
7032
7045
|
"className"
|
|
7033
7046
|
]);
|
|
7034
|
-
const o = "pds-pantheon-logo", m =
|
|
7047
|
+
const o = "pds-pantheon-logo", m = s && s !== "full" ? `${o}--${s}` : null, f = t && t !== "default" ? `${o}--${t}` : null;
|
|
7035
7048
|
let p;
|
|
7036
|
-
switch (
|
|
7049
|
+
switch (s) {
|
|
7037
7050
|
case "full":
|
|
7038
7051
|
p = S2;
|
|
7039
7052
|
break;
|
|
@@ -7049,10 +7062,10 @@ const Cn = (u) => {
|
|
|
7049
7062
|
case "sub-brand-small":
|
|
7050
7063
|
p = Pt;
|
|
7051
7064
|
}
|
|
7052
|
-
const u = e.isValidElement(
|
|
7065
|
+
const u = e.isValidElement(n) && typeof n.props.children == "string" ? n.props.children : "", b = e.isValidElement(n) ? Ie(n, {
|
|
7053
7066
|
children: p,
|
|
7054
7067
|
"aria-label": u || null
|
|
7055
|
-
}) :
|
|
7068
|
+
}) : n;
|
|
7056
7069
|
return /* @__PURE__ */ e.createElement(
|
|
7057
7070
|
"div",
|
|
7058
7071
|
M({
|
|
@@ -7063,17 +7076,17 @@ const Cn = (u) => {
|
|
|
7063
7076
|
r != null ? r : ""
|
|
7064
7077
|
])
|
|
7065
7078
|
}, d),
|
|
7066
|
-
|
|
7079
|
+
n ? b : p,
|
|
7067
7080
|
l && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, l))
|
|
7068
7081
|
);
|
|
7069
|
-
},
|
|
7082
|
+
}, Fs = (a) => {
|
|
7070
7083
|
var c = a, {
|
|
7071
7084
|
ariaLabel: t,
|
|
7072
|
-
labels:
|
|
7085
|
+
labels: s = {
|
|
7073
7086
|
submenu: "submenu",
|
|
7074
7087
|
toggle: "Toggle"
|
|
7075
7088
|
},
|
|
7076
|
-
menuItems:
|
|
7089
|
+
menuItems: n,
|
|
7077
7090
|
mobileMenuSelectTextFallback: l = "Navigate to...",
|
|
7078
7091
|
className: r
|
|
7079
7092
|
} = c, d = A(c, [
|
|
@@ -7089,18 +7102,18 @@ const Cn = (u) => {
|
|
|
7089
7102
|
const f = ve(It);
|
|
7090
7103
|
let p = !0, u = null;
|
|
7091
7104
|
f && (p = f.isSidebarExpanded, u = f.logoLinkContent);
|
|
7092
|
-
const b = "pds-dashboard-nav", E = p ? `${b}--expanded` : `${b}--collapsed`, L = /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7105
|
+
const b = "pds-dashboard-nav", E = p ? `${b}--expanded` : `${b}--collapsed`, L = /* @__PURE__ */ e.createElement(e.Fragment, null, n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${b}__menu ${b}__menu--top-level` }, n.map((h, i) => /* @__PURE__ */ e.createElement(
|
|
7093
7106
|
V2,
|
|
7094
7107
|
{
|
|
7095
7108
|
key: i,
|
|
7096
7109
|
icon: h.icon,
|
|
7097
7110
|
isActive: Ee(h),
|
|
7098
7111
|
isSidebarExpanded: p,
|
|
7099
|
-
labels:
|
|
7112
|
+
labels: s,
|
|
7100
7113
|
linkContent: h.linkContent,
|
|
7101
7114
|
links: h.links
|
|
7102
7115
|
}
|
|
7103
|
-
)))), v =
|
|
7116
|
+
)))), v = n.map((h) => me(M({}, h), {
|
|
7104
7117
|
linkContent: Kt(
|
|
7105
7118
|
b,
|
|
7106
7119
|
h.linkContent,
|
|
@@ -7108,7 +7121,7 @@ const Cn = (u) => {
|
|
|
7108
7121
|
h.icon
|
|
7109
7122
|
)
|
|
7110
7123
|
})), C = /* @__PURE__ */ e.createElement(
|
|
7111
|
-
|
|
7124
|
+
s1,
|
|
7112
7125
|
{
|
|
7113
7126
|
menuItems: v,
|
|
7114
7127
|
selectTextFallback: l
|
|
@@ -7137,7 +7150,7 @@ const Cn = (u) => {
|
|
|
7137
7150
|
"performance-large": "Performance Large",
|
|
7138
7151
|
"performance-xl": "Performance Extra Large",
|
|
7139
7152
|
elite: "Elite"
|
|
7140
|
-
},
|
|
7153
|
+
}, Ps = {
|
|
7141
7154
|
drupal: "Drupal",
|
|
7142
7155
|
wordpress: "WordPress",
|
|
7143
7156
|
gatsby: "Gatsby",
|
|
@@ -7150,8 +7163,8 @@ const Cn = (u) => {
|
|
|
7150
7163
|
}, D2 = (l) => {
|
|
7151
7164
|
var r = l, {
|
|
7152
7165
|
option: t,
|
|
7153
|
-
className:
|
|
7154
|
-
} = r,
|
|
7166
|
+
className: s
|
|
7167
|
+
} = r, n = A(r, [
|
|
7155
7168
|
"option",
|
|
7156
7169
|
"className"
|
|
7157
7170
|
]);
|
|
@@ -7162,10 +7175,10 @@ const Cn = (u) => {
|
|
|
7162
7175
|
ref: c,
|
|
7163
7176
|
className: x([
|
|
7164
7177
|
`${d}__option-display`,
|
|
7165
|
-
|
|
7178
|
+
s != null ? s : ""
|
|
7166
7179
|
]),
|
|
7167
7180
|
title: t.name
|
|
7168
|
-
},
|
|
7181
|
+
}, n),
|
|
7169
7182
|
/* @__PURE__ */ e.createElement(
|
|
7170
7183
|
"div",
|
|
7171
7184
|
{
|
|
@@ -7199,11 +7212,11 @@ const Cn = (u) => {
|
|
|
7199
7212
|
)
|
|
7200
7213
|
)
|
|
7201
7214
|
);
|
|
7202
|
-
},
|
|
7215
|
+
}, Bs = (E) => {
|
|
7203
7216
|
var L = E, {
|
|
7204
7217
|
disabled: t = !1,
|
|
7205
|
-
id:
|
|
7206
|
-
isLoading:
|
|
7218
|
+
id: s,
|
|
7219
|
+
isLoading: n = !1,
|
|
7207
7220
|
label: l = "Search sites",
|
|
7208
7221
|
labelStrings: r = {
|
|
7209
7222
|
clearButton: "Clear input text",
|
|
@@ -7270,7 +7283,7 @@ const Cn = (u) => {
|
|
|
7270
7283
|
document.removeEventListener("mousedown", O), document.removeEventListener("keydown", Q);
|
|
7271
7284
|
};
|
|
7272
7285
|
}, [v]);
|
|
7273
|
-
const
|
|
7286
|
+
const se = f.map((O) => {
|
|
7274
7287
|
const { id: Q, machineName: X, name: F } = O;
|
|
7275
7288
|
return {
|
|
7276
7289
|
id: Q,
|
|
@@ -7283,9 +7296,9 @@ const Cn = (u) => {
|
|
|
7283
7296
|
{
|
|
7284
7297
|
disabled: t,
|
|
7285
7298
|
hasClearButton: !1,
|
|
7286
|
-
id: `${
|
|
7299
|
+
id: `${s}-combobox`,
|
|
7287
7300
|
defaultValue: h,
|
|
7288
|
-
isLoading:
|
|
7301
|
+
isLoading: n,
|
|
7289
7302
|
label: l,
|
|
7290
7303
|
labelStrings: r,
|
|
7291
7304
|
loadingText: d,
|
|
@@ -7293,7 +7306,7 @@ const Cn = (u) => {
|
|
|
7293
7306
|
onFocus: c,
|
|
7294
7307
|
onOptionSelect: K,
|
|
7295
7308
|
placeholder: m,
|
|
7296
|
-
options:
|
|
7309
|
+
options: se,
|
|
7297
7310
|
showLabel: !1,
|
|
7298
7311
|
className: `${S}__combobox`
|
|
7299
7312
|
}
|
|
@@ -7330,7 +7343,7 @@ const Cn = (u) => {
|
|
|
7330
7343
|
"div",
|
|
7331
7344
|
M({
|
|
7332
7345
|
className: x([S, T, u != null ? u : ""]),
|
|
7333
|
-
id:
|
|
7346
|
+
id: s,
|
|
7334
7347
|
style: _ ? null : D,
|
|
7335
7348
|
onKeyDown: _ ? null : (O) => {
|
|
7336
7349
|
O.key === "Escape" && Z();
|
|
@@ -7341,26 +7354,26 @@ const Cn = (u) => {
|
|
|
7341
7354
|
}, pt = (r) => {
|
|
7342
7355
|
var d = r, {
|
|
7343
7356
|
children: t,
|
|
7344
|
-
width:
|
|
7345
|
-
className:
|
|
7357
|
+
width: s = "standard",
|
|
7358
|
+
className: n
|
|
7346
7359
|
} = d, l = A(d, [
|
|
7347
7360
|
"children",
|
|
7348
7361
|
"width",
|
|
7349
7362
|
"className"
|
|
7350
7363
|
]);
|
|
7351
|
-
const a = "pds-container", c =
|
|
7364
|
+
const a = "pds-container", c = s !== "standard" ? `${a}--${s}` : null;
|
|
7352
7365
|
return /* @__PURE__ */ e.createElement(
|
|
7353
7366
|
"div",
|
|
7354
7367
|
M({
|
|
7355
|
-
className: x([a, c,
|
|
7368
|
+
className: x([a, c, n != null ? n : ""])
|
|
7356
7369
|
}, l),
|
|
7357
7370
|
t
|
|
7358
7371
|
);
|
|
7359
|
-
},
|
|
7372
|
+
}, Ws = (u) => {
|
|
7360
7373
|
var b = u, {
|
|
7361
7374
|
children: t,
|
|
7362
|
-
colorType:
|
|
7363
|
-
containerWidth:
|
|
7375
|
+
colorType: s = "default",
|
|
7376
|
+
containerWidth: n = "x-wide",
|
|
7364
7377
|
hideBorder: l,
|
|
7365
7378
|
hideLogo: r = !1,
|
|
7366
7379
|
logoDisplayType: d = "full",
|
|
@@ -7391,7 +7404,7 @@ const Cn = (u) => {
|
|
|
7391
7404
|
C && (v = C.isMobile);
|
|
7392
7405
|
const h = ve(It);
|
|
7393
7406
|
h && (a = h.logoLinkContent);
|
|
7394
|
-
const i = "pds-navbar", g = l ? `${i}--noBorder` : "", _ =
|
|
7407
|
+
const i = "pds-navbar", g = l ? `${i}--noBorder` : "", _ = s !== "default" ? `${i}--${s}` : "", $ = v ? `${i}--isMobile` : `${i}--notMobile`, k = (j) => {
|
|
7395
7408
|
const q = j.key;
|
|
7396
7409
|
let O = !1;
|
|
7397
7410
|
switch (q) {
|
|
@@ -7433,7 +7446,7 @@ const Cn = (u) => {
|
|
|
7433
7446
|
}, [E]);
|
|
7434
7447
|
const H = Fe(t), N = H["items-left"], V = H["items-right"];
|
|
7435
7448
|
let I = "default";
|
|
7436
|
-
(
|
|
7449
|
+
(s === "reverse" || s === "reverse-transparent") && (I = "reverse");
|
|
7437
7450
|
const D = we(a) ? a.props.children : null, S = we(a) && D ? Ie(a, {
|
|
7438
7451
|
children: /* @__PURE__ */ e.createElement("img", { className: `${i}__custom-logo`, src: c }),
|
|
7439
7452
|
"aria-label": D || null
|
|
@@ -7464,7 +7477,7 @@ const Cn = (u) => {
|
|
|
7464
7477
|
ref: w
|
|
7465
7478
|
},
|
|
7466
7479
|
/* @__PURE__ */ e.createElement(pt, null, Z)
|
|
7467
|
-
),
|
|
7480
|
+
), se = /* @__PURE__ */ e.createElement(
|
|
7468
7481
|
J1,
|
|
7469
7482
|
{
|
|
7470
7483
|
focusTrapOptions: {
|
|
@@ -7473,7 +7486,7 @@ const Cn = (u) => {
|
|
|
7473
7486
|
}
|
|
7474
7487
|
},
|
|
7475
7488
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(pt, { className: `${i}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__inner-mobile` }, T(), t && W)), /* @__PURE__ */ e.createElement(pt, null, t && K))
|
|
7476
|
-
), Y = /* @__PURE__ */ e.createElement(pt, { width:
|
|
7489
|
+
), Y = /* @__PURE__ */ e.createElement(pt, { width: n, className: `${i}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${i}__logo` }, T()), /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, N ? /* @__PURE__ */ e.createElement("div", { className: `${i}__items-left` }, N) : /* @__PURE__ */ e.createElement("span", null), V && /* @__PURE__ */ e.createElement("div", { className: `${i}__items-right` }, V)));
|
|
7477
7490
|
return /* @__PURE__ */ e.createElement(
|
|
7478
7491
|
"header",
|
|
7479
7492
|
M({
|
|
@@ -7485,12 +7498,12 @@ const Cn = (u) => {
|
|
|
7485
7498
|
f != null ? f : ""
|
|
7486
7499
|
])
|
|
7487
7500
|
}, p),
|
|
7488
|
-
v ?
|
|
7501
|
+
v ? se : Y
|
|
7489
7502
|
);
|
|
7490
7503
|
}, O2 = ({
|
|
7491
7504
|
items: t,
|
|
7492
|
-
label:
|
|
7493
|
-
mobileMenuMaxWidth:
|
|
7505
|
+
label: s,
|
|
7506
|
+
mobileMenuMaxWidth: n = 640
|
|
7494
7507
|
}) => {
|
|
7495
7508
|
const [l, r] = U(!1), [d, a] = U(0);
|
|
7496
7509
|
oe(() => (a(window.innerWidth), window.addEventListener("resize", c), () => {
|
|
@@ -7498,7 +7511,7 @@ const Cn = (u) => {
|
|
|
7498
7511
|
}), []);
|
|
7499
7512
|
const c = () => {
|
|
7500
7513
|
a(window.innerWidth);
|
|
7501
|
-
}, o = d <=
|
|
7514
|
+
}, o = d <= n, m = "pds-nav-menu", { refs: f, context: p } = Ve({
|
|
7502
7515
|
placement: "bottom-start",
|
|
7503
7516
|
open: l,
|
|
7504
7517
|
onOpenChange: r,
|
|
@@ -7528,7 +7541,7 @@ const Cn = (u) => {
|
|
|
7528
7541
|
ref: f.setReference,
|
|
7529
7542
|
type: "button"
|
|
7530
7543
|
}, v()),
|
|
7531
|
-
|
|
7544
|
+
s,
|
|
7532
7545
|
/* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${m}__trigger-icon` })
|
|
7533
7546
|
), l && /* @__PURE__ */ e.createElement(
|
|
7534
7547
|
"ul",
|
|
@@ -7546,11 +7559,11 @@ const Cn = (u) => {
|
|
|
7546
7559
|
!i.isSeparator && i.linkContent
|
|
7547
7560
|
))
|
|
7548
7561
|
));
|
|
7549
|
-
},
|
|
7562
|
+
}, Gs = (a) => {
|
|
7550
7563
|
var c = a, {
|
|
7551
7564
|
ariaLabel: t = "Main Navigation",
|
|
7552
|
-
colorType:
|
|
7553
|
-
menuItems:
|
|
7565
|
+
colorType: s = "default",
|
|
7566
|
+
menuItems: n,
|
|
7554
7567
|
mobileMenuMaxWidth: l = 640,
|
|
7555
7568
|
className: r
|
|
7556
7569
|
} = c, d = A(c, [
|
|
@@ -7581,7 +7594,7 @@ const Cn = (u) => {
|
|
|
7581
7594
|
focusVisible: !0
|
|
7582
7595
|
}));
|
|
7583
7596
|
}, [u]);
|
|
7584
|
-
const g = "pds-nav-menu", _ =
|
|
7597
|
+
const g = "pds-nav-menu", _ = s !== "default" ? `${g}--${s}` : "", $ = i ? `${g}--isMobile` : `${g}--notMobile`, k = de([]), z = (H) => {
|
|
7585
7598
|
const N = k.current.length - 1, W = {
|
|
7586
7599
|
ArrowRight: () => {
|
|
7587
7600
|
p(-1), b(u === -1 ? 1 : u === N ? 0 : u + 1);
|
|
@@ -7590,9 +7603,9 @@ const Cn = (u) => {
|
|
|
7590
7603
|
p(-1), b(u === 0 ? N : u - 1);
|
|
7591
7604
|
},
|
|
7592
7605
|
ArrowDown: () => {
|
|
7593
|
-
var
|
|
7606
|
+
var se, Y, j, q;
|
|
7594
7607
|
L("down");
|
|
7595
|
-
const Z = H.target.parentNode.children[1], K = ((Y = (
|
|
7608
|
+
const Z = H.target.parentNode.children[1], K = ((Y = (se = H.target) == null ? void 0 : se.parentNode.children[1]) == null ? void 0 : Y.children) || ((q = (j = H.target) == null ? void 0 : j.parentNode.parentNode.children[1]) == null ? void 0 : q.children);
|
|
7596
7609
|
v.container != Z && Z != null && C({
|
|
7597
7610
|
container: Z,
|
|
7598
7611
|
containerChildren: [...K]
|
|
@@ -7613,7 +7626,7 @@ const Cn = (u) => {
|
|
|
7613
7626
|
}
|
|
7614
7627
|
return !1;
|
|
7615
7628
|
}, y = [];
|
|
7616
|
-
return
|
|
7629
|
+
return n.map((H, N) => {
|
|
7617
7630
|
const V = `item-${lt()}`, I = H.id ? H.id : V;
|
|
7618
7631
|
H.links ? y.push(
|
|
7619
7632
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7656,11 +7669,11 @@ const Cn = (u) => {
|
|
|
7656
7669
|
}, d),
|
|
7657
7670
|
/* @__PURE__ */ e.createElement("ul", { className: `${g}__menu` }, y)
|
|
7658
7671
|
);
|
|
7659
|
-
},
|
|
7672
|
+
}, Us = (m) => {
|
|
7660
7673
|
var f = m, {
|
|
7661
7674
|
ariaLabel: t,
|
|
7662
|
-
hasMobileMenu:
|
|
7663
|
-
headingText:
|
|
7675
|
+
hasMobileMenu: s = !0,
|
|
7676
|
+
headingText: n,
|
|
7664
7677
|
labels: l = {
|
|
7665
7678
|
submenu: "submenu",
|
|
7666
7679
|
toggle: "Toggle"
|
|
@@ -7804,10 +7817,10 @@ const Cn = (u) => {
|
|
|
7804
7817
|
H
|
|
7805
7818
|
)
|
|
7806
7819
|
);
|
|
7807
|
-
}, k = /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7808
|
-
|
|
7820
|
+
}, k = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, r.map((w, y) => $(w, y)))), z = /* @__PURE__ */ e.createElement(
|
|
7821
|
+
s1,
|
|
7809
7822
|
{
|
|
7810
|
-
headingText:
|
|
7823
|
+
headingText: n,
|
|
7811
7824
|
menuItems: r,
|
|
7812
7825
|
selectTextFallback: a
|
|
7813
7826
|
}
|
|
@@ -7818,13 +7831,13 @@ const Cn = (u) => {
|
|
|
7818
7831
|
"aria-label": t,
|
|
7819
7832
|
className: x([p, c != null ? c : ""])
|
|
7820
7833
|
}, o),
|
|
7821
|
-
C &&
|
|
7834
|
+
C && s ? z : k
|
|
7822
7835
|
);
|
|
7823
|
-
},
|
|
7836
|
+
}, Zs = (m) => {
|
|
7824
7837
|
var f = m, {
|
|
7825
7838
|
ariaLabel: t,
|
|
7826
|
-
hasMobileMenu:
|
|
7827
|
-
headingText:
|
|
7839
|
+
hasMobileMenu: s = !0,
|
|
7840
|
+
headingText: n,
|
|
7828
7841
|
labels: l = {
|
|
7829
7842
|
submenu: "submenu",
|
|
7830
7843
|
toggle: "Toggle"
|
|
@@ -7951,10 +7964,10 @@ const Cn = (u) => {
|
|
|
7951
7964
|
},
|
|
7952
7965
|
V ? $(2, y) : N
|
|
7953
7966
|
);
|
|
7954
|
-
}, z = /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7955
|
-
|
|
7967
|
+
}, z = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, r.map((y, H) => k(y, H)))), w = /* @__PURE__ */ e.createElement(
|
|
7968
|
+
s1,
|
|
7956
7969
|
{
|
|
7957
|
-
headingText:
|
|
7970
|
+
headingText: n,
|
|
7958
7971
|
menuItems: r,
|
|
7959
7972
|
selectTextFallback: a
|
|
7960
7973
|
}
|
|
@@ -7965,12 +7978,12 @@ const Cn = (u) => {
|
|
|
7965
7978
|
"aria-label": t,
|
|
7966
7979
|
className: x([p, c != null ? c : ""])
|
|
7967
7980
|
}, o),
|
|
7968
|
-
C &&
|
|
7981
|
+
C && s ? w : z
|
|
7969
7982
|
);
|
|
7970
7983
|
}, R2 = ({
|
|
7971
7984
|
buttonLabel: t = "Toggle dropdown",
|
|
7972
|
-
filterLabel:
|
|
7973
|
-
filterPlaceholder:
|
|
7985
|
+
filterLabel: s = "Filter items",
|
|
7986
|
+
filterPlaceholder: n = "Filter items...",
|
|
7974
7987
|
links: l,
|
|
7975
7988
|
minFilterItems: r = 5,
|
|
7976
7989
|
noResultsText: d = "No results found"
|
|
@@ -8021,7 +8034,7 @@ const Cn = (u) => {
|
|
|
8021
8034
|
b(""), p(l);
|
|
8022
8035
|
}, Z = l.reduce(
|
|
8023
8036
|
(O, Q) => Ue(O.linkContent).length > Ue(Q.linkContent).length ? O : Q
|
|
8024
|
-
),
|
|
8037
|
+
), se = {
|
|
8025
8038
|
minWidth: "13rem",
|
|
8026
8039
|
width: `${Ue(
|
|
8027
8040
|
Z.linkContent
|
|
@@ -8032,9 +8045,9 @@ const Cn = (u) => {
|
|
|
8032
8045
|
hasClearButton: !0,
|
|
8033
8046
|
onClear: W,
|
|
8034
8047
|
id: "links-filter",
|
|
8035
|
-
label:
|
|
8048
|
+
label: s,
|
|
8036
8049
|
onChange: T,
|
|
8037
|
-
placeholder:
|
|
8050
|
+
placeholder: n,
|
|
8038
8051
|
showLabel: !1,
|
|
8039
8052
|
type: "search",
|
|
8040
8053
|
autoComplete: "off"
|
|
@@ -8082,15 +8095,15 @@ const Cn = (u) => {
|
|
|
8082
8095
|
}, H({
|
|
8083
8096
|
style: M({
|
|
8084
8097
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8085
|
-
},
|
|
8098
|
+
}, se)
|
|
8086
8099
|
})),
|
|
8087
8100
|
/* @__PURE__ */ e.createElement("div", { style: M({}, I) }, j, /* @__PURE__ */ e.createElement("ul", { className: x([v, C]) }, q.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${L}__no-results` }, d) : q))
|
|
8088
8101
|
));
|
|
8089
|
-
},
|
|
8102
|
+
}, qs = (r) => {
|
|
8090
8103
|
var d = r, {
|
|
8091
8104
|
ariaLabel: t,
|
|
8092
|
-
menuItems:
|
|
8093
|
-
className:
|
|
8105
|
+
menuItems: s,
|
|
8106
|
+
className: n
|
|
8094
8107
|
} = d, l = A(d, [
|
|
8095
8108
|
"ariaLabel",
|
|
8096
8109
|
"menuItems",
|
|
@@ -8143,7 +8156,7 @@ const Cn = (u) => {
|
|
|
8143
8156
|
}
|
|
8144
8157
|
)
|
|
8145
8158
|
);
|
|
8146
|
-
}, p =
|
|
8159
|
+
}, p = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, s.map((u, b) => /* @__PURE__ */ e.createElement(
|
|
8147
8160
|
f,
|
|
8148
8161
|
{
|
|
8149
8162
|
key: b,
|
|
@@ -8159,15 +8172,15 @@ const Cn = (u) => {
|
|
|
8159
8172
|
"nav",
|
|
8160
8173
|
M({
|
|
8161
8174
|
"aria-label": t,
|
|
8162
|
-
className: x([o, m,
|
|
8175
|
+
className: x([o, m, n != null ? n : ""])
|
|
8163
8176
|
}, l),
|
|
8164
8177
|
a ? /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, p) : p
|
|
8165
8178
|
);
|
|
8166
|
-
},
|
|
8179
|
+
}, js = (o) => {
|
|
8167
8180
|
var m = o, {
|
|
8168
8181
|
ariaLabel: t = "User menu",
|
|
8169
|
-
menuItems:
|
|
8170
|
-
userEmail:
|
|
8182
|
+
menuItems: s,
|
|
8183
|
+
userEmail: n,
|
|
8171
8184
|
userImageSrc: l,
|
|
8172
8185
|
userName: r,
|
|
8173
8186
|
withinNavbar: d = !0,
|
|
@@ -8221,11 +8234,11 @@ const Cn = (u) => {
|
|
|
8221
8234
|
hasUserFallback: !0,
|
|
8222
8235
|
imageSrc: l,
|
|
8223
8236
|
size: "sm",
|
|
8224
|
-
uniqueId:
|
|
8237
|
+
uniqueId: n,
|
|
8225
8238
|
className: `${i}__avatar`
|
|
8226
8239
|
}
|
|
8227
|
-
), K = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${i}__trigger-icon` }),
|
|
8228
|
-
|
|
8240
|
+
), K = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${i}__trigger-icon` }), se = /* @__PURE__ */ e.createElement("li", { className: `${i}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${i}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${i}__user-email` }, n));
|
|
8241
|
+
s.forEach((B) => {
|
|
8229
8242
|
const J = B.id ? B.id : lt();
|
|
8230
8243
|
E.current.push(J), L.current.push(B);
|
|
8231
8244
|
});
|
|
@@ -8236,7 +8249,7 @@ const Cn = (u) => {
|
|
|
8236
8249
|
B.preventDefault(), B.key === "Enter" && Y(B.currentTarget.id);
|
|
8237
8250
|
}, q = (B) => {
|
|
8238
8251
|
Y(B.currentTarget.id);
|
|
8239
|
-
}, O =
|
|
8252
|
+
}, O = s.map((B, J) => {
|
|
8240
8253
|
const te = E.current[J], fe = `${i}__item`, ie = B.disabled ? `${fe}--disabled` : null;
|
|
8241
8254
|
return /* @__PURE__ */ e.createElement(
|
|
8242
8255
|
"li",
|
|
@@ -8279,7 +8292,7 @@ const Cn = (u) => {
|
|
|
8279
8292
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8280
8293
|
})
|
|
8281
8294
|
}, D()),
|
|
8282
|
-
/* @__PURE__ */ e.createElement("div", { style: M({}, W) }, /* @__PURE__ */ e.createElement("ul", { className: _, role: "menu" },
|
|
8295
|
+
/* @__PURE__ */ e.createElement("div", { style: M({}, W) }, /* @__PURE__ */ e.createElement("ul", { className: _, role: "menu" }, se, /* @__PURE__ */ e.createElement("li", { role: "separator" }), O))
|
|
8283
8296
|
)), X = (B) => {
|
|
8284
8297
|
const J = B.currentTarget;
|
|
8285
8298
|
J.classList.toggle(`${i}__toggle--expanded`), J.setAttribute(
|
|
@@ -8294,7 +8307,7 @@ const Cn = (u) => {
|
|
|
8294
8307
|
"aria-label": t,
|
|
8295
8308
|
onClick: X
|
|
8296
8309
|
},
|
|
8297
|
-
/* @__PURE__ */ e.createElement("span", { className: `${i}__toggle-left` }, Z, r ||
|
|
8310
|
+
/* @__PURE__ */ e.createElement("span", { className: `${i}__toggle-left` }, Z, r || n),
|
|
8298
8311
|
K
|
|
8299
8312
|
), /* @__PURE__ */ e.createElement("div", { className: `${i}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
8300
8313
|
"ul",
|
|
@@ -8302,7 +8315,7 @@ const Cn = (u) => {
|
|
|
8302
8315
|
className: [_, `${_}--isMobile`].join(" ").trim(),
|
|
8303
8316
|
role: "menu"
|
|
8304
8317
|
},
|
|
8305
|
-
|
|
8318
|
+
se,
|
|
8306
8319
|
/* @__PURE__ */ e.createElement("li", { role: "separator" }),
|
|
8307
8320
|
O
|
|
8308
8321
|
)));
|
|
@@ -8318,11 +8331,11 @@ const Cn = (u) => {
|
|
|
8318
8331
|
gold: "Gold",
|
|
8319
8332
|
platinum: "Platinum",
|
|
8320
8333
|
diamond: "Diamond"
|
|
8321
|
-
},
|
|
8334
|
+
}, Ks = (p) => {
|
|
8322
8335
|
var u = p, {
|
|
8323
8336
|
ariaLabel: t = "Workspace selector menu",
|
|
8324
|
-
createWorkspaceLink:
|
|
8325
|
-
filterPlaceholder:
|
|
8337
|
+
createWorkspaceLink: s,
|
|
8338
|
+
filterPlaceholder: n = "Find workspace...",
|
|
8326
8339
|
filterLabel: l = "Filter workspaces",
|
|
8327
8340
|
menuHeading: r = "Workspaces",
|
|
8328
8341
|
minFilterItems: d = 8,
|
|
@@ -8358,7 +8371,7 @@ const Cn = (u) => {
|
|
|
8358
8371
|
openOnArrowKeyDown: !0,
|
|
8359
8372
|
focusItemOnHover: !0,
|
|
8360
8373
|
focusItemOnOpen: !1
|
|
8361
|
-
}), { getReferenceProps: K, getFloatingProps:
|
|
8374
|
+
}), { getReferenceProps: K, getFloatingProps: se, getItemProps: Y } = Ae(
|
|
8362
8375
|
[T, W, S, Z]
|
|
8363
8376
|
), { isMounted: j, styles: q } = Qe(D, {
|
|
8364
8377
|
duration: {
|
|
@@ -8388,7 +8401,7 @@ const Cn = (u) => {
|
|
|
8388
8401
|
h(ce);
|
|
8389
8402
|
}, [o]);
|
|
8390
8403
|
const X = (ce) => {
|
|
8391
|
-
ce.preventDefault(), ce.key === "Enter" && i.current[L].querySelector("a").click(), ce.key === "Tab" && (ce.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) :
|
|
8404
|
+
ce.preventDefault(), ce.key === "Enter" && i.current[L].querySelector("a").click(), ce.key === "Tab" && (ce.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) : s ? g.current.querySelector("a").focus() : E(!1));
|
|
8392
8405
|
}, F = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8393
8406
|
jt,
|
|
8394
8407
|
{
|
|
@@ -8419,7 +8432,7 @@ const Cn = (u) => {
|
|
|
8419
8432
|
id: "workspace-filter",
|
|
8420
8433
|
label: l,
|
|
8421
8434
|
onChange: Q,
|
|
8422
|
-
placeholder:
|
|
8435
|
+
placeholder: n,
|
|
8423
8436
|
showLabel: !1,
|
|
8424
8437
|
type: "search"
|
|
8425
8438
|
}
|
|
@@ -8461,12 +8474,12 @@ const Cn = (u) => {
|
|
|
8461
8474
|
)
|
|
8462
8475
|
);
|
|
8463
8476
|
}
|
|
8464
|
-
), fe =
|
|
8477
|
+
), fe = s && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref: g }, /* @__PURE__ */ e.createElement(
|
|
8465
8478
|
yt,
|
|
8466
8479
|
{
|
|
8467
8480
|
displayType: "icon-end",
|
|
8468
8481
|
iconName: "plus",
|
|
8469
|
-
linkContent:
|
|
8482
|
+
linkContent: s,
|
|
8470
8483
|
variant: "subtle",
|
|
8471
8484
|
onBlur: E.bind(null, !1),
|
|
8472
8485
|
onClick: E.bind(null, !1)
|
|
@@ -8489,7 +8502,7 @@ const Cn = (u) => {
|
|
|
8489
8502
|
style: {
|
|
8490
8503
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8491
8504
|
}
|
|
8492
|
-
},
|
|
8505
|
+
}, se()),
|
|
8493
8506
|
/* @__PURE__ */ e.createElement("div", { style: M({}, q) }, J, /* @__PURE__ */ e.createElement("ul", { className: x([H, N]), role: "menu" }, /* @__PURE__ */ e.createElement("li", { className: `${w}__item-heading`, role: "presentation" }, r), te.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${w}__no-results` }, a) : te), fe)
|
|
8494
8507
|
)), be = (ce) => {
|
|
8495
8508
|
const le = ce.target;
|
|
@@ -8528,11 +8541,11 @@ const Cn = (u) => {
|
|
|
8528
8541
|
info: "circleInfo",
|
|
8529
8542
|
warning: "triangleExclamation",
|
|
8530
8543
|
critical: "diamondExclamation"
|
|
8531
|
-
},
|
|
8544
|
+
}, Xs = (c) => {
|
|
8532
8545
|
var o = c, {
|
|
8533
8546
|
banners: t,
|
|
8534
|
-
dismissLabel:
|
|
8535
|
-
labelNext:
|
|
8547
|
+
dismissLabel: s = "Dismiss",
|
|
8548
|
+
labelNext: n = "Go to next message",
|
|
8536
8549
|
labelPrevious: l = "Go to previous message",
|
|
8537
8550
|
typeLabels: r = {
|
|
8538
8551
|
info: "Information",
|
|
@@ -8622,7 +8635,7 @@ const Cn = (u) => {
|
|
|
8622
8635
|
tabIndex: h(z),
|
|
8623
8636
|
type: "button"
|
|
8624
8637
|
},
|
|
8625
|
-
|
|
8638
|
+
s
|
|
8626
8639
|
)
|
|
8627
8640
|
);
|
|
8628
8641
|
};
|
|
@@ -8651,7 +8664,7 @@ const Cn = (u) => {
|
|
|
8651
8664
|
iconName: "angleRight",
|
|
8652
8665
|
size: "lg",
|
|
8653
8666
|
className: `${u}__nav-button ${u}__nav-button--next`,
|
|
8654
|
-
ariaLabel:
|
|
8667
|
+
ariaLabel: n,
|
|
8655
8668
|
onClick: g
|
|
8656
8669
|
}
|
|
8657
8670
|
), m.map((k, z) => $(k, z))) : $(m[0], 0)
|
|
@@ -8661,11 +8674,11 @@ const Cn = (u) => {
|
|
|
8661
8674
|
warning: "triangleExclamation",
|
|
8662
8675
|
success: "circleCheck",
|
|
8663
8676
|
critical: "diamondExclamation"
|
|
8664
|
-
},
|
|
8677
|
+
}, Ys = (a) => {
|
|
8665
8678
|
var c = a, {
|
|
8666
8679
|
title: t,
|
|
8667
|
-
secondaryText:
|
|
8668
|
-
type:
|
|
8680
|
+
secondaryText: s,
|
|
8681
|
+
type: n,
|
|
8669
8682
|
typeLabels: l = {
|
|
8670
8683
|
info: "Information",
|
|
8671
8684
|
success: "Success",
|
|
@@ -8688,20 +8701,20 @@ const Cn = (u) => {
|
|
|
8688
8701
|
info: `${o}--info`,
|
|
8689
8702
|
critical: `${o}--critical`,
|
|
8690
8703
|
working: `${o}--working`
|
|
8691
|
-
}, f = t ? `${o}--hasTitle` : null, u = ["critical", "warning"].includes(
|
|
8704
|
+
}, f = t ? `${o}--hasTitle` : null, u = ["critical", "warning"].includes(n) ? "alert" : "status", b = `${l[n]}: `;
|
|
8692
8705
|
return /* @__PURE__ */ e.createElement(
|
|
8693
8706
|
"div",
|
|
8694
8707
|
M({
|
|
8695
|
-
className: [o, m[
|
|
8708
|
+
className: [o, m[n], f, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8696
8709
|
role: u
|
|
8697
8710
|
}, d),
|
|
8698
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${
|
|
8711
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${n}` }, n === "working" ? /* @__PURE__ */ e.createElement(xt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
8699
8712
|
P,
|
|
8700
8713
|
{
|
|
8701
|
-
iconName: `${
|
|
8714
|
+
iconName: `${n}` in Bt ? Bt[n] : Bt.info,
|
|
8702
8715
|
iconSize: "md"
|
|
8703
8716
|
}
|
|
8704
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${o}__secondaryText` },
|
|
8717
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${o}__secondaryText` }, s)))
|
|
8705
8718
|
);
|
|
8706
8719
|
}, Wt = {
|
|
8707
8720
|
info: "circleInfo",
|
|
@@ -8709,11 +8722,11 @@ const Cn = (u) => {
|
|
|
8709
8722
|
success: "circleCheck",
|
|
8710
8723
|
critical: "diamondExclamation",
|
|
8711
8724
|
discovery: "squareQuestion"
|
|
8712
|
-
},
|
|
8725
|
+
}, Qs = (f) => {
|
|
8713
8726
|
var p = f, {
|
|
8714
8727
|
dismissLabel: t = "Dismiss",
|
|
8715
|
-
id:
|
|
8716
|
-
isDismissible:
|
|
8728
|
+
id: s,
|
|
8729
|
+
isDismissible: n,
|
|
8717
8730
|
onDismiss: l,
|
|
8718
8731
|
message: r,
|
|
8719
8732
|
title: d,
|
|
@@ -8751,7 +8764,7 @@ const Cn = (u) => {
|
|
|
8751
8764
|
once: !0
|
|
8752
8765
|
});
|
|
8753
8766
|
}, g = ($) => {
|
|
8754
|
-
l($,
|
|
8767
|
+
l($, s);
|
|
8755
8768
|
}, _ = () => {
|
|
8756
8769
|
i(), u.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
8757
8770
|
u.current.classList.toggle(E.dismissing), u.current.classList.toggle(E.dismissed);
|
|
@@ -8761,7 +8774,7 @@ const Cn = (u) => {
|
|
|
8761
8774
|
"div",
|
|
8762
8775
|
M({
|
|
8763
8776
|
className: [b, E[a], L, o != null ? o : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8764
|
-
id:
|
|
8777
|
+
id: s,
|
|
8765
8778
|
ref: u,
|
|
8766
8779
|
role: C
|
|
8767
8780
|
}, m),
|
|
@@ -8772,7 +8785,7 @@ const Cn = (u) => {
|
|
|
8772
8785
|
iconSize: "md"
|
|
8773
8786
|
}
|
|
8774
8787
|
)), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), d && /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, d), /* @__PURE__ */ e.createElement("div", { className: `${b}__message` }, r))),
|
|
8775
|
-
|
|
8788
|
+
n && /* @__PURE__ */ e.createElement(
|
|
8776
8789
|
"button",
|
|
8777
8790
|
{
|
|
8778
8791
|
className: `${b}__dismiss`,
|
|
@@ -8797,8 +8810,8 @@ const Cn = (u) => {
|
|
|
8797
8810
|
working: "Working..."
|
|
8798
8811
|
}, W2 = ({
|
|
8799
8812
|
children: t,
|
|
8800
|
-
id:
|
|
8801
|
-
type:
|
|
8813
|
+
id: s,
|
|
8814
|
+
type: n = "info",
|
|
8802
8815
|
typeLabels: l = B2,
|
|
8803
8816
|
className: r
|
|
8804
8817
|
}) => {
|
|
@@ -8811,26 +8824,26 @@ const Cn = (u) => {
|
|
|
8811
8824
|
dismissing: `${d}--dismissing`,
|
|
8812
8825
|
dismissed: `${d}--dismissed`,
|
|
8813
8826
|
transition: `${d}--transition`
|
|
8814
|
-
}, c = `${l[
|
|
8827
|
+
}, c = `${l[n]} `;
|
|
8815
8828
|
return /* @__PURE__ */ e.createElement(
|
|
8816
8829
|
"div",
|
|
8817
8830
|
{
|
|
8818
|
-
className: x([d, a[
|
|
8819
|
-
id:
|
|
8831
|
+
className: x([d, a[n], r]),
|
|
8832
|
+
id: s
|
|
8820
8833
|
},
|
|
8821
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__icon-container` },
|
|
8834
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__icon-container` }, n === "working" ? /* @__PURE__ */ e.createElement(xt, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
8822
8835
|
P,
|
|
8823
8836
|
{
|
|
8824
|
-
iconName: `${
|
|
8825
|
-
className: `${d}__icon ${d}__icon--${
|
|
8837
|
+
iconName: `${n}` in Gt ? Gt[n] : Gt.info,
|
|
8838
|
+
className: `${d}__icon ${d}__icon--${n}`
|
|
8826
8839
|
}
|
|
8827
8840
|
)),
|
|
8828
8841
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c), t)
|
|
8829
8842
|
);
|
|
8830
|
-
},
|
|
8843
|
+
}, Js = ({
|
|
8831
8844
|
autoCloseDuration: t = 5e3,
|
|
8832
|
-
limit:
|
|
8833
|
-
position:
|
|
8845
|
+
limit: s = 5,
|
|
8846
|
+
position: n = "bottom-right",
|
|
8834
8847
|
className: l
|
|
8835
8848
|
}) => {
|
|
8836
8849
|
const d = x(["pds-toaster", l]);
|
|
@@ -8841,47 +8854,47 @@ const Cn = (u) => {
|
|
|
8841
8854
|
autoClose: t,
|
|
8842
8855
|
draggable: !1,
|
|
8843
8856
|
icon: !1,
|
|
8844
|
-
limit:
|
|
8857
|
+
limit: s,
|
|
8845
8858
|
newestOnTop: !0,
|
|
8846
|
-
position:
|
|
8859
|
+
position: n,
|
|
8847
8860
|
role: "status",
|
|
8848
8861
|
transition: t2
|
|
8849
8862
|
}
|
|
8850
8863
|
));
|
|
8851
8864
|
};
|
|
8852
8865
|
var G2 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Warning = "warning", t.Working = "working", t.Success = "success", t.Info = "info", t))(G2 || {});
|
|
8853
|
-
const
|
|
8854
|
-
const t = (
|
|
8855
|
-
const d = /* @__PURE__ */ e.createElement(W2, { type:
|
|
8866
|
+
const en = () => {
|
|
8867
|
+
const t = (n, l, r = {}) => {
|
|
8868
|
+
const d = /* @__PURE__ */ e.createElement(W2, { type: n }, l);
|
|
8856
8869
|
let a = M({}, r);
|
|
8857
|
-
return (
|
|
8870
|
+
return (n === "critical" || n === "warning") && (a = me(M({}, a), {
|
|
8858
8871
|
autoClose: !1,
|
|
8859
8872
|
role: "alert"
|
|
8860
|
-
})),
|
|
8873
|
+
})), n === "working" && (a = me(M({}, a), {
|
|
8861
8874
|
autoClose: !1,
|
|
8862
8875
|
closeButton: !1,
|
|
8863
8876
|
closeOnClick: !1
|
|
8864
8877
|
})), c1(d, a);
|
|
8865
|
-
},
|
|
8878
|
+
}, s = s2({
|
|
8866
8879
|
collapse: !1,
|
|
8867
8880
|
enter: "pds-toast--bounceInPlace",
|
|
8868
8881
|
exit: "pds-toast--slideOut"
|
|
8869
8882
|
});
|
|
8870
|
-
return [t, c1,
|
|
8871
|
-
}, ht = "...", bt = (t,
|
|
8872
|
-
const
|
|
8873
|
-
return Array.from({ length:
|
|
8883
|
+
return [t, c1, s];
|
|
8884
|
+
}, ht = "...", bt = (t, s) => {
|
|
8885
|
+
const n = s - t + 1;
|
|
8886
|
+
return Array.from({ length: n }, (l, r) => r + t);
|
|
8874
8887
|
}, U2 = ({
|
|
8875
8888
|
bufferCount: t = 1,
|
|
8876
|
-
currentPage:
|
|
8877
|
-
itemsPerPage:
|
|
8889
|
+
currentPage: s,
|
|
8890
|
+
itemsPerPage: n,
|
|
8878
8891
|
totalItemCount: l
|
|
8879
8892
|
}) => _1(() => {
|
|
8880
|
-
const d = Math.ceil(l /
|
|
8893
|
+
const d = Math.ceil(l / n), a = t + 5, c = 1, o = d;
|
|
8881
8894
|
if (a >= d)
|
|
8882
8895
|
return bt(1, d);
|
|
8883
|
-
const m = Math.max(
|
|
8884
|
-
|
|
8896
|
+
const m = Math.max(s - t, 1), f = Math.min(
|
|
8897
|
+
s + t,
|
|
8885
8898
|
d
|
|
8886
8899
|
), p = m > 2, u = f < d - 2;
|
|
8887
8900
|
if (!p && u) {
|
|
@@ -8905,11 +8918,11 @@ const ts = () => {
|
|
|
8905
8918
|
o
|
|
8906
8919
|
];
|
|
8907
8920
|
}
|
|
8908
|
-
}, [l,
|
|
8921
|
+
}, [l, n, t, s]), tn = (f) => {
|
|
8909
8922
|
var p = f, {
|
|
8910
8923
|
bufferCount: t = 1,
|
|
8911
|
-
currentPage:
|
|
8912
|
-
headingLevel:
|
|
8924
|
+
currentPage: s,
|
|
8925
|
+
headingLevel: n = "h2",
|
|
8913
8926
|
headingText: l = "Pagination",
|
|
8914
8927
|
itemsPerPage: r = 10,
|
|
8915
8928
|
labelStrings: d = {
|
|
@@ -8931,16 +8944,16 @@ const ts = () => {
|
|
|
8931
8944
|
"className"
|
|
8932
8945
|
]);
|
|
8933
8946
|
const u = U2({
|
|
8934
|
-
currentPage:
|
|
8947
|
+
currentPage: s,
|
|
8935
8948
|
totalItemCount: c,
|
|
8936
8949
|
bufferCount: t,
|
|
8937
8950
|
itemsPerPage: r
|
|
8938
8951
|
}), b = u[u.length - 1], E = () => {
|
|
8939
|
-
a(
|
|
8952
|
+
a(s + 1);
|
|
8940
8953
|
}, L = () => {
|
|
8941
|
-
a(
|
|
8954
|
+
a(s - 1);
|
|
8942
8955
|
}, v = "pds-pagination", C = `${v}__item`, h = `${C}--current`, i = `${C}--disabled`;
|
|
8943
|
-
return
|
|
8956
|
+
return s === 0 || u.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
8944
8957
|
"nav",
|
|
8945
8958
|
M({
|
|
8946
8959
|
"aria-labelledby": "pagination",
|
|
@@ -8952,7 +8965,7 @@ const ts = () => {
|
|
|
8952
8965
|
id: "pagination",
|
|
8953
8966
|
baseClass: v,
|
|
8954
8967
|
className: "visually-hidden",
|
|
8955
|
-
level:
|
|
8968
|
+
level: n
|
|
8956
8969
|
},
|
|
8957
8970
|
l
|
|
8958
8971
|
),
|
|
@@ -8962,15 +8975,15 @@ const ts = () => {
|
|
|
8962
8975
|
className: x([
|
|
8963
8976
|
C,
|
|
8964
8977
|
`${C}--prev`,
|
|
8965
|
-
|
|
8978
|
+
s === 1 ? i : void 0
|
|
8966
8979
|
])
|
|
8967
8980
|
},
|
|
8968
8981
|
/* @__PURE__ */ e.createElement(
|
|
8969
8982
|
"button",
|
|
8970
8983
|
{
|
|
8971
|
-
"aria-disabled":
|
|
8984
|
+
"aria-disabled": s === 1 ? !0 : void 0,
|
|
8972
8985
|
"aria-label": d.previous,
|
|
8973
|
-
onClick:
|
|
8986
|
+
onClick: s === 1 ? void 0 : L,
|
|
8974
8987
|
type: "button"
|
|
8975
8988
|
},
|
|
8976
8989
|
/* @__PURE__ */ e.createElement(P, { iconName: "arrowLeft" })
|
|
@@ -8988,13 +9001,13 @@ const ts = () => {
|
|
|
8988
9001
|
key: _,
|
|
8989
9002
|
className: x([
|
|
8990
9003
|
C,
|
|
8991
|
-
|
|
9004
|
+
s === g ? h : void 0
|
|
8992
9005
|
])
|
|
8993
9006
|
},
|
|
8994
9007
|
/* @__PURE__ */ e.createElement(
|
|
8995
9008
|
"button",
|
|
8996
9009
|
{
|
|
8997
|
-
"aria-current":
|
|
9010
|
+
"aria-current": s === g ? "page" : void 0,
|
|
8998
9011
|
onClick: () => a(Number(g)),
|
|
8999
9012
|
type: "button"
|
|
9000
9013
|
},
|
|
@@ -9006,26 +9019,26 @@ const ts = () => {
|
|
|
9006
9019
|
className: x([
|
|
9007
9020
|
C,
|
|
9008
9021
|
`${C}--next`,
|
|
9009
|
-
|
|
9022
|
+
s === b ? i : void 0
|
|
9010
9023
|
])
|
|
9011
9024
|
},
|
|
9012
9025
|
/* @__PURE__ */ e.createElement(
|
|
9013
9026
|
"button",
|
|
9014
9027
|
{
|
|
9015
|
-
"aria-disabled":
|
|
9028
|
+
"aria-disabled": s === b ? !0 : void 0,
|
|
9016
9029
|
"aria-label": d.next,
|
|
9017
|
-
onClick:
|
|
9030
|
+
onClick: s === b ? void 0 : E,
|
|
9018
9031
|
type: "button"
|
|
9019
9032
|
},
|
|
9020
9033
|
/* @__PURE__ */ e.createElement(P, { iconName: "arrowRight" })
|
|
9021
9034
|
)
|
|
9022
9035
|
))
|
|
9023
9036
|
);
|
|
9024
|
-
},
|
|
9037
|
+
}, sn = (a) => {
|
|
9025
9038
|
var c = a, {
|
|
9026
9039
|
children: t,
|
|
9027
|
-
id:
|
|
9028
|
-
isOpen:
|
|
9040
|
+
id: s,
|
|
9041
|
+
isOpen: n = !1,
|
|
9029
9042
|
summary: l,
|
|
9030
9043
|
className: r
|
|
9031
9044
|
} = c, d = A(c, [
|
|
@@ -9035,7 +9048,7 @@ const ts = () => {
|
|
|
9035
9048
|
"summary",
|
|
9036
9049
|
"className"
|
|
9037
9050
|
]);
|
|
9038
|
-
const [o, m] = U(
|
|
9051
|
+
const [o, m] = U(n), f = s || `expansion-panel-${lt()}`, p = "pds-expansion-panel", u = de(null), b = de(null), E = de(null);
|
|
9039
9052
|
return oe(() => {
|
|
9040
9053
|
const L = u.current, v = b.current, C = E.current;
|
|
9041
9054
|
if (!L || !v || !C) return;
|
|
@@ -9073,7 +9086,7 @@ const ts = () => {
|
|
|
9073
9086
|
{
|
|
9074
9087
|
key: f,
|
|
9075
9088
|
id: f,
|
|
9076
|
-
open:
|
|
9089
|
+
open: n,
|
|
9077
9090
|
ref: u
|
|
9078
9091
|
},
|
|
9079
9092
|
/* @__PURE__ */ e.createElement("summary", { ref: b }, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(
|
|
@@ -9085,29 +9098,29 @@ const ts = () => {
|
|
|
9085
9098
|
)),
|
|
9086
9099
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content`, ref: E }, t)
|
|
9087
9100
|
));
|
|
9088
|
-
},
|
|
9101
|
+
}, nn = (r) => {
|
|
9089
9102
|
var d = r, {
|
|
9090
9103
|
children: t,
|
|
9091
|
-
displayType:
|
|
9092
|
-
className:
|
|
9104
|
+
displayType: s = "standard",
|
|
9105
|
+
className: n
|
|
9093
9106
|
} = d, l = A(d, [
|
|
9094
9107
|
"children",
|
|
9095
9108
|
"displayType",
|
|
9096
9109
|
"className"
|
|
9097
9110
|
]);
|
|
9098
|
-
const a = "pds-expansion-panel-group", c = `${a}--${
|
|
9111
|
+
const a = "pds-expansion-panel-group", c = `${a}--${s}`;
|
|
9099
9112
|
return /* @__PURE__ */ e.createElement(
|
|
9100
9113
|
"div",
|
|
9101
9114
|
M({
|
|
9102
|
-
className: x([a, c,
|
|
9115
|
+
className: x([a, c, n])
|
|
9103
9116
|
}, l),
|
|
9104
9117
|
t
|
|
9105
9118
|
);
|
|
9106
|
-
},
|
|
9119
|
+
}, an = (c) => {
|
|
9107
9120
|
var o = c, {
|
|
9108
9121
|
children: t,
|
|
9109
|
-
hasStatusIndicator:
|
|
9110
|
-
padding:
|
|
9122
|
+
hasStatusIndicator: s = !1,
|
|
9123
|
+
padding: n = "standard",
|
|
9111
9124
|
statusType: l,
|
|
9112
9125
|
variant: r = "default",
|
|
9113
9126
|
className: d
|
|
@@ -9119,20 +9132,20 @@ const ts = () => {
|
|
|
9119
9132
|
"variant",
|
|
9120
9133
|
"className"
|
|
9121
9134
|
]);
|
|
9122
|
-
const m = "pds-panel", f =
|
|
9135
|
+
const m = "pds-panel", f = s ? `${m}__status ${m}__status-${l}` : null, p = `${m}--${r}`, u = `${m}__content`, b = n !== "standard" ? `${u}--pad-${n}` : null;
|
|
9123
9136
|
return /* @__PURE__ */ e.createElement(
|
|
9124
9137
|
"div",
|
|
9125
9138
|
M({
|
|
9126
9139
|
className: [m, p, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
9127
9140
|
}, a),
|
|
9128
|
-
|
|
9141
|
+
s && l && /* @__PURE__ */ e.createElement("span", { className: f }),
|
|
9129
9142
|
/* @__PURE__ */ e.createElement("div", { className: x([u, b]) }, t)
|
|
9130
9143
|
);
|
|
9131
|
-
},
|
|
9144
|
+
}, ln = (d) => {
|
|
9132
9145
|
var a = d, {
|
|
9133
9146
|
background: t = "default",
|
|
9134
|
-
children:
|
|
9135
|
-
hasBorder:
|
|
9147
|
+
children: s,
|
|
9148
|
+
hasBorder: n = !0,
|
|
9136
9149
|
className: l
|
|
9137
9150
|
} = a, r = A(a, [
|
|
9138
9151
|
"background",
|
|
@@ -9140,7 +9153,7 @@ const ts = () => {
|
|
|
9140
9153
|
"hasBorder",
|
|
9141
9154
|
"className"
|
|
9142
9155
|
]);
|
|
9143
|
-
const c = "pds-panel-list", o = t !== "default" ? `${c}--${t}` : null, m =
|
|
9156
|
+
const c = "pds-panel-list", o = t !== "default" ? `${c}--${t}` : null, m = n ? null : `${c}--borderless`;
|
|
9144
9157
|
return /* @__PURE__ */ e.createElement(
|
|
9145
9158
|
"ul",
|
|
9146
9159
|
M({
|
|
@@ -9151,17 +9164,17 @@ const ts = () => {
|
|
|
9151
9164
|
l != null ? l : ""
|
|
9152
9165
|
])
|
|
9153
9166
|
}, r),
|
|
9154
|
-
|
|
9167
|
+
s
|
|
9155
9168
|
);
|
|
9156
|
-
},
|
|
9157
|
-
var r = l, { children: t, className:
|
|
9169
|
+
}, cn = (l) => {
|
|
9170
|
+
var r = l, { children: t, className: s } = r, n = A(r, ["children", "className"]);
|
|
9158
9171
|
const d = "pds-panel-row", a = Fe(t), c = a["items-left"], o = a["items-right"];
|
|
9159
|
-
return /* @__PURE__ */ e.createElement("li", M({ className: x([d,
|
|
9160
|
-
}, at = 8, u1 = 14, Z2 = 6,
|
|
9172
|
+
return /* @__PURE__ */ e.createElement("li", M({ className: x([d, s != null ? s : ""]) }, n), c && /* @__PURE__ */ e.createElement("div", { className: `${d}__items ${d}__items--left` }, c), o && /* @__PURE__ */ e.createElement("div", { className: `${d}__items ${d}__items--right` }, o));
|
|
9173
|
+
}, at = 8, u1 = 14, Z2 = 6, rn = (L) => {
|
|
9161
9174
|
var v = L, {
|
|
9162
9175
|
content: t,
|
|
9163
|
-
closeButtonLabel:
|
|
9164
|
-
customTrigger:
|
|
9176
|
+
closeButtonLabel: s = "Close",
|
|
9177
|
+
customTrigger: n = !1,
|
|
9165
9178
|
hasCloseButton: l = !1,
|
|
9166
9179
|
offsetValue: r = 0,
|
|
9167
9180
|
onClose: d = () => {
|
|
@@ -9198,10 +9211,10 @@ const ts = () => {
|
|
|
9198
9211
|
}, [f]), oe(() => {
|
|
9199
9212
|
p(C);
|
|
9200
9213
|
}, [C]);
|
|
9201
|
-
const i = typeof
|
|
9214
|
+
const i = typeof n, g = "pds-popover", _ = x([
|
|
9202
9215
|
`${g}__trigger-custom`,
|
|
9203
9216
|
i === "string" ? `${g}__trigger-text` : ""
|
|
9204
|
-
]), $ =
|
|
9217
|
+
]), $ = n ? r : 0, k = de(null), { refs: z, floatingStyles: w, context: y, middlewareData: H } = Ve({
|
|
9205
9218
|
placement: a,
|
|
9206
9219
|
open: C,
|
|
9207
9220
|
onOpenChange(X) {
|
|
@@ -9220,7 +9233,7 @@ const ts = () => {
|
|
|
9220
9233
|
V,
|
|
9221
9234
|
I,
|
|
9222
9235
|
D
|
|
9223
|
-
]), W = (q = (j = H.arrow) == null ? void 0 : j.x) != null ? q : 0, Z = (Q = (O = H.arrow) == null ? void 0 : O.y) != null ? Q : 0, K = W + u1 / 2,
|
|
9236
|
+
]), W = (q = (j = H.arrow) == null ? void 0 : j.x) != null ? q : 0, Z = (Q = (O = H.arrow) == null ? void 0 : O.y) != null ? Q : 0, K = W + u1 / 2, se = Z + at, { isMounted: Y } = Qe(y, {
|
|
9224
9237
|
initial: {
|
|
9225
9238
|
transform: "scale(0)"
|
|
9226
9239
|
},
|
|
@@ -9228,8 +9241,8 @@ const ts = () => {
|
|
|
9228
9241
|
transformOrigin: {
|
|
9229
9242
|
top: `${K}px calc(100% + ${at}px)`,
|
|
9230
9243
|
bottom: `${K}px ${-at}px`,
|
|
9231
|
-
left: `calc(100% + ${at}px) ${
|
|
9232
|
-
right: `${-at}px ${
|
|
9244
|
+
left: `calc(100% + ${at}px) ${se}px`,
|
|
9245
|
+
right: `${-at}px ${se}px`
|
|
9233
9246
|
}[X]
|
|
9234
9247
|
})
|
|
9235
9248
|
});
|
|
@@ -9241,7 +9254,7 @@ const ts = () => {
|
|
|
9241
9254
|
role: "button",
|
|
9242
9255
|
tabIndex: 0
|
|
9243
9256
|
}, S()),
|
|
9244
|
-
|
|
9257
|
+
n ? /* @__PURE__ */ e.createElement("span", { className: _ }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement(
|
|
9245
9258
|
P,
|
|
9246
9259
|
{
|
|
9247
9260
|
iconName: o,
|
|
@@ -9280,7 +9293,7 @@ const ts = () => {
|
|
|
9280
9293
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__container-inner` }, c && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, c), t && /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t), l && /* @__PURE__ */ e.createElement("div", { className: `${g}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9281
9294
|
k1,
|
|
9282
9295
|
{
|
|
9283
|
-
ariaLabel:
|
|
9296
|
+
ariaLabel: s,
|
|
9284
9297
|
onClick: N,
|
|
9285
9298
|
iconSize: "lg"
|
|
9286
9299
|
}
|
|
@@ -9293,14 +9306,14 @@ const ts = () => {
|
|
|
9293
9306
|
success: "--pds-color-status-success-foreground",
|
|
9294
9307
|
warning: "--pds-color-status-warning-foreground",
|
|
9295
9308
|
critical: "--pds-color-status-critical-foreground"
|
|
9296
|
-
},
|
|
9309
|
+
}, on = (p) => {
|
|
9297
9310
|
var u = p, {
|
|
9298
9311
|
colorBreakpoints: t = [
|
|
9299
9312
|
{ colorType: "info", percentage: 0 },
|
|
9300
9313
|
{ colorType: "success", percentage: 100 }
|
|
9301
9314
|
],
|
|
9302
|
-
id:
|
|
9303
|
-
label:
|
|
9315
|
+
id: s,
|
|
9316
|
+
label: n,
|
|
9304
9317
|
message: l,
|
|
9305
9318
|
messagePosition: r = "below",
|
|
9306
9319
|
percentage: d,
|
|
@@ -9320,7 +9333,7 @@ const ts = () => {
|
|
|
9320
9333
|
"size",
|
|
9321
9334
|
"className"
|
|
9322
9335
|
]);
|
|
9323
|
-
const b =
|
|
9336
|
+
const b = s || lt(), E = "pds-progress-bar", L = a ? `${E}__label` : "visually-hidden", v = `${E}__track ${E}__track--${o}`, C = d > 100 ? 100 : d;
|
|
9324
9337
|
let h = "neutral";
|
|
9325
9338
|
t.forEach(($) => {
|
|
9326
9339
|
d >= $.percentage && (h = $.colorType);
|
|
@@ -9332,7 +9345,7 @@ const ts = () => {
|
|
|
9332
9345
|
className: [E, m].join(" ").trim().replace(/\s+/g, " "),
|
|
9333
9346
|
style: { "--bar-percentage": `${C}%` }
|
|
9334
9347
|
}, f),
|
|
9335
|
-
/* @__PURE__ */ e.createElement("div", { id: b, className: L },
|
|
9348
|
+
/* @__PURE__ */ e.createElement("div", { id: b, className: L }, n),
|
|
9336
9349
|
(g || c) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, g && i, c && /* @__PURE__ */ e.createElement(
|
|
9337
9350
|
"div",
|
|
9338
9351
|
{
|
|
@@ -9368,8 +9381,8 @@ const ts = () => {
|
|
|
9368
9381
|
}, q2 = (m) => {
|
|
9369
9382
|
var f = m, {
|
|
9370
9383
|
id: t,
|
|
9371
|
-
innerLabel:
|
|
9372
|
-
label:
|
|
9384
|
+
innerLabel: s,
|
|
9385
|
+
label: n,
|
|
9373
9386
|
percentage: l,
|
|
9374
9387
|
showLabel: r = !1,
|
|
9375
9388
|
showPercentage: d = !1,
|
|
@@ -9390,7 +9403,7 @@ const ts = () => {
|
|
|
9390
9403
|
a === "sm" && (v = L(N2), C = C / 1.25), a === "lg" && (v = L(I2), C = C * 1.25);
|
|
9391
9404
|
const h = v / 2 - C / 2, i = 2 * Math.PI * h, g = i - i * l / 100;
|
|
9392
9405
|
let _;
|
|
9393
|
-
return
|
|
9406
|
+
return s ? _ = s : d ? _ = `${l}%` : _ = "", /* @__PURE__ */ e.createElement(
|
|
9394
9407
|
"div",
|
|
9395
9408
|
M({
|
|
9396
9409
|
className: [u, c].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -9399,7 +9412,7 @@ const ts = () => {
|
|
|
9399
9412
|
"--ring-stroke-dasharray": i
|
|
9400
9413
|
}
|
|
9401
9414
|
}, o),
|
|
9402
|
-
/* @__PURE__ */ e.createElement("div", { id: p, className: b },
|
|
9415
|
+
/* @__PURE__ */ e.createElement("div", { id: p, className: b }, n),
|
|
9403
9416
|
/* @__PURE__ */ e.createElement(
|
|
9404
9417
|
"div",
|
|
9405
9418
|
{
|
|
@@ -9454,11 +9467,11 @@ const ts = () => {
|
|
|
9454
9467
|
)
|
|
9455
9468
|
)
|
|
9456
9469
|
);
|
|
9457
|
-
},
|
|
9470
|
+
}, dn = (a) => {
|
|
9458
9471
|
var c = a, {
|
|
9459
9472
|
attribution: t,
|
|
9460
|
-
image:
|
|
9461
|
-
layoutType:
|
|
9473
|
+
image: s,
|
|
9474
|
+
layoutType: n = "stand-alone",
|
|
9462
9475
|
quote: l,
|
|
9463
9476
|
className: r
|
|
9464
9477
|
} = c, d = A(c, [
|
|
@@ -9468,13 +9481,13 @@ const ts = () => {
|
|
|
9468
9481
|
"quote",
|
|
9469
9482
|
"className"
|
|
9470
9483
|
]);
|
|
9471
|
-
const o = "pds-pull-quote", m = `${o}--${
|
|
9484
|
+
const o = "pds-pull-quote", m = `${o}--${n}`;
|
|
9472
9485
|
return /* @__PURE__ */ e.createElement(
|
|
9473
9486
|
"div",
|
|
9474
9487
|
M({
|
|
9475
9488
|
className: [o, m, r].join(" ").trim().replace(/\s+/g, " ")
|
|
9476
9489
|
}, d),
|
|
9477
|
-
|
|
9490
|
+
s && n === "stand-alone" && /* @__PURE__ */ e.createElement("div", { className: `${o}__image` }, /* @__PURE__ */ e.createElement("img", { src: s, alt: "" })),
|
|
9478
9491
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__quote-wrapper` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--before` }, /* @__PURE__ */ e.createElement(P, { iconName: "quotesLeft", iconSize: "4xl" })), /* @__PURE__ */ e.createElement("div", { className: `${o}__text-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9479
9492
|
"div",
|
|
9480
9493
|
{
|
|
@@ -9485,11 +9498,11 @@ const ts = () => {
|
|
|
9485
9498
|
);
|
|
9486
9499
|
};
|
|
9487
9500
|
var j2 = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.WORKING = "working", t.CHECKED = "checked", t))(j2 || {});
|
|
9488
|
-
const
|
|
9501
|
+
const mn = (o) => {
|
|
9489
9502
|
var m = o, {
|
|
9490
9503
|
alignment: t = "left",
|
|
9491
|
-
componentWidth:
|
|
9492
|
-
initialState:
|
|
9504
|
+
componentWidth: s,
|
|
9505
|
+
initialState: n,
|
|
9493
9506
|
labelStrings: l = {},
|
|
9494
9507
|
lastChecked: r,
|
|
9495
9508
|
onCheck: d,
|
|
@@ -9504,7 +9517,7 @@ const ms = (o) => {
|
|
|
9504
9517
|
"className"
|
|
9505
9518
|
]);
|
|
9506
9519
|
const [f, p] = U(
|
|
9507
|
-
|
|
9520
|
+
n != null ? n : "default"
|
|
9508
9521
|
/* DEFAULT */
|
|
9509
9522
|
), u = M({
|
|
9510
9523
|
checkForUpdates: "Check for updates",
|
|
@@ -9553,7 +9566,7 @@ const ms = (o) => {
|
|
|
9553
9566
|
}), L = "pds-refresh-checker", v = `${L}--${t}`, C = x([
|
|
9554
9567
|
`${L}__button`,
|
|
9555
9568
|
f === "working" ? `${L}__button--spinning` : ""
|
|
9556
|
-
]), h =
|
|
9569
|
+
]), h = s !== null && s > 0 ? `${s}rem` : "100%", i = /* @__PURE__ */ e.createElement("span", { className: `${L}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
9557
9570
|
P,
|
|
9558
9571
|
{
|
|
9559
9572
|
iconName: "rotate",
|
|
@@ -9589,11 +9602,11 @@ const ms = (o) => {
|
|
|
9589
9602
|
t === "left" && g
|
|
9590
9603
|
)
|
|
9591
9604
|
);
|
|
9592
|
-
},
|
|
9605
|
+
}, un = (d) => {
|
|
9593
9606
|
var a = d, {
|
|
9594
9607
|
siteName: t,
|
|
9595
|
-
sitePlanLevel:
|
|
9596
|
-
siteType:
|
|
9608
|
+
sitePlanLevel: s,
|
|
9609
|
+
siteType: n,
|
|
9597
9610
|
className: l
|
|
9598
9611
|
} = a, r = A(a, [
|
|
9599
9612
|
"siteName",
|
|
@@ -9601,7 +9614,7 @@ const ms = (o) => {
|
|
|
9601
9614
|
"siteType",
|
|
9602
9615
|
"className"
|
|
9603
9616
|
]);
|
|
9604
|
-
const c = "pds-site-dashboard-heading", o = A2[
|
|
9617
|
+
const c = "pds-site-dashboard-heading", o = A2[s], m = n ? S1[n] : "bolt";
|
|
9605
9618
|
return /* @__PURE__ */ e.createElement(
|
|
9606
9619
|
"div",
|
|
9607
9620
|
M({
|
|
@@ -9613,7 +9626,7 @@ const ms = (o) => {
|
|
|
9613
9626
|
}, r),
|
|
9614
9627
|
/* @__PURE__ */ e.createElement(P, { iconName: m, iconSize: "2xl" }),
|
|
9615
9628
|
/* @__PURE__ */ e.createElement("h1", null, t),
|
|
9616
|
-
|
|
9629
|
+
s && /* @__PURE__ */ e.createElement(ft, { label: o, color: "neutral", size: "md" })
|
|
9617
9630
|
);
|
|
9618
9631
|
}, Ut = {
|
|
9619
9632
|
bluesky: {
|
|
@@ -9651,11 +9664,11 @@ const ms = (o) => {
|
|
|
9651
9664
|
url: "https://www.youtube.com/user/GetPantheon",
|
|
9652
9665
|
label: "Pantheon on YouTube"
|
|
9653
9666
|
}
|
|
9654
|
-
},
|
|
9667
|
+
}, pn = (l) => {
|
|
9655
9668
|
var r = l, {
|
|
9656
9669
|
linkItems: t = ["facebook", "x", "bluesky", "linkedin", "youtube", "instagram"],
|
|
9657
|
-
className:
|
|
9658
|
-
} = r,
|
|
9670
|
+
className: s
|
|
9671
|
+
} = r, n = A(r, [
|
|
9659
9672
|
"linkItems",
|
|
9660
9673
|
"className"
|
|
9661
9674
|
]);
|
|
@@ -9663,8 +9676,8 @@ const ms = (o) => {
|
|
|
9663
9676
|
return /* @__PURE__ */ e.createElement(
|
|
9664
9677
|
"ul",
|
|
9665
9678
|
M({
|
|
9666
|
-
className: [d,
|
|
9667
|
-
},
|
|
9679
|
+
className: [d, s].join(" ").trim().replace(/\s+/g, " ")
|
|
9680
|
+
}, n),
|
|
9668
9681
|
t.map((a, c) => /* @__PURE__ */ e.createElement("li", { key: c, className: `${d}__item` }, /* @__PURE__ */ e.createElement(
|
|
9669
9682
|
"a",
|
|
9670
9683
|
{
|
|
@@ -9676,11 +9689,11 @@ const ms = (o) => {
|
|
|
9676
9689
|
/* @__PURE__ */ e.createElement(P, { iconName: Ut[a].icon, iconSize: "xl" })
|
|
9677
9690
|
)))
|
|
9678
9691
|
);
|
|
9679
|
-
},
|
|
9692
|
+
}, hn = (d) => {
|
|
9680
9693
|
var a = d, {
|
|
9681
9694
|
label: t = null,
|
|
9682
|
-
size:
|
|
9683
|
-
type:
|
|
9695
|
+
size: s = "md",
|
|
9696
|
+
type: n = "neutral",
|
|
9684
9697
|
className: l
|
|
9685
9698
|
} = a, r = A(a, [
|
|
9686
9699
|
"label",
|
|
@@ -9688,13 +9701,13 @@ const ms = (o) => {
|
|
|
9688
9701
|
"type",
|
|
9689
9702
|
"className"
|
|
9690
9703
|
]);
|
|
9691
|
-
const c = "pds-status-indicator", o = `${c}--${
|
|
9704
|
+
const c = "pds-status-indicator", o = `${c}--${n}`, m = `${c}--${s}`;
|
|
9692
9705
|
return /* @__PURE__ */ e.createElement(
|
|
9693
9706
|
"div",
|
|
9694
9707
|
M({
|
|
9695
9708
|
className: [c, o, m, l != null ? l : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
9696
9709
|
}, r),
|
|
9697
|
-
|
|
9710
|
+
n === "working" ? /* @__PURE__ */ e.createElement(
|
|
9698
9711
|
xt,
|
|
9699
9712
|
{
|
|
9700
9713
|
className: `${c}__spinner`,
|
|
@@ -9704,16 +9717,16 @@ const ms = (o) => {
|
|
|
9704
9717
|
) : /* @__PURE__ */ e.createElement("span", { className: `${c}__icon`, role: "img", "aria-hidden": "true" }),
|
|
9705
9718
|
t && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, t)
|
|
9706
9719
|
);
|
|
9707
|
-
},
|
|
9720
|
+
}, fn = (r) => {
|
|
9708
9721
|
var d = r, {
|
|
9709
9722
|
steps: t,
|
|
9710
|
-
translatableLabels:
|
|
9723
|
+
translatableLabels: s = {
|
|
9711
9724
|
step: "Step",
|
|
9712
9725
|
completed: "completed",
|
|
9713
9726
|
hasError: "has an error",
|
|
9714
9727
|
next: "Next"
|
|
9715
9728
|
},
|
|
9716
|
-
className:
|
|
9729
|
+
className: n
|
|
9717
9730
|
} = d, l = A(d, [
|
|
9718
9731
|
"steps",
|
|
9719
9732
|
"translatableLabels",
|
|
@@ -9727,8 +9740,8 @@ const ms = (o) => {
|
|
|
9727
9740
|
(I || D) && (S = N);
|
|
9728
9741
|
const T = `${a}__step`, W = [T];
|
|
9729
9742
|
$ && W.push(`${T}--current`), k && W.push(`${T}--complete`), z && W.push(`${T}--error`);
|
|
9730
|
-
let Z = `${
|
|
9731
|
-
k && (Z = `${
|
|
9743
|
+
let Z = `${s.step} ${_}`;
|
|
9744
|
+
k && (Z = `${s.step} ${_}, ${s.completed}`), z && (Z = `${s.step} ${_}, ${s.hasError}`);
|
|
9732
9745
|
const K = k ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${a}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9733
9746
|
P,
|
|
9734
9747
|
{
|
|
@@ -9736,8 +9749,8 @@ const ms = (o) => {
|
|
|
9736
9749
|
iconSize: "md",
|
|
9737
9750
|
className: `${a}__step-complete-icon`
|
|
9738
9751
|
}
|
|
9739
|
-
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${a}__step-indicator` }),
|
|
9740
|
-
let Y = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-content` },
|
|
9752
|
+
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${a}__step-indicator` }), se = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-label` }, i.label);
|
|
9753
|
+
let Y = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-content` }, se, K);
|
|
9741
9754
|
if (k && i.callback) {
|
|
9742
9755
|
const j = (q) => {
|
|
9743
9756
|
i.callback(i), q.preventDefault();
|
|
@@ -9749,7 +9762,7 @@ const ms = (o) => {
|
|
|
9749
9762
|
onClick: j,
|
|
9750
9763
|
type: "button"
|
|
9751
9764
|
},
|
|
9752
|
-
|
|
9765
|
+
se,
|
|
9753
9766
|
K
|
|
9754
9767
|
);
|
|
9755
9768
|
}
|
|
@@ -9787,11 +9800,11 @@ const ms = (o) => {
|
|
|
9787
9800
|
}), h = t.map((i, g) => {
|
|
9788
9801
|
const _ = g + 1, $ = g === v, k = g === L - 1, z = i.hasError && $, w = t[v + 1] ? t[v + 1].label : null;
|
|
9789
9802
|
if ($) {
|
|
9790
|
-
const y = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
9803
|
+
const y = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), _, " of ", L), H = _ / L * 100, N = z ? {
|
|
9791
9804
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
9792
9805
|
} : {
|
|
9793
9806
|
"--pds-color-status-info-foreground": "var(--pds-color-brand-primary-default)"
|
|
9794
|
-
}, V = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" },
|
|
9807
|
+
}, V = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", _, ", ", s.hasError);
|
|
9795
9808
|
return /* @__PURE__ */ e.createElement(
|
|
9796
9809
|
"div",
|
|
9797
9810
|
{
|
|
@@ -9816,7 +9829,7 @@ const ms = (o) => {
|
|
|
9816
9829
|
iconSize: "md",
|
|
9817
9830
|
className: `${c}__error-icon`
|
|
9818
9831
|
}
|
|
9819
|
-
)), i.label), !k && /* @__PURE__ */ e.createElement("div", { className: `${c}__next-step` }, `${
|
|
9832
|
+
)), i.label), !k && /* @__PURE__ */ e.createElement("div", { className: `${c}__next-step` }, `${s.next}: ${w}`))
|
|
9820
9833
|
);
|
|
9821
9834
|
}
|
|
9822
9835
|
});
|
|
@@ -9824,36 +9837,36 @@ const ms = (o) => {
|
|
|
9824
9837
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9825
9838
|
"div",
|
|
9826
9839
|
M({
|
|
9827
|
-
className: [a,
|
|
9840
|
+
className: [a, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9828
9841
|
"data-steps": L
|
|
9829
9842
|
}, l),
|
|
9830
9843
|
/* @__PURE__ */ e.createElement("ol", { className: `${a}__steps`, ref: o }, C)
|
|
9831
9844
|
), /* @__PURE__ */ e.createElement(
|
|
9832
9845
|
"div",
|
|
9833
9846
|
M({
|
|
9834
|
-
className: [c,
|
|
9847
|
+
className: [c, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9835
9848
|
"data-steps": L
|
|
9836
9849
|
}, l),
|
|
9837
9850
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` }, h)
|
|
9838
9851
|
));
|
|
9839
|
-
},
|
|
9852
|
+
}, gn = (r) => {
|
|
9840
9853
|
var d = r, {
|
|
9841
9854
|
headers: t,
|
|
9842
|
-
rowData:
|
|
9843
|
-
className:
|
|
9855
|
+
rowData: s,
|
|
9856
|
+
className: n
|
|
9844
9857
|
} = d, l = A(d, [
|
|
9845
9858
|
"headers",
|
|
9846
9859
|
"rowData",
|
|
9847
9860
|
"className"
|
|
9848
9861
|
]);
|
|
9849
|
-
const [a] = U(t), [c, o] = U(
|
|
9862
|
+
const [a] = U(t), [c, o] = U(s), [m, f] = U({ order: "asc", key: "" }), p = (v) => {
|
|
9850
9863
|
o(c.sort((C, h) => C[v].localeCompare(h[v]))), f({ order: "desc", key: v });
|
|
9851
9864
|
}, u = (v) => {
|
|
9852
9865
|
o(c.sort((C, h) => h[v].localeCompare(C[v]))), f({ order: "asc", key: v });
|
|
9853
9866
|
}, b = (v, C) => {
|
|
9854
9867
|
f(me(M({}, m), { key: C })), m.order === "asc" ? p(C) : u(C);
|
|
9855
9868
|
}, E = (v, C) => /* @__PURE__ */ e.createElement("tr", { id: C, key: `table-row-${C}` }, v.map((h, i) => /* @__PURE__ */ e.createElement("td", { key: `${C}-cell-${i}` }, /* @__PURE__ */ e.createElement("span", null, h)))), L = "pds-table";
|
|
9856
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", M({ className: x([L,
|
|
9869
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", M({ className: x([L, n]) }, l), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, a.map((v, C) => /* @__PURE__ */ e.createElement("th", { key: `header-${C}` }, v.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${L}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9857
9870
|
"span",
|
|
9858
9871
|
{
|
|
9859
9872
|
className: `${L}__sort-header`,
|
|
@@ -9883,11 +9896,11 @@ const ms = (o) => {
|
|
|
9883
9896
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "sm" })
|
|
9884
9897
|
)
|
|
9885
9898
|
)) : /* @__PURE__ */ e.createElement("span", null, v.title))))), /* @__PURE__ */ e.createElement("tbody", null, c.map((v, C) => E(v, C)))));
|
|
9886
|
-
},
|
|
9899
|
+
}, _n = (m) => {
|
|
9887
9900
|
var f = m, {
|
|
9888
9901
|
appendIds: t = !1,
|
|
9889
|
-
ariaLabel:
|
|
9890
|
-
headingLevel:
|
|
9902
|
+
ariaLabel: s = "Table of contents",
|
|
9903
|
+
headingLevel: n = "h2",
|
|
9891
9904
|
headingText: l = "Table of contents",
|
|
9892
9905
|
ignoreClass: r = "pds-toc-ignore",
|
|
9893
9906
|
showHeading: d = !1,
|
|
@@ -10014,7 +10027,7 @@ const ms = (o) => {
|
|
|
10014
10027
|
return /* @__PURE__ */ e.createElement(
|
|
10015
10028
|
"nav",
|
|
10016
10029
|
M({
|
|
10017
|
-
"aria-label":
|
|
10030
|
+
"aria-label": s,
|
|
10018
10031
|
className: x([p, c])
|
|
10019
10032
|
}, o),
|
|
10020
10033
|
l && /* @__PURE__ */ e.createElement(
|
|
@@ -10022,17 +10035,17 @@ const ms = (o) => {
|
|
|
10022
10035
|
{
|
|
10023
10036
|
baseClass: p,
|
|
10024
10037
|
className: `${d ? null : "visually-hidden"}`,
|
|
10025
|
-
level:
|
|
10038
|
+
level: n
|
|
10026
10039
|
},
|
|
10027
10040
|
l
|
|
10028
10041
|
),
|
|
10029
10042
|
/* @__PURE__ */ e.createElement(k, { headings: v, activeID: C })
|
|
10030
10043
|
);
|
|
10031
|
-
},
|
|
10044
|
+
}, En = (c) => {
|
|
10032
10045
|
var o = c, {
|
|
10033
10046
|
ariaLabel: t,
|
|
10034
|
-
defaultSelected:
|
|
10035
|
-
onActiveTabChange:
|
|
10047
|
+
defaultSelected: s = 0,
|
|
10048
|
+
onActiveTabChange: n = () => {
|
|
10036
10049
|
},
|
|
10037
10050
|
selectedTab: l,
|
|
10038
10051
|
tabs: r,
|
|
@@ -10045,7 +10058,7 @@ const ms = (o) => {
|
|
|
10045
10058
|
"tabs",
|
|
10046
10059
|
"className"
|
|
10047
10060
|
]);
|
|
10048
|
-
const m = "pds-tabs", [f, p] = U(l != null ? l :
|
|
10061
|
+
const m = "pds-tabs", [f, p] = U(l != null ? l : s);
|
|
10049
10062
|
oe(() => {
|
|
10050
10063
|
l !== void 0 && p(l);
|
|
10051
10064
|
}, [l]);
|
|
@@ -10057,8 +10070,8 @@ const ms = (o) => {
|
|
|
10057
10070
|
}
|
|
10058
10071
|
}, b = de([]);
|
|
10059
10072
|
oe(() => {
|
|
10060
|
-
|
|
10061
|
-
}, [f,
|
|
10073
|
+
n(f);
|
|
10074
|
+
}, [f, n]), oe(() => {
|
|
10062
10075
|
const v = b.current.length - 1;
|
|
10063
10076
|
if (f > v) {
|
|
10064
10077
|
p(0);
|
|
@@ -10196,13 +10209,13 @@ let h1 = [
|
|
|
10196
10209
|
"color-20"
|
|
10197
10210
|
];
|
|
10198
10211
|
const K2 = (t) => {
|
|
10199
|
-
const
|
|
10200
|
-
return h1[
|
|
10201
|
-
}, X2 = (t,
|
|
10212
|
+
const s = parseInt(E1(t), 16);
|
|
10213
|
+
return h1[s % h1.length];
|
|
10214
|
+
}, X2 = (t, s) => t.length > s ? t.slice(0, s) + " ..." : t, vn = (o) => {
|
|
10202
10215
|
var m = o, {
|
|
10203
10216
|
linkContent: t,
|
|
10204
|
-
isRemovable:
|
|
10205
|
-
onRemove:
|
|
10217
|
+
isRemovable: s,
|
|
10218
|
+
onRemove: n,
|
|
10206
10219
|
removeLabel: l = "Remove tag",
|
|
10207
10220
|
tagColor: r,
|
|
10208
10221
|
tagLabel: d,
|
|
@@ -10220,7 +10233,7 @@ const K2 = (t) => {
|
|
|
10220
10233
|
p((i) => !i);
|
|
10221
10234
|
};
|
|
10222
10235
|
let v, C, h;
|
|
10223
|
-
return t && !
|
|
10236
|
+
return t && !s && we(t) ? (v = t.type, C = t.props.href ? "href" : "to", h = C === "href" ? t.props.href : t.props.to) : (v = "span", C = null, h = null), /* @__PURE__ */ e.createElement(
|
|
10224
10237
|
v,
|
|
10225
10238
|
M({
|
|
10226
10239
|
href: C === "href" ? h : null,
|
|
@@ -10228,14 +10241,14 @@ const K2 = (t) => {
|
|
|
10228
10241
|
className: [u, b, E, a].join(" ").trim().replace(/\s+/g, " ")
|
|
10229
10242
|
}, c),
|
|
10230
10243
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__label`, title: d }, X2(d, 20)),
|
|
10231
|
-
|
|
10244
|
+
s ? /* @__PURE__ */ e.createElement(
|
|
10232
10245
|
"button",
|
|
10233
10246
|
{
|
|
10234
10247
|
type: "button",
|
|
10235
10248
|
className: `${u}__remove`,
|
|
10236
10249
|
"aria-label": `${l}: ${d}`,
|
|
10237
10250
|
onClick: () => {
|
|
10238
|
-
L(),
|
|
10251
|
+
L(), n();
|
|
10239
10252
|
}
|
|
10240
10253
|
},
|
|
10241
10254
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10248,11 +10261,11 @@ const K2 = (t) => {
|
|
|
10248
10261
|
)
|
|
10249
10262
|
) : null
|
|
10250
10263
|
);
|
|
10251
|
-
},
|
|
10264
|
+
}, bn = (l) => {
|
|
10252
10265
|
var r = l, {
|
|
10253
10266
|
listItems: t,
|
|
10254
|
-
className:
|
|
10255
|
-
} = r,
|
|
10267
|
+
className: s
|
|
10268
|
+
} = r, n = A(r, [
|
|
10256
10269
|
"listItems",
|
|
10257
10270
|
"className"
|
|
10258
10271
|
]);
|
|
@@ -10273,16 +10286,16 @@ const K2 = (t) => {
|
|
|
10273
10286
|
d,
|
|
10274
10287
|
`${a}--avatar`,
|
|
10275
10288
|
a,
|
|
10276
|
-
|
|
10289
|
+
s != null ? s : ""
|
|
10277
10290
|
])
|
|
10278
|
-
},
|
|
10291
|
+
}, n),
|
|
10279
10292
|
m()
|
|
10280
10293
|
);
|
|
10281
10294
|
}, Y2 = (o) => {
|
|
10282
10295
|
var m = o, {
|
|
10283
10296
|
displayType: t = "border",
|
|
10284
|
-
headingLevel:
|
|
10285
|
-
headingText:
|
|
10297
|
+
headingLevel: s = "span",
|
|
10298
|
+
headingText: n,
|
|
10286
10299
|
imageSrc: l,
|
|
10287
10300
|
linkContent: r,
|
|
10288
10301
|
summary: d,
|
|
@@ -10303,14 +10316,14 @@ const K2 = (t) => {
|
|
|
10303
10316
|
className: x([f, p, a != null ? a : ""])
|
|
10304
10317
|
}, c),
|
|
10305
10318
|
l && /* @__PURE__ */ e.createElement("div", { className: `${f}__image` }, /* @__PURE__ */ e.createElement("img", { src: l, alt: "" })),
|
|
10306
|
-
|
|
10319
|
+
n && /* @__PURE__ */ e.createElement(
|
|
10307
10320
|
_t,
|
|
10308
10321
|
{
|
|
10309
10322
|
baseClass: f,
|
|
10310
10323
|
className: "pds-ts-xl",
|
|
10311
|
-
level:
|
|
10324
|
+
level: s
|
|
10312
10325
|
},
|
|
10313
|
-
|
|
10326
|
+
n
|
|
10314
10327
|
),
|
|
10315
10328
|
d && /* @__PURE__ */ e.createElement("div", { className: `${f}__summary` }, /* @__PURE__ */ e.createElement("p", null, d)),
|
|
10316
10329
|
r && (t == "border" || t == "clean") && /* @__PURE__ */ e.createElement(
|
|
@@ -10322,11 +10335,11 @@ const K2 = (t) => {
|
|
|
10322
10335
|
}
|
|
10323
10336
|
)
|
|
10324
10337
|
), /* @__PURE__ */ e.createElement("span", { className: `${f}__separator` }));
|
|
10325
|
-
},
|
|
10338
|
+
}, Cn = (d) => {
|
|
10326
10339
|
var a = d, {
|
|
10327
10340
|
displayType: t = "border",
|
|
10328
|
-
headingLevel:
|
|
10329
|
-
tiles:
|
|
10341
|
+
headingLevel: s = "h2",
|
|
10342
|
+
tiles: n,
|
|
10330
10343
|
className: l
|
|
10331
10344
|
} = a, r = A(a, [
|
|
10332
10345
|
"displayType",
|
|
@@ -10340,12 +10353,12 @@ const K2 = (t) => {
|
|
|
10340
10353
|
M({
|
|
10341
10354
|
className: x([c, o, l != null ? l : ""])
|
|
10342
10355
|
}, r),
|
|
10343
|
-
|
|
10356
|
+
n.map((m, f) => /* @__PURE__ */ e.createElement(
|
|
10344
10357
|
Y2,
|
|
10345
10358
|
{
|
|
10346
10359
|
key: f,
|
|
10347
10360
|
displayType: t,
|
|
10348
|
-
headingLevel:
|
|
10361
|
+
headingLevel: s,
|
|
10349
10362
|
headingText: m.headingText,
|
|
10350
10363
|
imageSrc: m.imageSrc,
|
|
10351
10364
|
linkContent: m.linkContent,
|
|
@@ -10354,11 +10367,11 @@ const K2 = (t) => {
|
|
|
10354
10367
|
}
|
|
10355
10368
|
))
|
|
10356
10369
|
);
|
|
10357
|
-
}, $
|
|
10370
|
+
}, $n = (l) => {
|
|
10358
10371
|
var r = l, {
|
|
10359
10372
|
children: t,
|
|
10360
|
-
className:
|
|
10361
|
-
} = r,
|
|
10373
|
+
className: s
|
|
10374
|
+
} = r, n = A(r, [
|
|
10362
10375
|
"children",
|
|
10363
10376
|
"className"
|
|
10364
10377
|
]);
|
|
@@ -10366,16 +10379,16 @@ const K2 = (t) => {
|
|
|
10366
10379
|
return /* @__PURE__ */ e.createElement(
|
|
10367
10380
|
"div",
|
|
10368
10381
|
M({
|
|
10369
|
-
className: x([a, c,
|
|
10370
|
-
},
|
|
10382
|
+
className: x([a, c, s != null ? s : ""])
|
|
10383
|
+
}, n),
|
|
10371
10384
|
(m || f) && /* @__PURE__ */ e.createElement("div", { className: `${a}__header` }, (m || f) && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-top` }, m && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-left` }, m), f && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-right` }, f))),
|
|
10372
10385
|
p && p
|
|
10373
10386
|
);
|
|
10374
|
-
},
|
|
10387
|
+
}, wn = (l) => {
|
|
10375
10388
|
var r = l, {
|
|
10376
10389
|
children: t,
|
|
10377
|
-
className:
|
|
10378
|
-
} = r,
|
|
10390
|
+
className: s
|
|
10391
|
+
} = r, n = A(r, [
|
|
10379
10392
|
"children",
|
|
10380
10393
|
"className"
|
|
10381
10394
|
]);
|
|
@@ -10386,15 +10399,15 @@ const K2 = (t) => {
|
|
|
10386
10399
|
return /* @__PURE__ */ e.createElement(
|
|
10387
10400
|
"div",
|
|
10388
10401
|
M({
|
|
10389
|
-
className: x([c, o,
|
|
10390
|
-
},
|
|
10402
|
+
className: x([c, o, s != null ? s : ""])
|
|
10403
|
+
}, n),
|
|
10391
10404
|
[f, p]
|
|
10392
10405
|
);
|
|
10393
|
-
},
|
|
10406
|
+
}, yn = (L) => {
|
|
10394
10407
|
var v = L, {
|
|
10395
10408
|
alignContent: t = "flex-start",
|
|
10396
|
-
alignItems:
|
|
10397
|
-
flexDirection:
|
|
10409
|
+
alignItems: s = "stretch",
|
|
10410
|
+
flexDirection: n = "row",
|
|
10398
10411
|
flexWrap: l = "nowrap",
|
|
10399
10412
|
gap: r = "standard",
|
|
10400
10413
|
justifyContent: d = "flex-start",
|
|
@@ -10427,13 +10440,13 @@ const K2 = (t) => {
|
|
|
10427
10440
|
i && (h = i.isMobile);
|
|
10428
10441
|
const g = "pds-flex", _ = `${g}-container`, $ = h ? `${_}--mobile` : null;
|
|
10429
10442
|
let k = null;
|
|
10430
|
-
h ? k = `${g}-direction--${o}` :
|
|
10443
|
+
h ? k = `${g}-direction--${o}` : n !== "row" && (k = `${g}-direction--${n}`);
|
|
10431
10444
|
let z = null;
|
|
10432
10445
|
h ? m ? m !== "nowrap" && (z = `${g}-wrap--${m}`) : l !== "nowrap" && (z = `${g}-wrap--${l}`) : l !== "nowrap" && (z = `${g}-wrap--${l}`);
|
|
10433
10446
|
let w = null;
|
|
10434
10447
|
h ? p ? p !== "flex-start" && (w = `${g}-justify--${p}`) : d !== "flex-start" && (w = `${g}-justify--${d}`) : d !== "flex-start" && (w = `${g}-justify--${d}`);
|
|
10435
10448
|
let y = null;
|
|
10436
|
-
h ? a ? a !== "stretch" && (y = `${g}-align-items--${a}`) :
|
|
10449
|
+
h ? a ? a !== "stretch" && (y = `${g}-align-items--${a}`) : s !== "stretch" && (y = `${g}-align-items--${s}`) : s !== "stretch" && (y = `${g}-align-items--${s}`);
|
|
10437
10450
|
let H = null;
|
|
10438
10451
|
h ? c ? c !== "flex-start" && (H = `${g}-align-content--${c}`) : t !== "flex-start" && (H = `${g}-align-content--${t}`) : t !== "flex-start" && (H = `${g}-align-content--${t}`);
|
|
10439
10452
|
let N = null;
|
|
@@ -10454,14 +10467,14 @@ const K2 = (t) => {
|
|
|
10454
10467
|
}, E),
|
|
10455
10468
|
u
|
|
10456
10469
|
);
|
|
10457
|
-
},
|
|
10470
|
+
}, Ln = ({
|
|
10458
10471
|
children: t,
|
|
10459
|
-
mobileMenuMaxWidth:
|
|
10460
|
-
}) => /* @__PURE__ */ e.createElement(i2, { mobileMenuMaxWidth:
|
|
10472
|
+
mobileMenuMaxWidth: s = 640
|
|
10473
|
+
}) => /* @__PURE__ */ e.createElement(i2, { mobileMenuMaxWidth: s }, t), Mn = (c) => {
|
|
10461
10474
|
var o = c, {
|
|
10462
10475
|
children: t,
|
|
10463
|
-
gridGap:
|
|
10464
|
-
sidebarLocation:
|
|
10476
|
+
gridGap: s = "standard",
|
|
10477
|
+
sidebarLocation: n = "right",
|
|
10465
10478
|
sidebarMobileLocation: l = "after",
|
|
10466
10479
|
sidebarWidth: r = "standard",
|
|
10467
10480
|
className: d
|
|
@@ -10473,7 +10486,7 @@ const K2 = (t) => {
|
|
|
10473
10486
|
"sidebarWidth",
|
|
10474
10487
|
"className"
|
|
10475
10488
|
]);
|
|
10476
|
-
const m = "pds-sidebar-layout", f = `pds-grid pds-grid--${
|
|
10489
|
+
const m = "pds-sidebar-layout", f = `pds-grid pds-grid--${s}`, p = `${m}--${r}`;
|
|
10477
10490
|
let u = !1;
|
|
10478
10491
|
const b = ve(ye);
|
|
10479
10492
|
b && (u = b.isMobile);
|
|
@@ -10505,13 +10518,13 @@ const K2 = (t) => {
|
|
|
10505
10518
|
d != null ? d : ""
|
|
10506
10519
|
])
|
|
10507
10520
|
}, a),
|
|
10508
|
-
u ? l === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, C) : /* @__PURE__ */ e.createElement(e.Fragment, null, C, h) :
|
|
10521
|
+
u ? l === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, C) : /* @__PURE__ */ e.createElement(e.Fragment, null, C, h) : n === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, C) : /* @__PURE__ */ e.createElement(e.Fragment, null, C, h)
|
|
10509
10522
|
);
|
|
10510
|
-
},
|
|
10523
|
+
}, kn = (l) => {
|
|
10511
10524
|
var r = l, {
|
|
10512
10525
|
children: t,
|
|
10513
|
-
className:
|
|
10514
|
-
} = r,
|
|
10526
|
+
className: s
|
|
10527
|
+
} = r, n = A(r, [
|
|
10515
10528
|
"children",
|
|
10516
10529
|
"className"
|
|
10517
10530
|
]);
|
|
@@ -10521,7 +10534,7 @@ const K2 = (t) => {
|
|
|
10521
10534
|
f + "px"
|
|
10522
10535
|
);
|
|
10523
10536
|
const p = "pds-stepper-layout";
|
|
10524
|
-
return /* @__PURE__ */ e.createElement(pt, M({ className: x([p,
|
|
10537
|
+
return /* @__PURE__ */ e.createElement(pt, M({ className: x([p, s]) }, n), a && /* @__PURE__ */ e.createElement(
|
|
10525
10538
|
"div",
|
|
10526
10539
|
{
|
|
10527
10540
|
className: `${p}__stepper-container`,
|
|
@@ -10529,11 +10542,11 @@ const K2 = (t) => {
|
|
|
10529
10542
|
},
|
|
10530
10543
|
a
|
|
10531
10544
|
), c && /* @__PURE__ */ e.createElement("div", { className: `${p}__form-container` }, c));
|
|
10532
|
-
},
|
|
10545
|
+
}, Hn = (d) => {
|
|
10533
10546
|
var a = d, {
|
|
10534
10547
|
children: t,
|
|
10535
|
-
gridGap:
|
|
10536
|
-
verticalAlign:
|
|
10548
|
+
gridGap: s = "standard",
|
|
10549
|
+
verticalAlign: n = "start",
|
|
10537
10550
|
className: l
|
|
10538
10551
|
} = a, r = A(a, [
|
|
10539
10552
|
"children",
|
|
@@ -10541,7 +10554,7 @@ const K2 = (t) => {
|
|
|
10541
10554
|
"verticalAlign",
|
|
10542
10555
|
"className"
|
|
10543
10556
|
]);
|
|
10544
|
-
const c = "pds-three-item-layout", o =
|
|
10557
|
+
const c = "pds-three-item-layout", o = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, m = `${c}--${n}`, f = Fe(t), p = [
|
|
10545
10558
|
f["first-item"],
|
|
10546
10559
|
f["second-item"],
|
|
10547
10560
|
f["third-item"]
|
|
@@ -10565,11 +10578,11 @@ const K2 = (t) => {
|
|
|
10565
10578
|
u
|
|
10566
10579
|
))
|
|
10567
10580
|
);
|
|
10568
|
-
},
|
|
10581
|
+
}, zn = (a) => {
|
|
10569
10582
|
var c = a, {
|
|
10570
10583
|
children: t,
|
|
10571
|
-
gridGap:
|
|
10572
|
-
layoutVariant:
|
|
10584
|
+
gridGap: s = "standard",
|
|
10585
|
+
layoutVariant: n = "equal",
|
|
10573
10586
|
verticalAlign: l = "start",
|
|
10574
10587
|
className: r
|
|
10575
10588
|
} = c, d = A(c, [
|
|
@@ -10579,9 +10592,9 @@ const K2 = (t) => {
|
|
|
10579
10592
|
"verticalAlign",
|
|
10580
10593
|
"className"
|
|
10581
10594
|
]);
|
|
10582
|
-
const o = "pds-two-item-layout", m =
|
|
10595
|
+
const o = "pds-two-item-layout", m = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, f = `${o}--${l}`, p = ["pds-grid-item--md-6"], u = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], b = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], E = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
10583
10596
|
let L, v;
|
|
10584
|
-
switch (
|
|
10597
|
+
switch (n) {
|
|
10585
10598
|
case "equal":
|
|
10586
10599
|
L = E.concat(p), v = E.concat(p);
|
|
10587
10600
|
break;
|
|
@@ -10605,12 +10618,12 @@ const K2 = (t) => {
|
|
|
10605
10618
|
/* @__PURE__ */ e.createElement("div", { className: L.join(" ").trim() }, h),
|
|
10606
10619
|
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() }, i)
|
|
10607
10620
|
);
|
|
10608
|
-
},
|
|
10609
|
-
const [
|
|
10621
|
+
}, Nn = (t, s) => {
|
|
10622
|
+
const [n, l] = U(!1), r = Zt(
|
|
10610
10623
|
(a) => {
|
|
10611
|
-
a.key === t && (l(!0),
|
|
10624
|
+
a.key === t && (l(!0), s && s(a));
|
|
10612
10625
|
},
|
|
10613
|
-
[t,
|
|
10626
|
+
[t, s]
|
|
10614
10627
|
), d = Zt(
|
|
10615
10628
|
(a) => {
|
|
10616
10629
|
a.key === t && l(!1);
|
|
@@ -10619,125 +10632,125 @@ const K2 = (t) => {
|
|
|
10619
10632
|
);
|
|
10620
10633
|
return oe(() => (window.addEventListener("keydown", r), window.addEventListener("keyup", d), () => {
|
|
10621
10634
|
window.removeEventListener("keydown", r), window.removeEventListener("keyup", d);
|
|
10622
|
-
}), [r, d]),
|
|
10635
|
+
}), [r, d]), n;
|
|
10623
10636
|
};
|
|
10624
10637
|
export {
|
|
10625
10638
|
jt as Avatar,
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10639
|
+
bn as AvatarTileList,
|
|
10640
|
+
Xs as Banner,
|
|
10641
|
+
ms as BranchDiff,
|
|
10642
|
+
Ds as Breadcrumb,
|
|
10630
10643
|
gt as Button,
|
|
10631
10644
|
yt as ButtonLink,
|
|
10632
|
-
|
|
10645
|
+
Os as ButtonNav,
|
|
10633
10646
|
$2 as CTALink,
|
|
10634
|
-
|
|
10635
|
-
|
|
10647
|
+
Cs as CTASlice,
|
|
10648
|
+
hs as Callout,
|
|
10636
10649
|
e1 as Card,
|
|
10637
10650
|
z1 as CardHeading,
|
|
10638
|
-
|
|
10651
|
+
fs as CardSelectGroup,
|
|
10639
10652
|
y2 as Checkbox,
|
|
10640
|
-
|
|
10641
|
-
|
|
10653
|
+
ks as CheckboxFieldset,
|
|
10654
|
+
Hs as CheckboxGroup,
|
|
10642
10655
|
o2 as ClipboardButton,
|
|
10643
10656
|
k1 as CloseButton,
|
|
10644
|
-
|
|
10657
|
+
bs as CodeBlock,
|
|
10645
10658
|
L2 as Combobox,
|
|
10646
|
-
|
|
10659
|
+
zs as ComboboxMultiselect,
|
|
10647
10660
|
d1 as ComparisonList,
|
|
10648
10661
|
pt as Container,
|
|
10649
10662
|
It as DashboardContext,
|
|
10650
|
-
|
|
10651
|
-
$
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
+
Rs as DashboardGlobal,
|
|
10664
|
+
$n as DashboardInner,
|
|
10665
|
+
Fs as DashboardNav,
|
|
10666
|
+
Bs as DashboardSearch,
|
|
10667
|
+
$s as DashboardStat,
|
|
10668
|
+
wn as DocsLayout,
|
|
10669
|
+
s1 as DropdownMenu,
|
|
10670
|
+
sn as ExpansionPanel,
|
|
10671
|
+
nn as ExpansionPanelGroup,
|
|
10672
|
+
ws as FileDiff,
|
|
10673
|
+
Ns as FileUpload,
|
|
10674
|
+
yn as FlexContainer,
|
|
10675
|
+
ys as FlowSteps,
|
|
10663
10676
|
w2 as FooterHeading,
|
|
10664
|
-
|
|
10665
|
-
|
|
10677
|
+
Ls as FooterLinks,
|
|
10678
|
+
Ln as GlobalWrapper,
|
|
10666
10679
|
P as Icon,
|
|
10667
10680
|
Lt as IconButton,
|
|
10668
10681
|
ft as IndicatorBadge,
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10682
|
+
Ys as InlineMessage,
|
|
10683
|
+
xs as InputGroup,
|
|
10684
|
+
Ts as LinkNewWindow,
|
|
10685
|
+
gs as LinksCard,
|
|
10673
10686
|
m2 as MenuButton,
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10687
|
+
As as Modal,
|
|
10688
|
+
Gs as NavMenu,
|
|
10689
|
+
Ws as Navbar,
|
|
10690
|
+
_s as NewSiteCard,
|
|
10691
|
+
tn as Pagination,
|
|
10692
|
+
an as Panel,
|
|
10693
|
+
ln as PanelList,
|
|
10694
|
+
cn as PanelRow,
|
|
10682
10695
|
V1 as PantheonLogo,
|
|
10683
10696
|
p2 as PlatformIcon,
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10697
|
+
rn as Popover,
|
|
10698
|
+
Es as PricingCard,
|
|
10699
|
+
on as ProgressBar,
|
|
10687
10700
|
q2 as ProgressRing,
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10701
|
+
dn as PullQuote,
|
|
10702
|
+
Is as RadioGroup,
|
|
10703
|
+
mn as RefreshChecker,
|
|
10691
10704
|
j2 as RefreshCheckerState,
|
|
10692
10705
|
ye as ResponsiveContext,
|
|
10693
|
-
|
|
10694
|
-
|
|
10706
|
+
Qs as SectionMessage,
|
|
10707
|
+
us as SegmentedButton,
|
|
10695
10708
|
g2 as Select,
|
|
10696
10709
|
f2 as SelectOptionGroup,
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10710
|
+
Us as SideNav,
|
|
10711
|
+
Zs as SideNavCompact,
|
|
10712
|
+
Mn as SidebarLayout,
|
|
10713
|
+
vs as SiteCard,
|
|
10714
|
+
un as SiteDashboardHeading,
|
|
10715
|
+
Ms as SiteFooter,
|
|
10703
10716
|
A2 as SitePlanLevelLabel,
|
|
10704
10717
|
S1 as SiteTypeIcon,
|
|
10705
|
-
|
|
10718
|
+
Ps as SiteTypeLabel,
|
|
10706
10719
|
z2 as Skiplink,
|
|
10707
|
-
|
|
10720
|
+
pn as SocialLinks,
|
|
10708
10721
|
xt as Spinner,
|
|
10709
10722
|
u2 as SplitButton,
|
|
10710
10723
|
Xt as StatusBadge,
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10724
|
+
hn as StatusIndicator,
|
|
10725
|
+
fn as Stepper,
|
|
10726
|
+
kn as StepperLayout,
|
|
10727
|
+
Vs as Switch,
|
|
10728
|
+
qs as TabMenu,
|
|
10729
|
+
gn as Table,
|
|
10730
|
+
_n as TableOfContents,
|
|
10731
|
+
En as Tabs,
|
|
10732
|
+
vn as Tag,
|
|
10720
10733
|
$t as Tally,
|
|
10721
10734
|
x1 as TextInput,
|
|
10722
|
-
|
|
10723
|
-
|
|
10735
|
+
Ss as Textarea,
|
|
10736
|
+
Hn as ThreeItemLayout,
|
|
10724
10737
|
Y2 as Tile,
|
|
10725
|
-
|
|
10738
|
+
Cn as TileGrid,
|
|
10726
10739
|
W2 as Toast,
|
|
10727
10740
|
G2 as ToastType,
|
|
10728
|
-
|
|
10741
|
+
Js as Toaster,
|
|
10729
10742
|
xe as Tooltip,
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10743
|
+
zn as TwoItemLayout,
|
|
10744
|
+
js as UserMenu,
|
|
10745
|
+
ps as UtilityButton,
|
|
10746
|
+
Ks as WorkspaceSelector,
|
|
10734
10747
|
i1 as badgeTypes,
|
|
10735
10748
|
M2 as getFilteredOptions,
|
|
10736
|
-
|
|
10749
|
+
ds as iconList,
|
|
10737
10750
|
h1 as tagColors,
|
|
10738
10751
|
r2 as useClipboard,
|
|
10739
|
-
|
|
10740
|
-
|
|
10752
|
+
Nn as useKeyPress,
|
|
10753
|
+
en as useToast,
|
|
10741
10754
|
H1 as useWindowWidth
|
|
10742
10755
|
};
|
|
10743
10756
|
//# sourceMappingURL=index.js.map
|